0.6.1.20060928-1 release
[manu/suphp.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for suPHP 0.6.1.
4 #
5 # Report bugs to <sebastian.marsching@suphp.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='suPHP'
425 PACKAGE_TARNAME='suphp'
426 PACKAGE_VERSION='0.6.1'
427 PACKAGE_STRING='suPHP 0.6.1'
428 PACKAGE_BUGREPORT='sebastian.marsching@suphp.org'
429
430 ac_unique_file="src/Application.cpp"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL APXS APACHE_VERSION_1_3 APACHE_VERSION_2 APXS_INCLUDEDIR APXS_LIBEXECDIR APXS_EXTRA_CFLAGS APR_INCLUDEDIR OPT_APACHEMOD_USERGROUP_DEF COND_AP13_TRUE COND_AP13_FALSE COND_AP20_TRUE COND_AP20_FALSE COND_APUSERGROUP_TRUE COND_APUSERGROUP_FALSE LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures suPHP 0.6.1 to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of suPHP 0.6.1:";;
1024    esac
1025   cat <<\_ACEOF
1026
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --disable-dependency-tracking  speeds up one-time build
1031   --enable-dependency-tracking   do not reject slow dependency extractors
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-libtool-lock  avoid locking (might break parallel builds)
1039   --enable-checkpath      Check if script resides in DOCUMENT_ROOT (default is
1040                           ENABLED)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-apr=DIR|FILE     prefix for installed APR, path to APR build tree,
1051                           or the full path to apr-config
1052   --with-apxs=FILE        Build shared Apache module. FILE is the optional
1053                           pathname to the Apache apxs tool; defaults to
1054                           "apxs".
1055   --with-setid-mode=MODE  Mode to use for setting UID/GID. MODE can be on of
1056                           "owner", "config" or "paranoid"; defaults to
1057                           "paranoid".
1058   --with-min-uid=UID      Minimum UID, which is allowed to run scripts
1059                           (default=100)
1060   --with-min-gid=GID      Minimum GID, which is allowed to run scripts
1061                           (default=100)
1062   --with-apache-user=USERNAME
1063                           Name of the user Apache is running as (default is
1064                           "wwwrun"
1065   --with-logfile=FILE     Path to suPHP logfile (default is
1066                           "/var/log/httpd/suphp_log"
1067
1068 Some influential environment variables:
1069   CC          C compiler command
1070   CFLAGS      C compiler flags
1071   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1072               nonstandard directory <lib dir>
1073   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074               headers in a nonstandard directory <include dir>
1075   CXX         C++ compiler command
1076   CXXFLAGS    C++ compiler flags
1077   CPP         C preprocessor
1078   CXXCPP      C++ preprocessor
1079   F77         Fortran 77 compiler command
1080   FFLAGS      Fortran 77 compiler flags
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <sebastian.marsching@suphp.org>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090   # If there are subdirs, report their specific --help.
1091   ac_popdir=`pwd`
1092   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093     test -d $ac_dir || continue
1094     ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098   # A "../" for each directory in $ac_dir_suffix.
1099   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101   ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105   .)  # No --srcdir option.  We are building in place.
1106     ac_srcdir=.
1107     if test -z "$ac_top_builddir"; then
1108        ac_top_srcdir=.
1109     else
1110        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111     fi ;;
1112   [\\/]* | ?:[\\/]* )  # Absolute path.
1113     ac_srcdir=$srcdir$ac_dir_suffix;
1114     ac_top_srcdir=$srcdir ;;
1115   *) # Relative path.
1116     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1122 case `pwd` in
1123 .) ac_abs_builddir="$ac_dir";;
1124 *)
1125   case "$ac_dir" in
1126   .) ac_abs_builddir=`pwd`;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *)
1134   case ${ac_top_builddir}. in
1135   .) ac_abs_top_builddir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1142 *)
1143   case $ac_srcdir in
1144   .) ac_abs_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *)
1152   case $ac_top_srcdir in
1153   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156   esac;;
1157 esac
1158
1159     cd $ac_dir
1160     # Check for guested configure; otherwise get Cygnus style configure.
1161     if test -f $ac_srcdir/configure.gnu; then
1162       echo
1163       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1164     elif test -f $ac_srcdir/configure; then
1165       echo
1166       $SHELL $ac_srcdir/configure  --help=recursive
1167     elif test -f $ac_srcdir/configure.ac ||
1168            test -f $ac_srcdir/configure.in; then
1169       echo
1170       $ac_configure --help
1171     else
1172       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173     fi
1174     cd $ac_popdir
1175   done
1176 fi
1177
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1180   cat <<\_ACEOF
1181 suPHP configure 0.6.1
1182 generated by GNU Autoconf 2.59
1183
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1187 _ACEOF
1188   exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by suPHP $as_me 0.6.1, which was
1196 generated by GNU Autoconf 2.59.  Invocation command line was
1197
1198   $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1215
1216 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1217 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1220 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1221 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1222 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229   IFS=$as_save_IFS
1230   test -z "$as_dir" && as_dir=.
1231   echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258   for ac_arg
1259   do
1260     case $ac_arg in
1261     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263     | -silent | --silent | --silen | --sile | --sil)
1264       continue ;;
1265     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267     esac
1268     case $ac_pass in
1269     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270     2)
1271       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272       if test $ac_must_keep_next = true; then
1273         ac_must_keep_next=false # Got value, back to normal.
1274       else
1275         case $ac_arg in
1276           *=* | --config-cache | -C | -disable-* | --disable-* \
1277           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279           | -with-* | --with-* | -without-* | --without-* | --x)
1280             case "$ac_configure_args0 " in
1281               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282             esac
1283             ;;
1284           -* ) ac_must_keep_next=true ;;
1285         esac
1286       fi
1287       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288       # Get rid of the leading space.
1289       ac_sep=" "
1290       ;;
1291     esac
1292   done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log.  We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303   # Save into config.log some information that might help in debugging.
1304   {
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312     echo
1313     # The following way of writing the cache mishandles newlines in values,
1314 {
1315   (set) 2>&1 |
1316     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317     *ac_space=\ *)
1318       sed -n \
1319         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321       ;;
1322     *)
1323       sed -n \
1324         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325       ;;
1326     esac;
1327 }
1328     echo
1329
1330     cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335     echo
1336     for ac_var in $ac_subst_vars
1337     do
1338       eval ac_val=$`echo $ac_var`
1339       echo "$ac_var='"'"'$ac_val'"'"'"
1340     done | sort
1341     echo
1342
1343     if test -n "$ac_subst_files"; then
1344       cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349       echo
1350       for ac_var in $ac_subst_files
1351       do
1352         eval ac_val=$`echo $ac_var`
1353         echo "$ac_var='"'"'$ac_val'"'"'"
1354       done | sort
1355       echo
1356     fi
1357
1358     if test -s confdefs.h; then
1359       cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364       echo
1365       sed "/^$/d" confdefs.h | sort
1366       echo
1367     fi
1368     test "$ac_signal" != 0 &&
1369       echo "$as_me: caught signal $ac_signal"
1370     echo "$as_me: exit $exit_status"
1371   } >&5
1372   rm -f core *.core &&
1373   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374     exit $exit_status
1375      ' 0
1376 for ac_signal in 1 2 13 15; do
1377   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416   if test "x$prefix" != xNONE; then
1417     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418   else
1419     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420   fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423   if test -r "$ac_site_file"; then
1424     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426     sed 's/^/| /' "$ac_site_file" >&5
1427     . "$ac_site_file"
1428   fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432   # Some versions of bash will fail to source /dev/null (special
1433   # files actually), so we avoid doing that.
1434   if test -f "$cache_file"; then
1435     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437     case $cache_file in
1438       [\\/]* | ?:[\\/]* ) . $cache_file;;
1439       *)                      . ./$cache_file;;
1440     esac
1441   fi
1442 else
1443   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445   >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454   eval ac_new_set=\$ac_env_${ac_var}_set
1455   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456   eval ac_new_val="\$ac_env_${ac_var}_value"
1457   case $ac_old_set,$ac_new_set in
1458     set,)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,set)
1463       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465       ac_cache_corrupted=: ;;
1466     ,);;
1467     *)
1468       if test "x$ac_old_val" != "x$ac_new_val"; then
1469         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1472 echo "$as_me:   former value:  $ac_old_val" >&2;}
1473         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1474 echo "$as_me:   current value: $ac_new_val" >&2;}
1475         ac_cache_corrupted=:
1476       fi;;
1477   esac
1478   # Pass precious variables to config.status.
1479   if test "$ac_new_set" = set; then
1480     case $ac_new_val in
1481     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483     *) ac_arg=$ac_var=$ac_new_val ;;
1484     esac
1485     case " $ac_configure_args " in
1486       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1487       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488     esac
1489   fi
1490 done
1491 if $ac_cache_corrupted; then
1492   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496    { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532 # Auxiliary tools
1533 ac_aux_dir=
1534 for ac_dir in config $srcdir/config; do
1535   if test -f $ac_dir/install-sh; then
1536     ac_aux_dir=$ac_dir
1537     ac_install_sh="$ac_aux_dir/install-sh -c"
1538     break
1539   elif test -f $ac_dir/install.sh; then
1540     ac_aux_dir=$ac_dir
1541     ac_install_sh="$ac_aux_dir/install.sh -c"
1542     break
1543   elif test -f $ac_dir/shtool; then
1544     ac_aux_dir=$ac_dir
1545     ac_install_sh="$ac_aux_dir/shtool install -c"
1546     break
1547   fi
1548 done
1549 if test -z "$ac_aux_dir"; then
1550   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1551 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1552    { (exit 1); exit 1; }; }
1553 fi
1554 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557
1558
1559 am__api_version="1.9"
1560 # Find a good install program.  We prefer a C program (faster),
1561 # so one script is as good as another.  But avoid the broken or
1562 # incompatible versions:
1563 # SysV /etc/install, /usr/sbin/install
1564 # SunOS /usr/etc/install
1565 # IRIX /sbin/install
1566 # AIX /bin/install
1567 # AmigaOS /C/install, which installs bootblocks on floppy discs
1568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571 # OS/2's system install, which has a completely different semantic
1572 # ./install, which can be erroneously created by make from ./install.sh.
1573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1575 if test -z "$INSTALL"; then
1576 if test "${ac_cv_path_install+set}" = set; then
1577   echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 for as_dir in $PATH
1581 do
1582   IFS=$as_save_IFS
1583   test -z "$as_dir" && as_dir=.
1584   # Account for people who put trailing slashes in PATH elements.
1585 case $as_dir/ in
1586   ./ | .// | /cC/* | \
1587   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1588   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1589   /usr/ucb/* ) ;;
1590   *)
1591     # OSF1 and SCO ODT 3.0 have their own names for install.
1592     # Don't use installbsd from OSF since it installs stuff as root
1593     # by default.
1594     for ac_prog in ginstall scoinst install; do
1595       for ac_exec_ext in '' $ac_executable_extensions; do
1596         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1597           if test $ac_prog = install &&
1598             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599             # AIX install.  It has an incompatible calling convention.
1600             :
1601           elif test $ac_prog = install &&
1602             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603             # program-specific install script used by HP pwplus--don't use.
1604             :
1605           else
1606             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1607             break 3
1608           fi
1609         fi
1610       done
1611     done
1612     ;;
1613 esac
1614 done
1615
1616
1617 fi
1618   if test "${ac_cv_path_install+set}" = set; then
1619     INSTALL=$ac_cv_path_install
1620   else
1621     # As a last resort, use the slow shell script.  We don't cache a
1622     # path for INSTALL within a source directory, because that will
1623     # break other packages using the cache if that directory is
1624     # removed, or if the path is relative.
1625     INSTALL=$ac_install_sh
1626   fi
1627 fi
1628 echo "$as_me:$LINENO: result: $INSTALL" >&5
1629 echo "${ECHO_T}$INSTALL" >&6
1630
1631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1632 # It thinks the first close brace ends the variable substitution.
1633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1634
1635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1636
1637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1638
1639 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1640 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1641 # Just in case
1642 sleep 1
1643 echo timestamp > conftest.file
1644 # Do `set' in a subshell so we don't clobber the current shell's
1645 # arguments.  Must try -L first in case configure is actually a
1646 # symlink; some systems play weird games with the mod time of symlinks
1647 # (eg FreeBSD returns the mod time of the symlink's containing
1648 # directory).
1649 if (
1650    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1651    if test "$*" = "X"; then
1652       # -L didn't work.
1653       set X `ls -t $srcdir/configure conftest.file`
1654    fi
1655    rm -f conftest.file
1656    if test "$*" != "X $srcdir/configure conftest.file" \
1657       && test "$*" != "X conftest.file $srcdir/configure"; then
1658
1659       # If neither matched, then we have a broken ls.  This can happen
1660       # if, for instance, CONFIG_SHELL is bash and it inherits a
1661       # broken ls alias from the environment.  This has actually
1662       # happened.  Such a system could not be considered "sane".
1663       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1664 alias in your environment" >&5
1665 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1666 alias in your environment" >&2;}
1667    { (exit 1); exit 1; }; }
1668    fi
1669
1670    test "$2" = conftest.file
1671    )
1672 then
1673    # Ok.
1674    :
1675 else
1676    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1677 Check your system clock" >&5
1678 echo "$as_me: error: newly created file is older than distributed files!
1679 Check your system clock" >&2;}
1680    { (exit 1); exit 1; }; }
1681 fi
1682 echo "$as_me:$LINENO: result: yes" >&5
1683 echo "${ECHO_T}yes" >&6
1684 test "$program_prefix" != NONE &&
1685   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1686 # Use a double $ so make ignores it.
1687 test "$program_suffix" != NONE &&
1688   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1689 # Double any \ or $.  echo might interpret backslashes.
1690 # By default was `s,x,x', remove it if useless.
1691 cat <<\_ACEOF >conftest.sed
1692 s/[\\$]/&&/g;s/;s,x,x,$//
1693 _ACEOF
1694 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1695 rm conftest.sed
1696
1697 # expand $ac_aux_dir to an absolute path
1698 am_aux_dir=`cd $ac_aux_dir && pwd`
1699
1700 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1701 # Use eval to expand $SHELL
1702 if eval "$MISSING --run true"; then
1703   am_missing_run="$MISSING --run "
1704 else
1705   am_missing_run=
1706   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1707 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1708 fi
1709
1710 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1711   # We used to keeping the `.' as first argument, in order to
1712   # allow $(mkdir_p) to be used without argument.  As in
1713   #   $(mkdir_p) $(somedir)
1714   # where $(somedir) is conditionally defined.  However this is wrong
1715   # for two reasons:
1716   #  1. if the package is installed by a user who cannot write `.'
1717   #     make install will fail,
1718   #  2. the above comment should most certainly read
1719   #     $(mkdir_p) $(DESTDIR)$(somedir)
1720   #     so it does not work when $(somedir) is undefined and
1721   #     $(DESTDIR) is not.
1722   #  To support the latter case, we have to write
1723   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1724   #  so the `.' trick is pointless.
1725   mkdir_p='mkdir -p --'
1726 else
1727   # On NextStep and OpenStep, the `mkdir' command does not
1728   # recognize any option.  It will interpret all options as
1729   # directories to create, and then abort because `.' already
1730   # exists.
1731   for d in ./-p ./--version;
1732   do
1733     test -d $d && rmdir $d
1734   done
1735   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1736   if test -f "$ac_aux_dir/mkinstalldirs"; then
1737     mkdir_p='$(mkinstalldirs)'
1738   else
1739     mkdir_p='$(install_sh) -d'
1740   fi
1741 fi
1742
1743 for ac_prog in gawk mawk nawk awk
1744 do
1745   # Extract the first word of "$ac_prog", so it can be a program name with args.
1746 set dummy $ac_prog; ac_word=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_AWK+set}" = set; then
1750   echo $ECHO_N "(cached) $ECHO_C" >&6
1751 else
1752   if test -n "$AWK"; then
1753   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1754 else
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758   IFS=$as_save_IFS
1759   test -z "$as_dir" && as_dir=.
1760   for ac_exec_ext in '' $ac_executable_extensions; do
1761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762     ac_cv_prog_AWK="$ac_prog"
1763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764     break 2
1765   fi
1766 done
1767 done
1768
1769 fi
1770 fi
1771 AWK=$ac_cv_prog_AWK
1772 if test -n "$AWK"; then
1773   echo "$as_me:$LINENO: result: $AWK" >&5
1774 echo "${ECHO_T}$AWK" >&6
1775 else
1776   echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1778 fi
1779
1780   test -n "$AWK" && break
1781 done
1782
1783 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1784 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1785 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1786 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   cat >conftest.make <<\_ACEOF
1790 all:
1791         @echo 'ac_maketemp="$(MAKE)"'
1792 _ACEOF
1793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1794 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1795 if test -n "$ac_maketemp"; then
1796   eval ac_cv_prog_make_${ac_make}_set=yes
1797 else
1798   eval ac_cv_prog_make_${ac_make}_set=no
1799 fi
1800 rm -f conftest.make
1801 fi
1802 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1803   echo "$as_me:$LINENO: result: yes" >&5
1804 echo "${ECHO_T}yes" >&6
1805   SET_MAKE=
1806 else
1807   echo "$as_me:$LINENO: result: no" >&5
1808 echo "${ECHO_T}no" >&6
1809   SET_MAKE="MAKE=${MAKE-make}"
1810 fi
1811
1812 rm -rf .tst 2>/dev/null
1813 mkdir .tst 2>/dev/null
1814 if test -d .tst; then
1815   am__leading_dot=.
1816 else
1817   am__leading_dot=_
1818 fi
1819 rmdir .tst 2>/dev/null
1820
1821 # test to see if srcdir already configured
1822 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1823    test -f $srcdir/config.status; then
1824   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1825 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1826    { (exit 1); exit 1; }; }
1827 fi
1828
1829 # test whether we have cygpath
1830 if test -z "$CYGPATH_W"; then
1831   if (cygpath --version) >/dev/null 2>/dev/null; then
1832     CYGPATH_W='cygpath -w'
1833   else
1834     CYGPATH_W=echo
1835   fi
1836 fi
1837
1838
1839 # Define the identity of the package.
1840  PACKAGE=suPHP
1841  VERSION=0.6.0-pre1
1842
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE "$PACKAGE"
1846 _ACEOF
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define VERSION "$VERSION"
1851 _ACEOF
1852
1853 # Some tools Automake needs.
1854
1855 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1856
1857
1858 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1859
1860
1861 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1862
1863
1864 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1865
1866
1867 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1868
1869 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1870
1871 # Installed binaries are usually stripped using `strip' when the user
1872 # run `make install-strip'.  However `strip' might not be the right
1873 # tool to use in cross-compilation environments, therefore Automake
1874 # will honor the `STRIP' environment variable to overrule this program.
1875 if test "$cross_compiling" != no; then
1876   if test -n "$ac_tool_prefix"; then
1877   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1878 set dummy ${ac_tool_prefix}strip; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_STRIP+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$STRIP"; then
1885   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1886 else
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   for ac_exec_ext in '' $ac_executable_extensions; do
1893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896     break 2
1897   fi
1898 done
1899 done
1900
1901 fi
1902 fi
1903 STRIP=$ac_cv_prog_STRIP
1904 if test -n "$STRIP"; then
1905   echo "$as_me:$LINENO: result: $STRIP" >&5
1906 echo "${ECHO_T}$STRIP" >&6
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912 fi
1913 if test -z "$ac_cv_prog_STRIP"; then
1914   ac_ct_STRIP=$STRIP
1915   # Extract the first word of "strip", so it can be a program name with args.
1916 set dummy strip; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   if test -n "$ac_ct_STRIP"; then
1923   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1924 else
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928   IFS=$as_save_IFS
1929   test -z "$as_dir" && as_dir=.
1930   for ac_exec_ext in '' $ac_executable_extensions; do
1931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932     ac_cv_prog_ac_ct_STRIP="strip"
1933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934     break 2
1935   fi
1936 done
1937 done
1938
1939   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1940 fi
1941 fi
1942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1943 if test -n "$ac_ct_STRIP"; then
1944   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1945 echo "${ECHO_T}$ac_ct_STRIP" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951   STRIP=$ac_ct_STRIP
1952 else
1953   STRIP="$ac_cv_prog_STRIP"
1954 fi
1955
1956 fi
1957 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1958
1959 # We need awk for the "check" target.  The system "awk" is bad on
1960 # some platforms.
1961 # Always define AMTAR for backward compatibility.
1962
1963 AMTAR=${AMTAR-"${am_missing_run}tar"}
1964
1965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1966
1967
1968
1969
1970
1971 # Check for right directory
1972
1973 # Config headers for automake
1974           ac_config_headers="$ac_config_headers src/config.h"
1975
1976
1977 # Build time sanity check
1978 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1979 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1980 # Just in case
1981 sleep 1
1982 echo timestamp > conftest.file
1983 # Do `set' in a subshell so we don't clobber the current shell's
1984 # arguments.  Must try -L first in case configure is actually a
1985 # symlink; some systems play weird games with the mod time of symlinks
1986 # (eg FreeBSD returns the mod time of the symlink's containing
1987 # directory).
1988 if (
1989    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1990    if test "$*" = "X"; then
1991       # -L didn't work.
1992       set X `ls -t $srcdir/configure conftest.file`
1993    fi
1994    rm -f conftest.file
1995    if test "$*" != "X $srcdir/configure conftest.file" \
1996       && test "$*" != "X conftest.file $srcdir/configure"; then
1997
1998       # If neither matched, then we have a broken ls.  This can happen
1999       # if, for instance, CONFIG_SHELL is bash and it inherits a
2000       # broken ls alias from the environment.  This has actually
2001       # happened.  Such a system could not be considered "sane".
2002       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2003 alias in your environment" >&5
2004 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2005 alias in your environment" >&2;}
2006    { (exit 1); exit 1; }; }
2007    fi
2008
2009    test "$2" = conftest.file
2010    )
2011 then
2012    # Ok.
2013    :
2014 else
2015    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2016 Check your system clock" >&5
2017 echo "$as_me: error: newly created file is older than distributed files!
2018 Check your system clock" >&2;}
2019    { (exit 1); exit 1; }; }
2020 fi
2021 echo "$as_me:$LINENO: result: yes" >&5
2022 echo "${ECHO_T}yes" >&6
2023
2024 # Look for install program
2025 # Find a good install program.  We prefer a C program (faster),
2026 # so one script is as good as another.  But avoid the broken or
2027 # incompatible versions:
2028 # SysV /etc/install, /usr/sbin/install
2029 # SunOS /usr/etc/install
2030 # IRIX /sbin/install
2031 # AIX /bin/install
2032 # AmigaOS /C/install, which installs bootblocks on floppy discs
2033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2036 # OS/2's system install, which has a completely different semantic
2037 # ./install, which can be erroneously created by make from ./install.sh.
2038 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2039 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2040 if test -z "$INSTALL"; then
2041 if test "${ac_cv_path_install+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047   IFS=$as_save_IFS
2048   test -z "$as_dir" && as_dir=.
2049   # Account for people who put trailing slashes in PATH elements.
2050 case $as_dir/ in
2051   ./ | .// | /cC/* | \
2052   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2053   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2054   /usr/ucb/* ) ;;
2055   *)
2056     # OSF1 and SCO ODT 3.0 have their own names for install.
2057     # Don't use installbsd from OSF since it installs stuff as root
2058     # by default.
2059     for ac_prog in ginstall scoinst install; do
2060       for ac_exec_ext in '' $ac_executable_extensions; do
2061         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2062           if test $ac_prog = install &&
2063             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2064             # AIX install.  It has an incompatible calling convention.
2065             :
2066           elif test $ac_prog = install &&
2067             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2068             # program-specific install script used by HP pwplus--don't use.
2069             :
2070           else
2071             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2072             break 3
2073           fi
2074         fi
2075       done
2076     done
2077     ;;
2078 esac
2079 done
2080
2081
2082 fi
2083   if test "${ac_cv_path_install+set}" = set; then
2084     INSTALL=$ac_cv_path_install
2085   else
2086     # As a last resort, use the slow shell script.  We don't cache a
2087     # path for INSTALL within a source directory, because that will
2088     # break other packages using the cache if that directory is
2089     # removed, or if the path is relative.
2090     INSTALL=$ac_install_sh
2091   fi
2092 fi
2093 echo "$as_me:$LINENO: result: $INSTALL" >&5
2094 echo "${ECHO_T}$INSTALL" >&6
2095
2096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2097 # It thinks the first close brace ends the variable substitution.
2098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2099
2100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2101
2102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2103
2104
2105 # Look for compiler
2106 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111 if test -n "$ac_tool_prefix"; then
2112   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2113 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2114 echo "$as_me:$LINENO: checking for $ac_word" >&5
2115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116 if test "${ac_cv_prog_CC+set}" = set; then
2117   echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119   if test -n "$CC"; then
2120   ac_cv_prog_CC="$CC" # Let the user override the test.
2121 else
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125   IFS=$as_save_IFS
2126   test -z "$as_dir" && as_dir=.
2127   for ac_exec_ext in '' $ac_executable_extensions; do
2128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131     break 2
2132   fi
2133 done
2134 done
2135
2136 fi
2137 fi
2138 CC=$ac_cv_prog_CC
2139 if test -n "$CC"; then
2140   echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6
2142 else
2143   echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2145 fi
2146
2147 fi
2148 if test -z "$ac_cv_prog_CC"; then
2149   ac_ct_CC=$CC
2150   # Extract the first word of "gcc", so it can be a program name with args.
2151 set dummy gcc; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   if test -n "$ac_ct_CC"; then
2158   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   for ac_exec_ext in '' $ac_executable_extensions; do
2166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167     ac_cv_prog_ac_ct_CC="gcc"
2168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169     break 2
2170   fi
2171 done
2172 done
2173
2174 fi
2175 fi
2176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2177 if test -n "$ac_ct_CC"; then
2178   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2179 echo "${ECHO_T}$ac_ct_CC" >&6
2180 else
2181   echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2183 fi
2184
2185   CC=$ac_ct_CC
2186 else
2187   CC="$ac_cv_prog_CC"
2188 fi
2189
2190 if test -z "$CC"; then
2191   if test -n "$ac_tool_prefix"; then
2192   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}cc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test -n "$CC"; then
2200   ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
2206   test -z "$as_dir" && as_dir=.
2207   for ac_exec_ext in '' $ac_executable_extensions; do
2208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209     ac_cv_prog_CC="${ac_tool_prefix}cc"
2210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211     break 2
2212   fi
2213 done
2214 done
2215
2216 fi
2217 fi
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220   echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2222 else
2223   echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2226
2227 fi
2228 if test -z "$ac_cv_prog_CC"; then
2229   ac_ct_CC=$CC
2230   # Extract the first word of "cc", so it can be a program name with args.
2231 set dummy cc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$ac_ct_CC"; then
2238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247     ac_cv_prog_ac_ct_CC="cc"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253
2254 fi
2255 fi
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2260 else
2261   echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2263 fi
2264
2265   CC=$ac_ct_CC
2266 else
2267   CC="$ac_cv_prog_CC"
2268 fi
2269
2270 fi
2271 if test -z "$CC"; then
2272   # Extract the first word of "cc", so it can be a program name with args.
2273 set dummy cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$CC"; then
2280   ac_cv_prog_CC="$CC" # Let the user override the test.
2281 else
2282   ac_prog_rejected=no
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2291        ac_prog_rejected=yes
2292        continue
2293      fi
2294     ac_cv_prog_CC="cc"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300
2301 if test $ac_prog_rejected = yes; then
2302   # We found a bogon in the path, so make sure we never use it.
2303   set dummy $ac_cv_prog_CC
2304   shift
2305   if test $# != 0; then
2306     # We chose a different compiler from the bogus one.
2307     # However, it has the same basename, so the bogon will be chosen
2308     # first if we set CC to just the basename; use the full file name.
2309     shift
2310     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2311   fi
2312 fi
2313 fi
2314 fi
2315 CC=$ac_cv_prog_CC
2316 if test -n "$CC"; then
2317   echo "$as_me:$LINENO: result: $CC" >&5
2318 echo "${ECHO_T}$CC" >&6
2319 else
2320   echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6
2322 fi
2323
2324 fi
2325 if test -z "$CC"; then
2326   if test -n "$ac_tool_prefix"; then
2327   for ac_prog in cl
2328   do
2329     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   if test -n "$CC"; then
2337   ac_cv_prog_CC="$CC" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348     break 2
2349   fi
2350 done
2351 done
2352
2353 fi
2354 fi
2355 CC=$ac_cv_prog_CC
2356 if test -n "$CC"; then
2357   echo "$as_me:$LINENO: result: $CC" >&5
2358 echo "${ECHO_T}$CC" >&6
2359 else
2360   echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6
2362 fi
2363
2364     test -n "$CC" && break
2365   done
2366 fi
2367 if test -z "$CC"; then
2368   ac_ct_CC=$CC
2369   for ac_prog in cl
2370 do
2371   # Extract the first word of "$ac_prog", so it can be a program name with args.
2372 set dummy $ac_prog; ac_word=$2
2373 echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2376   echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378   if test -n "$ac_ct_CC"; then
2379   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2380 else
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 for as_dir in $PATH
2383 do
2384   IFS=$as_save_IFS
2385   test -z "$as_dir" && as_dir=.
2386   for ac_exec_ext in '' $ac_executable_extensions; do
2387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2388     ac_cv_prog_ac_ct_CC="$ac_prog"
2389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390     break 2
2391   fi
2392 done
2393 done
2394
2395 fi
2396 fi
2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398 if test -n "$ac_ct_CC"; then
2399   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2400 echo "${ECHO_T}$ac_ct_CC" >&6
2401 else
2402   echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6
2404 fi
2405
2406   test -n "$ac_ct_CC" && break
2407 done
2408
2409   CC=$ac_ct_CC
2410 fi
2411
2412 fi
2413
2414
2415 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2416 See \`config.log' for more details." >&5
2417 echo "$as_me: error: no acceptable C compiler found in \$PATH
2418 See \`config.log' for more details." >&2;}
2419    { (exit 1); exit 1; }; }
2420
2421 # Provide some information about the compiler.
2422 echo "$as_me:$LINENO:" \
2423      "checking for C compiler version" >&5
2424 ac_compiler=`set X $ac_compile; echo $2`
2425 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2426   (eval $ac_compiler --version </dev/null >&5) 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }
2430 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2431   (eval $ac_compiler -v </dev/null >&5) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }
2435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2436   (eval $ac_compiler -V </dev/null >&5) 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }
2440
2441 cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h.  */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h.  */
2447
2448 int
2449 main ()
2450 {
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 ac_clean_files_save=$ac_clean_files
2457 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2458 # Try to create an executable without -o first, disregard a.out.
2459 # It will help us diagnose broken compilers, and finding out an intuition
2460 # of exeext.
2461 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2462 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2463 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2464 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2465   (eval $ac_link_default) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; then
2469   # Find the output, starting from the most likely.  This scheme is
2470 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2471 # resort.
2472
2473 # Be careful to initialize this variable, since it used to be cached.
2474 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2475 ac_cv_exeext=
2476 # b.out is created by i960 compilers.
2477 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2478 do
2479   test -f "$ac_file" || continue
2480   case $ac_file in
2481     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2482         ;;
2483     conftest.$ac_ext )
2484         # This is the source file.
2485         ;;
2486     [ab].out )
2487         # We found the default executable, but exeext='' is most
2488         # certainly right.
2489         break;;
2490     *.* )
2491         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2492         # FIXME: I believe we export ac_cv_exeext for Libtool,
2493         # but it would be cool to find out if it's true.  Does anybody
2494         # maintain Libtool? --akim.
2495         export ac_cv_exeext
2496         break;;
2497     * )
2498         break;;
2499   esac
2500 done
2501 else
2502   echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: C compiler cannot create executables
2508 See \`config.log' for more details." >&2;}
2509    { (exit 77); exit 77; }; }
2510 fi
2511
2512 ac_exeext=$ac_cv_exeext
2513 echo "$as_me:$LINENO: result: $ac_file" >&5
2514 echo "${ECHO_T}$ac_file" >&6
2515
2516 # Check the compiler produces executables we can run.  If not, either
2517 # the compiler is broken, or we cross compile.
2518 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2519 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2520 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2521 # If not cross compiling, check that we can run a simple program.
2522 if test "$cross_compiling" != yes; then
2523   if { ac_try='./$ac_file'
2524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525   (eval $ac_try) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; }; then
2529     cross_compiling=no
2530   else
2531     if test "$cross_compiling" = maybe; then
2532         cross_compiling=yes
2533     else
2534         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2535 If you meant to cross compile, use \`--host'.
2536 See \`config.log' for more details." >&5
2537 echo "$as_me: error: cannot run C compiled programs.
2538 If you meant to cross compile, use \`--host'.
2539 See \`config.log' for more details." >&2;}
2540    { (exit 1); exit 1; }; }
2541     fi
2542   fi
2543 fi
2544 echo "$as_me:$LINENO: result: yes" >&5
2545 echo "${ECHO_T}yes" >&6
2546
2547 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2548 ac_clean_files=$ac_clean_files_save
2549 # Check the compiler produces executables we can run.  If not, either
2550 # the compiler is broken, or we cross compile.
2551 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2552 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2553 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2554 echo "${ECHO_T}$cross_compiling" >&6
2555
2556 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2557 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2559   (eval $ac_link) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }; then
2563   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2564 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2565 # work properly (i.e., refer to `conftest.exe'), while it won't with
2566 # `rm'.
2567 for ac_file in conftest.exe conftest conftest.*; do
2568   test -f "$ac_file" || continue
2569   case $ac_file in
2570     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2571     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572           export ac_cv_exeext
2573           break;;
2574     * ) break;;
2575   esac
2576 done
2577 else
2578   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2581 See \`config.log' for more details." >&2;}
2582    { (exit 1); exit 1; }; }
2583 fi
2584
2585 rm -f conftest$ac_cv_exeext
2586 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2587 echo "${ECHO_T}$ac_cv_exeext" >&6
2588
2589 rm -f conftest.$ac_ext
2590 EXEEXT=$ac_cv_exeext
2591 ac_exeext=$EXEEXT
2592 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2593 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2594 if test "${ac_cv_objext+set}" = set; then
2595   echo $ECHO_N "(cached) $ECHO_C" >&6
2596 else
2597   cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h.  */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h.  */
2603
2604 int
2605 main ()
2606 {
2607
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.o conftest.obj
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   (eval $ac_compile) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; then
2618   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2619   case $ac_file in
2620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2621     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2622        break;;
2623   esac
2624 done
2625 else
2626   echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2628
2629 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2630 See \`config.log' for more details." >&5
2631 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2632 See \`config.log' for more details." >&2;}
2633    { (exit 1); exit 1; }; }
2634 fi
2635
2636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2637 fi
2638 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2639 echo "${ECHO_T}$ac_cv_objext" >&6
2640 OBJEXT=$ac_cv_objext
2641 ac_objext=$OBJEXT
2642 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2643 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2644 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653
2654 int
2655 main ()
2656 {
2657 #ifndef __GNUC__
2658        choke me
2659 #endif
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -z "$ac_c_werror_flag"
2675                          || test ! -s conftest.err'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   ac_compiler_gnu=yes
2688 else
2689   echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 ac_compiler_gnu=no
2693 fi
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2696
2697 fi
2698 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2699 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2700 GCC=`test $ac_compiler_gnu = yes && echo yes`
2701 ac_test_CFLAGS=${CFLAGS+set}
2702 ac_save_CFLAGS=$CFLAGS
2703 CFLAGS="-g"
2704 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2705 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2706 if test "${ac_cv_prog_cc_g+set}" = set; then
2707   echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709   cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h.  */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h.  */
2715
2716 int
2717 main ()
2718 {
2719
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726   (eval $ac_compile) 2>conftest.er1
2727   ac_status=$?
2728   grep -v '^ *+' conftest.er1 >conftest.err
2729   rm -f conftest.er1
2730   cat conftest.err >&5
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); } &&
2733          { ac_try='test -z "$ac_c_werror_flag"
2734                          || test ! -s conftest.err'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; } &&
2740          { ac_try='test -s conftest.$ac_objext'
2741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; }; then
2746   ac_cv_prog_cc_g=yes
2747 else
2748   echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2750
2751 ac_cv_prog_cc_g=no
2752 fi
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 fi
2755 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2757 if test "$ac_test_CFLAGS" = set; then
2758   CFLAGS=$ac_save_CFLAGS
2759 elif test $ac_cv_prog_cc_g = yes; then
2760   if test "$GCC" = yes; then
2761     CFLAGS="-g -O2"
2762   else
2763     CFLAGS="-g"
2764   fi
2765 else
2766   if test "$GCC" = yes; then
2767     CFLAGS="-O2"
2768   else
2769     CFLAGS=
2770   fi
2771 fi
2772 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2773 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2774 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2775   echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777   ac_cv_prog_cc_stdc=no
2778 ac_save_CC=$CC
2779 cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785 #include <stdarg.h>
2786 #include <stdio.h>
2787 #include <sys/types.h>
2788 #include <sys/stat.h>
2789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2790 struct buf { int x; };
2791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2792 static char *e (p, i)
2793      char **p;
2794      int i;
2795 {
2796   return p[i];
2797 }
2798 static char *f (char * (*g) (char **, int), char **p, ...)
2799 {
2800   char *s;
2801   va_list v;
2802   va_start (v,p);
2803   s = g (p, va_arg (v,int));
2804   va_end (v);
2805   return s;
2806 }
2807
2808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2809    function prototypes and stuff, but not '\xHH' hex character constants.
2810    These don't provoke an error unfortunately, instead are silently treated
2811    as 'x'.  The following induces an error, until -std1 is added to get
2812    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2813    array size at least.  It's necessary to write '\x00'==0 to get something
2814    that's true only with -std1.  */
2815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2816
2817 int test (int i, double x);
2818 struct s1 {int (*f) (int a);};
2819 struct s2 {int (*f) (double a);};
2820 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2821 int argc;
2822 char **argv;
2823 int
2824 main ()
2825 {
2826 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 # Don't try gcc -ansi; that turns off useful extensions and
2832 # breaks some systems' header files.
2833 # AIX                   -qlanglvl=ansi
2834 # Ultrix and OSF/1      -std1
2835 # HP-UX 10.20 and later -Ae
2836 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2837 # SVR4                  -Xc -D__EXTENSIONS__
2838 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2839 do
2840   CC="$ac_save_CC $ac_arg"
2841   rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843   (eval $ac_compile) 2>conftest.er1
2844   ac_status=$?
2845   grep -v '^ *+' conftest.er1 >conftest.err
2846   rm -f conftest.er1
2847   cat conftest.err >&5
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); } &&
2850          { ac_try='test -z "$ac_c_werror_flag"
2851                          || test ! -s conftest.err'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; } &&
2857          { ac_try='test -s conftest.$ac_objext'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; }; then
2863   ac_cv_prog_cc_stdc=$ac_arg
2864 break
2865 else
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 fi
2870 rm -f conftest.err conftest.$ac_objext
2871 done
2872 rm -f conftest.$ac_ext conftest.$ac_objext
2873 CC=$ac_save_CC
2874
2875 fi
2876
2877 case "x$ac_cv_prog_cc_stdc" in
2878   x|xno)
2879     echo "$as_me:$LINENO: result: none needed" >&5
2880 echo "${ECHO_T}none needed" >&6 ;;
2881   *)
2882     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2883 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2884     CC="$CC $ac_cv_prog_cc_stdc" ;;
2885 esac
2886
2887 # Some people use a C++ compiler to compile C.  Since we use `exit',
2888 # in C++ we need to declare it.  In case someone uses the same compiler
2889 # for both compiling C and C++ we need to have the C++ compiler decide
2890 # the declaration of exit, since it's the most demanding environment.
2891 cat >conftest.$ac_ext <<_ACEOF
2892 #ifndef __cplusplus
2893   choke me
2894 #endif
2895 _ACEOF
2896 rm -f conftest.$ac_objext
2897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2898   (eval $ac_compile) 2>conftest.er1
2899   ac_status=$?
2900   grep -v '^ *+' conftest.er1 >conftest.err
2901   rm -f conftest.er1
2902   cat conftest.err >&5
2903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904   (exit $ac_status); } &&
2905          { ac_try='test -z "$ac_c_werror_flag"
2906                          || test ! -s conftest.err'
2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908   (eval $ac_try) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; } &&
2912          { ac_try='test -s conftest.$ac_objext'
2913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914   (eval $ac_try) 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }; }; then
2918   for ac_declaration in \
2919    '' \
2920    'extern "C" void std::exit (int) throw (); using std::exit;' \
2921    'extern "C" void std::exit (int); using std::exit;' \
2922    'extern "C" void exit (int) throw ();' \
2923    'extern "C" void exit (int);' \
2924    'void exit (int);'
2925 do
2926   cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 $ac_declaration
2933 #include <stdlib.h>
2934 int
2935 main ()
2936 {
2937 exit (42);
2938   ;
2939   return 0;
2940 }
2941 _ACEOF
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944   (eval $ac_compile) 2>conftest.er1
2945   ac_status=$?
2946   grep -v '^ *+' conftest.er1 >conftest.err
2947   rm -f conftest.er1
2948   cat conftest.err >&5
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); } &&
2951          { ac_try='test -z "$ac_c_werror_flag"
2952                          || test ! -s conftest.err'
2953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954   (eval $ac_try) 2>&5
2955   ac_status=$?
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); }; } &&
2958          { ac_try='test -s conftest.$ac_objext'
2959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960   (eval $ac_try) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; }; then
2964   :
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969 continue
2970 fi
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972   cat >conftest.$ac_ext <<_ACEOF
2973 /* confdefs.h.  */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h.  */
2978 $ac_declaration
2979 int
2980 main ()
2981 {
2982 exit (42);
2983   ;
2984   return 0;
2985 }
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989   (eval $ac_compile) 2>conftest.er1
2990   ac_status=$?
2991   grep -v '^ *+' conftest.er1 >conftest.err
2992   rm -f conftest.er1
2993   cat conftest.err >&5
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); } &&
2996          { ac_try='test -z "$ac_c_werror_flag"
2997                          || test ! -s conftest.err'
2998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999   (eval $ac_try) 2>&5
3000   ac_status=$?
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); }; } &&
3003          { ac_try='test -s conftest.$ac_objext'
3004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005   (eval $ac_try) 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; }; then
3009   break
3010 else
3011   echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 fi
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016 done
3017 rm -f conftest*
3018 if test -n "$ac_declaration"; then
3019   echo '#ifdef __cplusplus' >>confdefs.h
3020   echo $ac_declaration      >>confdefs.h
3021   echo '#endif'             >>confdefs.h
3022 fi
3023
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 fi
3029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3030 ac_ext=c
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 DEPDIR="${am__leading_dot}deps"
3036
3037           ac_config_commands="$ac_config_commands depfiles"
3038
3039
3040 am_make=${MAKE-make}
3041 cat > confinc << 'END'
3042 am__doit:
3043         @echo done
3044 .PHONY: am__doit
3045 END
3046 # If we don't find an include directive, just comment out the code.
3047 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3048 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3049 am__include="#"
3050 am__quote=
3051 _am_result=none
3052 # First try GNU make style include.
3053 echo "include confinc" > confmf
3054 # We grep out `Entering directory' and `Leaving directory'
3055 # messages which can occur if `w' ends up in MAKEFLAGS.
3056 # In particular we don't look at `^make:' because GNU make might
3057 # be invoked under some other name (usually "gmake"), in which
3058 # case it prints its new name instead of `make'.
3059 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3060    am__include=include
3061    am__quote=
3062    _am_result=GNU
3063 fi
3064 # Now try BSD make style include.
3065 if test "$am__include" = "#"; then
3066    echo '.include "confinc"' > confmf
3067    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3068       am__include=.include
3069       am__quote="\""
3070       _am_result=BSD
3071    fi
3072 fi
3073
3074
3075 echo "$as_me:$LINENO: result: $_am_result" >&5
3076 echo "${ECHO_T}$_am_result" >&6
3077 rm -f confinc confmf
3078
3079 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3080 if test "${enable_dependency_tracking+set}" = set; then
3081   enableval="$enable_dependency_tracking"
3082
3083 fi;
3084 if test "x$enable_dependency_tracking" != xno; then
3085   am_depcomp="$ac_aux_dir/depcomp"
3086   AMDEPBACKSLASH='\'
3087 fi
3088
3089
3090 if test "x$enable_dependency_tracking" != xno; then
3091   AMDEP_TRUE=
3092   AMDEP_FALSE='#'
3093 else
3094   AMDEP_TRUE='#'
3095   AMDEP_FALSE=
3096 fi
3097
3098
3099
3100
3101 depcc="$CC"   am_compiler_list=
3102
3103 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3104 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3105 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3109   # We make a subdir and do the tests there.  Otherwise we can end up
3110   # making bogus files that we don't know about and never remove.  For
3111   # instance it was reported that on HP-UX the gcc test will end up
3112   # making a dummy file named `D' -- because `-MD' means `put the output
3113   # in D'.
3114   mkdir conftest.dir
3115   # Copy depcomp to subdir because otherwise we won't find it if we're
3116   # using a relative directory.
3117   cp "$am_depcomp" conftest.dir
3118   cd conftest.dir
3119   # We will build objects and dependencies in a subdirectory because
3120   # it helps to detect inapplicable dependency modes.  For instance
3121   # both Tru64's cc and ICC support -MD to output dependencies as a
3122   # side effect of compilation, but ICC will put the dependencies in
3123   # the current directory while Tru64 will put them in the object
3124   # directory.
3125   mkdir sub
3126
3127   am_cv_CC_dependencies_compiler_type=none
3128   if test "$am_compiler_list" = ""; then
3129      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3130   fi
3131   for depmode in $am_compiler_list; do
3132     # Setup a source with many dependencies, because some compilers
3133     # like to wrap large dependency lists on column 80 (with \), and
3134     # we should not choose a depcomp mode which is confused by this.
3135     #
3136     # We need to recreate these files for each test, as the compiler may
3137     # overwrite some of them when testing with obscure command lines.
3138     # This happens at least with the AIX C compiler.
3139     : > sub/conftest.c
3140     for i in 1 2 3 4 5 6; do
3141       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3142       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3143       # Solaris 8's {/usr,}/bin/sh.
3144       touch sub/conftst$i.h
3145     done
3146     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3147
3148     case $depmode in
3149     nosideeffect)
3150       # after this tag, mechanisms are not by side-effect, so they'll
3151       # only be used when explicitly requested
3152       if test "x$enable_dependency_tracking" = xyes; then
3153         continue
3154       else
3155         break
3156       fi
3157       ;;
3158     none) break ;;
3159     esac
3160     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3161     # mode.  It turns out that the SunPro C++ compiler does not properly
3162     # handle `-M -o', and we need to detect this.
3163     if depmode=$depmode \
3164        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3165        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3166        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3167          >/dev/null 2>conftest.err &&
3168        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3169        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3170        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3171       # icc doesn't choke on unknown options, it will just issue warnings
3172       # or remarks (even with -Werror).  So we grep stderr for any message
3173       # that says an option was ignored or not supported.
3174       # When given -MP, icc 7.0 and 7.1 complain thusly:
3175       #   icc: Command line warning: ignoring option '-M'; no argument required
3176       # The diagnosis changed in icc 8.0:
3177       #   icc: Command line remark: option '-MP' not supported
3178       if (grep 'ignoring option' conftest.err ||
3179           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3180         am_cv_CC_dependencies_compiler_type=$depmode
3181         break
3182       fi
3183     fi
3184   done
3185
3186   cd ..
3187   rm -rf conftest.dir
3188 else
3189   am_cv_CC_dependencies_compiler_type=none
3190 fi
3191
3192 fi
3193 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3194 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3196
3197
3198
3199 if
3200   test "x$enable_dependency_tracking" != xno \
3201   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3202   am__fastdepCC_TRUE=
3203   am__fastdepCC_FALSE='#'
3204 else
3205   am__fastdepCC_TRUE='#'
3206   am__fastdepCC_FALSE=
3207 fi
3208
3209
3210 ac_ext=cc
3211 ac_cpp='$CXXCPP $CPPFLAGS'
3212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3217   do
3218     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_prog_CXX+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   if test -n "$CXX"; then
3226   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231   IFS=$as_save_IFS
3232   test -z "$as_dir" && as_dir=.
3233   for ac_exec_ext in '' $ac_executable_extensions; do
3234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237     break 2
3238   fi
3239 done
3240 done
3241
3242 fi
3243 fi
3244 CXX=$ac_cv_prog_CXX
3245 if test -n "$CXX"; then
3246   echo "$as_me:$LINENO: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253     test -n "$CXX" && break
3254   done
3255 fi
3256 if test -z "$CXX"; then
3257   ac_ct_CXX=$CXX
3258   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3259 do
3260   # Extract the first word of "$ac_prog", so it can be a program name with args.
3261 set dummy $ac_prog; ac_word=$2
3262 echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3265   echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267   if test -n "$ac_ct_CXX"; then
3268   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3269 else
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_prog_ac_ct_CXX="$ac_prog"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284 fi
3285 fi
3286 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3287 if test -n "$ac_ct_CXX"; then
3288   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3289 echo "${ECHO_T}$ac_ct_CXX" >&6
3290 else
3291   echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3293 fi
3294
3295   test -n "$ac_ct_CXX" && break
3296 done
3297 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3298
3299   CXX=$ac_ct_CXX
3300 fi
3301
3302
3303 # Provide some information about the compiler.
3304 echo "$as_me:$LINENO:" \
3305      "checking for C++ compiler version" >&5
3306 ac_compiler=`set X $ac_compile; echo $2`
3307 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3308   (eval $ac_compiler --version </dev/null >&5) 2>&5
3309   ac_status=$?
3310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); }
3312 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3313   (eval $ac_compiler -v </dev/null >&5) 2>&5
3314   ac_status=$?
3315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316   (exit $ac_status); }
3317 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3318   (eval $ac_compiler -V </dev/null >&5) 2>&5
3319   ac_status=$?
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); }
3322
3323 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3324 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3325 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3326   echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328   cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334
3335 int
3336 main ()
3337 {
3338 #ifndef __GNUC__
3339        choke me
3340 #endif
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3348   (eval $ac_compile) 2>conftest.er1
3349   ac_status=$?
3350   grep -v '^ *+' conftest.er1 >conftest.err
3351   rm -f conftest.er1
3352   cat conftest.err >&5
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); } &&
3355          { ac_try='test -z "$ac_cxx_werror_flag"
3356                          || test ! -s conftest.err'
3357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358   (eval $ac_try) 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; } &&
3362          { ac_try='test -s conftest.$ac_objext'
3363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364   (eval $ac_try) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; }; then
3368   ac_compiler_gnu=yes
3369 else
3370   echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373 ac_compiler_gnu=no
3374 fi
3375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3377
3378 fi
3379 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3380 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3381 GXX=`test $ac_compiler_gnu = yes && echo yes`
3382 ac_test_CXXFLAGS=${CXXFLAGS+set}
3383 ac_save_CXXFLAGS=$CXXFLAGS
3384 CXXFLAGS="-g"
3385 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3386 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3387 if test "${ac_cv_prog_cxx_g+set}" = set; then
3388   echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390   cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h.  */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h.  */
3396
3397 int
3398 main ()
3399 {
3400
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407   (eval $ac_compile) 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } &&
3414          { ac_try='test -z "$ac_cxx_werror_flag"
3415                          || test ! -s conftest.err'
3416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417   (eval $ac_try) 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); }; } &&
3421          { ac_try='test -s conftest.$ac_objext'
3422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423   (eval $ac_try) 2>&5
3424   ac_status=$?
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); }; }; then
3427   ac_cv_prog_cxx_g=yes
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 ac_cv_prog_cxx_g=no
3433 fi
3434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3435 fi
3436 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3437 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3438 if test "$ac_test_CXXFLAGS" = set; then
3439   CXXFLAGS=$ac_save_CXXFLAGS
3440 elif test $ac_cv_prog_cxx_g = yes; then
3441   if test "$GXX" = yes; then
3442     CXXFLAGS="-g -O2"
3443   else
3444     CXXFLAGS="-g"
3445   fi
3446 else
3447   if test "$GXX" = yes; then
3448     CXXFLAGS="-O2"
3449   else
3450     CXXFLAGS=
3451   fi
3452 fi
3453 for ac_declaration in \
3454    '' \
3455    'extern "C" void std::exit (int) throw (); using std::exit;' \
3456    'extern "C" void std::exit (int); using std::exit;' \
3457    'extern "C" void exit (int) throw ();' \
3458    'extern "C" void exit (int);' \
3459    'void exit (int);'
3460 do
3461   cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h.  */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h.  */
3467 $ac_declaration
3468 #include <stdlib.h>
3469 int
3470 main ()
3471 {
3472 exit (42);
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479   (eval $ac_compile) 2>conftest.er1
3480   ac_status=$?
3481   grep -v '^ *+' conftest.er1 >conftest.err
3482   rm -f conftest.er1
3483   cat conftest.err >&5
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); } &&
3486          { ac_try='test -z "$ac_cxx_werror_flag"
3487                          || test ! -s conftest.err'
3488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489   (eval $ac_try) 2>&5
3490   ac_status=$?
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); }; } &&
3493          { ac_try='test -s conftest.$ac_objext'
3494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495   (eval $ac_try) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); }; }; then
3499   :
3500 else
3501   echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504 continue
3505 fi
3506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507   cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 $ac_declaration
3514 int
3515 main ()
3516 {
3517 exit (42);
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 rm -f conftest.$ac_objext
3523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3524   (eval $ac_compile) 2>conftest.er1
3525   ac_status=$?
3526   grep -v '^ *+' conftest.er1 >conftest.err
3527   rm -f conftest.er1
3528   cat conftest.err >&5
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); } &&
3531          { ac_try='test -z "$ac_cxx_werror_flag"
3532                          || test ! -s conftest.err'
3533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534   (eval $ac_try) 2>&5
3535   ac_status=$?
3536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537   (exit $ac_status); }; } &&
3538          { ac_try='test -s conftest.$ac_objext'
3539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540   (eval $ac_try) 2>&5
3541   ac_status=$?
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); }; }; then
3544   break
3545 else
3546   echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 fi
3550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551 done
3552 rm -f conftest*
3553 if test -n "$ac_declaration"; then
3554   echo '#ifdef __cplusplus' >>confdefs.h
3555   echo $ac_declaration      >>confdefs.h
3556   echo '#endif'             >>confdefs.h
3557 fi
3558
3559 ac_ext=c
3560 ac_cpp='$CPP $CPPFLAGS'
3561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
3565 depcc="$CXX"  am_compiler_list=
3566
3567 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3568 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3569 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3573   # We make a subdir and do the tests there.  Otherwise we can end up
3574   # making bogus files that we don't know about and never remove.  For
3575   # instance it was reported that on HP-UX the gcc test will end up
3576   # making a dummy file named `D' -- because `-MD' means `put the output
3577   # in D'.
3578   mkdir conftest.dir
3579   # Copy depcomp to subdir because otherwise we won't find it if we're
3580   # using a relative directory.
3581   cp "$am_depcomp" conftest.dir
3582   cd conftest.dir
3583   # We will build objects and dependencies in a subdirectory because
3584   # it helps to detect inapplicable dependency modes.  For instance
3585   # both Tru64's cc and ICC support -MD to output dependencies as a
3586   # side effect of compilation, but ICC will put the dependencies in
3587   # the current directory while Tru64 will put them in the object
3588   # directory.
3589   mkdir sub
3590
3591   am_cv_CXX_dependencies_compiler_type=none
3592   if test "$am_compiler_list" = ""; then
3593      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3594   fi
3595   for depmode in $am_compiler_list; do
3596     # Setup a source with many dependencies, because some compilers
3597     # like to wrap large dependency lists on column 80 (with \), and
3598     # we should not choose a depcomp mode which is confused by this.
3599     #
3600     # We need to recreate these files for each test, as the compiler may
3601     # overwrite some of them when testing with obscure command lines.
3602     # This happens at least with the AIX C compiler.
3603     : > sub/conftest.c
3604     for i in 1 2 3 4 5 6; do
3605       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3606       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3607       # Solaris 8's {/usr,}/bin/sh.
3608       touch sub/conftst$i.h
3609     done
3610     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3611
3612     case $depmode in
3613     nosideeffect)
3614       # after this tag, mechanisms are not by side-effect, so they'll
3615       # only be used when explicitly requested
3616       if test "x$enable_dependency_tracking" = xyes; then
3617         continue
3618       else
3619         break
3620       fi
3621       ;;
3622     none) break ;;
3623     esac
3624     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3625     # mode.  It turns out that the SunPro C++ compiler does not properly
3626     # handle `-M -o', and we need to detect this.
3627     if depmode=$depmode \
3628        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3629        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3630        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3631          >/dev/null 2>conftest.err &&
3632        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3633        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3634        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3635       # icc doesn't choke on unknown options, it will just issue warnings
3636       # or remarks (even with -Werror).  So we grep stderr for any message
3637       # that says an option was ignored or not supported.
3638       # When given -MP, icc 7.0 and 7.1 complain thusly:
3639       #   icc: Command line warning: ignoring option '-M'; no argument required
3640       # The diagnosis changed in icc 8.0:
3641       #   icc: Command line remark: option '-MP' not supported
3642       if (grep 'ignoring option' conftest.err ||
3643           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3644         am_cv_CXX_dependencies_compiler_type=$depmode
3645         break
3646       fi
3647     fi
3648   done
3649
3650   cd ..
3651   rm -rf conftest.dir
3652 else
3653   am_cv_CXX_dependencies_compiler_type=none
3654 fi
3655
3656 fi
3657 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3658 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3659 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3660
3661
3662
3663 if
3664   test "x$enable_dependency_tracking" != xno \
3665   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3666   am__fastdepCXX_TRUE=
3667   am__fastdepCXX_FALSE='#'
3668 else
3669   am__fastdepCXX_TRUE='#'
3670   am__fastdepCXX_FALSE=
3671 fi
3672
3673
3674 # Check whether --enable-shared or --disable-shared was given.
3675 if test "${enable_shared+set}" = set; then
3676   enableval="$enable_shared"
3677   p=${PACKAGE-default}
3678     case $enableval in
3679     yes) enable_shared=yes ;;
3680     no) enable_shared=no ;;
3681     *)
3682       enable_shared=no
3683       # Look at the argument we got.  We use all the common list separators.
3684       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3685       for pkg in $enableval; do
3686         IFS="$lt_save_ifs"
3687         if test "X$pkg" = "X$p"; then
3688           enable_shared=yes
3689         fi
3690       done
3691       IFS="$lt_save_ifs"
3692       ;;
3693     esac
3694 else
3695   enable_shared=yes
3696 fi;
3697
3698 # Check whether --enable-static or --disable-static was given.
3699 if test "${enable_static+set}" = set; then
3700   enableval="$enable_static"
3701   p=${PACKAGE-default}
3702     case $enableval in
3703     yes) enable_static=yes ;;
3704     no) enable_static=no ;;
3705     *)
3706      enable_static=no
3707       # Look at the argument we got.  We use all the common list separators.
3708       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3709       for pkg in $enableval; do
3710         IFS="$lt_save_ifs"
3711         if test "X$pkg" = "X$p"; then
3712           enable_static=yes
3713         fi
3714       done
3715       IFS="$lt_save_ifs"
3716       ;;
3717     esac
3718 else
3719   enable_static=yes
3720 fi;
3721
3722 # Check whether --enable-fast-install or --disable-fast-install was given.
3723 if test "${enable_fast_install+set}" = set; then
3724   enableval="$enable_fast_install"
3725   p=${PACKAGE-default}
3726     case $enableval in
3727     yes) enable_fast_install=yes ;;
3728     no) enable_fast_install=no ;;
3729     *)
3730       enable_fast_install=no
3731       # Look at the argument we got.  We use all the common list separators.
3732       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3733       for pkg in $enableval; do
3734         IFS="$lt_save_ifs"
3735         if test "X$pkg" = "X$p"; then
3736           enable_fast_install=yes
3737         fi
3738       done
3739       IFS="$lt_save_ifs"
3740       ;;
3741     esac
3742 else
3743   enable_fast_install=yes
3744 fi;
3745
3746 # Make sure we can run config.sub.
3747 $ac_config_sub sun4 >/dev/null 2>&1 ||
3748   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3749 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3750    { (exit 1); exit 1; }; }
3751
3752 echo "$as_me:$LINENO: checking build system type" >&5
3753 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3754 if test "${ac_cv_build+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   ac_cv_build_alias=$build_alias
3758 test -z "$ac_cv_build_alias" &&
3759   ac_cv_build_alias=`$ac_config_guess`
3760 test -z "$ac_cv_build_alias" &&
3761   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3762 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3763    { (exit 1); exit 1; }; }
3764 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3765   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3766 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3767    { (exit 1); exit 1; }; }
3768
3769 fi
3770 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3771 echo "${ECHO_T}$ac_cv_build" >&6
3772 build=$ac_cv_build
3773 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3774 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3775 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3776
3777
3778 echo "$as_me:$LINENO: checking host system type" >&5
3779 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3780 if test "${ac_cv_host+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   ac_cv_host_alias=$host_alias
3784 test -z "$ac_cv_host_alias" &&
3785   ac_cv_host_alias=$ac_cv_build_alias
3786 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3787   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3788 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3789    { (exit 1); exit 1; }; }
3790
3791 fi
3792 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3793 echo "${ECHO_T}$ac_cv_host" >&6
3794 host=$ac_cv_host
3795 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3796 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3797 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3798
3799
3800 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3801 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3802 if test "${lt_cv_path_SED+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   # Loop through the user's path and test for sed and gsed.
3806 # Then use that list of sed's as ones to test for truncation.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810   IFS=$as_save_IFS
3811   test -z "$as_dir" && as_dir=.
3812   for lt_ac_prog in sed gsed; do
3813     for ac_exec_ext in '' $ac_executable_extensions; do
3814       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3815         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3816       fi
3817     done
3818   done
3819 done
3820 lt_ac_max=0
3821 lt_ac_count=0
3822 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3823 # along with /bin/sed that truncates output.
3824 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3825   test ! -f $lt_ac_sed && continue
3826   cat /dev/null > conftest.in
3827   lt_ac_count=0
3828   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3829   # Check for GNU sed and select it if it is found.
3830   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3831     lt_cv_path_SED=$lt_ac_sed
3832     break
3833   fi
3834   while true; do
3835     cat conftest.in conftest.in >conftest.tmp
3836     mv conftest.tmp conftest.in
3837     cp conftest.in conftest.nl
3838     echo >>conftest.nl
3839     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3840     cmp -s conftest.out conftest.nl || break
3841     # 10000 chars as input seems more than enough
3842     test $lt_ac_count -gt 10 && break
3843     lt_ac_count=`expr $lt_ac_count + 1`
3844     if test $lt_ac_count -gt $lt_ac_max; then
3845       lt_ac_max=$lt_ac_count
3846       lt_cv_path_SED=$lt_ac_sed
3847     fi
3848   done
3849 done
3850
3851 fi
3852
3853 SED=$lt_cv_path_SED
3854 echo "$as_me:$LINENO: result: $SED" >&5
3855 echo "${ECHO_T}$SED" >&6
3856
3857 echo "$as_me:$LINENO: checking for egrep" >&5
3858 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3859 if test "${ac_cv_prog_egrep+set}" = set; then
3860   echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3863     then ac_cv_prog_egrep='grep -E'
3864     else ac_cv_prog_egrep='egrep'
3865     fi
3866 fi
3867 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3868 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3869  EGREP=$ac_cv_prog_egrep
3870
3871
3872
3873 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3874 if test "${with_gnu_ld+set}" = set; then
3875   withval="$with_gnu_ld"
3876   test "$withval" = no || with_gnu_ld=yes
3877 else
3878   with_gnu_ld=no
3879 fi;
3880 ac_prog=ld
3881 if test "$GCC" = yes; then
3882   # Check if gcc -print-prog-name=ld gives a path.
3883   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3884 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3885   case $host in
3886   *-*-mingw*)
3887     # gcc leaves a trailing carriage return which upsets mingw
3888     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3889   *)
3890     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3891   esac
3892   case $ac_prog in
3893     # Accept absolute paths.
3894     [\\/]* | ?:[\\/]*)
3895       re_direlt='/[^/][^/]*/\.\./'
3896       # Canonicalize the pathname of ld
3897       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3898       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3899         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3900       done
3901       test -z "$LD" && LD="$ac_prog"
3902       ;;
3903   "")
3904     # If it fails, then pretend we aren't using GCC.
3905     ac_prog=ld
3906     ;;
3907   *)
3908     # If it is relative, then search for the first ld in PATH.
3909     with_gnu_ld=unknown
3910     ;;
3911   esac
3912 elif test "$with_gnu_ld" = yes; then
3913   echo "$as_me:$LINENO: checking for GNU ld" >&5
3914 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3915 else
3916   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3917 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3918 fi
3919 if test "${lt_cv_path_LD+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   if test -z "$LD"; then
3923   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3924   for ac_dir in $PATH; do
3925     IFS="$lt_save_ifs"
3926     test -z "$ac_dir" && ac_dir=.
3927     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3928       lt_cv_path_LD="$ac_dir/$ac_prog"
3929       # Check to see if the program is GNU ld.  I'd rather use --version,
3930       # but apparently some GNU ld's only accept -v.
3931       # Break only if it was the GNU/non-GNU ld that we prefer.
3932       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3933       *GNU* | *'with BFD'*)
3934         test "$with_gnu_ld" != no && break
3935         ;;
3936       *)
3937         test "$with_gnu_ld" != yes && break
3938         ;;
3939       esac
3940     fi
3941   done
3942   IFS="$lt_save_ifs"
3943 else
3944   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3945 fi
3946 fi
3947
3948 LD="$lt_cv_path_LD"
3949 if test -n "$LD"; then
3950   echo "$as_me:$LINENO: result: $LD" >&5
3951 echo "${ECHO_T}$LD" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3957 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3958    { (exit 1); exit 1; }; }
3959 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3960 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3961 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3965 case `$LD -v 2>&1 </dev/null` in
3966 *GNU* | *'with BFD'*)
3967   lt_cv_prog_gnu_ld=yes
3968   ;;
3969 *)
3970   lt_cv_prog_gnu_ld=no
3971   ;;
3972 esac
3973 fi
3974 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3975 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3976 with_gnu_ld=$lt_cv_prog_gnu_ld
3977
3978
3979 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3980 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3981 if test "${lt_cv_ld_reload_flag+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   lt_cv_ld_reload_flag='-r'
3985 fi
3986 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3987 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3988 reload_flag=$lt_cv_ld_reload_flag
3989 case $reload_flag in
3990 "" | " "*) ;;
3991 *) reload_flag=" $reload_flag" ;;
3992 esac
3993 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3994 case $host_os in
3995   darwin*)
3996     if test "$GCC" = yes; then
3997       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3998     else
3999       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4000     fi
4001     ;;
4002 esac
4003
4004 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4005 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4006 if test "${lt_cv_path_NM+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if test -n "$NM"; then
4010   # Let the user override the test.
4011   lt_cv_path_NM="$NM"
4012 else
4013   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4014   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4015     IFS="$lt_save_ifs"
4016     test -z "$ac_dir" && ac_dir=.
4017     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4018     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4019       # Check to see if the nm accepts a BSD-compat flag.
4020       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4021       #   nm: unknown option "B" ignored
4022       # Tru64's nm complains that /dev/null is an invalid object file
4023       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4024       */dev/null* | *'Invalid file or object type'*)
4025         lt_cv_path_NM="$tmp_nm -B"
4026         break
4027         ;;
4028       *)
4029         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4030         */dev/null*)
4031           lt_cv_path_NM="$tmp_nm -p"
4032           break
4033           ;;
4034         *)
4035           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4036           continue # so that we can try to find one that supports BSD flags
4037           ;;
4038         esac
4039       esac
4040     fi
4041   done
4042   IFS="$lt_save_ifs"
4043   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4044 fi
4045 fi
4046 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4047 echo "${ECHO_T}$lt_cv_path_NM" >&6
4048 NM="$lt_cv_path_NM"
4049
4050 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4051 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4052 LN_S=$as_ln_s
4053 if test "$LN_S" = "ln -s"; then
4054   echo "$as_me:$LINENO: result: yes" >&5
4055 echo "${ECHO_T}yes" >&6
4056 else
4057   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4058 echo "${ECHO_T}no, using $LN_S" >&6
4059 fi
4060
4061 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4062 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4063 if test "${lt_cv_deplibs_check_method+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   lt_cv_file_magic_cmd='$MAGIC_CMD'
4067 lt_cv_file_magic_test_file=
4068 lt_cv_deplibs_check_method='unknown'
4069 # Need to set the preceding variable on all platforms that support
4070 # interlibrary dependencies.
4071 # 'none' -- dependencies not supported.
4072 # `unknown' -- same as none, but documents that we really don't know.
4073 # 'pass_all' -- all dependencies passed with no checks.
4074 # 'test_compile' -- check by making test program.
4075 # 'file_magic [[regex]]' -- check by looking for files in library path
4076 # which responds to the $file_magic_cmd with a given extended regex.
4077 # If you have `file' or equivalent on your system and you're not sure
4078 # whether `pass_all' will *always* work, you probably want this one.
4079
4080 case $host_os in
4081 aix4* | aix5*)
4082   lt_cv_deplibs_check_method=pass_all
4083   ;;
4084
4085 beos*)
4086   lt_cv_deplibs_check_method=pass_all
4087   ;;
4088
4089 bsdi[45]*)
4090   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4091   lt_cv_file_magic_cmd='/usr/bin/file -L'
4092   lt_cv_file_magic_test_file=/shlib/libc.so
4093   ;;
4094
4095 cygwin*)
4096   # func_win32_libid is a shell function defined in ltmain.sh
4097   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4098   lt_cv_file_magic_cmd='func_win32_libid'
4099   ;;
4100
4101 mingw* | pw32*)
4102   # Base MSYS/MinGW do not provide the 'file' command needed by
4103   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4104   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4105   lt_cv_file_magic_cmd='$OBJDUMP -f'
4106   ;;
4107
4108 darwin* | rhapsody*)
4109   lt_cv_deplibs_check_method=pass_all
4110   ;;
4111
4112 freebsd* | kfreebsd*-gnu | dragonfly*)
4113   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4114     case $host_cpu in
4115     i*86 )
4116       # Not sure whether the presence of OpenBSD here was a mistake.
4117       # Let's accept both of them until this is cleared up.
4118       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4119       lt_cv_file_magic_cmd=/usr/bin/file
4120       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4121       ;;
4122     esac
4123   else
4124     lt_cv_deplibs_check_method=pass_all
4125   fi
4126   ;;
4127
4128 gnu*)
4129   lt_cv_deplibs_check_method=pass_all
4130   ;;
4131
4132 hpux10.20* | hpux11*)
4133   lt_cv_file_magic_cmd=/usr/bin/file
4134   case "$host_cpu" in
4135   ia64*)
4136     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4137     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4138     ;;
4139   hppa*64*)
4140     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]'
4141     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4142     ;;
4143   *)
4144     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4145     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4146     ;;
4147   esac
4148   ;;
4149
4150 irix5* | irix6* | nonstopux*)
4151   case $LD in
4152   *-32|*"-32 ") libmagic=32-bit;;
4153   *-n32|*"-n32 ") libmagic=N32;;
4154   *-64|*"-64 ") libmagic=64-bit;;
4155   *) libmagic=never-match;;
4156   esac
4157   lt_cv_deplibs_check_method=pass_all
4158   ;;
4159
4160 # This must be Linux ELF.
4161 linux*)
4162   lt_cv_deplibs_check_method=pass_all
4163   ;;
4164
4165 netbsd*)
4166   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4167     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4168   else
4169     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4170   fi
4171   ;;
4172
4173 newos6*)
4174   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4175   lt_cv_file_magic_cmd=/usr/bin/file
4176   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4177   ;;
4178
4179 nto-qnx*)
4180   lt_cv_deplibs_check_method=unknown
4181   ;;
4182
4183 openbsd*)
4184   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4185     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4186   else
4187     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4188   fi
4189   ;;
4190
4191 osf3* | osf4* | osf5*)
4192   lt_cv_deplibs_check_method=pass_all
4193   ;;
4194
4195 sco3.2v5*)
4196   lt_cv_deplibs_check_method=pass_all
4197   ;;
4198
4199 solaris*)
4200   lt_cv_deplibs_check_method=pass_all
4201   ;;
4202
4203 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4204   case $host_vendor in
4205   motorola)
4206     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]'
4207     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4208     ;;
4209   ncr)
4210     lt_cv_deplibs_check_method=pass_all
4211     ;;
4212   sequent)
4213     lt_cv_file_magic_cmd='/bin/file'
4214     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4215     ;;
4216   sni)
4217     lt_cv_file_magic_cmd='/bin/file'
4218     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4219     lt_cv_file_magic_test_file=/lib/libc.so
4220     ;;
4221   siemens)
4222     lt_cv_deplibs_check_method=pass_all
4223     ;;
4224   esac
4225   ;;
4226
4227 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4228   lt_cv_deplibs_check_method=pass_all
4229   ;;
4230 esac
4231
4232 fi
4233 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4234 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4235 file_magic_cmd=$lt_cv_file_magic_cmd
4236 deplibs_check_method=$lt_cv_deplibs_check_method
4237 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4238
4239
4240
4241
4242 # If no C compiler was specified, use CC.
4243 LTCC=${LTCC-"$CC"}
4244
4245 # Allow CC to be a program name with arguments.
4246 compiler=$CC
4247
4248
4249 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4250 if test "${enable_libtool_lock+set}" = set; then
4251   enableval="$enable_libtool_lock"
4252
4253 fi;
4254 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4255
4256 # Some flags need to be propagated to the compiler or linker for good
4257 # libtool support.
4258 case $host in
4259 ia64-*-hpux*)
4260   # Find out which ABI we are using.
4261   echo 'int i;' > conftest.$ac_ext
4262   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263   (eval $ac_compile) 2>&5
4264   ac_status=$?
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); }; then
4267     case `/usr/bin/file conftest.$ac_objext` in
4268     *ELF-32*)
4269       HPUX_IA64_MODE="32"
4270       ;;
4271     *ELF-64*)
4272       HPUX_IA64_MODE="64"
4273       ;;
4274     esac
4275   fi
4276   rm -rf conftest*
4277   ;;
4278 *-*-irix6*)
4279   # Find out which ABI we are using.
4280   echo '#line 4280 "configure"' > conftest.$ac_ext
4281   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282   (eval $ac_compile) 2>&5
4283   ac_status=$?
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); }; then
4286    if test "$lt_cv_prog_gnu_ld" = yes; then
4287     case `/usr/bin/file conftest.$ac_objext` in
4288     *32-bit*)
4289       LD="${LD-ld} -melf32bsmip"
4290       ;;
4291     *N32*)
4292       LD="${LD-ld} -melf32bmipn32"
4293       ;;
4294     *64-bit*)
4295       LD="${LD-ld} -melf64bmip"
4296       ;;
4297     esac
4298    else
4299     case `/usr/bin/file conftest.$ac_objext` in
4300     *32-bit*)
4301       LD="${LD-ld} -32"
4302       ;;
4303     *N32*)
4304       LD="${LD-ld} -n32"
4305       ;;
4306     *64-bit*)
4307       LD="${LD-ld} -64"
4308       ;;
4309     esac
4310    fi
4311   fi
4312   rm -rf conftest*
4313   ;;
4314
4315 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4316   # Find out which ABI we are using.
4317   echo 'int i;' > conftest.$ac_ext
4318   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319   (eval $ac_compile) 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; then
4323     case "`/usr/bin/file conftest.o`" in
4324     *32-bit*)
4325       case $host in
4326         x86_64-*linux*)
4327           LD="${LD-ld} -m elf_i386"
4328           ;;
4329         ppc64-*linux*|powerpc64-*linux*)
4330           LD="${LD-ld} -m elf32ppclinux"
4331           ;;
4332         s390x-*linux*)
4333           LD="${LD-ld} -m elf_s390"
4334           ;;
4335         sparc64-*linux*)
4336           LD="${LD-ld} -m elf32_sparc"
4337           ;;
4338       esac
4339       ;;
4340     *64-bit*)
4341       case $host in
4342         x86_64-*linux*)
4343           LD="${LD-ld} -m elf_x86_64"
4344           ;;
4345         ppc*-*linux*|powerpc*-*linux*)
4346           LD="${LD-ld} -m elf64ppc"
4347           ;;
4348         s390*-*linux*)
4349           LD="${LD-ld} -m elf64_s390"
4350           ;;
4351         sparc*-*linux*)
4352           LD="${LD-ld} -m elf64_sparc"
4353           ;;
4354       esac
4355       ;;
4356     esac
4357   fi
4358   rm -rf conftest*
4359   ;;
4360
4361 *-*-linux*)
4362   # Test if the compiler is 64bit
4363   echo 'int i;' > conftest.$ac_ext
4364   lt_cv_cc_64bit_output=no
4365   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366   (eval $ac_compile) 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); }; then
4370     case `/usr/bin/file conftest.$ac_objext` in
4371     *"ELF 64"*)
4372       lt_cv_cc_64bit_output=yes
4373       ;;
4374     esac
4375   fi
4376   rm -rf conftest*
4377   ;;
4378
4379 *-*-sco3.2v5*)
4380   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4381   SAVE_CFLAGS="$CFLAGS"
4382   CFLAGS="$CFLAGS -belf"
4383   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4384 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4385 if test "${lt_cv_cc_needs_belf+set}" = set; then
4386   echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388   ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393
4394      cat >conftest.$ac_ext <<_ACEOF
4395 /* confdefs.h.  */
4396 _ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h.  */
4400
4401 int
4402 main ()
4403 {
4404
4405   ;
4406   return 0;
4407 }
4408 _ACEOF
4409 rm -f conftest.$ac_objext conftest$ac_exeext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4411   (eval $ac_link) 2>conftest.er1
4412   ac_status=$?
4413   grep -v '^ *+' conftest.er1 >conftest.err
4414   rm -f conftest.er1
4415   cat conftest.err >&5
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); } &&
4418          { ac_try='test -z "$ac_c_werror_flag"
4419                          || test ! -s conftest.err'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; } &&
4425          { ac_try='test -s conftest$ac_exeext'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431   lt_cv_cc_needs_belf=yes
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 lt_cv_cc_needs_belf=no
4437 fi
4438 rm -f conftest.err conftest.$ac_objext \
4439       conftest$ac_exeext conftest.$ac_ext
4440      ac_ext=c
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445
4446 fi
4447 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4448 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4449   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4450     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4451     CFLAGS="$SAVE_CFLAGS"
4452   fi
4453   ;;
4454
4455 esac
4456
4457 need_locks="$enable_libtool_lock"
4458
4459
4460 ac_ext=c
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4466 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4467 # On Suns, sometimes $CPP names a directory.
4468 if test -n "$CPP" && test -d "$CPP"; then
4469   CPP=
4470 fi
4471 if test -z "$CPP"; then
4472   if test "${ac_cv_prog_CPP+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475       # Double quotes because CPP needs to be expanded
4476     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4477     do
4478       ac_preproc_ok=false
4479 for ac_c_preproc_warn_flag in '' yes
4480 do
4481   # Use a header file that comes with gcc, so configuring glibc
4482   # with a fresh cross-compiler works.
4483   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4484   # <limits.h> exists even on freestanding compilers.
4485   # On the NeXT, cc -E runs the code through the compiler's parser,
4486   # not just through cpp. "Syntax error" is here to catch this case.
4487   cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 #ifdef __STDC__
4494 # include <limits.h>
4495 #else
4496 # include <assert.h>
4497 #endif
4498                      Syntax error
4499 _ACEOF
4500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4502   ac_status=$?
4503   grep -v '^ *+' conftest.er1 >conftest.err
4504   rm -f conftest.er1
4505   cat conftest.err >&5
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); } >/dev/null; then
4508   if test -s conftest.err; then
4509     ac_cpp_err=$ac_c_preproc_warn_flag
4510     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4511   else
4512     ac_cpp_err=
4513   fi
4514 else
4515   ac_cpp_err=yes
4516 fi
4517 if test -z "$ac_cpp_err"; then
4518   :
4519 else
4520   echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523   # Broken: fails on valid input.
4524 continue
4525 fi
4526 rm -f conftest.err conftest.$ac_ext
4527
4528   # OK, works on sane cases.  Now check whether non-existent headers
4529   # can be detected and how.
4530   cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h.  */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h.  */
4536 #include <ac_nonexistent.h>
4537 _ACEOF
4538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4540   ac_status=$?
4541   grep -v '^ *+' conftest.er1 >conftest.err
4542   rm -f conftest.er1
4543   cat conftest.err >&5
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } >/dev/null; then
4546   if test -s conftest.err; then
4547     ac_cpp_err=$ac_c_preproc_warn_flag
4548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4549   else
4550     ac_cpp_err=
4551   fi
4552 else
4553   ac_cpp_err=yes
4554 fi
4555 if test -z "$ac_cpp_err"; then
4556   # Broken: success on invalid input.
4557 continue
4558 else
4559   echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562   # Passes both tests.
4563 ac_preproc_ok=:
4564 break
4565 fi
4566 rm -f conftest.err conftest.$ac_ext
4567
4568 done
4569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570 rm -f conftest.err conftest.$ac_ext
4571 if $ac_preproc_ok; then
4572   break
4573 fi
4574
4575     done
4576     ac_cv_prog_CPP=$CPP
4577
4578 fi
4579   CPP=$ac_cv_prog_CPP
4580 else
4581   ac_cv_prog_CPP=$CPP
4582 fi
4583 echo "$as_me:$LINENO: result: $CPP" >&5
4584 echo "${ECHO_T}$CPP" >&6
4585 ac_preproc_ok=false
4586 for ac_c_preproc_warn_flag in '' yes
4587 do
4588   # Use a header file that comes with gcc, so configuring glibc
4589   # with a fresh cross-compiler works.
4590   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4591   # <limits.h> exists even on freestanding compilers.
4592   # On the NeXT, cc -E runs the code through the compiler's parser,
4593   # not just through cpp. "Syntax error" is here to catch this case.
4594   cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h.  */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h.  */
4600 #ifdef __STDC__
4601 # include <limits.h>
4602 #else
4603 # include <assert.h>
4604 #endif
4605                      Syntax error
4606 _ACEOF
4607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4609   ac_status=$?
4610   grep -v '^ *+' conftest.er1 >conftest.err
4611   rm -f conftest.er1
4612   cat conftest.err >&5
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } >/dev/null; then
4615   if test -s conftest.err; then
4616     ac_cpp_err=$ac_c_preproc_warn_flag
4617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4618   else
4619     ac_cpp_err=
4620   fi
4621 else
4622   ac_cpp_err=yes
4623 fi
4624 if test -z "$ac_cpp_err"; then
4625   :
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630   # Broken: fails on valid input.
4631 continue
4632 fi
4633 rm -f conftest.err conftest.$ac_ext
4634
4635   # OK, works on sane cases.  Now check whether non-existent headers
4636   # can be detected and how.
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643 #include <ac_nonexistent.h>
4644 _ACEOF
4645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4647   ac_status=$?
4648   grep -v '^ *+' conftest.er1 >conftest.err
4649   rm -f conftest.er1
4650   cat conftest.err >&5
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); } >/dev/null; then
4653   if test -s conftest.err; then
4654     ac_cpp_err=$ac_c_preproc_warn_flag
4655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4656   else
4657     ac_cpp_err=
4658   fi
4659 else
4660   ac_cpp_err=yes
4661 fi
4662 if test -z "$ac_cpp_err"; then
4663   # Broken: success on invalid input.
4664 continue
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669   # Passes both tests.
4670 ac_preproc_ok=:
4671 break
4672 fi
4673 rm -f conftest.err conftest.$ac_ext
4674
4675 done
4676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4677 rm -f conftest.err conftest.$ac_ext
4678 if $ac_preproc_ok; then
4679   :
4680 else
4681   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4682 See \`config.log' for more details." >&5
4683 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4684 See \`config.log' for more details." >&2;}
4685    { (exit 1); exit 1; }; }
4686 fi
4687
4688 ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693
4694
4695 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4697 if test "${ac_cv_header_stdc+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706 #include <stdlib.h>
4707 #include <stdarg.h>
4708 #include <string.h>
4709 #include <float.h>
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721   (eval $ac_compile) 2>conftest.er1
4722   ac_status=$?
4723   grep -v '^ *+' conftest.er1 >conftest.err
4724   rm -f conftest.er1
4725   cat conftest.err >&5
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); } &&
4728          { ac_try='test -z "$ac_c_werror_flag"
4729                          || test ! -s conftest.err'
4730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731   (eval $ac_try) 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; } &&
4735          { ac_try='test -s conftest.$ac_objext'
4736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737   (eval $ac_try) 2>&5
4738   ac_status=$?
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); }; }; then
4741   ac_cv_header_stdc=yes
4742 else
4743   echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 ac_cv_header_stdc=no
4747 fi
4748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4749
4750 if test $ac_cv_header_stdc = yes; then
4751   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4752   cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758 #include <string.h>
4759
4760 _ACEOF
4761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4762   $EGREP "memchr" >/dev/null 2>&1; then
4763   :
4764 else
4765   ac_cv_header_stdc=no
4766 fi
4767 rm -f conftest*
4768
4769 fi
4770
4771 if test $ac_cv_header_stdc = yes; then
4772   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 #include <stdlib.h>
4780
4781 _ACEOF
4782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783   $EGREP "free" >/dev/null 2>&1; then
4784   :
4785 else
4786   ac_cv_header_stdc=no
4787 fi
4788 rm -f conftest*
4789
4790 fi
4791
4792 if test $ac_cv_header_stdc = yes; then
4793   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4794   if test "$cross_compiling" = yes; then
4795   :
4796 else
4797   cat >conftest.$ac_ext <<_ACEOF
4798 /* confdefs.h.  */
4799 _ACEOF
4800 cat confdefs.h >>conftest.$ac_ext
4801 cat >>conftest.$ac_ext <<_ACEOF
4802 /* end confdefs.h.  */
4803 #include <ctype.h>
4804 #if ((' ' & 0x0FF) == 0x020)
4805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4807 #else
4808 # define ISLOWER(c) \
4809                    (('a' <= (c) && (c) <= 'i') \
4810                      || ('j' <= (c) && (c) <= 'r') \
4811                      || ('s' <= (c) && (c) <= 'z'))
4812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4813 #endif
4814
4815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4816 int
4817 main ()
4818 {
4819   int i;
4820   for (i = 0; i < 256; i++)
4821     if (XOR (islower (i), ISLOWER (i))
4822         || toupper (i) != TOUPPER (i))
4823       exit(2);
4824   exit (0);
4825 }
4826 _ACEOF
4827 rm -f conftest$ac_exeext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829   (eval $ac_link) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834   (eval $ac_try) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }; }; then
4838   :
4839 else
4840   echo "$as_me: program exited with status $ac_status" >&5
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844 ( exit $ac_status )
4845 ac_cv_header_stdc=no
4846 fi
4847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4848 fi
4849 fi
4850 fi
4851 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4852 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4853 if test $ac_cv_header_stdc = yes; then
4854
4855 cat >>confdefs.h <<\_ACEOF
4856 #define STDC_HEADERS 1
4857 _ACEOF
4858
4859 fi
4860
4861 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4872                   inttypes.h stdint.h unistd.h
4873 do
4874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4875 echo "$as_me:$LINENO: checking for $ac_header" >&5
4876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4878   echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880   cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h.  */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h.  */
4886 $ac_includes_default
4887
4888 #include <$ac_header>
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892   (eval $ac_compile) 2>conftest.er1
4893   ac_status=$?
4894   grep -v '^ *+' conftest.er1 >conftest.err
4895   rm -f conftest.er1
4896   cat conftest.err >&5
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } &&
4899          { ac_try='test -z "$ac_c_werror_flag"
4900                          || test ! -s conftest.err'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; } &&
4906          { ac_try='test -s conftest.$ac_objext'
4907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908   (eval $ac_try) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); }; }; then
4912   eval "$as_ac_Header=yes"
4913 else
4914   echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 eval "$as_ac_Header=no"
4918 fi
4919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4920 fi
4921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4924   cat >>confdefs.h <<_ACEOF
4925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 _ACEOF
4927
4928 fi
4929
4930 done
4931
4932
4933
4934 for ac_header in dlfcn.h
4935 do
4936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4938   echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 fi
4943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4945 else
4946   # Is the header compilable?
4947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4949 cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 $ac_includes_default
4956 #include <$ac_header>
4957 _ACEOF
4958 rm -f conftest.$ac_objext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4960   (eval $ac_compile) 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } &&
4967          { ac_try='test -z "$ac_c_werror_flag"
4968                          || test ! -s conftest.err'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; } &&
4974          { ac_try='test -s conftest.$ac_objext'
4975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976   (eval $ac_try) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   ac_header_compiler=yes
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 ac_header_compiler=no
4986 fi
4987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4989 echo "${ECHO_T}$ac_header_compiler" >&6
4990
4991 # Is the header present?
4992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000 #include <$ac_header>
5001 _ACEOF
5002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5004   ac_status=$?
5005   grep -v '^ *+' conftest.er1 >conftest.err
5006   rm -f conftest.er1
5007   cat conftest.err >&5
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } >/dev/null; then
5010   if test -s conftest.err; then
5011     ac_cpp_err=$ac_c_preproc_warn_flag
5012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5013   else
5014     ac_cpp_err=
5015   fi
5016 else
5017   ac_cpp_err=yes
5018 fi
5019 if test -z "$ac_cpp_err"; then
5020   ac_header_preproc=yes
5021 else
5022   echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025   ac_header_preproc=no
5026 fi
5027 rm -f conftest.err conftest.$ac_ext
5028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5029 echo "${ECHO_T}$ac_header_preproc" >&6
5030
5031 # So?  What about this header?
5032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5033   yes:no: )
5034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5038     ac_header_preproc=yes
5039     ;;
5040   no:yes:* )
5041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5053     (
5054       cat <<\_ASBOX
5055 ## -------------------------------------------- ##
5056 ## Report this to sebastian.marsching@suphp.org ##
5057 ## -------------------------------------------- ##
5058 _ASBOX
5059     ) |
5060       sed "s/^/$as_me: WARNING:     /" >&2
5061     ;;
5062 esac
5063 echo "$as_me:$LINENO: checking for $ac_header" >&5
5064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   eval "$as_ac_Header=\$ac_header_preproc"
5069 fi
5070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5072
5073 fi
5074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5075   cat >>confdefs.h <<_ACEOF
5076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5077 _ACEOF
5078
5079 fi
5080
5081 done
5082
5083
5084
5085 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5086     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5087     (test "X$CXX" != "Xg++"))) ; then
5088   ac_ext=cc
5089 ac_cpp='$CXXCPP $CPPFLAGS'
5090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5094 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5095 if test -z "$CXXCPP"; then
5096   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099       # Double quotes because CXXCPP needs to be expanded
5100     for CXXCPP in "$CXX -E" "/lib/cpp"
5101     do
5102       ac_preproc_ok=false
5103 for ac_cxx_preproc_warn_flag in '' yes
5104 do
5105   # Use a header file that comes with gcc, so configuring glibc
5106   # with a fresh cross-compiler works.
5107   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5108   # <limits.h> exists even on freestanding compilers.
5109   # On the NeXT, cc -E runs the code through the compiler's parser,
5110   # not just through cpp. "Syntax error" is here to catch this case.
5111   cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h.  */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h.  */
5117 #ifdef __STDC__
5118 # include <limits.h>
5119 #else
5120 # include <assert.h>
5121 #endif
5122                      Syntax error
5123 _ACEOF
5124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5126   ac_status=$?
5127   grep -v '^ *+' conftest.er1 >conftest.err
5128   rm -f conftest.er1
5129   cat conftest.err >&5
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); } >/dev/null; then
5132   if test -s conftest.err; then
5133     ac_cpp_err=$ac_cxx_preproc_warn_flag
5134     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5135   else
5136     ac_cpp_err=
5137   fi
5138 else
5139   ac_cpp_err=yes
5140 fi
5141 if test -z "$ac_cpp_err"; then
5142   :
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147   # Broken: fails on valid input.
5148 continue
5149 fi
5150 rm -f conftest.err conftest.$ac_ext
5151
5152   # OK, works on sane cases.  Now check whether non-existent headers
5153   # can be detected and how.
5154   cat >conftest.$ac_ext <<_ACEOF
5155 /* confdefs.h.  */
5156 _ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h.  */
5160 #include <ac_nonexistent.h>
5161 _ACEOF
5162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } >/dev/null; then
5170   if test -s conftest.err; then
5171     ac_cpp_err=$ac_cxx_preproc_warn_flag
5172     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5173   else
5174     ac_cpp_err=
5175   fi
5176 else
5177   ac_cpp_err=yes
5178 fi
5179 if test -z "$ac_cpp_err"; then
5180   # Broken: success on invalid input.
5181 continue
5182 else
5183   echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186   # Passes both tests.
5187 ac_preproc_ok=:
5188 break
5189 fi
5190 rm -f conftest.err conftest.$ac_ext
5191
5192 done
5193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5194 rm -f conftest.err conftest.$ac_ext
5195 if $ac_preproc_ok; then
5196   break
5197 fi
5198
5199     done
5200     ac_cv_prog_CXXCPP=$CXXCPP
5201
5202 fi
5203   CXXCPP=$ac_cv_prog_CXXCPP
5204 else
5205   ac_cv_prog_CXXCPP=$CXXCPP
5206 fi
5207 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5208 echo "${ECHO_T}$CXXCPP" >&6
5209 ac_preproc_ok=false
5210 for ac_cxx_preproc_warn_flag in '' yes
5211 do
5212   # Use a header file that comes with gcc, so configuring glibc
5213   # with a fresh cross-compiler works.
5214   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5215   # <limits.h> exists even on freestanding compilers.
5216   # On the NeXT, cc -E runs the code through the compiler's parser,
5217   # not just through cpp. "Syntax error" is here to catch this case.
5218   cat >conftest.$ac_ext <<_ACEOF
5219 /* confdefs.h.  */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h.  */
5224 #ifdef __STDC__
5225 # include <limits.h>
5226 #else
5227 # include <assert.h>
5228 #endif
5229                      Syntax error
5230 _ACEOF
5231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5233   ac_status=$?
5234   grep -v '^ *+' conftest.er1 >conftest.err
5235   rm -f conftest.er1
5236   cat conftest.err >&5
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); } >/dev/null; then
5239   if test -s conftest.err; then
5240     ac_cpp_err=$ac_cxx_preproc_warn_flag
5241     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5242   else
5243     ac_cpp_err=
5244   fi
5245 else
5246   ac_cpp_err=yes
5247 fi
5248 if test -z "$ac_cpp_err"; then
5249   :
5250 else
5251   echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254   # Broken: fails on valid input.
5255 continue
5256 fi
5257 rm -f conftest.err conftest.$ac_ext
5258
5259   # OK, works on sane cases.  Now check whether non-existent headers
5260   # can be detected and how.
5261   cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h.  */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h.  */
5267 #include <ac_nonexistent.h>
5268 _ACEOF
5269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5271   ac_status=$?
5272   grep -v '^ *+' conftest.er1 >conftest.err
5273   rm -f conftest.er1
5274   cat conftest.err >&5
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } >/dev/null; then
5277   if test -s conftest.err; then
5278     ac_cpp_err=$ac_cxx_preproc_warn_flag
5279     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5280   else
5281     ac_cpp_err=
5282   fi
5283 else
5284   ac_cpp_err=yes
5285 fi
5286 if test -z "$ac_cpp_err"; then
5287   # Broken: success on invalid input.
5288 continue
5289 else
5290   echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293   # Passes both tests.
5294 ac_preproc_ok=:
5295 break
5296 fi
5297 rm -f conftest.err conftest.$ac_ext
5298
5299 done
5300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301 rm -f conftest.err conftest.$ac_ext
5302 if $ac_preproc_ok; then
5303   :
5304 else
5305   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5306 See \`config.log' for more details." >&5
5307 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5308 See \`config.log' for more details." >&2;}
5309    { (exit 1); exit 1; }; }
5310 fi
5311
5312 ac_ext=cc
5313 ac_cpp='$CXXCPP $CPPFLAGS'
5314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5317
5318 fi
5319
5320
5321 ac_ext=f
5322 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5323 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5325 if test -n "$ac_tool_prefix"; then
5326   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5327   do
5328     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5330 echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5332 if test "${ac_cv_prog_F77+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   if test -n "$F77"; then
5336   ac_cv_prog_F77="$F77" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343   for ac_exec_ext in '' $ac_executable_extensions; do
5344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350 done
5351
5352 fi
5353 fi
5354 F77=$ac_cv_prog_F77
5355 if test -n "$F77"; then
5356   echo "$as_me:$LINENO: result: $F77" >&5
5357 echo "${ECHO_T}$F77" >&6
5358 else
5359   echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6
5361 fi
5362
5363     test -n "$F77" && break
5364   done
5365 fi
5366 if test -z "$F77"; then
5367   ac_ct_F77=$F77
5368   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5369 do
5370   # Extract the first word of "$ac_prog", so it can be a program name with args.
5371 set dummy $ac_prog; ac_word=$2
5372 echo "$as_me:$LINENO: checking for $ac_word" >&5
5373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5374 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377   if test -n "$ac_ct_F77"; then
5378   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5379 else
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH
5382 do
5383   IFS=$as_save_IFS
5384   test -z "$as_dir" && as_dir=.
5385   for ac_exec_ext in '' $ac_executable_extensions; do
5386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5387     ac_cv_prog_ac_ct_F77="$ac_prog"
5388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389     break 2
5390   fi
5391 done
5392 done
5393
5394 fi
5395 fi
5396 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5397 if test -n "$ac_ct_F77"; then
5398   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5399 echo "${ECHO_T}$ac_ct_F77" >&6
5400 else
5401   echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6
5403 fi
5404
5405   test -n "$ac_ct_F77" && break
5406 done
5407
5408   F77=$ac_ct_F77
5409 fi
5410
5411
5412 # Provide some information about the compiler.
5413 echo "$as_me:5413:" \
5414      "checking for Fortran 77 compiler version" >&5
5415 ac_compiler=`set X $ac_compile; echo $2`
5416 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5417   (eval $ac_compiler --version </dev/null >&5) 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }
5421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5422   (eval $ac_compiler -v </dev/null >&5) 2>&5
5423   ac_status=$?
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); }
5426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5427   (eval $ac_compiler -V </dev/null >&5) 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); }
5431 rm -f a.out
5432
5433 # If we don't use `.F' as extension, the preprocessor is not run on the
5434 # input file.  (Note that this only needs to work for GNU compilers.)
5435 ac_save_ext=$ac_ext
5436 ac_ext=F
5437 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5438 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5439 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442   cat >conftest.$ac_ext <<_ACEOF
5443       program main
5444 #ifndef __GNUC__
5445        choke me
5446 #endif
5447
5448       end
5449 _ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452   (eval $ac_compile) 2>conftest.er1
5453   ac_status=$?
5454   grep -v '^ *+' conftest.er1 >conftest.err
5455   rm -f conftest.er1
5456   cat conftest.err >&5
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); } &&
5459          { ac_try='test -z "$ac_f77_werror_flag"
5460                          || test ! -s conftest.err'
5461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462   (eval $ac_try) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); }; } &&
5466          { ac_try='test -s conftest.$ac_objext'
5467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468   (eval $ac_try) 2>&5
5469   ac_status=$?
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); }; }; then
5472   ac_compiler_gnu=yes
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 ac_compiler_gnu=no
5478 fi
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5481
5482 fi
5483 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5484 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5485 ac_ext=$ac_save_ext
5486 ac_test_FFLAGS=${FFLAGS+set}
5487 ac_save_FFLAGS=$FFLAGS
5488 FFLAGS=
5489 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5490 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5491 if test "${ac_cv_prog_f77_g+set}" = set; then
5492   echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494   FFLAGS=-g
5495 cat >conftest.$ac_ext <<_ACEOF
5496       program main
5497
5498       end
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502   (eval $ac_compile) 2>conftest.er1
5503   ac_status=$?
5504   grep -v '^ *+' conftest.er1 >conftest.err
5505   rm -f conftest.er1
5506   cat conftest.err >&5
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); } &&
5509          { ac_try='test -z "$ac_f77_werror_flag"
5510                          || test ! -s conftest.err'
5511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512   (eval $ac_try) 2>&5
5513   ac_status=$?
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); }; } &&
5516          { ac_try='test -s conftest.$ac_objext'
5517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518   (eval $ac_try) 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); }; }; then
5522   ac_cv_prog_f77_g=yes
5523 else
5524   echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5526
5527 ac_cv_prog_f77_g=no
5528 fi
5529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5530
5531 fi
5532 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5533 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5534 if test "$ac_test_FFLAGS" = set; then
5535   FFLAGS=$ac_save_FFLAGS
5536 elif test $ac_cv_prog_f77_g = yes; then
5537   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5538     FFLAGS="-g -O2"
5539   else
5540     FFLAGS="-g"
5541   fi
5542 else
5543   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5544     FFLAGS="-O2"
5545   else
5546     FFLAGS=
5547   fi
5548 fi
5549
5550 G77=`test $ac_compiler_gnu = yes && echo yes`
5551 ac_ext=c
5552 ac_cpp='$CPP $CPPFLAGS'
5553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556
5557
5558
5559 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5560
5561 # find the maximum length of command line arguments
5562 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5563 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5564 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5565   echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567     i=0
5568   teststring="ABCD"
5569
5570   case $build_os in
5571   msdosdjgpp*)
5572     # On DJGPP, this test can blow up pretty badly due to problems in libc
5573     # (any single argument exceeding 2000 bytes causes a buffer overrun
5574     # during glob expansion).  Even if it were fixed, the result of this
5575     # check would be larger than it should be.
5576     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5577     ;;
5578
5579   gnu*)
5580     # Under GNU Hurd, this test is not required because there is
5581     # no limit to the length of command line arguments.
5582     # Libtool will interpret -1 as no limit whatsoever
5583     lt_cv_sys_max_cmd_len=-1;
5584     ;;
5585
5586   cygwin* | mingw*)
5587     # On Win9x/ME, this test blows up -- it succeeds, but takes
5588     # about 5 minutes as the teststring grows exponentially.
5589     # Worse, since 9x/ME are not pre-emptively multitasking,
5590     # you end up with a "frozen" computer, even though with patience
5591     # the test eventually succeeds (with a max line length of 256k).
5592     # Instead, let's just punt: use the minimum linelength reported by
5593     # all of the supported platforms: 8192 (on NT/2K/XP).
5594     lt_cv_sys_max_cmd_len=8192;
5595     ;;
5596
5597   amigaos*)
5598     # On AmigaOS with pdksh, this test takes hours, literally.
5599     # So we just punt and use a minimum line length of 8192.
5600     lt_cv_sys_max_cmd_len=8192;
5601     ;;
5602
5603   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5604     # This has been around since 386BSD, at least.  Likely further.
5605     if test -x /sbin/sysctl; then
5606       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5607     elif test -x /usr/sbin/sysctl; then
5608       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5609     else
5610       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5611     fi
5612     # And add a safety zone
5613     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5614     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5615     ;;
5616   osf*)
5617     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5618     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5619     # nice to cause kernel panics so lets avoid the loop below.
5620     # First set a reasonable default.
5621     lt_cv_sys_max_cmd_len=16384
5622     #
5623     if test -x /sbin/sysconfig; then
5624       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5625         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5626       esac
5627     fi
5628     ;;
5629   *)
5630     # If test is not a shell built-in, we'll probably end up computing a
5631     # maximum length that is only half of the actual maximum length, but
5632     # we can't tell.
5633     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5634     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5635                = "XX$teststring") >/dev/null 2>&1 &&
5636             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5637             lt_cv_sys_max_cmd_len=$new_result &&
5638             test $i != 17 # 1/2 MB should be enough
5639     do
5640       i=`expr $i + 1`
5641       teststring=$teststring$teststring
5642     done
5643     teststring=
5644     # Add a significant safety factor because C++ compilers can tack on massive
5645     # amounts of additional arguments before passing them to the linker.
5646     # It appears as though 1/2 is a usable value.
5647     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5648     ;;
5649   esac
5650
5651 fi
5652
5653 if test -n $lt_cv_sys_max_cmd_len ; then
5654   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5655 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5656 else
5657   echo "$as_me:$LINENO: result: none" >&5
5658 echo "${ECHO_T}none" >&6
5659 fi
5660
5661
5662
5663
5664 # Check for command to grab the raw symbol name followed by C symbol from nm.
5665 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5666 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5667 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670
5671 # These are sane defaults that work on at least a few old systems.
5672 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5673
5674 # Character class describing NM global symbol codes.
5675 symcode='[BCDEGRST]'
5676
5677 # Regexp to match symbols that can be accessed directly from C.
5678 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5679
5680 # Transform an extracted symbol line into a proper C declaration
5681 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5682
5683 # Transform an extracted symbol line into symbol name and symbol address
5684 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'"
5685
5686 # Define system-specific variables.
5687 case $host_os in
5688 aix*)
5689   symcode='[BCDT]'
5690   ;;
5691 cygwin* | mingw* | pw32*)
5692   symcode='[ABCDGISTW]'
5693   ;;
5694 hpux*) # Its linker distinguishes data from code symbols
5695   if test "$host_cpu" = ia64; then
5696     symcode='[ABCDEGRST]'
5697   fi
5698   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5699   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'"
5700   ;;
5701 linux*)
5702   if test "$host_cpu" = ia64; then
5703     symcode='[ABCDGIRSTW]'
5704     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5705     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'"
5706   fi
5707   ;;
5708 irix* | nonstopux*)
5709   symcode='[BCDEGRST]'
5710   ;;
5711 osf*)
5712   symcode='[BCDEGQRST]'
5713   ;;
5714 solaris* | sysv5*)
5715   symcode='[BDRT]'
5716   ;;
5717 sysv4)
5718   symcode='[DFNSTU]'
5719   ;;
5720 esac
5721
5722 # Handle CRLF in mingw tool chain
5723 opt_cr=
5724 case $build_os in
5725 mingw*)
5726   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5727   ;;
5728 esac
5729
5730 # If we're using GNU nm, then use its standard symbol codes.
5731 case `$NM -V 2>&1` in
5732 *GNU* | *'with BFD'*)
5733   symcode='[ABCDGIRSTW]' ;;
5734 esac
5735
5736 # Try without a prefix undercore, then with it.
5737 for ac_symprfx in "" "_"; do
5738
5739   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5740   symxfrm="\\1 $ac_symprfx\\2 \\2"
5741
5742   # Write the raw and C identifiers.
5743   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5744
5745   # Check to see that the pipe works correctly.
5746   pipe_works=no
5747
5748   rm -f conftest*
5749   cat > conftest.$ac_ext <<EOF
5750 #ifdef __cplusplus
5751 extern "C" {
5752 #endif
5753 char nm_test_var;
5754 void nm_test_func(){}
5755 #ifdef __cplusplus
5756 }
5757 #endif
5758 int main(){nm_test_var='a';nm_test_func();return(0);}
5759 EOF
5760
5761   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762   (eval $ac_compile) 2>&5
5763   ac_status=$?
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); }; then
5766     # Now try to grab the symbols.
5767     nlist=conftest.nm
5768     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5769   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } && test -s "$nlist"; then
5773       # Try sorting and uniquifying the output.
5774       if sort "$nlist" | uniq > "$nlist"T; then
5775         mv -f "$nlist"T "$nlist"
5776       else
5777         rm -f "$nlist"T
5778       fi
5779
5780       # Make sure that we snagged all the symbols we need.
5781       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5782         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5783           cat <<EOF > conftest.$ac_ext
5784 #ifdef __cplusplus
5785 extern "C" {
5786 #endif
5787
5788 EOF
5789           # Now generate the symbol file.
5790           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5791
5792           cat <<EOF >> conftest.$ac_ext
5793 #if defined (__STDC__) && __STDC__
5794 # define lt_ptr_t void *
5795 #else
5796 # define lt_ptr_t char *
5797 # define const
5798 #endif
5799
5800 /* The mapping between symbol names and symbols. */
5801 const struct {
5802   const char *name;
5803   lt_ptr_t address;
5804 }
5805 lt_preloaded_symbols[] =
5806 {
5807 EOF
5808           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5809           cat <<\EOF >> conftest.$ac_ext
5810   {0, (lt_ptr_t) 0}
5811 };
5812
5813 #ifdef __cplusplus
5814 }
5815 #endif
5816 EOF
5817           # Now try linking the two files.
5818           mv conftest.$ac_objext conftstm.$ac_objext
5819           lt_save_LIBS="$LIBS"
5820           lt_save_CFLAGS="$CFLAGS"
5821           LIBS="conftstm.$ac_objext"
5822           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5823           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5824   (eval $ac_link) 2>&5
5825   ac_status=$?
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5828             pipe_works=yes
5829           fi
5830           LIBS="$lt_save_LIBS"
5831           CFLAGS="$lt_save_CFLAGS"
5832         else
5833           echo "cannot find nm_test_func in $nlist" >&5
5834         fi
5835       else
5836         echo "cannot find nm_test_var in $nlist" >&5
5837       fi
5838     else
5839       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5840     fi
5841   else
5842     echo "$progname: failed program was:" >&5
5843     cat conftest.$ac_ext >&5
5844   fi
5845   rm -f conftest* conftst*
5846
5847   # Do not use the global_symbol_pipe unless it works.
5848   if test "$pipe_works" = yes; then
5849     break
5850   else
5851     lt_cv_sys_global_symbol_pipe=
5852   fi
5853 done
5854
5855 fi
5856
5857 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5858   lt_cv_sys_global_symbol_to_cdecl=
5859 fi
5860 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5861   echo "$as_me:$LINENO: result: failed" >&5
5862 echo "${ECHO_T}failed" >&6
5863 else
5864   echo "$as_me:$LINENO: result: ok" >&5
5865 echo "${ECHO_T}ok" >&6
5866 fi
5867
5868 echo "$as_me:$LINENO: checking for objdir" >&5
5869 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5870 if test "${lt_cv_objdir+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   rm -f .libs 2>/dev/null
5874 mkdir .libs 2>/dev/null
5875 if test -d .libs; then
5876   lt_cv_objdir=.libs
5877 else
5878   # MS-DOS does not allow filenames that begin with a dot.
5879   lt_cv_objdir=_libs
5880 fi
5881 rmdir .libs 2>/dev/null
5882 fi
5883 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5884 echo "${ECHO_T}$lt_cv_objdir" >&6
5885 objdir=$lt_cv_objdir
5886
5887
5888
5889
5890
5891 case $host_os in
5892 aix3*)
5893   # AIX sometimes has problems with the GCC collect2 program.  For some
5894   # reason, if we set the COLLECT_NAMES environment variable, the problems
5895   # vanish in a puff of smoke.
5896   if test "X${COLLECT_NAMES+set}" != Xset; then
5897     COLLECT_NAMES=
5898     export COLLECT_NAMES
5899   fi
5900   ;;
5901 esac
5902
5903 # Sed substitution that helps us do robust quoting.  It backslashifies
5904 # metacharacters that are still active within double-quoted strings.
5905 Xsed='sed -e 1s/^X//'
5906 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5907
5908 # Same as above, but do not quote variable references.
5909 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5910
5911 # Sed substitution to delay expansion of an escaped shell variable in a
5912 # double_quote_subst'ed string.
5913 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5914
5915 # Sed substitution to avoid accidental globbing in evaled expressions
5916 no_glob_subst='s/\*/\\\*/g'
5917
5918 # Constants:
5919 rm="rm -f"
5920
5921 # Global variables:
5922 default_ofile=libtool
5923 can_build_shared=yes
5924
5925 # All known linkers require a `.a' archive for static linking (except M$VC,
5926 # which needs '.lib').
5927 libext=a
5928 ltmain="$ac_aux_dir/ltmain.sh"
5929 ofile="$default_ofile"
5930 with_gnu_ld="$lt_cv_prog_gnu_ld"
5931
5932 if test -n "$ac_tool_prefix"; then
5933   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}ar; ac_word=$2
5935 echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937 if test "${ac_cv_prog_AR+set}" = set; then
5938   echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940   if test -n "$AR"; then
5941   ac_cv_prog_AR="$AR" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946   IFS=$as_save_IFS
5947   test -z "$as_dir" && as_dir=.
5948   for ac_exec_ext in '' $ac_executable_extensions; do
5949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950     ac_cv_prog_AR="${ac_tool_prefix}ar"
5951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952     break 2
5953   fi
5954 done
5955 done
5956
5957 fi
5958 fi
5959 AR=$ac_cv_prog_AR
5960 if test -n "$AR"; then
5961   echo "$as_me:$LINENO: result: $AR" >&5
5962 echo "${ECHO_T}$AR" >&6
5963 else
5964   echo "$as_me:$LINENO: result: no" >&5
5965 echo "${ECHO_T}no" >&6
5966 fi
5967
5968 fi
5969 if test -z "$ac_cv_prog_AR"; then
5970   ac_ct_AR=$AR
5971   # Extract the first word of "ar", so it can be a program name with args.
5972 set dummy ar; ac_word=$2
5973 echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5975 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5976   echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978   if test -n "$ac_ct_AR"; then
5979   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5980 else
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 for as_dir in $PATH
5983 do
5984   IFS=$as_save_IFS
5985   test -z "$as_dir" && as_dir=.
5986   for ac_exec_ext in '' $ac_executable_extensions; do
5987   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988     ac_cv_prog_ac_ct_AR="ar"
5989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5990     break 2
5991   fi
5992 done
5993 done
5994
5995   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5996 fi
5997 fi
5998 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5999 if test -n "$ac_ct_AR"; then
6000   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6001 echo "${ECHO_T}$ac_ct_AR" >&6
6002 else
6003   echo "$as_me:$LINENO: result: no" >&5
6004 echo "${ECHO_T}no" >&6
6005 fi
6006
6007   AR=$ac_ct_AR
6008 else
6009   AR="$ac_cv_prog_AR"
6010 fi
6011
6012 if test -n "$ac_tool_prefix"; then
6013   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6015 echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6017 if test "${ac_cv_prog_RANLIB+set}" = set; then
6018   echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020   if test -n "$RANLIB"; then
6021   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026   IFS=$as_save_IFS
6027   test -z "$as_dir" && as_dir=.
6028   for ac_exec_ext in '' $ac_executable_extensions; do
6029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032     break 2
6033   fi
6034 done
6035 done
6036
6037 fi
6038 fi
6039 RANLIB=$ac_cv_prog_RANLIB
6040 if test -n "$RANLIB"; then
6041   echo "$as_me:$LINENO: result: $RANLIB" >&5
6042 echo "${ECHO_T}$RANLIB" >&6
6043 else
6044   echo "$as_me:$LINENO: result: no" >&5
6045 echo "${ECHO_T}no" >&6
6046 fi
6047
6048 fi
6049 if test -z "$ac_cv_prog_RANLIB"; then
6050   ac_ct_RANLIB=$RANLIB
6051   # Extract the first word of "ranlib", so it can be a program name with args.
6052 set dummy ranlib; ac_word=$2
6053 echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6055 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   if test -n "$ac_ct_RANLIB"; then
6059   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066   for ac_exec_ext in '' $ac_executable_extensions; do
6067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068     ac_cv_prog_ac_ct_RANLIB="ranlib"
6069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070     break 2
6071   fi
6072 done
6073 done
6074
6075   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6076 fi
6077 fi
6078 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6079 if test -n "$ac_ct_RANLIB"; then
6080   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6081 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6082 else
6083   echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6
6085 fi
6086
6087   RANLIB=$ac_ct_RANLIB
6088 else
6089   RANLIB="$ac_cv_prog_RANLIB"
6090 fi
6091
6092 if test -n "$ac_tool_prefix"; then
6093   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}strip; ac_word=$2
6095 echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6097 if test "${ac_cv_prog_STRIP+set}" = set; then
6098   echo $ECHO_N "(cached) $ECHO_C" >&6
6099 else
6100   if test -n "$STRIP"; then
6101   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108   for ac_exec_ext in '' $ac_executable_extensions; do
6109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112     break 2
6113   fi
6114 done
6115 done
6116
6117 fi
6118 fi
6119 STRIP=$ac_cv_prog_STRIP
6120 if test -n "$STRIP"; then
6121   echo "$as_me:$LINENO: result: $STRIP" >&5
6122 echo "${ECHO_T}$STRIP" >&6
6123 else
6124   echo "$as_me:$LINENO: result: no" >&5
6125 echo "${ECHO_T}no" >&6
6126 fi
6127
6128 fi
6129 if test -z "$ac_cv_prog_STRIP"; then
6130   ac_ct_STRIP=$STRIP
6131   # Extract the first word of "strip", so it can be a program name with args.
6132 set dummy strip; ac_word=$2
6133 echo "$as_me:$LINENO: checking for $ac_word" >&5
6134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6135 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6136   echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138   if test -n "$ac_ct_STRIP"; then
6139   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144   IFS=$as_save_IFS
6145   test -z "$as_dir" && as_dir=.
6146   for ac_exec_ext in '' $ac_executable_extensions; do
6147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148     ac_cv_prog_ac_ct_STRIP="strip"
6149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150     break 2
6151   fi
6152 done
6153 done
6154
6155   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6156 fi
6157 fi
6158 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6159 if test -n "$ac_ct_STRIP"; then
6160   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6161 echo "${ECHO_T}$ac_ct_STRIP" >&6
6162 else
6163   echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6
6165 fi
6166
6167   STRIP=$ac_ct_STRIP
6168 else
6169   STRIP="$ac_cv_prog_STRIP"
6170 fi
6171
6172
6173 old_CC="$CC"
6174 old_CFLAGS="$CFLAGS"
6175
6176 # Set sane defaults for various variables
6177 test -z "$AR" && AR=ar
6178 test -z "$AR_FLAGS" && AR_FLAGS=cru
6179 test -z "$AS" && AS=as
6180 test -z "$CC" && CC=cc
6181 test -z "$LTCC" && LTCC=$CC
6182 test -z "$DLLTOOL" && DLLTOOL=dlltool
6183 test -z "$LD" && LD=ld
6184 test -z "$LN_S" && LN_S="ln -s"
6185 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6186 test -z "$NM" && NM=nm
6187 test -z "$SED" && SED=sed
6188 test -z "$OBJDUMP" && OBJDUMP=objdump
6189 test -z "$RANLIB" && RANLIB=:
6190 test -z "$STRIP" && STRIP=:
6191 test -z "$ac_objext" && ac_objext=o
6192
6193 # Determine commands to create old-style static archives.
6194 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6195 old_postinstall_cmds='chmod 644 $oldlib'
6196 old_postuninstall_cmds=
6197
6198 if test -n "$RANLIB"; then
6199   case $host_os in
6200   openbsd*)
6201     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6202     ;;
6203   *)
6204     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6205     ;;
6206   esac
6207   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6208 fi
6209
6210 for cc_temp in $compiler""; do
6211   case $cc_temp in
6212     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6213     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6214     \-*) ;;
6215     *) break;;
6216   esac
6217 done
6218 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6219
6220
6221 # Only perform the check for file, if the check method requires it
6222 case $deplibs_check_method in
6223 file_magic*)
6224   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6225     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6226 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   case $MAGIC_CMD in
6231 [\\/*] |  ?:[\\/]*)
6232   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6233   ;;
6234 *)
6235   lt_save_MAGIC_CMD="$MAGIC_CMD"
6236   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6237   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6238   for ac_dir in $ac_dummy; do
6239     IFS="$lt_save_ifs"
6240     test -z "$ac_dir" && ac_dir=.
6241     if test -f $ac_dir/${ac_tool_prefix}file; then
6242       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6243       if test -n "$file_magic_test_file"; then
6244         case $deplibs_check_method in
6245         "file_magic "*)
6246           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6247           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6248           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6249             $EGREP "$file_magic_regex" > /dev/null; then
6250             :
6251           else
6252             cat <<EOF 1>&2
6253
6254 *** Warning: the command libtool uses to detect shared libraries,
6255 *** $file_magic_cmd, produces output that libtool cannot recognize.
6256 *** The result is that libtool may fail to recognize shared libraries
6257 *** as such.  This will affect the creation of libtool libraries that
6258 *** depend on shared libraries, but programs linked with such libtool
6259 *** libraries will work regardless of this problem.  Nevertheless, you
6260 *** may want to report the problem to your system manager and/or to
6261 *** bug-libtool@gnu.org
6262
6263 EOF
6264           fi ;;
6265         esac
6266       fi
6267       break
6268     fi
6269   done
6270   IFS="$lt_save_ifs"
6271   MAGIC_CMD="$lt_save_MAGIC_CMD"
6272   ;;
6273 esac
6274 fi
6275
6276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6277 if test -n "$MAGIC_CMD"; then
6278   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6279 echo "${ECHO_T}$MAGIC_CMD" >&6
6280 else
6281   echo "$as_me:$LINENO: result: no" >&5
6282 echo "${ECHO_T}no" >&6
6283 fi
6284
6285 if test -z "$lt_cv_path_MAGIC_CMD"; then
6286   if test -n "$ac_tool_prefix"; then
6287     echo "$as_me:$LINENO: checking for file" >&5
6288 echo $ECHO_N "checking for file... $ECHO_C" >&6
6289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   case $MAGIC_CMD in
6293 [\\/*] |  ?:[\\/]*)
6294   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6295   ;;
6296 *)
6297   lt_save_MAGIC_CMD="$MAGIC_CMD"
6298   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6299   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6300   for ac_dir in $ac_dummy; do
6301     IFS="$lt_save_ifs"
6302     test -z "$ac_dir" && ac_dir=.
6303     if test -f $ac_dir/file; then
6304       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6305       if test -n "$file_magic_test_file"; then
6306         case $deplibs_check_method in
6307         "file_magic "*)
6308           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6309           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6310           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6311             $EGREP "$file_magic_regex" > /dev/null; then
6312             :
6313           else
6314             cat <<EOF 1>&2
6315
6316 *** Warning: the command libtool uses to detect shared libraries,
6317 *** $file_magic_cmd, produces output that libtool cannot recognize.
6318 *** The result is that libtool may fail to recognize shared libraries
6319 *** as such.  This will affect the creation of libtool libraries that
6320 *** depend on shared libraries, but programs linked with such libtool
6321 *** libraries will work regardless of this problem.  Nevertheless, you
6322 *** may want to report the problem to your system manager and/or to
6323 *** bug-libtool@gnu.org
6324
6325 EOF
6326           fi ;;
6327         esac
6328       fi
6329       break
6330     fi
6331   done
6332   IFS="$lt_save_ifs"
6333   MAGIC_CMD="$lt_save_MAGIC_CMD"
6334   ;;
6335 esac
6336 fi
6337
6338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6339 if test -n "$MAGIC_CMD"; then
6340   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6341 echo "${ECHO_T}$MAGIC_CMD" >&6
6342 else
6343   echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6
6345 fi
6346
6347   else
6348     MAGIC_CMD=:
6349   fi
6350 fi
6351
6352   fi
6353   ;;
6354 esac
6355
6356 enable_dlopen=no
6357 enable_win32_dll=no
6358
6359 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6360 if test "${enable_libtool_lock+set}" = set; then
6361   enableval="$enable_libtool_lock"
6362
6363 fi;
6364 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6365
6366
6367 # Check whether --with-pic or --without-pic was given.
6368 if test "${with_pic+set}" = set; then
6369   withval="$with_pic"
6370   pic_mode="$withval"
6371 else
6372   pic_mode=default
6373 fi;
6374 test -z "$pic_mode" && pic_mode=default
6375
6376 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6377 #
6378 # Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6379 #        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6380 #        calls AC_LIBTOOL_CONFIG and creates libtool.
6381 #
6382 echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6383 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
6384 if test -z "$ltmain"; then
6385   echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6
6387   echo
6388   echo "*** Gentoo sanity check failed! ***"
6389   echo "*** \$ltmain is not defined, please check the patch for consistency! ***"
6390   echo
6391   exit 1
6392 fi
6393 gentoo_lt_version="1.5.18"
6394 gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`
6395 if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then
6396   echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6
6398   echo
6399   echo "*** Gentoo sanity check failed! ***"
6400   echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"
6401   echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"
6402   echo
6403   echo "Please run:"
6404   echo
6405   echo "  libtoolize --copy --force"
6406   echo
6407   echo "if appropriate, please contact the maintainer of this"
6408   echo "package (or your distribution) for help."
6409   echo
6410   exit 1
6411 else
6412   echo "$as_me:$LINENO: result: yes" >&5
6413 echo "${ECHO_T}yes" >&6
6414 fi
6415
6416
6417 # Use C for the default configuration in the libtool script
6418 tagname=
6419 lt_save_CC="$CC"
6420 ac_ext=c
6421 ac_cpp='$CPP $CPPFLAGS'
6422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425
6426
6427 # Source file extension for C test sources.
6428 ac_ext=c
6429
6430 # Object file extension for compiled C test sources.
6431 objext=o
6432 objext=$objext
6433
6434 # Code to be used in simple compile tests
6435 lt_simple_compile_test_code="int some_variable = 0;\n"
6436
6437 # Code to be used in simple link tests
6438 lt_simple_link_test_code='int main(){return(0);}\n'
6439
6440
6441 # If no C compiler was specified, use CC.
6442 LTCC=${LTCC-"$CC"}
6443
6444 # Allow CC to be a program name with arguments.
6445 compiler=$CC
6446
6447
6448 # save warnings/boilerplate of simple test code
6449 ac_outfile=conftest.$ac_objext
6450 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6451 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6452 _lt_compiler_boilerplate=`cat conftest.err`
6453 $rm conftest*
6454
6455 ac_outfile=conftest.$ac_objext
6456 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6457 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6458 _lt_linker_boilerplate=`cat conftest.err`
6459 $rm conftest*
6460
6461
6462 #
6463 # Check for any special shared library compilation flags.
6464 #
6465 lt_prog_cc_shlib=
6466 if test "$GCC" = no; then
6467   case $host_os in
6468   sco3.2v5*)
6469     lt_prog_cc_shlib='-belf'
6470     ;;
6471   esac
6472 fi
6473 if test -n "$lt_prog_cc_shlib"; then
6474   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6475 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6476   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6477   else
6478     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6479 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6480     lt_cv_prog_cc_can_build_shared=no
6481   fi
6482 fi
6483
6484
6485 #
6486 # Check to make sure the static flag actually works.
6487 #
6488 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6489 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6490 if test "${lt_prog_compiler_static_works+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   lt_prog_compiler_static_works=no
6494    save_LDFLAGS="$LDFLAGS"
6495    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6496    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6497    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6498      # The compiler can only warn and ignore the option if not recognized
6499      # So say no if there are warnings
6500      if test -s conftest.err; then
6501        # Append any errors to the config.log.
6502        cat conftest.err 1>&5
6503        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6504        $SED '/^$/d' conftest.err >conftest.er2
6505        if diff conftest.exp conftest.er2 >/dev/null; then
6506          lt_prog_compiler_static_works=yes
6507        fi
6508      else
6509        lt_prog_compiler_static_works=yes
6510      fi
6511    fi
6512    $rm conftest*
6513    LDFLAGS="$save_LDFLAGS"
6514
6515 fi
6516 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6517 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6518
6519 if test x"$lt_prog_compiler_static_works" = xyes; then
6520     :
6521 else
6522     lt_prog_compiler_static=
6523 fi
6524
6525
6526
6527
6528 lt_prog_compiler_no_builtin_flag=
6529
6530 if test "$GCC" = yes; then
6531   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6532
6533
6534 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6535 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6536 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   lt_cv_prog_compiler_rtti_exceptions=no
6540   ac_outfile=conftest.$ac_objext
6541    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6542    lt_compiler_flag="-fno-rtti -fno-exceptions"
6543    # Insert the option either (1) after the last *FLAGS variable, or
6544    # (2) before a word containing "conftest.", or (3) at the end.
6545    # Note that $ac_compile itself does not contain backslashes and begins
6546    # with a dollar sign (not a hyphen), so the echo should work correctly.
6547    # The option is referenced via a variable to avoid confusing sed.
6548    lt_compile=`echo "$ac_compile" | $SED \
6549    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6551    -e 's:$: $lt_compiler_flag:'`
6552    (eval echo "\"\$as_me:6552: $lt_compile\"" >&5)
6553    (eval "$lt_compile" 2>conftest.err)
6554    ac_status=$?
6555    cat conftest.err >&5
6556    echo "$as_me:6556: \$? = $ac_status" >&5
6557    if (exit $ac_status) && test -s "$ac_outfile"; then
6558      # The compiler can only warn and ignore the option if not recognized
6559      # So say no if there are warnings other than the usual output.
6560      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6561      $SED '/^$/d' conftest.err >conftest.er2
6562      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6563        lt_cv_prog_compiler_rtti_exceptions=yes
6564      fi
6565    fi
6566    $rm conftest*
6567
6568 fi
6569 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6570 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6571
6572 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6573     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6574 else
6575     :
6576 fi
6577
6578 fi
6579
6580 lt_prog_compiler_wl=
6581 lt_prog_compiler_pic=
6582 lt_prog_compiler_static=
6583
6584 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6586
6587   if test "$GCC" = yes; then
6588     lt_prog_compiler_wl='-Wl,'
6589     lt_prog_compiler_static='-static'
6590
6591     case $host_os in
6592       aix*)
6593       # All AIX code is PIC.
6594       if test "$host_cpu" = ia64; then
6595         # AIX 5 now supports IA64 processor
6596         lt_prog_compiler_static='-Bstatic'
6597       fi
6598       ;;
6599
6600     amigaos*)
6601       # FIXME: we need at least 68020 code to build shared libraries, but
6602       # adding the `-m68020' flag to GCC prevents building anything better,
6603       # like `-m68040'.
6604       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6605       ;;
6606
6607     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6608       # PIC is the default for these OSes.
6609       ;;
6610
6611     mingw* | pw32* | os2*)
6612       # This hack is so that the source file can tell whether it is being
6613       # built for inclusion in a dll (and should export symbols for example).
6614       lt_prog_compiler_pic='-DDLL_EXPORT'
6615       ;;
6616
6617     darwin* | rhapsody*)
6618       # PIC is the default on this platform
6619       # Common symbols not allowed in MH_DYLIB files
6620       lt_prog_compiler_pic='-fno-common'
6621       ;;
6622
6623     msdosdjgpp*)
6624       # Just because we use GCC doesn't mean we suddenly get shared libraries
6625       # on systems that don't support them.
6626       lt_prog_compiler_can_build_shared=no
6627       enable_shared=no
6628       ;;
6629
6630     sysv4*MP*)
6631       if test -d /usr/nec; then
6632         lt_prog_compiler_pic=-Kconform_pic
6633       fi
6634       ;;
6635
6636     hpux*)
6637       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6638       # not for PA HP-UX.
6639       case "$host_cpu" in
6640       hppa*64*|ia64*)
6641         # +Z the default
6642         ;;
6643       *)
6644         lt_prog_compiler_pic='-fPIC'
6645         ;;
6646       esac
6647       ;;
6648
6649     *)
6650       lt_prog_compiler_pic='-fPIC'
6651       ;;
6652     esac
6653   else
6654     # PORTME Check for flag to pass linker flags through the system compiler.
6655     case $host_os in
6656     aix*)
6657       lt_prog_compiler_wl='-Wl,'
6658       if test "$host_cpu" = ia64; then
6659         # AIX 5 now supports IA64 processor
6660         lt_prog_compiler_static='-Bstatic'
6661       else
6662         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6663       fi
6664       ;;
6665       darwin*)
6666         # PIC is the default on this platform
6667         # Common symbols not allowed in MH_DYLIB files
6668        case $cc_basename in
6669          xlc*)
6670          lt_prog_compiler_pic='-qnocommon'
6671          lt_prog_compiler_wl='-Wl,'
6672          ;;
6673        esac
6674        ;;
6675
6676     mingw* | pw32* | os2*)
6677       # This hack is so that the source file can tell whether it is being
6678       # built for inclusion in a dll (and should export symbols for example).
6679       lt_prog_compiler_pic='-DDLL_EXPORT'
6680       ;;
6681
6682     hpux9* | hpux10* | hpux11*)
6683       lt_prog_compiler_wl='-Wl,'
6684       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6685       # not for PA HP-UX.
6686       case "$host_cpu" in
6687       hppa*64*|ia64*)
6688         # +Z the default
6689         ;;
6690       *)
6691         lt_prog_compiler_pic='+Z'
6692         ;;
6693       esac
6694       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6695       lt_prog_compiler_static='${wl}-a ${wl}archive'
6696       ;;
6697
6698     irix5* | irix6* | nonstopux*)
6699       lt_prog_compiler_wl='-Wl,'
6700       # PIC (with -KPIC) is the default.
6701       lt_prog_compiler_static='-non_shared'
6702       ;;
6703
6704     newsos6)
6705       lt_prog_compiler_pic='-KPIC'
6706       lt_prog_compiler_static='-Bstatic'
6707       ;;
6708
6709     linux*)
6710       case $cc_basename in
6711       icc* | ecc*)
6712         lt_prog_compiler_wl='-Wl,'
6713         lt_prog_compiler_pic='-KPIC'
6714         lt_prog_compiler_static='-static'
6715         ;;
6716       pgcc* | pgf77* | pgf90*)
6717         # Portland Group compilers (*not* the Pentium gcc compiler,
6718         # which looks to be a dead project)
6719         lt_prog_compiler_wl='-Wl,'
6720         lt_prog_compiler_pic='-fpic'
6721         lt_prog_compiler_static='-static'
6722         ;;
6723       ccc*)
6724         lt_prog_compiler_wl='-Wl,'
6725         # All Alpha code is PIC.
6726         lt_prog_compiler_static='-non_shared'
6727         ;;
6728       esac
6729       ;;
6730
6731     osf3* | osf4* | osf5*)
6732       lt_prog_compiler_wl='-Wl,'
6733       # All OSF/1 code is PIC.
6734       lt_prog_compiler_static='-non_shared'
6735       ;;
6736
6737     sco3.2v5*)
6738       lt_prog_compiler_pic='-Kpic'
6739       lt_prog_compiler_static='-dn'
6740       ;;
6741
6742     solaris*)
6743       lt_prog_compiler_pic='-KPIC'
6744       lt_prog_compiler_static='-Bstatic'
6745       case $cc_basename in
6746       f77* | f90* | f95*)
6747         lt_prog_compiler_wl='-Qoption ld ';;
6748       *)
6749         lt_prog_compiler_wl='-Wl,';;
6750       esac
6751       ;;
6752
6753     sunos4*)
6754       lt_prog_compiler_wl='-Qoption ld '
6755       lt_prog_compiler_pic='-PIC'
6756       lt_prog_compiler_static='-Bstatic'
6757       ;;
6758
6759     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6760       lt_prog_compiler_wl='-Wl,'
6761       lt_prog_compiler_pic='-KPIC'
6762       lt_prog_compiler_static='-Bstatic'
6763       ;;
6764
6765     sysv4*MP*)
6766       if test -d /usr/nec ;then
6767         lt_prog_compiler_pic='-Kconform_pic'
6768         lt_prog_compiler_static='-Bstatic'
6769       fi
6770       ;;
6771
6772     unicos*)
6773       lt_prog_compiler_wl='-Wl,'
6774       lt_prog_compiler_can_build_shared=no
6775       ;;
6776
6777     uts4*)
6778       lt_prog_compiler_pic='-pic'
6779       lt_prog_compiler_static='-Bstatic'
6780       ;;
6781
6782     *)
6783       lt_prog_compiler_can_build_shared=no
6784       ;;
6785     esac
6786   fi
6787
6788 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6789 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6790
6791 #
6792 # Check to make sure the PIC flag actually works.
6793 #
6794 if test -n "$lt_prog_compiler_pic"; then
6795
6796 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6797 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6798 if test "${lt_prog_compiler_pic_works+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   lt_prog_compiler_pic_works=no
6802   ac_outfile=conftest.$ac_objext
6803    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6804    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6805    # Insert the option either (1) after the last *FLAGS variable, or
6806    # (2) before a word containing "conftest.", or (3) at the end.
6807    # Note that $ac_compile itself does not contain backslashes and begins
6808    # with a dollar sign (not a hyphen), so the echo should work correctly.
6809    # The option is referenced via a variable to avoid confusing sed.
6810    lt_compile=`echo "$ac_compile" | $SED \
6811    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6813    -e 's:$: $lt_compiler_flag:'`
6814    (eval echo "\"\$as_me:6814: $lt_compile\"" >&5)
6815    (eval "$lt_compile" 2>conftest.err)
6816    ac_status=$?
6817    cat conftest.err >&5
6818    echo "$as_me:6818: \$? = $ac_status" >&5
6819    if (exit $ac_status) && test -s "$ac_outfile"; then
6820      # The compiler can only warn and ignore the option if not recognized
6821      # So say no if there are warnings other than the usual output.
6822      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6823      $SED '/^$/d' conftest.err >conftest.er2
6824      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6825        lt_prog_compiler_pic_works=yes
6826      fi
6827    fi
6828    $rm conftest*
6829
6830 fi
6831 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6832 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6833
6834 if test x"$lt_prog_compiler_pic_works" = xyes; then
6835     case $lt_prog_compiler_pic in
6836      "" | " "*) ;;
6837      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6838      esac
6839 else
6840     lt_prog_compiler_pic=
6841      lt_prog_compiler_can_build_shared=no
6842 fi
6843
6844 fi
6845 case "$host_os" in
6846   # For platforms which do not support PIC, -DPIC is meaningless:
6847   *djgpp*)
6848     lt_prog_compiler_pic=
6849     ;;
6850   *)
6851     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6852     ;;
6853 esac
6854
6855 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6856 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6857 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   lt_cv_prog_compiler_c_o=no
6861    $rm -r conftest 2>/dev/null
6862    mkdir conftest
6863    cd conftest
6864    mkdir out
6865    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6866
6867    lt_compiler_flag="-o out/conftest2.$ac_objext"
6868    # Insert the option either (1) after the last *FLAGS variable, or
6869    # (2) before a word containing "conftest.", or (3) at the end.
6870    # Note that $ac_compile itself does not contain backslashes and begins
6871    # with a dollar sign (not a hyphen), so the echo should work correctly.
6872    lt_compile=`echo "$ac_compile" | $SED \
6873    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6875    -e 's:$: $lt_compiler_flag:'`
6876    (eval echo "\"\$as_me:6876: $lt_compile\"" >&5)
6877    (eval "$lt_compile" 2>out/conftest.err)
6878    ac_status=$?
6879    cat out/conftest.err >&5
6880    echo "$as_me:6880: \$? = $ac_status" >&5
6881    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6882    then
6883      # The compiler can only warn and ignore the option if not recognized
6884      # So say no if there are warnings
6885      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6886      $SED '/^$/d' out/conftest.err >out/conftest.er2
6887      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6888        lt_cv_prog_compiler_c_o=yes
6889      fi
6890    fi
6891    chmod u+w .
6892    $rm conftest*
6893    # SGI C++ compiler will create directory out/ii_files/ for
6894    # template instantiation
6895    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6896    $rm out/* && rmdir out
6897    cd ..
6898    rmdir conftest
6899    $rm conftest*
6900
6901 fi
6902 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6903 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6904
6905
6906 hard_links="nottested"
6907 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6908   # do not overwrite the value of need_locks provided by the user
6909   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6910 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6911   hard_links=yes
6912   $rm conftest*
6913   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6914   touch conftest.a
6915   ln conftest.a conftest.b 2>&5 || hard_links=no
6916   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6917   echo "$as_me:$LINENO: result: $hard_links" >&5
6918 echo "${ECHO_T}$hard_links" >&6
6919   if test "$hard_links" = no; then
6920     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6921 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6922     need_locks=warn
6923   fi
6924 else
6925   need_locks=no
6926 fi
6927
6928 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6929 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6930
6931   runpath_var=
6932   allow_undefined_flag=
6933   enable_shared_with_static_runtimes=no
6934   archive_cmds=
6935   archive_expsym_cmds=
6936   old_archive_From_new_cmds=
6937   old_archive_from_expsyms_cmds=
6938   export_dynamic_flag_spec=
6939   whole_archive_flag_spec=
6940   thread_safe_flag_spec=
6941   hardcode_libdir_flag_spec=
6942   hardcode_libdir_flag_spec_ld=
6943   hardcode_libdir_separator=
6944   hardcode_direct=no
6945   hardcode_minus_L=no
6946   hardcode_shlibpath_var=unsupported
6947   link_all_deplibs=unknown
6948   hardcode_automatic=no
6949   module_cmds=
6950   module_expsym_cmds=
6951   always_export_symbols=no
6952   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6953   # include_expsyms should be a list of space-separated symbols to be *always*
6954   # included in the symbol list
6955   include_expsyms=
6956   # exclude_expsyms can be an extended regexp of symbols to exclude
6957   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6958   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6959   # as well as any symbol that contains `d'.
6960   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6961   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6962   # platforms (ab)use it in PIC code, but their linkers get confused if
6963   # the symbol is explicitly referenced.  Since portable code cannot
6964   # rely on this symbol name, it's probably fine to never include it in
6965   # preloaded symbol tables.
6966   extract_expsyms_cmds=
6967   # Just being paranoid about ensuring that cc_basename is set.
6968   for cc_temp in $compiler""; do
6969   case $cc_temp in
6970     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6971     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6972     \-*) ;;
6973     *) break;;
6974   esac
6975 done
6976 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6977
6978   case $host_os in
6979   cygwin* | mingw* | pw32*)
6980     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6981     # When not using gcc, we currently assume that we are using
6982     # Microsoft Visual C++.
6983     if test "$GCC" != yes; then
6984       with_gnu_ld=no
6985     fi
6986     ;;
6987   openbsd*)
6988     with_gnu_ld=no
6989     ;;
6990   esac
6991
6992   ld_shlibs=yes
6993   if test "$with_gnu_ld" = yes; then
6994     # If archive_cmds runs LD, not CC, wlarc should be empty
6995     wlarc='${wl}'
6996
6997     # Set some defaults for GNU ld with shared library support. These
6998     # are reset later if shared libraries are not supported. Putting them
6999     # here allows them to be overridden if necessary.
7000     runpath_var=LD_RUN_PATH
7001     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7002     export_dynamic_flag_spec='${wl}--export-dynamic'
7003     # ancient GNU ld didn't support --whole-archive et. al.
7004     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7005         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7006       else
7007         whole_archive_flag_spec=
7008     fi
7009     supports_anon_versioning=no
7010     case `$LD -v 2>/dev/null` in
7011       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7012       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7013       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7014       *\ 2.11.*) ;; # other 2.11 versions
7015       *) supports_anon_versioning=yes ;;
7016     esac
7017
7018     # See if GNU ld supports shared libraries.
7019     case $host_os in
7020     aix3* | aix4* | aix5*)
7021       # On AIX/PPC, the GNU linker is very broken
7022       if test "$host_cpu" != ia64; then
7023         ld_shlibs=no
7024         cat <<EOF 1>&2
7025
7026 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7027 *** to be unable to reliably create shared libraries on AIX.
7028 *** Therefore, libtool is disabling shared libraries support.  If you
7029 *** really care for shared libraries, you may want to modify your PATH
7030 *** so that a non-GNU linker is found, and then restart.
7031
7032 EOF
7033       fi
7034       ;;
7035
7036     amigaos*)
7037       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)'
7038       hardcode_libdir_flag_spec='-L$libdir'
7039       hardcode_minus_L=yes
7040
7041       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7042       # that the semantics of dynamic libraries on AmigaOS, at least up
7043       # to version 4, is to share data among multiple programs linked
7044       # with the same dynamic library.  Since this doesn't match the
7045       # behavior of shared libraries on other platforms, we can't use
7046       # them.
7047       ld_shlibs=no
7048       ;;
7049
7050     beos*)
7051       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7052         allow_undefined_flag=unsupported
7053         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7054         # support --undefined.  This deserves some investigation.  FIXME
7055         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7056       else
7057         ld_shlibs=no
7058       fi
7059       ;;
7060
7061     cygwin* | mingw* | pw32*)
7062       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7063       # as there is no search path for DLLs.
7064       hardcode_libdir_flag_spec='-L$libdir'
7065       allow_undefined_flag=unsupported
7066       always_export_symbols=no
7067       enable_shared_with_static_runtimes=yes
7068       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7069
7070       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7071         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7072         # If the export-symbols file already is a .def file (1st line
7073         # is EXPORTS), use it as is; otherwise, prepend...
7074         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7075           cp $export_symbols $output_objdir/$soname.def;
7076         else
7077           echo EXPORTS > $output_objdir/$soname.def;
7078           cat $export_symbols >> $output_objdir/$soname.def;
7079         fi~
7080         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7081       else
7082         ld_shlibs=no
7083       fi
7084       ;;
7085
7086     linux*)
7087       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7088         tmp_addflag=
7089         case $cc_basename,$host_cpu in
7090         pgcc*)                          # Portland Group C compiler
7091           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'
7092           tmp_addflag=' $pic_flag'
7093           ;;
7094         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
7095           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'
7096           tmp_addflag=' $pic_flag -Mnomain' ;;
7097         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7098           tmp_addflag=' -i_dynamic' ;;
7099         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7100           tmp_addflag=' -i_dynamic -nofor_main' ;;
7101         ifc* | ifort*)                  # Intel Fortran compiler
7102           tmp_addflag=' -nofor_main' ;;
7103         esac
7104         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7105
7106         if test $supports_anon_versioning = yes; then
7107           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7108   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7109   $echo "local: *; };" >> $output_objdir/$libname.ver~
7110           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7111         fi
7112       else
7113         ld_shlibs=no
7114       fi
7115       ;;
7116
7117     netbsd*)
7118       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7119         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7120         wlarc=
7121       else
7122         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7123         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7124       fi
7125       ;;
7126
7127     solaris* | sysv5*)
7128       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7129         ld_shlibs=no
7130         cat <<EOF 1>&2
7131
7132 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7133 *** create shared libraries on Solaris systems.  Therefore, libtool
7134 *** is disabling shared libraries support.  We urge you to upgrade GNU
7135 *** binutils to release 2.9.1 or newer.  Another option is to modify
7136 *** your PATH or compiler configuration so that the native linker is
7137 *** used, and then restart.
7138
7139 EOF
7140       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7141         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7142         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7143       else
7144         ld_shlibs=no
7145       fi
7146       ;;
7147
7148     sunos4*)
7149       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7150       wlarc=
7151       hardcode_direct=yes
7152       hardcode_shlibpath_var=no
7153       ;;
7154
7155     *)
7156       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7157         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7158         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7159       else
7160         ld_shlibs=no
7161       fi
7162       ;;
7163     esac
7164
7165     if test "$ld_shlibs" = no; then
7166       runpath_var=
7167       hardcode_libdir_flag_spec=
7168       export_dynamic_flag_spec=
7169       whole_archive_flag_spec=
7170     fi
7171   else
7172     # PORTME fill in a description of your system's linker (not GNU ld)
7173     case $host_os in
7174     aix3*)
7175       allow_undefined_flag=unsupported
7176       always_export_symbols=yes
7177       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'
7178       # Note: this linker hardcodes the directories in LIBPATH if there
7179       # are no directories specified by -L.
7180       hardcode_minus_L=yes
7181       if test "$GCC" = yes && test -z "$link_static_flag"; then
7182         # Neither direct hardcoding nor static linking is supported with a
7183         # broken collect2.
7184         hardcode_direct=unsupported
7185       fi
7186       ;;
7187
7188     aix4* | aix5*)
7189       if test "$host_cpu" = ia64; then
7190         # On IA64, the linker does run time linking by default, so we don't
7191         # have to do anything special.
7192         aix_use_runtimelinking=no
7193         exp_sym_flag='-Bexport'
7194         no_entry_flag=""
7195       else
7196         # If we're using GNU nm, then we don't want the "-C" option.
7197         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7198         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7199           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'
7200         else
7201           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'
7202         fi
7203         aix_use_runtimelinking=no
7204
7205         # Test if we are trying to use run time linking or normal
7206         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7207         # need to do runtime linking.
7208         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7209           for ld_flag in $LDFLAGS; do
7210           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7211             aix_use_runtimelinking=yes
7212             break
7213           fi
7214           done
7215         esac
7216
7217         exp_sym_flag='-bexport'
7218         no_entry_flag='-bnoentry'
7219       fi
7220
7221       # When large executables or shared objects are built, AIX ld can
7222       # have problems creating the table of contents.  If linking a library
7223       # or program results in "error TOC overflow" add -mminimal-toc to
7224       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7225       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7226
7227       archive_cmds=''
7228       hardcode_direct=yes
7229       hardcode_libdir_separator=':'
7230       link_all_deplibs=yes
7231
7232       if test "$GCC" = yes; then
7233         case $host_os in aix4.[012]|aix4.[012].*)
7234         # We only want to do this on AIX 4.2 and lower, the check
7235         # below for broken collect2 doesn't work under 4.3+
7236           collect2name=`${CC} -print-prog-name=collect2`
7237           if test -f "$collect2name" && \
7238            strings "$collect2name" | grep resolve_lib_name >/dev/null
7239           then
7240           # We have reworked collect2
7241           hardcode_direct=yes
7242           else
7243           # We have old collect2
7244           hardcode_direct=unsupported
7245           # It fails to find uninstalled libraries when the uninstalled
7246           # path is not listed in the libpath.  Setting hardcode_minus_L
7247           # to unsupported forces relinking
7248           hardcode_minus_L=yes
7249           hardcode_libdir_flag_spec='-L$libdir'
7250           hardcode_libdir_separator=
7251           fi
7252         esac
7253         shared_flag='-shared'
7254         if test "$aix_use_runtimelinking" = yes; then
7255           shared_flag="$shared_flag "'${wl}-G'
7256         fi
7257       else
7258         # not using gcc
7259         if test "$host_cpu" = ia64; then
7260         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7261         # chokes on -Wl,-G. The following line is correct:
7262           shared_flag='-G'
7263         else
7264         if test "$aix_use_runtimelinking" = yes; then
7265             shared_flag='${wl}-G'
7266           else
7267             shared_flag='${wl}-bM:SRE'
7268         fi
7269         fi
7270       fi
7271
7272       # It seems that -bexpall does not export symbols beginning with
7273       # underscore (_), so it is better to generate a list of symbols to export.
7274       always_export_symbols=yes
7275       if test "$aix_use_runtimelinking" = yes; then
7276         # Warning - without using the other runtime loading flags (-brtl),
7277         # -berok will link without error, but may produce a broken library.
7278         allow_undefined_flag='-berok'
7279        # Determine the default libpath from the value encoded in an empty executable.
7280        cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h.  */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h.  */
7286
7287 int
7288 main ()
7289 {
7290
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297   (eval $ac_link) 2>conftest.er1
7298   ac_status=$?
7299   grep -v '^ *+' conftest.er1 >conftest.err
7300   rm -f conftest.er1
7301   cat conftest.err >&5
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } &&
7304          { ac_try='test -z "$ac_c_werror_flag"
7305                          || test ! -s conftest.err'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; } &&
7311          { ac_try='test -s conftest$ac_exeext'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; }; then
7317
7318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7319 }'`
7320 # Check for a 64-bit object if we didn't find anything.
7321 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; }
7322 }'`; fi
7323 else
7324   echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 fi
7328 rm -f conftest.err conftest.$ac_objext \
7329       conftest$ac_exeext conftest.$ac_ext
7330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7331
7332        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7333         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7334        else
7335         if test "$host_cpu" = ia64; then
7336           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7337           allow_undefined_flag="-z nodefs"
7338           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7339         else
7340          # Determine the default libpath from the value encoded in an empty executable.
7341          cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h.  */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h.  */
7347
7348 int
7349 main ()
7350 {
7351
7352   ;
7353   return 0;
7354 }
7355 _ACEOF
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7358   (eval $ac_link) 2>conftest.er1
7359   ac_status=$?
7360   grep -v '^ *+' conftest.er1 >conftest.err
7361   rm -f conftest.er1
7362   cat conftest.err >&5
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } &&
7365          { ac_try='test -z "$ac_c_werror_flag"
7366                          || test ! -s conftest.err'
7367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368   (eval $ac_try) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }; } &&
7372          { ac_try='test -s conftest$ac_exeext'
7373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374   (eval $ac_try) 2>&5
7375   ac_status=$?
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); }; }; then
7378
7379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7380 }'`
7381 # Check for a 64-bit object if we didn't find anything.
7382 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; }
7383 }'`; fi
7384 else
7385   echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7387
7388 fi
7389 rm -f conftest.err conftest.$ac_objext \
7390       conftest$ac_exeext conftest.$ac_ext
7391 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7392
7393          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7394           # Warning - without using the other run time loading flags,
7395           # -berok will link without error, but may produce a broken library.
7396           no_undefined_flag=' ${wl}-bernotok'
7397           allow_undefined_flag=' ${wl}-berok'
7398           # -bexpall does not export symbols beginning with underscore (_)
7399           always_export_symbols=yes
7400           # Exported symbols can be pulled into shared objects from archives
7401           whole_archive_flag_spec=' '
7402           archive_cmds_need_lc=yes
7403           # This is similar to how AIX traditionally builds it's shared libraries.
7404           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7405         fi
7406       fi
7407       ;;
7408
7409     amigaos*)
7410       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)'
7411       hardcode_libdir_flag_spec='-L$libdir'
7412       hardcode_minus_L=yes
7413       # see comment about different semantics on the GNU ld section
7414       ld_shlibs=no
7415       ;;
7416
7417     bsdi[45]*)
7418       export_dynamic_flag_spec=-rdynamic
7419       ;;
7420
7421     cygwin* | mingw* | pw32*)
7422       # When not using gcc, we currently assume that we are using
7423       # Microsoft Visual C++.
7424       # hardcode_libdir_flag_spec is actually meaningless, as there is
7425       # no search path for DLLs.
7426       hardcode_libdir_flag_spec=' '
7427       allow_undefined_flag=unsupported
7428       # Tell ltmain to make .lib files, not .a files.
7429       libext=lib
7430       # Tell ltmain to make .dll files, not .so files.
7431       shrext_cmds=".dll"
7432       # FIXME: Setting linknames here is a bad hack.
7433       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7434       # The linker will automatically build a .lib file if we build a DLL.
7435       old_archive_From_new_cmds='true'
7436       # FIXME: Should let the user specify the lib program.
7437       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7438       fix_srcfile_path='`cygpath -w "$srcfile"`'
7439       enable_shared_with_static_runtimes=yes
7440       ;;
7441
7442     darwin* | rhapsody*)
7443       case "$host_os" in
7444         rhapsody* | darwin1.[012])
7445          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7446          ;;
7447        *) # Darwin 1.3 on
7448          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7449            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7450          else
7451            case ${MACOSX_DEPLOYMENT_TARGET} in
7452              10.[012])
7453                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7454                ;;
7455              10.*)
7456                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7457                ;;
7458            esac
7459          fi
7460          ;;
7461       esac
7462       archive_cmds_need_lc=no
7463       hardcode_direct=no
7464       hardcode_automatic=yes
7465       hardcode_shlibpath_var=unsupported
7466       whole_archive_flag_spec=''
7467       link_all_deplibs=yes
7468     if test "$GCC" = yes ; then
7469         output_verbose_link_cmd='echo'
7470         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7471       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7472       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7473       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}'
7474       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}'
7475     else
7476       case $cc_basename in
7477         xlc*)
7478          output_verbose_link_cmd='echo'
7479          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7480          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7481           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7482          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}'
7483           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}'
7484           ;;
7485        *)
7486          ld_shlibs=no
7487           ;;
7488       esac
7489     fi
7490       ;;
7491
7492     dgux*)
7493       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7494       hardcode_libdir_flag_spec='-L$libdir'
7495       hardcode_shlibpath_var=no
7496       ;;
7497
7498     freebsd1*)
7499       ld_shlibs=no
7500       ;;
7501
7502     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7503     # support.  Future versions do this automatically, but an explicit c++rt0.o
7504     # does not break anything, and helps significantly (at the cost of a little
7505     # extra space).
7506     freebsd2.2*)
7507       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7508       hardcode_libdir_flag_spec='-R$libdir'
7509       hardcode_direct=yes
7510       hardcode_shlibpath_var=no
7511       ;;
7512
7513     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7514     freebsd2*)
7515       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7516       hardcode_direct=yes
7517       hardcode_minus_L=yes
7518       hardcode_shlibpath_var=no
7519       ;;
7520
7521     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7522     freebsd* | kfreebsd*-gnu | dragonfly*)
7523       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7524       hardcode_libdir_flag_spec='-R$libdir'
7525       hardcode_direct=yes
7526       hardcode_shlibpath_var=no
7527       ;;
7528
7529     hpux9*)
7530       if test "$GCC" = yes; then
7531         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'
7532       else
7533         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'
7534       fi
7535       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7536       hardcode_libdir_separator=:
7537       hardcode_direct=yes
7538
7539       # hardcode_minus_L: Not really in the search PATH,
7540       # but as the default location of the library.
7541       hardcode_minus_L=yes
7542       export_dynamic_flag_spec='${wl}-E'
7543       ;;
7544
7545     hpux10* | hpux11*)
7546       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7547         case "$host_cpu" in
7548         hppa*64*|ia64*)
7549           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7550           ;;
7551         *)
7552           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7553           ;;
7554         esac
7555       else
7556         case "$host_cpu" in
7557         hppa*64*|ia64*)
7558           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7559           ;;
7560         *)
7561           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7562           ;;
7563         esac
7564       fi
7565       if test "$with_gnu_ld" = no; then
7566         case "$host_cpu" in
7567         hppa*64*)
7568           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7569           hardcode_libdir_flag_spec_ld='+b $libdir'
7570           hardcode_libdir_separator=:
7571           hardcode_direct=no
7572           hardcode_shlibpath_var=no
7573           ;;
7574         ia64*)
7575           hardcode_libdir_flag_spec='-L$libdir'
7576           hardcode_direct=no
7577           hardcode_shlibpath_var=no
7578
7579           # hardcode_minus_L: Not really in the search PATH,
7580           # but as the default location of the library.
7581           hardcode_minus_L=yes
7582           ;;
7583         *)
7584           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7585           hardcode_libdir_separator=:
7586           hardcode_direct=yes
7587           export_dynamic_flag_spec='${wl}-E'
7588
7589           # hardcode_minus_L: Not really in the search PATH,
7590           # but as the default location of the library.
7591           hardcode_minus_L=yes
7592           ;;
7593         esac
7594       fi
7595       ;;
7596
7597     irix5* | irix6* | nonstopux*)
7598       if test "$GCC" = yes; then
7599         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'
7600       else
7601         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'
7602         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7603       fi
7604       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7605       hardcode_libdir_separator=:
7606       link_all_deplibs=yes
7607       ;;
7608
7609     netbsd*)
7610       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7611         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7612       else
7613         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7614       fi
7615       hardcode_libdir_flag_spec='-R$libdir'
7616       hardcode_direct=yes
7617       hardcode_shlibpath_var=no
7618       ;;
7619
7620     newsos6)
7621       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7622       hardcode_direct=yes
7623       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7624       hardcode_libdir_separator=:
7625       hardcode_shlibpath_var=no
7626       ;;
7627
7628     openbsd*)
7629       hardcode_direct=yes
7630       hardcode_shlibpath_var=no
7631       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7632         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7633         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7634         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7635         export_dynamic_flag_spec='${wl}-E'
7636       else
7637        case $host_os in
7638          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7639            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7640            hardcode_libdir_flag_spec='-R$libdir'
7641            ;;
7642          *)
7643            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7644            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7645            ;;
7646        esac
7647       fi
7648       ;;
7649
7650     os2*)
7651       hardcode_libdir_flag_spec='-L$libdir'
7652       hardcode_minus_L=yes
7653       allow_undefined_flag=unsupported
7654       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'
7655       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7656       ;;
7657
7658     osf3*)
7659       if test "$GCC" = yes; then
7660         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7661         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'
7662       else
7663         allow_undefined_flag=' -expect_unresolved \*'
7664         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'
7665       fi
7666       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7667       hardcode_libdir_separator=:
7668       ;;
7669
7670     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7671       if test "$GCC" = yes; then
7672         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7673         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'
7674         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7675       else
7676         allow_undefined_flag=' -expect_unresolved \*'
7677         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'
7678         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7679         $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'
7680
7681         # Both c and cxx compiler support -rpath directly
7682         hardcode_libdir_flag_spec='-rpath $libdir'
7683       fi
7684       hardcode_libdir_separator=:
7685       ;;
7686
7687     sco3.2v5*)
7688       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689       hardcode_shlibpath_var=no
7690       export_dynamic_flag_spec='${wl}-Bexport'
7691       runpath_var=LD_RUN_PATH
7692       hardcode_runpath_var=yes
7693       ;;
7694
7695     solaris*)
7696       no_undefined_flag=' -z text'
7697       if test "$GCC" = yes; then
7698         wlarc='${wl}'
7699         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7700         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7701           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7702       else
7703         wlarc=''
7704         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7706         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7707       fi
7708       hardcode_libdir_flag_spec='-R$libdir'
7709       hardcode_shlibpath_var=no
7710       case $host_os in
7711       solaris2.[0-5] | solaris2.[0-5].*) ;;
7712       *)
7713         # The compiler driver will combine linker options so we
7714         # cannot just pass the convience library names through
7715         # without $wl, iff we do not link with $LD.
7716         # Luckily, gcc supports the same syntax we need for Sun Studio.
7717         # Supported since Solaris 2.6 (maybe 2.5.1?)
7718         case $wlarc in
7719         '')
7720           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7721         *)
7722           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' ;;
7723         esac ;;
7724       esac
7725       link_all_deplibs=yes
7726       ;;
7727
7728     sunos4*)
7729       if test "x$host_vendor" = xsequent; then
7730         # Use $CC to link under sequent, because it throws in some extra .o
7731         # files that make .init and .fini sections work.
7732         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7733       else
7734         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7735       fi
7736       hardcode_libdir_flag_spec='-L$libdir'
7737       hardcode_direct=yes
7738       hardcode_minus_L=yes
7739       hardcode_shlibpath_var=no
7740       ;;
7741
7742     sysv4)
7743       case $host_vendor in
7744         sni)
7745           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7746           hardcode_direct=yes # is this really true???
7747         ;;
7748         siemens)
7749           ## LD is ld it makes a PLAMLIB
7750           ## CC just makes a GrossModule.
7751           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7752           reload_cmds='$CC -r -o $output$reload_objs'
7753           hardcode_direct=no
7754         ;;
7755         motorola)
7756           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7757           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7758         ;;
7759       esac
7760       runpath_var='LD_RUN_PATH'
7761       hardcode_shlibpath_var=no
7762       ;;
7763
7764     sysv4.3*)
7765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7766       hardcode_shlibpath_var=no
7767       export_dynamic_flag_spec='-Bexport'
7768       ;;
7769
7770     sysv4*MP*)
7771       if test -d /usr/nec; then
7772         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7773         hardcode_shlibpath_var=no
7774         runpath_var=LD_RUN_PATH
7775         hardcode_runpath_var=yes
7776         ld_shlibs=yes
7777       fi
7778       ;;
7779
7780     sysv4.2uw2*)
7781       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7782       hardcode_direct=yes
7783       hardcode_minus_L=no
7784       hardcode_shlibpath_var=no
7785       hardcode_runpath_var=yes
7786       runpath_var=LD_RUN_PATH
7787       ;;
7788
7789    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7790       no_undefined_flag='${wl}-z ${wl}text'
7791       if test "$GCC" = yes; then
7792         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7793       else
7794         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7795       fi
7796       runpath_var='LD_RUN_PATH'
7797       hardcode_shlibpath_var=no
7798       ;;
7799
7800     sysv5*)
7801       no_undefined_flag=' -z text'
7802       # $CC -shared without GNU ld will not create a library from C++
7803       # object files and a static libstdc++, better avoid it by now
7804       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7806                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7807       hardcode_libdir_flag_spec=
7808       hardcode_shlibpath_var=no
7809       runpath_var='LD_RUN_PATH'
7810       ;;
7811
7812     uts4*)
7813       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7814       hardcode_libdir_flag_spec='-L$libdir'
7815       hardcode_shlibpath_var=no
7816       ;;
7817
7818     *)
7819       ld_shlibs=no
7820       ;;
7821     esac
7822   fi
7823
7824 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7825 echo "${ECHO_T}$ld_shlibs" >&6
7826 test "$ld_shlibs" = no && can_build_shared=no
7827
7828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7829 if test "$GCC" = yes; then
7830   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7831 fi
7832
7833 #
7834 # Do we need to explicitly link libc?
7835 #
7836 case "x$archive_cmds_need_lc" in
7837 x|xyes)
7838   # Assume -lc should be added
7839   archive_cmds_need_lc=yes
7840
7841   if test "$enable_shared" = yes && test "$GCC" = yes; then
7842     case $archive_cmds in
7843     *'~'*)
7844       # FIXME: we may have to deal with multi-command sequences.
7845       ;;
7846     '$CC '*)
7847       # Test whether the compiler implicitly links with -lc since on some
7848       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7849       # to ld, don't add -lc before -lgcc.
7850       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7851 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7852       $rm conftest*
7853       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7854
7855       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856   (eval $ac_compile) 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); } 2>conftest.err; then
7860         soname=conftest
7861         lib=conftest
7862         libobjs=conftest.$ac_objext
7863         deplibs=
7864         wl=$lt_prog_compiler_wl
7865         compiler_flags=-v
7866         linker_flags=-v
7867         verstring=
7868         output_objdir=.
7869         libname=conftest
7870         lt_save_allow_undefined_flag=$allow_undefined_flag
7871         allow_undefined_flag=
7872         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7873   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }
7877         then
7878           archive_cmds_need_lc=no
7879         else
7880           archive_cmds_need_lc=yes
7881         fi
7882         allow_undefined_flag=$lt_save_allow_undefined_flag
7883       else
7884         cat conftest.err 1>&5
7885       fi
7886       $rm conftest*
7887       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7888 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7889       ;;
7890     esac
7891   fi
7892   ;;
7893 esac
7894
7895 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7896 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7897 library_names_spec=
7898 libname_spec='lib$name'
7899 soname_spec=
7900 shrext_cmds=".so"
7901 postinstall_cmds=
7902 postuninstall_cmds=
7903 finish_cmds=
7904 finish_eval=
7905 shlibpath_var=
7906 shlibpath_overrides_runpath=unknown
7907 version_type=none
7908 dynamic_linker="$host_os ld.so"
7909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7910 if test "$GCC" = yes; then
7911   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7912   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7913     # if the path contains ";" then we assume it to be the separator
7914     # otherwise default to the standard path separator (i.e. ":") - it is
7915     # assumed that no part of a normal pathname contains ";" but that should
7916     # okay in the real world where ";" in dirpaths is itself problematic.
7917     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7918   else
7919     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7920   fi
7921 else
7922   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7923 fi
7924 need_lib_prefix=unknown
7925 hardcode_into_libs=no
7926
7927 # when you set need_version to no, make sure it does not cause -set_version
7928 # flags to be left without arguments
7929 need_version=unknown
7930
7931 case $host_os in
7932 aix3*)
7933   version_type=linux
7934   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7935   shlibpath_var=LIBPATH
7936
7937   # AIX 3 has no versioning support, so we append a major version to the name.
7938   soname_spec='${libname}${release}${shared_ext}$major'
7939   ;;
7940
7941 aix4* | aix5*)
7942   version_type=linux
7943   need_lib_prefix=no
7944   need_version=no
7945   hardcode_into_libs=yes
7946   if test "$host_cpu" = ia64; then
7947     # AIX 5 supports IA64
7948     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7949     shlibpath_var=LD_LIBRARY_PATH
7950   else
7951     # With GCC up to 2.95.x, collect2 would create an import file
7952     # for dependence libraries.  The import file would start with
7953     # the line `#! .'.  This would cause the generated library to
7954     # depend on `.', always an invalid library.  This was fixed in
7955     # development snapshots of GCC prior to 3.0.
7956     case $host_os in
7957       aix4 | aix4.[01] | aix4.[01].*)
7958       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7959            echo ' yes '
7960            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7961         :
7962       else
7963         can_build_shared=no
7964       fi
7965       ;;
7966     esac
7967     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7968     # soname into executable. Probably we can add versioning support to
7969     # collect2, so additional links can be useful in future.
7970     if test "$aix_use_runtimelinking" = yes; then
7971       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7972       # instead of lib<name>.a to let people know that these are not
7973       # typical AIX shared libraries.
7974       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975     else
7976       # We preserve .a as extension for shared libraries through AIX4.2
7977       # and later when we are not doing run time linking.
7978       library_names_spec='${libname}${release}.a $libname.a'
7979       soname_spec='${libname}${release}${shared_ext}$major'
7980     fi
7981     shlibpath_var=LIBPATH
7982   fi
7983   ;;
7984
7985 amigaos*)
7986   library_names_spec='$libname.ixlibrary $libname.a'
7987   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7988   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'
7989   ;;
7990
7991 beos*)
7992   library_names_spec='${libname}${shared_ext}'
7993   dynamic_linker="$host_os ld.so"
7994   shlibpath_var=LIBRARY_PATH
7995   ;;
7996
7997 bsdi[45]*)
7998   version_type=linux
7999   need_version=no
8000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8001   soname_spec='${libname}${release}${shared_ext}$major'
8002   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8003   shlibpath_var=LD_LIBRARY_PATH
8004   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8005   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8006   # the default ld.so.conf also contains /usr/contrib/lib and
8007   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8008   # libtool to hard-code these into programs
8009   ;;
8010
8011 cygwin* | mingw* | pw32*)
8012   version_type=windows
8013   shrext_cmds=".dll"
8014   need_version=no
8015   need_lib_prefix=no
8016
8017   case $GCC,$host_os in
8018   yes,cygwin* | yes,mingw* | yes,pw32*)
8019     library_names_spec='$libname.dll.a'
8020     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8021     postinstall_cmds='base_file=`basename \${file}`~
8022       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8023       dldir=$destdir/`dirname \$dlpath`~
8024       test -d \$dldir || mkdir -p \$dldir~
8025       $install_prog $dir/$dlname \$dldir/$dlname'
8026     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8027       dlpath=$dir/\$dldll~
8028        $rm \$dlpath'
8029     shlibpath_overrides_runpath=yes
8030
8031     case $host_os in
8032     cygwin*)
8033       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8034       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8035       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8036       ;;
8037     mingw*)
8038       # MinGW DLLs use traditional 'lib' prefix
8039       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8040       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8041       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8042         # It is most probably a Windows format PATH printed by
8043         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8044         # path with ; separators, and with drive letters. We can handle the
8045         # drive letters (cygwin fileutils understands them), so leave them,
8046         # especially as we might pass files found there to a mingw objdump,
8047         # which wouldn't understand a cygwinified path. Ahh.
8048         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8049       else
8050         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8051       fi
8052       ;;
8053     pw32*)
8054       # pw32 DLLs use 'pw' prefix rather than 'lib'
8055       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8056       ;;
8057     esac
8058     ;;
8059
8060   linux*)
8061     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8062       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8063       supports_anon_versioning=no
8064       case `$LD -v 2>/dev/null` in
8065         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8066         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8067         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8068         *\ 2.11.*) ;; # other 2.11 versions
8069         *) supports_anon_versioning=yes ;;
8070       esac
8071       if test $supports_anon_versioning = yes; then
8072         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8074 $echo "local: *; };" >> $output_objdir/$libname.ver~
8075         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8076       else
8077         $archive_expsym_cmds="$archive_cmds"
8078       fi
8079     else
8080       ld_shlibs=no
8081     fi
8082     ;;
8083
8084   *)
8085     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8086     ;;
8087   esac
8088   dynamic_linker='Win32 ld.exe'
8089   # FIXME: first we should search . and the directory the executable is in
8090   shlibpath_var=PATH
8091   ;;
8092
8093 darwin* | rhapsody*)
8094   dynamic_linker="$host_os dyld"
8095   version_type=darwin
8096   need_lib_prefix=no
8097   need_version=no
8098   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8099   soname_spec='${libname}${release}${major}$shared_ext'
8100   shlibpath_overrides_runpath=yes
8101   shlibpath_var=DYLD_LIBRARY_PATH
8102   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8103   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8104   if test "$GCC" = yes; then
8105     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"`
8106   else
8107     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8108   fi
8109   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8110   ;;
8111
8112 dgux*)
8113   version_type=linux
8114   need_lib_prefix=no
8115   need_version=no
8116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8117   soname_spec='${libname}${release}${shared_ext}$major'
8118   shlibpath_var=LD_LIBRARY_PATH
8119   ;;
8120
8121 freebsd1*)
8122   dynamic_linker=no
8123   ;;
8124
8125 kfreebsd*-gnu)
8126   version_type=linux
8127   need_lib_prefix=no
8128   need_version=no
8129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8130   soname_spec='${libname}${release}${shared_ext}$major'
8131   shlibpath_var=LD_LIBRARY_PATH
8132   shlibpath_overrides_runpath=no
8133   hardcode_into_libs=yes
8134   dynamic_linker='GNU ld.so'
8135   ;;
8136
8137 freebsd* | dragonfly*)
8138   # DragonFly does not have aout.  When/if they implement a new
8139   # versioning mechanism, adjust this.
8140   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8141   version_type=freebsd-$objformat
8142   case $version_type in
8143     freebsd-elf*)
8144       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8145       need_version=no
8146       need_lib_prefix=no
8147       ;;
8148     freebsd-*)
8149       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8150       need_version=yes
8151       ;;
8152   esac
8153   shlibpath_var=LD_LIBRARY_PATH
8154   case $host_os in
8155   freebsd2*)
8156     shlibpath_overrides_runpath=yes
8157     ;;
8158   freebsd3.[01]* | freebsdelf3.[01]*)
8159     shlibpath_overrides_runpath=yes
8160     hardcode_into_libs=yes
8161     ;;
8162   *) # from 3.2 on
8163     shlibpath_overrides_runpath=no
8164     hardcode_into_libs=yes
8165     ;;
8166   esac
8167   ;;
8168
8169 gnu*)
8170   version_type=linux
8171   need_lib_prefix=no
8172   need_version=no
8173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8174   soname_spec='${libname}${release}${shared_ext}$major'
8175   shlibpath_var=LD_LIBRARY_PATH
8176   hardcode_into_libs=yes
8177   ;;
8178
8179 hpux9* | hpux10* | hpux11*)
8180   # Give a soname corresponding to the major version so that dld.sl refuses to
8181   # link against other versions.
8182   version_type=sunos
8183   need_lib_prefix=no
8184   need_version=no
8185   case "$host_cpu" in
8186   ia64*)
8187     shrext_cmds='.so'
8188     hardcode_into_libs=yes
8189     dynamic_linker="$host_os dld.so"
8190     shlibpath_var=LD_LIBRARY_PATH
8191     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8193     soname_spec='${libname}${release}${shared_ext}$major'
8194     if test "X$HPUX_IA64_MODE" = X32; then
8195       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8196     else
8197       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8198     fi
8199     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8200     ;;
8201    hppa*64*)
8202      shrext_cmds='.sl'
8203      hardcode_into_libs=yes
8204      dynamic_linker="$host_os dld.sl"
8205      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8206      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8210      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8211      ;;
8212    *)
8213     shrext_cmds='.sl'
8214     dynamic_linker="$host_os dld.sl"
8215     shlibpath_var=SHLIB_PATH
8216     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8218     soname_spec='${libname}${release}${shared_ext}$major'
8219     ;;
8220   esac
8221   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8222   postinstall_cmds='chmod 555 $lib'
8223   ;;
8224
8225 irix5* | irix6* | nonstopux*)
8226   case $host_os in
8227     nonstopux*) version_type=nonstopux ;;
8228     *)
8229         if test "$lt_cv_prog_gnu_ld" = yes; then
8230                 version_type=linux
8231         else
8232                 version_type=irix
8233         fi ;;
8234   esac
8235   need_lib_prefix=no
8236   need_version=no
8237   soname_spec='${libname}${release}${shared_ext}$major'
8238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8239   case $host_os in
8240   irix5* | nonstopux*)
8241     libsuff= shlibsuff=
8242     ;;
8243   *)
8244     case $LD in # libtool.m4 will add one of these switches to LD
8245     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8246       libsuff= shlibsuff= libmagic=32-bit;;
8247     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8248       libsuff=32 shlibsuff=N32 libmagic=N32;;
8249     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8250       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8251     *) libsuff= shlibsuff= libmagic=never-match;;
8252     esac
8253     ;;
8254   esac
8255   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8256   shlibpath_overrides_runpath=no
8257   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8258   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8259   hardcode_into_libs=yes
8260   ;;
8261
8262 # No shared lib support for Linux oldld, aout, or coff.
8263 linux*oldld* | linux*aout* | linux*coff*)
8264   dynamic_linker=no
8265   ;;
8266
8267 # This must be Linux ELF.
8268 linux*)
8269   version_type=linux
8270   need_lib_prefix=no
8271   need_version=no
8272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8273   soname_spec='${libname}${release}${shared_ext}$major'
8274   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8275   shlibpath_var=LD_LIBRARY_PATH
8276   shlibpath_overrides_runpath=no
8277   # This implies no fast_install, which is unacceptable.
8278   # Some rework will be needed to allow for fast_install
8279   # before this can be enabled.
8280   hardcode_into_libs=yes
8281
8282   # Append ld.so.conf contents to the search path
8283   if test -f /etc/ld.so.conf; then
8284     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8285     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8286   fi
8287
8288   case $host_cpu:$lt_cv_cc_64bit_output in
8289   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
8290     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
8291     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
8292     ;;
8293   esac
8294
8295   # We used to test for /lib/ld.so.1 and disable shared libraries on
8296   # powerpc, because MkLinux only supported shared libraries with the
8297   # GNU dynamic linker.  Since this was broken with cross compilers,
8298   # most powerpc-linux boxes support dynamic linking these days and
8299   # people can always --disable-shared, the test was removed, and we
8300   # assume the GNU/Linux dynamic linker is in use.
8301   dynamic_linker='GNU/Linux ld.so'
8302
8303   # Find out which ABI we are using (multilib Linux x86_64 hack).
8304   libsuff=
8305   case "$host_cpu" in
8306   x86_64*)
8307     echo '#line 8307 "configure"' > conftest.$ac_ext
8308     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309   (eval $ac_compile) 2>&5
8310   ac_status=$?
8311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312   (exit $ac_status); }; then
8313       case `/usr/bin/file conftest.$ac_objext` in
8314       *64-bit*)
8315         libsuff=64
8316         ;;
8317       esac
8318     fi
8319     rm -rf conftest*
8320     ;;
8321   *)
8322     ;;
8323   esac
8324   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
8325   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8326   ;;
8327
8328 knetbsd*-gnu)
8329   version_type=linux
8330   need_lib_prefix=no
8331   need_version=no
8332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8333   soname_spec='${libname}${release}${shared_ext}$major'
8334   shlibpath_var=LD_LIBRARY_PATH
8335   shlibpath_overrides_runpath=no
8336   hardcode_into_libs=yes
8337   dynamic_linker='GNU ld.so'
8338   ;;
8339
8340 netbsd*)
8341   version_type=sunos
8342   need_lib_prefix=no
8343   need_version=no
8344   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8346     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8347     dynamic_linker='NetBSD (a.out) ld.so'
8348   else
8349     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8350     soname_spec='${libname}${release}${shared_ext}$major'
8351     dynamic_linker='NetBSD ld.elf_so'
8352   fi
8353   shlibpath_var=LD_LIBRARY_PATH
8354   shlibpath_overrides_runpath=yes
8355   hardcode_into_libs=yes
8356   ;;
8357
8358 newsos6)
8359   version_type=linux
8360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8361   shlibpath_var=LD_LIBRARY_PATH
8362   shlibpath_overrides_runpath=yes
8363   ;;
8364
8365 nto-qnx*)
8366   version_type=linux
8367   need_lib_prefix=no
8368   need_version=no
8369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8370   soname_spec='${libname}${release}${shared_ext}$major'
8371   shlibpath_var=LD_LIBRARY_PATH
8372   shlibpath_overrides_runpath=yes
8373   ;;
8374
8375 openbsd*)
8376   version_type=sunos
8377   need_lib_prefix=no
8378   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8379   case $host_os in
8380     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8381     *)                         need_version=no  ;;
8382   esac
8383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8384   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8385   shlibpath_var=LD_LIBRARY_PATH
8386   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8387     case $host_os in
8388       openbsd2.[89] | openbsd2.[89].*)
8389         shlibpath_overrides_runpath=no
8390         ;;
8391       *)
8392         shlibpath_overrides_runpath=yes
8393         ;;
8394       esac
8395   else
8396     shlibpath_overrides_runpath=yes
8397   fi
8398   ;;
8399
8400 os2*)
8401   libname_spec='$name'
8402   shrext_cmds=".dll"
8403   need_lib_prefix=no
8404   library_names_spec='$libname${shared_ext} $libname.a'
8405   dynamic_linker='OS/2 ld.exe'
8406   shlibpath_var=LIBPATH
8407   ;;
8408
8409 osf3* | osf4* | osf5*)
8410   version_type=osf
8411   need_lib_prefix=no
8412   need_version=no
8413   soname_spec='${libname}${release}${shared_ext}$major'
8414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8415   shlibpath_var=LD_LIBRARY_PATH
8416   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8417   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8418   ;;
8419
8420 sco3.2v5*)
8421   version_type=osf
8422   soname_spec='${libname}${release}${shared_ext}$major'
8423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8424   shlibpath_var=LD_LIBRARY_PATH
8425   ;;
8426
8427 solaris*)
8428   version_type=linux
8429   need_lib_prefix=no
8430   need_version=no
8431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8432   soname_spec='${libname}${release}${shared_ext}$major'
8433   shlibpath_var=LD_LIBRARY_PATH
8434   shlibpath_overrides_runpath=yes
8435   hardcode_into_libs=yes
8436   # ldd complains unless libraries are executable
8437   postinstall_cmds='chmod +x $lib'
8438   ;;
8439
8440 sunos4*)
8441   version_type=sunos
8442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8443   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8444   shlibpath_var=LD_LIBRARY_PATH
8445   shlibpath_overrides_runpath=yes
8446   if test "$with_gnu_ld" = yes; then
8447     need_lib_prefix=no
8448   fi
8449   need_version=yes
8450   ;;
8451
8452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8453   version_type=linux
8454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8455   soname_spec='${libname}${release}${shared_ext}$major'
8456   shlibpath_var=LD_LIBRARY_PATH
8457   case $host_vendor in
8458     sni)
8459       shlibpath_overrides_runpath=no
8460       need_lib_prefix=no
8461       export_dynamic_flag_spec='${wl}-Blargedynsym'
8462       runpath_var=LD_RUN_PATH
8463       ;;
8464     siemens)
8465       need_lib_prefix=no
8466       ;;
8467     motorola)
8468       need_lib_prefix=no
8469       need_version=no
8470       shlibpath_overrides_runpath=no
8471       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8472       ;;
8473   esac
8474   ;;
8475
8476 sysv4*MP*)
8477   if test -d /usr/nec ;then
8478     version_type=linux
8479     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8480     soname_spec='$libname${shared_ext}.$major'
8481     shlibpath_var=LD_LIBRARY_PATH
8482   fi
8483   ;;
8484
8485 uts4*)
8486   version_type=linux
8487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8488   soname_spec='${libname}${release}${shared_ext}$major'
8489   shlibpath_var=LD_LIBRARY_PATH
8490   ;;
8491
8492 *)
8493   dynamic_linker=no
8494   ;;
8495 esac
8496 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8497 echo "${ECHO_T}$dynamic_linker" >&6
8498 test "$dynamic_linker" = no && can_build_shared=no
8499
8500 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8501 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8502 hardcode_action=
8503 if test -n "$hardcode_libdir_flag_spec" || \
8504    test -n "$runpath_var" || \
8505    test "X$hardcode_automatic" = "Xyes" ; then
8506
8507   # We can hardcode non-existant directories.
8508   if test "$hardcode_direct" != no &&
8509      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8510      # have to relink, otherwise we might link with an installed library
8511      # when we should be linking with a yet-to-be-installed one
8512      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8513      test "$hardcode_minus_L" != no; then
8514     # Linking always hardcodes the temporary library directory.
8515     hardcode_action=relink
8516   else
8517     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8518     hardcode_action=immediate
8519   fi
8520 else
8521   # We cannot hardcode anything, or else we can only hardcode existing
8522   # directories.
8523   hardcode_action=unsupported
8524 fi
8525 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8526 echo "${ECHO_T}$hardcode_action" >&6
8527
8528 if test "$hardcode_action" = relink; then
8529   # Fast installation is not supported
8530   enable_fast_install=no
8531 elif test "$shlibpath_overrides_runpath" = yes ||
8532      test "$enable_shared" = no; then
8533   # Fast installation is not necessary
8534   enable_fast_install=needless
8535 fi
8536
8537 striplib=
8538 old_striplib=
8539 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8540 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8541 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8542   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8543   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8544   echo "$as_me:$LINENO: result: yes" >&5
8545 echo "${ECHO_T}yes" >&6
8546 else
8547 # FIXME - insert some real tests, host_os isn't really good enough
8548   case $host_os in
8549    darwin*)
8550        if test -n "$STRIP" ; then
8551          striplib="$STRIP -x"
8552          echo "$as_me:$LINENO: result: yes" >&5
8553 echo "${ECHO_T}yes" >&6
8554        else
8555   echo "$as_me:$LINENO: result: no" >&5
8556 echo "${ECHO_T}no" >&6
8557 fi
8558        ;;
8559    *)
8560   echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6
8562     ;;
8563   esac
8564 fi
8565
8566 if test "x$enable_dlopen" != xyes; then
8567   enable_dlopen=unknown
8568   enable_dlopen_self=unknown
8569   enable_dlopen_self_static=unknown
8570 else
8571   lt_cv_dlopen=no
8572   lt_cv_dlopen_libs=
8573
8574   case $host_os in
8575   beos*)
8576     lt_cv_dlopen="load_add_on"
8577     lt_cv_dlopen_libs=
8578     lt_cv_dlopen_self=yes
8579     ;;
8580
8581   mingw* | pw32*)
8582     lt_cv_dlopen="LoadLibrary"
8583     lt_cv_dlopen_libs=
8584    ;;
8585
8586   cygwin*)
8587     lt_cv_dlopen="dlopen"
8588     lt_cv_dlopen_libs=
8589    ;;
8590
8591   darwin*)
8592   # if libdl is installed we need to link against it
8593     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8594 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8595 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8596   echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598   ac_check_lib_save_LIBS=$LIBS
8599 LIBS="-ldl  $LIBS"
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606
8607 /* Override any gcc2 internal prototype to avoid an error.  */
8608 #ifdef __cplusplus
8609 extern "C"
8610 #endif
8611 /* We use char because int might match the return type of a gcc2
8612    builtin and then its argument prototype would still apply.  */
8613 char dlopen ();
8614 int
8615 main ()
8616 {
8617 dlopen ();
8618   ;
8619   return 0;
8620 }
8621 _ACEOF
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624   (eval $ac_link) 2>conftest.er1
8625   ac_status=$?
8626   grep -v '^ *+' conftest.er1 >conftest.err
8627   rm -f conftest.er1
8628   cat conftest.err >&5
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); } &&
8631          { ac_try='test -z "$ac_c_werror_flag"
8632                          || test ! -s conftest.err'
8633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634   (eval $ac_try) 2>&5
8635   ac_status=$?
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); }; } &&
8638          { ac_try='test -s conftest$ac_exeext'
8639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640   (eval $ac_try) 2>&5
8641   ac_status=$?
8642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643   (exit $ac_status); }; }; then
8644   ac_cv_lib_dl_dlopen=yes
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649 ac_cv_lib_dl_dlopen=no
8650 fi
8651 rm -f conftest.err conftest.$ac_objext \
8652       conftest$ac_exeext conftest.$ac_ext
8653 LIBS=$ac_check_lib_save_LIBS
8654 fi
8655 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8656 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8657 if test $ac_cv_lib_dl_dlopen = yes; then
8658   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8659 else
8660
8661     lt_cv_dlopen="dyld"
8662     lt_cv_dlopen_libs=
8663     lt_cv_dlopen_self=yes
8664
8665 fi
8666
8667    ;;
8668
8669   *)
8670     echo "$as_me:$LINENO: checking for shl_load" >&5
8671 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8672 if test "${ac_cv_func_shl_load+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675   cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8681 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8683 #define shl_load innocuous_shl_load
8684
8685 /* System header to define __stub macros and hopefully few prototypes,
8686     which can conflict with char shl_load (); below.
8687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8688     <limits.h> exists even on freestanding compilers.  */
8689
8690 #ifdef __STDC__
8691 # include <limits.h>
8692 #else
8693 # include <assert.h>
8694 #endif
8695
8696 #undef shl_load
8697
8698 /* Override any gcc2 internal prototype to avoid an error.  */
8699 #ifdef __cplusplus
8700 extern "C"
8701 {
8702 #endif
8703 /* We use char because int might match the return type of a gcc2
8704    builtin and then its argument prototype would still apply.  */
8705 char shl_load ();
8706 /* The GNU C library defines this for functions which it implements
8707     to always fail with ENOSYS.  Some functions are actually named
8708     something starting with __ and the normal name is an alias.  */
8709 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8710 choke me
8711 #else
8712 char (*f) () = shl_load;
8713 #endif
8714 #ifdef __cplusplus
8715 }
8716 #endif
8717
8718 int
8719 main ()
8720 {
8721 return f != shl_load;
8722   ;
8723   return 0;
8724 }
8725 _ACEOF
8726 rm -f conftest.$ac_objext conftest$ac_exeext
8727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8728   (eval $ac_link) 2>conftest.er1
8729   ac_status=$?
8730   grep -v '^ *+' conftest.er1 >conftest.err
8731   rm -f conftest.er1
8732   cat conftest.err >&5
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); } &&
8735          { ac_try='test -z "$ac_c_werror_flag"
8736                          || test ! -s conftest.err'
8737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738   (eval $ac_try) 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); }; } &&
8742          { ac_try='test -s conftest$ac_exeext'
8743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744   (eval $ac_try) 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; }; then
8748   ac_cv_func_shl_load=yes
8749 else
8750   echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753 ac_cv_func_shl_load=no
8754 fi
8755 rm -f conftest.err conftest.$ac_objext \
8756       conftest$ac_exeext conftest.$ac_ext
8757 fi
8758 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8759 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8760 if test $ac_cv_func_shl_load = yes; then
8761   lt_cv_dlopen="shl_load"
8762 else
8763   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8764 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8765 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8766   echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768   ac_check_lib_save_LIBS=$LIBS
8769 LIBS="-ldld  $LIBS"
8770 cat >conftest.$ac_ext <<_ACEOF
8771 /* confdefs.h.  */
8772 _ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h.  */
8776
8777 /* Override any gcc2 internal prototype to avoid an error.  */
8778 #ifdef __cplusplus
8779 extern "C"
8780 #endif
8781 /* We use char because int might match the return type of a gcc2
8782    builtin and then its argument prototype would still apply.  */
8783 char shl_load ();
8784 int
8785 main ()
8786 {
8787 shl_load ();
8788   ;
8789   return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794   (eval $ac_link) 2>conftest.er1
8795   ac_status=$?
8796   grep -v '^ *+' conftest.er1 >conftest.err
8797   rm -f conftest.er1
8798   cat conftest.err >&5
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } &&
8801          { ac_try='test -z "$ac_c_werror_flag"
8802                          || test ! -s conftest.err'
8803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804   (eval $ac_try) 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; } &&
8808          { ac_try='test -s conftest$ac_exeext'
8809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810   (eval $ac_try) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); }; }; then
8814   ac_cv_lib_dld_shl_load=yes
8815 else
8816   echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819 ac_cv_lib_dld_shl_load=no
8820 fi
8821 rm -f conftest.err conftest.$ac_objext \
8822       conftest$ac_exeext conftest.$ac_ext
8823 LIBS=$ac_check_lib_save_LIBS
8824 fi
8825 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8826 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8827 if test $ac_cv_lib_dld_shl_load = yes; then
8828   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8829 else
8830   echo "$as_me:$LINENO: checking for dlopen" >&5
8831 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8832 if test "${ac_cv_func_dlopen+set}" = set; then
8833   echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8835   cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h.  */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h.  */
8841 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8843 #define dlopen innocuous_dlopen
8844
8845 /* System header to define __stub macros and hopefully few prototypes,
8846     which can conflict with char dlopen (); below.
8847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8848     <limits.h> exists even on freestanding compilers.  */
8849
8850 #ifdef __STDC__
8851 # include <limits.h>
8852 #else
8853 # include <assert.h>
8854 #endif
8855
8856 #undef dlopen
8857
8858 /* Override any gcc2 internal prototype to avoid an error.  */
8859 #ifdef __cplusplus
8860 extern "C"
8861 {
8862 #endif
8863 /* We use char because int might match the return type of a gcc2
8864    builtin and then its argument prototype would still apply.  */
8865 char dlopen ();
8866 /* The GNU C library defines this for functions which it implements
8867     to always fail with ENOSYS.  Some functions are actually named
8868     something starting with __ and the normal name is an alias.  */
8869 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8870 choke me
8871 #else
8872 char (*f) () = dlopen;
8873 #endif
8874 #ifdef __cplusplus
8875 }
8876 #endif
8877
8878 int
8879 main ()
8880 {
8881 return f != dlopen;
8882   ;
8883   return 0;
8884 }
8885 _ACEOF
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8888   (eval $ac_link) 2>conftest.er1
8889   ac_status=$?
8890   grep -v '^ *+' conftest.er1 >conftest.err
8891   rm -f conftest.er1
8892   cat conftest.err >&5
8893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894   (exit $ac_status); } &&
8895          { ac_try='test -z "$ac_c_werror_flag"
8896                          || test ! -s conftest.err'
8897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898   (eval $ac_try) 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; } &&
8902          { ac_try='test -s conftest$ac_exeext'
8903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904   (eval $ac_try) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }; }; then
8908   ac_cv_func_dlopen=yes
8909 else
8910   echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8912
8913 ac_cv_func_dlopen=no
8914 fi
8915 rm -f conftest.err conftest.$ac_objext \
8916       conftest$ac_exeext conftest.$ac_ext
8917 fi
8918 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8919 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8920 if test $ac_cv_func_dlopen = yes; then
8921   lt_cv_dlopen="dlopen"
8922 else
8923   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8924 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8925 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8926   echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928   ac_check_lib_save_LIBS=$LIBS
8929 LIBS="-ldl  $LIBS"
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h.  */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h.  */
8936
8937 /* Override any gcc2 internal prototype to avoid an error.  */
8938 #ifdef __cplusplus
8939 extern "C"
8940 #endif
8941 /* We use char because int might match the return type of a gcc2
8942    builtin and then its argument prototype would still apply.  */
8943 char dlopen ();
8944 int
8945 main ()
8946 {
8947 dlopen ();
8948   ;
8949   return 0;
8950 }
8951 _ACEOF
8952 rm -f conftest.$ac_objext conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954   (eval $ac_link) 2>conftest.er1
8955   ac_status=$?
8956   grep -v '^ *+' conftest.er1 >conftest.err
8957   rm -f conftest.er1
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } &&
8961          { ac_try='test -z "$ac_c_werror_flag"
8962                          || test ! -s conftest.err'
8963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; } &&
8968          { ac_try='test -s conftest$ac_exeext'
8969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970   (eval $ac_try) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974   ac_cv_lib_dl_dlopen=yes
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979 ac_cv_lib_dl_dlopen=no
8980 fi
8981 rm -f conftest.err conftest.$ac_objext \
8982       conftest$ac_exeext conftest.$ac_ext
8983 LIBS=$ac_check_lib_save_LIBS
8984 fi
8985 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8986 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8987 if test $ac_cv_lib_dl_dlopen = yes; then
8988   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8989 else
8990   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8991 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8992 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8993   echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995   ac_check_lib_save_LIBS=$LIBS
8996 LIBS="-lsvld  $LIBS"
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h.  */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h.  */
9003
9004 /* Override any gcc2 internal prototype to avoid an error.  */
9005 #ifdef __cplusplus
9006 extern "C"
9007 #endif
9008 /* We use char because int might match the return type of a gcc2
9009    builtin and then its argument prototype would still apply.  */
9010 char dlopen ();
9011 int
9012 main ()
9013 {
9014 dlopen ();
9015   ;
9016   return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9021   (eval $ac_link) 2>conftest.er1
9022   ac_status=$?
9023   grep -v '^ *+' conftest.er1 >conftest.err
9024   rm -f conftest.er1
9025   cat conftest.err >&5
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); } &&
9028          { ac_try='test -z "$ac_c_werror_flag"
9029                          || test ! -s conftest.err'
9030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031   (eval $ac_try) 2>&5
9032   ac_status=$?
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); }; } &&
9035          { ac_try='test -s conftest$ac_exeext'
9036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037   (eval $ac_try) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); }; }; then
9041   ac_cv_lib_svld_dlopen=yes
9042 else
9043   echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9045
9046 ac_cv_lib_svld_dlopen=no
9047 fi
9048 rm -f conftest.err conftest.$ac_objext \
9049       conftest$ac_exeext conftest.$ac_ext
9050 LIBS=$ac_check_lib_save_LIBS
9051 fi
9052 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9053 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9054 if test $ac_cv_lib_svld_dlopen = yes; then
9055   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9056 else
9057   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9058 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9059 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9060   echo $ECHO_N "(cached) $ECHO_C" >&6
9061 else
9062   ac_check_lib_save_LIBS=$LIBS
9063 LIBS="-ldld  $LIBS"
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h.  */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h.  */
9070
9071 /* Override any gcc2 internal prototype to avoid an error.  */
9072 #ifdef __cplusplus
9073 extern "C"
9074 #endif
9075 /* We use char because int might match the return type of a gcc2
9076    builtin and then its argument prototype would still apply.  */
9077 char dld_link ();
9078 int
9079 main ()
9080 {
9081 dld_link ();
9082   ;
9083   return 0;
9084 }
9085 _ACEOF
9086 rm -f conftest.$ac_objext conftest$ac_exeext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9088   (eval $ac_link) 2>conftest.er1
9089   ac_status=$?
9090   grep -v '^ *+' conftest.er1 >conftest.err
9091   rm -f conftest.er1
9092   cat conftest.err >&5
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); } &&
9095          { ac_try='test -z "$ac_c_werror_flag"
9096                          || test ! -s conftest.err'
9097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098   (eval $ac_try) 2>&5
9099   ac_status=$?
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); }; } &&
9102          { ac_try='test -s conftest$ac_exeext'
9103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104   (eval $ac_try) 2>&5
9105   ac_status=$?
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); }; }; then
9108   ac_cv_lib_dld_dld_link=yes
9109 else
9110   echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9112
9113 ac_cv_lib_dld_dld_link=no
9114 fi
9115 rm -f conftest.err conftest.$ac_objext \
9116       conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9118 fi
9119 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9120 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9121 if test $ac_cv_lib_dld_dld_link = yes; then
9122   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9123 fi
9124
9125
9126 fi
9127
9128
9129 fi
9130
9131
9132 fi
9133
9134
9135 fi
9136
9137
9138 fi
9139
9140     ;;
9141   esac
9142
9143   if test "x$lt_cv_dlopen" != xno; then
9144     enable_dlopen=yes
9145   else
9146     enable_dlopen=no
9147   fi
9148
9149   case $lt_cv_dlopen in
9150   dlopen)
9151     save_CPPFLAGS="$CPPFLAGS"
9152     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9153
9154     save_LDFLAGS="$LDFLAGS"
9155     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9156
9157     save_LIBS="$LIBS"
9158     LIBS="$lt_cv_dlopen_libs $LIBS"
9159
9160     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9161 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9162 if test "${lt_cv_dlopen_self+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165           if test "$cross_compiling" = yes; then :
9166   lt_cv_dlopen_self=cross
9167 else
9168   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9169   lt_status=$lt_dlunknown
9170   cat > conftest.$ac_ext <<EOF
9171 #line 9171 "configure"
9172 #include "confdefs.h"
9173
9174 #if HAVE_DLFCN_H
9175 #include <dlfcn.h>
9176 #endif
9177
9178 #include <stdio.h>
9179
9180 #ifdef RTLD_GLOBAL
9181 #  define LT_DLGLOBAL           RTLD_GLOBAL
9182 #else
9183 #  ifdef DL_GLOBAL
9184 #    define LT_DLGLOBAL         DL_GLOBAL
9185 #  else
9186 #    define LT_DLGLOBAL         0
9187 #  endif
9188 #endif
9189
9190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9191    find out it does not work in some platform. */
9192 #ifndef LT_DLLAZY_OR_NOW
9193 #  ifdef RTLD_LAZY
9194 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9195 #  else
9196 #    ifdef DL_LAZY
9197 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9198 #    else
9199 #      ifdef RTLD_NOW
9200 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9201 #      else
9202 #        ifdef DL_NOW
9203 #          define LT_DLLAZY_OR_NOW      DL_NOW
9204 #        else
9205 #          define LT_DLLAZY_OR_NOW      0
9206 #        endif
9207 #      endif
9208 #    endif
9209 #  endif
9210 #endif
9211
9212 #ifdef __cplusplus
9213 extern "C" void exit (int);
9214 #endif
9215
9216 void fnord() { int i=42;}
9217 int main ()
9218 {
9219   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9220   int status = $lt_dlunknown;
9221
9222   if (self)
9223     {
9224       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9225       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9226       /* dlclose (self); */
9227     }
9228
9229     exit (status);
9230 }
9231 EOF
9232   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233   (eval $ac_link) 2>&5
9234   ac_status=$?
9235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9237     (./conftest; exit; ) 2>/dev/null
9238     lt_status=$?
9239     case x$lt_status in
9240       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9241       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9242       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9243     esac
9244   else :
9245     # compilation failed
9246     lt_cv_dlopen_self=no
9247   fi
9248 fi
9249 rm -fr conftest*
9250
9251
9252 fi
9253 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9254 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9255
9256     if test "x$lt_cv_dlopen_self" = xyes; then
9257       LDFLAGS="$LDFLAGS $link_static_flag"
9258       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9259 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9260 if test "${lt_cv_dlopen_self_static+set}" = set; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263           if test "$cross_compiling" = yes; then :
9264   lt_cv_dlopen_self_static=cross
9265 else
9266   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9267   lt_status=$lt_dlunknown
9268   cat > conftest.$ac_ext <<EOF
9269 #line 9269 "configure"
9270 #include "confdefs.h"
9271
9272 #if HAVE_DLFCN_H
9273 #include <dlfcn.h>
9274 #endif
9275
9276 #include <stdio.h>
9277
9278 #ifdef RTLD_GLOBAL
9279 #  define LT_DLGLOBAL           RTLD_GLOBAL
9280 #else
9281 #  ifdef DL_GLOBAL
9282 #    define LT_DLGLOBAL         DL_GLOBAL
9283 #  else
9284 #    define LT_DLGLOBAL         0
9285 #  endif
9286 #endif
9287
9288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9289    find out it does not work in some platform. */
9290 #ifndef LT_DLLAZY_OR_NOW
9291 #  ifdef RTLD_LAZY
9292 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9293 #  else
9294 #    ifdef DL_LAZY
9295 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9296 #    else
9297 #      ifdef RTLD_NOW
9298 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9299 #      else
9300 #        ifdef DL_NOW
9301 #          define LT_DLLAZY_OR_NOW      DL_NOW
9302 #        else
9303 #          define LT_DLLAZY_OR_NOW      0
9304 #        endif
9305 #      endif
9306 #    endif
9307 #  endif
9308 #endif
9309
9310 #ifdef __cplusplus
9311 extern "C" void exit (int);
9312 #endif
9313
9314 void fnord() { int i=42;}
9315 int main ()
9316 {
9317   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9318   int status = $lt_dlunknown;
9319
9320   if (self)
9321     {
9322       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9323       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9324       /* dlclose (self); */
9325     }
9326
9327     exit (status);
9328 }
9329 EOF
9330   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331   (eval $ac_link) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9335     (./conftest; exit; ) 2>/dev/null
9336     lt_status=$?
9337     case x$lt_status in
9338       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9339       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9340       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9341     esac
9342   else :
9343     # compilation failed
9344     lt_cv_dlopen_self_static=no
9345   fi
9346 fi
9347 rm -fr conftest*
9348
9349
9350 fi
9351 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9352 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9353     fi
9354
9355     CPPFLAGS="$save_CPPFLAGS"
9356     LDFLAGS="$save_LDFLAGS"
9357     LIBS="$save_LIBS"
9358     ;;
9359   esac
9360
9361   case $lt_cv_dlopen_self in
9362   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9363   *) enable_dlopen_self=unknown ;;
9364   esac
9365
9366   case $lt_cv_dlopen_self_static in
9367   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9368   *) enable_dlopen_self_static=unknown ;;
9369   esac
9370 fi
9371
9372
9373 # Report which librarie types wil actually be built
9374 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9375 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9376 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9377 echo "${ECHO_T}$can_build_shared" >&6
9378
9379 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9380 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9381 test "$can_build_shared" = "no" && enable_shared=no
9382
9383 # On AIX, shared libraries and static libraries use the same namespace, and
9384 # are all built from PIC.
9385 case "$host_os" in
9386 aix3*)
9387   test "$enable_shared" = yes && enable_static=no
9388   if test -n "$RANLIB"; then
9389     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9390     postinstall_cmds='$RANLIB $lib'
9391   fi
9392   ;;
9393
9394 aix4* | aix5*)
9395   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9396     test "$enable_shared" = yes && enable_static=no
9397   fi
9398     ;;
9399 esac
9400 echo "$as_me:$LINENO: result: $enable_shared" >&5
9401 echo "${ECHO_T}$enable_shared" >&6
9402
9403 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9404 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9405 # Make sure either enable_shared or enable_static is yes.
9406 test "$enable_shared" = yes || enable_static=yes
9407 echo "$as_me:$LINENO: result: $enable_static" >&5
9408 echo "${ECHO_T}$enable_static" >&6
9409
9410 # The else clause should only fire when bootstrapping the
9411 # libtool distribution, otherwise you forgot to ship ltmain.sh
9412 # with your package, and you will get complaints that there are
9413 # no rules to generate ltmain.sh.
9414 if test -f "$ltmain"; then
9415   # See if we are running on zsh, and set the options which allow our commands through
9416   # without removal of \ escapes.
9417   if test -n "${ZSH_VERSION+set}" ; then
9418     setopt NO_GLOB_SUBST
9419   fi
9420   # Now quote all the things that may contain metacharacters while being
9421   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9422   # variables and quote the copies for generation of the libtool script.
9423   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9424     SED SHELL STRIP \
9425     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9426     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9427     deplibs_check_method reload_flag reload_cmds need_locks \
9428     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9429     lt_cv_sys_global_symbol_to_c_name_address \
9430     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9431     old_postinstall_cmds old_postuninstall_cmds \
9432     compiler \
9433     CC \
9434     LD \
9435     lt_prog_compiler_wl \
9436     lt_prog_compiler_pic \
9437     lt_prog_compiler_static \
9438     lt_prog_compiler_no_builtin_flag \
9439     export_dynamic_flag_spec \
9440     thread_safe_flag_spec \
9441     whole_archive_flag_spec \
9442     enable_shared_with_static_runtimes \
9443     old_archive_cmds \
9444     old_archive_from_new_cmds \
9445     predep_objects \
9446     postdep_objects \
9447     predeps \
9448     postdeps \
9449     compiler_lib_search_path \
9450     archive_cmds \
9451     archive_expsym_cmds \
9452     postinstall_cmds \
9453     postuninstall_cmds \
9454     old_archive_from_expsyms_cmds \
9455     allow_undefined_flag \
9456     no_undefined_flag \
9457     export_symbols_cmds \
9458     hardcode_libdir_flag_spec \
9459     hardcode_libdir_flag_spec_ld \
9460     hardcode_libdir_separator \
9461     hardcode_automatic \
9462     module_cmds \
9463     module_expsym_cmds \
9464     lt_cv_prog_compiler_c_o \
9465     exclude_expsyms \
9466     include_expsyms; do
9467
9468     case $var in
9469     old_archive_cmds | \
9470     old_archive_from_new_cmds | \
9471     archive_cmds | \
9472     archive_expsym_cmds | \
9473     module_cmds | \
9474     module_expsym_cmds | \
9475     old_archive_from_expsyms_cmds | \
9476     export_symbols_cmds | \
9477     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9478     postinstall_cmds | postuninstall_cmds | \
9479     old_postinstall_cmds | old_postuninstall_cmds | \
9480     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9481       # Double-quote double-evaled strings.
9482       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9483       ;;
9484     *)
9485       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9486       ;;
9487     esac
9488   done
9489
9490   case $lt_echo in
9491   *'\$0 --fallback-echo"')
9492     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9493     ;;
9494   esac
9495
9496 cfgfile="${ofile}T"
9497   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9498   $rm -f "$cfgfile"
9499   { echo "$as_me:$LINENO: creating $ofile" >&5
9500 echo "$as_me: creating $ofile" >&6;}
9501
9502   cat <<__EOF__ >> "$cfgfile"
9503 #! $SHELL
9504
9505 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9506 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9507 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9508 #
9509 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9510 # Free Software Foundation, Inc.
9511 #
9512 # This file is part of GNU Libtool:
9513 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9514 #
9515 # This program is free software; you can redistribute it and/or modify
9516 # it under the terms of the GNU General Public License as published by
9517 # the Free Software Foundation; either version 2 of the License, or
9518 # (at your option) any later version.
9519 #
9520 # This program is distributed in the hope that it will be useful, but
9521 # WITHOUT ANY WARRANTY; without even the implied warranty of
9522 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9523 # General Public License for more details.
9524 #
9525 # You should have received a copy of the GNU General Public License
9526 # along with this program; if not, write to the Free Software
9527 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9528 #
9529 # As a special exception to the GNU General Public License, if you
9530 # distribute this file as part of a program that contains a
9531 # configuration script generated by Autoconf, you may include it under
9532 # the same distribution terms that you use for the rest of that program.
9533
9534 # A sed program that does not truncate output.
9535 SED=$lt_SED
9536
9537 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9538 Xsed="$SED -e 1s/^X//"
9539
9540 # The HP-UX ksh and POSIX shell print the target directory to stdout
9541 # if CDPATH is set.
9542 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9543
9544 # The names of the tagged configurations supported by this script.
9545 available_tags=
9546
9547 # ### BEGIN LIBTOOL CONFIG
9548
9549 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9550
9551 # Shell to use when invoking shell scripts.
9552 SHELL=$lt_SHELL
9553
9554 # Whether or not to build shared libraries.
9555 build_libtool_libs=$enable_shared
9556
9557 # Whether or not to build static libraries.
9558 build_old_libs=$enable_static
9559
9560 # Whether or not to add -lc for building shared libraries.
9561 build_libtool_need_lc=$archive_cmds_need_lc
9562
9563 # Whether or not to disallow shared libs when runtime libs are static
9564 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9565
9566 # Whether or not to optimize for fast installation.
9567 fast_install=$enable_fast_install
9568
9569 # The host system.
9570 host_alias=$host_alias
9571 host=$host
9572 host_os=$host_os
9573
9574 # The build system.
9575 build_alias=$build_alias
9576 build=$build
9577 build_os=$build_os
9578
9579 # An echo program that does not interpret backslashes.
9580 echo=$lt_echo
9581
9582 # The archiver.
9583 AR=$lt_AR
9584 AR_FLAGS=$lt_AR_FLAGS
9585
9586 # A C compiler.
9587 LTCC=$lt_LTCC
9588
9589 # A language-specific compiler.
9590 CC=$lt_compiler
9591
9592 # Is the compiler the GNU C compiler?
9593 with_gcc=$GCC
9594
9595 # An ERE matcher.
9596 EGREP=$lt_EGREP
9597
9598 # The linker used to build libraries.
9599 LD=$lt_LD
9600
9601 # Whether we need hard or soft links.
9602 LN_S=$lt_LN_S
9603
9604 # A BSD-compatible nm program.
9605 NM=$lt_NM
9606
9607 # A symbol stripping program
9608 STRIP=$lt_STRIP
9609
9610 # Used to examine libraries when file_magic_cmd begins "file"
9611 MAGIC_CMD=$MAGIC_CMD
9612
9613 # Used on cygwin: DLL creation program.
9614 DLLTOOL="$DLLTOOL"
9615
9616 # Used on cygwin: object dumper.
9617 OBJDUMP="$OBJDUMP"
9618
9619 # Used on cygwin: assembler.
9620 AS="$AS"
9621
9622 # The name of the directory that contains temporary libtool files.
9623 objdir=$objdir
9624
9625 # How to create reloadable object files.
9626 reload_flag=$lt_reload_flag
9627 reload_cmds=$lt_reload_cmds
9628
9629 # How to pass a linker flag through the compiler.
9630 wl=$lt_lt_prog_compiler_wl
9631
9632 # Object file suffix (normally "o").
9633 objext="$ac_objext"
9634
9635 # Old archive suffix (normally "a").
9636 libext="$libext"
9637
9638 # Shared library suffix (normally ".so").
9639 shrext_cmds='$shrext_cmds'
9640
9641 # Executable file suffix (normally "").
9642 exeext="$exeext"
9643
9644 # Additional compiler flags for building library objects.
9645 pic_flag=$lt_lt_prog_compiler_pic
9646 pic_mode=$pic_mode
9647
9648 # What is the maximum length of a command?
9649 max_cmd_len=$lt_cv_sys_max_cmd_len
9650
9651 # Does compiler simultaneously support -c and -o options?
9652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9653
9654 # Must we lock files when doing compilation?
9655 need_locks=$lt_need_locks
9656
9657 # Do we need the lib prefix for modules?
9658 need_lib_prefix=$need_lib_prefix
9659
9660 # Do we need a version for libraries?
9661 need_version=$need_version
9662
9663 # Whether dlopen is supported.
9664 dlopen_support=$enable_dlopen
9665
9666 # Whether dlopen of programs is supported.
9667 dlopen_self=$enable_dlopen_self
9668
9669 # Whether dlopen of statically linked programs is supported.
9670 dlopen_self_static=$enable_dlopen_self_static
9671
9672 # Compiler flag to prevent dynamic linking.
9673 link_static_flag=$lt_lt_prog_compiler_static
9674
9675 # Compiler flag to turn off builtin functions.
9676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9677
9678 # Compiler flag to allow reflexive dlopens.
9679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9680
9681 # Compiler flag to generate shared objects directly from archives.
9682 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9683
9684 # Compiler flag to generate thread-safe objects.
9685 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9686
9687 # Library versioning type.
9688 version_type=$version_type
9689
9690 # Format of library name prefix.
9691 libname_spec=$lt_libname_spec
9692
9693 # List of archive names.  First name is the real one, the rest are links.
9694 # The last name is the one that the linker finds with -lNAME.
9695 library_names_spec=$lt_library_names_spec
9696
9697 # The coded name of the library, if different from the real name.
9698 soname_spec=$lt_soname_spec
9699
9700 # Commands used to build and install an old-style archive.
9701 RANLIB=$lt_RANLIB
9702 old_archive_cmds=$lt_old_archive_cmds
9703 old_postinstall_cmds=$lt_old_postinstall_cmds
9704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9705
9706 # Create an old-style archive from a shared archive.
9707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9708
9709 # Create a temporary old-style archive to link instead of a shared archive.
9710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9711
9712 # Commands used to build and install a shared archive.
9713 archive_cmds=$lt_archive_cmds
9714 archive_expsym_cmds=$lt_archive_expsym_cmds
9715 postinstall_cmds=$lt_postinstall_cmds
9716 postuninstall_cmds=$lt_postuninstall_cmds
9717
9718 # Commands used to build a loadable module (assumed same as above if empty)
9719 module_cmds=$lt_module_cmds
9720 module_expsym_cmds=$lt_module_expsym_cmds
9721
9722 # Commands to strip libraries.
9723 old_striplib=$lt_old_striplib
9724 striplib=$lt_striplib
9725
9726 # Dependencies to place before the objects being linked to create a
9727 # shared library.
9728 predep_objects=$lt_predep_objects
9729
9730 # Dependencies to place after the objects being linked to create a
9731 # shared library.
9732 postdep_objects=$lt_postdep_objects
9733
9734 # Dependencies to place before the objects being linked to create a
9735 # shared library.
9736 predeps=$lt_predeps
9737
9738 # Dependencies to place after the objects being linked to create a
9739 # shared library.
9740 postdeps=$lt_postdeps
9741
9742 # The library search path used internally by the compiler when linking
9743 # a shared library.
9744 compiler_lib_search_path=$lt_compiler_lib_search_path
9745
9746 # Method to check whether dependent libraries are shared objects.
9747 deplibs_check_method=$lt_deplibs_check_method
9748
9749 # Command to use when deplibs_check_method == file_magic.
9750 file_magic_cmd=$lt_file_magic_cmd
9751
9752 # Flag that allows shared libraries with undefined symbols to be built.
9753 allow_undefined_flag=$lt_allow_undefined_flag
9754
9755 # Flag that forces no undefined symbols.
9756 no_undefined_flag=$lt_no_undefined_flag
9757
9758 # Commands used to finish a libtool library installation in a directory.
9759 finish_cmds=$lt_finish_cmds
9760
9761 # Same as above, but a single script fragment to be evaled but not shown.
9762 finish_eval=$lt_finish_eval
9763
9764 # Take the output of nm and produce a listing of raw symbols and C names.
9765 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9766
9767 # Transform the output of nm in a proper C declaration
9768 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9769
9770 # Transform the output of nm in a C name address pair
9771 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9772
9773 # This is the shared library runtime path variable.
9774 runpath_var=$runpath_var
9775
9776 # This is the shared library path variable.
9777 shlibpath_var=$shlibpath_var
9778
9779 # Is shlibpath searched before the hard-coded library search path?
9780 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9781
9782 # How to hardcode a shared library path into an executable.
9783 hardcode_action=$hardcode_action
9784
9785 # Whether we should hardcode library paths into libraries.
9786 hardcode_into_libs=$hardcode_into_libs
9787
9788 # Flag to hardcode \$libdir into a binary during linking.
9789 # This must work even if \$libdir does not exist.
9790 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9791
9792 # If ld is used when linking, flag to hardcode \$libdir into
9793 # a binary during linking. This must work even if \$libdir does
9794 # not exist.
9795 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9796
9797 # Whether we need a single -rpath flag with a separated argument.
9798 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9799
9800 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9801 # resulting binary.
9802 hardcode_direct=$hardcode_direct
9803
9804 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9805 # resulting binary.
9806 hardcode_minus_L=$hardcode_minus_L
9807
9808 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9809 # the resulting binary.
9810 hardcode_shlibpath_var=$hardcode_shlibpath_var
9811
9812 # Set to yes if building a shared library automatically hardcodes DIR into the library
9813 # and all subsequent libraries and executables linked against it.
9814 hardcode_automatic=$hardcode_automatic
9815
9816 # Variables whose values should be saved in libtool wrapper scripts and
9817 # restored at relink time.
9818 variables_saved_for_relink="$variables_saved_for_relink"
9819
9820 # Whether libtool must link a program against all its dependency libraries.
9821 link_all_deplibs=$link_all_deplibs
9822
9823 # Compile-time system search path for libraries
9824 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9825
9826 # Run-time system search path for libraries
9827 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9828
9829 # Fix the shell variable \$srcfile for the compiler.
9830 fix_srcfile_path="$fix_srcfile_path"
9831
9832 # Set to yes if exported symbols are required.
9833 always_export_symbols=$always_export_symbols
9834
9835 # The commands to list exported symbols.
9836 export_symbols_cmds=$lt_export_symbols_cmds
9837
9838 # The commands to extract the exported symbol list from a shared archive.
9839 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9840
9841 # Symbols that should not be listed in the preloaded symbols.
9842 exclude_expsyms=$lt_exclude_expsyms
9843
9844 # Symbols that must always be exported.
9845 include_expsyms=$lt_include_expsyms
9846
9847 # ### END LIBTOOL CONFIG
9848
9849 __EOF__
9850
9851
9852   case $host_os in
9853   aix3*)
9854     cat <<\EOF >> "$cfgfile"
9855
9856 # AIX sometimes has problems with the GCC collect2 program.  For some
9857 # reason, if we set the COLLECT_NAMES environment variable, the problems
9858 # vanish in a puff of smoke.
9859 if test "X${COLLECT_NAMES+set}" != Xset; then
9860   COLLECT_NAMES=
9861   export COLLECT_NAMES
9862 fi
9863 EOF
9864     ;;
9865   esac
9866
9867   # We use sed instead of cat because bash on DJGPP gets confused if
9868   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9869   # text mode, it properly converts lines to CR/LF.  This bash problem
9870   # is reportedly fixed, but why not run on old versions too?
9871   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9872
9873   mv -f "$cfgfile" "$ofile" || \
9874     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9875   chmod +x "$ofile"
9876
9877 else
9878   # If there is no Makefile yet, we rely on a make rule to execute
9879   # `config.status --recheck' to rerun these tests and create the
9880   # libtool script then.
9881   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9882   if test -f "$ltmain_in"; then
9883     test -f Makefile && make "$ltmain"
9884   fi
9885 fi
9886
9887
9888 ac_ext=c
9889 ac_cpp='$CPP $CPPFLAGS'
9890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9893
9894 CC="$lt_save_CC"
9895
9896
9897 # Check whether --with-tags or --without-tags was given.
9898 if test "${with_tags+set}" = set; then
9899   withval="$with_tags"
9900   tagnames="$withval"
9901 fi;
9902
9903 if test -f "$ltmain" && test -n "$tagnames"; then
9904   if test ! -f "${ofile}"; then
9905     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9906 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9907   fi
9908
9909   if test -z "$LTCC"; then
9910     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9911     if test -z "$LTCC"; then
9912       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9913 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9914     else
9915       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9916 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9917     fi
9918   fi
9919
9920   # Extract list of available tagged configurations in $ofile.
9921   # Note that this assumes the entire list is on one line.
9922   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9923
9924   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9925   for tagname in $tagnames; do
9926     IFS="$lt_save_ifs"
9927     # Check whether tagname contains only valid characters
9928     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9929     "") ;;
9930     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9931 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9932    { (exit 1); exit 1; }; }
9933         ;;
9934     esac
9935
9936     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9937     then
9938       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9939 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9940    { (exit 1); exit 1; }; }
9941     fi
9942
9943     # Update the list of available tags.
9944     if test -n "$tagname"; then
9945       echo appending configuration tag \"$tagname\" to $ofile
9946
9947       case $tagname in
9948       CXX)
9949         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9950             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9951             (test "X$CXX" != "Xg++"))) ; then
9952           ac_ext=cc
9953 ac_cpp='$CXXCPP $CPPFLAGS'
9954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9957
9958
9959
9960
9961 archive_cmds_need_lc_CXX=no
9962 allow_undefined_flag_CXX=
9963 always_export_symbols_CXX=no
9964 archive_expsym_cmds_CXX=
9965 export_dynamic_flag_spec_CXX=
9966 hardcode_direct_CXX=no
9967 hardcode_libdir_flag_spec_CXX=
9968 hardcode_libdir_flag_spec_ld_CXX=
9969 hardcode_libdir_separator_CXX=
9970 hardcode_minus_L_CXX=no
9971 hardcode_automatic_CXX=no
9972 module_cmds_CXX=
9973 module_expsym_cmds_CXX=
9974 link_all_deplibs_CXX=unknown
9975 old_archive_cmds_CXX=$old_archive_cmds
9976 no_undefined_flag_CXX=
9977 whole_archive_flag_spec_CXX=
9978 enable_shared_with_static_runtimes_CXX=no
9979
9980 # Dependencies to place before and after the object being linked:
9981 predep_objects_CXX=
9982 postdep_objects_CXX=
9983 predeps_CXX=
9984 postdeps_CXX=
9985 compiler_lib_search_path_CXX=
9986
9987 # Source file extension for C++ test sources.
9988 ac_ext=cc
9989
9990 # Object file extension for compiled C++ test sources.
9991 objext=o
9992 objext_CXX=$objext
9993
9994 # Code to be used in simple compile tests
9995 lt_simple_compile_test_code="int some_variable = 0;\n"
9996
9997 # Code to be used in simple link tests
9998 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9999
10000 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10001
10002 # If no C compiler was specified, use CC.
10003 LTCC=${LTCC-"$CC"}
10004
10005 # Allow CC to be a program name with arguments.
10006 compiler=$CC
10007
10008
10009 # save warnings/boilerplate of simple test code
10010 ac_outfile=conftest.$ac_objext
10011 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10012 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10013 _lt_compiler_boilerplate=`cat conftest.err`
10014 $rm conftest*
10015
10016 ac_outfile=conftest.$ac_objext
10017 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10018 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10019 _lt_linker_boilerplate=`cat conftest.err`
10020 $rm conftest*
10021
10022
10023 # Allow CC to be a program name with arguments.
10024 lt_save_CC=$CC
10025 lt_save_LD=$LD
10026 lt_save_GCC=$GCC
10027 GCC=$GXX
10028 lt_save_with_gnu_ld=$with_gnu_ld
10029 lt_save_path_LD=$lt_cv_path_LD
10030 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10031   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10032 else
10033   unset lt_cv_prog_gnu_ld
10034 fi
10035 if test -n "${lt_cv_path_LDCXX+set}"; then
10036   lt_cv_path_LD=$lt_cv_path_LDCXX
10037 else
10038   unset lt_cv_path_LD
10039 fi
10040 test -z "${LDCXX+set}" || LD=$LDCXX
10041 CC=${CXX-"c++"}
10042 compiler=$CC
10043 compiler_CXX=$CC
10044 for cc_temp in $compiler""; do
10045   case $cc_temp in
10046     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10047     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10048     \-*) ;;
10049     *) break;;
10050   esac
10051 done
10052 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10053
10054
10055 # We don't want -fno-exception wen compiling C++ code, so set the
10056 # no_builtin_flag separately
10057 if test "$GXX" = yes; then
10058   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10059 else
10060   lt_prog_compiler_no_builtin_flag_CXX=
10061 fi
10062
10063 if test "$GXX" = yes; then
10064   # Set up default GNU C++ configuration
10065
10066
10067 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10068 if test "${with_gnu_ld+set}" = set; then
10069   withval="$with_gnu_ld"
10070   test "$withval" = no || with_gnu_ld=yes
10071 else
10072   with_gnu_ld=no
10073 fi;
10074 ac_prog=ld
10075 if test "$GCC" = yes; then
10076   # Check if gcc -print-prog-name=ld gives a path.
10077   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10078 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10079   case $host in
10080   *-*-mingw*)
10081     # gcc leaves a trailing carriage return which upsets mingw
10082     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10083   *)
10084     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10085   esac
10086   case $ac_prog in
10087     # Accept absolute paths.
10088     [\\/]* | ?:[\\/]*)
10089       re_direlt='/[^/][^/]*/\.\./'
10090       # Canonicalize the pathname of ld
10091       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10092       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10093         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10094       done
10095       test -z "$LD" && LD="$ac_prog"
10096       ;;
10097   "")
10098     # If it fails, then pretend we aren't using GCC.
10099     ac_prog=ld
10100     ;;
10101   *)
10102     # If it is relative, then search for the first ld in PATH.
10103     with_gnu_ld=unknown
10104     ;;
10105   esac
10106 elif test "$with_gnu_ld" = yes; then
10107   echo "$as_me:$LINENO: checking for GNU ld" >&5
10108 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10109 else
10110   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10111 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10112 fi
10113 if test "${lt_cv_path_LD+set}" = set; then
10114   echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116   if test -z "$LD"; then
10117   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10118   for ac_dir in $PATH; do
10119     IFS="$lt_save_ifs"
10120     test -z "$ac_dir" && ac_dir=.
10121     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10122       lt_cv_path_LD="$ac_dir/$ac_prog"
10123       # Check to see if the program is GNU ld.  I'd rather use --version,
10124       # but apparently some GNU ld's only accept -v.
10125       # Break only if it was the GNU/non-GNU ld that we prefer.
10126       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10127       *GNU* | *'with BFD'*)
10128         test "$with_gnu_ld" != no && break
10129         ;;
10130       *)
10131         test "$with_gnu_ld" != yes && break
10132         ;;
10133       esac
10134     fi
10135   done
10136   IFS="$lt_save_ifs"
10137 else
10138   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10139 fi
10140 fi
10141
10142 LD="$lt_cv_path_LD"
10143 if test -n "$LD"; then
10144   echo "$as_me:$LINENO: result: $LD" >&5
10145 echo "${ECHO_T}$LD" >&6
10146 else
10147   echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6
10149 fi
10150 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10151 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10152    { (exit 1); exit 1; }; }
10153 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10154 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10155 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10156   echo $ECHO_N "(cached) $ECHO_C" >&6
10157 else
10158   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10159 case `$LD -v 2>&1 </dev/null` in
10160 *GNU* | *'with BFD'*)
10161   lt_cv_prog_gnu_ld=yes
10162   ;;
10163 *)
10164   lt_cv_prog_gnu_ld=no
10165   ;;
10166 esac
10167 fi
10168 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10169 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10170 with_gnu_ld=$lt_cv_prog_gnu_ld
10171
10172
10173
10174   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10175   # archiving commands below assume that GNU ld is being used.
10176   if test "$with_gnu_ld" = yes; then
10177     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10178     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'
10179
10180     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10181     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10182
10183     # If archive_cmds runs LD, not CC, wlarc should be empty
10184     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10185     #     investigate it a little bit more. (MM)
10186     wlarc='${wl}'
10187
10188     # ancient GNU ld didn't support --whole-archive et. al.
10189     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10190         grep 'no-whole-archive' > /dev/null; then
10191       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10192     else
10193       whole_archive_flag_spec_CXX=
10194     fi
10195   else
10196     with_gnu_ld=no
10197     wlarc=
10198
10199     # A generic and very simple default shared library creation
10200     # command for GNU C++ for the case where it uses the native
10201     # linker, instead of GNU ld.  If possible, this setting should
10202     # overridden to take advantage of the native linker features on
10203     # the platform it is being used on.
10204     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10205   fi
10206
10207   # Commands to make compiler produce verbose output that lists
10208   # what "hidden" libraries, object files and flags are used when
10209   # linking a shared library.
10210   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10211
10212 else
10213   GXX=no
10214   with_gnu_ld=no
10215   wlarc=
10216 fi
10217
10218 # PORTME: fill in a description of your system's C++ link characteristics
10219 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10220 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10221 ld_shlibs_CXX=yes
10222 case $host_os in
10223   aix3*)
10224     # FIXME: insert proper C++ library support
10225     ld_shlibs_CXX=no
10226     ;;
10227   aix4* | aix5*)
10228     if test "$host_cpu" = ia64; then
10229       # On IA64, the linker does run time linking by default, so we don't
10230       # have to do anything special.
10231       aix_use_runtimelinking=no
10232       exp_sym_flag='-Bexport'
10233       no_entry_flag=""
10234     else
10235       aix_use_runtimelinking=no
10236
10237       # Test if we are trying to use run time linking or normal
10238       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10239       # need to do runtime linking.
10240       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10241         for ld_flag in $LDFLAGS; do
10242           case $ld_flag in
10243           *-brtl*)
10244             aix_use_runtimelinking=yes
10245             break
10246             ;;
10247           esac
10248         done
10249       esac
10250
10251       exp_sym_flag='-bexport'
10252       no_entry_flag='-bnoentry'
10253     fi
10254
10255     # When large executables or shared objects are built, AIX ld can
10256     # have problems creating the table of contents.  If linking a library
10257     # or program results in "error TOC overflow" add -mminimal-toc to
10258     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10259     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10260
10261     archive_cmds_CXX=''
10262     hardcode_direct_CXX=yes
10263     hardcode_libdir_separator_CXX=':'
10264     link_all_deplibs_CXX=yes
10265
10266     if test "$GXX" = yes; then
10267       case $host_os in aix4.[012]|aix4.[012].*)
10268       # We only want to do this on AIX 4.2 and lower, the check
10269       # below for broken collect2 doesn't work under 4.3+
10270         collect2name=`${CC} -print-prog-name=collect2`
10271         if test -f "$collect2name" && \
10272            strings "$collect2name" | grep resolve_lib_name >/dev/null
10273         then
10274           # We have reworked collect2
10275           hardcode_direct_CXX=yes
10276         else
10277           # We have old collect2
10278           hardcode_direct_CXX=unsupported
10279           # It fails to find uninstalled libraries when the uninstalled
10280           # path is not listed in the libpath.  Setting hardcode_minus_L
10281           # to unsupported forces relinking
10282           hardcode_minus_L_CXX=yes
10283           hardcode_libdir_flag_spec_CXX='-L$libdir'
10284           hardcode_libdir_separator_CXX=
10285         fi
10286       esac
10287       shared_flag='-shared'
10288       if test "$aix_use_runtimelinking" = yes; then
10289         shared_flag="$shared_flag "'${wl}-G'
10290       fi
10291     else
10292       # not using gcc
10293       if test "$host_cpu" = ia64; then
10294         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10295         # chokes on -Wl,-G. The following line is correct:
10296         shared_flag='-G'
10297       else
10298         if test "$aix_use_runtimelinking" = yes; then
10299           shared_flag='${wl}-G'
10300         else
10301           shared_flag='${wl}-bM:SRE'
10302         fi
10303       fi
10304     fi
10305
10306     # It seems that -bexpall does not export symbols beginning with
10307     # underscore (_), so it is better to generate a list of symbols to export.
10308     always_export_symbols_CXX=yes
10309     if test "$aix_use_runtimelinking" = yes; then
10310       # Warning - without using the other runtime loading flags (-brtl),
10311       # -berok will link without error, but may produce a broken library.
10312       allow_undefined_flag_CXX='-berok'
10313       # Determine the default libpath from the value encoded in an empty executable.
10314       cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h.  */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h.  */
10320
10321 int
10322 main ()
10323 {
10324
10325   ;
10326   return 0;
10327 }
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331   (eval $ac_link) 2>conftest.er1
10332   ac_status=$?
10333   grep -v '^ *+' conftest.er1 >conftest.err
10334   rm -f conftest.er1
10335   cat conftest.err >&5
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); } &&
10338          { ac_try='test -z "$ac_cxx_werror_flag"
10339                          || test ! -s conftest.err'
10340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341   (eval $ac_try) 2>&5
10342   ac_status=$?
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); }; } &&
10345          { ac_try='test -s conftest$ac_exeext'
10346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347   (eval $ac_try) 2>&5
10348   ac_status=$?
10349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350   (exit $ac_status); }; }; then
10351
10352 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10353 }'`
10354 # Check for a 64-bit object if we didn't find anything.
10355 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; }
10356 }'`; fi
10357 else
10358   echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361 fi
10362 rm -f conftest.err conftest.$ac_objext \
10363       conftest$ac_exeext conftest.$ac_ext
10364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10365
10366       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10367
10368       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10369      else
10370       if test "$host_cpu" = ia64; then
10371         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10372         allow_undefined_flag_CXX="-z nodefs"
10373         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10374       else
10375         # Determine the default libpath from the value encoded in an empty executable.
10376         cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h.  */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h.  */
10382
10383 int
10384 main ()
10385 {
10386
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393   (eval $ac_link) 2>conftest.er1
10394   ac_status=$?
10395   grep -v '^ *+' conftest.er1 >conftest.err
10396   rm -f conftest.er1
10397   cat conftest.err >&5
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); } &&
10400          { ac_try='test -z "$ac_cxx_werror_flag"
10401                          || test ! -s conftest.err'
10402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403   (eval $ac_try) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; } &&
10407          { ac_try='test -s conftest$ac_exeext'
10408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409   (eval $ac_try) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }; then
10413
10414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10415 }'`
10416 # Check for a 64-bit object if we didn't find anything.
10417 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; }
10418 }'`; fi
10419 else
10420   echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423 fi
10424 rm -f conftest.err conftest.$ac_objext \
10425       conftest$ac_exeext conftest.$ac_ext
10426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10427
10428         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10429         # Warning - without using the other run time loading flags,
10430         # -berok will link without error, but may produce a broken library.
10431         no_undefined_flag_CXX=' ${wl}-bernotok'
10432         allow_undefined_flag_CXX=' ${wl}-berok'
10433         # -bexpall does not export symbols beginning with underscore (_)
10434         always_export_symbols_CXX=yes
10435         # Exported symbols can be pulled into shared objects from archives
10436         whole_archive_flag_spec_CXX=' '
10437         archive_cmds_need_lc_CXX=yes
10438         # This is similar to how AIX traditionally builds it's shared libraries.
10439         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10440       fi
10441     fi
10442     ;;
10443   chorus*)
10444     case $cc_basename in
10445       *)
10446         # FIXME: insert proper C++ library support
10447         ld_shlibs_CXX=no
10448         ;;
10449     esac
10450     ;;
10451
10452
10453   cygwin* | mingw* | pw32*)
10454     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10455     # as there is no search path for DLLs.
10456     hardcode_libdir_flag_spec_CXX='-L$libdir'
10457     allow_undefined_flag_CXX=unsupported
10458     always_export_symbols_CXX=no
10459     enable_shared_with_static_runtimes_CXX=yes
10460
10461     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10462       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10463       # If the export-symbols file already is a .def file (1st line
10464       # is EXPORTS), use it as is; otherwise, prepend...
10465       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10466         cp $export_symbols $output_objdir/$soname.def;
10467       else
10468         echo EXPORTS > $output_objdir/$soname.def;
10469         cat $export_symbols >> $output_objdir/$soname.def;
10470       fi~
10471       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10472     else
10473       ld_shlibs_CXX=no
10474     fi
10475   ;;
10476       darwin* | rhapsody*)
10477         case "$host_os" in
10478         rhapsody* | darwin1.[012])
10479          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10480          ;;
10481        *) # Darwin 1.3 on
10482          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10483            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10484          else
10485            case ${MACOSX_DEPLOYMENT_TARGET} in
10486              10.[012])
10487                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10488                ;;
10489              10.*)
10490                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10491                ;;
10492            esac
10493          fi
10494          ;;
10495         esac
10496       archive_cmds_need_lc_CXX=no
10497       hardcode_direct_CXX=no
10498       hardcode_automatic_CXX=yes
10499       hardcode_shlibpath_var_CXX=unsupported
10500       whole_archive_flag_spec_CXX=''
10501       link_all_deplibs_CXX=yes
10502
10503     if test "$GXX" = yes ; then
10504       lt_int_apple_cc_single_mod=no
10505       output_verbose_link_cmd='echo'
10506       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10507        lt_int_apple_cc_single_mod=yes
10508       fi
10509       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10510        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10511       else
10512           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'
10513         fi
10514         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10515         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10516           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10517             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}'
10518           else
10519             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}'
10520           fi
10521             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}'
10522       else
10523       case $cc_basename in
10524         xlc*)
10525          output_verbose_link_cmd='echo'
10526           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'
10527           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10528           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10529           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}'
10530           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}'
10531           ;;
10532        *)
10533          ld_shlibs_CXX=no
10534           ;;
10535       esac
10536       fi
10537         ;;
10538
10539   dgux*)
10540     case $cc_basename in
10541       ec++*)
10542         # FIXME: insert proper C++ library support
10543         ld_shlibs_CXX=no
10544         ;;
10545       ghcx*)
10546         # Green Hills C++ Compiler
10547         # FIXME: insert proper C++ library support
10548         ld_shlibs_CXX=no
10549         ;;
10550       *)
10551         # FIXME: insert proper C++ library support
10552         ld_shlibs_CXX=no
10553         ;;
10554     esac
10555     ;;
10556   freebsd[12]*)
10557     # C++ shared libraries reported to be fairly broken before switch to ELF
10558     ld_shlibs_CXX=no
10559     ;;
10560   freebsd-elf*)
10561     archive_cmds_need_lc_CXX=no
10562     ;;
10563   freebsd* | kfreebsd*-gnu | dragonfly*)
10564     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10565     # conventions
10566     ld_shlibs_CXX=yes
10567     ;;
10568   gnu*)
10569     ;;
10570   hpux9*)
10571     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10572     hardcode_libdir_separator_CXX=:
10573     export_dynamic_flag_spec_CXX='${wl}-E'
10574     hardcode_direct_CXX=yes
10575     hardcode_minus_L_CXX=yes # Not in the search PATH,
10576                                 # but as the default
10577                                 # location of the library.
10578
10579     case $cc_basename in
10580     CC*)
10581       # FIXME: insert proper C++ library support
10582       ld_shlibs_CXX=no
10583       ;;
10584     aCC*)
10585       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'
10586       # Commands to make compiler produce verbose output that lists
10587       # what "hidden" libraries, object files and flags are used when
10588       # linking a shared library.
10589       #
10590       # There doesn't appear to be a way to prevent this compiler from
10591       # explicitly linking system object files so we need to strip them
10592       # from the output so that they don't get included in the library
10593       # dependencies.
10594       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'
10595       ;;
10596     *)
10597       if test "$GXX" = yes; then
10598         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'
10599       else
10600         # FIXME: insert proper C++ library support
10601         ld_shlibs_CXX=no
10602       fi
10603       ;;
10604     esac
10605     ;;
10606   hpux10*|hpux11*)
10607     if test $with_gnu_ld = no; then
10608       case "$host_cpu" in
10609       hppa*64*)
10610         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10611         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10612         hardcode_libdir_separator_CXX=:
10613         ;;
10614       ia64*)
10615         hardcode_libdir_flag_spec_CXX='-L$libdir'
10616         ;;
10617       *)
10618         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10619         hardcode_libdir_separator_CXX=:
10620         export_dynamic_flag_spec_CXX='${wl}-E'
10621         ;;
10622       esac
10623     fi
10624     case "$host_cpu" in
10625     hppa*64*)
10626       hardcode_direct_CXX=no
10627       hardcode_shlibpath_var_CXX=no
10628       ;;
10629     ia64*)
10630       hardcode_direct_CXX=no
10631       hardcode_shlibpath_var_CXX=no
10632       hardcode_minus_L_CXX=yes # Not in the search PATH,
10633                                               # but as the default
10634                                               # location of the library.
10635       ;;
10636     *)
10637       hardcode_direct_CXX=yes
10638       hardcode_minus_L_CXX=yes # Not in the search PATH,
10639                                               # but as the default
10640                                               # location of the library.
10641       ;;
10642     esac
10643
10644     case $cc_basename in
10645       CC*)
10646         # FIXME: insert proper C++ library support
10647         ld_shlibs_CXX=no
10648         ;;
10649       aCC*)
10650         case "$host_cpu" in
10651         hppa*64*|ia64*)
10652           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10653           ;;
10654         *)
10655           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10656           ;;
10657         esac
10658         # Commands to make compiler produce verbose output that lists
10659         # what "hidden" libraries, object files and flags are used when
10660         # linking a shared library.
10661         #
10662         # There doesn't appear to be a way to prevent this compiler from
10663         # explicitly linking system object files so we need to strip them
10664         # from the output so that they don't get included in the library
10665         # dependencies.
10666         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'
10667         ;;
10668       *)
10669         if test "$GXX" = yes; then
10670           if test $with_gnu_ld = no; then
10671             case "$host_cpu" in
10672             ia64*|hppa*64*)
10673               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10674               ;;
10675             *)
10676               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'
10677               ;;
10678             esac
10679           fi
10680         else
10681           # FIXME: insert proper C++ library support
10682           ld_shlibs_CXX=no
10683         fi
10684         ;;
10685     esac
10686     ;;
10687   irix5* | irix6*)
10688     case $cc_basename in
10689       CC*)
10690         # SGI C++
10691         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'
10692
10693         # Archives containing C++ object files must be created using
10694         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10695         # necessary to make sure instantiated templates are included
10696         # in the archive.
10697         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10698         ;;
10699       *)
10700         if test "$GXX" = yes; then
10701           if test "$with_gnu_ld" = no; then
10702             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'
10703           else
10704             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'
10705           fi
10706         fi
10707         link_all_deplibs_CXX=yes
10708         ;;
10709     esac
10710     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10711     hardcode_libdir_separator_CXX=:
10712     ;;
10713   linux*)
10714     case $cc_basename in
10715       KCC*)
10716         # Kuck and Associates, Inc. (KAI) C++ Compiler
10717
10718         # KCC will only create a shared library if the output file
10719         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10720         # to its proper name (with version) after linking.
10721         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'
10722         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'
10723         # Commands to make compiler produce verbose output that lists
10724         # what "hidden" libraries, object files and flags are used when
10725         # linking a shared library.
10726         #
10727         # There doesn't appear to be a way to prevent this compiler from
10728         # explicitly linking system object files so we need to strip them
10729         # from the output so that they don't get included in the library
10730         # dependencies.
10731         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'
10732
10733         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10734         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10735
10736         # Archives containing C++ object files must be created using
10737         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10738         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10739         ;;
10740       icpc*)
10741         # Intel C++
10742         with_gnu_ld=yes
10743         # version 8.0 and above of icpc choke on multiply defined symbols
10744         # if we add $predep_objects and $postdep_objects, however 7.1 and
10745         # earlier do not add the objects themselves.
10746         case `$CC -V 2>&1` in
10747         *"Version 7."*)
10748           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10749           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'
10750           ;;
10751         *)  # Version 8.0 or newer
10752           tmp_idyn=
10753           case $host_cpu in
10754             ia64*) tmp_idyn=' -i_dynamic';;
10755           esac
10756           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10757           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'
10758           ;;
10759         esac
10760         archive_cmds_need_lc_CXX=no
10761         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10762         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10763         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10764         ;;
10765       pgCC*)
10766         # Portland Group C++ compiler
10767         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10768         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'
10769
10770         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10771         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10772         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'
10773         ;;
10774       cxx*)
10775         # Compaq C++
10776         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10777         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'
10778
10779         runpath_var=LD_RUN_PATH
10780         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10781         hardcode_libdir_separator_CXX=:
10782
10783         # Commands to make compiler produce verbose output that lists
10784         # what "hidden" libraries, object files and flags are used when
10785         # linking a shared library.
10786         #
10787         # There doesn't appear to be a way to prevent this compiler from
10788         # explicitly linking system object files so we need to strip them
10789         # from the output so that they don't get included in the library
10790         # dependencies.
10791         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'
10792         ;;
10793     esac
10794     ;;
10795   lynxos*)
10796     # FIXME: insert proper C++ library support
10797     ld_shlibs_CXX=no
10798     ;;
10799   m88k*)
10800     # FIXME: insert proper C++ library support
10801     ld_shlibs_CXX=no
10802     ;;
10803   mvs*)
10804     case $cc_basename in
10805       cxx*)
10806         # FIXME: insert proper C++ library support
10807         ld_shlibs_CXX=no
10808         ;;
10809       *)
10810         # FIXME: insert proper C++ library support
10811         ld_shlibs_CXX=no
10812         ;;
10813     esac
10814     ;;
10815   netbsd*)
10816     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10817       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10818       wlarc=
10819       hardcode_libdir_flag_spec_CXX='-R$libdir'
10820       hardcode_direct_CXX=yes
10821       hardcode_shlibpath_var_CXX=no
10822     fi
10823     # Workaround some broken pre-1.5 toolchains
10824     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10825     ;;
10826   openbsd2*)
10827     # C++ shared libraries are fairly broken
10828     ld_shlibs_CXX=no
10829     ;;
10830   openbsd*)
10831     hardcode_direct_CXX=yes
10832     hardcode_shlibpath_var_CXX=no
10833     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10834     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10835     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10836       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10837       export_dynamic_flag_spec_CXX='${wl}-E'
10838       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10839     fi
10840     output_verbose_link_cmd='echo'
10841     ;;
10842   osf3*)
10843     case $cc_basename in
10844       KCC*)
10845         # Kuck and Associates, Inc. (KAI) C++ Compiler
10846
10847         # KCC will only create a shared library if the output file
10848         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10849         # to its proper name (with version) after linking.
10850         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'
10851
10852         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10853         hardcode_libdir_separator_CXX=:
10854
10855         # Archives containing C++ object files must be created using
10856         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10857         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10858
10859         ;;
10860       RCC*)
10861         # Rational C++ 2.4.1
10862         # FIXME: insert proper C++ library support
10863         ld_shlibs_CXX=no
10864         ;;
10865       cxx*)
10866         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10867         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'
10868
10869         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10870         hardcode_libdir_separator_CXX=:
10871
10872         # Commands to make compiler produce verbose output that lists
10873         # what "hidden" libraries, object files and flags are used when
10874         # linking a shared library.
10875         #
10876         # There doesn't appear to be a way to prevent this compiler from
10877         # explicitly linking system object files so we need to strip them
10878         # from the output so that they don't get included in the library
10879         # dependencies.
10880         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'
10881         ;;
10882       *)
10883         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10884           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10885           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'
10886
10887           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10888           hardcode_libdir_separator_CXX=:
10889
10890           # Commands to make compiler produce verbose output that lists
10891           # what "hidden" libraries, object files and flags are used when
10892           # linking a shared library.
10893           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10894
10895         else
10896           # FIXME: insert proper C++ library support
10897           ld_shlibs_CXX=no
10898         fi
10899         ;;
10900     esac
10901     ;;
10902   osf4* | osf5*)
10903     case $cc_basename in
10904       KCC*)
10905         # Kuck and Associates, Inc. (KAI) C++ Compiler
10906
10907         # KCC will only create a shared library if the output file
10908         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10909         # to its proper name (with version) after linking.
10910         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'
10911
10912         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10913         hardcode_libdir_separator_CXX=:
10914
10915         # Archives containing C++ object files must be created using
10916         # the KAI C++ compiler.
10917         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10918         ;;
10919       RCC*)
10920         # Rational C++ 2.4.1
10921         # FIXME: insert proper C++ library support
10922         ld_shlibs_CXX=no
10923         ;;
10924       cxx*)
10925         allow_undefined_flag_CXX=' -expect_unresolved \*'
10926         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'
10927         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10928           echo "-hidden">> $lib.exp~
10929           $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~
10930           $rm $lib.exp'
10931
10932         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10933         hardcode_libdir_separator_CXX=:
10934
10935         # Commands to make compiler produce verbose output that lists
10936         # what "hidden" libraries, object files and flags are used when
10937         # linking a shared library.
10938         #
10939         # There doesn't appear to be a way to prevent this compiler from
10940         # explicitly linking system object files so we need to strip them
10941         # from the output so that they don't get included in the library
10942         # dependencies.
10943         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'
10944         ;;
10945       *)
10946         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10947           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10948          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'
10949
10950           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10951           hardcode_libdir_separator_CXX=:
10952
10953           # Commands to make compiler produce verbose output that lists
10954           # what "hidden" libraries, object files and flags are used when
10955           # linking a shared library.
10956           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10957
10958         else
10959           # FIXME: insert proper C++ library support
10960           ld_shlibs_CXX=no
10961         fi
10962         ;;
10963     esac
10964     ;;
10965   psos*)
10966     # FIXME: insert proper C++ library support
10967     ld_shlibs_CXX=no
10968     ;;
10969   sco*)
10970     archive_cmds_need_lc_CXX=no
10971     case $cc_basename in
10972       CC*)
10973         # FIXME: insert proper C++ library support
10974         ld_shlibs_CXX=no
10975         ;;
10976       *)
10977         # FIXME: insert proper C++ library support
10978         ld_shlibs_CXX=no
10979         ;;
10980     esac
10981     ;;
10982   sunos4*)
10983     case $cc_basename in
10984       CC*)
10985         # Sun C++ 4.x
10986         # FIXME: insert proper C++ library support
10987         ld_shlibs_CXX=no
10988         ;;
10989       lcc*)
10990         # Lucid
10991         # FIXME: insert proper C++ library support
10992         ld_shlibs_CXX=no
10993         ;;
10994       *)
10995         # FIXME: insert proper C++ library support
10996         ld_shlibs_CXX=no
10997         ;;
10998     esac
10999     ;;
11000   solaris*)
11001     case $cc_basename in
11002       CC*)
11003         # Sun C++ 4.2, 5.x and Centerline C++
11004         no_undefined_flag_CXX=' -zdefs'
11005         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11006         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11007         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11008
11009         hardcode_libdir_flag_spec_CXX='-R$libdir'
11010         hardcode_shlibpath_var_CXX=no
11011         case $host_os in
11012           solaris2.[0-5] | solaris2.[0-5].*) ;;
11013           *)
11014             # The C++ compiler is used as linker so we must use $wl
11015             # flag to pass the commands to the underlying system
11016             # linker. We must also pass each convience library through
11017             # to the system linker between allextract/defaultextract.
11018             # The C++ compiler will combine linker options so we
11019             # cannot just pass the convience library names through
11020             # without $wl.
11021             # Supported since Solaris 2.6 (maybe 2.5.1?)
11022             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'
11023             ;;
11024         esac
11025         link_all_deplibs_CXX=yes
11026
11027         # Commands to make compiler produce verbose output that lists
11028         # what "hidden" libraries, object files and flags are used when
11029         # linking a shared library.
11030         #
11031         # There doesn't appear to be a way to prevent this compiler from
11032         # explicitly linking system object files so we need to strip them
11033         # from the output so that they don't get included in the library
11034         # dependencies.
11035         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11036
11037         # Archives containing C++ object files must be created using
11038         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11039         # necessary to make sure instantiated templates are included
11040         # in the archive.
11041         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11042         ;;
11043       gcx*)
11044         # Green Hills C++ Compiler
11045         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11046
11047         # The C++ compiler must be used to create the archive.
11048         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11049         ;;
11050       *)
11051         # GNU C++ compiler with Solaris linker
11052         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11053           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11054           if $CC --version | grep -v '^2\.7' > /dev/null; then
11055             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11056             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11057                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11058
11059             # Commands to make compiler produce verbose output that lists
11060             # what "hidden" libraries, object files and flags are used when
11061             # linking a shared library.
11062             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11063           else
11064             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11065             # platform.
11066             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11067             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11068                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11069
11070             # Commands to make compiler produce verbose output that lists
11071             # what "hidden" libraries, object files and flags are used when
11072             # linking a shared library.
11073             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11074           fi
11075
11076           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11077         fi
11078         ;;
11079     esac
11080     ;;
11081   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11082     archive_cmds_need_lc_CXX=no
11083     ;;
11084   tandem*)
11085     case $cc_basename in
11086       NCC*)
11087         # NonStop-UX NCC 3.20
11088         # FIXME: insert proper C++ library support
11089         ld_shlibs_CXX=no
11090         ;;
11091       *)
11092         # FIXME: insert proper C++ library support
11093         ld_shlibs_CXX=no
11094         ;;
11095     esac
11096     ;;
11097   vxworks*)
11098     # FIXME: insert proper C++ library support
11099     ld_shlibs_CXX=no
11100     ;;
11101   *)
11102     # FIXME: insert proper C++ library support
11103     ld_shlibs_CXX=no
11104     ;;
11105 esac
11106 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11107 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11108 test "$ld_shlibs_CXX" = no && can_build_shared=no
11109
11110 GCC_CXX="$GXX"
11111 LD_CXX="$LD"
11112
11113
11114 cat > conftest.$ac_ext <<EOF
11115 class Foo
11116 {
11117 public:
11118   Foo (void) { a = 0; }
11119 private:
11120   int a;
11121 };
11122 EOF
11123
11124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11125   (eval $ac_compile) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; then
11129   # Parse the compiler output and extract the necessary
11130   # objects, libraries and library flags.
11131
11132   # Sentinel used to keep track of whether or not we are before
11133   # the conftest object file.
11134   pre_test_object_deps_done=no
11135
11136   # The `*' in the case matches for architectures that use `case' in
11137   # $output_verbose_cmd can trigger glob expansion during the loop
11138   # eval without this substitution.
11139   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11140
11141   for p in `eval $output_verbose_link_cmd`; do
11142     case $p in
11143
11144     -L* | -R* | -l*)
11145        # Some compilers place space between "-{L,R}" and the path.
11146        # Remove the space.
11147        if test $p = "-L" \
11148           || test $p = "-R"; then
11149          prev=$p
11150          continue
11151        else
11152          prev=
11153        fi
11154
11155        if test "$pre_test_object_deps_done" = no; then
11156          case $p in
11157          -L* | -R*)
11158            # Internal compiler library paths should come after those
11159            # provided the user.  The postdeps already come after the
11160            # user supplied libs so there is no need to process them.
11161            if test -z "$compiler_lib_search_path_CXX"; then
11162              compiler_lib_search_path_CXX="${prev}${p}"
11163            else
11164              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11165            fi
11166            ;;
11167          # The "-l" case would never come before the object being
11168          # linked, so don't bother handling this case.
11169          esac
11170        else
11171          if test -z "$postdeps_CXX"; then
11172            postdeps_CXX="${prev}${p}"
11173          else
11174            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11175          fi
11176        fi
11177        ;;
11178
11179     *.$objext)
11180        # This assumes that the test object file only shows up
11181        # once in the compiler output.
11182        if test "$p" = "conftest.$objext"; then
11183          pre_test_object_deps_done=yes
11184          continue
11185        fi
11186
11187        if test "$pre_test_object_deps_done" = no; then
11188          if test -z "$predep_objects_CXX"; then
11189            predep_objects_CXX="$p"
11190          else
11191            predep_objects_CXX="$predep_objects_CXX $p"
11192          fi
11193        else
11194          if test -z "$postdep_objects_CXX"; then
11195            postdep_objects_CXX="$p"
11196          else
11197            postdep_objects_CXX="$postdep_objects_CXX $p"
11198          fi
11199        fi
11200        ;;
11201
11202     *) ;; # Ignore the rest.
11203
11204     esac
11205   done
11206
11207   # Clean up.
11208   rm -f a.out a.exe
11209 else
11210   echo "libtool.m4: error: problem compiling CXX test program"
11211 fi
11212
11213 $rm -f confest.$objext
11214
11215 case " $postdeps_CXX " in
11216 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11217 esac
11218
11219 lt_prog_compiler_wl_CXX=
11220 lt_prog_compiler_pic_CXX=
11221 lt_prog_compiler_static_CXX=
11222
11223 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11225
11226   # C++ specific cases for pic, static, wl, etc.
11227   if test "$GXX" = yes; then
11228     lt_prog_compiler_wl_CXX='-Wl,'
11229     lt_prog_compiler_static_CXX='-static'
11230
11231     case $host_os in
11232     aix*)
11233       # All AIX code is PIC.
11234       if test "$host_cpu" = ia64; then
11235         # AIX 5 now supports IA64 processor
11236         lt_prog_compiler_static_CXX='-Bstatic'
11237       fi
11238       ;;
11239     amigaos*)
11240       # FIXME: we need at least 68020 code to build shared libraries, but
11241       # adding the `-m68020' flag to GCC prevents building anything better,
11242       # like `-m68040'.
11243       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11244       ;;
11245     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11246       # PIC is the default for these OSes.
11247       ;;
11248     mingw* | os2* | pw32*)
11249       # This hack is so that the source file can tell whether it is being
11250       # built for inclusion in a dll (and should export symbols for example).
11251       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11252       ;;
11253     darwin* | rhapsody*)
11254       # PIC is the default on this platform
11255       # Common symbols not allowed in MH_DYLIB files
11256       lt_prog_compiler_pic_CXX='-fno-common'
11257       ;;
11258     *djgpp*)
11259       # DJGPP does not support shared libraries at all
11260       lt_prog_compiler_pic_CXX=
11261       ;;
11262     sysv4*MP*)
11263       if test -d /usr/nec; then
11264         lt_prog_compiler_pic_CXX=-Kconform_pic
11265       fi
11266       ;;
11267     hpux*)
11268       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11269       # not for PA HP-UX.
11270       case "$host_cpu" in
11271       hppa*64*|ia64*)
11272         ;;
11273       *)
11274         lt_prog_compiler_pic_CXX='-fPIC'
11275         ;;
11276       esac
11277       ;;
11278     *)
11279       lt_prog_compiler_pic_CXX='-fPIC'
11280       ;;
11281     esac
11282   else
11283     case $host_os in
11284       aix4* | aix5*)
11285         # All AIX code is PIC.
11286         if test "$host_cpu" = ia64; then
11287           # AIX 5 now supports IA64 processor
11288           lt_prog_compiler_static_CXX='-Bstatic'
11289         else
11290           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11291         fi
11292         ;;
11293       chorus*)
11294         case $cc_basename in
11295         cxch68*)
11296           # Green Hills C++ Compiler
11297           # _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"
11298           ;;
11299         esac
11300         ;;
11301        darwin*)
11302          # PIC is the default on this platform
11303          # Common symbols not allowed in MH_DYLIB files
11304          case $cc_basename in
11305            xlc*)
11306            lt_prog_compiler_pic_CXX='-qnocommon'
11307            lt_prog_compiler_wl_CXX='-Wl,'
11308            ;;
11309          esac
11310        ;;
11311       dgux*)
11312         case $cc_basename in
11313           ec++*)
11314             lt_prog_compiler_pic_CXX='-KPIC'
11315             ;;
11316           ghcx*)
11317             # Green Hills C++ Compiler
11318             lt_prog_compiler_pic_CXX='-pic'
11319             ;;
11320           *)
11321             ;;
11322         esac
11323         ;;
11324       freebsd* | kfreebsd*-gnu | dragonfly*)
11325         # FreeBSD uses GNU C++
11326         ;;
11327       hpux9* | hpux10* | hpux11*)
11328         case $cc_basename in
11329           CC*)
11330             lt_prog_compiler_wl_CXX='-Wl,'
11331             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11332             if test "$host_cpu" != ia64; then
11333               lt_prog_compiler_pic_CXX='+Z'
11334             fi
11335             ;;
11336           aCC*)
11337             lt_prog_compiler_wl_CXX='-Wl,'
11338             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11339             case "$host_cpu" in
11340             hppa*64*|ia64*)
11341               # +Z the default
11342               ;;
11343             *)
11344               lt_prog_compiler_pic_CXX='+Z'
11345               ;;
11346             esac
11347             ;;
11348           *)
11349             ;;
11350         esac
11351         ;;
11352       irix5* | irix6* | nonstopux*)
11353         case $cc_basename in
11354           CC*)
11355             lt_prog_compiler_wl_CXX='-Wl,'
11356             lt_prog_compiler_static_CXX='-non_shared'
11357             # CC pic flag -KPIC is the default.
11358             ;;
11359           *)
11360             ;;
11361         esac
11362         ;;
11363       linux*)
11364         case $cc_basename in
11365           KCC*)
11366             # KAI C++ Compiler
11367             lt_prog_compiler_wl_CXX='--backend -Wl,'
11368             lt_prog_compiler_pic_CXX='-fPIC'
11369             ;;
11370           icpc* | ecpc*)
11371             # Intel C++
11372             lt_prog_compiler_wl_CXX='-Wl,'
11373             lt_prog_compiler_pic_CXX='-KPIC'
11374             lt_prog_compiler_static_CXX='-static'
11375             ;;
11376           pgCC*)
11377             # Portland Group C++ compiler.
11378             lt_prog_compiler_wl_CXX='-Wl,'
11379             lt_prog_compiler_pic_CXX='-fpic'
11380             lt_prog_compiler_static_CXX='-static'
11381             ;;
11382           cxx*)
11383             # Compaq C++
11384             # Make sure the PIC flag is empty.  It appears that all Alpha
11385             # Linux and Compaq Tru64 Unix objects are PIC.
11386             lt_prog_compiler_pic_CXX=
11387             lt_prog_compiler_static_CXX='-non_shared'
11388             ;;
11389           *)
11390             ;;
11391         esac
11392         ;;
11393       lynxos*)
11394         ;;
11395       m88k*)
11396         ;;
11397       mvs*)
11398         case $cc_basename in
11399           cxx*)
11400             lt_prog_compiler_pic_CXX='-W c,exportall'
11401             ;;
11402           *)
11403             ;;
11404         esac
11405         ;;
11406       netbsd*)
11407         ;;
11408       osf3* | osf4* | osf5*)
11409         case $cc_basename in
11410           KCC*)
11411             lt_prog_compiler_wl_CXX='--backend -Wl,'
11412             ;;
11413           RCC*)
11414             # Rational C++ 2.4.1
11415             lt_prog_compiler_pic_CXX='-pic'
11416             ;;
11417           cxx*)
11418             # Digital/Compaq C++
11419             lt_prog_compiler_wl_CXX='-Wl,'
11420             # Make sure the PIC flag is empty.  It appears that all Alpha
11421             # Linux and Compaq Tru64 Unix objects are PIC.
11422             lt_prog_compiler_pic_CXX=
11423             lt_prog_compiler_static_CXX='-non_shared'
11424             ;;
11425           *)
11426             ;;
11427         esac
11428         ;;
11429       psos*)
11430         ;;
11431       sco*)
11432         case $cc_basename in
11433           CC*)
11434             lt_prog_compiler_pic_CXX='-fPIC'
11435             ;;
11436           *)
11437             ;;
11438         esac
11439         ;;
11440       solaris*)
11441         case $cc_basename in
11442           CC*)
11443             # Sun C++ 4.2, 5.x and Centerline C++
11444             lt_prog_compiler_pic_CXX='-KPIC'
11445             lt_prog_compiler_static_CXX='-Bstatic'
11446             lt_prog_compiler_wl_CXX='-Qoption ld '
11447             ;;
11448           gcx*)
11449             # Green Hills C++ Compiler
11450             lt_prog_compiler_pic_CXX='-PIC'
11451             ;;
11452           *)
11453             ;;
11454         esac
11455         ;;
11456       sunos4*)
11457         case $cc_basename in
11458           CC*)
11459             # Sun C++ 4.x
11460             lt_prog_compiler_pic_CXX='-pic'
11461             lt_prog_compiler_static_CXX='-Bstatic'
11462             ;;
11463           lcc*)
11464             # Lucid
11465             lt_prog_compiler_pic_CXX='-pic'
11466             ;;
11467           *)
11468             ;;
11469         esac
11470         ;;
11471       tandem*)
11472         case $cc_basename in
11473           NCC*)
11474             # NonStop-UX NCC 3.20
11475             lt_prog_compiler_pic_CXX='-KPIC'
11476             ;;
11477           *)
11478             ;;
11479         esac
11480         ;;
11481       unixware*)
11482         ;;
11483       vxworks*)
11484         ;;
11485       *)
11486         lt_prog_compiler_can_build_shared_CXX=no
11487         ;;
11488     esac
11489   fi
11490
11491 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11492 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11493
11494 #
11495 # Check to make sure the PIC flag actually works.
11496 #
11497 if test -n "$lt_prog_compiler_pic_CXX"; then
11498
11499 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11500 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11501 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11502   echo $ECHO_N "(cached) $ECHO_C" >&6
11503 else
11504   lt_prog_compiler_pic_works_CXX=no
11505   ac_outfile=conftest.$ac_objext
11506    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11507    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11508    # Insert the option either (1) after the last *FLAGS variable, or
11509    # (2) before a word containing "conftest.", or (3) at the end.
11510    # Note that $ac_compile itself does not contain backslashes and begins
11511    # with a dollar sign (not a hyphen), so the echo should work correctly.
11512    # The option is referenced via a variable to avoid confusing sed.
11513    lt_compile=`echo "$ac_compile" | $SED \
11514    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11515    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11516    -e 's:$: $lt_compiler_flag:'`
11517    (eval echo "\"\$as_me:11517: $lt_compile\"" >&5)
11518    (eval "$lt_compile" 2>conftest.err)
11519    ac_status=$?
11520    cat conftest.err >&5
11521    echo "$as_me:11521: \$? = $ac_status" >&5
11522    if (exit $ac_status) && test -s "$ac_outfile"; then
11523      # The compiler can only warn and ignore the option if not recognized
11524      # So say no if there are warnings other than the usual output.
11525      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11526      $SED '/^$/d' conftest.err >conftest.er2
11527      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11528        lt_prog_compiler_pic_works_CXX=yes
11529      fi
11530    fi
11531    $rm conftest*
11532
11533 fi
11534 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11535 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11536
11537 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11538     case $lt_prog_compiler_pic_CXX in
11539      "" | " "*) ;;
11540      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11541      esac
11542 else
11543     lt_prog_compiler_pic_CXX=
11544      lt_prog_compiler_can_build_shared_CXX=no
11545 fi
11546
11547 fi
11548 case "$host_os" in
11549   # For platforms which do not support PIC, -DPIC is meaningless:
11550   *djgpp*)
11551     lt_prog_compiler_pic_CXX=
11552     ;;
11553   *)
11554     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11555     ;;
11556 esac
11557
11558 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11559 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11560 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11561   echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563   lt_cv_prog_compiler_c_o_CXX=no
11564    $rm -r conftest 2>/dev/null
11565    mkdir conftest
11566    cd conftest
11567    mkdir out
11568    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11569
11570    lt_compiler_flag="-o out/conftest2.$ac_objext"
11571    # Insert the option either (1) after the last *FLAGS variable, or
11572    # (2) before a word containing "conftest.", or (3) at the end.
11573    # Note that $ac_compile itself does not contain backslashes and begins
11574    # with a dollar sign (not a hyphen), so the echo should work correctly.
11575    lt_compile=`echo "$ac_compile" | $SED \
11576    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11577    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11578    -e 's:$: $lt_compiler_flag:'`
11579    (eval echo "\"\$as_me:11579: $lt_compile\"" >&5)
11580    (eval "$lt_compile" 2>out/conftest.err)
11581    ac_status=$?
11582    cat out/conftest.err >&5
11583    echo "$as_me:11583: \$? = $ac_status" >&5
11584    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11585    then
11586      # The compiler can only warn and ignore the option if not recognized
11587      # So say no if there are warnings
11588      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11589      $SED '/^$/d' out/conftest.err >out/conftest.er2
11590      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11591        lt_cv_prog_compiler_c_o_CXX=yes
11592      fi
11593    fi
11594    chmod u+w .
11595    $rm conftest*
11596    # SGI C++ compiler will create directory out/ii_files/ for
11597    # template instantiation
11598    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11599    $rm out/* && rmdir out
11600    cd ..
11601    rmdir conftest
11602    $rm conftest*
11603
11604 fi
11605 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11606 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11607
11608
11609 hard_links="nottested"
11610 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11611   # do not overwrite the value of need_locks provided by the user
11612   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11613 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11614   hard_links=yes
11615   $rm conftest*
11616   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11617   touch conftest.a
11618   ln conftest.a conftest.b 2>&5 || hard_links=no
11619   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11620   echo "$as_me:$LINENO: result: $hard_links" >&5
11621 echo "${ECHO_T}$hard_links" >&6
11622   if test "$hard_links" = no; then
11623     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11624 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11625     need_locks=warn
11626   fi
11627 else
11628   need_locks=no
11629 fi
11630
11631 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11632 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11633
11634   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11635   case $host_os in
11636   aix4* | aix5*)
11637     # If we're using GNU nm, then we don't want the "-C" option.
11638     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11639     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11640       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'
11641     else
11642       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'
11643     fi
11644     ;;
11645   pw32*)
11646     export_symbols_cmds_CXX="$ltdll_cmds"
11647   ;;
11648   cygwin* | mingw*)
11649     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'
11650   ;;
11651   *)
11652     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11653   ;;
11654   esac
11655
11656 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11657 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11658 test "$ld_shlibs_CXX" = no && can_build_shared=no
11659
11660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11661 if test "$GCC" = yes; then
11662   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11663 fi
11664
11665 #
11666 # Do we need to explicitly link libc?
11667 #
11668 case "x$archive_cmds_need_lc_CXX" in
11669 x|xyes)
11670   # Assume -lc should be added
11671   archive_cmds_need_lc_CXX=yes
11672
11673   if test "$enable_shared" = yes && test "$GCC" = yes; then
11674     case $archive_cmds_CXX in
11675     *'~'*)
11676       # FIXME: we may have to deal with multi-command sequences.
11677       ;;
11678     '$CC '*)
11679       # Test whether the compiler implicitly links with -lc since on some
11680       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11681       # to ld, don't add -lc before -lgcc.
11682       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11683 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11684       $rm conftest*
11685       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11686
11687       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688   (eval $ac_compile) 2>&5
11689   ac_status=$?
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); } 2>conftest.err; then
11692         soname=conftest
11693         lib=conftest
11694         libobjs=conftest.$ac_objext
11695         deplibs=
11696         wl=$lt_prog_compiler_wl_CXX
11697         compiler_flags=-v
11698         linker_flags=-v
11699         verstring=
11700         output_objdir=.
11701         libname=conftest
11702         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11703         allow_undefined_flag_CXX=
11704         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11705   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }
11709         then
11710           archive_cmds_need_lc_CXX=no
11711         else
11712           archive_cmds_need_lc_CXX=yes
11713         fi
11714         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11715       else
11716         cat conftest.err 1>&5
11717       fi
11718       $rm conftest*
11719       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11720 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11721       ;;
11722     esac
11723   fi
11724   ;;
11725 esac
11726
11727 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11728 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11729 library_names_spec=
11730 libname_spec='lib$name'
11731 soname_spec=
11732 shrext_cmds=".so"
11733 postinstall_cmds=
11734 postuninstall_cmds=
11735 finish_cmds=
11736 finish_eval=
11737 shlibpath_var=
11738 shlibpath_overrides_runpath=unknown
11739 version_type=none
11740 dynamic_linker="$host_os ld.so"
11741 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11742 if test "$GCC" = yes; then
11743   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11744   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11745     # if the path contains ";" then we assume it to be the separator
11746     # otherwise default to the standard path separator (i.e. ":") - it is
11747     # assumed that no part of a normal pathname contains ";" but that should
11748     # okay in the real world where ";" in dirpaths is itself problematic.
11749     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11750   else
11751     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11752   fi
11753 else
11754   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11755 fi
11756 need_lib_prefix=unknown
11757 hardcode_into_libs=no
11758
11759 # when you set need_version to no, make sure it does not cause -set_version
11760 # flags to be left without arguments
11761 need_version=unknown
11762
11763 case $host_os in
11764 aix3*)
11765   version_type=linux
11766   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11767   shlibpath_var=LIBPATH
11768
11769   # AIX 3 has no versioning support, so we append a major version to the name.
11770   soname_spec='${libname}${release}${shared_ext}$major'
11771   ;;
11772
11773 aix4* | aix5*)
11774   version_type=linux
11775   need_lib_prefix=no
11776   need_version=no
11777   hardcode_into_libs=yes
11778   if test "$host_cpu" = ia64; then
11779     # AIX 5 supports IA64
11780     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11781     shlibpath_var=LD_LIBRARY_PATH
11782   else
11783     # With GCC up to 2.95.x, collect2 would create an import file
11784     # for dependence libraries.  The import file would start with
11785     # the line `#! .'.  This would cause the generated library to
11786     # depend on `.', always an invalid library.  This was fixed in
11787     # development snapshots of GCC prior to 3.0.
11788     case $host_os in
11789       aix4 | aix4.[01] | aix4.[01].*)
11790       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11791            echo ' yes '
11792            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11793         :
11794       else
11795         can_build_shared=no
11796       fi
11797       ;;
11798     esac
11799     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11800     # soname into executable. Probably we can add versioning support to
11801     # collect2, so additional links can be useful in future.
11802     if test "$aix_use_runtimelinking" = yes; then
11803       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11804       # instead of lib<name>.a to let people know that these are not
11805       # typical AIX shared libraries.
11806       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807     else
11808       # We preserve .a as extension for shared libraries through AIX4.2
11809       # and later when we are not doing run time linking.
11810       library_names_spec='${libname}${release}.a $libname.a'
11811       soname_spec='${libname}${release}${shared_ext}$major'
11812     fi
11813     shlibpath_var=LIBPATH
11814   fi
11815   ;;
11816
11817 amigaos*)
11818   library_names_spec='$libname.ixlibrary $libname.a'
11819   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11820   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'
11821   ;;
11822
11823 beos*)
11824   library_names_spec='${libname}${shared_ext}'
11825   dynamic_linker="$host_os ld.so"
11826   shlibpath_var=LIBRARY_PATH
11827   ;;
11828
11829 bsdi[45]*)
11830   version_type=linux
11831   need_version=no
11832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833   soname_spec='${libname}${release}${shared_ext}$major'
11834   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11835   shlibpath_var=LD_LIBRARY_PATH
11836   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11837   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11838   # the default ld.so.conf also contains /usr/contrib/lib and
11839   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11840   # libtool to hard-code these into programs
11841   ;;
11842
11843 cygwin* | mingw* | pw32*)
11844   version_type=windows
11845   shrext_cmds=".dll"
11846   need_version=no
11847   need_lib_prefix=no
11848
11849   case $GCC,$host_os in
11850   yes,cygwin* | yes,mingw* | yes,pw32*)
11851     library_names_spec='$libname.dll.a'
11852     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11853     postinstall_cmds='base_file=`basename \${file}`~
11854       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11855       dldir=$destdir/`dirname \$dlpath`~
11856       test -d \$dldir || mkdir -p \$dldir~
11857       $install_prog $dir/$dlname \$dldir/$dlname'
11858     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11859       dlpath=$dir/\$dldll~
11860        $rm \$dlpath'
11861     shlibpath_overrides_runpath=yes
11862
11863     case $host_os in
11864     cygwin*)
11865       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11866       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11867       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11868       ;;
11869     mingw*)
11870       # MinGW DLLs use traditional 'lib' prefix
11871       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11872       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11873       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11874         # It is most probably a Windows format PATH printed by
11875         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11876         # path with ; separators, and with drive letters. We can handle the
11877         # drive letters (cygwin fileutils understands them), so leave them,
11878         # especially as we might pass files found there to a mingw objdump,
11879         # which wouldn't understand a cygwinified path. Ahh.
11880         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11881       else
11882         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11883       fi
11884       ;;
11885     pw32*)
11886       # pw32 DLLs use 'pw' prefix rather than 'lib'
11887       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11888       ;;
11889     esac
11890     ;;
11891
11892   linux*)
11893     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11894       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11895       supports_anon_versioning=no
11896       case `$LD -v 2>/dev/null` in
11897         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11898         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11899         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11900         *\ 2.11.*) ;; # other 2.11 versions
11901         *) supports_anon_versioning=yes ;;
11902       esac
11903       if test $supports_anon_versioning = yes; then
11904         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11906 $echo "local: *; };" >> $output_objdir/$libname.ver~
11907         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11908       else
11909         $archive_expsym_cmds="$archive_cmds"
11910       fi
11911     else
11912       ld_shlibs=no
11913     fi
11914     ;;
11915
11916   *)
11917     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11918     ;;
11919   esac
11920   dynamic_linker='Win32 ld.exe'
11921   # FIXME: first we should search . and the directory the executable is in
11922   shlibpath_var=PATH
11923   ;;
11924
11925 darwin* | rhapsody*)
11926   dynamic_linker="$host_os dyld"
11927   version_type=darwin
11928   need_lib_prefix=no
11929   need_version=no
11930   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11931   soname_spec='${libname}${release}${major}$shared_ext'
11932   shlibpath_overrides_runpath=yes
11933   shlibpath_var=DYLD_LIBRARY_PATH
11934   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11935   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11936   if test "$GCC" = yes; then
11937     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"`
11938   else
11939     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11940   fi
11941   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11942   ;;
11943
11944 dgux*)
11945   version_type=linux
11946   need_lib_prefix=no
11947   need_version=no
11948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11949   soname_spec='${libname}${release}${shared_ext}$major'
11950   shlibpath_var=LD_LIBRARY_PATH
11951   ;;
11952
11953 freebsd1*)
11954   dynamic_linker=no
11955   ;;
11956
11957 kfreebsd*-gnu)
11958   version_type=linux
11959   need_lib_prefix=no
11960   need_version=no
11961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11962   soname_spec='${libname}${release}${shared_ext}$major'
11963   shlibpath_var=LD_LIBRARY_PATH
11964   shlibpath_overrides_runpath=no
11965   hardcode_into_libs=yes
11966   dynamic_linker='GNU ld.so'
11967   ;;
11968
11969 freebsd* | dragonfly*)
11970   # DragonFly does not have aout.  When/if they implement a new
11971   # versioning mechanism, adjust this.
11972   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11973   version_type=freebsd-$objformat
11974   case $version_type in
11975     freebsd-elf*)
11976       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11977       need_version=no
11978       need_lib_prefix=no
11979       ;;
11980     freebsd-*)
11981       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11982       need_version=yes
11983       ;;
11984   esac
11985   shlibpath_var=LD_LIBRARY_PATH
11986   case $host_os in
11987   freebsd2*)
11988     shlibpath_overrides_runpath=yes
11989     ;;
11990   freebsd3.[01]* | freebsdelf3.[01]*)
11991     shlibpath_overrides_runpath=yes
11992     hardcode_into_libs=yes
11993     ;;
11994   *) # from 3.2 on
11995     shlibpath_overrides_runpath=no
11996     hardcode_into_libs=yes
11997     ;;
11998   esac
11999   ;;
12000
12001 gnu*)
12002   version_type=linux
12003   need_lib_prefix=no
12004   need_version=no
12005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12006   soname_spec='${libname}${release}${shared_ext}$major'
12007   shlibpath_var=LD_LIBRARY_PATH
12008   hardcode_into_libs=yes
12009   ;;
12010
12011 hpux9* | hpux10* | hpux11*)
12012   # Give a soname corresponding to the major version so that dld.sl refuses to
12013   # link against other versions.
12014   version_type=sunos
12015   need_lib_prefix=no
12016   need_version=no
12017   case "$host_cpu" in
12018   ia64*)
12019     shrext_cmds='.so'
12020     hardcode_into_libs=yes
12021     dynamic_linker="$host_os dld.so"
12022     shlibpath_var=LD_LIBRARY_PATH
12023     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025     soname_spec='${libname}${release}${shared_ext}$major'
12026     if test "X$HPUX_IA64_MODE" = X32; then
12027       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12028     else
12029       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12030     fi
12031     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12032     ;;
12033    hppa*64*)
12034      shrext_cmds='.sl'
12035      hardcode_into_libs=yes
12036      dynamic_linker="$host_os dld.sl"
12037      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12038      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12039      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12040      soname_spec='${libname}${release}${shared_ext}$major'
12041      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12042      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12043      ;;
12044    *)
12045     shrext_cmds='.sl'
12046     dynamic_linker="$host_os dld.sl"
12047     shlibpath_var=SHLIB_PATH
12048     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12050     soname_spec='${libname}${release}${shared_ext}$major'
12051     ;;
12052   esac
12053   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12054   postinstall_cmds='chmod 555 $lib'
12055   ;;
12056
12057 irix5* | irix6* | nonstopux*)
12058   case $host_os in
12059     nonstopux*) version_type=nonstopux ;;
12060     *)
12061         if test "$lt_cv_prog_gnu_ld" = yes; then
12062                 version_type=linux
12063         else
12064                 version_type=irix
12065         fi ;;
12066   esac
12067   need_lib_prefix=no
12068   need_version=no
12069   soname_spec='${libname}${release}${shared_ext}$major'
12070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12071   case $host_os in
12072   irix5* | nonstopux*)
12073     libsuff= shlibsuff=
12074     ;;
12075   *)
12076     case $LD in # libtool.m4 will add one of these switches to LD
12077     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12078       libsuff= shlibsuff= libmagic=32-bit;;
12079     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12080       libsuff=32 shlibsuff=N32 libmagic=N32;;
12081     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12082       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12083     *) libsuff= shlibsuff= libmagic=never-match;;
12084     esac
12085     ;;
12086   esac
12087   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12088   shlibpath_overrides_runpath=no
12089   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12090   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12091   hardcode_into_libs=yes
12092   ;;
12093
12094 # No shared lib support for Linux oldld, aout, or coff.
12095 linux*oldld* | linux*aout* | linux*coff*)
12096   dynamic_linker=no
12097   ;;
12098
12099 # This must be Linux ELF.
12100 linux*)
12101   version_type=linux
12102   need_lib_prefix=no
12103   need_version=no
12104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105   soname_spec='${libname}${release}${shared_ext}$major'
12106   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12107   shlibpath_var=LD_LIBRARY_PATH
12108   shlibpath_overrides_runpath=no
12109   # This implies no fast_install, which is unacceptable.
12110   # Some rework will be needed to allow for fast_install
12111   # before this can be enabled.
12112   hardcode_into_libs=yes
12113
12114   # Append ld.so.conf contents to the search path
12115   if test -f /etc/ld.so.conf; then
12116     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12117     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12118   fi
12119
12120   case $host_cpu:$lt_cv_cc_64bit_output in
12121   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
12122     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
12123     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
12124     ;;
12125   esac
12126
12127   # We used to test for /lib/ld.so.1 and disable shared libraries on
12128   # powerpc, because MkLinux only supported shared libraries with the
12129   # GNU dynamic linker.  Since this was broken with cross compilers,
12130   # most powerpc-linux boxes support dynamic linking these days and
12131   # people can always --disable-shared, the test was removed, and we
12132   # assume the GNU/Linux dynamic linker is in use.
12133   dynamic_linker='GNU/Linux ld.so'
12134
12135   # Find out which ABI we are using (multilib Linux x86_64 hack).
12136   libsuff=
12137   case "$host_cpu" in
12138   x86_64*)
12139     echo '#line 12139 "configure"' > conftest.$ac_ext
12140     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141   (eval $ac_compile) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; then
12145       case `/usr/bin/file conftest.$ac_objext` in
12146       *64-bit*)
12147         libsuff=64
12148         ;;
12149       esac
12150     fi
12151     rm -rf conftest*
12152     ;;
12153   *)
12154     ;;
12155   esac
12156   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
12157   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12158   ;;
12159
12160 knetbsd*-gnu)
12161   version_type=linux
12162   need_lib_prefix=no
12163   need_version=no
12164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12165   soname_spec='${libname}${release}${shared_ext}$major'
12166   shlibpath_var=LD_LIBRARY_PATH
12167   shlibpath_overrides_runpath=no
12168   hardcode_into_libs=yes
12169   dynamic_linker='GNU ld.so'
12170   ;;
12171
12172 netbsd*)
12173   version_type=sunos
12174   need_lib_prefix=no
12175   need_version=no
12176   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12178     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12179     dynamic_linker='NetBSD (a.out) ld.so'
12180   else
12181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12182     soname_spec='${libname}${release}${shared_ext}$major'
12183     dynamic_linker='NetBSD ld.elf_so'
12184   fi
12185   shlibpath_var=LD_LIBRARY_PATH
12186   shlibpath_overrides_runpath=yes
12187   hardcode_into_libs=yes
12188   ;;
12189
12190 newsos6)
12191   version_type=linux
12192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12193   shlibpath_var=LD_LIBRARY_PATH
12194   shlibpath_overrides_runpath=yes
12195   ;;
12196
12197 nto-qnx*)
12198   version_type=linux
12199   need_lib_prefix=no
12200   need_version=no
12201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12202   soname_spec='${libname}${release}${shared_ext}$major'
12203   shlibpath_var=LD_LIBRARY_PATH
12204   shlibpath_overrides_runpath=yes
12205   ;;
12206
12207 openbsd*)
12208   version_type=sunos
12209   need_lib_prefix=no
12210   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12211   case $host_os in
12212     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12213     *)                         need_version=no  ;;
12214   esac
12215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12216   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12217   shlibpath_var=LD_LIBRARY_PATH
12218   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12219     case $host_os in
12220       openbsd2.[89] | openbsd2.[89].*)
12221         shlibpath_overrides_runpath=no
12222         ;;
12223       *)
12224         shlibpath_overrides_runpath=yes
12225         ;;
12226       esac
12227   else
12228     shlibpath_overrides_runpath=yes
12229   fi
12230   ;;
12231
12232 os2*)
12233   libname_spec='$name'
12234   shrext_cmds=".dll"
12235   need_lib_prefix=no
12236   library_names_spec='$libname${shared_ext} $libname.a'
12237   dynamic_linker='OS/2 ld.exe'
12238   shlibpath_var=LIBPATH
12239   ;;
12240
12241 osf3* | osf4* | osf5*)
12242   version_type=osf
12243   need_lib_prefix=no
12244   need_version=no
12245   soname_spec='${libname}${release}${shared_ext}$major'
12246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12247   shlibpath_var=LD_LIBRARY_PATH
12248   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12249   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12250   ;;
12251
12252 sco3.2v5*)
12253   version_type=osf
12254   soname_spec='${libname}${release}${shared_ext}$major'
12255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12256   shlibpath_var=LD_LIBRARY_PATH
12257   ;;
12258
12259 solaris*)
12260   version_type=linux
12261   need_lib_prefix=no
12262   need_version=no
12263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264   soname_spec='${libname}${release}${shared_ext}$major'
12265   shlibpath_var=LD_LIBRARY_PATH
12266   shlibpath_overrides_runpath=yes
12267   hardcode_into_libs=yes
12268   # ldd complains unless libraries are executable
12269   postinstall_cmds='chmod +x $lib'
12270   ;;
12271
12272 sunos4*)
12273   version_type=sunos
12274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12275   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12276   shlibpath_var=LD_LIBRARY_PATH
12277   shlibpath_overrides_runpath=yes
12278   if test "$with_gnu_ld" = yes; then
12279     need_lib_prefix=no
12280   fi
12281   need_version=yes
12282   ;;
12283
12284 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12285   version_type=linux
12286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12287   soname_spec='${libname}${release}${shared_ext}$major'
12288   shlibpath_var=LD_LIBRARY_PATH
12289   case $host_vendor in
12290     sni)
12291       shlibpath_overrides_runpath=no
12292       need_lib_prefix=no
12293       export_dynamic_flag_spec='${wl}-Blargedynsym'
12294       runpath_var=LD_RUN_PATH
12295       ;;
12296     siemens)
12297       need_lib_prefix=no
12298       ;;
12299     motorola)
12300       need_lib_prefix=no
12301       need_version=no
12302       shlibpath_overrides_runpath=no
12303       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12304       ;;
12305   esac
12306   ;;
12307
12308 sysv4*MP*)
12309   if test -d /usr/nec ;then
12310     version_type=linux
12311     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12312     soname_spec='$libname${shared_ext}.$major'
12313     shlibpath_var=LD_LIBRARY_PATH
12314   fi
12315   ;;
12316
12317 uts4*)
12318   version_type=linux
12319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12320   soname_spec='${libname}${release}${shared_ext}$major'
12321   shlibpath_var=LD_LIBRARY_PATH
12322   ;;
12323
12324 *)
12325   dynamic_linker=no
12326   ;;
12327 esac
12328 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12329 echo "${ECHO_T}$dynamic_linker" >&6
12330 test "$dynamic_linker" = no && can_build_shared=no
12331
12332 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12333 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12334 hardcode_action_CXX=
12335 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12336    test -n "$runpath_var_CXX" || \
12337    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12338
12339   # We can hardcode non-existant directories.
12340   if test "$hardcode_direct_CXX" != no &&
12341      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12342      # have to relink, otherwise we might link with an installed library
12343      # when we should be linking with a yet-to-be-installed one
12344      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12345      test "$hardcode_minus_L_CXX" != no; then
12346     # Linking always hardcodes the temporary library directory.
12347     hardcode_action_CXX=relink
12348   else
12349     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12350     hardcode_action_CXX=immediate
12351   fi
12352 else
12353   # We cannot hardcode anything, or else we can only hardcode existing
12354   # directories.
12355   hardcode_action_CXX=unsupported
12356 fi
12357 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12358 echo "${ECHO_T}$hardcode_action_CXX" >&6
12359
12360 if test "$hardcode_action_CXX" = relink; then
12361   # Fast installation is not supported
12362   enable_fast_install=no
12363 elif test "$shlibpath_overrides_runpath" = yes ||
12364      test "$enable_shared" = no; then
12365   # Fast installation is not necessary
12366   enable_fast_install=needless
12367 fi
12368
12369 striplib=
12370 old_striplib=
12371 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12372 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12373 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12374   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12375   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12376   echo "$as_me:$LINENO: result: yes" >&5
12377 echo "${ECHO_T}yes" >&6
12378 else
12379 # FIXME - insert some real tests, host_os isn't really good enough
12380   case $host_os in
12381    darwin*)
12382        if test -n "$STRIP" ; then
12383          striplib="$STRIP -x"
12384          echo "$as_me:$LINENO: result: yes" >&5
12385 echo "${ECHO_T}yes" >&6
12386        else
12387   echo "$as_me:$LINENO: result: no" >&5
12388 echo "${ECHO_T}no" >&6
12389 fi
12390        ;;
12391    *)
12392   echo "$as_me:$LINENO: result: no" >&5
12393 echo "${ECHO_T}no" >&6
12394     ;;
12395   esac
12396 fi
12397
12398 if test "x$enable_dlopen" != xyes; then
12399   enable_dlopen=unknown
12400   enable_dlopen_self=unknown
12401   enable_dlopen_self_static=unknown
12402 else
12403   lt_cv_dlopen=no
12404   lt_cv_dlopen_libs=
12405
12406   case $host_os in
12407   beos*)
12408     lt_cv_dlopen="load_add_on"
12409     lt_cv_dlopen_libs=
12410     lt_cv_dlopen_self=yes
12411     ;;
12412
12413   mingw* | pw32*)
12414     lt_cv_dlopen="LoadLibrary"
12415     lt_cv_dlopen_libs=
12416    ;;
12417
12418   cygwin*)
12419     lt_cv_dlopen="dlopen"
12420     lt_cv_dlopen_libs=
12421    ;;
12422
12423   darwin*)
12424   # if libdl is installed we need to link against it
12425     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12426 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12427 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12428   echo $ECHO_N "(cached) $ECHO_C" >&6
12429 else
12430   ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-ldl  $LIBS"
12432 cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h.  */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h.  */
12438
12439 /* Override any gcc2 internal prototype to avoid an error.  */
12440 #ifdef __cplusplus
12441 extern "C"
12442 #endif
12443 /* We use char because int might match the return type of a gcc2
12444    builtin and then its argument prototype would still apply.  */
12445 char dlopen ();
12446 int
12447 main ()
12448 {
12449 dlopen ();
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456   (eval $ac_link) 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } &&
12463          { ac_try='test -z "$ac_cxx_werror_flag"
12464                          || test ! -s conftest.err'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; } &&
12470          { ac_try='test -s conftest$ac_exeext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   ac_cv_lib_dl_dlopen=yes
12477 else
12478   echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 ac_cv_lib_dl_dlopen=no
12482 fi
12483 rm -f conftest.err conftest.$ac_objext \
12484       conftest$ac_exeext conftest.$ac_ext
12485 LIBS=$ac_check_lib_save_LIBS
12486 fi
12487 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12488 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12489 if test $ac_cv_lib_dl_dlopen = yes; then
12490   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12491 else
12492
12493     lt_cv_dlopen="dyld"
12494     lt_cv_dlopen_libs=
12495     lt_cv_dlopen_self=yes
12496
12497 fi
12498
12499    ;;
12500
12501   *)
12502     echo "$as_me:$LINENO: checking for shl_load" >&5
12503 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12504 if test "${ac_cv_func_shl_load+set}" = set; then
12505   echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12507   cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h.  */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h.  */
12513 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12515 #define shl_load innocuous_shl_load
12516
12517 /* System header to define __stub macros and hopefully few prototypes,
12518     which can conflict with char shl_load (); below.
12519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12520     <limits.h> exists even on freestanding compilers.  */
12521
12522 #ifdef __STDC__
12523 # include <limits.h>
12524 #else
12525 # include <assert.h>
12526 #endif
12527
12528 #undef shl_load
12529
12530 /* Override any gcc2 internal prototype to avoid an error.  */
12531 #ifdef __cplusplus
12532 extern "C"
12533 {
12534 #endif
12535 /* We use char because int might match the return type of a gcc2
12536    builtin and then its argument prototype would still apply.  */
12537 char shl_load ();
12538 /* The GNU C library defines this for functions which it implements
12539     to always fail with ENOSYS.  Some functions are actually named
12540     something starting with __ and the normal name is an alias.  */
12541 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12542 choke me
12543 #else
12544 char (*f) () = shl_load;
12545 #endif
12546 #ifdef __cplusplus
12547 }
12548 #endif
12549
12550 int
12551 main ()
12552 {
12553 return f != shl_load;
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12560   (eval $ac_link) 2>conftest.er1
12561   ac_status=$?
12562   grep -v '^ *+' conftest.er1 >conftest.err
12563   rm -f conftest.er1
12564   cat conftest.err >&5
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } &&
12567          { ac_try='test -z "$ac_cxx_werror_flag"
12568                          || test ! -s conftest.err'
12569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570   (eval $ac_try) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; } &&
12574          { ac_try='test -s conftest$ac_exeext'
12575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576   (eval $ac_try) 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); }; }; then
12580   ac_cv_func_shl_load=yes
12581 else
12582   echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12584
12585 ac_cv_func_shl_load=no
12586 fi
12587 rm -f conftest.err conftest.$ac_objext \
12588       conftest$ac_exeext conftest.$ac_ext
12589 fi
12590 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12591 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12592 if test $ac_cv_func_shl_load = yes; then
12593   lt_cv_dlopen="shl_load"
12594 else
12595   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12596 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12597 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12598   echo $ECHO_N "(cached) $ECHO_C" >&6
12599 else
12600   ac_check_lib_save_LIBS=$LIBS
12601 LIBS="-ldld  $LIBS"
12602 cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608
12609 /* Override any gcc2 internal prototype to avoid an error.  */
12610 #ifdef __cplusplus
12611 extern "C"
12612 #endif
12613 /* We use char because int might match the return type of a gcc2
12614    builtin and then its argument prototype would still apply.  */
12615 char shl_load ();
12616 int
12617 main ()
12618 {
12619 shl_load ();
12620   ;
12621   return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12626   (eval $ac_link) 2>conftest.er1
12627   ac_status=$?
12628   grep -v '^ *+' conftest.er1 >conftest.err
12629   rm -f conftest.er1
12630   cat conftest.err >&5
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } &&
12633          { ac_try='test -z "$ac_cxx_werror_flag"
12634                          || test ! -s conftest.err'
12635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636   (eval $ac_try) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; } &&
12640          { ac_try='test -s conftest$ac_exeext'
12641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642   (eval $ac_try) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }; }; then
12646   ac_cv_lib_dld_shl_load=yes
12647 else
12648   echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 ac_cv_lib_dld_shl_load=no
12652 fi
12653 rm -f conftest.err conftest.$ac_objext \
12654       conftest$ac_exeext conftest.$ac_ext
12655 LIBS=$ac_check_lib_save_LIBS
12656 fi
12657 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12658 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12659 if test $ac_cv_lib_dld_shl_load = yes; then
12660   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12661 else
12662   echo "$as_me:$LINENO: checking for dlopen" >&5
12663 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12664 if test "${ac_cv_func_dlopen+set}" = set; then
12665   echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667   cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h.  */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h.  */
12673 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12675 #define dlopen innocuous_dlopen
12676
12677 /* System header to define __stub macros and hopefully few prototypes,
12678     which can conflict with char dlopen (); below.
12679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12680     <limits.h> exists even on freestanding compilers.  */
12681
12682 #ifdef __STDC__
12683 # include <limits.h>
12684 #else
12685 # include <assert.h>
12686 #endif
12687
12688 #undef dlopen
12689
12690 /* Override any gcc2 internal prototype to avoid an error.  */
12691 #ifdef __cplusplus
12692 extern "C"
12693 {
12694 #endif
12695 /* We use char because int might match the return type of a gcc2
12696    builtin and then its argument prototype would still apply.  */
12697 char dlopen ();
12698 /* The GNU C library defines this for functions which it implements
12699     to always fail with ENOSYS.  Some functions are actually named
12700     something starting with __ and the normal name is an alias.  */
12701 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12702 choke me
12703 #else
12704 char (*f) () = dlopen;
12705 #endif
12706 #ifdef __cplusplus
12707 }
12708 #endif
12709
12710 int
12711 main ()
12712 {
12713 return f != dlopen;
12714   ;
12715   return 0;
12716 }
12717 _ACEOF
12718 rm -f conftest.$ac_objext conftest$ac_exeext
12719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12720   (eval $ac_link) 2>conftest.er1
12721   ac_status=$?
12722   grep -v '^ *+' conftest.er1 >conftest.err
12723   rm -f conftest.er1
12724   cat conftest.err >&5
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); } &&
12727          { ac_try='test -z "$ac_cxx_werror_flag"
12728                          || test ! -s conftest.err'
12729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730   (eval $ac_try) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); }; } &&
12734          { ac_try='test -s conftest$ac_exeext'
12735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736   (eval $ac_try) 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; }; then
12740   ac_cv_func_dlopen=yes
12741 else
12742   echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12744
12745 ac_cv_func_dlopen=no
12746 fi
12747 rm -f conftest.err conftest.$ac_objext \
12748       conftest$ac_exeext conftest.$ac_ext
12749 fi
12750 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12751 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12752 if test $ac_cv_func_dlopen = yes; then
12753   lt_cv_dlopen="dlopen"
12754 else
12755   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12756 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12758   echo $ECHO_N "(cached) $ECHO_C" >&6
12759 else
12760   ac_check_lib_save_LIBS=$LIBS
12761 LIBS="-ldl  $LIBS"
12762 cat >conftest.$ac_ext <<_ACEOF
12763 /* confdefs.h.  */
12764 _ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h.  */
12768
12769 /* Override any gcc2 internal prototype to avoid an error.  */
12770 #ifdef __cplusplus
12771 extern "C"
12772 #endif
12773 /* We use char because int might match the return type of a gcc2
12774    builtin and then its argument prototype would still apply.  */
12775 char dlopen ();
12776 int
12777 main ()
12778 {
12779 dlopen ();
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12786   (eval $ac_link) 2>conftest.er1
12787   ac_status=$?
12788   grep -v '^ *+' conftest.er1 >conftest.err
12789   rm -f conftest.er1
12790   cat conftest.err >&5
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } &&
12793          { ac_try='test -z "$ac_cxx_werror_flag"
12794                          || test ! -s conftest.err'
12795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796   (eval $ac_try) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; } &&
12800          { ac_try='test -s conftest$ac_exeext'
12801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802   (eval $ac_try) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; }; then
12806   ac_cv_lib_dl_dlopen=yes
12807 else
12808   echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811 ac_cv_lib_dl_dlopen=no
12812 fi
12813 rm -f conftest.err conftest.$ac_objext \
12814       conftest$ac_exeext conftest.$ac_ext
12815 LIBS=$ac_check_lib_save_LIBS
12816 fi
12817 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12818 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12819 if test $ac_cv_lib_dl_dlopen = yes; then
12820   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12821 else
12822   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12823 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12824 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12825   echo $ECHO_N "(cached) $ECHO_C" >&6
12826 else
12827   ac_check_lib_save_LIBS=$LIBS
12828 LIBS="-lsvld  $LIBS"
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h.  */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h.  */
12835
12836 /* Override any gcc2 internal prototype to avoid an error.  */
12837 #ifdef __cplusplus
12838 extern "C"
12839 #endif
12840 /* We use char because int might match the return type of a gcc2
12841    builtin and then its argument prototype would still apply.  */
12842 char dlopen ();
12843 int
12844 main ()
12845 {
12846 dlopen ();
12847   ;
12848   return 0;
12849 }
12850 _ACEOF
12851 rm -f conftest.$ac_objext conftest$ac_exeext
12852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12853   (eval $ac_link) 2>conftest.er1
12854   ac_status=$?
12855   grep -v '^ *+' conftest.er1 >conftest.err
12856   rm -f conftest.er1
12857   cat conftest.err >&5
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); } &&
12860          { ac_try='test -z "$ac_cxx_werror_flag"
12861                          || test ! -s conftest.err'
12862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863   (eval $ac_try) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; } &&
12867          { ac_try='test -s conftest$ac_exeext'
12868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869   (eval $ac_try) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); }; }; then
12873   ac_cv_lib_svld_dlopen=yes
12874 else
12875   echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878 ac_cv_lib_svld_dlopen=no
12879 fi
12880 rm -f conftest.err conftest.$ac_objext \
12881       conftest$ac_exeext conftest.$ac_ext
12882 LIBS=$ac_check_lib_save_LIBS
12883 fi
12884 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12885 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12886 if test $ac_cv_lib_svld_dlopen = yes; then
12887   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12888 else
12889   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12890 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12891 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12892   echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894   ac_check_lib_save_LIBS=$LIBS
12895 LIBS="-ldld  $LIBS"
12896 cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902
12903 /* Override any gcc2 internal prototype to avoid an error.  */
12904 #ifdef __cplusplus
12905 extern "C"
12906 #endif
12907 /* We use char because int might match the return type of a gcc2
12908    builtin and then its argument prototype would still apply.  */
12909 char dld_link ();
12910 int
12911 main ()
12912 {
12913 dld_link ();
12914   ;
12915   return 0;
12916 }
12917 _ACEOF
12918 rm -f conftest.$ac_objext conftest$ac_exeext
12919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12920   (eval $ac_link) 2>conftest.er1
12921   ac_status=$?
12922   grep -v '^ *+' conftest.er1 >conftest.err
12923   rm -f conftest.er1
12924   cat conftest.err >&5
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); } &&
12927          { ac_try='test -z "$ac_cxx_werror_flag"
12928                          || test ! -s conftest.err'
12929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930   (eval $ac_try) 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; } &&
12934          { ac_try='test -s conftest$ac_exeext'
12935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936   (eval $ac_try) 2>&5
12937   ac_status=$?
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); }; }; then
12940   ac_cv_lib_dld_dld_link=yes
12941 else
12942   echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12944
12945 ac_cv_lib_dld_dld_link=no
12946 fi
12947 rm -f conftest.err conftest.$ac_objext \
12948       conftest$ac_exeext conftest.$ac_ext
12949 LIBS=$ac_check_lib_save_LIBS
12950 fi
12951 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12952 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12953 if test $ac_cv_lib_dld_dld_link = yes; then
12954   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12955 fi
12956
12957
12958 fi
12959
12960
12961 fi
12962
12963
12964 fi
12965
12966
12967 fi
12968
12969
12970 fi
12971
12972     ;;
12973   esac
12974
12975   if test "x$lt_cv_dlopen" != xno; then
12976     enable_dlopen=yes
12977   else
12978     enable_dlopen=no
12979   fi
12980
12981   case $lt_cv_dlopen in
12982   dlopen)
12983     save_CPPFLAGS="$CPPFLAGS"
12984     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12985
12986     save_LDFLAGS="$LDFLAGS"
12987     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12988
12989     save_LIBS="$LIBS"
12990     LIBS="$lt_cv_dlopen_libs $LIBS"
12991
12992     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12993 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12994 if test "${lt_cv_dlopen_self+set}" = set; then
12995   echo $ECHO_N "(cached) $ECHO_C" >&6
12996 else
12997           if test "$cross_compiling" = yes; then :
12998   lt_cv_dlopen_self=cross
12999 else
13000   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13001   lt_status=$lt_dlunknown
13002   cat > conftest.$ac_ext <<EOF
13003 #line 13003 "configure"
13004 #include "confdefs.h"
13005
13006 #if HAVE_DLFCN_H
13007 #include <dlfcn.h>
13008 #endif
13009
13010 #include <stdio.h>
13011
13012 #ifdef RTLD_GLOBAL
13013 #  define LT_DLGLOBAL           RTLD_GLOBAL
13014 #else
13015 #  ifdef DL_GLOBAL
13016 #    define LT_DLGLOBAL         DL_GLOBAL
13017 #  else
13018 #    define LT_DLGLOBAL         0
13019 #  endif
13020 #endif
13021
13022 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13023    find out it does not work in some platform. */
13024 #ifndef LT_DLLAZY_OR_NOW
13025 #  ifdef RTLD_LAZY
13026 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13027 #  else
13028 #    ifdef DL_LAZY
13029 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13030 #    else
13031 #      ifdef RTLD_NOW
13032 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13033 #      else
13034 #        ifdef DL_NOW
13035 #          define LT_DLLAZY_OR_NOW      DL_NOW
13036 #        else
13037 #          define LT_DLLAZY_OR_NOW      0
13038 #        endif
13039 #      endif
13040 #    endif
13041 #  endif
13042 #endif
13043
13044 #ifdef __cplusplus
13045 extern "C" void exit (int);
13046 #endif
13047
13048 void fnord() { int i=42;}
13049 int main ()
13050 {
13051   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13052   int status = $lt_dlunknown;
13053
13054   if (self)
13055     {
13056       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13057       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13058       /* dlclose (self); */
13059     }
13060
13061     exit (status);
13062 }
13063 EOF
13064   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13065   (eval $ac_link) 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13069     (./conftest; exit; ) 2>/dev/null
13070     lt_status=$?
13071     case x$lt_status in
13072       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13073       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13074       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13075     esac
13076   else :
13077     # compilation failed
13078     lt_cv_dlopen_self=no
13079   fi
13080 fi
13081 rm -fr conftest*
13082
13083
13084 fi
13085 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13086 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13087
13088     if test "x$lt_cv_dlopen_self" = xyes; then
13089       LDFLAGS="$LDFLAGS $link_static_flag"
13090       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13091 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13092 if test "${lt_cv_dlopen_self_static+set}" = set; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095           if test "$cross_compiling" = yes; then :
13096   lt_cv_dlopen_self_static=cross
13097 else
13098   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13099   lt_status=$lt_dlunknown
13100   cat > conftest.$ac_ext <<EOF
13101 #line 13101 "configure"
13102 #include "confdefs.h"
13103
13104 #if HAVE_DLFCN_H
13105 #include <dlfcn.h>
13106 #endif
13107
13108 #include <stdio.h>
13109
13110 #ifdef RTLD_GLOBAL
13111 #  define LT_DLGLOBAL           RTLD_GLOBAL
13112 #else
13113 #  ifdef DL_GLOBAL
13114 #    define LT_DLGLOBAL         DL_GLOBAL
13115 #  else
13116 #    define LT_DLGLOBAL         0
13117 #  endif
13118 #endif
13119
13120 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13121    find out it does not work in some platform. */
13122 #ifndef LT_DLLAZY_OR_NOW
13123 #  ifdef RTLD_LAZY
13124 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13125 #  else
13126 #    ifdef DL_LAZY
13127 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13128 #    else
13129 #      ifdef RTLD_NOW
13130 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13131 #      else
13132 #        ifdef DL_NOW
13133 #          define LT_DLLAZY_OR_NOW      DL_NOW
13134 #        else
13135 #          define LT_DLLAZY_OR_NOW      0
13136 #        endif
13137 #      endif
13138 #    endif
13139 #  endif
13140 #endif
13141
13142 #ifdef __cplusplus
13143 extern "C" void exit (int);
13144 #endif
13145
13146 void fnord() { int i=42;}
13147 int main ()
13148 {
13149   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13150   int status = $lt_dlunknown;
13151
13152   if (self)
13153     {
13154       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13155       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13156       /* dlclose (self); */
13157     }
13158
13159     exit (status);
13160 }
13161 EOF
13162   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163   (eval $ac_link) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13167     (./conftest; exit; ) 2>/dev/null
13168     lt_status=$?
13169     case x$lt_status in
13170       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13171       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13172       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13173     esac
13174   else :
13175     # compilation failed
13176     lt_cv_dlopen_self_static=no
13177   fi
13178 fi
13179 rm -fr conftest*
13180
13181
13182 fi
13183 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13184 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13185     fi
13186
13187     CPPFLAGS="$save_CPPFLAGS"
13188     LDFLAGS="$save_LDFLAGS"
13189     LIBS="$save_LIBS"
13190     ;;
13191   esac
13192
13193   case $lt_cv_dlopen_self in
13194   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13195   *) enable_dlopen_self=unknown ;;
13196   esac
13197
13198   case $lt_cv_dlopen_self_static in
13199   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13200   *) enable_dlopen_self_static=unknown ;;
13201   esac
13202 fi
13203
13204
13205 # The else clause should only fire when bootstrapping the
13206 # libtool distribution, otherwise you forgot to ship ltmain.sh
13207 # with your package, and you will get complaints that there are
13208 # no rules to generate ltmain.sh.
13209 if test -f "$ltmain"; then
13210   # See if we are running on zsh, and set the options which allow our commands through
13211   # without removal of \ escapes.
13212   if test -n "${ZSH_VERSION+set}" ; then
13213     setopt NO_GLOB_SUBST
13214   fi
13215   # Now quote all the things that may contain metacharacters while being
13216   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13217   # variables and quote the copies for generation of the libtool script.
13218   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13219     SED SHELL STRIP \
13220     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13221     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13222     deplibs_check_method reload_flag reload_cmds need_locks \
13223     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13224     lt_cv_sys_global_symbol_to_c_name_address \
13225     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13226     old_postinstall_cmds old_postuninstall_cmds \
13227     compiler_CXX \
13228     CC_CXX \
13229     LD_CXX \
13230     lt_prog_compiler_wl_CXX \
13231     lt_prog_compiler_pic_CXX \
13232     lt_prog_compiler_static_CXX \
13233     lt_prog_compiler_no_builtin_flag_CXX \
13234     export_dynamic_flag_spec_CXX \
13235     thread_safe_flag_spec_CXX \
13236     whole_archive_flag_spec_CXX \
13237     enable_shared_with_static_runtimes_CXX \
13238     old_archive_cmds_CXX \
13239     old_archive_from_new_cmds_CXX \
13240     predep_objects_CXX \
13241     postdep_objects_CXX \
13242     predeps_CXX \
13243     postdeps_CXX \
13244     compiler_lib_search_path_CXX \
13245     archive_cmds_CXX \
13246     archive_expsym_cmds_CXX \
13247     postinstall_cmds_CXX \
13248     postuninstall_cmds_CXX \
13249     old_archive_from_expsyms_cmds_CXX \
13250     allow_undefined_flag_CXX \
13251     no_undefined_flag_CXX \
13252     export_symbols_cmds_CXX \
13253     hardcode_libdir_flag_spec_CXX \
13254     hardcode_libdir_flag_spec_ld_CXX \
13255     hardcode_libdir_separator_CXX \
13256     hardcode_automatic_CXX \
13257     module_cmds_CXX \
13258     module_expsym_cmds_CXX \
13259     lt_cv_prog_compiler_c_o_CXX \
13260     exclude_expsyms_CXX \
13261     include_expsyms_CXX; do
13262
13263     case $var in
13264     old_archive_cmds_CXX | \
13265     old_archive_from_new_cmds_CXX | \
13266     archive_cmds_CXX | \
13267     archive_expsym_cmds_CXX | \
13268     module_cmds_CXX | \
13269     module_expsym_cmds_CXX | \
13270     old_archive_from_expsyms_cmds_CXX | \
13271     export_symbols_cmds_CXX | \
13272     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13273     postinstall_cmds | postuninstall_cmds | \
13274     old_postinstall_cmds | old_postuninstall_cmds | \
13275     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13276       # Double-quote double-evaled strings.
13277       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13278       ;;
13279     *)
13280       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13281       ;;
13282     esac
13283   done
13284
13285   case $lt_echo in
13286   *'\$0 --fallback-echo"')
13287     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13288     ;;
13289   esac
13290
13291 cfgfile="$ofile"
13292
13293   cat <<__EOF__ >> "$cfgfile"
13294 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13295
13296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13297
13298 # Shell to use when invoking shell scripts.
13299 SHELL=$lt_SHELL
13300
13301 # Whether or not to build shared libraries.
13302 build_libtool_libs=$enable_shared
13303
13304 # Whether or not to build static libraries.
13305 build_old_libs=$enable_static
13306
13307 # Whether or not to add -lc for building shared libraries.
13308 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13309
13310 # Whether or not to disallow shared libs when runtime libs are static
13311 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13312
13313 # Whether or not to optimize for fast installation.
13314 fast_install=$enable_fast_install
13315
13316 # The host system.
13317 host_alias=$host_alias
13318 host=$host
13319 host_os=$host_os
13320
13321 # The build system.
13322 build_alias=$build_alias
13323 build=$build
13324 build_os=$build_os
13325
13326 # An echo program that does not interpret backslashes.
13327 echo=$lt_echo
13328
13329 # The archiver.
13330 AR=$lt_AR
13331 AR_FLAGS=$lt_AR_FLAGS
13332
13333 # A C compiler.
13334 LTCC=$lt_LTCC
13335
13336 # A language-specific compiler.
13337 CC=$lt_compiler_CXX
13338
13339 # Is the compiler the GNU C compiler?
13340 with_gcc=$GCC_CXX
13341
13342 # An ERE matcher.
13343 EGREP=$lt_EGREP
13344
13345 # The linker used to build libraries.
13346 LD=$lt_LD_CXX
13347
13348 # Whether we need hard or soft links.
13349 LN_S=$lt_LN_S
13350
13351 # A BSD-compatible nm program.
13352 NM=$lt_NM
13353
13354 # A symbol stripping program
13355 STRIP=$lt_STRIP
13356
13357 # Used to examine libraries when file_magic_cmd begins "file"
13358 MAGIC_CMD=$MAGIC_CMD
13359
13360 # Used on cygwin: DLL creation program.
13361 DLLTOOL="$DLLTOOL"
13362
13363 # Used on cygwin: object dumper.
13364 OBJDUMP="$OBJDUMP"
13365
13366 # Used on cygwin: assembler.
13367 AS="$AS"
13368
13369 # The name of the directory that contains temporary libtool files.
13370 objdir=$objdir
13371
13372 # How to create reloadable object files.
13373 reload_flag=$lt_reload_flag
13374 reload_cmds=$lt_reload_cmds
13375
13376 # How to pass a linker flag through the compiler.
13377 wl=$lt_lt_prog_compiler_wl_CXX
13378
13379 # Object file suffix (normally "o").
13380 objext="$ac_objext"
13381
13382 # Old archive suffix (normally "a").
13383 libext="$libext"
13384
13385 # Shared library suffix (normally ".so").
13386 shrext_cmds='$shrext_cmds'
13387
13388 # Executable file suffix (normally "").
13389 exeext="$exeext"
13390
13391 # Additional compiler flags for building library objects.
13392 pic_flag=$lt_lt_prog_compiler_pic_CXX
13393 pic_mode=$pic_mode
13394
13395 # What is the maximum length of a command?
13396 max_cmd_len=$lt_cv_sys_max_cmd_len
13397
13398 # Does compiler simultaneously support -c and -o options?
13399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13400
13401 # Must we lock files when doing compilation?
13402 need_locks=$lt_need_locks
13403
13404 # Do we need the lib prefix for modules?
13405 need_lib_prefix=$need_lib_prefix
13406
13407 # Do we need a version for libraries?
13408 need_version=$need_version
13409
13410 # Whether dlopen is supported.
13411 dlopen_support=$enable_dlopen
13412
13413 # Whether dlopen of programs is supported.
13414 dlopen_self=$enable_dlopen_self
13415
13416 # Whether dlopen of statically linked programs is supported.
13417 dlopen_self_static=$enable_dlopen_self_static
13418
13419 # Compiler flag to prevent dynamic linking.
13420 link_static_flag=$lt_lt_prog_compiler_static_CXX
13421
13422 # Compiler flag to turn off builtin functions.
13423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13424
13425 # Compiler flag to allow reflexive dlopens.
13426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13427
13428 # Compiler flag to generate shared objects directly from archives.
13429 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13430
13431 # Compiler flag to generate thread-safe objects.
13432 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13433
13434 # Library versioning type.
13435 version_type=$version_type
13436
13437 # Format of library name prefix.
13438 libname_spec=$lt_libname_spec
13439
13440 # List of archive names.  First name is the real one, the rest are links.
13441 # The last name is the one that the linker finds with -lNAME.
13442 library_names_spec=$lt_library_names_spec
13443
13444 # The coded name of the library, if different from the real name.
13445 soname_spec=$lt_soname_spec
13446
13447 # Commands used to build and install an old-style archive.
13448 RANLIB=$lt_RANLIB
13449 old_archive_cmds=$lt_old_archive_cmds_CXX
13450 old_postinstall_cmds=$lt_old_postinstall_cmds
13451 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13452
13453 # Create an old-style archive from a shared archive.
13454 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13455
13456 # Create a temporary old-style archive to link instead of a shared archive.
13457 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13458
13459 # Commands used to build and install a shared archive.
13460 archive_cmds=$lt_archive_cmds_CXX
13461 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13462 postinstall_cmds=$lt_postinstall_cmds
13463 postuninstall_cmds=$lt_postuninstall_cmds
13464
13465 # Commands used to build a loadable module (assumed same as above if empty)
13466 module_cmds=$lt_module_cmds_CXX
13467 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13468
13469 # Commands to strip libraries.
13470 old_striplib=$lt_old_striplib
13471 striplib=$lt_striplib
13472
13473 # Dependencies to place before the objects being linked to create a
13474 # shared library.
13475 predep_objects=$lt_predep_objects_CXX
13476
13477 # Dependencies to place after the objects being linked to create a
13478 # shared library.
13479 postdep_objects=$lt_postdep_objects_CXX
13480
13481 # Dependencies to place before the objects being linked to create a
13482 # shared library.
13483 predeps=$lt_predeps_CXX
13484
13485 # Dependencies to place after the objects being linked to create a
13486 # shared library.
13487 postdeps=$lt_postdeps_CXX
13488
13489 # The library search path used internally by the compiler when linking
13490 # a shared library.
13491 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13492
13493 # Method to check whether dependent libraries are shared objects.
13494 deplibs_check_method=$lt_deplibs_check_method
13495
13496 # Command to use when deplibs_check_method == file_magic.
13497 file_magic_cmd=$lt_file_magic_cmd
13498
13499 # Flag that allows shared libraries with undefined symbols to be built.
13500 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13501
13502 # Flag that forces no undefined symbols.
13503 no_undefined_flag=$lt_no_undefined_flag_CXX
13504
13505 # Commands used to finish a libtool library installation in a directory.
13506 finish_cmds=$lt_finish_cmds
13507
13508 # Same as above, but a single script fragment to be evaled but not shown.
13509 finish_eval=$lt_finish_eval
13510
13511 # Take the output of nm and produce a listing of raw symbols and C names.
13512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13513
13514 # Transform the output of nm in a proper C declaration
13515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13516
13517 # Transform the output of nm in a C name address pair
13518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13519
13520 # This is the shared library runtime path variable.
13521 runpath_var=$runpath_var
13522
13523 # This is the shared library path variable.
13524 shlibpath_var=$shlibpath_var
13525
13526 # Is shlibpath searched before the hard-coded library search path?
13527 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13528
13529 # How to hardcode a shared library path into an executable.
13530 hardcode_action=$hardcode_action_CXX
13531
13532 # Whether we should hardcode library paths into libraries.
13533 hardcode_into_libs=$hardcode_into_libs
13534
13535 # Flag to hardcode \$libdir into a binary during linking.
13536 # This must work even if \$libdir does not exist.
13537 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13538
13539 # If ld is used when linking, flag to hardcode \$libdir into
13540 # a binary during linking. This must work even if \$libdir does
13541 # not exist.
13542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13543
13544 # Whether we need a single -rpath flag with a separated argument.
13545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13546
13547 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13548 # resulting binary.
13549 hardcode_direct=$hardcode_direct_CXX
13550
13551 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13552 # resulting binary.
13553 hardcode_minus_L=$hardcode_minus_L_CXX
13554
13555 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13556 # the resulting binary.
13557 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13558
13559 # Set to yes if building a shared library automatically hardcodes DIR into the library
13560 # and all subsequent libraries and executables linked against it.
13561 hardcode_automatic=$hardcode_automatic_CXX
13562
13563 # Variables whose values should be saved in libtool wrapper scripts and
13564 # restored at relink time.
13565 variables_saved_for_relink="$variables_saved_for_relink"
13566
13567 # Whether libtool must link a program against all its dependency libraries.
13568 link_all_deplibs=$link_all_deplibs_CXX
13569
13570 # Compile-time system search path for libraries
13571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13572
13573 # Run-time system search path for libraries
13574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13575
13576 # Fix the shell variable \$srcfile for the compiler.
13577 fix_srcfile_path="$fix_srcfile_path_CXX"
13578
13579 # Set to yes if exported symbols are required.
13580 always_export_symbols=$always_export_symbols_CXX
13581
13582 # The commands to list exported symbols.
13583 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13584
13585 # The commands to extract the exported symbol list from a shared archive.
13586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13587
13588 # Symbols that should not be listed in the preloaded symbols.
13589 exclude_expsyms=$lt_exclude_expsyms_CXX
13590
13591 # Symbols that must always be exported.
13592 include_expsyms=$lt_include_expsyms_CXX
13593
13594 # ### END LIBTOOL TAG CONFIG: $tagname
13595
13596 __EOF__
13597
13598
13599 else
13600   # If there is no Makefile yet, we rely on a make rule to execute
13601   # `config.status --recheck' to rerun these tests and create the
13602   # libtool script then.
13603   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13604   if test -f "$ltmain_in"; then
13605     test -f Makefile && make "$ltmain"
13606   fi
13607 fi
13608
13609
13610 ac_ext=c
13611 ac_cpp='$CPP $CPPFLAGS'
13612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13615
13616 CC=$lt_save_CC
13617 LDCXX=$LD
13618 LD=$lt_save_LD
13619 GCC=$lt_save_GCC
13620 with_gnu_ldcxx=$with_gnu_ld
13621 with_gnu_ld=$lt_save_with_gnu_ld
13622 lt_cv_path_LDCXX=$lt_cv_path_LD
13623 lt_cv_path_LD=$lt_save_path_LD
13624 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13625 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13626
13627         else
13628           tagname=""
13629         fi
13630         ;;
13631
13632       F77)
13633         if test -n "$F77" && test "X$F77" != "Xno"; then
13634
13635 ac_ext=f
13636 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13637 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13638 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13639
13640
13641 archive_cmds_need_lc_F77=no
13642 allow_undefined_flag_F77=
13643 always_export_symbols_F77=no
13644 archive_expsym_cmds_F77=
13645 export_dynamic_flag_spec_F77=
13646 hardcode_direct_F77=no
13647 hardcode_libdir_flag_spec_F77=
13648 hardcode_libdir_flag_spec_ld_F77=
13649 hardcode_libdir_separator_F77=
13650 hardcode_minus_L_F77=no
13651 hardcode_automatic_F77=no
13652 module_cmds_F77=
13653 module_expsym_cmds_F77=
13654 link_all_deplibs_F77=unknown
13655 old_archive_cmds_F77=$old_archive_cmds
13656 no_undefined_flag_F77=
13657 whole_archive_flag_spec_F77=
13658 enable_shared_with_static_runtimes_F77=no
13659
13660 # Source file extension for f77 test sources.
13661 ac_ext=f
13662
13663 # Object file extension for compiled f77 test sources.
13664 objext=o
13665 objext_F77=$objext
13666
13667 # Code to be used in simple compile tests
13668 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13669
13670 # Code to be used in simple link tests
13671 lt_simple_link_test_code="      program t\n      end\n"
13672
13673 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13674
13675 # If no C compiler was specified, use CC.
13676 LTCC=${LTCC-"$CC"}
13677
13678 # Allow CC to be a program name with arguments.
13679 compiler=$CC
13680
13681
13682 # save warnings/boilerplate of simple test code
13683 ac_outfile=conftest.$ac_objext
13684 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13686 _lt_compiler_boilerplate=`cat conftest.err`
13687 $rm conftest*
13688
13689 ac_outfile=conftest.$ac_objext
13690 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13692 _lt_linker_boilerplate=`cat conftest.err`
13693 $rm conftest*
13694
13695
13696 # Allow CC to be a program name with arguments.
13697 lt_save_CC="$CC"
13698 CC=${F77-"f77"}
13699 compiler=$CC
13700 compiler_F77=$CC
13701 for cc_temp in $compiler""; do
13702   case $cc_temp in
13703     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13704     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13705     \-*) ;;
13706     *) break;;
13707   esac
13708 done
13709 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13710
13711
13712 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13713 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13714 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13715 echo "${ECHO_T}$can_build_shared" >&6
13716
13717 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13718 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13719 test "$can_build_shared" = "no" && enable_shared=no
13720
13721 # On AIX, shared libraries and static libraries use the same namespace, and
13722 # are all built from PIC.
13723 case "$host_os" in
13724 aix3*)
13725   test "$enable_shared" = yes && enable_static=no
13726   if test -n "$RANLIB"; then
13727     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13728     postinstall_cmds='$RANLIB $lib'
13729   fi
13730   ;;
13731 aix4* | aix5*)
13732   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13733     test "$enable_shared" = yes && enable_static=no
13734   fi
13735   ;;
13736 esac
13737 echo "$as_me:$LINENO: result: $enable_shared" >&5
13738 echo "${ECHO_T}$enable_shared" >&6
13739
13740 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13741 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13742 # Make sure either enable_shared or enable_static is yes.
13743 test "$enable_shared" = yes || enable_static=yes
13744 echo "$as_me:$LINENO: result: $enable_static" >&5
13745 echo "${ECHO_T}$enable_static" >&6
13746
13747 test "$ld_shlibs_F77" = no && can_build_shared=no
13748
13749 GCC_F77="$G77"
13750 LD_F77="$LD"
13751
13752 lt_prog_compiler_wl_F77=
13753 lt_prog_compiler_pic_F77=
13754 lt_prog_compiler_static_F77=
13755
13756 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13757 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13758
13759   if test "$GCC" = yes; then
13760     lt_prog_compiler_wl_F77='-Wl,'
13761     lt_prog_compiler_static_F77='-static'
13762
13763     case $host_os in
13764       aix*)
13765       # All AIX code is PIC.
13766       if test "$host_cpu" = ia64; then
13767         # AIX 5 now supports IA64 processor
13768         lt_prog_compiler_static_F77='-Bstatic'
13769       fi
13770       ;;
13771
13772     amigaos*)
13773       # FIXME: we need at least 68020 code to build shared libraries, but
13774       # adding the `-m68020' flag to GCC prevents building anything better,
13775       # like `-m68040'.
13776       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13777       ;;
13778
13779     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13780       # PIC is the default for these OSes.
13781       ;;
13782
13783     mingw* | pw32* | os2*)
13784       # This hack is so that the source file can tell whether it is being
13785       # built for inclusion in a dll (and should export symbols for example).
13786       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13787       ;;
13788
13789     darwin* | rhapsody*)
13790       # PIC is the default on this platform
13791       # Common symbols not allowed in MH_DYLIB files
13792       lt_prog_compiler_pic_F77='-fno-common'
13793       ;;
13794
13795     msdosdjgpp*)
13796       # Just because we use GCC doesn't mean we suddenly get shared libraries
13797       # on systems that don't support them.
13798       lt_prog_compiler_can_build_shared_F77=no
13799       enable_shared=no
13800       ;;
13801
13802     sysv4*MP*)
13803       if test -d /usr/nec; then
13804         lt_prog_compiler_pic_F77=-Kconform_pic
13805       fi
13806       ;;
13807
13808     hpux*)
13809       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13810       # not for PA HP-UX.
13811       case "$host_cpu" in
13812       hppa*64*|ia64*)
13813         # +Z the default
13814         ;;
13815       *)
13816         lt_prog_compiler_pic_F77='-fPIC'
13817         ;;
13818       esac
13819       ;;
13820
13821     *)
13822       lt_prog_compiler_pic_F77='-fPIC'
13823       ;;
13824     esac
13825   else
13826     # PORTME Check for flag to pass linker flags through the system compiler.
13827     case $host_os in
13828     aix*)
13829       lt_prog_compiler_wl_F77='-Wl,'
13830       if test "$host_cpu" = ia64; then
13831         # AIX 5 now supports IA64 processor
13832         lt_prog_compiler_static_F77='-Bstatic'
13833       else
13834         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13835       fi
13836       ;;
13837       darwin*)
13838         # PIC is the default on this platform
13839         # Common symbols not allowed in MH_DYLIB files
13840        case $cc_basename in
13841          xlc*)
13842          lt_prog_compiler_pic_F77='-qnocommon'
13843          lt_prog_compiler_wl_F77='-Wl,'
13844          ;;
13845        esac
13846        ;;
13847
13848     mingw* | pw32* | os2*)
13849       # This hack is so that the source file can tell whether it is being
13850       # built for inclusion in a dll (and should export symbols for example).
13851       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13852       ;;
13853
13854     hpux9* | hpux10* | hpux11*)
13855       lt_prog_compiler_wl_F77='-Wl,'
13856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13857       # not for PA HP-UX.
13858       case "$host_cpu" in
13859       hppa*64*|ia64*)
13860         # +Z the default
13861         ;;
13862       *)
13863         lt_prog_compiler_pic_F77='+Z'
13864         ;;
13865       esac
13866       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13867       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13868       ;;
13869
13870     irix5* | irix6* | nonstopux*)
13871       lt_prog_compiler_wl_F77='-Wl,'
13872       # PIC (with -KPIC) is the default.
13873       lt_prog_compiler_static_F77='-non_shared'
13874       ;;
13875
13876     newsos6)
13877       lt_prog_compiler_pic_F77='-KPIC'
13878       lt_prog_compiler_static_F77='-Bstatic'
13879       ;;
13880
13881     linux*)
13882       case $cc_basename in
13883       icc* | ecc*)
13884         lt_prog_compiler_wl_F77='-Wl,'
13885         lt_prog_compiler_pic_F77='-KPIC'
13886         lt_prog_compiler_static_F77='-static'
13887         ;;
13888       pgcc* | pgf77* | pgf90*)
13889         # Portland Group compilers (*not* the Pentium gcc compiler,
13890         # which looks to be a dead project)
13891         lt_prog_compiler_wl_F77='-Wl,'
13892         lt_prog_compiler_pic_F77='-fpic'
13893         lt_prog_compiler_static_F77='-static'
13894         ;;
13895       ccc*)
13896         lt_prog_compiler_wl_F77='-Wl,'
13897         # All Alpha code is PIC.
13898         lt_prog_compiler_static_F77='-non_shared'
13899         ;;
13900       esac
13901       ;;
13902
13903     osf3* | osf4* | osf5*)
13904       lt_prog_compiler_wl_F77='-Wl,'
13905       # All OSF/1 code is PIC.
13906       lt_prog_compiler_static_F77='-non_shared'
13907       ;;
13908
13909     sco3.2v5*)
13910       lt_prog_compiler_pic_F77='-Kpic'
13911       lt_prog_compiler_static_F77='-dn'
13912       ;;
13913
13914     solaris*)
13915       lt_prog_compiler_pic_F77='-KPIC'
13916       lt_prog_compiler_static_F77='-Bstatic'
13917       case $cc_basename in
13918       f77* | f90* | f95*)
13919         lt_prog_compiler_wl_F77='-Qoption ld ';;
13920       *)
13921         lt_prog_compiler_wl_F77='-Wl,';;
13922       esac
13923       ;;
13924
13925     sunos4*)
13926       lt_prog_compiler_wl_F77='-Qoption ld '
13927       lt_prog_compiler_pic_F77='-PIC'
13928       lt_prog_compiler_static_F77='-Bstatic'
13929       ;;
13930
13931     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13932       lt_prog_compiler_wl_F77='-Wl,'
13933       lt_prog_compiler_pic_F77='-KPIC'
13934       lt_prog_compiler_static_F77='-Bstatic'
13935       ;;
13936
13937     sysv4*MP*)
13938       if test -d /usr/nec ;then
13939         lt_prog_compiler_pic_F77='-Kconform_pic'
13940         lt_prog_compiler_static_F77='-Bstatic'
13941       fi
13942       ;;
13943
13944     unicos*)
13945       lt_prog_compiler_wl_F77='-Wl,'
13946       lt_prog_compiler_can_build_shared_F77=no
13947       ;;
13948
13949     uts4*)
13950       lt_prog_compiler_pic_F77='-pic'
13951       lt_prog_compiler_static_F77='-Bstatic'
13952       ;;
13953
13954     *)
13955       lt_prog_compiler_can_build_shared_F77=no
13956       ;;
13957     esac
13958   fi
13959
13960 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13961 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13962
13963 #
13964 # Check to make sure the PIC flag actually works.
13965 #
13966 if test -n "$lt_prog_compiler_pic_F77"; then
13967
13968 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13969 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13970 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13971   echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973   lt_prog_compiler_pic_works_F77=no
13974   ac_outfile=conftest.$ac_objext
13975    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13976    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13977    # Insert the option either (1) after the last *FLAGS variable, or
13978    # (2) before a word containing "conftest.", or (3) at the end.
13979    # Note that $ac_compile itself does not contain backslashes and begins
13980    # with a dollar sign (not a hyphen), so the echo should work correctly.
13981    # The option is referenced via a variable to avoid confusing sed.
13982    lt_compile=`echo "$ac_compile" | $SED \
13983    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13984    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13985    -e 's:$: $lt_compiler_flag:'`
13986    (eval echo "\"\$as_me:13986: $lt_compile\"" >&5)
13987    (eval "$lt_compile" 2>conftest.err)
13988    ac_status=$?
13989    cat conftest.err >&5
13990    echo "$as_me:13990: \$? = $ac_status" >&5
13991    if (exit $ac_status) && test -s "$ac_outfile"; then
13992      # The compiler can only warn and ignore the option if not recognized
13993      # So say no if there are warnings other than the usual output.
13994      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13995      $SED '/^$/d' conftest.err >conftest.er2
13996      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13997        lt_prog_compiler_pic_works_F77=yes
13998      fi
13999    fi
14000    $rm conftest*
14001
14002 fi
14003 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14004 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14005
14006 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14007     case $lt_prog_compiler_pic_F77 in
14008      "" | " "*) ;;
14009      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14010      esac
14011 else
14012     lt_prog_compiler_pic_F77=
14013      lt_prog_compiler_can_build_shared_F77=no
14014 fi
14015
14016 fi
14017 case "$host_os" in
14018   # For platforms which do not support PIC, -DPIC is meaningless:
14019   *djgpp*)
14020     lt_prog_compiler_pic_F77=
14021     ;;
14022   *)
14023     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14024     ;;
14025 esac
14026
14027 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14028 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14029 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14030   echo $ECHO_N "(cached) $ECHO_C" >&6
14031 else
14032   lt_cv_prog_compiler_c_o_F77=no
14033    $rm -r conftest 2>/dev/null
14034    mkdir conftest
14035    cd conftest
14036    mkdir out
14037    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14038
14039    lt_compiler_flag="-o out/conftest2.$ac_objext"
14040    # Insert the option either (1) after the last *FLAGS variable, or
14041    # (2) before a word containing "conftest.", or (3) at the end.
14042    # Note that $ac_compile itself does not contain backslashes and begins
14043    # with a dollar sign (not a hyphen), so the echo should work correctly.
14044    lt_compile=`echo "$ac_compile" | $SED \
14045    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14047    -e 's:$: $lt_compiler_flag:'`
14048    (eval echo "\"\$as_me:14048: $lt_compile\"" >&5)
14049    (eval "$lt_compile" 2>out/conftest.err)
14050    ac_status=$?
14051    cat out/conftest.err >&5
14052    echo "$as_me:14052: \$? = $ac_status" >&5
14053    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14054    then
14055      # The compiler can only warn and ignore the option if not recognized
14056      # So say no if there are warnings
14057      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14058      $SED '/^$/d' out/conftest.err >out/conftest.er2
14059      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14060        lt_cv_prog_compiler_c_o_F77=yes
14061      fi
14062    fi
14063    chmod u+w .
14064    $rm conftest*
14065    # SGI C++ compiler will create directory out/ii_files/ for
14066    # template instantiation
14067    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14068    $rm out/* && rmdir out
14069    cd ..
14070    rmdir conftest
14071    $rm conftest*
14072
14073 fi
14074 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14075 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14076
14077
14078 hard_links="nottested"
14079 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14080   # do not overwrite the value of need_locks provided by the user
14081   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14082 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14083   hard_links=yes
14084   $rm conftest*
14085   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14086   touch conftest.a
14087   ln conftest.a conftest.b 2>&5 || hard_links=no
14088   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14089   echo "$as_me:$LINENO: result: $hard_links" >&5
14090 echo "${ECHO_T}$hard_links" >&6
14091   if test "$hard_links" = no; then
14092     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14093 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14094     need_locks=warn
14095   fi
14096 else
14097   need_locks=no
14098 fi
14099
14100 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14101 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14102
14103   runpath_var=
14104   allow_undefined_flag_F77=
14105   enable_shared_with_static_runtimes_F77=no
14106   archive_cmds_F77=
14107   archive_expsym_cmds_F77=
14108   old_archive_From_new_cmds_F77=
14109   old_archive_from_expsyms_cmds_F77=
14110   export_dynamic_flag_spec_F77=
14111   whole_archive_flag_spec_F77=
14112   thread_safe_flag_spec_F77=
14113   hardcode_libdir_flag_spec_F77=
14114   hardcode_libdir_flag_spec_ld_F77=
14115   hardcode_libdir_separator_F77=
14116   hardcode_direct_F77=no
14117   hardcode_minus_L_F77=no
14118   hardcode_shlibpath_var_F77=unsupported
14119   link_all_deplibs_F77=unknown
14120   hardcode_automatic_F77=no
14121   module_cmds_F77=
14122   module_expsym_cmds_F77=
14123   always_export_symbols_F77=no
14124   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14125   # include_expsyms should be a list of space-separated symbols to be *always*
14126   # included in the symbol list
14127   include_expsyms_F77=
14128   # exclude_expsyms can be an extended regexp of symbols to exclude
14129   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14130   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14131   # as well as any symbol that contains `d'.
14132   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14133   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14134   # platforms (ab)use it in PIC code, but their linkers get confused if
14135   # the symbol is explicitly referenced.  Since portable code cannot
14136   # rely on this symbol name, it's probably fine to never include it in
14137   # preloaded symbol tables.
14138   extract_expsyms_cmds=
14139   # Just being paranoid about ensuring that cc_basename is set.
14140   for cc_temp in $compiler""; do
14141   case $cc_temp in
14142     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14143     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14144     \-*) ;;
14145     *) break;;
14146   esac
14147 done
14148 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14149
14150   case $host_os in
14151   cygwin* | mingw* | pw32*)
14152     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14153     # When not using gcc, we currently assume that we are using
14154     # Microsoft Visual C++.
14155     if test "$GCC" != yes; then
14156       with_gnu_ld=no
14157     fi
14158     ;;
14159   openbsd*)
14160     with_gnu_ld=no
14161     ;;
14162   esac
14163
14164   ld_shlibs_F77=yes
14165   if test "$with_gnu_ld" = yes; then
14166     # If archive_cmds runs LD, not CC, wlarc should be empty
14167     wlarc='${wl}'
14168
14169     # Set some defaults for GNU ld with shared library support. These
14170     # are reset later if shared libraries are not supported. Putting them
14171     # here allows them to be overridden if necessary.
14172     runpath_var=LD_RUN_PATH
14173     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14174     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14175     # ancient GNU ld didn't support --whole-archive et. al.
14176     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14177         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14178       else
14179         whole_archive_flag_spec_F77=
14180     fi
14181     supports_anon_versioning=no
14182     case `$LD -v 2>/dev/null` in
14183       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14184       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14185       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14186       *\ 2.11.*) ;; # other 2.11 versions
14187       *) supports_anon_versioning=yes ;;
14188     esac
14189
14190     # See if GNU ld supports shared libraries.
14191     case $host_os in
14192     aix3* | aix4* | aix5*)
14193       # On AIX/PPC, the GNU linker is very broken
14194       if test "$host_cpu" != ia64; then
14195         ld_shlibs_F77=no
14196         cat <<EOF 1>&2
14197
14198 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14199 *** to be unable to reliably create shared libraries on AIX.
14200 *** Therefore, libtool is disabling shared libraries support.  If you
14201 *** really care for shared libraries, you may want to modify your PATH
14202 *** so that a non-GNU linker is found, and then restart.
14203
14204 EOF
14205       fi
14206       ;;
14207
14208     amigaos*)
14209       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)'
14210       hardcode_libdir_flag_spec_F77='-L$libdir'
14211       hardcode_minus_L_F77=yes
14212
14213       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14214       # that the semantics of dynamic libraries on AmigaOS, at least up
14215       # to version 4, is to share data among multiple programs linked
14216       # with the same dynamic library.  Since this doesn't match the
14217       # behavior of shared libraries on other platforms, we can't use
14218       # them.
14219       ld_shlibs_F77=no
14220       ;;
14221
14222     beos*)
14223       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14224         allow_undefined_flag_F77=unsupported
14225         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14226         # support --undefined.  This deserves some investigation.  FIXME
14227         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14228       else
14229         ld_shlibs_F77=no
14230       fi
14231       ;;
14232
14233     cygwin* | mingw* | pw32*)
14234       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14235       # as there is no search path for DLLs.
14236       hardcode_libdir_flag_spec_F77='-L$libdir'
14237       allow_undefined_flag_F77=unsupported
14238       always_export_symbols_F77=no
14239       enable_shared_with_static_runtimes_F77=yes
14240       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14241
14242       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14243         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14244         # If the export-symbols file already is a .def file (1st line
14245         # is EXPORTS), use it as is; otherwise, prepend...
14246         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14247           cp $export_symbols $output_objdir/$soname.def;
14248         else
14249           echo EXPORTS > $output_objdir/$soname.def;
14250           cat $export_symbols >> $output_objdir/$soname.def;
14251         fi~
14252         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14253       else
14254         ld_shlibs_F77=no
14255       fi
14256       ;;
14257
14258     linux*)
14259       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14260         tmp_addflag=
14261         case $cc_basename,$host_cpu in
14262         pgcc*)                          # Portland Group C compiler
14263           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'
14264           tmp_addflag=' $pic_flag'
14265           ;;
14266         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
14267           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'
14268           tmp_addflag=' $pic_flag -Mnomain' ;;
14269         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14270           tmp_addflag=' -i_dynamic' ;;
14271         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14272           tmp_addflag=' -i_dynamic -nofor_main' ;;
14273         ifc* | ifort*)                  # Intel Fortran compiler
14274           tmp_addflag=' -nofor_main' ;;
14275         esac
14276         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14277
14278         if test $supports_anon_versioning = yes; then
14279           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14280   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14281   $echo "local: *; };" >> $output_objdir/$libname.ver~
14282           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14283         fi
14284       else
14285         ld_shlibs_F77=no
14286       fi
14287       ;;
14288
14289     netbsd*)
14290       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14291         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14292         wlarc=
14293       else
14294         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14295         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14296       fi
14297       ;;
14298
14299     solaris* | sysv5*)
14300       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14301         ld_shlibs_F77=no
14302         cat <<EOF 1>&2
14303
14304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14305 *** create shared libraries on Solaris systems.  Therefore, libtool
14306 *** is disabling shared libraries support.  We urge you to upgrade GNU
14307 *** binutils to release 2.9.1 or newer.  Another option is to modify
14308 *** your PATH or compiler configuration so that the native linker is
14309 *** used, and then restart.
14310
14311 EOF
14312       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14313         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14314         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14315       else
14316         ld_shlibs_F77=no
14317       fi
14318       ;;
14319
14320     sunos4*)
14321       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14322       wlarc=
14323       hardcode_direct_F77=yes
14324       hardcode_shlibpath_var_F77=no
14325       ;;
14326
14327     *)
14328       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14329         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14330         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14331       else
14332         ld_shlibs_F77=no
14333       fi
14334       ;;
14335     esac
14336
14337     if test "$ld_shlibs_F77" = no; then
14338       runpath_var=
14339       hardcode_libdir_flag_spec_F77=
14340       export_dynamic_flag_spec_F77=
14341       whole_archive_flag_spec_F77=
14342     fi
14343   else
14344     # PORTME fill in a description of your system's linker (not GNU ld)
14345     case $host_os in
14346     aix3*)
14347       allow_undefined_flag_F77=unsupported
14348       always_export_symbols_F77=yes
14349       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'
14350       # Note: this linker hardcodes the directories in LIBPATH if there
14351       # are no directories specified by -L.
14352       hardcode_minus_L_F77=yes
14353       if test "$GCC" = yes && test -z "$link_static_flag"; then
14354         # Neither direct hardcoding nor static linking is supported with a
14355         # broken collect2.
14356         hardcode_direct_F77=unsupported
14357       fi
14358       ;;
14359
14360     aix4* | aix5*)
14361       if test "$host_cpu" = ia64; then
14362         # On IA64, the linker does run time linking by default, so we don't
14363         # have to do anything special.
14364         aix_use_runtimelinking=no
14365         exp_sym_flag='-Bexport'
14366         no_entry_flag=""
14367       else
14368         # If we're using GNU nm, then we don't want the "-C" option.
14369         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14370         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14371           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'
14372         else
14373           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'
14374         fi
14375         aix_use_runtimelinking=no
14376
14377         # Test if we are trying to use run time linking or normal
14378         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14379         # need to do runtime linking.
14380         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14381           for ld_flag in $LDFLAGS; do
14382           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14383             aix_use_runtimelinking=yes
14384             break
14385           fi
14386           done
14387         esac
14388
14389         exp_sym_flag='-bexport'
14390         no_entry_flag='-bnoentry'
14391       fi
14392
14393       # When large executables or shared objects are built, AIX ld can
14394       # have problems creating the table of contents.  If linking a library
14395       # or program results in "error TOC overflow" add -mminimal-toc to
14396       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14397       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14398
14399       archive_cmds_F77=''
14400       hardcode_direct_F77=yes
14401       hardcode_libdir_separator_F77=':'
14402       link_all_deplibs_F77=yes
14403
14404       if test "$GCC" = yes; then
14405         case $host_os in aix4.[012]|aix4.[012].*)
14406         # We only want to do this on AIX 4.2 and lower, the check
14407         # below for broken collect2 doesn't work under 4.3+
14408           collect2name=`${CC} -print-prog-name=collect2`
14409           if test -f "$collect2name" && \
14410            strings "$collect2name" | grep resolve_lib_name >/dev/null
14411           then
14412           # We have reworked collect2
14413           hardcode_direct_F77=yes
14414           else
14415           # We have old collect2
14416           hardcode_direct_F77=unsupported
14417           # It fails to find uninstalled libraries when the uninstalled
14418           # path is not listed in the libpath.  Setting hardcode_minus_L
14419           # to unsupported forces relinking
14420           hardcode_minus_L_F77=yes
14421           hardcode_libdir_flag_spec_F77='-L$libdir'
14422           hardcode_libdir_separator_F77=
14423           fi
14424         esac
14425         shared_flag='-shared'
14426         if test "$aix_use_runtimelinking" = yes; then
14427           shared_flag="$shared_flag "'${wl}-G'
14428         fi
14429       else
14430         # not using gcc
14431         if test "$host_cpu" = ia64; then
14432         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14433         # chokes on -Wl,-G. The following line is correct:
14434           shared_flag='-G'
14435         else
14436         if test "$aix_use_runtimelinking" = yes; then
14437             shared_flag='${wl}-G'
14438           else
14439             shared_flag='${wl}-bM:SRE'
14440         fi
14441         fi
14442       fi
14443
14444       # It seems that -bexpall does not export symbols beginning with
14445       # underscore (_), so it is better to generate a list of symbols to export.
14446       always_export_symbols_F77=yes
14447       if test "$aix_use_runtimelinking" = yes; then
14448         # Warning - without using the other runtime loading flags (-brtl),
14449         # -berok will link without error, but may produce a broken library.
14450         allow_undefined_flag_F77='-berok'
14451        # Determine the default libpath from the value encoded in an empty executable.
14452        cat >conftest.$ac_ext <<_ACEOF
14453       program main
14454
14455       end
14456 _ACEOF
14457 rm -f conftest.$ac_objext conftest$ac_exeext
14458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14459   (eval $ac_link) 2>conftest.er1
14460   ac_status=$?
14461   grep -v '^ *+' conftest.er1 >conftest.err
14462   rm -f conftest.er1
14463   cat conftest.err >&5
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); } &&
14466          { ac_try='test -z "$ac_f77_werror_flag"
14467                          || test ! -s conftest.err'
14468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469   (eval $ac_try) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }; } &&
14473          { ac_try='test -s conftest$ac_exeext'
14474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475   (eval $ac_try) 2>&5
14476   ac_status=$?
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); }; }; then
14479
14480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14481 }'`
14482 # Check for a 64-bit object if we didn't find anything.
14483 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; }
14484 }'`; fi
14485 else
14486   echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14488
14489 fi
14490 rm -f conftest.err conftest.$ac_objext \
14491       conftest$ac_exeext conftest.$ac_ext
14492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14493
14494        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14495         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14496        else
14497         if test "$host_cpu" = ia64; then
14498           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14499           allow_undefined_flag_F77="-z nodefs"
14500           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14501         else
14502          # Determine the default libpath from the value encoded in an empty executable.
14503          cat >conftest.$ac_ext <<_ACEOF
14504       program main
14505
14506       end
14507 _ACEOF
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14510   (eval $ac_link) 2>conftest.er1
14511   ac_status=$?
14512   grep -v '^ *+' conftest.er1 >conftest.err
14513   rm -f conftest.er1
14514   cat conftest.err >&5
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } &&
14517          { ac_try='test -z "$ac_f77_werror_flag"
14518                          || test ! -s conftest.err'
14519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520   (eval $ac_try) 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); }; } &&
14524          { ac_try='test -s conftest$ac_exeext'
14525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526   (eval $ac_try) 2>&5
14527   ac_status=$?
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); }; }; then
14530
14531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14532 }'`
14533 # Check for a 64-bit object if we didn't find anything.
14534 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; }
14535 }'`; fi
14536 else
14537   echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14539
14540 fi
14541 rm -f conftest.err conftest.$ac_objext \
14542       conftest$ac_exeext conftest.$ac_ext
14543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14544
14545          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14546           # Warning - without using the other run time loading flags,
14547           # -berok will link without error, but may produce a broken library.
14548           no_undefined_flag_F77=' ${wl}-bernotok'
14549           allow_undefined_flag_F77=' ${wl}-berok'
14550           # -bexpall does not export symbols beginning with underscore (_)
14551           always_export_symbols_F77=yes
14552           # Exported symbols can be pulled into shared objects from archives
14553           whole_archive_flag_spec_F77=' '
14554           archive_cmds_need_lc_F77=yes
14555           # This is similar to how AIX traditionally builds it's shared libraries.
14556           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14557         fi
14558       fi
14559       ;;
14560
14561     amigaos*)
14562       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)'
14563       hardcode_libdir_flag_spec_F77='-L$libdir'
14564       hardcode_minus_L_F77=yes
14565       # see comment about different semantics on the GNU ld section
14566       ld_shlibs_F77=no
14567       ;;
14568
14569     bsdi[45]*)
14570       export_dynamic_flag_spec_F77=-rdynamic
14571       ;;
14572
14573     cygwin* | mingw* | pw32*)
14574       # When not using gcc, we currently assume that we are using
14575       # Microsoft Visual C++.
14576       # hardcode_libdir_flag_spec is actually meaningless, as there is
14577       # no search path for DLLs.
14578       hardcode_libdir_flag_spec_F77=' '
14579       allow_undefined_flag_F77=unsupported
14580       # Tell ltmain to make .lib files, not .a files.
14581       libext=lib
14582       # Tell ltmain to make .dll files, not .so files.
14583       shrext_cmds=".dll"
14584       # FIXME: Setting linknames here is a bad hack.
14585       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14586       # The linker will automatically build a .lib file if we build a DLL.
14587       old_archive_From_new_cmds_F77='true'
14588       # FIXME: Should let the user specify the lib program.
14589       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14590       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14591       enable_shared_with_static_runtimes_F77=yes
14592       ;;
14593
14594     darwin* | rhapsody*)
14595       case "$host_os" in
14596         rhapsody* | darwin1.[012])
14597          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14598          ;;
14599        *) # Darwin 1.3 on
14600          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14601            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14602          else
14603            case ${MACOSX_DEPLOYMENT_TARGET} in
14604              10.[012])
14605                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14606                ;;
14607              10.*)
14608                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14609                ;;
14610            esac
14611          fi
14612          ;;
14613       esac
14614       archive_cmds_need_lc_F77=no
14615       hardcode_direct_F77=no
14616       hardcode_automatic_F77=yes
14617       hardcode_shlibpath_var_F77=unsupported
14618       whole_archive_flag_spec_F77=''
14619       link_all_deplibs_F77=yes
14620     if test "$GCC" = yes ; then
14621         output_verbose_link_cmd='echo'
14622         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14623       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14624       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14625       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}'
14626       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}'
14627     else
14628       case $cc_basename in
14629         xlc*)
14630          output_verbose_link_cmd='echo'
14631          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14632          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14633           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14634          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}'
14635           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}'
14636           ;;
14637        *)
14638          ld_shlibs_F77=no
14639           ;;
14640       esac
14641     fi
14642       ;;
14643
14644     dgux*)
14645       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14646       hardcode_libdir_flag_spec_F77='-L$libdir'
14647       hardcode_shlibpath_var_F77=no
14648       ;;
14649
14650     freebsd1*)
14651       ld_shlibs_F77=no
14652       ;;
14653
14654     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14655     # support.  Future versions do this automatically, but an explicit c++rt0.o
14656     # does not break anything, and helps significantly (at the cost of a little
14657     # extra space).
14658     freebsd2.2*)
14659       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14660       hardcode_libdir_flag_spec_F77='-R$libdir'
14661       hardcode_direct_F77=yes
14662       hardcode_shlibpath_var_F77=no
14663       ;;
14664
14665     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14666     freebsd2*)
14667       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14668       hardcode_direct_F77=yes
14669       hardcode_minus_L_F77=yes
14670       hardcode_shlibpath_var_F77=no
14671       ;;
14672
14673     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14674     freebsd* | kfreebsd*-gnu | dragonfly*)
14675       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14676       hardcode_libdir_flag_spec_F77='-R$libdir'
14677       hardcode_direct_F77=yes
14678       hardcode_shlibpath_var_F77=no
14679       ;;
14680
14681     hpux9*)
14682       if test "$GCC" = yes; then
14683         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'
14684       else
14685         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'
14686       fi
14687       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14688       hardcode_libdir_separator_F77=:
14689       hardcode_direct_F77=yes
14690
14691       # hardcode_minus_L: Not really in the search PATH,
14692       # but as the default location of the library.
14693       hardcode_minus_L_F77=yes
14694       export_dynamic_flag_spec_F77='${wl}-E'
14695       ;;
14696
14697     hpux10* | hpux11*)
14698       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14699         case "$host_cpu" in
14700         hppa*64*|ia64*)
14701           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14702           ;;
14703         *)
14704           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14705           ;;
14706         esac
14707       else
14708         case "$host_cpu" in
14709         hppa*64*|ia64*)
14710           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14711           ;;
14712         *)
14713           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14714           ;;
14715         esac
14716       fi
14717       if test "$with_gnu_ld" = no; then
14718         case "$host_cpu" in
14719         hppa*64*)
14720           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14721           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14722           hardcode_libdir_separator_F77=:
14723           hardcode_direct_F77=no
14724           hardcode_shlibpath_var_F77=no
14725           ;;
14726         ia64*)
14727           hardcode_libdir_flag_spec_F77='-L$libdir'
14728           hardcode_direct_F77=no
14729           hardcode_shlibpath_var_F77=no
14730
14731           # hardcode_minus_L: Not really in the search PATH,
14732           # but as the default location of the library.
14733           hardcode_minus_L_F77=yes
14734           ;;
14735         *)
14736           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14737           hardcode_libdir_separator_F77=:
14738           hardcode_direct_F77=yes
14739           export_dynamic_flag_spec_F77='${wl}-E'
14740
14741           # hardcode_minus_L: Not really in the search PATH,
14742           # but as the default location of the library.
14743           hardcode_minus_L_F77=yes
14744           ;;
14745         esac
14746       fi
14747       ;;
14748
14749     irix5* | irix6* | nonstopux*)
14750       if test "$GCC" = yes; then
14751         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'
14752       else
14753         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'
14754         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14755       fi
14756       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14757       hardcode_libdir_separator_F77=:
14758       link_all_deplibs_F77=yes
14759       ;;
14760
14761     netbsd*)
14762       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14763         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14764       else
14765         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14766       fi
14767       hardcode_libdir_flag_spec_F77='-R$libdir'
14768       hardcode_direct_F77=yes
14769       hardcode_shlibpath_var_F77=no
14770       ;;
14771
14772     newsos6)
14773       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14774       hardcode_direct_F77=yes
14775       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14776       hardcode_libdir_separator_F77=:
14777       hardcode_shlibpath_var_F77=no
14778       ;;
14779
14780     openbsd*)
14781       hardcode_direct_F77=yes
14782       hardcode_shlibpath_var_F77=no
14783       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14784         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14785         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14786         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14787         export_dynamic_flag_spec_F77='${wl}-E'
14788       else
14789        case $host_os in
14790          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14791            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14792            hardcode_libdir_flag_spec_F77='-R$libdir'
14793            ;;
14794          *)
14795            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14796            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14797            ;;
14798        esac
14799       fi
14800       ;;
14801
14802     os2*)
14803       hardcode_libdir_flag_spec_F77='-L$libdir'
14804       hardcode_minus_L_F77=yes
14805       allow_undefined_flag_F77=unsupported
14806       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'
14807       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14808       ;;
14809
14810     osf3*)
14811       if test "$GCC" = yes; then
14812         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14813         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'
14814       else
14815         allow_undefined_flag_F77=' -expect_unresolved \*'
14816         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'
14817       fi
14818       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14819       hardcode_libdir_separator_F77=:
14820       ;;
14821
14822     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14823       if test "$GCC" = yes; then
14824         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14825         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'
14826         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14827       else
14828         allow_undefined_flag_F77=' -expect_unresolved \*'
14829         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'
14830         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~
14831         $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'
14832
14833         # Both c and cxx compiler support -rpath directly
14834         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14835       fi
14836       hardcode_libdir_separator_F77=:
14837       ;;
14838
14839     sco3.2v5*)
14840       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14841       hardcode_shlibpath_var_F77=no
14842       export_dynamic_flag_spec_F77='${wl}-Bexport'
14843       runpath_var=LD_RUN_PATH
14844       hardcode_runpath_var=yes
14845       ;;
14846
14847     solaris*)
14848       no_undefined_flag_F77=' -z text'
14849       if test "$GCC" = yes; then
14850         wlarc='${wl}'
14851         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14852         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14853           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14854       else
14855         wlarc=''
14856         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14857         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14858         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14859       fi
14860       hardcode_libdir_flag_spec_F77='-R$libdir'
14861       hardcode_shlibpath_var_F77=no
14862       case $host_os in
14863       solaris2.[0-5] | solaris2.[0-5].*) ;;
14864       *)
14865         # The compiler driver will combine linker options so we
14866         # cannot just pass the convience library names through
14867         # without $wl, iff we do not link with $LD.
14868         # Luckily, gcc supports the same syntax we need for Sun Studio.
14869         # Supported since Solaris 2.6 (maybe 2.5.1?)
14870         case $wlarc in
14871         '')
14872           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14873         *)
14874           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' ;;
14875         esac ;;
14876       esac
14877       link_all_deplibs_F77=yes
14878       ;;
14879
14880     sunos4*)
14881       if test "x$host_vendor" = xsequent; then
14882         # Use $CC to link under sequent, because it throws in some extra .o
14883         # files that make .init and .fini sections work.
14884         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14885       else
14886         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14887       fi
14888       hardcode_libdir_flag_spec_F77='-L$libdir'
14889       hardcode_direct_F77=yes
14890       hardcode_minus_L_F77=yes
14891       hardcode_shlibpath_var_F77=no
14892       ;;
14893
14894     sysv4)
14895       case $host_vendor in
14896         sni)
14897           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898           hardcode_direct_F77=yes # is this really true???
14899         ;;
14900         siemens)
14901           ## LD is ld it makes a PLAMLIB
14902           ## CC just makes a GrossModule.
14903           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14904           reload_cmds_F77='$CC -r -o $output$reload_objs'
14905           hardcode_direct_F77=no
14906         ;;
14907         motorola)
14908           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14909           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14910         ;;
14911       esac
14912       runpath_var='LD_RUN_PATH'
14913       hardcode_shlibpath_var_F77=no
14914       ;;
14915
14916     sysv4.3*)
14917       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14918       hardcode_shlibpath_var_F77=no
14919       export_dynamic_flag_spec_F77='-Bexport'
14920       ;;
14921
14922     sysv4*MP*)
14923       if test -d /usr/nec; then
14924         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925         hardcode_shlibpath_var_F77=no
14926         runpath_var=LD_RUN_PATH
14927         hardcode_runpath_var=yes
14928         ld_shlibs_F77=yes
14929       fi
14930       ;;
14931
14932     sysv4.2uw2*)
14933       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14934       hardcode_direct_F77=yes
14935       hardcode_minus_L_F77=no
14936       hardcode_shlibpath_var_F77=no
14937       hardcode_runpath_var=yes
14938       runpath_var=LD_RUN_PATH
14939       ;;
14940
14941    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14942       no_undefined_flag_F77='${wl}-z ${wl}text'
14943       if test "$GCC" = yes; then
14944         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14945       else
14946         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14947       fi
14948       runpath_var='LD_RUN_PATH'
14949       hardcode_shlibpath_var_F77=no
14950       ;;
14951
14952     sysv5*)
14953       no_undefined_flag_F77=' -z text'
14954       # $CC -shared without GNU ld will not create a library from C++
14955       # object files and a static libstdc++, better avoid it by now
14956       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14958                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14959       hardcode_libdir_flag_spec_F77=
14960       hardcode_shlibpath_var_F77=no
14961       runpath_var='LD_RUN_PATH'
14962       ;;
14963
14964     uts4*)
14965       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966       hardcode_libdir_flag_spec_F77='-L$libdir'
14967       hardcode_shlibpath_var_F77=no
14968       ;;
14969
14970     *)
14971       ld_shlibs_F77=no
14972       ;;
14973     esac
14974   fi
14975
14976 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14977 echo "${ECHO_T}$ld_shlibs_F77" >&6
14978 test "$ld_shlibs_F77" = no && can_build_shared=no
14979
14980 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14981 if test "$GCC" = yes; then
14982   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14983 fi
14984
14985 #
14986 # Do we need to explicitly link libc?
14987 #
14988 case "x$archive_cmds_need_lc_F77" in
14989 x|xyes)
14990   # Assume -lc should be added
14991   archive_cmds_need_lc_F77=yes
14992
14993   if test "$enable_shared" = yes && test "$GCC" = yes; then
14994     case $archive_cmds_F77 in
14995     *'~'*)
14996       # FIXME: we may have to deal with multi-command sequences.
14997       ;;
14998     '$CC '*)
14999       # Test whether the compiler implicitly links with -lc since on some
15000       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15001       # to ld, don't add -lc before -lgcc.
15002       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15003 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15004       $rm conftest*
15005       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15006
15007       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15008   (eval $ac_compile) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); } 2>conftest.err; then
15012         soname=conftest
15013         lib=conftest
15014         libobjs=conftest.$ac_objext
15015         deplibs=
15016         wl=$lt_prog_compiler_wl_F77
15017         compiler_flags=-v
15018         linker_flags=-v
15019         verstring=
15020         output_objdir=.
15021         libname=conftest
15022         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15023         allow_undefined_flag_F77=
15024         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15025   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15026   ac_status=$?
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); }
15029         then
15030           archive_cmds_need_lc_F77=no
15031         else
15032           archive_cmds_need_lc_F77=yes
15033         fi
15034         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15035       else
15036         cat conftest.err 1>&5
15037       fi
15038       $rm conftest*
15039       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15040 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15041       ;;
15042     esac
15043   fi
15044   ;;
15045 esac
15046
15047 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15048 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15049 library_names_spec=
15050 libname_spec='lib$name'
15051 soname_spec=
15052 shrext_cmds=".so"
15053 postinstall_cmds=
15054 postuninstall_cmds=
15055 finish_cmds=
15056 finish_eval=
15057 shlibpath_var=
15058 shlibpath_overrides_runpath=unknown
15059 version_type=none
15060 dynamic_linker="$host_os ld.so"
15061 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15062 if test "$GCC" = yes; then
15063   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15064   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15065     # if the path contains ";" then we assume it to be the separator
15066     # otherwise default to the standard path separator (i.e. ":") - it is
15067     # assumed that no part of a normal pathname contains ";" but that should
15068     # okay in the real world where ";" in dirpaths is itself problematic.
15069     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15070   else
15071     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15072   fi
15073 else
15074   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15075 fi
15076 need_lib_prefix=unknown
15077 hardcode_into_libs=no
15078
15079 # when you set need_version to no, make sure it does not cause -set_version
15080 # flags to be left without arguments
15081 need_version=unknown
15082
15083 case $host_os in
15084 aix3*)
15085   version_type=linux
15086   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15087   shlibpath_var=LIBPATH
15088
15089   # AIX 3 has no versioning support, so we append a major version to the name.
15090   soname_spec='${libname}${release}${shared_ext}$major'
15091   ;;
15092
15093 aix4* | aix5*)
15094   version_type=linux
15095   need_lib_prefix=no
15096   need_version=no
15097   hardcode_into_libs=yes
15098   if test "$host_cpu" = ia64; then
15099     # AIX 5 supports IA64
15100     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15101     shlibpath_var=LD_LIBRARY_PATH
15102   else
15103     # With GCC up to 2.95.x, collect2 would create an import file
15104     # for dependence libraries.  The import file would start with
15105     # the line `#! .'.  This would cause the generated library to
15106     # depend on `.', always an invalid library.  This was fixed in
15107     # development snapshots of GCC prior to 3.0.
15108     case $host_os in
15109       aix4 | aix4.[01] | aix4.[01].*)
15110       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15111            echo ' yes '
15112            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15113         :
15114       else
15115         can_build_shared=no
15116       fi
15117       ;;
15118     esac
15119     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15120     # soname into executable. Probably we can add versioning support to
15121     # collect2, so additional links can be useful in future.
15122     if test "$aix_use_runtimelinking" = yes; then
15123       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15124       # instead of lib<name>.a to let people know that these are not
15125       # typical AIX shared libraries.
15126       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15127     else
15128       # We preserve .a as extension for shared libraries through AIX4.2
15129       # and later when we are not doing run time linking.
15130       library_names_spec='${libname}${release}.a $libname.a'
15131       soname_spec='${libname}${release}${shared_ext}$major'
15132     fi
15133     shlibpath_var=LIBPATH
15134   fi
15135   ;;
15136
15137 amigaos*)
15138   library_names_spec='$libname.ixlibrary $libname.a'
15139   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15140   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'
15141   ;;
15142
15143 beos*)
15144   library_names_spec='${libname}${shared_ext}'
15145   dynamic_linker="$host_os ld.so"
15146   shlibpath_var=LIBRARY_PATH
15147   ;;
15148
15149 bsdi[45]*)
15150   version_type=linux
15151   need_version=no
15152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15153   soname_spec='${libname}${release}${shared_ext}$major'
15154   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15155   shlibpath_var=LD_LIBRARY_PATH
15156   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15157   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15158   # the default ld.so.conf also contains /usr/contrib/lib and
15159   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15160   # libtool to hard-code these into programs
15161   ;;
15162
15163 cygwin* | mingw* | pw32*)
15164   version_type=windows
15165   shrext_cmds=".dll"
15166   need_version=no
15167   need_lib_prefix=no
15168
15169   case $GCC,$host_os in
15170   yes,cygwin* | yes,mingw* | yes,pw32*)
15171     library_names_spec='$libname.dll.a'
15172     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15173     postinstall_cmds='base_file=`basename \${file}`~
15174       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15175       dldir=$destdir/`dirname \$dlpath`~
15176       test -d \$dldir || mkdir -p \$dldir~
15177       $install_prog $dir/$dlname \$dldir/$dlname'
15178     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15179       dlpath=$dir/\$dldll~
15180        $rm \$dlpath'
15181     shlibpath_overrides_runpath=yes
15182
15183     case $host_os in
15184     cygwin*)
15185       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15186       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15187       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15188       ;;
15189     mingw*)
15190       # MinGW DLLs use traditional 'lib' prefix
15191       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15192       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15193       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15194         # It is most probably a Windows format PATH printed by
15195         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15196         # path with ; separators, and with drive letters. We can handle the
15197         # drive letters (cygwin fileutils understands them), so leave them,
15198         # especially as we might pass files found there to a mingw objdump,
15199         # which wouldn't understand a cygwinified path. Ahh.
15200         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15201       else
15202         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15203       fi
15204       ;;
15205     pw32*)
15206       # pw32 DLLs use 'pw' prefix rather than 'lib'
15207       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15208       ;;
15209     esac
15210     ;;
15211
15212   linux*)
15213     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15214       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15215       supports_anon_versioning=no
15216       case `$LD -v 2>/dev/null` in
15217         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15218         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15219         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15220         *\ 2.11.*) ;; # other 2.11 versions
15221         *) supports_anon_versioning=yes ;;
15222       esac
15223       if test $supports_anon_versioning = yes; then
15224         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15226 $echo "local: *; };" >> $output_objdir/$libname.ver~
15227         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15228       else
15229         $archive_expsym_cmds="$archive_cmds"
15230       fi
15231     else
15232       ld_shlibs=no
15233     fi
15234     ;;
15235
15236   *)
15237     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15238     ;;
15239   esac
15240   dynamic_linker='Win32 ld.exe'
15241   # FIXME: first we should search . and the directory the executable is in
15242   shlibpath_var=PATH
15243   ;;
15244
15245 darwin* | rhapsody*)
15246   dynamic_linker="$host_os dyld"
15247   version_type=darwin
15248   need_lib_prefix=no
15249   need_version=no
15250   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15251   soname_spec='${libname}${release}${major}$shared_ext'
15252   shlibpath_overrides_runpath=yes
15253   shlibpath_var=DYLD_LIBRARY_PATH
15254   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15255   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15256   if test "$GCC" = yes; then
15257     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"`
15258   else
15259     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15260   fi
15261   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15262   ;;
15263
15264 dgux*)
15265   version_type=linux
15266   need_lib_prefix=no
15267   need_version=no
15268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15269   soname_spec='${libname}${release}${shared_ext}$major'
15270   shlibpath_var=LD_LIBRARY_PATH
15271   ;;
15272
15273 freebsd1*)
15274   dynamic_linker=no
15275   ;;
15276
15277 kfreebsd*-gnu)
15278   version_type=linux
15279   need_lib_prefix=no
15280   need_version=no
15281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15282   soname_spec='${libname}${release}${shared_ext}$major'
15283   shlibpath_var=LD_LIBRARY_PATH
15284   shlibpath_overrides_runpath=no
15285   hardcode_into_libs=yes
15286   dynamic_linker='GNU ld.so'
15287   ;;
15288
15289 freebsd* | dragonfly*)
15290   # DragonFly does not have aout.  When/if they implement a new
15291   # versioning mechanism, adjust this.
15292   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15293   version_type=freebsd-$objformat
15294   case $version_type in
15295     freebsd-elf*)
15296       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15297       need_version=no
15298       need_lib_prefix=no
15299       ;;
15300     freebsd-*)
15301       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15302       need_version=yes
15303       ;;
15304   esac
15305   shlibpath_var=LD_LIBRARY_PATH
15306   case $host_os in
15307   freebsd2*)
15308     shlibpath_overrides_runpath=yes
15309     ;;
15310   freebsd3.[01]* | freebsdelf3.[01]*)
15311     shlibpath_overrides_runpath=yes
15312     hardcode_into_libs=yes
15313     ;;
15314   *) # from 3.2 on
15315     shlibpath_overrides_runpath=no
15316     hardcode_into_libs=yes
15317     ;;
15318   esac
15319   ;;
15320
15321 gnu*)
15322   version_type=linux
15323   need_lib_prefix=no
15324   need_version=no
15325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15326   soname_spec='${libname}${release}${shared_ext}$major'
15327   shlibpath_var=LD_LIBRARY_PATH
15328   hardcode_into_libs=yes
15329   ;;
15330
15331 hpux9* | hpux10* | hpux11*)
15332   # Give a soname corresponding to the major version so that dld.sl refuses to
15333   # link against other versions.
15334   version_type=sunos
15335   need_lib_prefix=no
15336   need_version=no
15337   case "$host_cpu" in
15338   ia64*)
15339     shrext_cmds='.so'
15340     hardcode_into_libs=yes
15341     dynamic_linker="$host_os dld.so"
15342     shlibpath_var=LD_LIBRARY_PATH
15343     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345     soname_spec='${libname}${release}${shared_ext}$major'
15346     if test "X$HPUX_IA64_MODE" = X32; then
15347       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15348     else
15349       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15350     fi
15351     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15352     ;;
15353    hppa*64*)
15354      shrext_cmds='.sl'
15355      hardcode_into_libs=yes
15356      dynamic_linker="$host_os dld.sl"
15357      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15358      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15359      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360      soname_spec='${libname}${release}${shared_ext}$major'
15361      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15362      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15363      ;;
15364    *)
15365     shrext_cmds='.sl'
15366     dynamic_linker="$host_os dld.sl"
15367     shlibpath_var=SHLIB_PATH
15368     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370     soname_spec='${libname}${release}${shared_ext}$major'
15371     ;;
15372   esac
15373   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15374   postinstall_cmds='chmod 555 $lib'
15375   ;;
15376
15377 irix5* | irix6* | nonstopux*)
15378   case $host_os in
15379     nonstopux*) version_type=nonstopux ;;
15380     *)
15381         if test "$lt_cv_prog_gnu_ld" = yes; then
15382                 version_type=linux
15383         else
15384                 version_type=irix
15385         fi ;;
15386   esac
15387   need_lib_prefix=no
15388   need_version=no
15389   soname_spec='${libname}${release}${shared_ext}$major'
15390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15391   case $host_os in
15392   irix5* | nonstopux*)
15393     libsuff= shlibsuff=
15394     ;;
15395   *)
15396     case $LD in # libtool.m4 will add one of these switches to LD
15397     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15398       libsuff= shlibsuff= libmagic=32-bit;;
15399     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15400       libsuff=32 shlibsuff=N32 libmagic=N32;;
15401     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15402       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15403     *) libsuff= shlibsuff= libmagic=never-match;;
15404     esac
15405     ;;
15406   esac
15407   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15408   shlibpath_overrides_runpath=no
15409   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15410   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15411   hardcode_into_libs=yes
15412   ;;
15413
15414 # No shared lib support for Linux oldld, aout, or coff.
15415 linux*oldld* | linux*aout* | linux*coff*)
15416   dynamic_linker=no
15417   ;;
15418
15419 # This must be Linux ELF.
15420 linux*)
15421   version_type=linux
15422   need_lib_prefix=no
15423   need_version=no
15424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15425   soname_spec='${libname}${release}${shared_ext}$major'
15426   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15427   shlibpath_var=LD_LIBRARY_PATH
15428   shlibpath_overrides_runpath=no
15429   # This implies no fast_install, which is unacceptable.
15430   # Some rework will be needed to allow for fast_install
15431   # before this can be enabled.
15432   hardcode_into_libs=yes
15433
15434   # Append ld.so.conf contents to the search path
15435   if test -f /etc/ld.so.conf; then
15436     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15437     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15438   fi
15439
15440   case $host_cpu:$lt_cv_cc_64bit_output in
15441   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
15442     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
15443     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
15444     ;;
15445   esac
15446
15447   # We used to test for /lib/ld.so.1 and disable shared libraries on
15448   # powerpc, because MkLinux only supported shared libraries with the
15449   # GNU dynamic linker.  Since this was broken with cross compilers,
15450   # most powerpc-linux boxes support dynamic linking these days and
15451   # people can always --disable-shared, the test was removed, and we
15452   # assume the GNU/Linux dynamic linker is in use.
15453   dynamic_linker='GNU/Linux ld.so'
15454
15455   # Find out which ABI we are using (multilib Linux x86_64 hack).
15456   libsuff=
15457   case "$host_cpu" in
15458   x86_64*)
15459     echo '#line 15459 "configure"' > conftest.$ac_ext
15460     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461   (eval $ac_compile) 2>&5
15462   ac_status=$?
15463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); }; then
15465       case `/usr/bin/file conftest.$ac_objext` in
15466       *64-bit*)
15467         libsuff=64
15468         ;;
15469       esac
15470     fi
15471     rm -rf conftest*
15472     ;;
15473   *)
15474     ;;
15475   esac
15476   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15477   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15478   ;;
15479
15480 knetbsd*-gnu)
15481   version_type=linux
15482   need_lib_prefix=no
15483   need_version=no
15484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15485   soname_spec='${libname}${release}${shared_ext}$major'
15486   shlibpath_var=LD_LIBRARY_PATH
15487   shlibpath_overrides_runpath=no
15488   hardcode_into_libs=yes
15489   dynamic_linker='GNU ld.so'
15490   ;;
15491
15492 netbsd*)
15493   version_type=sunos
15494   need_lib_prefix=no
15495   need_version=no
15496   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15497     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15498     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15499     dynamic_linker='NetBSD (a.out) ld.so'
15500   else
15501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15502     soname_spec='${libname}${release}${shared_ext}$major'
15503     dynamic_linker='NetBSD ld.elf_so'
15504   fi
15505   shlibpath_var=LD_LIBRARY_PATH
15506   shlibpath_overrides_runpath=yes
15507   hardcode_into_libs=yes
15508   ;;
15509
15510 newsos6)
15511   version_type=linux
15512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513   shlibpath_var=LD_LIBRARY_PATH
15514   shlibpath_overrides_runpath=yes
15515   ;;
15516
15517 nto-qnx*)
15518   version_type=linux
15519   need_lib_prefix=no
15520   need_version=no
15521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522   soname_spec='${libname}${release}${shared_ext}$major'
15523   shlibpath_var=LD_LIBRARY_PATH
15524   shlibpath_overrides_runpath=yes
15525   ;;
15526
15527 openbsd*)
15528   version_type=sunos
15529   need_lib_prefix=no
15530   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15531   case $host_os in
15532     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15533     *)                         need_version=no  ;;
15534   esac
15535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15537   shlibpath_var=LD_LIBRARY_PATH
15538   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15539     case $host_os in
15540       openbsd2.[89] | openbsd2.[89].*)
15541         shlibpath_overrides_runpath=no
15542         ;;
15543       *)
15544         shlibpath_overrides_runpath=yes
15545         ;;
15546       esac
15547   else
15548     shlibpath_overrides_runpath=yes
15549   fi
15550   ;;
15551
15552 os2*)
15553   libname_spec='$name'
15554   shrext_cmds=".dll"
15555   need_lib_prefix=no
15556   library_names_spec='$libname${shared_ext} $libname.a'
15557   dynamic_linker='OS/2 ld.exe'
15558   shlibpath_var=LIBPATH
15559   ;;
15560
15561 osf3* | osf4* | osf5*)
15562   version_type=osf
15563   need_lib_prefix=no
15564   need_version=no
15565   soname_spec='${libname}${release}${shared_ext}$major'
15566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567   shlibpath_var=LD_LIBRARY_PATH
15568   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15569   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15570   ;;
15571
15572 sco3.2v5*)
15573   version_type=osf
15574   soname_spec='${libname}${release}${shared_ext}$major'
15575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15576   shlibpath_var=LD_LIBRARY_PATH
15577   ;;
15578
15579 solaris*)
15580   version_type=linux
15581   need_lib_prefix=no
15582   need_version=no
15583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15584   soname_spec='${libname}${release}${shared_ext}$major'
15585   shlibpath_var=LD_LIBRARY_PATH
15586   shlibpath_overrides_runpath=yes
15587   hardcode_into_libs=yes
15588   # ldd complains unless libraries are executable
15589   postinstall_cmds='chmod +x $lib'
15590   ;;
15591
15592 sunos4*)
15593   version_type=sunos
15594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15595   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15596   shlibpath_var=LD_LIBRARY_PATH
15597   shlibpath_overrides_runpath=yes
15598   if test "$with_gnu_ld" = yes; then
15599     need_lib_prefix=no
15600   fi
15601   need_version=yes
15602   ;;
15603
15604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15605   version_type=linux
15606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607   soname_spec='${libname}${release}${shared_ext}$major'
15608   shlibpath_var=LD_LIBRARY_PATH
15609   case $host_vendor in
15610     sni)
15611       shlibpath_overrides_runpath=no
15612       need_lib_prefix=no
15613       export_dynamic_flag_spec='${wl}-Blargedynsym'
15614       runpath_var=LD_RUN_PATH
15615       ;;
15616     siemens)
15617       need_lib_prefix=no
15618       ;;
15619     motorola)
15620       need_lib_prefix=no
15621       need_version=no
15622       shlibpath_overrides_runpath=no
15623       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15624       ;;
15625   esac
15626   ;;
15627
15628 sysv4*MP*)
15629   if test -d /usr/nec ;then
15630     version_type=linux
15631     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15632     soname_spec='$libname${shared_ext}.$major'
15633     shlibpath_var=LD_LIBRARY_PATH
15634   fi
15635   ;;
15636
15637 uts4*)
15638   version_type=linux
15639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640   soname_spec='${libname}${release}${shared_ext}$major'
15641   shlibpath_var=LD_LIBRARY_PATH
15642   ;;
15643
15644 *)
15645   dynamic_linker=no
15646   ;;
15647 esac
15648 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15649 echo "${ECHO_T}$dynamic_linker" >&6
15650 test "$dynamic_linker" = no && can_build_shared=no
15651
15652 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15653 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15654 hardcode_action_F77=
15655 if test -n "$hardcode_libdir_flag_spec_F77" || \
15656    test -n "$runpath_var_F77" || \
15657    test "X$hardcode_automatic_F77" = "Xyes" ; then
15658
15659   # We can hardcode non-existant directories.
15660   if test "$hardcode_direct_F77" != no &&
15661      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15662      # have to relink, otherwise we might link with an installed library
15663      # when we should be linking with a yet-to-be-installed one
15664      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15665      test "$hardcode_minus_L_F77" != no; then
15666     # Linking always hardcodes the temporary library directory.
15667     hardcode_action_F77=relink
15668   else
15669     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15670     hardcode_action_F77=immediate
15671   fi
15672 else
15673   # We cannot hardcode anything, or else we can only hardcode existing
15674   # directories.
15675   hardcode_action_F77=unsupported
15676 fi
15677 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15678 echo "${ECHO_T}$hardcode_action_F77" >&6
15679
15680 if test "$hardcode_action_F77" = relink; then
15681   # Fast installation is not supported
15682   enable_fast_install=no
15683 elif test "$shlibpath_overrides_runpath" = yes ||
15684      test "$enable_shared" = no; then
15685   # Fast installation is not necessary
15686   enable_fast_install=needless
15687 fi
15688
15689 striplib=
15690 old_striplib=
15691 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15692 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15693 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15694   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15695   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15696   echo "$as_me:$LINENO: result: yes" >&5
15697 echo "${ECHO_T}yes" >&6
15698 else
15699 # FIXME - insert some real tests, host_os isn't really good enough
15700   case $host_os in
15701    darwin*)
15702        if test -n "$STRIP" ; then
15703          striplib="$STRIP -x"
15704          echo "$as_me:$LINENO: result: yes" >&5
15705 echo "${ECHO_T}yes" >&6
15706        else
15707   echo "$as_me:$LINENO: result: no" >&5
15708 echo "${ECHO_T}no" >&6
15709 fi
15710        ;;
15711    *)
15712   echo "$as_me:$LINENO: result: no" >&5
15713 echo "${ECHO_T}no" >&6
15714     ;;
15715   esac
15716 fi
15717
15718
15719
15720 # The else clause should only fire when bootstrapping the
15721 # libtool distribution, otherwise you forgot to ship ltmain.sh
15722 # with your package, and you will get complaints that there are
15723 # no rules to generate ltmain.sh.
15724 if test -f "$ltmain"; then
15725   # See if we are running on zsh, and set the options which allow our commands through
15726   # without removal of \ escapes.
15727   if test -n "${ZSH_VERSION+set}" ; then
15728     setopt NO_GLOB_SUBST
15729   fi
15730   # Now quote all the things that may contain metacharacters while being
15731   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15732   # variables and quote the copies for generation of the libtool script.
15733   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15734     SED SHELL STRIP \
15735     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15736     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15737     deplibs_check_method reload_flag reload_cmds need_locks \
15738     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15739     lt_cv_sys_global_symbol_to_c_name_address \
15740     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15741     old_postinstall_cmds old_postuninstall_cmds \
15742     compiler_F77 \
15743     CC_F77 \
15744     LD_F77 \
15745     lt_prog_compiler_wl_F77 \
15746     lt_prog_compiler_pic_F77 \
15747     lt_prog_compiler_static_F77 \
15748     lt_prog_compiler_no_builtin_flag_F77 \
15749     export_dynamic_flag_spec_F77 \
15750     thread_safe_flag_spec_F77 \
15751     whole_archive_flag_spec_F77 \
15752     enable_shared_with_static_runtimes_F77 \
15753     old_archive_cmds_F77 \
15754     old_archive_from_new_cmds_F77 \
15755     predep_objects_F77 \
15756     postdep_objects_F77 \
15757     predeps_F77 \
15758     postdeps_F77 \
15759     compiler_lib_search_path_F77 \
15760     archive_cmds_F77 \
15761     archive_expsym_cmds_F77 \
15762     postinstall_cmds_F77 \
15763     postuninstall_cmds_F77 \
15764     old_archive_from_expsyms_cmds_F77 \
15765     allow_undefined_flag_F77 \
15766     no_undefined_flag_F77 \
15767     export_symbols_cmds_F77 \
15768     hardcode_libdir_flag_spec_F77 \
15769     hardcode_libdir_flag_spec_ld_F77 \
15770     hardcode_libdir_separator_F77 \
15771     hardcode_automatic_F77 \
15772     module_cmds_F77 \
15773     module_expsym_cmds_F77 \
15774     lt_cv_prog_compiler_c_o_F77 \
15775     exclude_expsyms_F77 \
15776     include_expsyms_F77; do
15777
15778     case $var in
15779     old_archive_cmds_F77 | \
15780     old_archive_from_new_cmds_F77 | \
15781     archive_cmds_F77 | \
15782     archive_expsym_cmds_F77 | \
15783     module_cmds_F77 | \
15784     module_expsym_cmds_F77 | \
15785     old_archive_from_expsyms_cmds_F77 | \
15786     export_symbols_cmds_F77 | \
15787     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15788     postinstall_cmds | postuninstall_cmds | \
15789     old_postinstall_cmds | old_postuninstall_cmds | \
15790     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15791       # Double-quote double-evaled strings.
15792       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15793       ;;
15794     *)
15795       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15796       ;;
15797     esac
15798   done
15799
15800   case $lt_echo in
15801   *'\$0 --fallback-echo"')
15802     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15803     ;;
15804   esac
15805
15806 cfgfile="$ofile"
15807
15808   cat <<__EOF__ >> "$cfgfile"
15809 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15810
15811 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15812
15813 # Shell to use when invoking shell scripts.
15814 SHELL=$lt_SHELL
15815
15816 # Whether or not to build shared libraries.
15817 build_libtool_libs=$enable_shared
15818
15819 # Whether or not to build static libraries.
15820 build_old_libs=$enable_static
15821
15822 # Whether or not to add -lc for building shared libraries.
15823 build_libtool_need_lc=$archive_cmds_need_lc_F77
15824
15825 # Whether or not to disallow shared libs when runtime libs are static
15826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15827
15828 # Whether or not to optimize for fast installation.
15829 fast_install=$enable_fast_install
15830
15831 # The host system.
15832 host_alias=$host_alias
15833 host=$host
15834 host_os=$host_os
15835
15836 # The build system.
15837 build_alias=$build_alias
15838 build=$build
15839 build_os=$build_os
15840
15841 # An echo program that does not interpret backslashes.
15842 echo=$lt_echo
15843
15844 # The archiver.
15845 AR=$lt_AR
15846 AR_FLAGS=$lt_AR_FLAGS
15847
15848 # A C compiler.
15849 LTCC=$lt_LTCC
15850
15851 # A language-specific compiler.
15852 CC=$lt_compiler_F77
15853
15854 # Is the compiler the GNU C compiler?
15855 with_gcc=$GCC_F77
15856
15857 # An ERE matcher.
15858 EGREP=$lt_EGREP
15859
15860 # The linker used to build libraries.
15861 LD=$lt_LD_F77
15862
15863 # Whether we need hard or soft links.
15864 LN_S=$lt_LN_S
15865
15866 # A BSD-compatible nm program.
15867 NM=$lt_NM
15868
15869 # A symbol stripping program
15870 STRIP=$lt_STRIP
15871
15872 # Used to examine libraries when file_magic_cmd begins "file"
15873 MAGIC_CMD=$MAGIC_CMD
15874
15875 # Used on cygwin: DLL creation program.
15876 DLLTOOL="$DLLTOOL"
15877
15878 # Used on cygwin: object dumper.
15879 OBJDUMP="$OBJDUMP"
15880
15881 # Used on cygwin: assembler.
15882 AS="$AS"
15883
15884 # The name of the directory that contains temporary libtool files.
15885 objdir=$objdir
15886
15887 # How to create reloadable object files.
15888 reload_flag=$lt_reload_flag
15889 reload_cmds=$lt_reload_cmds
15890
15891 # How to pass a linker flag through the compiler.
15892 wl=$lt_lt_prog_compiler_wl_F77
15893
15894 # Object file suffix (normally "o").
15895 objext="$ac_objext"
15896
15897 # Old archive suffix (normally "a").
15898 libext="$libext"
15899
15900 # Shared library suffix (normally ".so").
15901 shrext_cmds='$shrext_cmds'
15902
15903 # Executable file suffix (normally "").
15904 exeext="$exeext"
15905
15906 # Additional compiler flags for building library objects.
15907 pic_flag=$lt_lt_prog_compiler_pic_F77
15908 pic_mode=$pic_mode
15909
15910 # What is the maximum length of a command?
15911 max_cmd_len=$lt_cv_sys_max_cmd_len
15912
15913 # Does compiler simultaneously support -c and -o options?
15914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15915
15916 # Must we lock files when doing compilation?
15917 need_locks=$lt_need_locks
15918
15919 # Do we need the lib prefix for modules?
15920 need_lib_prefix=$need_lib_prefix
15921
15922 # Do we need a version for libraries?
15923 need_version=$need_version
15924
15925 # Whether dlopen is supported.
15926 dlopen_support=$enable_dlopen
15927
15928 # Whether dlopen of programs is supported.
15929 dlopen_self=$enable_dlopen_self
15930
15931 # Whether dlopen of statically linked programs is supported.
15932 dlopen_self_static=$enable_dlopen_self_static
15933
15934 # Compiler flag to prevent dynamic linking.
15935 link_static_flag=$lt_lt_prog_compiler_static_F77
15936
15937 # Compiler flag to turn off builtin functions.
15938 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15939
15940 # Compiler flag to allow reflexive dlopens.
15941 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15942
15943 # Compiler flag to generate shared objects directly from archives.
15944 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15945
15946 # Compiler flag to generate thread-safe objects.
15947 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15948
15949 # Library versioning type.
15950 version_type=$version_type
15951
15952 # Format of library name prefix.
15953 libname_spec=$lt_libname_spec
15954
15955 # List of archive names.  First name is the real one, the rest are links.
15956 # The last name is the one that the linker finds with -lNAME.
15957 library_names_spec=$lt_library_names_spec
15958
15959 # The coded name of the library, if different from the real name.
15960 soname_spec=$lt_soname_spec
15961
15962 # Commands used to build and install an old-style archive.
15963 RANLIB=$lt_RANLIB
15964 old_archive_cmds=$lt_old_archive_cmds_F77
15965 old_postinstall_cmds=$lt_old_postinstall_cmds
15966 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15967
15968 # Create an old-style archive from a shared archive.
15969 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15970
15971 # Create a temporary old-style archive to link instead of a shared archive.
15972 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15973
15974 # Commands used to build and install a shared archive.
15975 archive_cmds=$lt_archive_cmds_F77
15976 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15977 postinstall_cmds=$lt_postinstall_cmds
15978 postuninstall_cmds=$lt_postuninstall_cmds
15979
15980 # Commands used to build a loadable module (assumed same as above if empty)
15981 module_cmds=$lt_module_cmds_F77
15982 module_expsym_cmds=$lt_module_expsym_cmds_F77
15983
15984 # Commands to strip libraries.
15985 old_striplib=$lt_old_striplib
15986 striplib=$lt_striplib
15987
15988 # Dependencies to place before the objects being linked to create a
15989 # shared library.
15990 predep_objects=$lt_predep_objects_F77
15991
15992 # Dependencies to place after the objects being linked to create a
15993 # shared library.
15994 postdep_objects=$lt_postdep_objects_F77
15995
15996 # Dependencies to place before the objects being linked to create a
15997 # shared library.
15998 predeps=$lt_predeps_F77
15999
16000 # Dependencies to place after the objects being linked to create a
16001 # shared library.
16002 postdeps=$lt_postdeps_F77
16003
16004 # The library search path used internally by the compiler when linking
16005 # a shared library.
16006 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16007
16008 # Method to check whether dependent libraries are shared objects.
16009 deplibs_check_method=$lt_deplibs_check_method
16010
16011 # Command to use when deplibs_check_method == file_magic.
16012 file_magic_cmd=$lt_file_magic_cmd
16013
16014 # Flag that allows shared libraries with undefined symbols to be built.
16015 allow_undefined_flag=$lt_allow_undefined_flag_F77
16016
16017 # Flag that forces no undefined symbols.
16018 no_undefined_flag=$lt_no_undefined_flag_F77
16019
16020 # Commands used to finish a libtool library installation in a directory.
16021 finish_cmds=$lt_finish_cmds
16022
16023 # Same as above, but a single script fragment to be evaled but not shown.
16024 finish_eval=$lt_finish_eval
16025
16026 # Take the output of nm and produce a listing of raw symbols and C names.
16027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16028
16029 # Transform the output of nm in a proper C declaration
16030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16031
16032 # Transform the output of nm in a C name address pair
16033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16034
16035 # This is the shared library runtime path variable.
16036 runpath_var=$runpath_var
16037
16038 # This is the shared library path variable.
16039 shlibpath_var=$shlibpath_var
16040
16041 # Is shlibpath searched before the hard-coded library search path?
16042 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16043
16044 # How to hardcode a shared library path into an executable.
16045 hardcode_action=$hardcode_action_F77
16046
16047 # Whether we should hardcode library paths into libraries.
16048 hardcode_into_libs=$hardcode_into_libs
16049
16050 # Flag to hardcode \$libdir into a binary during linking.
16051 # This must work even if \$libdir does not exist.
16052 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16053
16054 # If ld is used when linking, flag to hardcode \$libdir into
16055 # a binary during linking. This must work even if \$libdir does
16056 # not exist.
16057 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16058
16059 # Whether we need a single -rpath flag with a separated argument.
16060 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16061
16062 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16063 # resulting binary.
16064 hardcode_direct=$hardcode_direct_F77
16065
16066 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16067 # resulting binary.
16068 hardcode_minus_L=$hardcode_minus_L_F77
16069
16070 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16071 # the resulting binary.
16072 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16073
16074 # Set to yes if building a shared library automatically hardcodes DIR into the library
16075 # and all subsequent libraries and executables linked against it.
16076 hardcode_automatic=$hardcode_automatic_F77
16077
16078 # Variables whose values should be saved in libtool wrapper scripts and
16079 # restored at relink time.
16080 variables_saved_for_relink="$variables_saved_for_relink"
16081
16082 # Whether libtool must link a program against all its dependency libraries.
16083 link_all_deplibs=$link_all_deplibs_F77
16084
16085 # Compile-time system search path for libraries
16086 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16087
16088 # Run-time system search path for libraries
16089 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16090
16091 # Fix the shell variable \$srcfile for the compiler.
16092 fix_srcfile_path="$fix_srcfile_path_F77"
16093
16094 # Set to yes if exported symbols are required.
16095 always_export_symbols=$always_export_symbols_F77
16096
16097 # The commands to list exported symbols.
16098 export_symbols_cmds=$lt_export_symbols_cmds_F77
16099
16100 # The commands to extract the exported symbol list from a shared archive.
16101 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16102
16103 # Symbols that should not be listed in the preloaded symbols.
16104 exclude_expsyms=$lt_exclude_expsyms_F77
16105
16106 # Symbols that must always be exported.
16107 include_expsyms=$lt_include_expsyms_F77
16108
16109 # ### END LIBTOOL TAG CONFIG: $tagname
16110
16111 __EOF__
16112
16113
16114 else
16115   # If there is no Makefile yet, we rely on a make rule to execute
16116   # `config.status --recheck' to rerun these tests and create the
16117   # libtool script then.
16118   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16119   if test -f "$ltmain_in"; then
16120     test -f Makefile && make "$ltmain"
16121   fi
16122 fi
16123
16124
16125 ac_ext=c
16126 ac_cpp='$CPP $CPPFLAGS'
16127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16130
16131 CC="$lt_save_CC"
16132
16133         else
16134           tagname=""
16135         fi
16136         ;;
16137
16138       GCJ)
16139         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16140
16141
16142
16143 # Source file extension for Java test sources.
16144 ac_ext=java
16145
16146 # Object file extension for compiled Java test sources.
16147 objext=o
16148 objext_GCJ=$objext
16149
16150 # Code to be used in simple compile tests
16151 lt_simple_compile_test_code="class foo {}\n"
16152
16153 # Code to be used in simple link tests
16154 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16155
16156 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16157
16158 # If no C compiler was specified, use CC.
16159 LTCC=${LTCC-"$CC"}
16160
16161 # Allow CC to be a program name with arguments.
16162 compiler=$CC
16163
16164
16165 # save warnings/boilerplate of simple test code
16166 ac_outfile=conftest.$ac_objext
16167 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16168 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16169 _lt_compiler_boilerplate=`cat conftest.err`
16170 $rm conftest*
16171
16172 ac_outfile=conftest.$ac_objext
16173 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16174 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16175 _lt_linker_boilerplate=`cat conftest.err`
16176 $rm conftest*
16177
16178
16179 # Allow CC to be a program name with arguments.
16180 lt_save_CC="$CC"
16181 CC=${GCJ-"gcj"}
16182 compiler=$CC
16183 compiler_GCJ=$CC
16184 for cc_temp in $compiler""; do
16185   case $cc_temp in
16186     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16187     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16188     \-*) ;;
16189     *) break;;
16190   esac
16191 done
16192 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16193
16194
16195 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16196 archive_cmds_need_lc_GCJ=no
16197
16198 old_archive_cmds_GCJ=$old_archive_cmds
16199
16200
16201 lt_prog_compiler_no_builtin_flag_GCJ=
16202
16203 if test "$GCC" = yes; then
16204   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16205
16206
16207 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16208 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16209 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16210   echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212   lt_cv_prog_compiler_rtti_exceptions=no
16213   ac_outfile=conftest.$ac_objext
16214    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16215    lt_compiler_flag="-fno-rtti -fno-exceptions"
16216    # Insert the option either (1) after the last *FLAGS variable, or
16217    # (2) before a word containing "conftest.", or (3) at the end.
16218    # Note that $ac_compile itself does not contain backslashes and begins
16219    # with a dollar sign (not a hyphen), so the echo should work correctly.
16220    # The option is referenced via a variable to avoid confusing sed.
16221    lt_compile=`echo "$ac_compile" | $SED \
16222    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16223    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16224    -e 's:$: $lt_compiler_flag:'`
16225    (eval echo "\"\$as_me:16225: $lt_compile\"" >&5)
16226    (eval "$lt_compile" 2>conftest.err)
16227    ac_status=$?
16228    cat conftest.err >&5
16229    echo "$as_me:16229: \$? = $ac_status" >&5
16230    if (exit $ac_status) && test -s "$ac_outfile"; then
16231      # The compiler can only warn and ignore the option if not recognized
16232      # So say no if there are warnings other than the usual output.
16233      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16234      $SED '/^$/d' conftest.err >conftest.er2
16235      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16236        lt_cv_prog_compiler_rtti_exceptions=yes
16237      fi
16238    fi
16239    $rm conftest*
16240
16241 fi
16242 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16243 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16244
16245 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16246     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16247 else
16248     :
16249 fi
16250
16251 fi
16252
16253 lt_prog_compiler_wl_GCJ=
16254 lt_prog_compiler_pic_GCJ=
16255 lt_prog_compiler_static_GCJ=
16256
16257 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16258 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16259
16260   if test "$GCC" = yes; then
16261     lt_prog_compiler_wl_GCJ='-Wl,'
16262     lt_prog_compiler_static_GCJ='-static'
16263
16264     case $host_os in
16265       aix*)
16266       # All AIX code is PIC.
16267       if test "$host_cpu" = ia64; then
16268         # AIX 5 now supports IA64 processor
16269         lt_prog_compiler_static_GCJ='-Bstatic'
16270       fi
16271       ;;
16272
16273     amigaos*)
16274       # FIXME: we need at least 68020 code to build shared libraries, but
16275       # adding the `-m68020' flag to GCC prevents building anything better,
16276       # like `-m68040'.
16277       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16278       ;;
16279
16280     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16281       # PIC is the default for these OSes.
16282       ;;
16283
16284     mingw* | pw32* | os2*)
16285       # This hack is so that the source file can tell whether it is being
16286       # built for inclusion in a dll (and should export symbols for example).
16287       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16288       ;;
16289
16290     darwin* | rhapsody*)
16291       # PIC is the default on this platform
16292       # Common symbols not allowed in MH_DYLIB files
16293       lt_prog_compiler_pic_GCJ='-fno-common'
16294       ;;
16295
16296     msdosdjgpp*)
16297       # Just because we use GCC doesn't mean we suddenly get shared libraries
16298       # on systems that don't support them.
16299       lt_prog_compiler_can_build_shared_GCJ=no
16300       enable_shared=no
16301       ;;
16302
16303     sysv4*MP*)
16304       if test -d /usr/nec; then
16305         lt_prog_compiler_pic_GCJ=-Kconform_pic
16306       fi
16307       ;;
16308
16309     hpux*)
16310       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16311       # not for PA HP-UX.
16312       case "$host_cpu" in
16313       hppa*64*|ia64*)
16314         # +Z the default
16315         ;;
16316       *)
16317         lt_prog_compiler_pic_GCJ='-fPIC'
16318         ;;
16319       esac
16320       ;;
16321
16322     *)
16323       lt_prog_compiler_pic_GCJ='-fPIC'
16324       ;;
16325     esac
16326   else
16327     # PORTME Check for flag to pass linker flags through the system compiler.
16328     case $host_os in
16329     aix*)
16330       lt_prog_compiler_wl_GCJ='-Wl,'
16331       if test "$host_cpu" = ia64; then
16332         # AIX 5 now supports IA64 processor
16333         lt_prog_compiler_static_GCJ='-Bstatic'
16334       else
16335         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16336       fi
16337       ;;
16338       darwin*)
16339         # PIC is the default on this platform
16340         # Common symbols not allowed in MH_DYLIB files
16341        case $cc_basename in
16342          xlc*)
16343          lt_prog_compiler_pic_GCJ='-qnocommon'
16344          lt_prog_compiler_wl_GCJ='-Wl,'
16345          ;;
16346        esac
16347        ;;
16348
16349     mingw* | pw32* | os2*)
16350       # This hack is so that the source file can tell whether it is being
16351       # built for inclusion in a dll (and should export symbols for example).
16352       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16353       ;;
16354
16355     hpux9* | hpux10* | hpux11*)
16356       lt_prog_compiler_wl_GCJ='-Wl,'
16357       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16358       # not for PA HP-UX.
16359       case "$host_cpu" in
16360       hppa*64*|ia64*)
16361         # +Z the default
16362         ;;
16363       *)
16364         lt_prog_compiler_pic_GCJ='+Z'
16365         ;;
16366       esac
16367       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16368       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16369       ;;
16370
16371     irix5* | irix6* | nonstopux*)
16372       lt_prog_compiler_wl_GCJ='-Wl,'
16373       # PIC (with -KPIC) is the default.
16374       lt_prog_compiler_static_GCJ='-non_shared'
16375       ;;
16376
16377     newsos6)
16378       lt_prog_compiler_pic_GCJ='-KPIC'
16379       lt_prog_compiler_static_GCJ='-Bstatic'
16380       ;;
16381
16382     linux*)
16383       case $cc_basename in
16384       icc* | ecc*)
16385         lt_prog_compiler_wl_GCJ='-Wl,'
16386         lt_prog_compiler_pic_GCJ='-KPIC'
16387         lt_prog_compiler_static_GCJ='-static'
16388         ;;
16389       pgcc* | pgf77* | pgf90*)
16390         # Portland Group compilers (*not* the Pentium gcc compiler,
16391         # which looks to be a dead project)
16392         lt_prog_compiler_wl_GCJ='-Wl,'
16393         lt_prog_compiler_pic_GCJ='-fpic'
16394         lt_prog_compiler_static_GCJ='-static'
16395         ;;
16396       ccc*)
16397         lt_prog_compiler_wl_GCJ='-Wl,'
16398         # All Alpha code is PIC.
16399         lt_prog_compiler_static_GCJ='-non_shared'
16400         ;;
16401       esac
16402       ;;
16403
16404     osf3* | osf4* | osf5*)
16405       lt_prog_compiler_wl_GCJ='-Wl,'
16406       # All OSF/1 code is PIC.
16407       lt_prog_compiler_static_GCJ='-non_shared'
16408       ;;
16409
16410     sco3.2v5*)
16411       lt_prog_compiler_pic_GCJ='-Kpic'
16412       lt_prog_compiler_static_GCJ='-dn'
16413       ;;
16414
16415     solaris*)
16416       lt_prog_compiler_pic_GCJ='-KPIC'
16417       lt_prog_compiler_static_GCJ='-Bstatic'
16418       case $cc_basename in
16419       f77* | f90* | f95*)
16420         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16421       *)
16422         lt_prog_compiler_wl_GCJ='-Wl,';;
16423       esac
16424       ;;
16425
16426     sunos4*)
16427       lt_prog_compiler_wl_GCJ='-Qoption ld '
16428       lt_prog_compiler_pic_GCJ='-PIC'
16429       lt_prog_compiler_static_GCJ='-Bstatic'
16430       ;;
16431
16432     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16433       lt_prog_compiler_wl_GCJ='-Wl,'
16434       lt_prog_compiler_pic_GCJ='-KPIC'
16435       lt_prog_compiler_static_GCJ='-Bstatic'
16436       ;;
16437
16438     sysv4*MP*)
16439       if test -d /usr/nec ;then
16440         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16441         lt_prog_compiler_static_GCJ='-Bstatic'
16442       fi
16443       ;;
16444
16445     unicos*)
16446       lt_prog_compiler_wl_GCJ='-Wl,'
16447       lt_prog_compiler_can_build_shared_GCJ=no
16448       ;;
16449
16450     uts4*)
16451       lt_prog_compiler_pic_GCJ='-pic'
16452       lt_prog_compiler_static_GCJ='-Bstatic'
16453       ;;
16454
16455     *)
16456       lt_prog_compiler_can_build_shared_GCJ=no
16457       ;;
16458     esac
16459   fi
16460
16461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16462 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16463
16464 #
16465 # Check to make sure the PIC flag actually works.
16466 #
16467 if test -n "$lt_prog_compiler_pic_GCJ"; then
16468
16469 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16470 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16471 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16472   echo $ECHO_N "(cached) $ECHO_C" >&6
16473 else
16474   lt_prog_compiler_pic_works_GCJ=no
16475   ac_outfile=conftest.$ac_objext
16476    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16477    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16478    # Insert the option either (1) after the last *FLAGS variable, or
16479    # (2) before a word containing "conftest.", or (3) at the end.
16480    # Note that $ac_compile itself does not contain backslashes and begins
16481    # with a dollar sign (not a hyphen), so the echo should work correctly.
16482    # The option is referenced via a variable to avoid confusing sed.
16483    lt_compile=`echo "$ac_compile" | $SED \
16484    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16485    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16486    -e 's:$: $lt_compiler_flag:'`
16487    (eval echo "\"\$as_me:16487: $lt_compile\"" >&5)
16488    (eval "$lt_compile" 2>conftest.err)
16489    ac_status=$?
16490    cat conftest.err >&5
16491    echo "$as_me:16491: \$? = $ac_status" >&5
16492    if (exit $ac_status) && test -s "$ac_outfile"; then
16493      # The compiler can only warn and ignore the option if not recognized
16494      # So say no if there are warnings other than the usual output.
16495      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16496      $SED '/^$/d' conftest.err >conftest.er2
16497      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16498        lt_prog_compiler_pic_works_GCJ=yes
16499      fi
16500    fi
16501    $rm conftest*
16502
16503 fi
16504 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16505 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16506
16507 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16508     case $lt_prog_compiler_pic_GCJ in
16509      "" | " "*) ;;
16510      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16511      esac
16512 else
16513     lt_prog_compiler_pic_GCJ=
16514      lt_prog_compiler_can_build_shared_GCJ=no
16515 fi
16516
16517 fi
16518 case "$host_os" in
16519   # For platforms which do not support PIC, -DPIC is meaningless:
16520   *djgpp*)
16521     lt_prog_compiler_pic_GCJ=
16522     ;;
16523   *)
16524     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16525     ;;
16526 esac
16527
16528 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16529 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16530 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16531   echo $ECHO_N "(cached) $ECHO_C" >&6
16532 else
16533   lt_cv_prog_compiler_c_o_GCJ=no
16534    $rm -r conftest 2>/dev/null
16535    mkdir conftest
16536    cd conftest
16537    mkdir out
16538    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16539
16540    lt_compiler_flag="-o out/conftest2.$ac_objext"
16541    # Insert the option either (1) after the last *FLAGS variable, or
16542    # (2) before a word containing "conftest.", or (3) at the end.
16543    # Note that $ac_compile itself does not contain backslashes and begins
16544    # with a dollar sign (not a hyphen), so the echo should work correctly.
16545    lt_compile=`echo "$ac_compile" | $SED \
16546    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16547    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16548    -e 's:$: $lt_compiler_flag:'`
16549    (eval echo "\"\$as_me:16549: $lt_compile\"" >&5)
16550    (eval "$lt_compile" 2>out/conftest.err)
16551    ac_status=$?
16552    cat out/conftest.err >&5
16553    echo "$as_me:16553: \$? = $ac_status" >&5
16554    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16555    then
16556      # The compiler can only warn and ignore the option if not recognized
16557      # So say no if there are warnings
16558      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16559      $SED '/^$/d' out/conftest.err >out/conftest.er2
16560      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16561        lt_cv_prog_compiler_c_o_GCJ=yes
16562      fi
16563    fi
16564    chmod u+w .
16565    $rm conftest*
16566    # SGI C++ compiler will create directory out/ii_files/ for
16567    # template instantiation
16568    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16569    $rm out/* && rmdir out
16570    cd ..
16571    rmdir conftest
16572    $rm conftest*
16573
16574 fi
16575 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16576 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16577
16578
16579 hard_links="nottested"
16580 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16581   # do not overwrite the value of need_locks provided by the user
16582   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16583 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16584   hard_links=yes
16585   $rm conftest*
16586   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16587   touch conftest.a
16588   ln conftest.a conftest.b 2>&5 || hard_links=no
16589   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16590   echo "$as_me:$LINENO: result: $hard_links" >&5
16591 echo "${ECHO_T}$hard_links" >&6
16592   if test "$hard_links" = no; then
16593     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16594 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16595     need_locks=warn
16596   fi
16597 else
16598   need_locks=no
16599 fi
16600
16601 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16602 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16603
16604   runpath_var=
16605   allow_undefined_flag_GCJ=
16606   enable_shared_with_static_runtimes_GCJ=no
16607   archive_cmds_GCJ=
16608   archive_expsym_cmds_GCJ=
16609   old_archive_From_new_cmds_GCJ=
16610   old_archive_from_expsyms_cmds_GCJ=
16611   export_dynamic_flag_spec_GCJ=
16612   whole_archive_flag_spec_GCJ=
16613   thread_safe_flag_spec_GCJ=
16614   hardcode_libdir_flag_spec_GCJ=
16615   hardcode_libdir_flag_spec_ld_GCJ=
16616   hardcode_libdir_separator_GCJ=
16617   hardcode_direct_GCJ=no
16618   hardcode_minus_L_GCJ=no
16619   hardcode_shlibpath_var_GCJ=unsupported
16620   link_all_deplibs_GCJ=unknown
16621   hardcode_automatic_GCJ=no
16622   module_cmds_GCJ=
16623   module_expsym_cmds_GCJ=
16624   always_export_symbols_GCJ=no
16625   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16626   # include_expsyms should be a list of space-separated symbols to be *always*
16627   # included in the symbol list
16628   include_expsyms_GCJ=
16629   # exclude_expsyms can be an extended regexp of symbols to exclude
16630   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16631   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16632   # as well as any symbol that contains `d'.
16633   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16634   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16635   # platforms (ab)use it in PIC code, but their linkers get confused if
16636   # the symbol is explicitly referenced.  Since portable code cannot
16637   # rely on this symbol name, it's probably fine to never include it in
16638   # preloaded symbol tables.
16639   extract_expsyms_cmds=
16640   # Just being paranoid about ensuring that cc_basename is set.
16641   for cc_temp in $compiler""; do
16642   case $cc_temp in
16643     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16644     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16645     \-*) ;;
16646     *) break;;
16647   esac
16648 done
16649 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16650
16651   case $host_os in
16652   cygwin* | mingw* | pw32*)
16653     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16654     # When not using gcc, we currently assume that we are using
16655     # Microsoft Visual C++.
16656     if test "$GCC" != yes; then
16657       with_gnu_ld=no
16658     fi
16659     ;;
16660   openbsd*)
16661     with_gnu_ld=no
16662     ;;
16663   esac
16664
16665   ld_shlibs_GCJ=yes
16666   if test "$with_gnu_ld" = yes; then
16667     # If archive_cmds runs LD, not CC, wlarc should be empty
16668     wlarc='${wl}'
16669
16670     # Set some defaults for GNU ld with shared library support. These
16671     # are reset later if shared libraries are not supported. Putting them
16672     # here allows them to be overridden if necessary.
16673     runpath_var=LD_RUN_PATH
16674     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16675     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16676     # ancient GNU ld didn't support --whole-archive et. al.
16677     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16678         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16679       else
16680         whole_archive_flag_spec_GCJ=
16681     fi
16682     supports_anon_versioning=no
16683     case `$LD -v 2>/dev/null` in
16684       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16685       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16686       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16687       *\ 2.11.*) ;; # other 2.11 versions
16688       *) supports_anon_versioning=yes ;;
16689     esac
16690
16691     # See if GNU ld supports shared libraries.
16692     case $host_os in
16693     aix3* | aix4* | aix5*)
16694       # On AIX/PPC, the GNU linker is very broken
16695       if test "$host_cpu" != ia64; then
16696         ld_shlibs_GCJ=no
16697         cat <<EOF 1>&2
16698
16699 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16700 *** to be unable to reliably create shared libraries on AIX.
16701 *** Therefore, libtool is disabling shared libraries support.  If you
16702 *** really care for shared libraries, you may want to modify your PATH
16703 *** so that a non-GNU linker is found, and then restart.
16704
16705 EOF
16706       fi
16707       ;;
16708
16709     amigaos*)
16710       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)'
16711       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16712       hardcode_minus_L_GCJ=yes
16713
16714       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16715       # that the semantics of dynamic libraries on AmigaOS, at least up
16716       # to version 4, is to share data among multiple programs linked
16717       # with the same dynamic library.  Since this doesn't match the
16718       # behavior of shared libraries on other platforms, we can't use
16719       # them.
16720       ld_shlibs_GCJ=no
16721       ;;
16722
16723     beos*)
16724       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16725         allow_undefined_flag_GCJ=unsupported
16726         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16727         # support --undefined.  This deserves some investigation.  FIXME
16728         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16729       else
16730         ld_shlibs_GCJ=no
16731       fi
16732       ;;
16733
16734     cygwin* | mingw* | pw32*)
16735       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16736       # as there is no search path for DLLs.
16737       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16738       allow_undefined_flag_GCJ=unsupported
16739       always_export_symbols_GCJ=no
16740       enable_shared_with_static_runtimes_GCJ=yes
16741       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16742
16743       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16744         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16745         # If the export-symbols file already is a .def file (1st line
16746         # is EXPORTS), use it as is; otherwise, prepend...
16747         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16748           cp $export_symbols $output_objdir/$soname.def;
16749         else
16750           echo EXPORTS > $output_objdir/$soname.def;
16751           cat $export_symbols >> $output_objdir/$soname.def;
16752         fi~
16753         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16754       else
16755         ld_shlibs_GCJ=no
16756       fi
16757       ;;
16758
16759     linux*)
16760       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16761         tmp_addflag=
16762         case $cc_basename,$host_cpu in
16763         pgcc*)                          # Portland Group C compiler
16764           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'
16765           tmp_addflag=' $pic_flag'
16766           ;;
16767         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
16768           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'
16769           tmp_addflag=' $pic_flag -Mnomain' ;;
16770         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16771           tmp_addflag=' -i_dynamic' ;;
16772         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16773           tmp_addflag=' -i_dynamic -nofor_main' ;;
16774         ifc* | ifort*)                  # Intel Fortran compiler
16775           tmp_addflag=' -nofor_main' ;;
16776         esac
16777         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16778
16779         if test $supports_anon_versioning = yes; then
16780           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16781   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16782   $echo "local: *; };" >> $output_objdir/$libname.ver~
16783           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16784         fi
16785       else
16786         ld_shlibs_GCJ=no
16787       fi
16788       ;;
16789
16790     netbsd*)
16791       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16792         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16793         wlarc=
16794       else
16795         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16796         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16797       fi
16798       ;;
16799
16800     solaris* | sysv5*)
16801       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16802         ld_shlibs_GCJ=no
16803         cat <<EOF 1>&2
16804
16805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16806 *** create shared libraries on Solaris systems.  Therefore, libtool
16807 *** is disabling shared libraries support.  We urge you to upgrade GNU
16808 *** binutils to release 2.9.1 or newer.  Another option is to modify
16809 *** your PATH or compiler configuration so that the native linker is
16810 *** used, and then restart.
16811
16812 EOF
16813       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16814         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16815         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16816       else
16817         ld_shlibs_GCJ=no
16818       fi
16819       ;;
16820
16821     sunos4*)
16822       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16823       wlarc=
16824       hardcode_direct_GCJ=yes
16825       hardcode_shlibpath_var_GCJ=no
16826       ;;
16827
16828     *)
16829       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16830         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16831         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16832       else
16833         ld_shlibs_GCJ=no
16834       fi
16835       ;;
16836     esac
16837
16838     if test "$ld_shlibs_GCJ" = no; then
16839       runpath_var=
16840       hardcode_libdir_flag_spec_GCJ=
16841       export_dynamic_flag_spec_GCJ=
16842       whole_archive_flag_spec_GCJ=
16843     fi
16844   else
16845     # PORTME fill in a description of your system's linker (not GNU ld)
16846     case $host_os in
16847     aix3*)
16848       allow_undefined_flag_GCJ=unsupported
16849       always_export_symbols_GCJ=yes
16850       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'
16851       # Note: this linker hardcodes the directories in LIBPATH if there
16852       # are no directories specified by -L.
16853       hardcode_minus_L_GCJ=yes
16854       if test "$GCC" = yes && test -z "$link_static_flag"; then
16855         # Neither direct hardcoding nor static linking is supported with a
16856         # broken collect2.
16857         hardcode_direct_GCJ=unsupported
16858       fi
16859       ;;
16860
16861     aix4* | aix5*)
16862       if test "$host_cpu" = ia64; then
16863         # On IA64, the linker does run time linking by default, so we don't
16864         # have to do anything special.
16865         aix_use_runtimelinking=no
16866         exp_sym_flag='-Bexport'
16867         no_entry_flag=""
16868       else
16869         # If we're using GNU nm, then we don't want the "-C" option.
16870         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16871         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16872           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'
16873         else
16874           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'
16875         fi
16876         aix_use_runtimelinking=no
16877
16878         # Test if we are trying to use run time linking or normal
16879         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16880         # need to do runtime linking.
16881         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16882           for ld_flag in $LDFLAGS; do
16883           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16884             aix_use_runtimelinking=yes
16885             break
16886           fi
16887           done
16888         esac
16889
16890         exp_sym_flag='-bexport'
16891         no_entry_flag='-bnoentry'
16892       fi
16893
16894       # When large executables or shared objects are built, AIX ld can
16895       # have problems creating the table of contents.  If linking a library
16896       # or program results in "error TOC overflow" add -mminimal-toc to
16897       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16898       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16899
16900       archive_cmds_GCJ=''
16901       hardcode_direct_GCJ=yes
16902       hardcode_libdir_separator_GCJ=':'
16903       link_all_deplibs_GCJ=yes
16904
16905       if test "$GCC" = yes; then
16906         case $host_os in aix4.[012]|aix4.[012].*)
16907         # We only want to do this on AIX 4.2 and lower, the check
16908         # below for broken collect2 doesn't work under 4.3+
16909           collect2name=`${CC} -print-prog-name=collect2`
16910           if test -f "$collect2name" && \
16911            strings "$collect2name" | grep resolve_lib_name >/dev/null
16912           then
16913           # We have reworked collect2
16914           hardcode_direct_GCJ=yes
16915           else
16916           # We have old collect2
16917           hardcode_direct_GCJ=unsupported
16918           # It fails to find uninstalled libraries when the uninstalled
16919           # path is not listed in the libpath.  Setting hardcode_minus_L
16920           # to unsupported forces relinking
16921           hardcode_minus_L_GCJ=yes
16922           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16923           hardcode_libdir_separator_GCJ=
16924           fi
16925         esac
16926         shared_flag='-shared'
16927         if test "$aix_use_runtimelinking" = yes; then
16928           shared_flag="$shared_flag "'${wl}-G'
16929         fi
16930       else
16931         # not using gcc
16932         if test "$host_cpu" = ia64; then
16933         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16934         # chokes on -Wl,-G. The following line is correct:
16935           shared_flag='-G'
16936         else
16937         if test "$aix_use_runtimelinking" = yes; then
16938             shared_flag='${wl}-G'
16939           else
16940             shared_flag='${wl}-bM:SRE'
16941         fi
16942         fi
16943       fi
16944
16945       # It seems that -bexpall does not export symbols beginning with
16946       # underscore (_), so it is better to generate a list of symbols to export.
16947       always_export_symbols_GCJ=yes
16948       if test "$aix_use_runtimelinking" = yes; then
16949         # Warning - without using the other runtime loading flags (-brtl),
16950         # -berok will link without error, but may produce a broken library.
16951         allow_undefined_flag_GCJ='-berok'
16952        # Determine the default libpath from the value encoded in an empty executable.
16953        cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h.  */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h.  */
16959
16960 int
16961 main ()
16962 {
16963
16964   ;
16965   return 0;
16966 }
16967 _ACEOF
16968 rm -f conftest.$ac_objext conftest$ac_exeext
16969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16970   (eval $ac_link) 2>conftest.er1
16971   ac_status=$?
16972   grep -v '^ *+' conftest.er1 >conftest.err
16973   rm -f conftest.er1
16974   cat conftest.err >&5
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); } &&
16977          { ac_try='test -z "$ac_c_werror_flag"
16978                          || test ! -s conftest.err'
16979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980   (eval $ac_try) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); }; } &&
16984          { ac_try='test -s conftest$ac_exeext'
16985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986   (eval $ac_try) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; }; then
16990
16991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16992 }'`
16993 # Check for a 64-bit object if we didn't find anything.
16994 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; }
16995 }'`; fi
16996 else
16997   echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000 fi
17001 rm -f conftest.err conftest.$ac_objext \
17002       conftest$ac_exeext conftest.$ac_ext
17003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17004
17005        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17006         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17007        else
17008         if test "$host_cpu" = ia64; then
17009           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17010           allow_undefined_flag_GCJ="-z nodefs"
17011           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17012         else
17013          # Determine the default libpath from the value encoded in an empty executable.
17014          cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h.  */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h.  */
17020
17021 int
17022 main ()
17023 {
17024
17025   ;
17026   return 0;
17027 }
17028 _ACEOF
17029 rm -f conftest.$ac_objext conftest$ac_exeext
17030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17031   (eval $ac_link) 2>conftest.er1
17032   ac_status=$?
17033   grep -v '^ *+' conftest.er1 >conftest.err
17034   rm -f conftest.er1
17035   cat conftest.err >&5
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); } &&
17038          { ac_try='test -z "$ac_c_werror_flag"
17039                          || test ! -s conftest.err'
17040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041   (eval $ac_try) 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; } &&
17045          { ac_try='test -s conftest$ac_exeext'
17046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047   (eval $ac_try) 2>&5
17048   ac_status=$?
17049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050   (exit $ac_status); }; }; then
17051
17052 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17053 }'`
17054 # Check for a 64-bit object if we didn't find anything.
17055 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; }
17056 }'`; fi
17057 else
17058   echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 fi
17062 rm -f conftest.err conftest.$ac_objext \
17063       conftest$ac_exeext conftest.$ac_ext
17064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17065
17066          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17067           # Warning - without using the other run time loading flags,
17068           # -berok will link without error, but may produce a broken library.
17069           no_undefined_flag_GCJ=' ${wl}-bernotok'
17070           allow_undefined_flag_GCJ=' ${wl}-berok'
17071           # -bexpall does not export symbols beginning with underscore (_)
17072           always_export_symbols_GCJ=yes
17073           # Exported symbols can be pulled into shared objects from archives
17074           whole_archive_flag_spec_GCJ=' '
17075           archive_cmds_need_lc_GCJ=yes
17076           # This is similar to how AIX traditionally builds it's shared libraries.
17077           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17078         fi
17079       fi
17080       ;;
17081
17082     amigaos*)
17083       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)'
17084       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17085       hardcode_minus_L_GCJ=yes
17086       # see comment about different semantics on the GNU ld section
17087       ld_shlibs_GCJ=no
17088       ;;
17089
17090     bsdi[45]*)
17091       export_dynamic_flag_spec_GCJ=-rdynamic
17092       ;;
17093
17094     cygwin* | mingw* | pw32*)
17095       # When not using gcc, we currently assume that we are using
17096       # Microsoft Visual C++.
17097       # hardcode_libdir_flag_spec is actually meaningless, as there is
17098       # no search path for DLLs.
17099       hardcode_libdir_flag_spec_GCJ=' '
17100       allow_undefined_flag_GCJ=unsupported
17101       # Tell ltmain to make .lib files, not .a files.
17102       libext=lib
17103       # Tell ltmain to make .dll files, not .so files.
17104       shrext_cmds=".dll"
17105       # FIXME: Setting linknames here is a bad hack.
17106       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17107       # The linker will automatically build a .lib file if we build a DLL.
17108       old_archive_From_new_cmds_GCJ='true'
17109       # FIXME: Should let the user specify the lib program.
17110       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17111       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17112       enable_shared_with_static_runtimes_GCJ=yes
17113       ;;
17114
17115     darwin* | rhapsody*)
17116       case "$host_os" in
17117         rhapsody* | darwin1.[012])
17118          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17119          ;;
17120        *) # Darwin 1.3 on
17121          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17122            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17123          else
17124            case ${MACOSX_DEPLOYMENT_TARGET} in
17125              10.[012])
17126                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17127                ;;
17128              10.*)
17129                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17130                ;;
17131            esac
17132          fi
17133          ;;
17134       esac
17135       archive_cmds_need_lc_GCJ=no
17136       hardcode_direct_GCJ=no
17137       hardcode_automatic_GCJ=yes
17138       hardcode_shlibpath_var_GCJ=unsupported
17139       whole_archive_flag_spec_GCJ=''
17140       link_all_deplibs_GCJ=yes
17141     if test "$GCC" = yes ; then
17142         output_verbose_link_cmd='echo'
17143         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17144       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17145       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17146       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}'
17147       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}'
17148     else
17149       case $cc_basename in
17150         xlc*)
17151          output_verbose_link_cmd='echo'
17152          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17153          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17154           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17155          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}'
17156           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}'
17157           ;;
17158        *)
17159          ld_shlibs_GCJ=no
17160           ;;
17161       esac
17162     fi
17163       ;;
17164
17165     dgux*)
17166       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17167       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17168       hardcode_shlibpath_var_GCJ=no
17169       ;;
17170
17171     freebsd1*)
17172       ld_shlibs_GCJ=no
17173       ;;
17174
17175     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17176     # support.  Future versions do this automatically, but an explicit c++rt0.o
17177     # does not break anything, and helps significantly (at the cost of a little
17178     # extra space).
17179     freebsd2.2*)
17180       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17181       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17182       hardcode_direct_GCJ=yes
17183       hardcode_shlibpath_var_GCJ=no
17184       ;;
17185
17186     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17187     freebsd2*)
17188       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17189       hardcode_direct_GCJ=yes
17190       hardcode_minus_L_GCJ=yes
17191       hardcode_shlibpath_var_GCJ=no
17192       ;;
17193
17194     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17195     freebsd* | kfreebsd*-gnu | dragonfly*)
17196       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17197       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17198       hardcode_direct_GCJ=yes
17199       hardcode_shlibpath_var_GCJ=no
17200       ;;
17201
17202     hpux9*)
17203       if test "$GCC" = yes; then
17204         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'
17205       else
17206         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'
17207       fi
17208       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17209       hardcode_libdir_separator_GCJ=:
17210       hardcode_direct_GCJ=yes
17211
17212       # hardcode_minus_L: Not really in the search PATH,
17213       # but as the default location of the library.
17214       hardcode_minus_L_GCJ=yes
17215       export_dynamic_flag_spec_GCJ='${wl}-E'
17216       ;;
17217
17218     hpux10* | hpux11*)
17219       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17220         case "$host_cpu" in
17221         hppa*64*|ia64*)
17222           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17223           ;;
17224         *)
17225           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17226           ;;
17227         esac
17228       else
17229         case "$host_cpu" in
17230         hppa*64*|ia64*)
17231           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17232           ;;
17233         *)
17234           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17235           ;;
17236         esac
17237       fi
17238       if test "$with_gnu_ld" = no; then
17239         case "$host_cpu" in
17240         hppa*64*)
17241           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17242           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17243           hardcode_libdir_separator_GCJ=:
17244           hardcode_direct_GCJ=no
17245           hardcode_shlibpath_var_GCJ=no
17246           ;;
17247         ia64*)
17248           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17249           hardcode_direct_GCJ=no
17250           hardcode_shlibpath_var_GCJ=no
17251
17252           # hardcode_minus_L: Not really in the search PATH,
17253           # but as the default location of the library.
17254           hardcode_minus_L_GCJ=yes
17255           ;;
17256         *)
17257           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17258           hardcode_libdir_separator_GCJ=:
17259           hardcode_direct_GCJ=yes
17260           export_dynamic_flag_spec_GCJ='${wl}-E'
17261
17262           # hardcode_minus_L: Not really in the search PATH,
17263           # but as the default location of the library.
17264           hardcode_minus_L_GCJ=yes
17265           ;;
17266         esac
17267       fi
17268       ;;
17269
17270     irix5* | irix6* | nonstopux*)
17271       if test "$GCC" = yes; then
17272         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'
17273       else
17274         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'
17275         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17276       fi
17277       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17278       hardcode_libdir_separator_GCJ=:
17279       link_all_deplibs_GCJ=yes
17280       ;;
17281
17282     netbsd*)
17283       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17284         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17285       else
17286         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17287       fi
17288       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17289       hardcode_direct_GCJ=yes
17290       hardcode_shlibpath_var_GCJ=no
17291       ;;
17292
17293     newsos6)
17294       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17295       hardcode_direct_GCJ=yes
17296       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17297       hardcode_libdir_separator_GCJ=:
17298       hardcode_shlibpath_var_GCJ=no
17299       ;;
17300
17301     openbsd*)
17302       hardcode_direct_GCJ=yes
17303       hardcode_shlibpath_var_GCJ=no
17304       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17305         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17306         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17307         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17308         export_dynamic_flag_spec_GCJ='${wl}-E'
17309       else
17310        case $host_os in
17311          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17312            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17313            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17314            ;;
17315          *)
17316            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17317            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17318            ;;
17319        esac
17320       fi
17321       ;;
17322
17323     os2*)
17324       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17325       hardcode_minus_L_GCJ=yes
17326       allow_undefined_flag_GCJ=unsupported
17327       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'
17328       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17329       ;;
17330
17331     osf3*)
17332       if test "$GCC" = yes; then
17333         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17334         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'
17335       else
17336         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17337         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'
17338       fi
17339       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17340       hardcode_libdir_separator_GCJ=:
17341       ;;
17342
17343     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17344       if test "$GCC" = yes; then
17345         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17346         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'
17347         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17348       else
17349         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17350         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'
17351         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~
17352         $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'
17353
17354         # Both c and cxx compiler support -rpath directly
17355         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17356       fi
17357       hardcode_libdir_separator_GCJ=:
17358       ;;
17359
17360     sco3.2v5*)
17361       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17362       hardcode_shlibpath_var_GCJ=no
17363       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17364       runpath_var=LD_RUN_PATH
17365       hardcode_runpath_var=yes
17366       ;;
17367
17368     solaris*)
17369       no_undefined_flag_GCJ=' -z text'
17370       if test "$GCC" = yes; then
17371         wlarc='${wl}'
17372         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17373         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17374           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17375       else
17376         wlarc=''
17377         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17378         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17379         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17380       fi
17381       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17382       hardcode_shlibpath_var_GCJ=no
17383       case $host_os in
17384       solaris2.[0-5] | solaris2.[0-5].*) ;;
17385       *)
17386         # The compiler driver will combine linker options so we
17387         # cannot just pass the convience library names through
17388         # without $wl, iff we do not link with $LD.
17389         # Luckily, gcc supports the same syntax we need for Sun Studio.
17390         # Supported since Solaris 2.6 (maybe 2.5.1?)
17391         case $wlarc in
17392         '')
17393           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17394         *)
17395           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' ;;
17396         esac ;;
17397       esac
17398       link_all_deplibs_GCJ=yes
17399       ;;
17400
17401     sunos4*)
17402       if test "x$host_vendor" = xsequent; then
17403         # Use $CC to link under sequent, because it throws in some extra .o
17404         # files that make .init and .fini sections work.
17405         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17406       else
17407         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17408       fi
17409       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17410       hardcode_direct_GCJ=yes
17411       hardcode_minus_L_GCJ=yes
17412       hardcode_shlibpath_var_GCJ=no
17413       ;;
17414
17415     sysv4)
17416       case $host_vendor in
17417         sni)
17418           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17419           hardcode_direct_GCJ=yes # is this really true???
17420         ;;
17421         siemens)
17422           ## LD is ld it makes a PLAMLIB
17423           ## CC just makes a GrossModule.
17424           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17425           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17426           hardcode_direct_GCJ=no
17427         ;;
17428         motorola)
17429           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17430           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17431         ;;
17432       esac
17433       runpath_var='LD_RUN_PATH'
17434       hardcode_shlibpath_var_GCJ=no
17435       ;;
17436
17437     sysv4.3*)
17438       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17439       hardcode_shlibpath_var_GCJ=no
17440       export_dynamic_flag_spec_GCJ='-Bexport'
17441       ;;
17442
17443     sysv4*MP*)
17444       if test -d /usr/nec; then
17445         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17446         hardcode_shlibpath_var_GCJ=no
17447         runpath_var=LD_RUN_PATH
17448         hardcode_runpath_var=yes
17449         ld_shlibs_GCJ=yes
17450       fi
17451       ;;
17452
17453     sysv4.2uw2*)
17454       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17455       hardcode_direct_GCJ=yes
17456       hardcode_minus_L_GCJ=no
17457       hardcode_shlibpath_var_GCJ=no
17458       hardcode_runpath_var=yes
17459       runpath_var=LD_RUN_PATH
17460       ;;
17461
17462    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17463       no_undefined_flag_GCJ='${wl}-z ${wl}text'
17464       if test "$GCC" = yes; then
17465         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17466       else
17467         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17468       fi
17469       runpath_var='LD_RUN_PATH'
17470       hardcode_shlibpath_var_GCJ=no
17471       ;;
17472
17473     sysv5*)
17474       no_undefined_flag_GCJ=' -z text'
17475       # $CC -shared without GNU ld will not create a library from C++
17476       # object files and a static libstdc++, better avoid it by now
17477       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17478       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17479                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17480       hardcode_libdir_flag_spec_GCJ=
17481       hardcode_shlibpath_var_GCJ=no
17482       runpath_var='LD_RUN_PATH'
17483       ;;
17484
17485     uts4*)
17486       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17487       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17488       hardcode_shlibpath_var_GCJ=no
17489       ;;
17490
17491     *)
17492       ld_shlibs_GCJ=no
17493       ;;
17494     esac
17495   fi
17496
17497 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17498 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17499 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17500
17501 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17502 if test "$GCC" = yes; then
17503   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17504 fi
17505
17506 #
17507 # Do we need to explicitly link libc?
17508 #
17509 case "x$archive_cmds_need_lc_GCJ" in
17510 x|xyes)
17511   # Assume -lc should be added
17512   archive_cmds_need_lc_GCJ=yes
17513
17514   if test "$enable_shared" = yes && test "$GCC" = yes; then
17515     case $archive_cmds_GCJ in
17516     *'~'*)
17517       # FIXME: we may have to deal with multi-command sequences.
17518       ;;
17519     '$CC '*)
17520       # Test whether the compiler implicitly links with -lc since on some
17521       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17522       # to ld, don't add -lc before -lgcc.
17523       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17524 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17525       $rm conftest*
17526       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17527
17528       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17529   (eval $ac_compile) 2>&5
17530   ac_status=$?
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); } 2>conftest.err; then
17533         soname=conftest
17534         lib=conftest
17535         libobjs=conftest.$ac_objext
17536         deplibs=
17537         wl=$lt_prog_compiler_wl_GCJ
17538         compiler_flags=-v
17539         linker_flags=-v
17540         verstring=
17541         output_objdir=.
17542         libname=conftest
17543         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17544         allow_undefined_flag_GCJ=
17545         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17546   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }
17550         then
17551           archive_cmds_need_lc_GCJ=no
17552         else
17553           archive_cmds_need_lc_GCJ=yes
17554         fi
17555         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17556       else
17557         cat conftest.err 1>&5
17558       fi
17559       $rm conftest*
17560       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17561 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17562       ;;
17563     esac
17564   fi
17565   ;;
17566 esac
17567
17568 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17569 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17570 library_names_spec=
17571 libname_spec='lib$name'
17572 soname_spec=
17573 shrext_cmds=".so"
17574 postinstall_cmds=
17575 postuninstall_cmds=
17576 finish_cmds=
17577 finish_eval=
17578 shlibpath_var=
17579 shlibpath_overrides_runpath=unknown
17580 version_type=none
17581 dynamic_linker="$host_os ld.so"
17582 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17583 if test "$GCC" = yes; then
17584   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17585   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17586     # if the path contains ";" then we assume it to be the separator
17587     # otherwise default to the standard path separator (i.e. ":") - it is
17588     # assumed that no part of a normal pathname contains ";" but that should
17589     # okay in the real world where ";" in dirpaths is itself problematic.
17590     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17591   else
17592     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17593   fi
17594 else
17595   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17596 fi
17597 need_lib_prefix=unknown
17598 hardcode_into_libs=no
17599
17600 # when you set need_version to no, make sure it does not cause -set_version
17601 # flags to be left without arguments
17602 need_version=unknown
17603
17604 case $host_os in
17605 aix3*)
17606   version_type=linux
17607   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17608   shlibpath_var=LIBPATH
17609
17610   # AIX 3 has no versioning support, so we append a major version to the name.
17611   soname_spec='${libname}${release}${shared_ext}$major'
17612   ;;
17613
17614 aix4* | aix5*)
17615   version_type=linux
17616   need_lib_prefix=no
17617   need_version=no
17618   hardcode_into_libs=yes
17619   if test "$host_cpu" = ia64; then
17620     # AIX 5 supports IA64
17621     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17622     shlibpath_var=LD_LIBRARY_PATH
17623   else
17624     # With GCC up to 2.95.x, collect2 would create an import file
17625     # for dependence libraries.  The import file would start with
17626     # the line `#! .'.  This would cause the generated library to
17627     # depend on `.', always an invalid library.  This was fixed in
17628     # development snapshots of GCC prior to 3.0.
17629     case $host_os in
17630       aix4 | aix4.[01] | aix4.[01].*)
17631       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17632            echo ' yes '
17633            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17634         :
17635       else
17636         can_build_shared=no
17637       fi
17638       ;;
17639     esac
17640     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17641     # soname into executable. Probably we can add versioning support to
17642     # collect2, so additional links can be useful in future.
17643     if test "$aix_use_runtimelinking" = yes; then
17644       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17645       # instead of lib<name>.a to let people know that these are not
17646       # typical AIX shared libraries.
17647       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17648     else
17649       # We preserve .a as extension for shared libraries through AIX4.2
17650       # and later when we are not doing run time linking.
17651       library_names_spec='${libname}${release}.a $libname.a'
17652       soname_spec='${libname}${release}${shared_ext}$major'
17653     fi
17654     shlibpath_var=LIBPATH
17655   fi
17656   ;;
17657
17658 amigaos*)
17659   library_names_spec='$libname.ixlibrary $libname.a'
17660   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17661   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'
17662   ;;
17663
17664 beos*)
17665   library_names_spec='${libname}${shared_ext}'
17666   dynamic_linker="$host_os ld.so"
17667   shlibpath_var=LIBRARY_PATH
17668   ;;
17669
17670 bsdi[45]*)
17671   version_type=linux
17672   need_version=no
17673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17674   soname_spec='${libname}${release}${shared_ext}$major'
17675   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17676   shlibpath_var=LD_LIBRARY_PATH
17677   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17678   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17679   # the default ld.so.conf also contains /usr/contrib/lib and
17680   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17681   # libtool to hard-code these into programs
17682   ;;
17683
17684 cygwin* | mingw* | pw32*)
17685   version_type=windows
17686   shrext_cmds=".dll"
17687   need_version=no
17688   need_lib_prefix=no
17689
17690   case $GCC,$host_os in
17691   yes,cygwin* | yes,mingw* | yes,pw32*)
17692     library_names_spec='$libname.dll.a'
17693     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17694     postinstall_cmds='base_file=`basename \${file}`~
17695       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17696       dldir=$destdir/`dirname \$dlpath`~
17697       test -d \$dldir || mkdir -p \$dldir~
17698       $install_prog $dir/$dlname \$dldir/$dlname'
17699     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17700       dlpath=$dir/\$dldll~
17701        $rm \$dlpath'
17702     shlibpath_overrides_runpath=yes
17703
17704     case $host_os in
17705     cygwin*)
17706       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17707       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17708       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17709       ;;
17710     mingw*)
17711       # MinGW DLLs use traditional 'lib' prefix
17712       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17713       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17714       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17715         # It is most probably a Windows format PATH printed by
17716         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17717         # path with ; separators, and with drive letters. We can handle the
17718         # drive letters (cygwin fileutils understands them), so leave them,
17719         # especially as we might pass files found there to a mingw objdump,
17720         # which wouldn't understand a cygwinified path. Ahh.
17721         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17722       else
17723         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17724       fi
17725       ;;
17726     pw32*)
17727       # pw32 DLLs use 'pw' prefix rather than 'lib'
17728       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17729       ;;
17730     esac
17731     ;;
17732
17733   linux*)
17734     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17735       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17736       supports_anon_versioning=no
17737       case `$LD -v 2>/dev/null` in
17738         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17739         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17740         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17741         *\ 2.11.*) ;; # other 2.11 versions
17742         *) supports_anon_versioning=yes ;;
17743       esac
17744       if test $supports_anon_versioning = yes; then
17745         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17747 $echo "local: *; };" >> $output_objdir/$libname.ver~
17748         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17749       else
17750         $archive_expsym_cmds="$archive_cmds"
17751       fi
17752     else
17753       ld_shlibs=no
17754     fi
17755     ;;
17756
17757   *)
17758     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17759     ;;
17760   esac
17761   dynamic_linker='Win32 ld.exe'
17762   # FIXME: first we should search . and the directory the executable is in
17763   shlibpath_var=PATH
17764   ;;
17765
17766 darwin* | rhapsody*)
17767   dynamic_linker="$host_os dyld"
17768   version_type=darwin
17769   need_lib_prefix=no
17770   need_version=no
17771   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17772   soname_spec='${libname}${release}${major}$shared_ext'
17773   shlibpath_overrides_runpath=yes
17774   shlibpath_var=DYLD_LIBRARY_PATH
17775   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17776   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17777   if test "$GCC" = yes; then
17778     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"`
17779   else
17780     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17781   fi
17782   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17783   ;;
17784
17785 dgux*)
17786   version_type=linux
17787   need_lib_prefix=no
17788   need_version=no
17789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17790   soname_spec='${libname}${release}${shared_ext}$major'
17791   shlibpath_var=LD_LIBRARY_PATH
17792   ;;
17793
17794 freebsd1*)
17795   dynamic_linker=no
17796   ;;
17797
17798 kfreebsd*-gnu)
17799   version_type=linux
17800   need_lib_prefix=no
17801   need_version=no
17802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17803   soname_spec='${libname}${release}${shared_ext}$major'
17804   shlibpath_var=LD_LIBRARY_PATH
17805   shlibpath_overrides_runpath=no
17806   hardcode_into_libs=yes
17807   dynamic_linker='GNU ld.so'
17808   ;;
17809
17810 freebsd* | dragonfly*)
17811   # DragonFly does not have aout.  When/if they implement a new
17812   # versioning mechanism, adjust this.
17813   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17814   version_type=freebsd-$objformat
17815   case $version_type in
17816     freebsd-elf*)
17817       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17818       need_version=no
17819       need_lib_prefix=no
17820       ;;
17821     freebsd-*)
17822       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17823       need_version=yes
17824       ;;
17825   esac
17826   shlibpath_var=LD_LIBRARY_PATH
17827   case $host_os in
17828   freebsd2*)
17829     shlibpath_overrides_runpath=yes
17830     ;;
17831   freebsd3.[01]* | freebsdelf3.[01]*)
17832     shlibpath_overrides_runpath=yes
17833     hardcode_into_libs=yes
17834     ;;
17835   *) # from 3.2 on
17836     shlibpath_overrides_runpath=no
17837     hardcode_into_libs=yes
17838     ;;
17839   esac
17840   ;;
17841
17842 gnu*)
17843   version_type=linux
17844   need_lib_prefix=no
17845   need_version=no
17846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17847   soname_spec='${libname}${release}${shared_ext}$major'
17848   shlibpath_var=LD_LIBRARY_PATH
17849   hardcode_into_libs=yes
17850   ;;
17851
17852 hpux9* | hpux10* | hpux11*)
17853   # Give a soname corresponding to the major version so that dld.sl refuses to
17854   # link against other versions.
17855   version_type=sunos
17856   need_lib_prefix=no
17857   need_version=no
17858   case "$host_cpu" in
17859   ia64*)
17860     shrext_cmds='.so'
17861     hardcode_into_libs=yes
17862     dynamic_linker="$host_os dld.so"
17863     shlibpath_var=LD_LIBRARY_PATH
17864     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17866     soname_spec='${libname}${release}${shared_ext}$major'
17867     if test "X$HPUX_IA64_MODE" = X32; then
17868       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17869     else
17870       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17871     fi
17872     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17873     ;;
17874    hppa*64*)
17875      shrext_cmds='.sl'
17876      hardcode_into_libs=yes
17877      dynamic_linker="$host_os dld.sl"
17878      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17879      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17880      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881      soname_spec='${libname}${release}${shared_ext}$major'
17882      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17883      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17884      ;;
17885    *)
17886     shrext_cmds='.sl'
17887     dynamic_linker="$host_os dld.sl"
17888     shlibpath_var=SHLIB_PATH
17889     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891     soname_spec='${libname}${release}${shared_ext}$major'
17892     ;;
17893   esac
17894   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17895   postinstall_cmds='chmod 555 $lib'
17896   ;;
17897
17898 irix5* | irix6* | nonstopux*)
17899   case $host_os in
17900     nonstopux*) version_type=nonstopux ;;
17901     *)
17902         if test "$lt_cv_prog_gnu_ld" = yes; then
17903                 version_type=linux
17904         else
17905                 version_type=irix
17906         fi ;;
17907   esac
17908   need_lib_prefix=no
17909   need_version=no
17910   soname_spec='${libname}${release}${shared_ext}$major'
17911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17912   case $host_os in
17913   irix5* | nonstopux*)
17914     libsuff= shlibsuff=
17915     ;;
17916   *)
17917     case $LD in # libtool.m4 will add one of these switches to LD
17918     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17919       libsuff= shlibsuff= libmagic=32-bit;;
17920     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17921       libsuff=32 shlibsuff=N32 libmagic=N32;;
17922     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17923       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17924     *) libsuff= shlibsuff= libmagic=never-match;;
17925     esac
17926     ;;
17927   esac
17928   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17929   shlibpath_overrides_runpath=no
17930   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17931   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17932   hardcode_into_libs=yes
17933   ;;
17934
17935 # No shared lib support for Linux oldld, aout, or coff.
17936 linux*oldld* | linux*aout* | linux*coff*)
17937   dynamic_linker=no
17938   ;;
17939
17940 # This must be Linux ELF.
17941 linux*)
17942   version_type=linux
17943   need_lib_prefix=no
17944   need_version=no
17945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17946   soname_spec='${libname}${release}${shared_ext}$major'
17947   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17948   shlibpath_var=LD_LIBRARY_PATH
17949   shlibpath_overrides_runpath=no
17950   # This implies no fast_install, which is unacceptable.
17951   # Some rework will be needed to allow for fast_install
17952   # before this can be enabled.
17953   hardcode_into_libs=yes
17954
17955   # Append ld.so.conf contents to the search path
17956   if test -f /etc/ld.so.conf; then
17957     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17958     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17959   fi
17960
17961   case $host_cpu:$lt_cv_cc_64bit_output in
17962   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
17963     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
17964     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
17965     ;;
17966   esac
17967
17968   # We used to test for /lib/ld.so.1 and disable shared libraries on
17969   # powerpc, because MkLinux only supported shared libraries with the
17970   # GNU dynamic linker.  Since this was broken with cross compilers,
17971   # most powerpc-linux boxes support dynamic linking these days and
17972   # people can always --disable-shared, the test was removed, and we
17973   # assume the GNU/Linux dynamic linker is in use.
17974   dynamic_linker='GNU/Linux ld.so'
17975
17976   # Find out which ABI we are using (multilib Linux x86_64 hack).
17977   libsuff=
17978   case "$host_cpu" in
17979   x86_64*)
17980     echo '#line 17980 "configure"' > conftest.$ac_ext
17981     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17982   (eval $ac_compile) 2>&5
17983   ac_status=$?
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); }; then
17986       case `/usr/bin/file conftest.$ac_objext` in
17987       *64-bit*)
17988         libsuff=64
17989         ;;
17990       esac
17991     fi
17992     rm -rf conftest*
17993     ;;
17994   *)
17995     ;;
17996   esac
17997   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17998   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17999   ;;
18000
18001 knetbsd*-gnu)
18002   version_type=linux
18003   need_lib_prefix=no
18004   need_version=no
18005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18006   soname_spec='${libname}${release}${shared_ext}$major'
18007   shlibpath_var=LD_LIBRARY_PATH
18008   shlibpath_overrides_runpath=no
18009   hardcode_into_libs=yes
18010   dynamic_linker='GNU ld.so'
18011   ;;
18012
18013 netbsd*)
18014   version_type=sunos
18015   need_lib_prefix=no
18016   need_version=no
18017   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18019     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18020     dynamic_linker='NetBSD (a.out) ld.so'
18021   else
18022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18023     soname_spec='${libname}${release}${shared_ext}$major'
18024     dynamic_linker='NetBSD ld.elf_so'
18025   fi
18026   shlibpath_var=LD_LIBRARY_PATH
18027   shlibpath_overrides_runpath=yes
18028   hardcode_into_libs=yes
18029   ;;
18030
18031 newsos6)
18032   version_type=linux
18033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034   shlibpath_var=LD_LIBRARY_PATH
18035   shlibpath_overrides_runpath=yes
18036   ;;
18037
18038 nto-qnx*)
18039   version_type=linux
18040   need_lib_prefix=no
18041   need_version=no
18042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043   soname_spec='${libname}${release}${shared_ext}$major'
18044   shlibpath_var=LD_LIBRARY_PATH
18045   shlibpath_overrides_runpath=yes
18046   ;;
18047
18048 openbsd*)
18049   version_type=sunos
18050   need_lib_prefix=no
18051   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18052   case $host_os in
18053     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18054     *)                         need_version=no  ;;
18055   esac
18056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18057   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18058   shlibpath_var=LD_LIBRARY_PATH
18059   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18060     case $host_os in
18061       openbsd2.[89] | openbsd2.[89].*)
18062         shlibpath_overrides_runpath=no
18063         ;;
18064       *)
18065         shlibpath_overrides_runpath=yes
18066         ;;
18067       esac
18068   else
18069     shlibpath_overrides_runpath=yes
18070   fi
18071   ;;
18072
18073 os2*)
18074   libname_spec='$name'
18075   shrext_cmds=".dll"
18076   need_lib_prefix=no
18077   library_names_spec='$libname${shared_ext} $libname.a'
18078   dynamic_linker='OS/2 ld.exe'
18079   shlibpath_var=LIBPATH
18080   ;;
18081
18082 osf3* | osf4* | osf5*)
18083   version_type=osf
18084   need_lib_prefix=no
18085   need_version=no
18086   soname_spec='${libname}${release}${shared_ext}$major'
18087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18088   shlibpath_var=LD_LIBRARY_PATH
18089   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18090   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18091   ;;
18092
18093 sco3.2v5*)
18094   version_type=osf
18095   soname_spec='${libname}${release}${shared_ext}$major'
18096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18097   shlibpath_var=LD_LIBRARY_PATH
18098   ;;
18099
18100 solaris*)
18101   version_type=linux
18102   need_lib_prefix=no
18103   need_version=no
18104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105   soname_spec='${libname}${release}${shared_ext}$major'
18106   shlibpath_var=LD_LIBRARY_PATH
18107   shlibpath_overrides_runpath=yes
18108   hardcode_into_libs=yes
18109   # ldd complains unless libraries are executable
18110   postinstall_cmds='chmod +x $lib'
18111   ;;
18112
18113 sunos4*)
18114   version_type=sunos
18115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18116   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18117   shlibpath_var=LD_LIBRARY_PATH
18118   shlibpath_overrides_runpath=yes
18119   if test "$with_gnu_ld" = yes; then
18120     need_lib_prefix=no
18121   fi
18122   need_version=yes
18123   ;;
18124
18125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18126   version_type=linux
18127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128   soname_spec='${libname}${release}${shared_ext}$major'
18129   shlibpath_var=LD_LIBRARY_PATH
18130   case $host_vendor in
18131     sni)
18132       shlibpath_overrides_runpath=no
18133       need_lib_prefix=no
18134       export_dynamic_flag_spec='${wl}-Blargedynsym'
18135       runpath_var=LD_RUN_PATH
18136       ;;
18137     siemens)
18138       need_lib_prefix=no
18139       ;;
18140     motorola)
18141       need_lib_prefix=no
18142       need_version=no
18143       shlibpath_overrides_runpath=no
18144       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18145       ;;
18146   esac
18147   ;;
18148
18149 sysv4*MP*)
18150   if test -d /usr/nec ;then
18151     version_type=linux
18152     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18153     soname_spec='$libname${shared_ext}.$major'
18154     shlibpath_var=LD_LIBRARY_PATH
18155   fi
18156   ;;
18157
18158 uts4*)
18159   version_type=linux
18160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161   soname_spec='${libname}${release}${shared_ext}$major'
18162   shlibpath_var=LD_LIBRARY_PATH
18163   ;;
18164
18165 *)
18166   dynamic_linker=no
18167   ;;
18168 esac
18169 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18170 echo "${ECHO_T}$dynamic_linker" >&6
18171 test "$dynamic_linker" = no && can_build_shared=no
18172
18173 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18174 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18175 hardcode_action_GCJ=
18176 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18177    test -n "$runpath_var_GCJ" || \
18178    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18179
18180   # We can hardcode non-existant directories.
18181   if test "$hardcode_direct_GCJ" != no &&
18182      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18183      # have to relink, otherwise we might link with an installed library
18184      # when we should be linking with a yet-to-be-installed one
18185      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18186      test "$hardcode_minus_L_GCJ" != no; then
18187     # Linking always hardcodes the temporary library directory.
18188     hardcode_action_GCJ=relink
18189   else
18190     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18191     hardcode_action_GCJ=immediate
18192   fi
18193 else
18194   # We cannot hardcode anything, or else we can only hardcode existing
18195   # directories.
18196   hardcode_action_GCJ=unsupported
18197 fi
18198 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18199 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18200
18201 if test "$hardcode_action_GCJ" = relink; then
18202   # Fast installation is not supported
18203   enable_fast_install=no
18204 elif test "$shlibpath_overrides_runpath" = yes ||
18205      test "$enable_shared" = no; then
18206   # Fast installation is not necessary
18207   enable_fast_install=needless
18208 fi
18209
18210 striplib=
18211 old_striplib=
18212 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18213 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18214 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18215   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18216   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18217   echo "$as_me:$LINENO: result: yes" >&5
18218 echo "${ECHO_T}yes" >&6
18219 else
18220 # FIXME - insert some real tests, host_os isn't really good enough
18221   case $host_os in
18222    darwin*)
18223        if test -n "$STRIP" ; then
18224          striplib="$STRIP -x"
18225          echo "$as_me:$LINENO: result: yes" >&5
18226 echo "${ECHO_T}yes" >&6
18227        else
18228   echo "$as_me:$LINENO: result: no" >&5
18229 echo "${ECHO_T}no" >&6
18230 fi
18231        ;;
18232    *)
18233   echo "$as_me:$LINENO: result: no" >&5
18234 echo "${ECHO_T}no" >&6
18235     ;;
18236   esac
18237 fi
18238
18239 if test "x$enable_dlopen" != xyes; then
18240   enable_dlopen=unknown
18241   enable_dlopen_self=unknown
18242   enable_dlopen_self_static=unknown
18243 else
18244   lt_cv_dlopen=no
18245   lt_cv_dlopen_libs=
18246
18247   case $host_os in
18248   beos*)
18249     lt_cv_dlopen="load_add_on"
18250     lt_cv_dlopen_libs=
18251     lt_cv_dlopen_self=yes
18252     ;;
18253
18254   mingw* | pw32*)
18255     lt_cv_dlopen="LoadLibrary"
18256     lt_cv_dlopen_libs=
18257    ;;
18258
18259   cygwin*)
18260     lt_cv_dlopen="dlopen"
18261     lt_cv_dlopen_libs=
18262    ;;
18263
18264   darwin*)
18265   # if libdl is installed we need to link against it
18266     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18267 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18268 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18269   echo $ECHO_N "(cached) $ECHO_C" >&6
18270 else
18271   ac_check_lib_save_LIBS=$LIBS
18272 LIBS="-ldl  $LIBS"
18273 cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h.  */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h.  */
18279
18280 /* Override any gcc2 internal prototype to avoid an error.  */
18281 #ifdef __cplusplus
18282 extern "C"
18283 #endif
18284 /* We use char because int might match the return type of a gcc2
18285    builtin and then its argument prototype would still apply.  */
18286 char dlopen ();
18287 int
18288 main ()
18289 {
18290 dlopen ();
18291   ;
18292   return 0;
18293 }
18294 _ACEOF
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297   (eval $ac_link) 2>conftest.er1
18298   ac_status=$?
18299   grep -v '^ *+' conftest.er1 >conftest.err
18300   rm -f conftest.er1
18301   cat conftest.err >&5
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); } &&
18304          { ac_try='test -z "$ac_c_werror_flag"
18305                          || test ! -s conftest.err'
18306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307   (eval $ac_try) 2>&5
18308   ac_status=$?
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); }; } &&
18311          { ac_try='test -s conftest$ac_exeext'
18312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313   (eval $ac_try) 2>&5
18314   ac_status=$?
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); }; }; then
18317   ac_cv_lib_dl_dlopen=yes
18318 else
18319   echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18321
18322 ac_cv_lib_dl_dlopen=no
18323 fi
18324 rm -f conftest.err conftest.$ac_objext \
18325       conftest$ac_exeext conftest.$ac_ext
18326 LIBS=$ac_check_lib_save_LIBS
18327 fi
18328 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18329 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18330 if test $ac_cv_lib_dl_dlopen = yes; then
18331   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18332 else
18333
18334     lt_cv_dlopen="dyld"
18335     lt_cv_dlopen_libs=
18336     lt_cv_dlopen_self=yes
18337
18338 fi
18339
18340    ;;
18341
18342   *)
18343     echo "$as_me:$LINENO: checking for shl_load" >&5
18344 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18345 if test "${ac_cv_func_shl_load+set}" = set; then
18346   echo $ECHO_N "(cached) $ECHO_C" >&6
18347 else
18348   cat >conftest.$ac_ext <<_ACEOF
18349 /* confdefs.h.  */
18350 _ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h.  */
18354 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18356 #define shl_load innocuous_shl_load
18357
18358 /* System header to define __stub macros and hopefully few prototypes,
18359     which can conflict with char shl_load (); below.
18360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18361     <limits.h> exists even on freestanding compilers.  */
18362
18363 #ifdef __STDC__
18364 # include <limits.h>
18365 #else
18366 # include <assert.h>
18367 #endif
18368
18369 #undef shl_load
18370
18371 /* Override any gcc2 internal prototype to avoid an error.  */
18372 #ifdef __cplusplus
18373 extern "C"
18374 {
18375 #endif
18376 /* We use char because int might match the return type of a gcc2
18377    builtin and then its argument prototype would still apply.  */
18378 char shl_load ();
18379 /* The GNU C library defines this for functions which it implements
18380     to always fail with ENOSYS.  Some functions are actually named
18381     something starting with __ and the normal name is an alias.  */
18382 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18383 choke me
18384 #else
18385 char (*f) () = shl_load;
18386 #endif
18387 #ifdef __cplusplus
18388 }
18389 #endif
18390
18391 int
18392 main ()
18393 {
18394 return f != shl_load;
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 rm -f conftest.$ac_objext conftest$ac_exeext
18400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18401   (eval $ac_link) 2>conftest.er1
18402   ac_status=$?
18403   grep -v '^ *+' conftest.er1 >conftest.err
18404   rm -f conftest.er1
18405   cat conftest.err >&5
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); } &&
18408          { ac_try='test -z "$ac_c_werror_flag"
18409                          || test ! -s conftest.err'
18410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411   (eval $ac_try) 2>&5
18412   ac_status=$?
18413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414   (exit $ac_status); }; } &&
18415          { ac_try='test -s conftest$ac_exeext'
18416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417   (eval $ac_try) 2>&5
18418   ac_status=$?
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); }; }; then
18421   ac_cv_func_shl_load=yes
18422 else
18423   echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18425
18426 ac_cv_func_shl_load=no
18427 fi
18428 rm -f conftest.err conftest.$ac_objext \
18429       conftest$ac_exeext conftest.$ac_ext
18430 fi
18431 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18432 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18433 if test $ac_cv_func_shl_load = yes; then
18434   lt_cv_dlopen="shl_load"
18435 else
18436   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18437 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18438 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18439   echo $ECHO_N "(cached) $ECHO_C" >&6
18440 else
18441   ac_check_lib_save_LIBS=$LIBS
18442 LIBS="-ldld  $LIBS"
18443 cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h.  */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h.  */
18449
18450 /* Override any gcc2 internal prototype to avoid an error.  */
18451 #ifdef __cplusplus
18452 extern "C"
18453 #endif
18454 /* We use char because int might match the return type of a gcc2
18455    builtin and then its argument prototype would still apply.  */
18456 char shl_load ();
18457 int
18458 main ()
18459 {
18460 shl_load ();
18461   ;
18462   return 0;
18463 }
18464 _ACEOF
18465 rm -f conftest.$ac_objext conftest$ac_exeext
18466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18467   (eval $ac_link) 2>conftest.er1
18468   ac_status=$?
18469   grep -v '^ *+' conftest.er1 >conftest.err
18470   rm -f conftest.er1
18471   cat conftest.err >&5
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); } &&
18474          { ac_try='test -z "$ac_c_werror_flag"
18475                          || test ! -s conftest.err'
18476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477   (eval $ac_try) 2>&5
18478   ac_status=$?
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); }; } &&
18481          { ac_try='test -s conftest$ac_exeext'
18482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483   (eval $ac_try) 2>&5
18484   ac_status=$?
18485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486   (exit $ac_status); }; }; then
18487   ac_cv_lib_dld_shl_load=yes
18488 else
18489   echo "$as_me: failed program was:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18491
18492 ac_cv_lib_dld_shl_load=no
18493 fi
18494 rm -f conftest.err conftest.$ac_objext \
18495       conftest$ac_exeext conftest.$ac_ext
18496 LIBS=$ac_check_lib_save_LIBS
18497 fi
18498 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18499 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18500 if test $ac_cv_lib_dld_shl_load = yes; then
18501   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18502 else
18503   echo "$as_me:$LINENO: checking for dlopen" >&5
18504 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18505 if test "${ac_cv_func_dlopen+set}" = set; then
18506   echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508   cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18516 #define dlopen innocuous_dlopen
18517
18518 /* System header to define __stub macros and hopefully few prototypes,
18519     which can conflict with char dlopen (); below.
18520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18521     <limits.h> exists even on freestanding compilers.  */
18522
18523 #ifdef __STDC__
18524 # include <limits.h>
18525 #else
18526 # include <assert.h>
18527 #endif
18528
18529 #undef dlopen
18530
18531 /* Override any gcc2 internal prototype to avoid an error.  */
18532 #ifdef __cplusplus
18533 extern "C"
18534 {
18535 #endif
18536 /* We use char because int might match the return type of a gcc2
18537    builtin and then its argument prototype would still apply.  */
18538 char dlopen ();
18539 /* The GNU C library defines this for functions which it implements
18540     to always fail with ENOSYS.  Some functions are actually named
18541     something starting with __ and the normal name is an alias.  */
18542 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18543 choke me
18544 #else
18545 char (*f) () = dlopen;
18546 #endif
18547 #ifdef __cplusplus
18548 }
18549 #endif
18550
18551 int
18552 main ()
18553 {
18554 return f != dlopen;
18555   ;
18556   return 0;
18557 }
18558 _ACEOF
18559 rm -f conftest.$ac_objext conftest$ac_exeext
18560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18561   (eval $ac_link) 2>conftest.er1
18562   ac_status=$?
18563   grep -v '^ *+' conftest.er1 >conftest.err
18564   rm -f conftest.er1
18565   cat conftest.err >&5
18566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567   (exit $ac_status); } &&
18568          { ac_try='test -z "$ac_c_werror_flag"
18569                          || test ! -s conftest.err'
18570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571   (eval $ac_try) 2>&5
18572   ac_status=$?
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); }; } &&
18575          { ac_try='test -s conftest$ac_exeext'
18576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577   (eval $ac_try) 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; }; then
18581   ac_cv_func_dlopen=yes
18582 else
18583   echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586 ac_cv_func_dlopen=no
18587 fi
18588 rm -f conftest.err conftest.$ac_objext \
18589       conftest$ac_exeext conftest.$ac_ext
18590 fi
18591 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18592 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18593 if test $ac_cv_func_dlopen = yes; then
18594   lt_cv_dlopen="dlopen"
18595 else
18596   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18597 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18598 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18599   echo $ECHO_N "(cached) $ECHO_C" >&6
18600 else
18601   ac_check_lib_save_LIBS=$LIBS
18602 LIBS="-ldl  $LIBS"
18603 cat >conftest.$ac_ext <<_ACEOF
18604 /* confdefs.h.  */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h.  */
18609
18610 /* Override any gcc2 internal prototype to avoid an error.  */
18611 #ifdef __cplusplus
18612 extern "C"
18613 #endif
18614 /* We use char because int might match the return type of a gcc2
18615    builtin and then its argument prototype would still apply.  */
18616 char dlopen ();
18617 int
18618 main ()
18619 {
18620 dlopen ();
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18627   (eval $ac_link) 2>conftest.er1
18628   ac_status=$?
18629   grep -v '^ *+' conftest.er1 >conftest.err
18630   rm -f conftest.er1
18631   cat conftest.err >&5
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); } &&
18634          { ac_try='test -z "$ac_c_werror_flag"
18635                          || test ! -s conftest.err'
18636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637   (eval $ac_try) 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; } &&
18641          { ac_try='test -s conftest$ac_exeext'
18642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643   (eval $ac_try) 2>&5
18644   ac_status=$?
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); }; }; then
18647   ac_cv_lib_dl_dlopen=yes
18648 else
18649   echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18651
18652 ac_cv_lib_dl_dlopen=no
18653 fi
18654 rm -f conftest.err conftest.$ac_objext \
18655       conftest$ac_exeext conftest.$ac_ext
18656 LIBS=$ac_check_lib_save_LIBS
18657 fi
18658 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18660 if test $ac_cv_lib_dl_dlopen = yes; then
18661   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18662 else
18663   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18664 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18666   echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668   ac_check_lib_save_LIBS=$LIBS
18669 LIBS="-lsvld  $LIBS"
18670 cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676
18677 /* Override any gcc2 internal prototype to avoid an error.  */
18678 #ifdef __cplusplus
18679 extern "C"
18680 #endif
18681 /* We use char because int might match the return type of a gcc2
18682    builtin and then its argument prototype would still apply.  */
18683 char dlopen ();
18684 int
18685 main ()
18686 {
18687 dlopen ();
18688   ;
18689   return 0;
18690 }
18691 _ACEOF
18692 rm -f conftest.$ac_objext conftest$ac_exeext
18693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18694   (eval $ac_link) 2>conftest.er1
18695   ac_status=$?
18696   grep -v '^ *+' conftest.er1 >conftest.err
18697   rm -f conftest.er1
18698   cat conftest.err >&5
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); } &&
18701          { ac_try='test -z "$ac_c_werror_flag"
18702                          || test ! -s conftest.err'
18703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704   (eval $ac_try) 2>&5
18705   ac_status=$?
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); }; } &&
18708          { ac_try='test -s conftest$ac_exeext'
18709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710   (eval $ac_try) 2>&5
18711   ac_status=$?
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); }; }; then
18714   ac_cv_lib_svld_dlopen=yes
18715 else
18716   echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18718
18719 ac_cv_lib_svld_dlopen=no
18720 fi
18721 rm -f conftest.err conftest.$ac_objext \
18722       conftest$ac_exeext conftest.$ac_ext
18723 LIBS=$ac_check_lib_save_LIBS
18724 fi
18725 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18726 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18727 if test $ac_cv_lib_svld_dlopen = yes; then
18728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18729 else
18730   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18731 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18732 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18733   echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735   ac_check_lib_save_LIBS=$LIBS
18736 LIBS="-ldld  $LIBS"
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h.  */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h.  */
18743
18744 /* Override any gcc2 internal prototype to avoid an error.  */
18745 #ifdef __cplusplus
18746 extern "C"
18747 #endif
18748 /* We use char because int might match the return type of a gcc2
18749    builtin and then its argument prototype would still apply.  */
18750 char dld_link ();
18751 int
18752 main ()
18753 {
18754 dld_link ();
18755   ;
18756   return 0;
18757 }
18758 _ACEOF
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18761   (eval $ac_link) 2>conftest.er1
18762   ac_status=$?
18763   grep -v '^ *+' conftest.er1 >conftest.err
18764   rm -f conftest.er1
18765   cat conftest.err >&5
18766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); } &&
18768          { ac_try='test -z "$ac_c_werror_flag"
18769                          || test ! -s conftest.err'
18770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771   (eval $ac_try) 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); }; } &&
18775          { ac_try='test -s conftest$ac_exeext'
18776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777   (eval $ac_try) 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); }; }; then
18781   ac_cv_lib_dld_dld_link=yes
18782 else
18783   echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18785
18786 ac_cv_lib_dld_dld_link=no
18787 fi
18788 rm -f conftest.err conftest.$ac_objext \
18789       conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18791 fi
18792 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18793 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18794 if test $ac_cv_lib_dld_dld_link = yes; then
18795   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18796 fi
18797
18798
18799 fi
18800
18801
18802 fi
18803
18804
18805 fi
18806
18807
18808 fi
18809
18810
18811 fi
18812
18813     ;;
18814   esac
18815
18816   if test "x$lt_cv_dlopen" != xno; then
18817     enable_dlopen=yes
18818   else
18819     enable_dlopen=no
18820   fi
18821
18822   case $lt_cv_dlopen in
18823   dlopen)
18824     save_CPPFLAGS="$CPPFLAGS"
18825     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18826
18827     save_LDFLAGS="$LDFLAGS"
18828     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18829
18830     save_LIBS="$LIBS"
18831     LIBS="$lt_cv_dlopen_libs $LIBS"
18832
18833     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18834 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18835 if test "${lt_cv_dlopen_self+set}" = set; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838           if test "$cross_compiling" = yes; then :
18839   lt_cv_dlopen_self=cross
18840 else
18841   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18842   lt_status=$lt_dlunknown
18843   cat > conftest.$ac_ext <<EOF
18844 #line 18844 "configure"
18845 #include "confdefs.h"
18846
18847 #if HAVE_DLFCN_H
18848 #include <dlfcn.h>
18849 #endif
18850
18851 #include <stdio.h>
18852
18853 #ifdef RTLD_GLOBAL
18854 #  define LT_DLGLOBAL           RTLD_GLOBAL
18855 #else
18856 #  ifdef DL_GLOBAL
18857 #    define LT_DLGLOBAL         DL_GLOBAL
18858 #  else
18859 #    define LT_DLGLOBAL         0
18860 #  endif
18861 #endif
18862
18863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18864    find out it does not work in some platform. */
18865 #ifndef LT_DLLAZY_OR_NOW
18866 #  ifdef RTLD_LAZY
18867 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18868 #  else
18869 #    ifdef DL_LAZY
18870 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18871 #    else
18872 #      ifdef RTLD_NOW
18873 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18874 #      else
18875 #        ifdef DL_NOW
18876 #          define LT_DLLAZY_OR_NOW      DL_NOW
18877 #        else
18878 #          define LT_DLLAZY_OR_NOW      0
18879 #        endif
18880 #      endif
18881 #    endif
18882 #  endif
18883 #endif
18884
18885 #ifdef __cplusplus
18886 extern "C" void exit (int);
18887 #endif
18888
18889 void fnord() { int i=42;}
18890 int main ()
18891 {
18892   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18893   int status = $lt_dlunknown;
18894
18895   if (self)
18896     {
18897       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18898       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18899       /* dlclose (self); */
18900     }
18901
18902     exit (status);
18903 }
18904 EOF
18905   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18906   (eval $ac_link) 2>&5
18907   ac_status=$?
18908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18910     (./conftest; exit; ) 2>/dev/null
18911     lt_status=$?
18912     case x$lt_status in
18913       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18914       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18915       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18916     esac
18917   else :
18918     # compilation failed
18919     lt_cv_dlopen_self=no
18920   fi
18921 fi
18922 rm -fr conftest*
18923
18924
18925 fi
18926 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18927 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18928
18929     if test "x$lt_cv_dlopen_self" = xyes; then
18930       LDFLAGS="$LDFLAGS $link_static_flag"
18931       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18932 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18933 if test "${lt_cv_dlopen_self_static+set}" = set; then
18934   echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936           if test "$cross_compiling" = yes; then :
18937   lt_cv_dlopen_self_static=cross
18938 else
18939   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18940   lt_status=$lt_dlunknown
18941   cat > conftest.$ac_ext <<EOF
18942 #line 18942 "configure"
18943 #include "confdefs.h"
18944
18945 #if HAVE_DLFCN_H
18946 #include <dlfcn.h>
18947 #endif
18948
18949 #include <stdio.h>
18950
18951 #ifdef RTLD_GLOBAL
18952 #  define LT_DLGLOBAL           RTLD_GLOBAL
18953 #else
18954 #  ifdef DL_GLOBAL
18955 #    define LT_DLGLOBAL         DL_GLOBAL
18956 #  else
18957 #    define LT_DLGLOBAL         0
18958 #  endif
18959 #endif
18960
18961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18962    find out it does not work in some platform. */
18963 #ifndef LT_DLLAZY_OR_NOW
18964 #  ifdef RTLD_LAZY
18965 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18966 #  else
18967 #    ifdef DL_LAZY
18968 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18969 #    else
18970 #      ifdef RTLD_NOW
18971 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18972 #      else
18973 #        ifdef DL_NOW
18974 #          define LT_DLLAZY_OR_NOW      DL_NOW
18975 #        else
18976 #          define LT_DLLAZY_OR_NOW      0
18977 #        endif
18978 #      endif
18979 #    endif
18980 #  endif
18981 #endif
18982
18983 #ifdef __cplusplus
18984 extern "C" void exit (int);
18985 #endif
18986
18987 void fnord() { int i=42;}
18988 int main ()
18989 {
18990   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18991   int status = $lt_dlunknown;
18992
18993   if (self)
18994     {
18995       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18996       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18997       /* dlclose (self); */
18998     }
18999
19000     exit (status);
19001 }
19002 EOF
19003   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19004   (eval $ac_link) 2>&5
19005   ac_status=$?
19006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19008     (./conftest; exit; ) 2>/dev/null
19009     lt_status=$?
19010     case x$lt_status in
19011       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19012       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19013       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19014     esac
19015   else :
19016     # compilation failed
19017     lt_cv_dlopen_self_static=no
19018   fi
19019 fi
19020 rm -fr conftest*
19021
19022
19023 fi
19024 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19025 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19026     fi
19027
19028     CPPFLAGS="$save_CPPFLAGS"
19029     LDFLAGS="$save_LDFLAGS"
19030     LIBS="$save_LIBS"
19031     ;;
19032   esac
19033
19034   case $lt_cv_dlopen_self in
19035   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19036   *) enable_dlopen_self=unknown ;;
19037   esac
19038
19039   case $lt_cv_dlopen_self_static in
19040   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19041   *) enable_dlopen_self_static=unknown ;;
19042   esac
19043 fi
19044
19045
19046 # The else clause should only fire when bootstrapping the
19047 # libtool distribution, otherwise you forgot to ship ltmain.sh
19048 # with your package, and you will get complaints that there are
19049 # no rules to generate ltmain.sh.
19050 if test -f "$ltmain"; then
19051   # See if we are running on zsh, and set the options which allow our commands through
19052   # without removal of \ escapes.
19053   if test -n "${ZSH_VERSION+set}" ; then
19054     setopt NO_GLOB_SUBST
19055   fi
19056   # Now quote all the things that may contain metacharacters while being
19057   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19058   # variables and quote the copies for generation of the libtool script.
19059   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19060     SED SHELL STRIP \
19061     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19062     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19063     deplibs_check_method reload_flag reload_cmds need_locks \
19064     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19065     lt_cv_sys_global_symbol_to_c_name_address \
19066     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19067     old_postinstall_cmds old_postuninstall_cmds \
19068     compiler_GCJ \
19069     CC_GCJ \
19070     LD_GCJ \
19071     lt_prog_compiler_wl_GCJ \
19072     lt_prog_compiler_pic_GCJ \
19073     lt_prog_compiler_static_GCJ \
19074     lt_prog_compiler_no_builtin_flag_GCJ \
19075     export_dynamic_flag_spec_GCJ \
19076     thread_safe_flag_spec_GCJ \
19077     whole_archive_flag_spec_GCJ \
19078     enable_shared_with_static_runtimes_GCJ \
19079     old_archive_cmds_GCJ \
19080     old_archive_from_new_cmds_GCJ \
19081     predep_objects_GCJ \
19082     postdep_objects_GCJ \
19083     predeps_GCJ \
19084     postdeps_GCJ \
19085     compiler_lib_search_path_GCJ \
19086     archive_cmds_GCJ \
19087     archive_expsym_cmds_GCJ \
19088     postinstall_cmds_GCJ \
19089     postuninstall_cmds_GCJ \
19090     old_archive_from_expsyms_cmds_GCJ \
19091     allow_undefined_flag_GCJ \
19092     no_undefined_flag_GCJ \
19093     export_symbols_cmds_GCJ \
19094     hardcode_libdir_flag_spec_GCJ \
19095     hardcode_libdir_flag_spec_ld_GCJ \
19096     hardcode_libdir_separator_GCJ \
19097     hardcode_automatic_GCJ \
19098     module_cmds_GCJ \
19099     module_expsym_cmds_GCJ \
19100     lt_cv_prog_compiler_c_o_GCJ \
19101     exclude_expsyms_GCJ \
19102     include_expsyms_GCJ; do
19103
19104     case $var in
19105     old_archive_cmds_GCJ | \
19106     old_archive_from_new_cmds_GCJ | \
19107     archive_cmds_GCJ | \
19108     archive_expsym_cmds_GCJ | \
19109     module_cmds_GCJ | \
19110     module_expsym_cmds_GCJ | \
19111     old_archive_from_expsyms_cmds_GCJ | \
19112     export_symbols_cmds_GCJ | \
19113     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19114     postinstall_cmds | postuninstall_cmds | \
19115     old_postinstall_cmds | old_postuninstall_cmds | \
19116     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19117       # Double-quote double-evaled strings.
19118       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19119       ;;
19120     *)
19121       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19122       ;;
19123     esac
19124   done
19125
19126   case $lt_echo in
19127   *'\$0 --fallback-echo"')
19128     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19129     ;;
19130   esac
19131
19132 cfgfile="$ofile"
19133
19134   cat <<__EOF__ >> "$cfgfile"
19135 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19136
19137 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19138
19139 # Shell to use when invoking shell scripts.
19140 SHELL=$lt_SHELL
19141
19142 # Whether or not to build shared libraries.
19143 build_libtool_libs=$enable_shared
19144
19145 # Whether or not to build static libraries.
19146 build_old_libs=$enable_static
19147
19148 # Whether or not to add -lc for building shared libraries.
19149 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19150
19151 # Whether or not to disallow shared libs when runtime libs are static
19152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19153
19154 # Whether or not to optimize for fast installation.
19155 fast_install=$enable_fast_install
19156
19157 # The host system.
19158 host_alias=$host_alias
19159 host=$host
19160 host_os=$host_os
19161
19162 # The build system.
19163 build_alias=$build_alias
19164 build=$build
19165 build_os=$build_os
19166
19167 # An echo program that does not interpret backslashes.
19168 echo=$lt_echo
19169
19170 # The archiver.
19171 AR=$lt_AR
19172 AR_FLAGS=$lt_AR_FLAGS
19173
19174 # A C compiler.
19175 LTCC=$lt_LTCC
19176
19177 # A language-specific compiler.
19178 CC=$lt_compiler_GCJ
19179
19180 # Is the compiler the GNU C compiler?
19181 with_gcc=$GCC_GCJ
19182
19183 # An ERE matcher.
19184 EGREP=$lt_EGREP
19185
19186 # The linker used to build libraries.
19187 LD=$lt_LD_GCJ
19188
19189 # Whether we need hard or soft links.
19190 LN_S=$lt_LN_S
19191
19192 # A BSD-compatible nm program.
19193 NM=$lt_NM
19194
19195 # A symbol stripping program
19196 STRIP=$lt_STRIP
19197
19198 # Used to examine libraries when file_magic_cmd begins "file"
19199 MAGIC_CMD=$MAGIC_CMD
19200
19201 # Used on cygwin: DLL creation program.
19202 DLLTOOL="$DLLTOOL"
19203
19204 # Used on cygwin: object dumper.
19205 OBJDUMP="$OBJDUMP"
19206
19207 # Used on cygwin: assembler.
19208 AS="$AS"
19209
19210 # The name of the directory that contains temporary libtool files.
19211 objdir=$objdir
19212
19213 # How to create reloadable object files.
19214 reload_flag=$lt_reload_flag
19215 reload_cmds=$lt_reload_cmds
19216
19217 # How to pass a linker flag through the compiler.
19218 wl=$lt_lt_prog_compiler_wl_GCJ
19219
19220 # Object file suffix (normally "o").
19221 objext="$ac_objext"
19222
19223 # Old archive suffix (normally "a").
19224 libext="$libext"
19225
19226 # Shared library suffix (normally ".so").
19227 shrext_cmds='$shrext_cmds'
19228
19229 # Executable file suffix (normally "").
19230 exeext="$exeext"
19231
19232 # Additional compiler flags for building library objects.
19233 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19234 pic_mode=$pic_mode
19235
19236 # What is the maximum length of a command?
19237 max_cmd_len=$lt_cv_sys_max_cmd_len
19238
19239 # Does compiler simultaneously support -c and -o options?
19240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19241
19242 # Must we lock files when doing compilation?
19243 need_locks=$lt_need_locks
19244
19245 # Do we need the lib prefix for modules?
19246 need_lib_prefix=$need_lib_prefix
19247
19248 # Do we need a version for libraries?
19249 need_version=$need_version
19250
19251 # Whether dlopen is supported.
19252 dlopen_support=$enable_dlopen
19253
19254 # Whether dlopen of programs is supported.
19255 dlopen_self=$enable_dlopen_self
19256
19257 # Whether dlopen of statically linked programs is supported.
19258 dlopen_self_static=$enable_dlopen_self_static
19259
19260 # Compiler flag to prevent dynamic linking.
19261 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19262
19263 # Compiler flag to turn off builtin functions.
19264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19265
19266 # Compiler flag to allow reflexive dlopens.
19267 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19268
19269 # Compiler flag to generate shared objects directly from archives.
19270 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19271
19272 # Compiler flag to generate thread-safe objects.
19273 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19274
19275 # Library versioning type.
19276 version_type=$version_type
19277
19278 # Format of library name prefix.
19279 libname_spec=$lt_libname_spec
19280
19281 # List of archive names.  First name is the real one, the rest are links.
19282 # The last name is the one that the linker finds with -lNAME.
19283 library_names_spec=$lt_library_names_spec
19284
19285 # The coded name of the library, if different from the real name.
19286 soname_spec=$lt_soname_spec
19287
19288 # Commands used to build and install an old-style archive.
19289 RANLIB=$lt_RANLIB
19290 old_archive_cmds=$lt_old_archive_cmds_GCJ
19291 old_postinstall_cmds=$lt_old_postinstall_cmds
19292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19293
19294 # Create an old-style archive from a shared archive.
19295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19296
19297 # Create a temporary old-style archive to link instead of a shared archive.
19298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19299
19300 # Commands used to build and install a shared archive.
19301 archive_cmds=$lt_archive_cmds_GCJ
19302 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19303 postinstall_cmds=$lt_postinstall_cmds
19304 postuninstall_cmds=$lt_postuninstall_cmds
19305
19306 # Commands used to build a loadable module (assumed same as above if empty)
19307 module_cmds=$lt_module_cmds_GCJ
19308 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19309
19310 # Commands to strip libraries.
19311 old_striplib=$lt_old_striplib
19312 striplib=$lt_striplib
19313
19314 # Dependencies to place before the objects being linked to create a
19315 # shared library.
19316 predep_objects=$lt_predep_objects_GCJ
19317
19318 # Dependencies to place after the objects being linked to create a
19319 # shared library.
19320 postdep_objects=$lt_postdep_objects_GCJ
19321
19322 # Dependencies to place before the objects being linked to create a
19323 # shared library.
19324 predeps=$lt_predeps_GCJ
19325
19326 # Dependencies to place after the objects being linked to create a
19327 # shared library.
19328 postdeps=$lt_postdeps_GCJ
19329
19330 # The library search path used internally by the compiler when linking
19331 # a shared library.
19332 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19333
19334 # Method to check whether dependent libraries are shared objects.
19335 deplibs_check_method=$lt_deplibs_check_method
19336
19337 # Command to use when deplibs_check_method == file_magic.
19338 file_magic_cmd=$lt_file_magic_cmd
19339
19340 # Flag that allows shared libraries with undefined symbols to be built.
19341 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19342
19343 # Flag that forces no undefined symbols.
19344 no_undefined_flag=$lt_no_undefined_flag_GCJ
19345
19346 # Commands used to finish a libtool library installation in a directory.
19347 finish_cmds=$lt_finish_cmds
19348
19349 # Same as above, but a single script fragment to be evaled but not shown.
19350 finish_eval=$lt_finish_eval
19351
19352 # Take the output of nm and produce a listing of raw symbols and C names.
19353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19354
19355 # Transform the output of nm in a proper C declaration
19356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19357
19358 # Transform the output of nm in a C name address pair
19359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19360
19361 # This is the shared library runtime path variable.
19362 runpath_var=$runpath_var
19363
19364 # This is the shared library path variable.
19365 shlibpath_var=$shlibpath_var
19366
19367 # Is shlibpath searched before the hard-coded library search path?
19368 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19369
19370 # How to hardcode a shared library path into an executable.
19371 hardcode_action=$hardcode_action_GCJ
19372
19373 # Whether we should hardcode library paths into libraries.
19374 hardcode_into_libs=$hardcode_into_libs
19375
19376 # Flag to hardcode \$libdir into a binary during linking.
19377 # This must work even if \$libdir does not exist.
19378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19379
19380 # If ld is used when linking, flag to hardcode \$libdir into
19381 # a binary during linking. This must work even if \$libdir does
19382 # not exist.
19383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19384
19385 # Whether we need a single -rpath flag with a separated argument.
19386 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19387
19388 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19389 # resulting binary.
19390 hardcode_direct=$hardcode_direct_GCJ
19391
19392 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19393 # resulting binary.
19394 hardcode_minus_L=$hardcode_minus_L_GCJ
19395
19396 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19397 # the resulting binary.
19398 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19399
19400 # Set to yes if building a shared library automatically hardcodes DIR into the library
19401 # and all subsequent libraries and executables linked against it.
19402 hardcode_automatic=$hardcode_automatic_GCJ
19403
19404 # Variables whose values should be saved in libtool wrapper scripts and
19405 # restored at relink time.
19406 variables_saved_for_relink="$variables_saved_for_relink"
19407
19408 # Whether libtool must link a program against all its dependency libraries.
19409 link_all_deplibs=$link_all_deplibs_GCJ
19410
19411 # Compile-time system search path for libraries
19412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19413
19414 # Run-time system search path for libraries
19415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19416
19417 # Fix the shell variable \$srcfile for the compiler.
19418 fix_srcfile_path="$fix_srcfile_path_GCJ"
19419
19420 # Set to yes if exported symbols are required.
19421 always_export_symbols=$always_export_symbols_GCJ
19422
19423 # The commands to list exported symbols.
19424 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19425
19426 # The commands to extract the exported symbol list from a shared archive.
19427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19428
19429 # Symbols that should not be listed in the preloaded symbols.
19430 exclude_expsyms=$lt_exclude_expsyms_GCJ
19431
19432 # Symbols that must always be exported.
19433 include_expsyms=$lt_include_expsyms_GCJ
19434
19435 # ### END LIBTOOL TAG CONFIG: $tagname
19436
19437 __EOF__
19438
19439
19440 else
19441   # If there is no Makefile yet, we rely on a make rule to execute
19442   # `config.status --recheck' to rerun these tests and create the
19443   # libtool script then.
19444   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19445   if test -f "$ltmain_in"; then
19446     test -f Makefile && make "$ltmain"
19447   fi
19448 fi
19449
19450
19451 ac_ext=c
19452 ac_cpp='$CPP $CPPFLAGS'
19453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19456
19457 CC="$lt_save_CC"
19458
19459         else
19460           tagname=""
19461         fi
19462         ;;
19463
19464       RC)
19465
19466
19467
19468 # Source file extension for RC test sources.
19469 ac_ext=rc
19470
19471 # Object file extension for compiled RC test sources.
19472 objext=o
19473 objext_RC=$objext
19474
19475 # Code to be used in simple compile tests
19476 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19477
19478 # Code to be used in simple link tests
19479 lt_simple_link_test_code="$lt_simple_compile_test_code"
19480
19481 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19482
19483 # If no C compiler was specified, use CC.
19484 LTCC=${LTCC-"$CC"}
19485
19486 # Allow CC to be a program name with arguments.
19487 compiler=$CC
19488
19489
19490 # save warnings/boilerplate of simple test code
19491 ac_outfile=conftest.$ac_objext
19492 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19493 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19494 _lt_compiler_boilerplate=`cat conftest.err`
19495 $rm conftest*
19496
19497 ac_outfile=conftest.$ac_objext
19498 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19499 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19500 _lt_linker_boilerplate=`cat conftest.err`
19501 $rm conftest*
19502
19503
19504 # Allow CC to be a program name with arguments.
19505 lt_save_CC="$CC"
19506 CC=${RC-"windres"}
19507 compiler=$CC
19508 compiler_RC=$CC
19509 for cc_temp in $compiler""; do
19510   case $cc_temp in
19511     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19512     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19513     \-*) ;;
19514     *) break;;
19515   esac
19516 done
19517 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19518
19519 lt_cv_prog_compiler_c_o_RC=yes
19520
19521 # The else clause should only fire when bootstrapping the
19522 # libtool distribution, otherwise you forgot to ship ltmain.sh
19523 # with your package, and you will get complaints that there are
19524 # no rules to generate ltmain.sh.
19525 if test -f "$ltmain"; then
19526   # See if we are running on zsh, and set the options which allow our commands through
19527   # without removal of \ escapes.
19528   if test -n "${ZSH_VERSION+set}" ; then
19529     setopt NO_GLOB_SUBST
19530   fi
19531   # Now quote all the things that may contain metacharacters while being
19532   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19533   # variables and quote the copies for generation of the libtool script.
19534   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19535     SED SHELL STRIP \
19536     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19537     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19538     deplibs_check_method reload_flag reload_cmds need_locks \
19539     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19540     lt_cv_sys_global_symbol_to_c_name_address \
19541     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19542     old_postinstall_cmds old_postuninstall_cmds \
19543     compiler_RC \
19544     CC_RC \
19545     LD_RC \
19546     lt_prog_compiler_wl_RC \
19547     lt_prog_compiler_pic_RC \
19548     lt_prog_compiler_static_RC \
19549     lt_prog_compiler_no_builtin_flag_RC \
19550     export_dynamic_flag_spec_RC \
19551     thread_safe_flag_spec_RC \
19552     whole_archive_flag_spec_RC \
19553     enable_shared_with_static_runtimes_RC \
19554     old_archive_cmds_RC \
19555     old_archive_from_new_cmds_RC \
19556     predep_objects_RC \
19557     postdep_objects_RC \
19558     predeps_RC \
19559     postdeps_RC \
19560     compiler_lib_search_path_RC \
19561     archive_cmds_RC \
19562     archive_expsym_cmds_RC \
19563     postinstall_cmds_RC \
19564     postuninstall_cmds_RC \
19565     old_archive_from_expsyms_cmds_RC \
19566     allow_undefined_flag_RC \
19567     no_undefined_flag_RC \
19568     export_symbols_cmds_RC \
19569     hardcode_libdir_flag_spec_RC \
19570     hardcode_libdir_flag_spec_ld_RC \
19571     hardcode_libdir_separator_RC \
19572     hardcode_automatic_RC \
19573     module_cmds_RC \
19574     module_expsym_cmds_RC \
19575     lt_cv_prog_compiler_c_o_RC \
19576     exclude_expsyms_RC \
19577     include_expsyms_RC; do
19578
19579     case $var in
19580     old_archive_cmds_RC | \
19581     old_archive_from_new_cmds_RC | \
19582     archive_cmds_RC | \
19583     archive_expsym_cmds_RC | \
19584     module_cmds_RC | \
19585     module_expsym_cmds_RC | \
19586     old_archive_from_expsyms_cmds_RC | \
19587     export_symbols_cmds_RC | \
19588     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19589     postinstall_cmds | postuninstall_cmds | \
19590     old_postinstall_cmds | old_postuninstall_cmds | \
19591     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19592       # Double-quote double-evaled strings.
19593       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19594       ;;
19595     *)
19596       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19597       ;;
19598     esac
19599   done
19600
19601   case $lt_echo in
19602   *'\$0 --fallback-echo"')
19603     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19604     ;;
19605   esac
19606
19607 cfgfile="$ofile"
19608
19609   cat <<__EOF__ >> "$cfgfile"
19610 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19611
19612 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19613
19614 # Shell to use when invoking shell scripts.
19615 SHELL=$lt_SHELL
19616
19617 # Whether or not to build shared libraries.
19618 build_libtool_libs=$enable_shared
19619
19620 # Whether or not to build static libraries.
19621 build_old_libs=$enable_static
19622
19623 # Whether or not to add -lc for building shared libraries.
19624 build_libtool_need_lc=$archive_cmds_need_lc_RC
19625
19626 # Whether or not to disallow shared libs when runtime libs are static
19627 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19628
19629 # Whether or not to optimize for fast installation.
19630 fast_install=$enable_fast_install
19631
19632 # The host system.
19633 host_alias=$host_alias
19634 host=$host
19635 host_os=$host_os
19636
19637 # The build system.
19638 build_alias=$build_alias
19639 build=$build
19640 build_os=$build_os
19641
19642 # An echo program that does not interpret backslashes.
19643 echo=$lt_echo
19644
19645 # The archiver.
19646 AR=$lt_AR
19647 AR_FLAGS=$lt_AR_FLAGS
19648
19649 # A C compiler.
19650 LTCC=$lt_LTCC
19651
19652 # A language-specific compiler.
19653 CC=$lt_compiler_RC
19654
19655 # Is the compiler the GNU C compiler?
19656 with_gcc=$GCC_RC
19657
19658 # An ERE matcher.
19659 EGREP=$lt_EGREP
19660
19661 # The linker used to build libraries.
19662 LD=$lt_LD_RC
19663
19664 # Whether we need hard or soft links.
19665 LN_S=$lt_LN_S
19666
19667 # A BSD-compatible nm program.
19668 NM=$lt_NM
19669
19670 # A symbol stripping program
19671 STRIP=$lt_STRIP
19672
19673 # Used to examine libraries when file_magic_cmd begins "file"
19674 MAGIC_CMD=$MAGIC_CMD
19675
19676 # Used on cygwin: DLL creation program.
19677 DLLTOOL="$DLLTOOL"
19678
19679 # Used on cygwin: object dumper.
19680 OBJDUMP="$OBJDUMP"
19681
19682 # Used on cygwin: assembler.
19683 AS="$AS"
19684
19685 # The name of the directory that contains temporary libtool files.
19686 objdir=$objdir
19687
19688 # How to create reloadable object files.
19689 reload_flag=$lt_reload_flag
19690 reload_cmds=$lt_reload_cmds
19691
19692 # How to pass a linker flag through the compiler.
19693 wl=$lt_lt_prog_compiler_wl_RC
19694
19695 # Object file suffix (normally "o").
19696 objext="$ac_objext"
19697
19698 # Old archive suffix (normally "a").
19699 libext="$libext"
19700
19701 # Shared library suffix (normally ".so").
19702 shrext_cmds='$shrext_cmds'
19703
19704 # Executable file suffix (normally "").
19705 exeext="$exeext"
19706
19707 # Additional compiler flags for building library objects.
19708 pic_flag=$lt_lt_prog_compiler_pic_RC
19709 pic_mode=$pic_mode
19710
19711 # What is the maximum length of a command?
19712 max_cmd_len=$lt_cv_sys_max_cmd_len
19713
19714 # Does compiler simultaneously support -c and -o options?
19715 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19716
19717 # Must we lock files when doing compilation?
19718 need_locks=$lt_need_locks
19719
19720 # Do we need the lib prefix for modules?
19721 need_lib_prefix=$need_lib_prefix
19722
19723 # Do we need a version for libraries?
19724 need_version=$need_version
19725
19726 # Whether dlopen is supported.
19727 dlopen_support=$enable_dlopen
19728
19729 # Whether dlopen of programs is supported.
19730 dlopen_self=$enable_dlopen_self
19731
19732 # Whether dlopen of statically linked programs is supported.
19733 dlopen_self_static=$enable_dlopen_self_static
19734
19735 # Compiler flag to prevent dynamic linking.
19736 link_static_flag=$lt_lt_prog_compiler_static_RC
19737
19738 # Compiler flag to turn off builtin functions.
19739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19740
19741 # Compiler flag to allow reflexive dlopens.
19742 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19743
19744 # Compiler flag to generate shared objects directly from archives.
19745 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19746
19747 # Compiler flag to generate thread-safe objects.
19748 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19749
19750 # Library versioning type.
19751 version_type=$version_type
19752
19753 # Format of library name prefix.
19754 libname_spec=$lt_libname_spec
19755
19756 # List of archive names.  First name is the real one, the rest are links.
19757 # The last name is the one that the linker finds with -lNAME.
19758 library_names_spec=$lt_library_names_spec
19759
19760 # The coded name of the library, if different from the real name.
19761 soname_spec=$lt_soname_spec
19762
19763 # Commands used to build and install an old-style archive.
19764 RANLIB=$lt_RANLIB
19765 old_archive_cmds=$lt_old_archive_cmds_RC
19766 old_postinstall_cmds=$lt_old_postinstall_cmds
19767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19768
19769 # Create an old-style archive from a shared archive.
19770 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19771
19772 # Create a temporary old-style archive to link instead of a shared archive.
19773 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19774
19775 # Commands used to build and install a shared archive.
19776 archive_cmds=$lt_archive_cmds_RC
19777 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19778 postinstall_cmds=$lt_postinstall_cmds
19779 postuninstall_cmds=$lt_postuninstall_cmds
19780
19781 # Commands used to build a loadable module (assumed same as above if empty)
19782 module_cmds=$lt_module_cmds_RC
19783 module_expsym_cmds=$lt_module_expsym_cmds_RC
19784
19785 # Commands to strip libraries.
19786 old_striplib=$lt_old_striplib
19787 striplib=$lt_striplib
19788
19789 # Dependencies to place before the objects being linked to create a
19790 # shared library.
19791 predep_objects=$lt_predep_objects_RC
19792
19793 # Dependencies to place after the objects being linked to create a
19794 # shared library.
19795 postdep_objects=$lt_postdep_objects_RC
19796
19797 # Dependencies to place before the objects being linked to create a
19798 # shared library.
19799 predeps=$lt_predeps_RC
19800
19801 # Dependencies to place after the objects being linked to create a
19802 # shared library.
19803 postdeps=$lt_postdeps_RC
19804
19805 # The library search path used internally by the compiler when linking
19806 # a shared library.
19807 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19808
19809 # Method to check whether dependent libraries are shared objects.
19810 deplibs_check_method=$lt_deplibs_check_method
19811
19812 # Command to use when deplibs_check_method == file_magic.
19813 file_magic_cmd=$lt_file_magic_cmd
19814
19815 # Flag that allows shared libraries with undefined symbols to be built.
19816 allow_undefined_flag=$lt_allow_undefined_flag_RC
19817
19818 # Flag that forces no undefined symbols.
19819 no_undefined_flag=$lt_no_undefined_flag_RC
19820
19821 # Commands used to finish a libtool library installation in a directory.
19822 finish_cmds=$lt_finish_cmds
19823
19824 # Same as above, but a single script fragment to be evaled but not shown.
19825 finish_eval=$lt_finish_eval
19826
19827 # Take the output of nm and produce a listing of raw symbols and C names.
19828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19829
19830 # Transform the output of nm in a proper C declaration
19831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19832
19833 # Transform the output of nm in a C name address pair
19834 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19835
19836 # This is the shared library runtime path variable.
19837 runpath_var=$runpath_var
19838
19839 # This is the shared library path variable.
19840 shlibpath_var=$shlibpath_var
19841
19842 # Is shlibpath searched before the hard-coded library search path?
19843 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19844
19845 # How to hardcode a shared library path into an executable.
19846 hardcode_action=$hardcode_action_RC
19847
19848 # Whether we should hardcode library paths into libraries.
19849 hardcode_into_libs=$hardcode_into_libs
19850
19851 # Flag to hardcode \$libdir into a binary during linking.
19852 # This must work even if \$libdir does not exist.
19853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19854
19855 # If ld is used when linking, flag to hardcode \$libdir into
19856 # a binary during linking. This must work even if \$libdir does
19857 # not exist.
19858 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19859
19860 # Whether we need a single -rpath flag with a separated argument.
19861 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19862
19863 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19864 # resulting binary.
19865 hardcode_direct=$hardcode_direct_RC
19866
19867 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19868 # resulting binary.
19869 hardcode_minus_L=$hardcode_minus_L_RC
19870
19871 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19872 # the resulting binary.
19873 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19874
19875 # Set to yes if building a shared library automatically hardcodes DIR into the library
19876 # and all subsequent libraries and executables linked against it.
19877 hardcode_automatic=$hardcode_automatic_RC
19878
19879 # Variables whose values should be saved in libtool wrapper scripts and
19880 # restored at relink time.
19881 variables_saved_for_relink="$variables_saved_for_relink"
19882
19883 # Whether libtool must link a program against all its dependency libraries.
19884 link_all_deplibs=$link_all_deplibs_RC
19885
19886 # Compile-time system search path for libraries
19887 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19888
19889 # Run-time system search path for libraries
19890 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19891
19892 # Fix the shell variable \$srcfile for the compiler.
19893 fix_srcfile_path="$fix_srcfile_path_RC"
19894
19895 # Set to yes if exported symbols are required.
19896 always_export_symbols=$always_export_symbols_RC
19897
19898 # The commands to list exported symbols.
19899 export_symbols_cmds=$lt_export_symbols_cmds_RC
19900
19901 # The commands to extract the exported symbol list from a shared archive.
19902 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19903
19904 # Symbols that should not be listed in the preloaded symbols.
19905 exclude_expsyms=$lt_exclude_expsyms_RC
19906
19907 # Symbols that must always be exported.
19908 include_expsyms=$lt_include_expsyms_RC
19909
19910 # ### END LIBTOOL TAG CONFIG: $tagname
19911
19912 __EOF__
19913
19914
19915 else
19916   # If there is no Makefile yet, we rely on a make rule to execute
19917   # `config.status --recheck' to rerun these tests and create the
19918   # libtool script then.
19919   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19920   if test -f "$ltmain_in"; then
19921     test -f Makefile && make "$ltmain"
19922   fi
19923 fi
19924
19925
19926 ac_ext=c
19927 ac_cpp='$CPP $CPPFLAGS'
19928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19931
19932 CC="$lt_save_CC"
19933
19934         ;;
19935
19936       *)
19937         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19938 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19939    { (exit 1); exit 1; }; }
19940         ;;
19941       esac
19942
19943       # Append the new tag name to the list of available tags.
19944       if test -n "$tagname" ; then
19945       available_tags="$available_tags $tagname"
19946     fi
19947     fi
19948   done
19949   IFS="$lt_save_ifs"
19950
19951   # Now substitute the updated list of available tags.
19952   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19953     mv "${ofile}T" "$ofile"
19954     chmod +x "$ofile"
19955   else
19956     rm -f "${ofile}T"
19957     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19958 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19959    { (exit 1); exit 1; }; }
19960   fi
19961 fi
19962
19963
19964
19965 # This can be used to rebuild libtool when needed
19966 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19967
19968 # Always use our own libtool.
19969 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19970
19971 # Prevent multiple expansion
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993 # Checks for header files.
19994 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19995 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19996 if test "${ac_cv_header_stdc+set}" = set; then
19997   echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999   cat >conftest.$ac_ext <<_ACEOF
20000 /* confdefs.h.  */
20001 _ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h.  */
20005 #include <stdlib.h>
20006 #include <stdarg.h>
20007 #include <string.h>
20008 #include <float.h>
20009
20010 int
20011 main ()
20012 {
20013
20014   ;
20015   return 0;
20016 }
20017 _ACEOF
20018 rm -f conftest.$ac_objext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20020   (eval $ac_compile) 2>conftest.er1
20021   ac_status=$?
20022   grep -v '^ *+' conftest.er1 >conftest.err
20023   rm -f conftest.er1
20024   cat conftest.err >&5
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); } &&
20027          { ac_try='test -z "$ac_c_werror_flag"
20028                          || test ! -s conftest.err'
20029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030   (eval $ac_try) 2>&5
20031   ac_status=$?
20032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033   (exit $ac_status); }; } &&
20034          { ac_try='test -s conftest.$ac_objext'
20035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036   (eval $ac_try) 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); }; }; then
20040   ac_cv_header_stdc=yes
20041 else
20042   echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045 ac_cv_header_stdc=no
20046 fi
20047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20048
20049 if test $ac_cv_header_stdc = yes; then
20050   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20051   cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h.  */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h.  */
20057 #include <string.h>
20058
20059 _ACEOF
20060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20061   $EGREP "memchr" >/dev/null 2>&1; then
20062   :
20063 else
20064   ac_cv_header_stdc=no
20065 fi
20066 rm -f conftest*
20067
20068 fi
20069
20070 if test $ac_cv_header_stdc = yes; then
20071   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20072   cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h.  */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h.  */
20078 #include <stdlib.h>
20079
20080 _ACEOF
20081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20082   $EGREP "free" >/dev/null 2>&1; then
20083   :
20084 else
20085   ac_cv_header_stdc=no
20086 fi
20087 rm -f conftest*
20088
20089 fi
20090
20091 if test $ac_cv_header_stdc = yes; then
20092   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20093   if test "$cross_compiling" = yes; then
20094   :
20095 else
20096   cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h.  */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h.  */
20102 #include <ctype.h>
20103 #if ((' ' & 0x0FF) == 0x020)
20104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20106 #else
20107 # define ISLOWER(c) \
20108                    (('a' <= (c) && (c) <= 'i') \
20109                      || ('j' <= (c) && (c) <= 'r') \
20110                      || ('s' <= (c) && (c) <= 'z'))
20111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20112 #endif
20113
20114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20115 int
20116 main ()
20117 {
20118   int i;
20119   for (i = 0; i < 256; i++)
20120     if (XOR (islower (i), ISLOWER (i))
20121         || toupper (i) != TOUPPER (i))
20122       exit(2);
20123   exit (0);
20124 }
20125 _ACEOF
20126 rm -f conftest$ac_exeext
20127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20128   (eval $ac_link) 2>&5
20129   ac_status=$?
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133   (eval $ac_try) 2>&5
20134   ac_status=$?
20135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136   (exit $ac_status); }; }; then
20137   :
20138 else
20139   echo "$as_me: program exited with status $ac_status" >&5
20140 echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20142
20143 ( exit $ac_status )
20144 ac_cv_header_stdc=no
20145 fi
20146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20147 fi
20148 fi
20149 fi
20150 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20151 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20152 if test $ac_cv_header_stdc = yes; then
20153
20154 cat >>confdefs.h <<\_ACEOF
20155 #define STDC_HEADERS 1
20156 _ACEOF
20157
20158 fi
20159
20160
20161
20162
20163
20164 for ac_header in fcntl.h stdlib.h string.h unistd.h
20165 do
20166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20168   echo "$as_me:$LINENO: checking for $ac_header" >&5
20169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20171   echo $ECHO_N "(cached) $ECHO_C" >&6
20172 fi
20173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20175 else
20176   # Is the header compilable?
20177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20179 cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h.  */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h.  */
20185 $ac_includes_default
20186 #include <$ac_header>
20187 _ACEOF
20188 rm -f conftest.$ac_objext
20189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20190   (eval $ac_compile) 2>conftest.er1
20191   ac_status=$?
20192   grep -v '^ *+' conftest.er1 >conftest.err
20193   rm -f conftest.er1
20194   cat conftest.err >&5
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } &&
20197          { ac_try='test -z "$ac_c_werror_flag"
20198                          || test ! -s conftest.err'
20199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200   (eval $ac_try) 2>&5
20201   ac_status=$?
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); }; } &&
20204          { ac_try='test -s conftest.$ac_objext'
20205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206   (eval $ac_try) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; }; then
20210   ac_header_compiler=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 ac_header_compiler=no
20216 fi
20217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20219 echo "${ECHO_T}$ac_header_compiler" >&6
20220
20221 # Is the header present?
20222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20224 cat >conftest.$ac_ext <<_ACEOF
20225 /* confdefs.h.  */
20226 _ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h.  */
20230 #include <$ac_header>
20231 _ACEOF
20232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20233   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } >/dev/null; then
20240   if test -s conftest.err; then
20241     ac_cpp_err=$ac_c_preproc_warn_flag
20242     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20243   else
20244     ac_cpp_err=
20245   fi
20246 else
20247   ac_cpp_err=yes
20248 fi
20249 if test -z "$ac_cpp_err"; then
20250   ac_header_preproc=yes
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255   ac_header_preproc=no
20256 fi
20257 rm -f conftest.err conftest.$ac_ext
20258 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20259 echo "${ECHO_T}$ac_header_preproc" >&6
20260
20261 # So?  What about this header?
20262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20263   yes:no: )
20264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20268     ac_header_preproc=yes
20269     ;;
20270   no:yes:* )
20271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20273     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20274 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20275     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20277     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20278 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20281     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20283     (
20284       cat <<\_ASBOX
20285 ## -------------------------------------------- ##
20286 ## Report this to sebastian.marsching@suphp.org ##
20287 ## -------------------------------------------- ##
20288 _ASBOX
20289     ) |
20290       sed "s/^/$as_me: WARNING:     /" >&2
20291     ;;
20292 esac
20293 echo "$as_me:$LINENO: checking for $ac_header" >&5
20294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20296   echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298   eval "$as_ac_Header=\$ac_header_preproc"
20299 fi
20300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20302
20303 fi
20304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20305   cat >>confdefs.h <<_ACEOF
20306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20307 _ACEOF
20308
20309 fi
20310
20311 done
20312
20313
20314 # Find apr-config
20315
20316
20317   apr_found="no"
20318
20319   if test "$ac_cv_emxos2" = "yes"; then
20320     # Scripts don't pass test -x on OS/2
20321     TEST_X="test -f"
20322   else
20323     TEST_X="test -x"
20324   fi
20325
20326   echo "$as_me:$LINENO: checking for APR" >&5
20327 echo $ECHO_N "checking for APR... $ECHO_C" >&6
20328
20329 # Check whether --with-apr or --without-apr was given.
20330 if test "${with_apr+set}" = set; then
20331   withval="$with_apr"
20332
20333     if test "$withval" = "no" || test "$withval" = "yes"; then
20334       { { echo "$as_me:$LINENO: error: --with-apr requires a directory to be provided" >&5
20335 echo "$as_me: error: --with-apr requires a directory to be provided" >&2;}
20336    { (exit 1); exit 1; }; }
20337     fi
20338
20339     if $TEST_X "$withval/bin/apr-config"; then
20340       apr_found="yes"
20341       apr_config="$withval/bin/apr-config"
20342     elif $TEST_X "$withval/apr-config"; then
20343       apr_found="yes"
20344       apr_config="$withval/apr-config"
20345     elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
20346       apr_found="yes"
20347       apr_config="$withval"
20348     fi
20349
20350         if test "$apr_found" != "yes"; then
20351       { { echo "$as_me:$LINENO: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
20352 build directory, or an apr-config file." >&5
20353 echo "$as_me: error: the --with-apr parameter is incorrect. It must specify an install prefix, a
20354 build directory, or an apr-config file." >&2;}
20355    { (exit 1); exit 1; }; }
20356     fi
20357
20358 else
20359
20360         if test -d ""; then
20361       apr_temp_abs_srcdir="`cd  && pwd`"
20362       apr_found="reconfig"
20363       if test -n ""; then
20364         apr_config="/apr-config"
20365       else
20366         apr_config="/apr-config"
20367       fi
20368     fi
20369     if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then
20370       if apr-config --help > /dev/null 2>&1 ; then
20371         apr_found="yes"
20372         apr_config="apr-config"
20373       else
20374                 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
20375           if $TEST_X "$lookdir/bin/apr-config"; then
20376             apr_found="yes"
20377             apr_config="$lookdir/bin/apr-config"
20378             break
20379           fi
20380         done
20381       fi
20382     fi
20383
20384 fi;
20385
20386   echo "$as_me:$LINENO: result: $apr_found" >&5
20387 echo "${ECHO_T}$apr_found" >&6
20388
20389
20390 # Determine Apache version and find apxs
20391
20392 echo "$as_me:$LINENO: checking for dynamic Apache module support (via APXS)" >&5
20393 echo $ECHO_N "checking for dynamic Apache module support (via APXS)... $ECHO_C" >&6
20394
20395 # Check whether --with-apxs or --without-apxs was given.
20396 if test "${with_apxs+set}" = set; then
20397   withval="$with_apxs"
20398
20399             if test "$withval" = "yes"; then
20400               APXS=apxs
20401             else
20402               APXS="$withval"
20403             fi
20404
20405 fi;
20406
20407 if test -z "$APXS"; then
20408   APXS=`which apxs`
20409 fi
20410
20411 if test "$BINNAME" = "" -a "$APXS" = "" -a "$FAIL_STATIC" = ""; then
20412   for i in /usr/sbin /usr/local/apache/bin ; do
20413     if test -f "$i/apxs"; then
20414       APXS="$i/apxs"
20415     fi
20416   done
20417 fi
20418
20419 if test -n "$APXS"; then
20420
20421
20422     APACHE_VERSION=`\`$APXS -q SBINDIR\`/\`$APXS -q TARGET\` -v \
20423                     | grep "Server version" \
20424                     | cut -f2 -d":" \
20425                     | cut -f2 -d"/" \
20426                     | cut -f1 -d" "`
20427     major_version=`echo $APACHE_VERSION|cut -f1,2 -d.`
20428     if test "$major_version" = "2.0"; then
20429       APACHE_VERSION_2=true
20430       APACHE_VERSION_1_3=false
20431     else
20432       APACHE_VERSION_2=false
20433       APACHE_VERSION_1_3=true
20434     fi
20435
20436
20437
20438     APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
20439     APXS_LIBEXECDIR=`$APXS -q LIBEXECDIR`
20440     if test x"${APACHE_VERSION_2}" = xtrue ; then \
20441       APXS_EXTRA_CFLAGS=`$APXS -q EXTRA_CFLAGS`
20442     fi
20443     if test x"${APACHE_VERSION_1_3}" = xtrue; then \
20444       APXS_EXTRA_CFLAGS=`$APXS -q CFLAGS`
20445     fi
20446
20447
20448
20449
20450     echo "$as_me:$LINENO: result: found at $APXS (version $APACHE_VERSION)" >&5
20451 echo "${ECHO_T}found at $APXS (version $APACHE_VERSION)" >&6
20452 else
20453     APXS="/notfound/"
20454
20455
20456     echo "$as_me:$LINENO: result: no" >&5
20457 echo "${ECHO_T}no" >&6
20458 fi
20459
20460 if test x"${APACHE_VERSION_2}" = xtrue ; then \
20461     if test x"${apr_found}" = xyes ; then \
20462         APR_INCLUDEDIR=`${apr_config} --includedir`
20463
20464     else
20465         { { echo "$as_me:$LINENO: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&5
20466 echo "$as_me: error: APR is needed to build mod_suphp for Apache 2.x but was not found" >&2;}
20467    { (exit 1); exit 1; }; }
20468     fi
20469 fi
20470
20471 # Get uid/gid mode
20472
20473 echo "$as_me:$LINENO: checking for set-UID/set-GID mode" >&5
20474 echo $ECHO_N "checking for set-UID/set-GID mode... $ECHO_C" >&6
20475
20476 # Check whether --with-setid-mode or --without-setid-mode was given.
20477 if test "${with_setid_mode+set}" = set; then
20478   withval="$with_setid_mode"
20479
20480             if test "$withval" = "yes"; then
20481               SETID_MODE="paranoid"
20482             else
20483               SETID_MODE="$withval"
20484             fi
20485
20486 fi;
20487
20488 if test -z "$SETID_MODE" ; then
20489   SETID_MODE="paranoid"
20490 fi
20491
20492 if test -n "$SETID_MODE"; then
20493     case "$SETID_MODE" in
20494       owner)
20495         OPT_APACHEMOD_USERGROUP_DEF=""
20496
20497
20498 cat >>confdefs.h <<\_ACEOF
20499 #define OPT_USERGROUP_OWNER 1
20500 _ACEOF
20501
20502         ;;
20503       force)
20504         OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
20505
20506
20507 cat >>confdefs.h <<\_ACEOF
20508 #define OPT_USERGROUP_FORCE 1
20509 _ACEOF
20510
20511         ;;
20512       paranoid)
20513         OPT_APACHEMOD_USERGROUP_DEF=-DSUPHP_USE_USERGROUP
20514
20515
20516 cat >>confdefs.h <<\_ACEOF
20517 #define OPT_USERGROUP_PARANOID 1
20518 _ACEOF
20519
20520         ;;
20521       *)
20522         { { echo "$as_me:$LINENO: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&5
20523 echo "$as_me: error: --with-setid-mode has to be set to one of \"owner\", \"force\" or \"paranoid\"" >&2;}
20524    { (exit 1); exit 1; }; }
20525         ;;
20526     esac
20527     echo "$as_me:$LINENO: result: ok - using $SETID_MODE" >&5
20528 echo "${ECHO_T}ok - using $SETID_MODE" >&6
20529 fi
20530
20531
20532 # Checkpath (docroot) option
20533
20534 checkpath=yes
20535 # Check whether --enable-checkpath or --disable-checkpath was given.
20536 if test "${enable_checkpath+set}" = set; then
20537   enableval="$enable_checkpath"
20538
20539               if test "$enableval" = "no"; then
20540                 checkpath=no
20541
20542 cat >>confdefs.h <<\_ACEOF
20543 #define OPT_DISABLE_CHECKPATH 1
20544 _ACEOF
20545
20546               fi
20547
20548 fi;
20549
20550
20551 # Minimum UID
20552
20553
20554 # Check whether --with-min-uid or --without-min-uid was given.
20555 if test "${with_min_uid+set}" = set; then
20556   withval="$with_min_uid"
20557
20558              if test "$withval" -a ! "$withval" = "yes" ; then
20559
20560 cat >>confdefs.h <<_ACEOF
20561 #define OPT_MIN_UID $withval
20562 _ACEOF
20563
20564              fi
20565
20566 else
20567
20568
20569 cat >>confdefs.h <<\_ACEOF
20570 #define OPT_MIN_UID 100
20571 _ACEOF
20572
20573
20574 fi;
20575
20576 # Minimum GID
20577
20578
20579 # Check whether --with-min-gid or --without-min-gid was given.
20580 if test "${with_min_gid+set}" = set; then
20581   withval="$with_min_gid"
20582
20583              if test "$withval" -a ! "$withval" = "yes" ; then
20584
20585 cat >>confdefs.h <<_ACEOF
20586 #define OPT_MIN_GID $withval
20587 _ACEOF
20588
20589              fi
20590
20591 else
20592
20593
20594 cat >>confdefs.h <<\_ACEOF
20595 #define OPT_MIN_GID 100
20596 _ACEOF
20597
20598
20599 fi;
20600
20601
20602 # Webserver user
20603
20604
20605 # Check whether --with-apache-user or --without-apache-user was given.
20606 if test "${with_apache_user+set}" = set; then
20607   withval="$with_apache_user"
20608
20609              if test "$withval" -a ! "$withval" = "yes" ; then
20610
20611 cat >>confdefs.h <<_ACEOF
20612 #define OPT_APACHE_USER "$withval"
20613 _ACEOF
20614
20615              fi
20616
20617 else
20618
20619
20620 cat >>confdefs.h <<_ACEOF
20621 #define OPT_APACHE_USER "wwwrun"
20622 _ACEOF
20623
20624
20625 fi;
20626
20627 # Path to logfile
20628
20629
20630 # Check whether --with-logfile or --without-logfile was given.
20631 if test "${with_logfile+set}" = set; then
20632   withval="$with_logfile"
20633
20634              if test "$withval" -a ! "$withval" = "yes" ; then
20635
20636 cat >>confdefs.h <<_ACEOF
20637 #define OPT_LOGFILE "$withval"
20638 _ACEOF
20639
20640              fi
20641
20642 else
20643
20644
20645 cat >>confdefs.h <<_ACEOF
20646 #define OPT_LOGFILE "/var/log/httpd/suphp_log"
20647 _ACEOF
20648
20649
20650 fi;
20651
20652
20653 # Conditional building of Apache module
20654
20655
20656 if test x"$APACHE_VERSION_1_3" = xtrue; then
20657   COND_AP13_TRUE=
20658   COND_AP13_FALSE='#'
20659 else
20660   COND_AP13_TRUE='#'
20661   COND_AP13_FALSE=
20662 fi
20663
20664
20665
20666 if test x"$APACHE_VERSION_2" = xtrue; then
20667   COND_AP20_TRUE=
20668   COND_AP20_FALSE='#'
20669 else
20670   COND_AP20_TRUE='#'
20671   COND_AP20_FALSE=
20672 fi
20673
20674
20675 # Conditionally include UserGroup support
20676
20677
20678 if test \( x"$SETID_MODE" = xparanoid \) -o \( x"$SETID_MODE" = xforce \) ; then
20679   COND_APUSERGROUP_TRUE=
20680   COND_APUSERGROUP_FALSE='#'
20681 else
20682   COND_APUSERGROUP_TRUE='#'
20683   COND_APUSERGROUP_FALSE=
20684 fi
20685
20686
20687                                         ac_config_files="$ac_config_files Makefile src/Makefile src/apache/Makefile src/apache2/Makefile"
20688
20689 cat >confcache <<\_ACEOF
20690 # This file is a shell script that caches the results of configure
20691 # tests run on this system so they can be shared between configure
20692 # scripts and configure runs, see configure's option --config-cache.
20693 # It is not useful on other systems.  If it contains results you don't
20694 # want to keep, you may remove or edit it.
20695 #
20696 # config.status only pays attention to the cache file if you give it
20697 # the --recheck option to rerun configure.
20698 #
20699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20701 # following values.
20702
20703 _ACEOF
20704
20705 # The following way of writing the cache mishandles newlines in values,
20706 # but we know of no workaround that is simple, portable, and efficient.
20707 # So, don't put newlines in cache variables' values.
20708 # Ultrix sh set writes to stderr and can't be redirected directly,
20709 # and sets the high bit in the cache file unless we assign to the vars.
20710 {
20711   (set) 2>&1 |
20712     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20713     *ac_space=\ *)
20714       # `set' does not quote correctly, so add quotes (double-quote
20715       # substitution turns \\\\ into \\, and sed turns \\ into \).
20716       sed -n \
20717         "s/'/'\\\\''/g;
20718           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20719       ;;
20720     *)
20721       # `set' quotes correctly as required by POSIX, so do not add quotes.
20722       sed -n \
20723         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20724       ;;
20725     esac;
20726 } |
20727   sed '
20728      t clear
20729      : clear
20730      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20731      t end
20732      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20733      : end' >>confcache
20734 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20735   if test -w $cache_file; then
20736     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20737     cat confcache >$cache_file
20738   else
20739     echo "not updating unwritable cache $cache_file"
20740   fi
20741 fi
20742 rm -f confcache
20743
20744 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20745 # Let make expand exec_prefix.
20746 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20747
20748 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20749 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20750 # trailing colons and then remove the whole line if VPATH becomes empty
20751 # (actually we leave an empty line to preserve line numbers).
20752 if test "x$srcdir" = x.; then
20753   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20754 s/:*\$(srcdir):*/:/;
20755 s/:*\${srcdir}:*/:/;
20756 s/:*@srcdir@:*/:/;
20757 s/^\([^=]*=[     ]*\):*/\1/;
20758 s/:*$//;
20759 s/^[^=]*=[       ]*$//;
20760 }'
20761 fi
20762
20763 DEFS=-DHAVE_CONFIG_H
20764
20765 ac_libobjs=
20766 ac_ltlibobjs=
20767 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20768   # 1. Remove the extension, and $U if already installed.
20769   ac_i=`echo "$ac_i" |
20770          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20771   # 2. Add them.
20772   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20773   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20774 done
20775 LIBOBJS=$ac_libobjs
20776
20777 LTLIBOBJS=$ac_ltlibobjs
20778
20779
20780 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20781   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20782 Usually this means the macro was only invoked conditionally." >&5
20783 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20784 Usually this means the macro was only invoked conditionally." >&2;}
20785    { (exit 1); exit 1; }; }
20786 fi
20787 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20788   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20789 Usually this means the macro was only invoked conditionally." >&5
20790 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20791 Usually this means the macro was only invoked conditionally." >&2;}
20792    { (exit 1); exit 1; }; }
20793 fi
20794 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20795   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20796 Usually this means the macro was only invoked conditionally." >&5
20797 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20798 Usually this means the macro was only invoked conditionally." >&2;}
20799    { (exit 1); exit 1; }; }
20800 fi
20801 if test -z "${COND_AP13_TRUE}" && test -z "${COND_AP13_FALSE}"; then
20802   { { echo "$as_me:$LINENO: error: conditional \"COND_AP13\" was never defined.
20803 Usually this means the macro was only invoked conditionally." >&5
20804 echo "$as_me: error: conditional \"COND_AP13\" was never defined.
20805 Usually this means the macro was only invoked conditionally." >&2;}
20806    { (exit 1); exit 1; }; }
20807 fi
20808 if test -z "${COND_AP20_TRUE}" && test -z "${COND_AP20_FALSE}"; then
20809   { { echo "$as_me:$LINENO: error: conditional \"COND_AP20\" was never defined.
20810 Usually this means the macro was only invoked conditionally." >&5
20811 echo "$as_me: error: conditional \"COND_AP20\" was never defined.
20812 Usually this means the macro was only invoked conditionally." >&2;}
20813    { (exit 1); exit 1; }; }
20814 fi
20815 if test -z "${COND_APUSERGROUP_TRUE}" && test -z "${COND_APUSERGROUP_FALSE}"; then
20816   { { echo "$as_me:$LINENO: error: conditional \"COND_APUSERGROUP\" was never defined.
20817 Usually this means the macro was only invoked conditionally." >&5
20818 echo "$as_me: error: conditional \"COND_APUSERGROUP\" was never defined.
20819 Usually this means the macro was only invoked conditionally." >&2;}
20820    { (exit 1); exit 1; }; }
20821 fi
20822
20823 : ${CONFIG_STATUS=./config.status}
20824 ac_clean_files_save=$ac_clean_files
20825 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20826 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20827 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20828 cat >$CONFIG_STATUS <<_ACEOF
20829 #! $SHELL
20830 # Generated by $as_me.
20831 # Run this file to recreate the current configuration.
20832 # Compiler output produced by configure, useful for debugging
20833 # configure, is in config.log if it exists.
20834
20835 debug=false
20836 ac_cs_recheck=false
20837 ac_cs_silent=false
20838 SHELL=\${CONFIG_SHELL-$SHELL}
20839 _ACEOF
20840
20841 cat >>$CONFIG_STATUS <<\_ACEOF
20842 ## --------------------- ##
20843 ## M4sh Initialization.  ##
20844 ## --------------------- ##
20845
20846 # Be Bourne compatible
20847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20848   emulate sh
20849   NULLCMD=:
20850   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20851   # is contrary to our usage.  Disable this feature.
20852   alias -g '${1+"$@"}'='"$@"'
20853 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20854   set -o posix
20855 fi
20856 DUALCASE=1; export DUALCASE # for MKS sh
20857
20858 # Support unset when possible.
20859 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20860   as_unset=unset
20861 else
20862   as_unset=false
20863 fi
20864
20865
20866 # Work around bugs in pre-3.0 UWIN ksh.
20867 $as_unset ENV MAIL MAILPATH
20868 PS1='$ '
20869 PS2='> '
20870 PS4='+ '
20871
20872 # NLS nuisances.
20873 for as_var in \
20874   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20875   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20876   LC_TELEPHONE LC_TIME
20877 do
20878   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20879     eval $as_var=C; export $as_var
20880   else
20881     $as_unset $as_var
20882   fi
20883 done
20884
20885 # Required to use basename.
20886 if expr a : '\(a\)' >/dev/null 2>&1; then
20887   as_expr=expr
20888 else
20889   as_expr=false
20890 fi
20891
20892 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20893   as_basename=basename
20894 else
20895   as_basename=false
20896 fi
20897
20898
20899 # Name of the executable.
20900 as_me=`$as_basename "$0" ||
20901 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20902          X"$0" : 'X\(//\)$' \| \
20903          X"$0" : 'X\(/\)$' \| \
20904          .     : '\(.\)' 2>/dev/null ||
20905 echo X/"$0" |
20906     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20907           /^X\/\(\/\/\)$/{ s//\1/; q; }
20908           /^X\/\(\/\).*/{ s//\1/; q; }
20909           s/.*/./; q'`
20910
20911
20912 # PATH needs CR, and LINENO needs CR and PATH.
20913 # Avoid depending upon Character Ranges.
20914 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20915 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20916 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20917 as_cr_digits='0123456789'
20918 as_cr_alnum=$as_cr_Letters$as_cr_digits
20919
20920 # The user is always right.
20921 if test "${PATH_SEPARATOR+set}" != set; then
20922   echo "#! /bin/sh" >conf$$.sh
20923   echo  "exit 0"   >>conf$$.sh
20924   chmod +x conf$$.sh
20925   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20926     PATH_SEPARATOR=';'
20927   else
20928     PATH_SEPARATOR=:
20929   fi
20930   rm -f conf$$.sh
20931 fi
20932
20933
20934   as_lineno_1=$LINENO
20935   as_lineno_2=$LINENO
20936   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20937   test "x$as_lineno_1" != "x$as_lineno_2" &&
20938   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20939   # Find who we are.  Look in the path if we contain no path at all
20940   # relative or not.
20941   case $0 in
20942     *[\\/]* ) as_myself=$0 ;;
20943     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20944 for as_dir in $PATH
20945 do
20946   IFS=$as_save_IFS
20947   test -z "$as_dir" && as_dir=.
20948   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20949 done
20950
20951        ;;
20952   esac
20953   # We did not find ourselves, most probably we were run as `sh COMMAND'
20954   # in which case we are not to be found in the path.
20955   if test "x$as_myself" = x; then
20956     as_myself=$0
20957   fi
20958   if test ! -f "$as_myself"; then
20959     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20960 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20961    { (exit 1); exit 1; }; }
20962   fi
20963   case $CONFIG_SHELL in
20964   '')
20965     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20966 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20967 do
20968   IFS=$as_save_IFS
20969   test -z "$as_dir" && as_dir=.
20970   for as_base in sh bash ksh sh5; do
20971          case $as_dir in
20972          /*)
20973            if ("$as_dir/$as_base" -c '
20974   as_lineno_1=$LINENO
20975   as_lineno_2=$LINENO
20976   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20977   test "x$as_lineno_1" != "x$as_lineno_2" &&
20978   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20979              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20980              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20981              CONFIG_SHELL=$as_dir/$as_base
20982              export CONFIG_SHELL
20983              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20984            fi;;
20985          esac
20986        done
20987 done
20988 ;;
20989   esac
20990
20991   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20992   # uniformly replaced by the line number.  The first 'sed' inserts a
20993   # line-number line before each line; the second 'sed' does the real
20994   # work.  The second script uses 'N' to pair each line-number line
20995   # with the numbered line, and appends trailing '-' during
20996   # substitution so that $LINENO is not a special case at line end.
20997   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20998   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20999   sed '=' <$as_myself |
21000     sed '
21001       N
21002       s,$,-,
21003       : loop
21004       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21005       t loop
21006       s,-$,,
21007       s,^['$as_cr_digits']*\n,,
21008     ' >$as_me.lineno &&
21009   chmod +x $as_me.lineno ||
21010     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21011 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21012    { (exit 1); exit 1; }; }
21013
21014   # Don't try to exec as it changes $[0], causing all sort of problems
21015   # (the dirname of $[0] is not the place where we might find the
21016   # original and so on.  Autoconf is especially sensible to this).
21017   . ./$as_me.lineno
21018   # Exit status is that of the last command.
21019   exit
21020 }
21021
21022
21023 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21024   *c*,-n*) ECHO_N= ECHO_C='
21025 ' ECHO_T='      ' ;;
21026   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21027   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21028 esac
21029
21030 if expr a : '\(a\)' >/dev/null 2>&1; then
21031   as_expr=expr
21032 else
21033   as_expr=false
21034 fi
21035
21036 rm -f conf$$ conf$$.exe conf$$.file
21037 echo >conf$$.file
21038 if ln -s conf$$.file conf$$ 2>/dev/null; then
21039   # We could just check for DJGPP; but this test a) works b) is more generic
21040   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21041   if test -f conf$$.exe; then
21042     # Don't use ln at all; we don't have any links
21043     as_ln_s='cp -p'
21044   else
21045     as_ln_s='ln -s'
21046   fi
21047 elif ln conf$$.file conf$$ 2>/dev/null; then
21048   as_ln_s=ln
21049 else
21050   as_ln_s='cp -p'
21051 fi
21052 rm -f conf$$ conf$$.exe conf$$.file
21053
21054 if mkdir -p . 2>/dev/null; then
21055   as_mkdir_p=:
21056 else
21057   test -d ./-p && rmdir ./-p
21058   as_mkdir_p=false
21059 fi
21060
21061 as_executable_p="test -f"
21062
21063 # Sed expression to map a string onto a valid CPP name.
21064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21065
21066 # Sed expression to map a string onto a valid variable name.
21067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21068
21069
21070 # IFS
21071 # We need space, tab and new line, in precisely that order.
21072 as_nl='
21073 '
21074 IFS="   $as_nl"
21075
21076 # CDPATH.
21077 $as_unset CDPATH
21078
21079 exec 6>&1
21080
21081 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21082 # report actual input values of CONFIG_FILES etc. instead of their
21083 # values after options handling.  Logging --version etc. is OK.
21084 exec 5>>config.log
21085 {
21086   echo
21087   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21088 ## Running $as_me. ##
21089 _ASBOX
21090 } >&5
21091 cat >&5 <<_CSEOF
21092
21093 This file was extended by suPHP $as_me 0.6.1, which was
21094 generated by GNU Autoconf 2.59.  Invocation command line was
21095
21096   CONFIG_FILES    = $CONFIG_FILES
21097   CONFIG_HEADERS  = $CONFIG_HEADERS
21098   CONFIG_LINKS    = $CONFIG_LINKS
21099   CONFIG_COMMANDS = $CONFIG_COMMANDS
21100   $ $0 $@
21101
21102 _CSEOF
21103 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21104 echo >&5
21105 _ACEOF
21106
21107 # Files that config.status was made for.
21108 if test -n "$ac_config_files"; then
21109   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21110 fi
21111
21112 if test -n "$ac_config_headers"; then
21113   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21114 fi
21115
21116 if test -n "$ac_config_links"; then
21117   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21118 fi
21119
21120 if test -n "$ac_config_commands"; then
21121   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21122 fi
21123
21124 cat >>$CONFIG_STATUS <<\_ACEOF
21125
21126 ac_cs_usage="\
21127 \`$as_me' instantiates files from templates according to the
21128 current configuration.
21129
21130 Usage: $0 [OPTIONS] [FILE]...
21131
21132   -h, --help       print this help, then exit
21133   -V, --version    print version number, then exit
21134   -q, --quiet      do not print progress messages
21135   -d, --debug      don't remove temporary files
21136       --recheck    update $as_me by reconfiguring in the same conditions
21137   --file=FILE[:TEMPLATE]
21138                    instantiate the configuration file FILE
21139   --header=FILE[:TEMPLATE]
21140                    instantiate the configuration header FILE
21141
21142 Configuration files:
21143 $config_files
21144
21145 Configuration headers:
21146 $config_headers
21147
21148 Configuration commands:
21149 $config_commands
21150
21151 Report bugs to <bug-autoconf@gnu.org>."
21152 _ACEOF
21153
21154 cat >>$CONFIG_STATUS <<_ACEOF
21155 ac_cs_version="\\
21156 suPHP config.status 0.6.1
21157 configured by $0, generated by GNU Autoconf 2.59,
21158   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21159
21160 Copyright (C) 2003 Free Software Foundation, Inc.
21161 This config.status script is free software; the Free Software Foundation
21162 gives unlimited permission to copy, distribute and modify it."
21163 srcdir=$srcdir
21164 INSTALL="$INSTALL"
21165 _ACEOF
21166
21167 cat >>$CONFIG_STATUS <<\_ACEOF
21168 # If no file are specified by the user, then we need to provide default
21169 # value.  By we need to know if files were specified by the user.
21170 ac_need_defaults=:
21171 while test $# != 0
21172 do
21173   case $1 in
21174   --*=*)
21175     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21176     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21177     ac_shift=:
21178     ;;
21179   -*)
21180     ac_option=$1
21181     ac_optarg=$2
21182     ac_shift=shift
21183     ;;
21184   *) # This is not an option, so the user has probably given explicit
21185      # arguments.
21186      ac_option=$1
21187      ac_need_defaults=false;;
21188   esac
21189
21190   case $ac_option in
21191   # Handling of the options.
21192 _ACEOF
21193 cat >>$CONFIG_STATUS <<\_ACEOF
21194   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21195     ac_cs_recheck=: ;;
21196   --version | --vers* | -V )
21197     echo "$ac_cs_version"; exit 0 ;;
21198   --he | --h)
21199     # Conflict between --help and --header
21200     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21201 Try \`$0 --help' for more information." >&5
21202 echo "$as_me: error: ambiguous option: $1
21203 Try \`$0 --help' for more information." >&2;}
21204    { (exit 1); exit 1; }; };;
21205   --help | --hel | -h )
21206     echo "$ac_cs_usage"; exit 0 ;;
21207   --debug | --d* | -d )
21208     debug=: ;;
21209   --file | --fil | --fi | --f )
21210     $ac_shift
21211     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21212     ac_need_defaults=false;;
21213   --header | --heade | --head | --hea )
21214     $ac_shift
21215     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21216     ac_need_defaults=false;;
21217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21218   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21219     ac_cs_silent=: ;;
21220
21221   # This is an error.
21222   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21223 Try \`$0 --help' for more information." >&5
21224 echo "$as_me: error: unrecognized option: $1
21225 Try \`$0 --help' for more information." >&2;}
21226    { (exit 1); exit 1; }; } ;;
21227
21228   *) ac_config_targets="$ac_config_targets $1" ;;
21229
21230   esac
21231   shift
21232 done
21233
21234 ac_configure_extra_args=
21235
21236 if $ac_cs_silent; then
21237   exec 6>/dev/null
21238   ac_configure_extra_args="$ac_configure_extra_args --silent"
21239 fi
21240
21241 _ACEOF
21242 cat >>$CONFIG_STATUS <<_ACEOF
21243 if \$ac_cs_recheck; then
21244   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21245   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21246 fi
21247
21248 _ACEOF
21249
21250 cat >>$CONFIG_STATUS <<_ACEOF
21251 #
21252 # INIT-COMMANDS section.
21253 #
21254
21255 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21256
21257 _ACEOF
21258
21259
21260
21261 cat >>$CONFIG_STATUS <<\_ACEOF
21262 for ac_config_target in $ac_config_targets
21263 do
21264   case "$ac_config_target" in
21265   # Handling of arguments.
21266   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21267   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21268   "src/apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache/Makefile" ;;
21269   "src/apache2/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/apache2/Makefile" ;;
21270   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21271   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21272   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21273 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21274    { (exit 1); exit 1; }; };;
21275   esac
21276 done
21277
21278 # If the user did not use the arguments to specify the items to instantiate,
21279 # then the envvar interface is used.  Set only those that are not.
21280 # We use the long form for the default assignment because of an extremely
21281 # bizarre bug on SunOS 4.1.3.
21282 if $ac_need_defaults; then
21283   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21284   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21285   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21286 fi
21287
21288 # Have a temporary directory for convenience.  Make it in the build tree
21289 # simply because there is no reason to put it here, and in addition,
21290 # creating and moving files from /tmp can sometimes cause problems.
21291 # Create a temporary directory, and hook for its removal unless debugging.
21292 $debug ||
21293 {
21294   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21295   trap '{ (exit 1); exit 1; }' 1 2 13 15
21296 }
21297
21298 # Create a (secure) tmp directory for tmp files.
21299
21300 {
21301   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21302   test -n "$tmp" && test -d "$tmp"
21303 }  ||
21304 {
21305   tmp=./confstat$$-$RANDOM
21306   (umask 077 && mkdir $tmp)
21307 } ||
21308 {
21309    echo "$me: cannot create a temporary directory in ." >&2
21310    { (exit 1); exit 1; }
21311 }
21312
21313 _ACEOF
21314
21315 cat >>$CONFIG_STATUS <<_ACEOF
21316
21317 #
21318 # CONFIG_FILES section.
21319 #
21320
21321 # No need to generate the scripts if there are no CONFIG_FILES.
21322 # This happens for instance when ./config.status config.h
21323 if test -n "\$CONFIG_FILES"; then
21324   # Protect against being on the right side of a sed subst in config.status.
21325   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21326    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21327 s,@SHELL@,$SHELL,;t t
21328 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21329 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21330 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21331 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21332 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21333 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21334 s,@exec_prefix@,$exec_prefix,;t t
21335 s,@prefix@,$prefix,;t t
21336 s,@program_transform_name@,$program_transform_name,;t t
21337 s,@bindir@,$bindir,;t t
21338 s,@sbindir@,$sbindir,;t t
21339 s,@libexecdir@,$libexecdir,;t t
21340 s,@datadir@,$datadir,;t t
21341 s,@sysconfdir@,$sysconfdir,;t t
21342 s,@sharedstatedir@,$sharedstatedir,;t t
21343 s,@localstatedir@,$localstatedir,;t t
21344 s,@libdir@,$libdir,;t t
21345 s,@includedir@,$includedir,;t t
21346 s,@oldincludedir@,$oldincludedir,;t t
21347 s,@infodir@,$infodir,;t t
21348 s,@mandir@,$mandir,;t t
21349 s,@build_alias@,$build_alias,;t t
21350 s,@host_alias@,$host_alias,;t t
21351 s,@target_alias@,$target_alias,;t t
21352 s,@DEFS@,$DEFS,;t t
21353 s,@ECHO_C@,$ECHO_C,;t t
21354 s,@ECHO_N@,$ECHO_N,;t t
21355 s,@ECHO_T@,$ECHO_T,;t t
21356 s,@LIBS@,$LIBS,;t t
21357 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21358 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21359 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21360 s,@CYGPATH_W@,$CYGPATH_W,;t t
21361 s,@PACKAGE@,$PACKAGE,;t t
21362 s,@VERSION@,$VERSION,;t t
21363 s,@ACLOCAL@,$ACLOCAL,;t t
21364 s,@AUTOCONF@,$AUTOCONF,;t t
21365 s,@AUTOMAKE@,$AUTOMAKE,;t t
21366 s,@AUTOHEADER@,$AUTOHEADER,;t t
21367 s,@MAKEINFO@,$MAKEINFO,;t t
21368 s,@install_sh@,$install_sh,;t t
21369 s,@STRIP@,$STRIP,;t t
21370 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21371 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21372 s,@mkdir_p@,$mkdir_p,;t t
21373 s,@AWK@,$AWK,;t t
21374 s,@SET_MAKE@,$SET_MAKE,;t t
21375 s,@am__leading_dot@,$am__leading_dot,;t t
21376 s,@AMTAR@,$AMTAR,;t t
21377 s,@am__tar@,$am__tar,;t t
21378 s,@am__untar@,$am__untar,;t t
21379 s,@CC@,$CC,;t t
21380 s,@CFLAGS@,$CFLAGS,;t t
21381 s,@LDFLAGS@,$LDFLAGS,;t t
21382 s,@CPPFLAGS@,$CPPFLAGS,;t t
21383 s,@ac_ct_CC@,$ac_ct_CC,;t t
21384 s,@EXEEXT@,$EXEEXT,;t t
21385 s,@OBJEXT@,$OBJEXT,;t t
21386 s,@DEPDIR@,$DEPDIR,;t t
21387 s,@am__include@,$am__include,;t t
21388 s,@am__quote@,$am__quote,;t t
21389 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21390 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21391 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21392 s,@CCDEPMODE@,$CCDEPMODE,;t t
21393 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21394 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21395 s,@CXX@,$CXX,;t t
21396 s,@CXXFLAGS@,$CXXFLAGS,;t t
21397 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21398 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21399 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21400 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21401 s,@build@,$build,;t t
21402 s,@build_cpu@,$build_cpu,;t t
21403 s,@build_vendor@,$build_vendor,;t t
21404 s,@build_os@,$build_os,;t t
21405 s,@host@,$host,;t t
21406 s,@host_cpu@,$host_cpu,;t t
21407 s,@host_vendor@,$host_vendor,;t t
21408 s,@host_os@,$host_os,;t t
21409 s,@EGREP@,$EGREP,;t t
21410 s,@LN_S@,$LN_S,;t t
21411 s,@ECHO@,$ECHO,;t t
21412 s,@AR@,$AR,;t t
21413 s,@ac_ct_AR@,$ac_ct_AR,;t t
21414 s,@RANLIB@,$RANLIB,;t t
21415 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21416 s,@CPP@,$CPP,;t t
21417 s,@CXXCPP@,$CXXCPP,;t t
21418 s,@F77@,$F77,;t t
21419 s,@FFLAGS@,$FFLAGS,;t t
21420 s,@ac_ct_F77@,$ac_ct_F77,;t t
21421 s,@LIBTOOL@,$LIBTOOL,;t t
21422 s,@APXS@,$APXS,;t t
21423 s,@APACHE_VERSION_1_3@,$APACHE_VERSION_1_3,;t t
21424 s,@APACHE_VERSION_2@,$APACHE_VERSION_2,;t t
21425 s,@APXS_INCLUDEDIR@,$APXS_INCLUDEDIR,;t t
21426 s,@APXS_LIBEXECDIR@,$APXS_LIBEXECDIR,;t t
21427 s,@APXS_EXTRA_CFLAGS@,$APXS_EXTRA_CFLAGS,;t t
21428 s,@APR_INCLUDEDIR@,$APR_INCLUDEDIR,;t t
21429 s,@OPT_APACHEMOD_USERGROUP_DEF@,$OPT_APACHEMOD_USERGROUP_DEF,;t t
21430 s,@COND_AP13_TRUE@,$COND_AP13_TRUE,;t t
21431 s,@COND_AP13_FALSE@,$COND_AP13_FALSE,;t t
21432 s,@COND_AP20_TRUE@,$COND_AP20_TRUE,;t t
21433 s,@COND_AP20_FALSE@,$COND_AP20_FALSE,;t t
21434 s,@COND_APUSERGROUP_TRUE@,$COND_APUSERGROUP_TRUE,;t t
21435 s,@COND_APUSERGROUP_FALSE@,$COND_APUSERGROUP_FALSE,;t t
21436 s,@LIBOBJS@,$LIBOBJS,;t t
21437 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21438 CEOF
21439
21440 _ACEOF
21441
21442   cat >>$CONFIG_STATUS <<\_ACEOF
21443   # Split the substitutions into bite-sized pieces for seds with
21444   # small command number limits, like on Digital OSF/1 and HP-UX.
21445   ac_max_sed_lines=48
21446   ac_sed_frag=1 # Number of current file.
21447   ac_beg=1 # First line for current file.
21448   ac_end=$ac_max_sed_lines # Line after last line for current file.
21449   ac_more_lines=:
21450   ac_sed_cmds=
21451   while $ac_more_lines; do
21452     if test $ac_beg -gt 1; then
21453       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21454     else
21455       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21456     fi
21457     if test ! -s $tmp/subs.frag; then
21458       ac_more_lines=false
21459     else
21460       # The purpose of the label and of the branching condition is to
21461       # speed up the sed processing (if there are no `@' at all, there
21462       # is no need to browse any of the substitutions).
21463       # These are the two extra sed commands mentioned above.
21464       (echo ':t
21465   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21466       if test -z "$ac_sed_cmds"; then
21467         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21468       else
21469         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21470       fi
21471       ac_sed_frag=`expr $ac_sed_frag + 1`
21472       ac_beg=$ac_end
21473       ac_end=`expr $ac_end + $ac_max_sed_lines`
21474     fi
21475   done
21476   if test -z "$ac_sed_cmds"; then
21477     ac_sed_cmds=cat
21478   fi
21479 fi # test -n "$CONFIG_FILES"
21480
21481 _ACEOF
21482 cat >>$CONFIG_STATUS <<\_ACEOF
21483 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21484   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21485   case $ac_file in
21486   - | *:- | *:-:* ) # input from stdin
21487         cat >$tmp/stdin
21488         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21489         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21490   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21491         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21492   * )   ac_file_in=$ac_file.in ;;
21493   esac
21494
21495   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21496   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21497 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21498          X"$ac_file" : 'X\(//\)[^/]' \| \
21499          X"$ac_file" : 'X\(//\)$' \| \
21500          X"$ac_file" : 'X\(/\)' \| \
21501          .     : '\(.\)' 2>/dev/null ||
21502 echo X"$ac_file" |
21503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21504           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21505           /^X\(\/\/\)$/{ s//\1/; q; }
21506           /^X\(\/\).*/{ s//\1/; q; }
21507           s/.*/./; q'`
21508   { if $as_mkdir_p; then
21509     mkdir -p "$ac_dir"
21510   else
21511     as_dir="$ac_dir"
21512     as_dirs=
21513     while test ! -d "$as_dir"; do
21514       as_dirs="$as_dir $as_dirs"
21515       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21517          X"$as_dir" : 'X\(//\)[^/]' \| \
21518          X"$as_dir" : 'X\(//\)$' \| \
21519          X"$as_dir" : 'X\(/\)' \| \
21520          .     : '\(.\)' 2>/dev/null ||
21521 echo X"$as_dir" |
21522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21523           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21524           /^X\(\/\/\)$/{ s//\1/; q; }
21525           /^X\(\/\).*/{ s//\1/; q; }
21526           s/.*/./; q'`
21527     done
21528     test ! -n "$as_dirs" || mkdir $as_dirs
21529   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21530 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21531    { (exit 1); exit 1; }; }; }
21532
21533   ac_builddir=.
21534
21535 if test "$ac_dir" != .; then
21536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21537   # A "../" for each directory in $ac_dir_suffix.
21538   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21539 else
21540   ac_dir_suffix= ac_top_builddir=
21541 fi
21542
21543 case $srcdir in
21544   .)  # No --srcdir option.  We are building in place.
21545     ac_srcdir=.
21546     if test -z "$ac_top_builddir"; then
21547        ac_top_srcdir=.
21548     else
21549        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21550     fi ;;
21551   [\\/]* | ?:[\\/]* )  # Absolute path.
21552     ac_srcdir=$srcdir$ac_dir_suffix;
21553     ac_top_srcdir=$srcdir ;;
21554   *) # Relative path.
21555     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21556     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21557 esac
21558
21559 # Do not use `cd foo && pwd` to compute absolute paths, because
21560 # the directories may not exist.
21561 case `pwd` in
21562 .) ac_abs_builddir="$ac_dir";;
21563 *)
21564   case "$ac_dir" in
21565   .) ac_abs_builddir=`pwd`;;
21566   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21567   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21568   esac;;
21569 esac
21570 case $ac_abs_builddir in
21571 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21572 *)
21573   case ${ac_top_builddir}. in
21574   .) ac_abs_top_builddir=$ac_abs_builddir;;
21575   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21576   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21577   esac;;
21578 esac
21579 case $ac_abs_builddir in
21580 .) ac_abs_srcdir=$ac_srcdir;;
21581 *)
21582   case $ac_srcdir in
21583   .) ac_abs_srcdir=$ac_abs_builddir;;
21584   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21585   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21586   esac;;
21587 esac
21588 case $ac_abs_builddir in
21589 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21590 *)
21591   case $ac_top_srcdir in
21592   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21593   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21594   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21595   esac;;
21596 esac
21597
21598
21599   case $INSTALL in
21600   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21601   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21602   esac
21603
21604   if test x"$ac_file" != x-; then
21605     { echo "$as_me:$LINENO: creating $ac_file" >&5
21606 echo "$as_me: creating $ac_file" >&6;}
21607     rm -f "$ac_file"
21608   fi
21609   # Let's still pretend it is `configure' which instantiates (i.e., don't
21610   # use $as_me), people would be surprised to read:
21611   #    /* config.h.  Generated by config.status.  */
21612   if test x"$ac_file" = x-; then
21613     configure_input=
21614   else
21615     configure_input="$ac_file.  "
21616   fi
21617   configure_input=$configure_input"Generated from `echo $ac_file_in |
21618                                      sed 's,.*/,,'` by configure."
21619
21620   # First look for the input files in the build tree, otherwise in the
21621   # src tree.
21622   ac_file_inputs=`IFS=:
21623     for f in $ac_file_in; do
21624       case $f in
21625       -) echo $tmp/stdin ;;
21626       [\\/$]*)
21627          # Absolute (can't be DOS-style, as IFS=:)
21628          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21629 echo "$as_me: error: cannot find input file: $f" >&2;}
21630    { (exit 1); exit 1; }; }
21631          echo "$f";;
21632       *) # Relative
21633          if test -f "$f"; then
21634            # Build tree
21635            echo "$f"
21636          elif test -f "$srcdir/$f"; then
21637            # Source tree
21638            echo "$srcdir/$f"
21639          else
21640            # /dev/null tree
21641            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21642 echo "$as_me: error: cannot find input file: $f" >&2;}
21643    { (exit 1); exit 1; }; }
21644          fi;;
21645       esac
21646     done` || { (exit 1); exit 1; }
21647 _ACEOF
21648 cat >>$CONFIG_STATUS <<_ACEOF
21649   sed "$ac_vpsub
21650 $extrasub
21651 _ACEOF
21652 cat >>$CONFIG_STATUS <<\_ACEOF
21653 :t
21654 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21655 s,@configure_input@,$configure_input,;t t
21656 s,@srcdir@,$ac_srcdir,;t t
21657 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21658 s,@top_srcdir@,$ac_top_srcdir,;t t
21659 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21660 s,@builddir@,$ac_builddir,;t t
21661 s,@abs_builddir@,$ac_abs_builddir,;t t
21662 s,@top_builddir@,$ac_top_builddir,;t t
21663 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21664 s,@INSTALL@,$ac_INSTALL,;t t
21665 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21666   rm -f $tmp/stdin
21667   if test x"$ac_file" != x-; then
21668     mv $tmp/out $ac_file
21669   else
21670     cat $tmp/out
21671     rm -f $tmp/out
21672   fi
21673
21674 done
21675 _ACEOF
21676 cat >>$CONFIG_STATUS <<\_ACEOF
21677
21678 #
21679 # CONFIG_HEADER section.
21680 #
21681
21682 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21683 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21684 #
21685 # ac_d sets the value in "#define NAME VALUE" lines.
21686 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21687 ac_dB='[         ].*$,\1#\2'
21688 ac_dC=' '
21689 ac_dD=',;t'
21690 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21691 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21692 ac_uB='$,\1#\2define\3'
21693 ac_uC=' '
21694 ac_uD=',;t'
21695
21696 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21697   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21698   case $ac_file in
21699   - | *:- | *:-:* ) # input from stdin
21700         cat >$tmp/stdin
21701         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21702         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21703   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21704         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21705   * )   ac_file_in=$ac_file.in ;;
21706   esac
21707
21708   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21709 echo "$as_me: creating $ac_file" >&6;}
21710
21711   # First look for the input files in the build tree, otherwise in the
21712   # src tree.
21713   ac_file_inputs=`IFS=:
21714     for f in $ac_file_in; do
21715       case $f in
21716       -) echo $tmp/stdin ;;
21717       [\\/$]*)
21718          # Absolute (can't be DOS-style, as IFS=:)
21719          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21720 echo "$as_me: error: cannot find input file: $f" >&2;}
21721    { (exit 1); exit 1; }; }
21722          # Do quote $f, to prevent DOS paths from being IFS'd.
21723          echo "$f";;
21724       *) # Relative
21725          if test -f "$f"; then
21726            # Build tree
21727            echo "$f"
21728          elif test -f "$srcdir/$f"; then
21729            # Source tree
21730            echo "$srcdir/$f"
21731          else
21732            # /dev/null tree
21733            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21734 echo "$as_me: error: cannot find input file: $f" >&2;}
21735    { (exit 1); exit 1; }; }
21736          fi;;
21737       esac
21738     done` || { (exit 1); exit 1; }
21739   # Remove the trailing spaces.
21740   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21741
21742 _ACEOF
21743
21744 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21745 # `conftest.undefs', that substitutes the proper values into
21746 # config.h.in to produce config.h.  The first handles `#define'
21747 # templates, and the second `#undef' templates.
21748 # And first: Protect against being on the right side of a sed subst in
21749 # config.status.  Protect against being in an unquoted here document
21750 # in config.status.
21751 rm -f conftest.defines conftest.undefs
21752 # Using a here document instead of a string reduces the quoting nightmare.
21753 # Putting comments in sed scripts is not portable.
21754 #
21755 # `end' is used to avoid that the second main sed command (meant for
21756 # 0-ary CPP macros) applies to n-ary macro definitions.
21757 # See the Autoconf documentation for `clear'.
21758 cat >confdef2sed.sed <<\_ACEOF
21759 s/[\\&,]/\\&/g
21760 s,[\\$`],\\&,g
21761 t clear
21762 : clear
21763 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21764 t end
21765 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21766 : end
21767 _ACEOF
21768 # If some macros were called several times there might be several times
21769 # the same #defines, which is useless.  Nevertheless, we may not want to
21770 # sort them, since we want the *last* AC-DEFINE to be honored.
21771 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21772 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21773 rm -f confdef2sed.sed
21774
21775 # This sed command replaces #undef with comments.  This is necessary, for
21776 # example, in the case of _POSIX_SOURCE, which is predefined and required
21777 # on some systems where configure will not decide to define it.
21778 cat >>conftest.undefs <<\_ACEOF
21779 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21780 _ACEOF
21781
21782 # Break up conftest.defines because some shells have a limit on the size
21783 # of here documents, and old seds have small limits too (100 cmds).
21784 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21785 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21786 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21787 echo '  :' >>$CONFIG_STATUS
21788 rm -f conftest.tail
21789 while grep . conftest.defines >/dev/null
21790 do
21791   # Write a limited-size here document to $tmp/defines.sed.
21792   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21793   # Speed up: don't consider the non `#define' lines.
21794   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21795   # Work around the forget-to-reset-the-flag bug.
21796   echo 't clr' >>$CONFIG_STATUS
21797   echo ': clr' >>$CONFIG_STATUS
21798   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21799   echo 'CEOF
21800   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21801   rm -f $tmp/in
21802   mv $tmp/out $tmp/in
21803 ' >>$CONFIG_STATUS
21804   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21805   rm -f conftest.defines
21806   mv conftest.tail conftest.defines
21807 done
21808 rm -f conftest.defines
21809 echo '  fi # grep' >>$CONFIG_STATUS
21810 echo >>$CONFIG_STATUS
21811
21812 # Break up conftest.undefs because some shells have a limit on the size
21813 # of here documents, and old seds have small limits too (100 cmds).
21814 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21815 rm -f conftest.tail
21816 while grep . conftest.undefs >/dev/null
21817 do
21818   # Write a limited-size here document to $tmp/undefs.sed.
21819   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21820   # Speed up: don't consider the non `#undef'
21821   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21822   # Work around the forget-to-reset-the-flag bug.
21823   echo 't clr' >>$CONFIG_STATUS
21824   echo ': clr' >>$CONFIG_STATUS
21825   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21826   echo 'CEOF
21827   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21828   rm -f $tmp/in
21829   mv $tmp/out $tmp/in
21830 ' >>$CONFIG_STATUS
21831   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21832   rm -f conftest.undefs
21833   mv conftest.tail conftest.undefs
21834 done
21835 rm -f conftest.undefs
21836
21837 cat >>$CONFIG_STATUS <<\_ACEOF
21838   # Let's still pretend it is `configure' which instantiates (i.e., don't
21839   # use $as_me), people would be surprised to read:
21840   #    /* config.h.  Generated by config.status.  */
21841   if test x"$ac_file" = x-; then
21842     echo "/* Generated by configure.  */" >$tmp/config.h
21843   else
21844     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21845   fi
21846   cat $tmp/in >>$tmp/config.h
21847   rm -f $tmp/in
21848   if test x"$ac_file" != x-; then
21849     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21850       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21851 echo "$as_me: $ac_file is unchanged" >&6;}
21852     else
21853       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21854 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21855          X"$ac_file" : 'X\(//\)[^/]' \| \
21856          X"$ac_file" : 'X\(//\)$' \| \
21857          X"$ac_file" : 'X\(/\)' \| \
21858          .     : '\(.\)' 2>/dev/null ||
21859 echo X"$ac_file" |
21860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21861           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21862           /^X\(\/\/\)$/{ s//\1/; q; }
21863           /^X\(\/\).*/{ s//\1/; q; }
21864           s/.*/./; q'`
21865       { if $as_mkdir_p; then
21866     mkdir -p "$ac_dir"
21867   else
21868     as_dir="$ac_dir"
21869     as_dirs=
21870     while test ! -d "$as_dir"; do
21871       as_dirs="$as_dir $as_dirs"
21872       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21874          X"$as_dir" : 'X\(//\)[^/]' \| \
21875          X"$as_dir" : 'X\(//\)$' \| \
21876          X"$as_dir" : 'X\(/\)' \| \
21877          .     : '\(.\)' 2>/dev/null ||
21878 echo X"$as_dir" |
21879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21880           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21881           /^X\(\/\/\)$/{ s//\1/; q; }
21882           /^X\(\/\).*/{ s//\1/; q; }
21883           s/.*/./; q'`
21884     done
21885     test ! -n "$as_dirs" || mkdir $as_dirs
21886   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21887 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21888    { (exit 1); exit 1; }; }; }
21889
21890       rm -f $ac_file
21891       mv $tmp/config.h $ac_file
21892     fi
21893   else
21894     cat $tmp/config.h
21895     rm -f $tmp/config.h
21896   fi
21897 # Compute $ac_file's index in $config_headers.
21898 _am_stamp_count=1
21899 for _am_header in $config_headers :; do
21900   case $_am_header in
21901     $ac_file | $ac_file:* )
21902       break ;;
21903     * )
21904       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21905   esac
21906 done
21907 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21908 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21909          X$ac_file : 'X\(//\)[^/]' \| \
21910          X$ac_file : 'X\(//\)$' \| \
21911          X$ac_file : 'X\(/\)' \| \
21912          .     : '\(.\)' 2>/dev/null ||
21913 echo X$ac_file |
21914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21915           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21916           /^X\(\/\/\)$/{ s//\1/; q; }
21917           /^X\(\/\).*/{ s//\1/; q; }
21918           s/.*/./; q'`/stamp-h$_am_stamp_count
21919 done
21920 _ACEOF
21921 cat >>$CONFIG_STATUS <<\_ACEOF
21922
21923 #
21924 # CONFIG_COMMANDS section.
21925 #
21926 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21927   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21928   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21929   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21930 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21931          X"$ac_dest" : 'X\(//\)[^/]' \| \
21932          X"$ac_dest" : 'X\(//\)$' \| \
21933          X"$ac_dest" : 'X\(/\)' \| \
21934          .     : '\(.\)' 2>/dev/null ||
21935 echo X"$ac_dest" |
21936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21938           /^X\(\/\/\)$/{ s//\1/; q; }
21939           /^X\(\/\).*/{ s//\1/; q; }
21940           s/.*/./; q'`
21941   { if $as_mkdir_p; then
21942     mkdir -p "$ac_dir"
21943   else
21944     as_dir="$ac_dir"
21945     as_dirs=
21946     while test ! -d "$as_dir"; do
21947       as_dirs="$as_dir $as_dirs"
21948       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21950          X"$as_dir" : 'X\(//\)[^/]' \| \
21951          X"$as_dir" : 'X\(//\)$' \| \
21952          X"$as_dir" : 'X\(/\)' \| \
21953          .     : '\(.\)' 2>/dev/null ||
21954 echo X"$as_dir" |
21955     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21956           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21957           /^X\(\/\/\)$/{ s//\1/; q; }
21958           /^X\(\/\).*/{ s//\1/; q; }
21959           s/.*/./; q'`
21960     done
21961     test ! -n "$as_dirs" || mkdir $as_dirs
21962   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21963 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21964    { (exit 1); exit 1; }; }; }
21965
21966   ac_builddir=.
21967
21968 if test "$ac_dir" != .; then
21969   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21970   # A "../" for each directory in $ac_dir_suffix.
21971   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21972 else
21973   ac_dir_suffix= ac_top_builddir=
21974 fi
21975
21976 case $srcdir in
21977   .)  # No --srcdir option.  We are building in place.
21978     ac_srcdir=.
21979     if test -z "$ac_top_builddir"; then
21980        ac_top_srcdir=.
21981     else
21982        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21983     fi ;;
21984   [\\/]* | ?:[\\/]* )  # Absolute path.
21985     ac_srcdir=$srcdir$ac_dir_suffix;
21986     ac_top_srcdir=$srcdir ;;
21987   *) # Relative path.
21988     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21989     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21990 esac
21991
21992 # Do not use `cd foo && pwd` to compute absolute paths, because
21993 # the directories may not exist.
21994 case `pwd` in
21995 .) ac_abs_builddir="$ac_dir";;
21996 *)
21997   case "$ac_dir" in
21998   .) ac_abs_builddir=`pwd`;;
21999   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22000   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22001   esac;;
22002 esac
22003 case $ac_abs_builddir in
22004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22005 *)
22006   case ${ac_top_builddir}. in
22007   .) ac_abs_top_builddir=$ac_abs_builddir;;
22008   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22009   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22010   esac;;
22011 esac
22012 case $ac_abs_builddir in
22013 .) ac_abs_srcdir=$ac_srcdir;;
22014 *)
22015   case $ac_srcdir in
22016   .) ac_abs_srcdir=$ac_abs_builddir;;
22017   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22018   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22019   esac;;
22020 esac
22021 case $ac_abs_builddir in
22022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22023 *)
22024   case $ac_top_srcdir in
22025   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22026   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22027   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22028   esac;;
22029 esac
22030
22031
22032   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22033 echo "$as_me: executing $ac_dest commands" >&6;}
22034   case $ac_dest in
22035     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22036   # Strip MF so we end up with the name of the file.
22037   mf=`echo "$mf" | sed -e 's/:.*$//'`
22038   # Check whether this is an Automake generated Makefile or not.
22039   # We used to match only the files named `Makefile.in', but
22040   # some people rename them; so instead we look at the file content.
22041   # Grep'ing the first line is not enough: some people post-process
22042   # each Makefile.in and add a new line on top of each file to say so.
22043   # So let's grep whole file.
22044   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22045     dirpart=`(dirname "$mf") 2>/dev/null ||
22046 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22047          X"$mf" : 'X\(//\)[^/]' \| \
22048          X"$mf" : 'X\(//\)$' \| \
22049          X"$mf" : 'X\(/\)' \| \
22050          .     : '\(.\)' 2>/dev/null ||
22051 echo X"$mf" |
22052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22053           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22054           /^X\(\/\/\)$/{ s//\1/; q; }
22055           /^X\(\/\).*/{ s//\1/; q; }
22056           s/.*/./; q'`
22057   else
22058     continue
22059   fi
22060   # Extract the definition of DEPDIR, am__include, and am__quote
22061   # from the Makefile without running `make'.
22062   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22063   test -z "$DEPDIR" && continue
22064   am__include=`sed -n 's/^am__include = //p' < "$mf"`
22065   test -z "am__include" && continue
22066   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22067   # When using ansi2knr, U may be empty or an underscore; expand it
22068   U=`sed -n 's/^U = //p' < "$mf"`
22069   # Find all dependency output files, they are included files with
22070   # $(DEPDIR) in their names.  We invoke sed twice because it is the
22071   # simplest approach to changing $(DEPDIR) to its actual value in the
22072   # expansion.
22073   for file in `sed -n "
22074     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22075        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22076     # Make sure the directory exists.
22077     test -f "$dirpart/$file" && continue
22078     fdir=`(dirname "$file") 2>/dev/null ||
22079 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22080          X"$file" : 'X\(//\)[^/]' \| \
22081          X"$file" : 'X\(//\)$' \| \
22082          X"$file" : 'X\(/\)' \| \
22083          .     : '\(.\)' 2>/dev/null ||
22084 echo X"$file" |
22085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22087           /^X\(\/\/\)$/{ s//\1/; q; }
22088           /^X\(\/\).*/{ s//\1/; q; }
22089           s/.*/./; q'`
22090     { if $as_mkdir_p; then
22091     mkdir -p $dirpart/$fdir
22092   else
22093     as_dir=$dirpart/$fdir
22094     as_dirs=
22095     while test ! -d "$as_dir"; do
22096       as_dirs="$as_dir $as_dirs"
22097       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22099          X"$as_dir" : 'X\(//\)[^/]' \| \
22100          X"$as_dir" : 'X\(//\)$' \| \
22101          X"$as_dir" : 'X\(/\)' \| \
22102          .     : '\(.\)' 2>/dev/null ||
22103 echo X"$as_dir" |
22104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22105           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22106           /^X\(\/\/\)$/{ s//\1/; q; }
22107           /^X\(\/\).*/{ s//\1/; q; }
22108           s/.*/./; q'`
22109     done
22110     test ! -n "$as_dirs" || mkdir $as_dirs
22111   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22112 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22113    { (exit 1); exit 1; }; }; }
22114
22115     # echo "creating $dirpart/$file"
22116     echo '# dummy' > "$dirpart/$file"
22117   done
22118 done
22119  ;;
22120   esac
22121 done
22122 _ACEOF
22123
22124 cat >>$CONFIG_STATUS <<\_ACEOF
22125
22126 { (exit 0); exit 0; }
22127 _ACEOF
22128 chmod +x $CONFIG_STATUS
22129 ac_clean_files=$ac_clean_files_save
22130
22131
22132 # configure is writing to config.log, and then calls config.status.
22133 # config.status does its own redirection, appending to config.log.
22134 # Unfortunately, on DOS this fails, as config.log is still kept open
22135 # by configure, so config.status won't be able to write to it; its
22136 # output is simply discarded.  So we exec the FD to /dev/null,
22137 # effectively closing config.log, so it can be properly (re)opened and
22138 # appended to by config.status.  When coming back to configure, we
22139 # need to make the FD available again.
22140 if test "$no_create" != yes; then
22141   ac_cs_success=:
22142   ac_config_status_args=
22143   test "$silent" = yes &&
22144     ac_config_status_args="$ac_config_status_args --quiet"
22145   exec 5>/dev/null
22146   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22147   exec 5>>config.log
22148   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22149   # would make configure fail if this is the last instruction.
22150   $ac_cs_success || { (exit 1); exit 1; }
22151 fi
22152
22153
22154 if test "$APXS" = "/notfound/"; then
22155   { echo "$as_me:$LINENO: WARNING:
22156 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22157 !!*** APXS was not found, so mod_suphp will not be built! ***!!
22158 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22159   " >&5
22160 echo "$as_me: WARNING:
22161 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22162 !!*** APXS was not found, so mod_suphp will not be built! ***!!
22163 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
22164   " >&2;}
22165 fi
22166