6f0ba820288046ad50bd9bd4877e72d1d972dc16
[aubio.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="src/aubio.h"
429 ac_default_prefix=/usr
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG FFTWLIB_CFLAGS FFTWLIB_LIBS SNDLIB_CFLAGS SNDLIB_LIBS SAMPLERATE_CFLAGS SAMPLERATE_LIBS JACK_CFLAGS JACK_LIBS ALSA_CFLAGS ALSA_LIBS LADCCA_CFLAGS LADCCA_LIBS PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
1010   --program-prefix=PREFIX            prepend PREFIX to installed program names
1011   --program-suffix=SUFFIX            append SUFFIX to installed program names
1012   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014 System types:
1015   --build=BUILD     configure for building on BUILD [guessed]
1016   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --enable-debug[=value]   compile with debug [default=no]
1028   --enable-warnme[=value]   compile with all -W [default=yes]
1029   --disable-dependency-tracking Speeds up one-time builds
1030   --enable-dependency-tracking  Do not reject slow dependency extractors
1031   --enable-shared[=PKGS]
1032                           build shared libraries [default=yes]
1033   --enable-static[=PKGS]
1034                           build static libraries [default=yes]
1035   --enable-fast-install[=PKGS]
1036                           optimize for fast installation [default=yes]
1037   --disable-libtool-lock  avoid locking (might break parallel builds)
1038   --enable-fftw3f[=value]   compile with fftw3f [default=no]
1039   --enable-jack[=value]   compile with jack [default=no]
1040   --enable-alsa[=value]   compile with alsa [default=no]
1041   --enable-ladcca[=value]   compile with ladcca [default=no]
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051
1052 Some influential environment variables:
1053   CC          C compiler command
1054   CFLAGS      C compiler flags
1055   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1056               nonstandard directory <lib dir>
1057   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058               headers in a nonstandard directory <include dir>
1059   CPP         C preprocessor
1060   CXX         C++ compiler command
1061   CXXFLAGS    C++ compiler flags
1062   CXXCPP      C++ preprocessor
1063   F77         Fortran 77 compiler command
1064   FFLAGS      Fortran 77 compiler flags
1065
1066 Use these variables to override the choices made by `configure' or to help
1067 it to find libraries and programs with nonstandard names/locations.
1068
1069 _ACEOF
1070 fi
1071
1072 if test "$ac_init_help" = "recursive"; then
1073   # If there are subdirs, report their specific --help.
1074   ac_popdir=`pwd`
1075   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1076     test -d $ac_dir || continue
1077     ac_builddir=.
1078
1079 if test "$ac_dir" != .; then
1080   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1081   # A "../" for each directory in $ac_dir_suffix.
1082   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1083 else
1084   ac_dir_suffix= ac_top_builddir=
1085 fi
1086
1087 case $srcdir in
1088   .)  # No --srcdir option.  We are building in place.
1089     ac_srcdir=.
1090     if test -z "$ac_top_builddir"; then
1091        ac_top_srcdir=.
1092     else
1093        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1094     fi ;;
1095   [\\/]* | ?:[\\/]* )  # Absolute path.
1096     ac_srcdir=$srcdir$ac_dir_suffix;
1097     ac_top_srcdir=$srcdir ;;
1098   *) # Relative path.
1099     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1100     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1101 esac
1102
1103 # Do not use `cd foo && pwd` to compute absolute paths, because
1104 # the directories may not exist.
1105 case `pwd` in
1106 .) ac_abs_builddir="$ac_dir";;
1107 *)
1108   case "$ac_dir" in
1109   .) ac_abs_builddir=`pwd`;;
1110   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1111   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1112   esac;;
1113 esac
1114 case $ac_abs_builddir in
1115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1116 *)
1117   case ${ac_top_builddir}. in
1118   .) ac_abs_top_builddir=$ac_abs_builddir;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1120   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1121   esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_srcdir=$ac_srcdir;;
1125 *)
1126   case $ac_srcdir in
1127   .) ac_abs_srcdir=$ac_abs_builddir;;
1128   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1129   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1130   esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1134 *)
1135   case $ac_top_srcdir in
1136   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1137   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1138   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1139   esac;;
1140 esac
1141
1142     cd $ac_dir
1143     # Check for guested configure; otherwise get Cygnus style configure.
1144     if test -f $ac_srcdir/configure.gnu; then
1145       echo
1146       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1147     elif test -f $ac_srcdir/configure; then
1148       echo
1149       $SHELL $ac_srcdir/configure  --help=recursive
1150     elif test -f $ac_srcdir/configure.ac ||
1151            test -f $ac_srcdir/configure.in; then
1152       echo
1153       $ac_configure --help
1154     else
1155       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1156     fi
1157     cd "$ac_popdir"
1158   done
1159 fi
1160
1161 test -n "$ac_init_help" && exit 0
1162 if $ac_init_version; then
1163   cat <<\_ACEOF
1164
1165 Copyright (C) 2003 Free Software Foundation, Inc.
1166 This configure script is free software; the Free Software Foundation
1167 gives unlimited permission to copy, distribute and modify it.
1168 _ACEOF
1169   exit 0
1170 fi
1171 exec 5>config.log
1172 cat >&5 <<_ACEOF
1173 This file contains any messages produced by compilers while
1174 running configure, to aid debugging if configure makes a mistake.
1175
1176 It was created by $as_me, which was
1177 generated by GNU Autoconf 2.59.  Invocation command line was
1178
1179   $ $0 $@
1180
1181 _ACEOF
1182 {
1183 cat <<_ASUNAME
1184 ## --------- ##
1185 ## Platform. ##
1186 ## --------- ##
1187
1188 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1196
1197 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1198 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1199 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1201 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1202 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1203 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1204
1205 _ASUNAME
1206
1207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208 for as_dir in $PATH
1209 do
1210   IFS=$as_save_IFS
1211   test -z "$as_dir" && as_dir=.
1212   echo "PATH: $as_dir"
1213 done
1214
1215 } >&5
1216
1217 cat >&5 <<_ACEOF
1218
1219
1220 ## ----------- ##
1221 ## Core tests. ##
1222 ## ----------- ##
1223
1224 _ACEOF
1225
1226
1227 # Keep a trace of the command line.
1228 # Strip out --no-create and --no-recursion so they do not pile up.
1229 # Strip out --silent because we don't want to record it for future runs.
1230 # Also quote any args containing shell meta-characters.
1231 # Make two passes to allow for proper duplicate-argument suppression.
1232 ac_configure_args=
1233 ac_configure_args0=
1234 ac_configure_args1=
1235 ac_sep=
1236 ac_must_keep_next=false
1237 for ac_pass in 1 2
1238 do
1239   for ac_arg
1240   do
1241     case $ac_arg in
1242     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244     | -silent | --silent | --silen | --sile | --sil)
1245       continue ;;
1246     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248     esac
1249     case $ac_pass in
1250     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251     2)
1252       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253       if test $ac_must_keep_next = true; then
1254         ac_must_keep_next=false # Got value, back to normal.
1255       else
1256         case $ac_arg in
1257           *=* | --config-cache | -C | -disable-* | --disable-* \
1258           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260           | -with-* | --with-* | -without-* | --without-* | --x)
1261             case "$ac_configure_args0 " in
1262               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263             esac
1264             ;;
1265           -* ) ac_must_keep_next=true ;;
1266         esac
1267       fi
1268       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269       # Get rid of the leading space.
1270       ac_sep=" "
1271       ;;
1272     esac
1273   done
1274 done
1275 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278 # When interrupted or exit'd, cleanup temporary files, and complete
1279 # config.log.  We remove comments because anyway the quotes in there
1280 # would cause problems or look ugly.
1281 # WARNING: Be sure not to use single quotes in there, as some shells,
1282 # such as our DU 5.0 friend, will then `close' the trap.
1283 trap 'exit_status=$?
1284   # Save into config.log some information that might help in debugging.
1285   {
1286     echo
1287
1288     cat <<\_ASBOX
1289 ## ---------------- ##
1290 ## Cache variables. ##
1291 ## ---------------- ##
1292 _ASBOX
1293     echo
1294     # The following way of writing the cache mishandles newlines in values,
1295 {
1296   (set) 2>&1 |
1297     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298     *ac_space=\ *)
1299       sed -n \
1300         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302       ;;
1303     *)
1304       sed -n \
1305         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306       ;;
1307     esac;
1308 }
1309     echo
1310
1311     cat <<\_ASBOX
1312 ## ----------------- ##
1313 ## Output variables. ##
1314 ## ----------------- ##
1315 _ASBOX
1316     echo
1317     for ac_var in $ac_subst_vars
1318     do
1319       eval ac_val=$`echo $ac_var`
1320       echo "$ac_var='"'"'$ac_val'"'"'"
1321     done | sort
1322     echo
1323
1324     if test -n "$ac_subst_files"; then
1325       cat <<\_ASBOX
1326 ## ------------- ##
1327 ## Output files. ##
1328 ## ------------- ##
1329 _ASBOX
1330       echo
1331       for ac_var in $ac_subst_files
1332       do
1333         eval ac_val=$`echo $ac_var`
1334         echo "$ac_var='"'"'$ac_val'"'"'"
1335       done | sort
1336       echo
1337     fi
1338
1339     if test -s confdefs.h; then
1340       cat <<\_ASBOX
1341 ## ----------- ##
1342 ## confdefs.h. ##
1343 ## ----------- ##
1344 _ASBOX
1345       echo
1346       sed "/^$/d" confdefs.h | sort
1347       echo
1348     fi
1349     test "$ac_signal" != 0 &&
1350       echo "$as_me: caught signal $ac_signal"
1351     echo "$as_me: exit $exit_status"
1352   } >&5
1353   rm -f core *.core &&
1354   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355     exit $exit_status
1356      ' 0
1357 for ac_signal in 1 2 13 15; do
1358   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359 done
1360 ac_signal=0
1361
1362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1363 rm -rf conftest* confdefs.h
1364 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365 echo >confdefs.h
1366
1367 # Predefined preprocessor variables.
1368
1369 cat >>confdefs.h <<_ACEOF
1370 #define PACKAGE_NAME "$PACKAGE_NAME"
1371 _ACEOF
1372
1373
1374 cat >>confdefs.h <<_ACEOF
1375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376 _ACEOF
1377
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_STRING "$PACKAGE_STRING"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391 _ACEOF
1392
1393
1394 # Let the site file select an alternate cache file if it wants to.
1395 # Prefer explicitly selected file to automatically selected ones.
1396 if test -z "$CONFIG_SITE"; then
1397   if test "x$prefix" != xNONE; then
1398     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399   else
1400     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401   fi
1402 fi
1403 for ac_site_file in $CONFIG_SITE; do
1404   if test -r "$ac_site_file"; then
1405     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406 echo "$as_me: loading site script $ac_site_file" >&6;}
1407     sed 's/^/| /' "$ac_site_file" >&5
1408     . "$ac_site_file"
1409   fi
1410 done
1411
1412 if test -r "$cache_file"; then
1413   # Some versions of bash will fail to source /dev/null (special
1414   # files actually), so we avoid doing that.
1415   if test -f "$cache_file"; then
1416     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417 echo "$as_me: loading cache $cache_file" >&6;}
1418     case $cache_file in
1419       [\\/]* | ?:[\\/]* ) . $cache_file;;
1420       *)                      . ./$cache_file;;
1421     esac
1422   fi
1423 else
1424   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425 echo "$as_me: creating cache $cache_file" >&6;}
1426   >$cache_file
1427 fi
1428
1429 # Check that the precious variables saved in the cache have kept the same
1430 # value.
1431 ac_cache_corrupted=false
1432 for ac_var in `(set) 2>&1 |
1433                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435   eval ac_new_set=\$ac_env_${ac_var}_set
1436   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437   eval ac_new_val="\$ac_env_${ac_var}_value"
1438   case $ac_old_set,$ac_new_set in
1439     set,)
1440       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442       ac_cache_corrupted=: ;;
1443     ,set)
1444       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446       ac_cache_corrupted=: ;;
1447     ,);;
1448     *)
1449       if test "x$ac_old_val" != "x$ac_new_val"; then
1450         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1453 echo "$as_me:   former value:  $ac_old_val" >&2;}
1454         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1455 echo "$as_me:   current value: $ac_new_val" >&2;}
1456         ac_cache_corrupted=:
1457       fi;;
1458   esac
1459   # Pass precious variables to config.status.
1460   if test "$ac_new_set" = set; then
1461     case $ac_new_val in
1462     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464     *) ac_arg=$ac_var=$ac_new_val ;;
1465     esac
1466     case " $ac_configure_args " in
1467       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1468       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469     esac
1470   fi
1471 done
1472 if $ac_cache_corrupted; then
1473   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477    { (exit 1); exit 1; }; }
1478 fi
1479
1480 ac_ext=c
1481 ac_cpp='$CPP $CPPFLAGS'
1482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505 . $srcdir/VERSION
1506 AUBIO_VERSION=${AUBIO_MAJOR_VERSION}.${AUBIO_MINOR_VERSION}.${AUBIO_PATCH_VERSION}${AUBIO_VERSION_STATUS}
1507 VERSION=${AUBIO_VERSION}
1508 PACKAGE=aubio
1509
1510 am__api_version="1.7"
1511 ac_aux_dir=
1512 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1513   if test -f $ac_dir/install-sh; then
1514     ac_aux_dir=$ac_dir
1515     ac_install_sh="$ac_aux_dir/install-sh -c"
1516     break
1517   elif test -f $ac_dir/install.sh; then
1518     ac_aux_dir=$ac_dir
1519     ac_install_sh="$ac_aux_dir/install.sh -c"
1520     break
1521   elif test -f $ac_dir/shtool; then
1522     ac_aux_dir=$ac_dir
1523     ac_install_sh="$ac_aux_dir/shtool install -c"
1524     break
1525   fi
1526 done
1527 if test -z "$ac_aux_dir"; then
1528   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1529 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1530    { (exit 1); exit 1; }; }
1531 fi
1532 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1533 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1534 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1535
1536 # Find a good install program.  We prefer a C program (faster),
1537 # so one script is as good as another.  But avoid the broken or
1538 # incompatible versions:
1539 # SysV /etc/install, /usr/sbin/install
1540 # SunOS /usr/etc/install
1541 # IRIX /sbin/install
1542 # AIX /bin/install
1543 # AmigaOS /C/install, which installs bootblocks on floppy discs
1544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # OS/2's system install, which has a completely different semantic
1548 # ./install, which can be erroneously created by make from ./install.sh.
1549 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1550 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1551 if test -z "$INSTALL"; then
1552 if test "${ac_cv_path_install+set}" = set; then
1553   echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 for as_dir in $PATH
1557 do
1558   IFS=$as_save_IFS
1559   test -z "$as_dir" && as_dir=.
1560   # Account for people who put trailing slashes in PATH elements.
1561 case $as_dir/ in
1562   ./ | .// | /cC/* | \
1563   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1564   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1565   /usr/ucb/* ) ;;
1566   *)
1567     # OSF1 and SCO ODT 3.0 have their own names for install.
1568     # Don't use installbsd from OSF since it installs stuff as root
1569     # by default.
1570     for ac_prog in ginstall scoinst install; do
1571       for ac_exec_ext in '' $ac_executable_extensions; do
1572         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1573           if test $ac_prog = install &&
1574             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1575             # AIX install.  It has an incompatible calling convention.
1576             :
1577           elif test $ac_prog = install &&
1578             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1579             # program-specific install script used by HP pwplus--don't use.
1580             :
1581           else
1582             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1583             break 3
1584           fi
1585         fi
1586       done
1587     done
1588     ;;
1589 esac
1590 done
1591
1592
1593 fi
1594   if test "${ac_cv_path_install+set}" = set; then
1595     INSTALL=$ac_cv_path_install
1596   else
1597     # As a last resort, use the slow shell script.  We don't cache a
1598     # path for INSTALL within a source directory, because that will
1599     # break other packages using the cache if that directory is
1600     # removed, or if the path is relative.
1601     INSTALL=$ac_install_sh
1602   fi
1603 fi
1604 echo "$as_me:$LINENO: result: $INSTALL" >&5
1605 echo "${ECHO_T}$INSTALL" >&6
1606
1607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1608 # It thinks the first close brace ends the variable substitution.
1609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1610
1611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1612
1613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1614
1615 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1616 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1617 # Just in case
1618 sleep 1
1619 echo timestamp > conftest.file
1620 # Do `set' in a subshell so we don't clobber the current shell's
1621 # arguments.  Must try -L first in case configure is actually a
1622 # symlink; some systems play weird games with the mod time of symlinks
1623 # (eg FreeBSD returns the mod time of the symlink's containing
1624 # directory).
1625 if (
1626    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1627    if test "$*" = "X"; then
1628       # -L didn't work.
1629       set X `ls -t $srcdir/configure conftest.file`
1630    fi
1631    rm -f conftest.file
1632    if test "$*" != "X $srcdir/configure conftest.file" \
1633       && test "$*" != "X conftest.file $srcdir/configure"; then
1634
1635       # If neither matched, then we have a broken ls.  This can happen
1636       # if, for instance, CONFIG_SHELL is bash and it inherits a
1637       # broken ls alias from the environment.  This has actually
1638       # happened.  Such a system could not be considered "sane".
1639       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1640 alias in your environment" >&5
1641 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1642 alias in your environment" >&2;}
1643    { (exit 1); exit 1; }; }
1644    fi
1645
1646    test "$2" = conftest.file
1647    )
1648 then
1649    # Ok.
1650    :
1651 else
1652    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1653 Check your system clock" >&5
1654 echo "$as_me: error: newly created file is older than distributed files!
1655 Check your system clock" >&2;}
1656    { (exit 1); exit 1; }; }
1657 fi
1658 echo "$as_me:$LINENO: result: yes" >&5
1659 echo "${ECHO_T}yes" >&6
1660 test "$program_prefix" != NONE &&
1661   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1662 # Use a double $ so make ignores it.
1663 test "$program_suffix" != NONE &&
1664   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1665 # Double any \ or $.  echo might interpret backslashes.
1666 # By default was `s,x,x', remove it if useless.
1667 cat <<\_ACEOF >conftest.sed
1668 s/[\\$]/&&/g;s/;s,x,x,$//
1669 _ACEOF
1670 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1671 rm conftest.sed
1672
1673
1674 # expand $ac_aux_dir to an absolute path
1675 am_aux_dir=`cd $ac_aux_dir && pwd`
1676
1677 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1678 # Use eval to expand $SHELL
1679 if eval "$MISSING --run true"; then
1680   am_missing_run="$MISSING --run "
1681 else
1682   am_missing_run=
1683   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1684 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1685 fi
1686
1687 for ac_prog in gawk mawk nawk awk
1688 do
1689   # Extract the first word of "$ac_prog", so it can be a program name with args.
1690 set dummy $ac_prog; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_AWK+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$AWK"; then
1697   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   for ac_exec_ext in '' $ac_executable_extensions; do
1705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706     ac_cv_prog_AWK="$ac_prog"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 fi
1714 fi
1715 AWK=$ac_cv_prog_AWK
1716 if test -n "$AWK"; then
1717   echo "$as_me:$LINENO: result: $AWK" >&5
1718 echo "${ECHO_T}$AWK" >&6
1719 else
1720   echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724   test -n "$AWK" && break
1725 done
1726
1727 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1728 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1729 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1730 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1731   echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733   cat >conftest.make <<\_ACEOF
1734 all:
1735         @echo 'ac_maketemp="$(MAKE)"'
1736 _ACEOF
1737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1738 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1739 if test -n "$ac_maketemp"; then
1740   eval ac_cv_prog_make_${ac_make}_set=yes
1741 else
1742   eval ac_cv_prog_make_${ac_make}_set=no
1743 fi
1744 rm -f conftest.make
1745 fi
1746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1747   echo "$as_me:$LINENO: result: yes" >&5
1748 echo "${ECHO_T}yes" >&6
1749   SET_MAKE=
1750 else
1751   echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1753   SET_MAKE="MAKE=${MAKE-make}"
1754 fi
1755
1756 rm -rf .tst 2>/dev/null
1757 mkdir .tst 2>/dev/null
1758 if test -d .tst; then
1759   am__leading_dot=.
1760 else
1761   am__leading_dot=_
1762 fi
1763 rmdir .tst 2>/dev/null
1764
1765  # test to see if srcdir already configured
1766 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1767    test -f $srcdir/config.status; then
1768   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1769 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1770    { (exit 1); exit 1; }; }
1771 fi
1772
1773 # test whether we have cygpath
1774 if test -z "$CYGPATH_W"; then
1775   if (cygpath --version) >/dev/null 2>/dev/null; then
1776     CYGPATH_W='cygpath -w'
1777   else
1778     CYGPATH_W=echo
1779   fi
1780 fi
1781
1782
1783 # Define the identity of the package.
1784  PACKAGE=${PACKAGE}
1785  VERSION=${VERSION}
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE "$PACKAGE"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define VERSION "$VERSION"
1795 _ACEOF
1796
1797 # Some tools Automake needs.
1798
1799 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1800
1801
1802 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1803
1804
1805 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1806
1807
1808 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1809
1810
1811 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1812
1813
1814 AMTAR=${AMTAR-"${am_missing_run}tar"}
1815
1816 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1817
1818 # Installed binaries are usually stripped using `strip' when the user
1819 # run `make install-strip'.  However `strip' might not be the right
1820 # tool to use in cross-compilation environments, therefore Automake
1821 # will honor the `STRIP' environment variable to overrule this program.
1822 if test "$cross_compiling" != no; then
1823   if test -n "$ac_tool_prefix"; then
1824   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1825 set dummy ${ac_tool_prefix}strip; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_STRIP+set}" = set; then
1829   echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831   if test -n "$STRIP"; then
1832   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1833 else
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837   IFS=$as_save_IFS
1838   test -z "$as_dir" && as_dir=.
1839   for ac_exec_ext in '' $ac_executable_extensions; do
1840   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1843     break 2
1844   fi
1845 done
1846 done
1847
1848 fi
1849 fi
1850 STRIP=$ac_cv_prog_STRIP
1851 if test -n "$STRIP"; then
1852   echo "$as_me:$LINENO: result: $STRIP" >&5
1853 echo "${ECHO_T}$STRIP" >&6
1854 else
1855   echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1857 fi
1858
1859 fi
1860 if test -z "$ac_cv_prog_STRIP"; then
1861   ac_ct_STRIP=$STRIP
1862   # Extract the first word of "strip", so it can be a program name with args.
1863 set dummy strip; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   if test -n "$ac_ct_STRIP"; then
1870   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   for ac_exec_ext in '' $ac_executable_extensions; do
1878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879     ac_cv_prog_ac_ct_STRIP="strip"
1880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881     break 2
1882   fi
1883 done
1884 done
1885
1886   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1887 fi
1888 fi
1889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1890 if test -n "$ac_ct_STRIP"; then
1891   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1892 echo "${ECHO_T}$ac_ct_STRIP" >&6
1893 else
1894   echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898   STRIP=$ac_ct_STRIP
1899 else
1900   STRIP="$ac_cv_prog_STRIP"
1901 fi
1902
1903 fi
1904 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1905
1906 # We need awk for the "check" target.  The system "awk" is bad on
1907 # some platforms.
1908
1909
1910
1911
1912
1913
1914 CFLAGS="$CFLAGS -O2"
1915
1916
1917 # Check whether --enable-debug or --disable-debug was given.
1918 if test "${enable_debug+set}" = set; then
1919   enableval="$enable_debug"
1920   with_debug="yes"
1921 else
1922   with_debug="no"
1923 fi;
1924 if test "$with_debug" = "yes"
1925 then
1926
1927 cat >>confdefs.h <<\_ACEOF
1928 #define DEBUG 1
1929 _ACEOF
1930
1931   CFLAGS="$CFLAGS -g"
1932 fi
1933
1934 # Check whether --enable-warnme or --disable-warnme was given.
1935 if test "${enable_warnme+set}" = set; then
1936   enableval="$enable_warnme"
1937   with_warnme="no"
1938 else
1939   with_warnme="yes"
1940 fi;
1941 if test "$with_warnme" = "yes"
1942 then
1943         ALL_CWARNINGS="-Wall -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-char-subscripts -Wno-unknown-pragmas"
1944         CFLAGS="$CFLAGS $ALL_CWARNINGS"
1945 fi
1946
1947
1948 # Make sure we can run config.sub.
1949 $ac_config_sub sun4 >/dev/null 2>&1 ||
1950   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1951 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1952    { (exit 1); exit 1; }; }
1953
1954 echo "$as_me:$LINENO: checking build system type" >&5
1955 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1956 if test "${ac_cv_build+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   ac_cv_build_alias=$build_alias
1960 test -z "$ac_cv_build_alias" &&
1961   ac_cv_build_alias=`$ac_config_guess`
1962 test -z "$ac_cv_build_alias" &&
1963   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1964 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1965    { (exit 1); exit 1; }; }
1966 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1967   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1968 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1969    { (exit 1); exit 1; }; }
1970
1971 fi
1972 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1973 echo "${ECHO_T}$ac_cv_build" >&6
1974 build=$ac_cv_build
1975 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1976 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1977 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1978
1979
1980 echo "$as_me:$LINENO: checking host system type" >&5
1981 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1982 if test "${ac_cv_host+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   ac_cv_host_alias=$host_alias
1986 test -z "$ac_cv_host_alias" &&
1987   ac_cv_host_alias=$ac_cv_build_alias
1988 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1989   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1990 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1991    { (exit 1); exit 1; }; }
1992
1993 fi
1994 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1995 echo "${ECHO_T}$ac_cv_host" >&6
1996 host=$ac_cv_host
1997 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1998 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1999 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2000
2001
2002
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   if test -n "$CC"; then
2017   ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037   echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040   echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044 fi
2045 if test -z "$ac_cv_prog_CC"; then
2046   ac_ct_CC=$CC
2047   # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$ac_ct_CC"; then
2055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064     ac_cv_prog_ac_ct_CC="gcc"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070
2071 fi
2072 fi
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2077 else
2078   echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082   CC=$ac_ct_CC
2083 else
2084   CC="$ac_cv_prog_CC"
2085 fi
2086
2087 if test -z "$CC"; then
2088   if test -n "$ac_tool_prefix"; then
2089   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$CC"; then
2097   ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106     ac_cv_prog_CC="${ac_tool_prefix}cc"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112
2113 fi
2114 fi
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117   echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120   echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124 fi
2125 if test -z "$ac_cv_prog_CC"; then
2126   ac_ct_CC=$CC
2127   # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   if test -n "$ac_ct_CC"; then
2135   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142   for ac_exec_ext in '' $ac_executable_extensions; do
2143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144     ac_cv_prog_ac_ct_CC="cc"
2145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146     break 2
2147   fi
2148 done
2149 done
2150
2151 fi
2152 fi
2153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154 if test -n "$ac_ct_CC"; then
2155   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156 echo "${ECHO_T}$ac_ct_CC" >&6
2157 else
2158   echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2160 fi
2161
2162   CC=$ac_ct_CC
2163 else
2164   CC="$ac_cv_prog_CC"
2165 fi
2166
2167 fi
2168 if test -z "$CC"; then
2169   # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$CC"; then
2177   ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179   ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2182 do
2183   IFS=$as_save_IFS
2184   test -z "$as_dir" && as_dir=.
2185   for ac_exec_ext in '' $ac_executable_extensions; do
2186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188        ac_prog_rejected=yes
2189        continue
2190      fi
2191     ac_cv_prog_CC="cc"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197
2198 if test $ac_prog_rejected = yes; then
2199   # We found a bogon in the path, so make sure we never use it.
2200   set dummy $ac_cv_prog_CC
2201   shift
2202   if test $# != 0; then
2203     # We chose a different compiler from the bogus one.
2204     # However, it has the same basename, so the bogon will be chosen
2205     # first if we set CC to just the basename; use the full file name.
2206     shift
2207     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2208   fi
2209 fi
2210 fi
2211 fi
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214   echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217   echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2219 fi
2220
2221 fi
2222 if test -z "$CC"; then
2223   if test -n "$ac_tool_prefix"; then
2224   for ac_prog in cl
2225   do
2226     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$CC"; then
2234   ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   for ac_exec_ext in '' $ac_executable_extensions; do
2242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245     break 2
2246   fi
2247 done
2248 done
2249
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257   echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261     test -n "$CC" && break
2262   done
2263 fi
2264 if test -z "$CC"; then
2265   ac_ct_CC=$CC
2266   for ac_prog in cl
2267 do
2268   # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   if test -n "$ac_ct_CC"; then
2276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285     ac_cv_prog_ac_ct_CC="$ac_prog"
2286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291
2292 fi
2293 fi
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6
2298 else
2299   echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2301 fi
2302
2303   test -n "$ac_ct_CC" && break
2304 done
2305
2306   CC=$ac_ct_CC
2307 fi
2308
2309 fi
2310
2311
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316    { (exit 1); exit 1; }; }
2317
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO:" \
2320      "checking for C compiler version" >&5
2321 ac_compiler=`set X $ac_compile; echo $2`
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323   (eval $ac_compiler --version </dev/null >&5) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328   (eval $ac_compiler -v </dev/null >&5) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333   (eval $ac_compiler -V </dev/null >&5) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }
2337
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h.  */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h.  */
2344
2345 int
2346 main ()
2347 {
2348
2349   ;
2350   return 0;
2351 }
2352 _ACEOF
2353 ac_clean_files_save=$ac_clean_files
2354 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355 # Try to create an executable without -o first, disregard a.out.
2356 # It will help us diagnose broken compilers, and finding out an intuition
2357 # of exeext.
2358 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2360 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2362   (eval $ac_link_default) 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; then
2366   # Find the output, starting from the most likely.  This scheme is
2367 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2368 # resort.
2369
2370 # Be careful to initialize this variable, since it used to be cached.
2371 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2372 ac_cv_exeext=
2373 # b.out is created by i960 compilers.
2374 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2375 do
2376   test -f "$ac_file" || continue
2377   case $ac_file in
2378     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2379         ;;
2380     conftest.$ac_ext )
2381         # This is the source file.
2382         ;;
2383     [ab].out )
2384         # We found the default executable, but exeext='' is most
2385         # certainly right.
2386         break;;
2387     *.* )
2388         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389         # FIXME: I believe we export ac_cv_exeext for Libtool,
2390         # but it would be cool to find out if it's true.  Does anybody
2391         # maintain Libtool? --akim.
2392         export ac_cv_exeext
2393         break;;
2394     * )
2395         break;;
2396   esac
2397 done
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&2;}
2406    { (exit 77); exit 77; }; }
2407 fi
2408
2409 ac_exeext=$ac_cv_exeext
2410 echo "$as_me:$LINENO: result: $ac_file" >&5
2411 echo "${ECHO_T}$ac_file" >&6
2412
2413 # Check the compiler produces executables we can run.  If not, either
2414 # the compiler is broken, or we cross compile.
2415 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420   if { ac_try='./$ac_file'
2421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422   (eval $ac_try) 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; }; then
2426     cross_compiling=no
2427   else
2428     if test "$cross_compiling" = maybe; then
2429         cross_compiling=yes
2430     else
2431         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437    { (exit 1); exit 1; }; }
2438     fi
2439   fi
2440 fi
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2443
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check the compiler produces executables we can run.  If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2450 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6
2452
2453 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456   (eval $ac_link) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; then
2460   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2461 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2462 # work properly (i.e., refer to `conftest.exe'), while it won't with
2463 # `rm'.
2464 for ac_file in conftest.exe conftest conftest.*; do
2465   test -f "$ac_file" || continue
2466   case $ac_file in
2467     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2468     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469           export ac_cv_exeext
2470           break;;
2471     * ) break;;
2472   esac
2473 done
2474 else
2475   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2478 See \`config.log' for more details." >&2;}
2479    { (exit 1); exit 1; }; }
2480 fi
2481
2482 rm -f conftest$ac_cv_exeext
2483 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2484 echo "${ECHO_T}$ac_cv_exeext" >&6
2485
2486 rm -f conftest.$ac_ext
2487 EXEEXT=$ac_cv_exeext
2488 ac_exeext=$EXEEXT
2489 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2491 if test "${ac_cv_objext+set}" = set; then
2492   echo $ECHO_N "(cached) $ECHO_C" >&6
2493 else
2494   cat >conftest.$ac_ext <<_ACEOF
2495 /* confdefs.h.  */
2496 _ACEOF
2497 cat confdefs.h >>conftest.$ac_ext
2498 cat >>conftest.$ac_ext <<_ACEOF
2499 /* end confdefs.h.  */
2500
2501 int
2502 main ()
2503 {
2504
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 rm -f conftest.o conftest.obj
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511   (eval $ac_compile) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; then
2515   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2516   case $ac_file in
2517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2518     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519        break;;
2520   esac
2521 done
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529 See \`config.log' for more details." >&2;}
2530    { (exit 1); exit 1; }; }
2531 fi
2532
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 fi
2535 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6
2537 OBJEXT=$ac_cv_objext
2538 ac_objext=$OBJEXT
2539 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550
2551 int
2552 main ()
2553 {
2554 #ifndef __GNUC__
2555        choke me
2556 #endif
2557
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564   (eval $ac_compile) 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573   (eval $ac_try) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; } &&
2577          { ac_try='test -s conftest.$ac_objext'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; }; then
2583   ac_compiler_gnu=yes
2584 else
2585   echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 ac_compiler_gnu=no
2589 fi
2590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2591 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2592
2593 fi
2594 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2595 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2596 GCC=`test $ac_compiler_gnu = yes && echo yes`
2597 ac_test_CFLAGS=${CFLAGS+set}
2598 ac_save_CFLAGS=$CFLAGS
2599 CFLAGS="-g"
2600 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2601 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2602 if test "${ac_cv_prog_cc_g+set}" = set; then
2603   echo $ECHO_N "(cached) $ECHO_C" >&6
2604 else
2605   cat >conftest.$ac_ext <<_ACEOF
2606 /* confdefs.h.  */
2607 _ACEOF
2608 cat confdefs.h >>conftest.$ac_ext
2609 cat >>conftest.$ac_ext <<_ACEOF
2610 /* end confdefs.h.  */
2611
2612 int
2613 main ()
2614 {
2615
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622   (eval $ac_compile) 2>conftest.er1
2623   ac_status=$?
2624   grep -v '^ *+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; } &&
2635          { ac_try='test -s conftest.$ac_objext'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641   ac_cv_prog_cc_g=yes
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 ac_cv_prog_cc_g=no
2647 fi
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 fi
2650 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2651 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2652 if test "$ac_test_CFLAGS" = set; then
2653   CFLAGS=$ac_save_CFLAGS
2654 elif test $ac_cv_prog_cc_g = yes; then
2655   if test "$GCC" = yes; then
2656     CFLAGS="-g -O2"
2657   else
2658     CFLAGS="-g"
2659   fi
2660 else
2661   if test "$GCC" = yes; then
2662     CFLAGS="-O2"
2663   else
2664     CFLAGS=
2665   fi
2666 fi
2667 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2668 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2669 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   ac_cv_prog_cc_stdc=no
2673 ac_save_CC=$CC
2674 cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h.  */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h.  */
2680 #include <stdarg.h>
2681 #include <stdio.h>
2682 #include <sys/types.h>
2683 #include <sys/stat.h>
2684 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2685 struct buf { int x; };
2686 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2687 static char *e (p, i)
2688      char **p;
2689      int i;
2690 {
2691   return p[i];
2692 }
2693 static char *f (char * (*g) (char **, int), char **p, ...)
2694 {
2695   char *s;
2696   va_list v;
2697   va_start (v,p);
2698   s = g (p, va_arg (v,int));
2699   va_end (v);
2700   return s;
2701 }
2702
2703 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2704    function prototypes and stuff, but not '\xHH' hex character constants.
2705    These don't provoke an error unfortunately, instead are silently treated
2706    as 'x'.  The following induces an error, until -std1 is added to get
2707    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2708    array size at least.  It's necessary to write '\x00'==0 to get something
2709    that's true only with -std1.  */
2710 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2711
2712 int test (int i, double x);
2713 struct s1 {int (*f) (int a);};
2714 struct s2 {int (*f) (double a);};
2715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2716 int argc;
2717 char **argv;
2718 int
2719 main ()
2720 {
2721 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2722   ;
2723   return 0;
2724 }
2725 _ACEOF
2726 # Don't try gcc -ansi; that turns off useful extensions and
2727 # breaks some systems' header files.
2728 # AIX                   -qlanglvl=ansi
2729 # Ultrix and OSF/1      -std1
2730 # HP-UX 10.20 and later -Ae
2731 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2732 # SVR4                  -Xc -D__EXTENSIONS__
2733 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2734 do
2735   CC="$ac_save_CC $ac_arg"
2736   rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738   (eval $ac_compile) 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; } &&
2751          { ac_try='test -s conftest.$ac_objext'
2752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753   (eval $ac_try) 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }; }; then
2757   ac_cv_prog_cc_stdc=$ac_arg
2758 break
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763 fi
2764 rm -f conftest.err conftest.$ac_objext
2765 done
2766 rm -f conftest.$ac_ext conftest.$ac_objext
2767 CC=$ac_save_CC
2768
2769 fi
2770
2771 case "x$ac_cv_prog_cc_stdc" in
2772   x|xno)
2773     echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6 ;;
2775   *)
2776     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778     CC="$CC $ac_cv_prog_cc_stdc" ;;
2779 esac
2780
2781 # Some people use a C++ compiler to compile C.  Since we use `exit',
2782 # in C++ we need to declare it.  In case someone uses the same compiler
2783 # for both compiling C and C++ we need to have the C++ compiler decide
2784 # the declaration of exit, since it's the most demanding environment.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #ifndef __cplusplus
2787   choke me
2788 #endif
2789 _ACEOF
2790 rm -f conftest.$ac_objext
2791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792   (eval $ac_compile) 2>conftest.er1
2793   ac_status=$?
2794   grep -v '^ *+' conftest.er1 >conftest.err
2795   rm -f conftest.er1
2796   cat conftest.err >&5
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); } &&
2799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; } &&
2805          { ac_try='test -s conftest.$ac_objext'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   for ac_declaration in \
2812    '' \
2813    'extern "C" void std::exit (int) throw (); using std::exit;' \
2814    'extern "C" void std::exit (int); using std::exit;' \
2815    'extern "C" void exit (int) throw ();' \
2816    'extern "C" void exit (int);' \
2817    'void exit (int);'
2818 do
2819   cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 $ac_declaration
2826 #include <stdlib.h>
2827 int
2828 main ()
2829 {
2830 exit (42);
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837   (eval $ac_compile) 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; } &&
2850          { ac_try='test -s conftest.$ac_objext'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; }; then
2856   :
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 continue
2862 fi
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864   cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h.  */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h.  */
2870 $ac_declaration
2871 int
2872 main ()
2873 {
2874 exit (42);
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881   (eval $ac_compile) 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } &&
2888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890   (eval $ac_try) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); }; } &&
2894          { ac_try='test -s conftest.$ac_objext'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900   break
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 done
2908 rm -f conftest*
2909 if test -n "$ac_declaration"; then
2910   echo '#ifdef __cplusplus' >>confdefs.h
2911   echo $ac_declaration      >>confdefs.h
2912   echo '#endif'             >>confdefs.h
2913 fi
2914
2915 else
2916   echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 fi
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 DEPDIR="${am__leading_dot}deps"
2927
2928           ac_config_commands="$ac_config_commands depfiles"
2929
2930
2931 am_make=${MAKE-make}
2932 cat > confinc << 'END'
2933 am__doit:
2934         @echo done
2935 .PHONY: am__doit
2936 END
2937 # If we don't find an include directive, just comment out the code.
2938 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2939 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2940 am__include="#"
2941 am__quote=
2942 _am_result=none
2943 # First try GNU make style include.
2944 echo "include confinc" > confmf
2945 # We grep out `Entering directory' and `Leaving directory'
2946 # messages which can occur if `w' ends up in MAKEFLAGS.
2947 # In particular we don't look at `^make:' because GNU make might
2948 # be invoked under some other name (usually "gmake"), in which
2949 # case it prints its new name instead of `make'.
2950 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2951    am__include=include
2952    am__quote=
2953    _am_result=GNU
2954 fi
2955 # Now try BSD make style include.
2956 if test "$am__include" = "#"; then
2957    echo '.include "confinc"' > confmf
2958    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2959       am__include=.include
2960       am__quote="\""
2961       _am_result=BSD
2962    fi
2963 fi
2964
2965
2966 echo "$as_me:$LINENO: result: $_am_result" >&5
2967 echo "${ECHO_T}$_am_result" >&6
2968 rm -f confinc confmf
2969
2970 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2971 if test "${enable_dependency_tracking+set}" = set; then
2972   enableval="$enable_dependency_tracking"
2973
2974 fi;
2975 if test "x$enable_dependency_tracking" != xno; then
2976   am_depcomp="$ac_aux_dir/depcomp"
2977   AMDEPBACKSLASH='\'
2978 fi
2979
2980
2981 if test "x$enable_dependency_tracking" != xno; then
2982   AMDEP_TRUE=
2983   AMDEP_FALSE='#'
2984 else
2985   AMDEP_TRUE='#'
2986   AMDEP_FALSE=
2987 fi
2988
2989
2990
2991
2992 depcc="$CC"   am_compiler_list=
2993
2994 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2995 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2996 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2997   echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3000   # We make a subdir and do the tests there.  Otherwise we can end up
3001   # making bogus files that we don't know about and never remove.  For
3002   # instance it was reported that on HP-UX the gcc test will end up
3003   # making a dummy file named `D' -- because `-MD' means `put the output
3004   # in D'.
3005   mkdir conftest.dir
3006   # Copy depcomp to subdir because otherwise we won't find it if we're
3007   # using a relative directory.
3008   cp "$am_depcomp" conftest.dir
3009   cd conftest.dir
3010   # We will build objects and dependencies in a subdirectory because
3011   # it helps to detect inapplicable dependency modes.  For instance
3012   # both Tru64's cc and ICC support -MD to output dependencies as a
3013   # side effect of compilation, but ICC will put the dependencies in
3014   # the current directory while Tru64 will put them in the object
3015   # directory.
3016   mkdir sub
3017
3018   am_cv_CC_dependencies_compiler_type=none
3019   if test "$am_compiler_list" = ""; then
3020      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3021   fi
3022   for depmode in $am_compiler_list; do
3023     # Setup a source with many dependencies, because some compilers
3024     # like to wrap large dependency lists on column 80 (with \), and
3025     # we should not choose a depcomp mode which is confused by this.
3026     #
3027     # We need to recreate these files for each test, as the compiler may
3028     # overwrite some of them when testing with obscure command lines.
3029     # This happens at least with the AIX C compiler.
3030     : > sub/conftest.c
3031     for i in 1 2 3 4 5 6; do
3032       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3033       : > sub/conftst$i.h
3034     done
3035     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3036
3037     case $depmode in
3038     nosideeffect)
3039       # after this tag, mechanisms are not by side-effect, so they'll
3040       # only be used when explicitly requested
3041       if test "x$enable_dependency_tracking" = xyes; then
3042         continue
3043       else
3044         break
3045       fi
3046       ;;
3047     none) break ;;
3048     esac
3049     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3050     # mode.  It turns out that the SunPro C++ compiler does not properly
3051     # handle `-M -o', and we need to detect this.
3052     if depmode=$depmode \
3053        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3054        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3055        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3056          >/dev/null 2>conftest.err &&
3057        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3058        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3059        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3060       # icc doesn't choke on unknown options, it will just issue warnings
3061       # (even with -Werror).  So we grep stderr for any message
3062       # that says an option was ignored.
3063       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3064         am_cv_CC_dependencies_compiler_type=$depmode
3065         break
3066       fi
3067     fi
3068   done
3069
3070   cd ..
3071   rm -rf conftest.dir
3072 else
3073   am_cv_CC_dependencies_compiler_type=none
3074 fi
3075
3076 fi
3077 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3078 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3079 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3080
3081
3082
3083 if
3084   test "x$enable_dependency_tracking" != xno \
3085   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3086   am__fastdepCC_TRUE=
3087   am__fastdepCC_FALSE='#'
3088 else
3089   am__fastdepCC_TRUE='#'
3090   am__fastdepCC_FALSE=
3091 fi
3092
3093
3094 if test "$ac_cv_prog_cc" = "no" ; then
3095    { { echo "$as_me:$LINENO: error: *** No C compiler found !" >&5
3096 echo "$as_me: error: *** No C compiler found !" >&2;}
3097    { (exit 1); exit 1; }; }
3098 fi
3099 # Find a good install program.  We prefer a C program (faster),
3100 # so one script is as good as another.  But avoid the broken or
3101 # incompatible versions:
3102 # SysV /etc/install, /usr/sbin/install
3103 # SunOS /usr/etc/install
3104 # IRIX /sbin/install
3105 # AIX /bin/install
3106 # AmigaOS /C/install, which installs bootblocks on floppy discs
3107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3110 # OS/2's system install, which has a completely different semantic
3111 # ./install, which can be erroneously created by make from ./install.sh.
3112 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3113 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3114 if test -z "$INSTALL"; then
3115 if test "${ac_cv_path_install+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121   IFS=$as_save_IFS
3122   test -z "$as_dir" && as_dir=.
3123   # Account for people who put trailing slashes in PATH elements.
3124 case $as_dir/ in
3125   ./ | .// | /cC/* | \
3126   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3127   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3128   /usr/ucb/* ) ;;
3129   *)
3130     # OSF1 and SCO ODT 3.0 have their own names for install.
3131     # Don't use installbsd from OSF since it installs stuff as root
3132     # by default.
3133     for ac_prog in ginstall scoinst install; do
3134       for ac_exec_ext in '' $ac_executable_extensions; do
3135         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3136           if test $ac_prog = install &&
3137             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138             # AIX install.  It has an incompatible calling convention.
3139             :
3140           elif test $ac_prog = install &&
3141             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3142             # program-specific install script used by HP pwplus--don't use.
3143             :
3144           else
3145             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3146             break 3
3147           fi
3148         fi
3149       done
3150     done
3151     ;;
3152 esac
3153 done
3154
3155
3156 fi
3157   if test "${ac_cv_path_install+set}" = set; then
3158     INSTALL=$ac_cv_path_install
3159   else
3160     # As a last resort, use the slow shell script.  We don't cache a
3161     # path for INSTALL within a source directory, because that will
3162     # break other packages using the cache if that directory is
3163     # removed, or if the path is relative.
3164     INSTALL=$ac_install_sh
3165   fi
3166 fi
3167 echo "$as_me:$LINENO: result: $INSTALL" >&5
3168 echo "${ECHO_T}$INSTALL" >&6
3169
3170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3171 # It thinks the first close brace ends the variable substitution.
3172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3173
3174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3175
3176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3177
3178
3179
3180
3181 # Check whether --enable-shared or --disable-shared was given.
3182 if test "${enable_shared+set}" = set; then
3183   enableval="$enable_shared"
3184   p=${PACKAGE-default}
3185     case $enableval in
3186     yes) enable_shared=yes ;;
3187     no) enable_shared=no ;;
3188     *)
3189       enable_shared=no
3190       # Look at the argument we got.  We use all the common list separators.
3191       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3192       for pkg in $enableval; do
3193         IFS="$lt_save_ifs"
3194         if test "X$pkg" = "X$p"; then
3195           enable_shared=yes
3196         fi
3197       done
3198       IFS="$lt_save_ifs"
3199       ;;
3200     esac
3201 else
3202   enable_shared=yes
3203 fi;
3204
3205 # Check whether --enable-static or --disable-static was given.
3206 if test "${enable_static+set}" = set; then
3207   enableval="$enable_static"
3208   p=${PACKAGE-default}
3209     case $enableval in
3210     yes) enable_static=yes ;;
3211     no) enable_static=no ;;
3212     *)
3213      enable_static=no
3214       # Look at the argument we got.  We use all the common list separators.
3215       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3216       for pkg in $enableval; do
3217         IFS="$lt_save_ifs"
3218         if test "X$pkg" = "X$p"; then
3219           enable_static=yes
3220         fi
3221       done
3222       IFS="$lt_save_ifs"
3223       ;;
3224     esac
3225 else
3226   enable_static=yes
3227 fi;
3228
3229 # Check whether --enable-fast-install or --disable-fast-install was given.
3230 if test "${enable_fast_install+set}" = set; then
3231   enableval="$enable_fast_install"
3232   p=${PACKAGE-default}
3233     case $enableval in
3234     yes) enable_fast_install=yes ;;
3235     no) enable_fast_install=no ;;
3236     *)
3237       enable_fast_install=no
3238       # Look at the argument we got.  We use all the common list separators.
3239       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3240       for pkg in $enableval; do
3241         IFS="$lt_save_ifs"
3242         if test "X$pkg" = "X$p"; then
3243           enable_fast_install=yes
3244         fi
3245       done
3246       IFS="$lt_save_ifs"
3247       ;;
3248     esac
3249 else
3250   enable_fast_install=yes
3251 fi;
3252
3253 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3254 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3255 if test "${lt_cv_path_SED+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   # Loop through the user's path and test for sed and gsed.
3259 # Then use that list of sed's as ones to test for truncation.
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263   IFS=$as_save_IFS
3264   test -z "$as_dir" && as_dir=.
3265   for lt_ac_prog in sed gsed; do
3266     for ac_exec_ext in '' $ac_executable_extensions; do
3267       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3268         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3269       fi
3270     done
3271   done
3272 done
3273 lt_ac_max=0
3274 lt_ac_count=0
3275 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3276 # along with /bin/sed that truncates output.
3277 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3278   test ! -f $lt_ac_sed && break
3279   cat /dev/null > conftest.in
3280   lt_ac_count=0
3281   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3282   # Check for GNU sed and select it if it is found.
3283   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3284     lt_cv_path_SED=$lt_ac_sed
3285     break
3286   fi
3287   while true; do
3288     cat conftest.in conftest.in >conftest.tmp
3289     mv conftest.tmp conftest.in
3290     cp conftest.in conftest.nl
3291     echo >>conftest.nl
3292     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3293     cmp -s conftest.out conftest.nl || break
3294     # 10000 chars as input seems more than enough
3295     test $lt_ac_count -gt 10 && break
3296     lt_ac_count=`expr $lt_ac_count + 1`
3297     if test $lt_ac_count -gt $lt_ac_max; then
3298       lt_ac_max=$lt_ac_count
3299       lt_cv_path_SED=$lt_ac_sed
3300     fi
3301   done
3302 done
3303 SED=$lt_cv_path_SED
3304
3305 fi
3306
3307 echo "$as_me:$LINENO: result: $SED" >&5
3308 echo "${ECHO_T}$SED" >&6
3309
3310 echo "$as_me:$LINENO: checking for egrep" >&5
3311 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3312 if test "${ac_cv_prog_egrep+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3316     then ac_cv_prog_egrep='grep -E'
3317     else ac_cv_prog_egrep='egrep'
3318     fi
3319 fi
3320 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3321 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3322  EGREP=$ac_cv_prog_egrep
3323
3324
3325
3326 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3327 if test "${with_gnu_ld+set}" = set; then
3328   withval="$with_gnu_ld"
3329   test "$withval" = no || with_gnu_ld=yes
3330 else
3331   with_gnu_ld=no
3332 fi;
3333 ac_prog=ld
3334 if test "$GCC" = yes; then
3335   # Check if gcc -print-prog-name=ld gives a path.
3336   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3337 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3338   case $host in
3339   *-*-mingw*)
3340     # gcc leaves a trailing carriage return which upsets mingw
3341     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3342   *)
3343     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3344   esac
3345   case $ac_prog in
3346     # Accept absolute paths.
3347     [\\/]* | ?:[\\/]*)
3348       re_direlt='/[^/][^/]*/\.\./'
3349       # Canonicalize the pathname of ld
3350       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3351       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3352         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3353       done
3354       test -z "$LD" && LD="$ac_prog"
3355       ;;
3356   "")
3357     # If it fails, then pretend we aren't using GCC.
3358     ac_prog=ld
3359     ;;
3360   *)
3361     # If it is relative, then search for the first ld in PATH.
3362     with_gnu_ld=unknown
3363     ;;
3364   esac
3365 elif test "$with_gnu_ld" = yes; then
3366   echo "$as_me:$LINENO: checking for GNU ld" >&5
3367 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3368 else
3369   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3370 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3371 fi
3372 if test "${lt_cv_path_LD+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   if test -z "$LD"; then
3376   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3377   for ac_dir in $PATH; do
3378     IFS="$lt_save_ifs"
3379     test -z "$ac_dir" && ac_dir=.
3380     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3381       lt_cv_path_LD="$ac_dir/$ac_prog"
3382       # Check to see if the program is GNU ld.  I'd rather use --version,
3383       # but apparently some GNU ld's only accept -v.
3384       # Break only if it was the GNU/non-GNU ld that we prefer.
3385       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3386       *GNU* | *'with BFD'*)
3387         test "$with_gnu_ld" != no && break
3388         ;;
3389       *)
3390         test "$with_gnu_ld" != yes && break
3391         ;;
3392       esac
3393     fi
3394   done
3395   IFS="$lt_save_ifs"
3396 else
3397   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3398 fi
3399 fi
3400
3401 LD="$lt_cv_path_LD"
3402 if test -n "$LD"; then
3403   echo "$as_me:$LINENO: result: $LD" >&5
3404 echo "${ECHO_T}$LD" >&6
3405 else
3406   echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3408 fi
3409 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3410 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3411    { (exit 1); exit 1; }; }
3412 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3413 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3414 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3418 case `$LD -v 2>&1 </dev/null` in
3419 *GNU* | *'with BFD'*)
3420   lt_cv_prog_gnu_ld=yes
3421   ;;
3422 *)
3423   lt_cv_prog_gnu_ld=no
3424   ;;
3425 esac
3426 fi
3427 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3428 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3429 with_gnu_ld=$lt_cv_prog_gnu_ld
3430
3431
3432 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3433 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3434 if test "${lt_cv_ld_reload_flag+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   lt_cv_ld_reload_flag='-r'
3438 fi
3439 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3440 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3441 reload_flag=$lt_cv_ld_reload_flag
3442 case $reload_flag in
3443 "" | " "*) ;;
3444 *) reload_flag=" $reload_flag" ;;
3445 esac
3446 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3447
3448 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3449 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3450 if test "${lt_cv_path_NM+set}" = set; then
3451   echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453   if test -n "$NM"; then
3454   # Let the user override the test.
3455   lt_cv_path_NM="$NM"
3456 else
3457   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3458   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3459     IFS="$lt_save_ifs"
3460     test -z "$ac_dir" && ac_dir=.
3461     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3462     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3463       # Check to see if the nm accepts a BSD-compat flag.
3464       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3465       #   nm: unknown option "B" ignored
3466       # Tru64's nm complains that /dev/null is an invalid object file
3467       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3468       */dev/null* | *'Invalid file or object type'*)
3469         lt_cv_path_NM="$tmp_nm -B"
3470         break
3471         ;;
3472       *)
3473         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3474         */dev/null*)
3475           lt_cv_path_NM="$tmp_nm -p"
3476           break
3477           ;;
3478         *)
3479           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3480           continue # so that we can try to find one that supports BSD flags
3481           ;;
3482         esac
3483       esac
3484     fi
3485   done
3486   IFS="$lt_save_ifs"
3487   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3488 fi
3489 fi
3490 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3491 echo "${ECHO_T}$lt_cv_path_NM" >&6
3492 NM="$lt_cv_path_NM"
3493
3494 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3495 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3496 LN_S=$as_ln_s
3497 if test "$LN_S" = "ln -s"; then
3498   echo "$as_me:$LINENO: result: yes" >&5
3499 echo "${ECHO_T}yes" >&6
3500 else
3501   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3502 echo "${ECHO_T}no, using $LN_S" >&6
3503 fi
3504
3505 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3506 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3507 if test "${lt_cv_deplibs_check_method+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   lt_cv_file_magic_cmd='$MAGIC_CMD'
3511 lt_cv_file_magic_test_file=
3512 lt_cv_deplibs_check_method='unknown'
3513 # Need to set the preceding variable on all platforms that support
3514 # interlibrary dependencies.
3515 # 'none' -- dependencies not supported.
3516 # `unknown' -- same as none, but documents that we really don't know.
3517 # 'pass_all' -- all dependencies passed with no checks.
3518 # 'test_compile' -- check by making test program.
3519 # 'file_magic [[regex]]' -- check by looking for files in library path
3520 # which responds to the $file_magic_cmd with a given extended regex.
3521 # If you have `file' or equivalent on your system and you're not sure
3522 # whether `pass_all' will *always* work, you probably want this one.
3523
3524 case $host_os in
3525 aix4* | aix5*)
3526   lt_cv_deplibs_check_method=pass_all
3527   ;;
3528
3529 beos*)
3530   lt_cv_deplibs_check_method=pass_all
3531   ;;
3532
3533 bsdi4*)
3534   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3535   lt_cv_file_magic_cmd='/usr/bin/file -L'
3536   lt_cv_file_magic_test_file=/shlib/libc.so
3537   ;;
3538
3539 cygwin*)
3540   # func_win32_libid is a shell function defined in ltmain.sh
3541   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3542   lt_cv_file_magic_cmd='func_win32_libid'
3543   ;;
3544
3545 mingw* | pw32*)
3546   # Base MSYS/MinGW do not provide the 'file' command needed by
3547   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3548   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3549   lt_cv_file_magic_cmd='$OBJDUMP -f'
3550   ;;
3551
3552 darwin* | rhapsody*)
3553   lt_cv_deplibs_check_method=pass_all
3554   ;;
3555
3556 freebsd* | kfreebsd*-gnu)
3557   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3558     case $host_cpu in
3559     i*86 )
3560       # Not sure whether the presence of OpenBSD here was a mistake.
3561       # Let's accept both of them until this is cleared up.
3562       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3563       lt_cv_file_magic_cmd=/usr/bin/file
3564       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3565       ;;
3566     esac
3567   else
3568     lt_cv_deplibs_check_method=pass_all
3569   fi
3570   ;;
3571
3572 gnu*)
3573   lt_cv_deplibs_check_method=pass_all
3574   ;;
3575
3576 hpux10.20* | hpux11*)
3577   lt_cv_file_magic_cmd=/usr/bin/file
3578   case "$host_cpu" in
3579   ia64*)
3580     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3581     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3582     ;;
3583   hppa*64*)
3584     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]'
3585     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3586     ;;
3587   *)
3588     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3589     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3590     ;;
3591   esac
3592   ;;
3593
3594 irix5* | irix6* | nonstopux*)
3595   case $LD in
3596   *-32|*"-32 ") libmagic=32-bit;;
3597   *-n32|*"-n32 ") libmagic=N32;;
3598   *-64|*"-64 ") libmagic=64-bit;;
3599   *) libmagic=never-match;;
3600   esac
3601   lt_cv_deplibs_check_method=pass_all
3602   ;;
3603
3604 # This must be Linux ELF.
3605 linux*)
3606   lt_cv_deplibs_check_method=pass_all
3607   ;;
3608
3609 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3610   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3611     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3612   else
3613     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3614   fi
3615   ;;
3616
3617 newos6*)
3618   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3619   lt_cv_file_magic_cmd=/usr/bin/file
3620   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3621   ;;
3622
3623 nto-qnx*)
3624   lt_cv_deplibs_check_method=unknown
3625   ;;
3626
3627 openbsd*)
3628   lt_cv_file_magic_cmd=/usr/bin/file
3629   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3630   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3631     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3632   else
3633     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3634   fi
3635   ;;
3636
3637 osf3* | osf4* | osf5*)
3638   lt_cv_deplibs_check_method=pass_all
3639   ;;
3640
3641 sco3.2v5*)
3642   lt_cv_deplibs_check_method=pass_all
3643   ;;
3644
3645 solaris*)
3646   lt_cv_deplibs_check_method=pass_all
3647   ;;
3648
3649 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3650   case $host_vendor in
3651   motorola)
3652     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]'
3653     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3654     ;;
3655   ncr)
3656     lt_cv_deplibs_check_method=pass_all
3657     ;;
3658   sequent)
3659     lt_cv_file_magic_cmd='/bin/file'
3660     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3661     ;;
3662   sni)
3663     lt_cv_file_magic_cmd='/bin/file'
3664     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3665     lt_cv_file_magic_test_file=/lib/libc.so
3666     ;;
3667   siemens)
3668     lt_cv_deplibs_check_method=pass_all
3669     ;;
3670   esac
3671   ;;
3672
3673 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3674   lt_cv_deplibs_check_method=pass_all
3675   ;;
3676 esac
3677
3678 fi
3679 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3680 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3681 file_magic_cmd=$lt_cv_file_magic_cmd
3682 deplibs_check_method=$lt_cv_deplibs_check_method
3683 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3684
3685
3686
3687
3688 # If no C compiler was specified, use CC.
3689 LTCC=${LTCC-"$CC"}
3690
3691 # Allow CC to be a program name with arguments.
3692 compiler=$CC
3693
3694
3695 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3696 if test "${enable_libtool_lock+set}" = set; then
3697   enableval="$enable_libtool_lock"
3698
3699 fi;
3700 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3701
3702 # Some flags need to be propagated to the compiler or linker for good
3703 # libtool support.
3704 case $host in
3705 ia64-*-hpux*)
3706   # Find out which ABI we are using.
3707   echo 'int i;' > conftest.$ac_ext
3708   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709   (eval $ac_compile) 2>&5
3710   ac_status=$?
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); }; then
3713     case `/usr/bin/file conftest.$ac_objext` in
3714     *ELF-32*)
3715       HPUX_IA64_MODE="32"
3716       ;;
3717     *ELF-64*)
3718       HPUX_IA64_MODE="64"
3719       ;;
3720     esac
3721   fi
3722   rm -rf conftest*
3723   ;;
3724 *-*-irix6*)
3725   # Find out which ABI we are using.
3726   echo '#line 3726 "configure"' > conftest.$ac_ext
3727   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728   (eval $ac_compile) 2>&5
3729   ac_status=$?
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); }; then
3732    if test "$lt_cv_prog_gnu_ld" = yes; then
3733     case `/usr/bin/file conftest.$ac_objext` in
3734     *32-bit*)
3735       LD="${LD-ld} -melf32bsmip"
3736       ;;
3737     *N32*)
3738       LD="${LD-ld} -melf32bmipn32"
3739       ;;
3740     *64-bit*)
3741       LD="${LD-ld} -melf64bmip"
3742       ;;
3743     esac
3744    else
3745     case `/usr/bin/file conftest.$ac_objext` in
3746     *32-bit*)
3747       LD="${LD-ld} -32"
3748       ;;
3749     *N32*)
3750       LD="${LD-ld} -n32"
3751       ;;
3752     *64-bit*)
3753       LD="${LD-ld} -64"
3754       ;;
3755     esac
3756    fi
3757   fi
3758   rm -rf conftest*
3759   ;;
3760
3761 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3762   # Find out which ABI we are using.
3763   echo 'int i;' > conftest.$ac_ext
3764   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3765   (eval $ac_compile) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; then
3769     case "`/usr/bin/file conftest.o`" in
3770     *32-bit*)
3771       case $host in
3772         x86_64-*linux*)
3773           LD="${LD-ld} -m elf_i386"
3774           ;;
3775         ppc64-*linux*|powerpc64-*linux*)
3776           LD="${LD-ld} -m elf32ppclinux"
3777           ;;
3778         s390x-*linux*)
3779           LD="${LD-ld} -m elf_s390"
3780           ;;
3781         sparc64-*linux*)
3782           LD="${LD-ld} -m elf32_sparc"
3783           ;;
3784       esac
3785       ;;
3786     *64-bit*)
3787       case $host in
3788         x86_64-*linux*)
3789           LD="${LD-ld} -m elf_x86_64"
3790           ;;
3791         ppc*-*linux*|powerpc*-*linux*)
3792           LD="${LD-ld} -m elf64ppc"
3793           ;;
3794         s390*-*linux*)
3795           LD="${LD-ld} -m elf64_s390"
3796           ;;
3797         sparc*-*linux*)
3798           LD="${LD-ld} -m elf64_sparc"
3799           ;;
3800       esac
3801       ;;
3802     esac
3803   fi
3804   rm -rf conftest*
3805   ;;
3806
3807 *-*-sco3.2v5*)
3808   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3809   SAVE_CFLAGS="$CFLAGS"
3810   CFLAGS="$CFLAGS -belf"
3811   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3812 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3813 if test "${lt_cv_cc_needs_belf+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821
3822      cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h.  */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h.  */
3828
3829 int
3830 main ()
3831 {
3832
3833   ;
3834   return 0;
3835 }
3836 _ACEOF
3837 rm -f conftest.$ac_objext conftest$ac_exeext
3838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3839   (eval $ac_link) 2>conftest.er1
3840   ac_status=$?
3841   grep -v '^ *+' conftest.er1 >conftest.err
3842   rm -f conftest.er1
3843   cat conftest.err >&5
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); } &&
3846          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848   (eval $ac_try) 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); }; } &&
3852          { ac_try='test -s conftest$ac_exeext'
3853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854   (eval $ac_try) 2>&5
3855   ac_status=$?
3856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); }; }; then
3858   lt_cv_cc_needs_belf=yes
3859 else
3860   echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 lt_cv_cc_needs_belf=no
3864 fi
3865 rm -f conftest.err conftest.$ac_objext \
3866       conftest$ac_exeext conftest.$ac_ext
3867      ac_ext=c
3868 ac_cpp='$CPP $CPPFLAGS'
3869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872
3873 fi
3874 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3875 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3876   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3877     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3878     CFLAGS="$SAVE_CFLAGS"
3879   fi
3880   ;;
3881
3882 esac
3883
3884 need_locks="$enable_libtool_lock"
3885
3886
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3893 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3894 # On Suns, sometimes $CPP names a directory.
3895 if test -n "$CPP" && test -d "$CPP"; then
3896   CPP=
3897 fi
3898 if test -z "$CPP"; then
3899   if test "${ac_cv_prog_CPP+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902       # Double quotes because CPP needs to be expanded
3903     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3904     do
3905       ac_preproc_ok=false
3906 for ac_c_preproc_warn_flag in '' yes
3907 do
3908   # Use a header file that comes with gcc, so configuring glibc
3909   # with a fresh cross-compiler works.
3910   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911   # <limits.h> exists even on freestanding compilers.
3912   # On the NeXT, cc -E runs the code through the compiler's parser,
3913   # not just through cpp. "Syntax error" is here to catch this case.
3914   cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 #ifdef __STDC__
3921 # include <limits.h>
3922 #else
3923 # include <assert.h>
3924 #endif
3925                      Syntax error
3926 _ACEOF
3927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3928   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3929   ac_status=$?
3930   grep -v '^ *+' conftest.er1 >conftest.err
3931   rm -f conftest.er1
3932   cat conftest.err >&5
3933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934   (exit $ac_status); } >/dev/null; then
3935   if test -s conftest.err; then
3936     ac_cpp_err=$ac_c_preproc_warn_flag
3937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3938   else
3939     ac_cpp_err=
3940   fi
3941 else
3942   ac_cpp_err=yes
3943 fi
3944 if test -z "$ac_cpp_err"; then
3945   :
3946 else
3947   echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950   # Broken: fails on valid input.
3951 continue
3952 fi
3953 rm -f conftest.err conftest.$ac_ext
3954
3955   # OK, works on sane cases.  Now check whether non-existent headers
3956   # can be detected and how.
3957   cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h.  */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h.  */
3963 #include <ac_nonexistent.h>
3964 _ACEOF
3965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3967   ac_status=$?
3968   grep -v '^ *+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } >/dev/null; then
3973   if test -s conftest.err; then
3974     ac_cpp_err=$ac_c_preproc_warn_flag
3975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3976   else
3977     ac_cpp_err=
3978   fi
3979 else
3980   ac_cpp_err=yes
3981 fi
3982 if test -z "$ac_cpp_err"; then
3983   # Broken: success on invalid input.
3984 continue
3985 else
3986   echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3988
3989   # Passes both tests.
3990 ac_preproc_ok=:
3991 break
3992 fi
3993 rm -f conftest.err conftest.$ac_ext
3994
3995 done
3996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997 rm -f conftest.err conftest.$ac_ext
3998 if $ac_preproc_ok; then
3999   break
4000 fi
4001
4002     done
4003     ac_cv_prog_CPP=$CPP
4004
4005 fi
4006   CPP=$ac_cv_prog_CPP
4007 else
4008   ac_cv_prog_CPP=$CPP
4009 fi
4010 echo "$as_me:$LINENO: result: $CPP" >&5
4011 echo "${ECHO_T}$CPP" >&6
4012 ac_preproc_ok=false
4013 for ac_c_preproc_warn_flag in '' yes
4014 do
4015   # Use a header file that comes with gcc, so configuring glibc
4016   # with a fresh cross-compiler works.
4017   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018   # <limits.h> exists even on freestanding compilers.
4019   # On the NeXT, cc -E runs the code through the compiler's parser,
4020   # not just through cpp. "Syntax error" is here to catch this case.
4021   cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h.  */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h.  */
4027 #ifdef __STDC__
4028 # include <limits.h>
4029 #else
4030 # include <assert.h>
4031 #endif
4032                      Syntax error
4033 _ACEOF
4034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } >/dev/null; then
4042   if test -s conftest.err; then
4043     ac_cpp_err=$ac_c_preproc_warn_flag
4044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4045   else
4046     ac_cpp_err=
4047   fi
4048 else
4049   ac_cpp_err=yes
4050 fi
4051 if test -z "$ac_cpp_err"; then
4052   :
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057   # Broken: fails on valid input.
4058 continue
4059 fi
4060 rm -f conftest.err conftest.$ac_ext
4061
4062   # OK, works on sane cases.  Now check whether non-existent headers
4063   # can be detected and how.
4064   cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h.  */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h.  */
4070 #include <ac_nonexistent.h>
4071 _ACEOF
4072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4074   ac_status=$?
4075   grep -v '^ *+' conftest.er1 >conftest.err
4076   rm -f conftest.er1
4077   cat conftest.err >&5
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } >/dev/null; then
4080   if test -s conftest.err; then
4081     ac_cpp_err=$ac_c_preproc_warn_flag
4082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4083   else
4084     ac_cpp_err=
4085   fi
4086 else
4087   ac_cpp_err=yes
4088 fi
4089 if test -z "$ac_cpp_err"; then
4090   # Broken: success on invalid input.
4091 continue
4092 else
4093   echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4095
4096   # Passes both tests.
4097 ac_preproc_ok=:
4098 break
4099 fi
4100 rm -f conftest.err conftest.$ac_ext
4101
4102 done
4103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104 rm -f conftest.err conftest.$ac_ext
4105 if $ac_preproc_ok; then
4106   :
4107 else
4108   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4109 See \`config.log' for more details." >&5
4110 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4111 See \`config.log' for more details." >&2;}
4112    { (exit 1); exit 1; }; }
4113 fi
4114
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4124 if test "${ac_cv_header_stdc+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 #include <stdlib.h>
4134 #include <stdarg.h>
4135 #include <string.h>
4136 #include <float.h>
4137
4138 int
4139 main ()
4140 {
4141
4142   ;
4143   return 0;
4144 }
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148   (eval $ac_compile) 2>conftest.er1
4149   ac_status=$?
4150   grep -v '^ *+' conftest.er1 >conftest.err
4151   rm -f conftest.er1
4152   cat conftest.err >&5
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } &&
4155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157   (eval $ac_try) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; } &&
4161          { ac_try='test -s conftest.$ac_objext'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   ac_cv_header_stdc=yes
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 ac_cv_header_stdc=no
4173 fi
4174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175
4176 if test $ac_cv_header_stdc = yes; then
4177   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4178   cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h.  */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h.  */
4184 #include <string.h>
4185
4186 _ACEOF
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188   $EGREP "memchr" >/dev/null 2>&1; then
4189   :
4190 else
4191   ac_cv_header_stdc=no
4192 fi
4193 rm -f conftest*
4194
4195 fi
4196
4197 if test $ac_cv_header_stdc = yes; then
4198   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4199   cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h.  */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h.  */
4205 #include <stdlib.h>
4206
4207 _ACEOF
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209   $EGREP "free" >/dev/null 2>&1; then
4210   :
4211 else
4212   ac_cv_header_stdc=no
4213 fi
4214 rm -f conftest*
4215
4216 fi
4217
4218 if test $ac_cv_header_stdc = yes; then
4219   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4220   if test "$cross_compiling" = yes; then
4221   :
4222 else
4223   cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h.  */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h.  */
4229 #include <ctype.h>
4230 #if ((' ' & 0x0FF) == 0x020)
4231 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4232 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4233 #else
4234 # define ISLOWER(c) \
4235                    (('a' <= (c) && (c) <= 'i') \
4236                      || ('j' <= (c) && (c) <= 'r') \
4237                      || ('s' <= (c) && (c) <= 'z'))
4238 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4239 #endif
4240
4241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4242 int
4243 main ()
4244 {
4245   int i;
4246   for (i = 0; i < 256; i++)
4247     if (XOR (islower (i), ISLOWER (i))
4248         || toupper (i) != TOUPPER (i))
4249       exit(2);
4250   exit (0);
4251 }
4252 _ACEOF
4253 rm -f conftest$ac_exeext
4254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4255   (eval $ac_link) 2>&5
4256   ac_status=$?
4257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260   (eval $ac_try) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; }; then
4264   :
4265 else
4266   echo "$as_me: program exited with status $ac_status" >&5
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4269
4270 ( exit $ac_status )
4271 ac_cv_header_stdc=no
4272 fi
4273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4274 fi
4275 fi
4276 fi
4277 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4278 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4279 if test $ac_cv_header_stdc = yes; then
4280
4281 cat >>confdefs.h <<\_ACEOF
4282 #define STDC_HEADERS 1
4283 _ACEOF
4284
4285 fi
4286
4287 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4298                   inttypes.h stdint.h unistd.h
4299 do
4300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4301 echo "$as_me:$LINENO: checking for $ac_header" >&5
4302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   cat >conftest.$ac_ext <<_ACEOF
4307 /* confdefs.h.  */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h.  */
4312 $ac_includes_default
4313
4314 #include <$ac_header>
4315 _ACEOF
4316 rm -f conftest.$ac_objext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318   (eval $ac_compile) 2>conftest.er1
4319   ac_status=$?
4320   grep -v '^ *+' conftest.er1 >conftest.err
4321   rm -f conftest.er1
4322   cat conftest.err >&5
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); } &&
4325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327   (eval $ac_try) 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); }; } &&
4331          { ac_try='test -s conftest.$ac_objext'
4332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333   (eval $ac_try) 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; }; then
4337   eval "$as_ac_Header=yes"
4338 else
4339   echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 eval "$as_ac_Header=no"
4343 fi
4344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4345 fi
4346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4349   cat >>confdefs.h <<_ACEOF
4350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4351 _ACEOF
4352
4353 fi
4354
4355 done
4356
4357
4358
4359 for ac_header in dlfcn.h
4360 do
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4363   echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 fi
4368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370 else
4371   # Is the header compilable?
4372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h.  */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h.  */
4380 $ac_includes_default
4381 #include <$ac_header>
4382 _ACEOF
4383 rm -f conftest.$ac_objext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385   (eval $ac_compile) 2>conftest.er1
4386   ac_status=$?
4387   grep -v '^ *+' conftest.er1 >conftest.err
4388   rm -f conftest.er1
4389   cat conftest.err >&5
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } &&
4392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394   (eval $ac_try) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; } &&
4398          { ac_try='test -s conftest.$ac_objext'
4399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400   (eval $ac_try) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }; }; then
4404   ac_header_compiler=yes
4405 else
4406   echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 ac_header_compiler=no
4410 fi
4411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4413 echo "${ECHO_T}$ac_header_compiler" >&6
4414
4415 # Is the header present?
4416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4418 cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 #include <$ac_header>
4425 _ACEOF
4426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4428   ac_status=$?
4429   grep -v '^ *+' conftest.er1 >conftest.err
4430   rm -f conftest.er1
4431   cat conftest.err >&5
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); } >/dev/null; then
4434   if test -s conftest.err; then
4435     ac_cpp_err=$ac_c_preproc_warn_flag
4436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4437   else
4438     ac_cpp_err=
4439   fi
4440 else
4441   ac_cpp_err=yes
4442 fi
4443 if test -z "$ac_cpp_err"; then
4444   ac_header_preproc=yes
4445 else
4446   echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4448
4449   ac_header_preproc=no
4450 fi
4451 rm -f conftest.err conftest.$ac_ext
4452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4453 echo "${ECHO_T}$ac_header_preproc" >&6
4454
4455 # So?  What about this header?
4456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4457   yes:no: )
4458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4462     ac_header_preproc=yes
4463     ;;
4464   no:yes:* )
4465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4477     (
4478       cat <<\_ASBOX
4479 ## ------------------------------------------ ##
4480 ## Report this to the AC_PACKAGE_NAME lists.  ##
4481 ## ------------------------------------------ ##
4482 _ASBOX
4483     ) |
4484       sed "s/^/$as_me: WARNING:     /" >&2
4485     ;;
4486 esac
4487 echo "$as_me:$LINENO: checking for $ac_header" >&5
4488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   eval "$as_ac_Header=\$ac_header_preproc"
4493 fi
4494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4496
4497 fi
4498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4499   cat >>confdefs.h <<_ACEOF
4500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4501 _ACEOF
4502
4503 fi
4504
4505 done
4506
4507 ac_ext=cc
4508 ac_cpp='$CXXCPP $CPPFLAGS'
4509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4512 if test -n "$ac_tool_prefix"; then
4513   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4514   do
4515     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4517 echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519 if test "${ac_cv_prog_CXX+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   if test -n "$CXX"; then
4523   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530   for ac_exec_ext in '' $ac_executable_extensions; do
4531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537 done
4538
4539 fi
4540 fi
4541 CXX=$ac_cv_prog_CXX
4542 if test -n "$CXX"; then
4543   echo "$as_me:$LINENO: result: $CXX" >&5
4544 echo "${ECHO_T}$CXX" >&6
4545 else
4546   echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6
4548 fi
4549
4550     test -n "$CXX" && break
4551   done
4552 fi
4553 if test -z "$CXX"; then
4554   ac_ct_CXX=$CXX
4555   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4556 do
4557   # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy $ac_prog; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   if test -n "$ac_ct_CXX"; then
4565   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572   for ac_exec_ext in '' $ac_executable_extensions; do
4573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574     ac_cv_prog_ac_ct_CXX="$ac_prog"
4575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576     break 2
4577   fi
4578 done
4579 done
4580
4581 fi
4582 fi
4583 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4584 if test -n "$ac_ct_CXX"; then
4585   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4586 echo "${ECHO_T}$ac_ct_CXX" >&6
4587 else
4588   echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6
4590 fi
4591
4592   test -n "$ac_ct_CXX" && break
4593 done
4594 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4595
4596   CXX=$ac_ct_CXX
4597 fi
4598
4599
4600 # Provide some information about the compiler.
4601 echo "$as_me:$LINENO:" \
4602      "checking for C++ compiler version" >&5
4603 ac_compiler=`set X $ac_compile; echo $2`
4604 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4605   (eval $ac_compiler --version </dev/null >&5) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }
4609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4610   (eval $ac_compiler -v </dev/null >&5) 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }
4614 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4615   (eval $ac_compiler -V </dev/null >&5) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }
4619
4620 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4621 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4622 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h.  */
4627 _ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h.  */
4631
4632 int
4633 main ()
4634 {
4635 #ifndef __GNUC__
4636        choke me
4637 #endif
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.$ac_objext
4644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645   (eval $ac_compile) 2>conftest.er1
4646   ac_status=$?
4647   grep -v '^ *+' conftest.er1 >conftest.err
4648   rm -f conftest.er1
4649   cat conftest.err >&5
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } &&
4652          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654   (eval $ac_try) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; } &&
4658          { ac_try='test -s conftest.$ac_objext'
4659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660   (eval $ac_try) 2>&5
4661   ac_status=$?
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); }; }; then
4664   ac_compiler_gnu=yes
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 ac_compiler_gnu=no
4670 fi
4671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4672 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4673
4674 fi
4675 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4676 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4677 GXX=`test $ac_compiler_gnu = yes && echo yes`
4678 ac_test_CXXFLAGS=${CXXFLAGS+set}
4679 ac_save_CXXFLAGS=$CXXFLAGS
4680 CXXFLAGS="-g"
4681 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4682 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4683 if test "${ac_cv_prog_cxx_g+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686   cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h.  */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h.  */
4692
4693 int
4694 main ()
4695 {
4696
4697   ;
4698   return 0;
4699 }
4700 _ACEOF
4701 rm -f conftest.$ac_objext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4703   (eval $ac_compile) 2>conftest.er1
4704   ac_status=$?
4705   grep -v '^ *+' conftest.er1 >conftest.err
4706   rm -f conftest.er1
4707   cat conftest.err >&5
4708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); } &&
4710          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712   (eval $ac_try) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); }; } &&
4716          { ac_try='test -s conftest.$ac_objext'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; }; then
4722   ac_cv_prog_cxx_g=yes
4723 else
4724   echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 ac_cv_prog_cxx_g=no
4728 fi
4729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4730 fi
4731 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4732 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4733 if test "$ac_test_CXXFLAGS" = set; then
4734   CXXFLAGS=$ac_save_CXXFLAGS
4735 elif test $ac_cv_prog_cxx_g = yes; then
4736   if test "$GXX" = yes; then
4737     CXXFLAGS="-g -O2"
4738   else
4739     CXXFLAGS="-g"
4740   fi
4741 else
4742   if test "$GXX" = yes; then
4743     CXXFLAGS="-O2"
4744   else
4745     CXXFLAGS=
4746   fi
4747 fi
4748 for ac_declaration in \
4749    '' \
4750    'extern "C" void std::exit (int) throw (); using std::exit;' \
4751    'extern "C" void std::exit (int); using std::exit;' \
4752    'extern "C" void exit (int) throw ();' \
4753    'extern "C" void exit (int);' \
4754    'void exit (int);'
4755 do
4756   cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h.  */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h.  */
4762 $ac_declaration
4763 #include <stdlib.h>
4764 int
4765 main ()
4766 {
4767 exit (42);
4768   ;
4769   return 0;
4770 }
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774   (eval $ac_compile) 2>conftest.er1
4775   ac_status=$?
4776   grep -v '^ *+' conftest.er1 >conftest.err
4777   rm -f conftest.er1
4778   cat conftest.err >&5
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } &&
4781          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; } &&
4787          { ac_try='test -s conftest.$ac_objext'
4788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789   (eval $ac_try) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; }; then
4793   :
4794 else
4795   echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798 continue
4799 fi
4800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4801   cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807 $ac_declaration
4808 int
4809 main ()
4810 {
4811 exit (42);
4812   ;
4813   return 0;
4814 }
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818   (eval $ac_compile) 2>conftest.er1
4819   ac_status=$?
4820   grep -v '^ *+' conftest.er1 >conftest.err
4821   rm -f conftest.er1
4822   cat conftest.err >&5
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } &&
4825          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827   (eval $ac_try) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; } &&
4831          { ac_try='test -s conftest.$ac_objext'
4832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833   (eval $ac_try) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }; }; then
4837   break
4838 else
4839   echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 fi
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844 done
4845 rm -f conftest*
4846 if test -n "$ac_declaration"; then
4847   echo '#ifdef __cplusplus' >>confdefs.h
4848   echo $ac_declaration      >>confdefs.h
4849   echo '#endif'             >>confdefs.h
4850 fi
4851
4852 ac_ext=cc
4853 ac_cpp='$CXXCPP $CPPFLAGS'
4854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4857
4858 depcc="$CXX"  am_compiler_list=
4859
4860 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4861 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4862 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4866   # We make a subdir and do the tests there.  Otherwise we can end up
4867   # making bogus files that we don't know about and never remove.  For
4868   # instance it was reported that on HP-UX the gcc test will end up
4869   # making a dummy file named `D' -- because `-MD' means `put the output
4870   # in D'.
4871   mkdir conftest.dir
4872   # Copy depcomp to subdir because otherwise we won't find it if we're
4873   # using a relative directory.
4874   cp "$am_depcomp" conftest.dir
4875   cd conftest.dir
4876   # We will build objects and dependencies in a subdirectory because
4877   # it helps to detect inapplicable dependency modes.  For instance
4878   # both Tru64's cc and ICC support -MD to output dependencies as a
4879   # side effect of compilation, but ICC will put the dependencies in
4880   # the current directory while Tru64 will put them in the object
4881   # directory.
4882   mkdir sub
4883
4884   am_cv_CXX_dependencies_compiler_type=none
4885   if test "$am_compiler_list" = ""; then
4886      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4887   fi
4888   for depmode in $am_compiler_list; do
4889     # Setup a source with many dependencies, because some compilers
4890     # like to wrap large dependency lists on column 80 (with \), and
4891     # we should not choose a depcomp mode which is confused by this.
4892     #
4893     # We need to recreate these files for each test, as the compiler may
4894     # overwrite some of them when testing with obscure command lines.
4895     # This happens at least with the AIX C compiler.
4896     : > sub/conftest.c
4897     for i in 1 2 3 4 5 6; do
4898       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4899       : > sub/conftst$i.h
4900     done
4901     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4902
4903     case $depmode in
4904     nosideeffect)
4905       # after this tag, mechanisms are not by side-effect, so they'll
4906       # only be used when explicitly requested
4907       if test "x$enable_dependency_tracking" = xyes; then
4908         continue
4909       else
4910         break
4911       fi
4912       ;;
4913     none) break ;;
4914     esac
4915     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4916     # mode.  It turns out that the SunPro C++ compiler does not properly
4917     # handle `-M -o', and we need to detect this.
4918     if depmode=$depmode \
4919        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4920        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4921        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4922          >/dev/null 2>conftest.err &&
4923        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4925        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926       # icc doesn't choke on unknown options, it will just issue warnings
4927       # (even with -Werror).  So we grep stderr for any message
4928       # that says an option was ignored.
4929       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4930         am_cv_CXX_dependencies_compiler_type=$depmode
4931         break
4932       fi
4933     fi
4934   done
4935
4936   cd ..
4937   rm -rf conftest.dir
4938 else
4939   am_cv_CXX_dependencies_compiler_type=none
4940 fi
4941
4942 fi
4943 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4944 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4945 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4946
4947
4948
4949 if
4950   test "x$enable_dependency_tracking" != xno \
4951   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4952   am__fastdepCXX_TRUE=
4953   am__fastdepCXX_FALSE='#'
4954 else
4955   am__fastdepCXX_TRUE='#'
4956   am__fastdepCXX_FALSE=
4957 fi
4958
4959
4960 ac_ext=cc
4961 ac_cpp='$CXXCPP $CPPFLAGS'
4962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4965 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4966 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4967 if test -z "$CXXCPP"; then
4968   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4969   echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971       # Double quotes because CXXCPP needs to be expanded
4972     for CXXCPP in "$CXX -E" "/lib/cpp"
4973     do
4974       ac_preproc_ok=false
4975 for ac_cxx_preproc_warn_flag in '' yes
4976 do
4977   # Use a header file that comes with gcc, so configuring glibc
4978   # with a fresh cross-compiler works.
4979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4980   # <limits.h> exists even on freestanding compilers.
4981   # On the NeXT, cc -E runs the code through the compiler's parser,
4982   # not just through cpp. "Syntax error" is here to catch this case.
4983   cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989 #ifdef __STDC__
4990 # include <limits.h>
4991 #else
4992 # include <assert.h>
4993 #endif
4994                      Syntax error
4995 _ACEOF
4996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4998   ac_status=$?
4999   grep -v '^ *+' conftest.er1 >conftest.err
5000   rm -f conftest.er1
5001   cat conftest.err >&5
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); } >/dev/null; then
5004   if test -s conftest.err; then
5005     ac_cpp_err=$ac_cxx_preproc_warn_flag
5006     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5007   else
5008     ac_cpp_err=
5009   fi
5010 else
5011   ac_cpp_err=yes
5012 fi
5013 if test -z "$ac_cpp_err"; then
5014   :
5015 else
5016   echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019   # Broken: fails on valid input.
5020 continue
5021 fi
5022 rm -f conftest.err conftest.$ac_ext
5023
5024   # OK, works on sane cases.  Now check whether non-existent headers
5025   # can be detected and how.
5026   cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032 #include <ac_nonexistent.h>
5033 _ACEOF
5034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5036   ac_status=$?
5037   grep -v '^ *+' conftest.er1 >conftest.err
5038   rm -f conftest.er1
5039   cat conftest.err >&5
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } >/dev/null; then
5042   if test -s conftest.err; then
5043     ac_cpp_err=$ac_cxx_preproc_warn_flag
5044     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5045   else
5046     ac_cpp_err=
5047   fi
5048 else
5049   ac_cpp_err=yes
5050 fi
5051 if test -z "$ac_cpp_err"; then
5052   # Broken: success on invalid input.
5053 continue
5054 else
5055   echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5057
5058   # Passes both tests.
5059 ac_preproc_ok=:
5060 break
5061 fi
5062 rm -f conftest.err conftest.$ac_ext
5063
5064 done
5065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5066 rm -f conftest.err conftest.$ac_ext
5067 if $ac_preproc_ok; then
5068   break
5069 fi
5070
5071     done
5072     ac_cv_prog_CXXCPP=$CXXCPP
5073
5074 fi
5075   CXXCPP=$ac_cv_prog_CXXCPP
5076 else
5077   ac_cv_prog_CXXCPP=$CXXCPP
5078 fi
5079 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5080 echo "${ECHO_T}$CXXCPP" >&6
5081 ac_preproc_ok=false
5082 for ac_cxx_preproc_warn_flag in '' yes
5083 do
5084   # Use a header file that comes with gcc, so configuring glibc
5085   # with a fresh cross-compiler works.
5086   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5087   # <limits.h> exists even on freestanding compilers.
5088   # On the NeXT, cc -E runs the code through the compiler's parser,
5089   # not just through cpp. "Syntax error" is here to catch this case.
5090   cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096 #ifdef __STDC__
5097 # include <limits.h>
5098 #else
5099 # include <assert.h>
5100 #endif
5101                      Syntax error
5102 _ACEOF
5103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5104   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5105   ac_status=$?
5106   grep -v '^ *+' conftest.er1 >conftest.err
5107   rm -f conftest.er1
5108   cat conftest.err >&5
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); } >/dev/null; then
5111   if test -s conftest.err; then
5112     ac_cpp_err=$ac_cxx_preproc_warn_flag
5113     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5114   else
5115     ac_cpp_err=
5116   fi
5117 else
5118   ac_cpp_err=yes
5119 fi
5120 if test -z "$ac_cpp_err"; then
5121   :
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126   # Broken: fails on valid input.
5127 continue
5128 fi
5129 rm -f conftest.err conftest.$ac_ext
5130
5131   # OK, works on sane cases.  Now check whether non-existent headers
5132   # can be detected and how.
5133   cat >conftest.$ac_ext <<_ACEOF
5134 /* confdefs.h.  */
5135 _ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h.  */
5139 #include <ac_nonexistent.h>
5140 _ACEOF
5141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5143   ac_status=$?
5144   grep -v '^ *+' conftest.er1 >conftest.err
5145   rm -f conftest.er1
5146   cat conftest.err >&5
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); } >/dev/null; then
5149   if test -s conftest.err; then
5150     ac_cpp_err=$ac_cxx_preproc_warn_flag
5151     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5152   else
5153     ac_cpp_err=
5154   fi
5155 else
5156   ac_cpp_err=yes
5157 fi
5158 if test -z "$ac_cpp_err"; then
5159   # Broken: success on invalid input.
5160 continue
5161 else
5162   echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5164
5165   # Passes both tests.
5166 ac_preproc_ok=:
5167 break
5168 fi
5169 rm -f conftest.err conftest.$ac_ext
5170
5171 done
5172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5173 rm -f conftest.err conftest.$ac_ext
5174 if $ac_preproc_ok; then
5175   :
5176 else
5177   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5178 See \`config.log' for more details." >&5
5179 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5180 See \`config.log' for more details." >&2;}
5181    { (exit 1); exit 1; }; }
5182 fi
5183
5184 ac_ext=cc
5185 ac_cpp='$CXXCPP $CPPFLAGS'
5186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5189
5190
5191 ac_ext=f
5192 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5193 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5195 if test -n "$ac_tool_prefix"; then
5196   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5197   do
5198     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202 if test "${ac_cv_prog_F77+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   if test -n "$F77"; then
5206   ac_cv_prog_F77="$F77" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213   for ac_exec_ext in '' $ac_executable_extensions; do
5214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220 done
5221
5222 fi
5223 fi
5224 F77=$ac_cv_prog_F77
5225 if test -n "$F77"; then
5226   echo "$as_me:$LINENO: result: $F77" >&5
5227 echo "${ECHO_T}$F77" >&6
5228 else
5229   echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5231 fi
5232
5233     test -n "$F77" && break
5234   done
5235 fi
5236 if test -z "$F77"; then
5237   ac_ct_F77=$F77
5238   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5239 do
5240   # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   if test -n "$ac_ct_F77"; then
5248   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255   for ac_exec_ext in '' $ac_executable_extensions; do
5256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257     ac_cv_prog_ac_ct_F77="$ac_prog"
5258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262 done
5263
5264 fi
5265 fi
5266 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5267 if test -n "$ac_ct_F77"; then
5268   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5269 echo "${ECHO_T}$ac_ct_F77" >&6
5270 else
5271   echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6
5273 fi
5274
5275   test -n "$ac_ct_F77" && break
5276 done
5277
5278   F77=$ac_ct_F77
5279 fi
5280
5281
5282 # Provide some information about the compiler.
5283 echo "$as_me:5283:" \
5284      "checking for Fortran 77 compiler version" >&5
5285 ac_compiler=`set X $ac_compile; echo $2`
5286 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5287   (eval $ac_compiler --version </dev/null >&5) 2>&5
5288   ac_status=$?
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); }
5291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5292   (eval $ac_compiler -v </dev/null >&5) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }
5296 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5297   (eval $ac_compiler -V </dev/null >&5) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }
5301 rm -f a.out
5302
5303 # If we don't use `.F' as extension, the preprocessor is not run on the
5304 # input file.  (Note that this only needs to work for GNU compilers.)
5305 ac_save_ext=$ac_ext
5306 ac_ext=F
5307 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5308 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5309 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   cat >conftest.$ac_ext <<_ACEOF
5313       program main
5314 #ifndef __GNUC__
5315        choke me
5316 #endif
5317
5318       end
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322   (eval $ac_compile) 2>conftest.er1
5323   ac_status=$?
5324   grep -v '^ *+' conftest.er1 >conftest.err
5325   rm -f conftest.er1
5326   cat conftest.err >&5
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } &&
5329          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331   (eval $ac_try) 2>&5
5332   ac_status=$?
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); }; } &&
5335          { ac_try='test -s conftest.$ac_objext'
5336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337   (eval $ac_try) 2>&5
5338   ac_status=$?
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); }; }; then
5341   ac_compiler_gnu=yes
5342 else
5343   echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 ac_compiler_gnu=no
5347 fi
5348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5349 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5350
5351 fi
5352 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5353 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5354 ac_ext=$ac_save_ext
5355 ac_test_FFLAGS=${FFLAGS+set}
5356 ac_save_FFLAGS=$FFLAGS
5357 FFLAGS=
5358 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5359 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5360 if test "${ac_cv_prog_f77_g+set}" = set; then
5361   echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363   FFLAGS=-g
5364 cat >conftest.$ac_ext <<_ACEOF
5365       program main
5366
5367       end
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371   (eval $ac_compile) 2>conftest.er1
5372   ac_status=$?
5373   grep -v '^ *+' conftest.er1 >conftest.err
5374   rm -f conftest.er1
5375   cat conftest.err >&5
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); } &&
5378          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380   (eval $ac_try) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); }; } &&
5384          { ac_try='test -s conftest.$ac_objext'
5385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386   (eval $ac_try) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); }; }; then
5390   ac_cv_prog_f77_g=yes
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ac_cv_prog_f77_g=no
5396 fi
5397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5398
5399 fi
5400 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5401 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5402 if test "$ac_test_FFLAGS" = set; then
5403   FFLAGS=$ac_save_FFLAGS
5404 elif test $ac_cv_prog_f77_g = yes; then
5405   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5406     FFLAGS="-g -O2"
5407   else
5408     FFLAGS="-g"
5409   fi
5410 else
5411   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5412     FFLAGS="-O2"
5413   else
5414     FFLAGS=
5415   fi
5416 fi
5417
5418 G77=`test $ac_compiler_gnu = yes && echo yes`
5419 ac_ext=c
5420 ac_cpp='$CPP $CPPFLAGS'
5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424
5425
5426
5427 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5428
5429 # find the maximum length of command line arguments
5430 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5431 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5432 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435     i=0
5436   teststring="ABCD"
5437
5438   case $build_os in
5439   msdosdjgpp*)
5440     # On DJGPP, this test can blow up pretty badly due to problems in libc
5441     # (any single argument exceeding 2000 bytes causes a buffer overrun
5442     # during glob expansion).  Even if it were fixed, the result of this
5443     # check would be larger than it should be.
5444     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5445     ;;
5446
5447   gnu*)
5448     # Under GNU Hurd, this test is not required because there is
5449     # no limit to the length of command line arguments.
5450     # Libtool will interpret -1 as no limit whatsoever
5451     lt_cv_sys_max_cmd_len=-1;
5452     ;;
5453
5454   cygwin* | mingw*)
5455     # On Win9x/ME, this test blows up -- it succeeds, but takes
5456     # about 5 minutes as the teststring grows exponentially.
5457     # Worse, since 9x/ME are not pre-emptively multitasking,
5458     # you end up with a "frozen" computer, even though with patience
5459     # the test eventually succeeds (with a max line length of 256k).
5460     # Instead, let's just punt: use the minimum linelength reported by
5461     # all of the supported platforms: 8192 (on NT/2K/XP).
5462     lt_cv_sys_max_cmd_len=8192;
5463     ;;
5464
5465   amigaos*)
5466     # On AmigaOS with pdksh, this test takes hours, literally.
5467     # So we just punt and use a minimum line length of 8192.
5468     lt_cv_sys_max_cmd_len=8192;
5469     ;;
5470
5471  *)
5472     # If test is not a shell built-in, we'll probably end up computing a
5473     # maximum length that is only half of the actual maximum length, but
5474     # we can't tell.
5475     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5476                = "XX$teststring") >/dev/null 2>&1 &&
5477             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5478             lt_cv_sys_max_cmd_len=$new_result &&
5479             test $i != 17 # 1/2 MB should be enough
5480     do
5481       i=`expr $i + 1`
5482       teststring=$teststring$teststring
5483     done
5484     teststring=
5485     # Add a significant safety factor because C++ compilers can tack on massive
5486     # amounts of additional arguments before passing them to the linker.
5487     # It appears as though 1/2 is a usable value.
5488     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5489     ;;
5490   esac
5491
5492 fi
5493
5494 if test -n $lt_cv_sys_max_cmd_len ; then
5495   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5496 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5497 else
5498   echo "$as_me:$LINENO: result: none" >&5
5499 echo "${ECHO_T}none" >&6
5500 fi
5501
5502
5503
5504
5505 # Check for command to grab the raw symbol name followed by C symbol from nm.
5506 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5507 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5508 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511
5512 # These are sane defaults that work on at least a few old systems.
5513 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5514
5515 # Character class describing NM global symbol codes.
5516 symcode='[BCDEGRST]'
5517
5518 # Regexp to match symbols that can be accessed directly from C.
5519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5520
5521 # Transform the above into a raw symbol and a C symbol.
5522 symxfrm='\1 \2\3 \3'
5523
5524 # Transform an extracted symbol line into a proper C declaration
5525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5526
5527 # Transform an extracted symbol line into symbol name and symbol address
5528 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'"
5529
5530 # Define system-specific variables.
5531 case $host_os in
5532 aix*)
5533   symcode='[BCDT]'
5534   ;;
5535 cygwin* | mingw* | pw32*)
5536   symcode='[ABCDGISTW]'
5537   ;;
5538 hpux*) # Its linker distinguishes data from code symbols
5539   if test "$host_cpu" = ia64; then
5540     symcode='[ABCDEGRST]'
5541   fi
5542   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5543   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'"
5544   ;;
5545 irix* | nonstopux*)
5546   symcode='[BCDEGRST]'
5547   ;;
5548 osf*)
5549   symcode='[BCDEGQRST]'
5550   ;;
5551 solaris* | sysv5*)
5552   symcode='[BDRT]'
5553   ;;
5554 sysv4)
5555   symcode='[DFNSTU]'
5556   ;;
5557 esac
5558
5559 # Handle CRLF in mingw tool chain
5560 opt_cr=
5561 case $build_os in
5562 mingw*)
5563   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5564   ;;
5565 esac
5566
5567 # If we're using GNU nm, then use its standard symbol codes.
5568 case `$NM -V 2>&1` in
5569 *GNU* | *'with BFD'*)
5570   symcode='[ABCDGIRSTW]' ;;
5571 esac
5572
5573 # Try without a prefix undercore, then with it.
5574 for ac_symprfx in "" "_"; do
5575
5576   # Write the raw and C identifiers.
5577   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5578
5579   # Check to see that the pipe works correctly.
5580   pipe_works=no
5581
5582   rm -f conftest*
5583   cat > conftest.$ac_ext <<EOF
5584 #ifdef __cplusplus
5585 extern "C" {
5586 #endif
5587 char nm_test_var;
5588 void nm_test_func(){}
5589 #ifdef __cplusplus
5590 }
5591 #endif
5592 int main(){nm_test_var='a';nm_test_func();return(0);}
5593 EOF
5594
5595   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596   (eval $ac_compile) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; then
5600     # Now try to grab the symbols.
5601     nlist=conftest.nm
5602     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5603   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } && test -s "$nlist"; then
5607       # Try sorting and uniquifying the output.
5608       if sort "$nlist" | uniq > "$nlist"T; then
5609         mv -f "$nlist"T "$nlist"
5610       else
5611         rm -f "$nlist"T
5612       fi
5613
5614       # Make sure that we snagged all the symbols we need.
5615       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5616         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5617           cat <<EOF > conftest.$ac_ext
5618 #ifdef __cplusplus
5619 extern "C" {
5620 #endif
5621
5622 EOF
5623           # Now generate the symbol file.
5624           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5625
5626           cat <<EOF >> conftest.$ac_ext
5627 #if defined (__STDC__) && __STDC__
5628 # define lt_ptr_t void *
5629 #else
5630 # define lt_ptr_t char *
5631 # define const
5632 #endif
5633
5634 /* The mapping between symbol names and symbols. */
5635 const struct {
5636   const char *name;
5637   lt_ptr_t address;
5638 }
5639 lt_preloaded_symbols[] =
5640 {
5641 EOF
5642           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5643           cat <<\EOF >> conftest.$ac_ext
5644   {0, (lt_ptr_t) 0}
5645 };
5646
5647 #ifdef __cplusplus
5648 }
5649 #endif
5650 EOF
5651           # Now try linking the two files.
5652           mv conftest.$ac_objext conftstm.$ac_objext
5653           lt_save_LIBS="$LIBS"
5654           lt_save_CFLAGS="$CFLAGS"
5655           LIBS="conftstm.$ac_objext"
5656           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5657           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658   (eval $ac_link) 2>&5
5659   ac_status=$?
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5662             pipe_works=yes
5663           fi
5664           LIBS="$lt_save_LIBS"
5665           CFLAGS="$lt_save_CFLAGS"
5666         else
5667           echo "cannot find nm_test_func in $nlist" >&5
5668         fi
5669       else
5670         echo "cannot find nm_test_var in $nlist" >&5
5671       fi
5672     else
5673       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5674     fi
5675   else
5676     echo "$progname: failed program was:" >&5
5677     cat conftest.$ac_ext >&5
5678   fi
5679   rm -f conftest* conftst*
5680
5681   # Do not use the global_symbol_pipe unless it works.
5682   if test "$pipe_works" = yes; then
5683     break
5684   else
5685     lt_cv_sys_global_symbol_pipe=
5686   fi
5687 done
5688
5689 fi
5690
5691 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5692   lt_cv_sys_global_symbol_to_cdecl=
5693 fi
5694 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5695   echo "$as_me:$LINENO: result: failed" >&5
5696 echo "${ECHO_T}failed" >&6
5697 else
5698   echo "$as_me:$LINENO: result: ok" >&5
5699 echo "${ECHO_T}ok" >&6
5700 fi
5701
5702 echo "$as_me:$LINENO: checking for objdir" >&5
5703 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5704 if test "${lt_cv_objdir+set}" = set; then
5705   echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707   rm -f .libs 2>/dev/null
5708 mkdir .libs 2>/dev/null
5709 if test -d .libs; then
5710   lt_cv_objdir=.libs
5711 else
5712   # MS-DOS does not allow filenames that begin with a dot.
5713   lt_cv_objdir=_libs
5714 fi
5715 rmdir .libs 2>/dev/null
5716 fi
5717 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5718 echo "${ECHO_T}$lt_cv_objdir" >&6
5719 objdir=$lt_cv_objdir
5720
5721
5722
5723
5724
5725 case $host_os in
5726 aix3*)
5727   # AIX sometimes has problems with the GCC collect2 program.  For some
5728   # reason, if we set the COLLECT_NAMES environment variable, the problems
5729   # vanish in a puff of smoke.
5730   if test "X${COLLECT_NAMES+set}" != Xset; then
5731     COLLECT_NAMES=
5732     export COLLECT_NAMES
5733   fi
5734   ;;
5735 esac
5736
5737 # Sed substitution that helps us do robust quoting.  It backslashifies
5738 # metacharacters that are still active within double-quoted strings.
5739 Xsed='sed -e s/^X//'
5740 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5741
5742 # Same as above, but do not quote variable references.
5743 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5744
5745 # Sed substitution to delay expansion of an escaped shell variable in a
5746 # double_quote_subst'ed string.
5747 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5748
5749 # Sed substitution to avoid accidental globbing in evaled expressions
5750 no_glob_subst='s/\*/\\\*/g'
5751
5752 # Constants:
5753 rm="rm -f"
5754
5755 # Global variables:
5756 default_ofile=libtool
5757 can_build_shared=yes
5758
5759 # All known linkers require a `.a' archive for static linking (except M$VC,
5760 # which needs '.lib').
5761 libext=a
5762 ltmain="$ac_aux_dir/ltmain.sh"
5763 ofile="$default_ofile"
5764 with_gnu_ld="$lt_cv_prog_gnu_ld"
5765
5766 if test -n "$ac_tool_prefix"; then
5767   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5768 set dummy ${ac_tool_prefix}ar; ac_word=$2
5769 echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5771 if test "${ac_cv_prog_AR+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   if test -n "$AR"; then
5775   ac_cv_prog_AR="$AR" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782   for ac_exec_ext in '' $ac_executable_extensions; do
5783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784     ac_cv_prog_AR="${ac_tool_prefix}ar"
5785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789 done
5790
5791 fi
5792 fi
5793 AR=$ac_cv_prog_AR
5794 if test -n "$AR"; then
5795   echo "$as_me:$LINENO: result: $AR" >&5
5796 echo "${ECHO_T}$AR" >&6
5797 else
5798   echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6
5800 fi
5801
5802 fi
5803 if test -z "$ac_cv_prog_AR"; then
5804   ac_ct_AR=$AR
5805   # Extract the first word of "ar", so it can be a program name with args.
5806 set dummy ar; ac_word=$2
5807 echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5809 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   if test -n "$ac_ct_AR"; then
5813   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818   IFS=$as_save_IFS
5819   test -z "$as_dir" && as_dir=.
5820   for ac_exec_ext in '' $ac_executable_extensions; do
5821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822     ac_cv_prog_ac_ct_AR="ar"
5823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5824     break 2
5825   fi
5826 done
5827 done
5828
5829   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5830 fi
5831 fi
5832 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5833 if test -n "$ac_ct_AR"; then
5834   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5835 echo "${ECHO_T}$ac_ct_AR" >&6
5836 else
5837   echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6
5839 fi
5840
5841   AR=$ac_ct_AR
5842 else
5843   AR="$ac_cv_prog_AR"
5844 fi
5845
5846 if test -n "$ac_tool_prefix"; then
5847   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_RANLIB+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$RANLIB"; then
5855   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870
5871 fi
5872 fi
5873 RANLIB=$ac_cv_prog_RANLIB
5874 if test -n "$RANLIB"; then
5875   echo "$as_me:$LINENO: result: $RANLIB" >&5
5876 echo "${ECHO_T}$RANLIB" >&6
5877 else
5878   echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881
5882 fi
5883 if test -z "$ac_cv_prog_RANLIB"; then
5884   ac_ct_RANLIB=$RANLIB
5885   # Extract the first word of "ranlib", so it can be a program name with args.
5886 set dummy ranlib; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   if test -n "$ac_ct_RANLIB"; then
5893   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902     ac_cv_prog_ac_ct_RANLIB="ranlib"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908
5909   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5910 fi
5911 fi
5912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5913 if test -n "$ac_ct_RANLIB"; then
5914   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5915 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5916 else
5917   echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5919 fi
5920
5921   RANLIB=$ac_ct_RANLIB
5922 else
5923   RANLIB="$ac_cv_prog_RANLIB"
5924 fi
5925
5926 if test -n "$ac_tool_prefix"; then
5927   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}strip; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_STRIP+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   if test -n "$STRIP"; then
5935   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950
5951 fi
5952 fi
5953 STRIP=$ac_cv_prog_STRIP
5954 if test -n "$STRIP"; then
5955   echo "$as_me:$LINENO: result: $STRIP" >&5
5956 echo "${ECHO_T}$STRIP" >&6
5957 else
5958   echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962 fi
5963 if test -z "$ac_cv_prog_STRIP"; then
5964   ac_ct_STRIP=$STRIP
5965   # Extract the first word of "strip", so it can be a program name with args.
5966 set dummy strip; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   if test -n "$ac_ct_STRIP"; then
5973   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980   for ac_exec_ext in '' $ac_executable_extensions; do
5981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982     ac_cv_prog_ac_ct_STRIP="strip"
5983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987 done
5988
5989   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5990 fi
5991 fi
5992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5993 if test -n "$ac_ct_STRIP"; then
5994   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5995 echo "${ECHO_T}$ac_ct_STRIP" >&6
5996 else
5997   echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
5999 fi
6000
6001   STRIP=$ac_ct_STRIP
6002 else
6003   STRIP="$ac_cv_prog_STRIP"
6004 fi
6005
6006
6007 old_CC="$CC"
6008 old_CFLAGS="$CFLAGS"
6009
6010 # Set sane defaults for various variables
6011 test -z "$AR" && AR=ar
6012 test -z "$AR_FLAGS" && AR_FLAGS=cru
6013 test -z "$AS" && AS=as
6014 test -z "$CC" && CC=cc
6015 test -z "$LTCC" && LTCC=$CC
6016 test -z "$DLLTOOL" && DLLTOOL=dlltool
6017 test -z "$LD" && LD=ld
6018 test -z "$LN_S" && LN_S="ln -s"
6019 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6020 test -z "$NM" && NM=nm
6021 test -z "$SED" && SED=sed
6022 test -z "$OBJDUMP" && OBJDUMP=objdump
6023 test -z "$RANLIB" && RANLIB=:
6024 test -z "$STRIP" && STRIP=:
6025 test -z "$ac_objext" && ac_objext=o
6026
6027 # Determine commands to create old-style static archives.
6028 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6029 old_postinstall_cmds='chmod 644 $oldlib'
6030 old_postuninstall_cmds=
6031
6032 if test -n "$RANLIB"; then
6033   case $host_os in
6034   openbsd*)
6035     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6036     ;;
6037   *)
6038     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6039     ;;
6040   esac
6041   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6042 fi
6043
6044 # Only perform the check for file, if the check method requires it
6045 case $deplibs_check_method in
6046 file_magic*)
6047   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6048     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6049 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6050 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   case $MAGIC_CMD in
6054 [\\/*] |  ?:[\\/]*)
6055   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6056   ;;
6057 *)
6058   lt_save_MAGIC_CMD="$MAGIC_CMD"
6059   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6060   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6061   for ac_dir in $ac_dummy; do
6062     IFS="$lt_save_ifs"
6063     test -z "$ac_dir" && ac_dir=.
6064     if test -f $ac_dir/${ac_tool_prefix}file; then
6065       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6066       if test -n "$file_magic_test_file"; then
6067         case $deplibs_check_method in
6068         "file_magic "*)
6069           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6070           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6071           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6072             $EGREP "$file_magic_regex" > /dev/null; then
6073             :
6074           else
6075             cat <<EOF 1>&2
6076
6077 *** Warning: the command libtool uses to detect shared libraries,
6078 *** $file_magic_cmd, produces output that libtool cannot recognize.
6079 *** The result is that libtool may fail to recognize shared libraries
6080 *** as such.  This will affect the creation of libtool libraries that
6081 *** depend on shared libraries, but programs linked with such libtool
6082 *** libraries will work regardless of this problem.  Nevertheless, you
6083 *** may want to report the problem to your system manager and/or to
6084 *** bug-libtool@gnu.org
6085
6086 EOF
6087           fi ;;
6088         esac
6089       fi
6090       break
6091     fi
6092   done
6093   IFS="$lt_save_ifs"
6094   MAGIC_CMD="$lt_save_MAGIC_CMD"
6095   ;;
6096 esac
6097 fi
6098
6099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6100 if test -n "$MAGIC_CMD"; then
6101   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6102 echo "${ECHO_T}$MAGIC_CMD" >&6
6103 else
6104   echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6
6106 fi
6107
6108 if test -z "$lt_cv_path_MAGIC_CMD"; then
6109   if test -n "$ac_tool_prefix"; then
6110     echo "$as_me:$LINENO: checking for file" >&5
6111 echo $ECHO_N "checking for file... $ECHO_C" >&6
6112 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115   case $MAGIC_CMD in
6116 [\\/*] |  ?:[\\/]*)
6117   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6118   ;;
6119 *)
6120   lt_save_MAGIC_CMD="$MAGIC_CMD"
6121   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6122   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6123   for ac_dir in $ac_dummy; do
6124     IFS="$lt_save_ifs"
6125     test -z "$ac_dir" && ac_dir=.
6126     if test -f $ac_dir/file; then
6127       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6128       if test -n "$file_magic_test_file"; then
6129         case $deplibs_check_method in
6130         "file_magic "*)
6131           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6132           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6133           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6134             $EGREP "$file_magic_regex" > /dev/null; then
6135             :
6136           else
6137             cat <<EOF 1>&2
6138
6139 *** Warning: the command libtool uses to detect shared libraries,
6140 *** $file_magic_cmd, produces output that libtool cannot recognize.
6141 *** The result is that libtool may fail to recognize shared libraries
6142 *** as such.  This will affect the creation of libtool libraries that
6143 *** depend on shared libraries, but programs linked with such libtool
6144 *** libraries will work regardless of this problem.  Nevertheless, you
6145 *** may want to report the problem to your system manager and/or to
6146 *** bug-libtool@gnu.org
6147
6148 EOF
6149           fi ;;
6150         esac
6151       fi
6152       break
6153     fi
6154   done
6155   IFS="$lt_save_ifs"
6156   MAGIC_CMD="$lt_save_MAGIC_CMD"
6157   ;;
6158 esac
6159 fi
6160
6161 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6162 if test -n "$MAGIC_CMD"; then
6163   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6164 echo "${ECHO_T}$MAGIC_CMD" >&6
6165 else
6166   echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6
6168 fi
6169
6170   else
6171     MAGIC_CMD=:
6172   fi
6173 fi
6174
6175   fi
6176   ;;
6177 esac
6178
6179 enable_dlopen=yes
6180 enable_win32_dll=no
6181
6182 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6183 if test "${enable_libtool_lock+set}" = set; then
6184   enableval="$enable_libtool_lock"
6185
6186 fi;
6187 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6188
6189
6190 # Check whether --with-pic or --without-pic was given.
6191 if test "${with_pic+set}" = set; then
6192   withval="$with_pic"
6193   pic_mode="$withval"
6194 else
6195   pic_mode=default
6196 fi;
6197 test -z "$pic_mode" && pic_mode=default
6198
6199 # Use C for the default configuration in the libtool script
6200 tagname=
6201 lt_save_CC="$CC"
6202 ac_ext=c
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207
6208
6209 # Source file extension for C test sources.
6210 ac_ext=c
6211
6212 # Object file extension for compiled C test sources.
6213 objext=o
6214 objext=$objext
6215
6216 # Code to be used in simple compile tests
6217 lt_simple_compile_test_code="int some_variable = 0;\n"
6218
6219 # Code to be used in simple link tests
6220 lt_simple_link_test_code='int main(){return(0);}\n'
6221
6222
6223 # If no C compiler was specified, use CC.
6224 LTCC=${LTCC-"$CC"}
6225
6226 # Allow CC to be a program name with arguments.
6227 compiler=$CC
6228
6229
6230 #
6231 # Check for any special shared library compilation flags.
6232 #
6233 lt_prog_cc_shlib=
6234 if test "$GCC" = no; then
6235   case $host_os in
6236   sco3.2v5*)
6237     lt_prog_cc_shlib='-belf'
6238     ;;
6239   esac
6240 fi
6241 if test -n "$lt_prog_cc_shlib"; then
6242   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6243 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6244   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6245   else
6246     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6247 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6248     lt_cv_prog_cc_can_build_shared=no
6249   fi
6250 fi
6251
6252
6253 #
6254 # Check to make sure the static flag actually works.
6255 #
6256 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6257 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6258 if test "${lt_prog_compiler_static_works+set}" = set; then
6259   echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261   lt_prog_compiler_static_works=no
6262    save_LDFLAGS="$LDFLAGS"
6263    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6264    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6265    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6266      # The compiler can only warn and ignore the option if not recognized
6267      # So say no if there are warnings
6268      if test -s conftest.err; then
6269        # Append any errors to the config.log.
6270        cat conftest.err 1>&5
6271      else
6272        lt_prog_compiler_static_works=yes
6273      fi
6274    fi
6275    $rm conftest*
6276    LDFLAGS="$save_LDFLAGS"
6277
6278 fi
6279 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6280 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6281
6282 if test x"$lt_prog_compiler_static_works" = xyes; then
6283     :
6284 else
6285     lt_prog_compiler_static=
6286 fi
6287
6288
6289
6290
6291 lt_prog_compiler_no_builtin_flag=
6292
6293 if test "$GCC" = yes; then
6294   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6295
6296
6297 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6298 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6299 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   lt_cv_prog_compiler_rtti_exceptions=no
6303   ac_outfile=conftest.$ac_objext
6304    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6305    lt_compiler_flag="-fno-rtti -fno-exceptions"
6306    # Insert the option either (1) after the last *FLAGS variable, or
6307    # (2) before a word containing "conftest.", or (3) at the end.
6308    # Note that $ac_compile itself does not contain backslashes and begins
6309    # with a dollar sign (not a hyphen), so the echo should work correctly.
6310    # The option is referenced via a variable to avoid confusing sed.
6311    lt_compile=`echo "$ac_compile" | $SED \
6312    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6314    -e 's:$: $lt_compiler_flag:'`
6315    (eval echo "\"\$as_me:6315: $lt_compile\"" >&5)
6316    (eval "$lt_compile" 2>conftest.err)
6317    ac_status=$?
6318    cat conftest.err >&5
6319    echo "$as_me:6319: \$? = $ac_status" >&5
6320    if (exit $ac_status) && test -s "$ac_outfile"; then
6321      # The compiler can only warn and ignore the option if not recognized
6322      # So say no if there are warnings
6323      if test ! -s conftest.err; then
6324        lt_cv_prog_compiler_rtti_exceptions=yes
6325      fi
6326    fi
6327    $rm conftest*
6328
6329 fi
6330 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6331 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6332
6333 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6334     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6335 else
6336     :
6337 fi
6338
6339 fi
6340
6341 lt_prog_compiler_wl=
6342 lt_prog_compiler_pic=
6343 lt_prog_compiler_static=
6344
6345 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6346 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6347
6348   if test "$GCC" = yes; then
6349     lt_prog_compiler_wl='-Wl,'
6350     lt_prog_compiler_static='-static'
6351
6352     case $host_os in
6353       aix*)
6354       # All AIX code is PIC.
6355       if test "$host_cpu" = ia64; then
6356         # AIX 5 now supports IA64 processor
6357         lt_prog_compiler_static='-Bstatic'
6358       fi
6359       ;;
6360
6361     amigaos*)
6362       # FIXME: we need at least 68020 code to build shared libraries, but
6363       # adding the `-m68020' flag to GCC prevents building anything better,
6364       # like `-m68040'.
6365       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6366       ;;
6367
6368     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6369       # PIC is the default for these OSes.
6370       ;;
6371
6372     mingw* | pw32* | os2*)
6373       # This hack is so that the source file can tell whether it is being
6374       # built for inclusion in a dll (and should export symbols for example).
6375       lt_prog_compiler_pic='-DDLL_EXPORT'
6376       ;;
6377
6378     darwin* | rhapsody*)
6379       # PIC is the default on this platform
6380       # Common symbols not allowed in MH_DYLIB files
6381       lt_prog_compiler_pic='-fno-common'
6382       ;;
6383
6384     msdosdjgpp*)
6385       # Just because we use GCC doesn't mean we suddenly get shared libraries
6386       # on systems that don't support them.
6387       lt_prog_compiler_can_build_shared=no
6388       enable_shared=no
6389       ;;
6390
6391     sysv4*MP*)
6392       if test -d /usr/nec; then
6393         lt_prog_compiler_pic=-Kconform_pic
6394       fi
6395       ;;
6396
6397     hpux*)
6398       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6399       # not for PA HP-UX.
6400       case "$host_cpu" in
6401       hppa*64*|ia64*)
6402         # +Z the default
6403         ;;
6404       *)
6405         lt_prog_compiler_pic='-fPIC'
6406         ;;
6407       esac
6408       ;;
6409
6410     *)
6411       lt_prog_compiler_pic='-fPIC'
6412       ;;
6413     esac
6414   else
6415     # PORTME Check for flag to pass linker flags through the system compiler.
6416     case $host_os in
6417     aix*)
6418       lt_prog_compiler_wl='-Wl,'
6419       if test "$host_cpu" = ia64; then
6420         # AIX 5 now supports IA64 processor
6421         lt_prog_compiler_static='-Bstatic'
6422       else
6423         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6424       fi
6425       ;;
6426
6427     mingw* | pw32* | os2*)
6428       # This hack is so that the source file can tell whether it is being
6429       # built for inclusion in a dll (and should export symbols for example).
6430       lt_prog_compiler_pic='-DDLL_EXPORT'
6431       ;;
6432
6433     hpux9* | hpux10* | hpux11*)
6434       lt_prog_compiler_wl='-Wl,'
6435       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6436       # not for PA HP-UX.
6437       case "$host_cpu" in
6438       hppa*64*|ia64*)
6439         # +Z the default
6440         ;;
6441       *)
6442         lt_prog_compiler_pic='+Z'
6443         ;;
6444       esac
6445       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6446       lt_prog_compiler_static='${wl}-a ${wl}archive'
6447       ;;
6448
6449     irix5* | irix6* | nonstopux*)
6450       lt_prog_compiler_wl='-Wl,'
6451       # PIC (with -KPIC) is the default.
6452       lt_prog_compiler_static='-non_shared'
6453       ;;
6454
6455     newsos6)
6456       lt_prog_compiler_pic='-KPIC'
6457       lt_prog_compiler_static='-Bstatic'
6458       ;;
6459
6460     linux*)
6461       case $CC in
6462       icc* | ecc*)
6463         lt_prog_compiler_wl='-Wl,'
6464         lt_prog_compiler_pic='-KPIC'
6465         lt_prog_compiler_static='-static'
6466         ;;
6467       ccc*)
6468         lt_prog_compiler_wl='-Wl,'
6469         # All Alpha code is PIC.
6470         lt_prog_compiler_static='-non_shared'
6471         ;;
6472       esac
6473       ;;
6474
6475     osf3* | osf4* | osf5*)
6476       lt_prog_compiler_wl='-Wl,'
6477       # All OSF/1 code is PIC.
6478       lt_prog_compiler_static='-non_shared'
6479       ;;
6480
6481     sco3.2v5*)
6482       lt_prog_compiler_pic='-Kpic'
6483       lt_prog_compiler_static='-dn'
6484       ;;
6485
6486     solaris*)
6487       lt_prog_compiler_wl='-Wl,'
6488       lt_prog_compiler_pic='-KPIC'
6489       lt_prog_compiler_static='-Bstatic'
6490       ;;
6491
6492     sunos4*)
6493       lt_prog_compiler_wl='-Qoption ld '
6494       lt_prog_compiler_pic='-PIC'
6495       lt_prog_compiler_static='-Bstatic'
6496       ;;
6497
6498     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6499       lt_prog_compiler_wl='-Wl,'
6500       lt_prog_compiler_pic='-KPIC'
6501       lt_prog_compiler_static='-Bstatic'
6502       ;;
6503
6504     sysv4*MP*)
6505       if test -d /usr/nec ;then
6506         lt_prog_compiler_pic='-Kconform_pic'
6507         lt_prog_compiler_static='-Bstatic'
6508       fi
6509       ;;
6510
6511     uts4*)
6512       lt_prog_compiler_pic='-pic'
6513       lt_prog_compiler_static='-Bstatic'
6514       ;;
6515
6516     *)
6517       lt_prog_compiler_can_build_shared=no
6518       ;;
6519     esac
6520   fi
6521
6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6523 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6524
6525 #
6526 # Check to make sure the PIC flag actually works.
6527 #
6528 if test -n "$lt_prog_compiler_pic"; then
6529
6530 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6531 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6532 if test "${lt_prog_compiler_pic_works+set}" = set; then
6533   echo $ECHO_N "(cached) $ECHO_C" >&6
6534 else
6535   lt_prog_compiler_pic_works=no
6536   ac_outfile=conftest.$ac_objext
6537    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6538    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6539    # Insert the option either (1) after the last *FLAGS variable, or
6540    # (2) before a word containing "conftest.", or (3) at the end.
6541    # Note that $ac_compile itself does not contain backslashes and begins
6542    # with a dollar sign (not a hyphen), so the echo should work correctly.
6543    # The option is referenced via a variable to avoid confusing sed.
6544    lt_compile=`echo "$ac_compile" | $SED \
6545    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6546    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6547    -e 's:$: $lt_compiler_flag:'`
6548    (eval echo "\"\$as_me:6548: $lt_compile\"" >&5)
6549    (eval "$lt_compile" 2>conftest.err)
6550    ac_status=$?
6551    cat conftest.err >&5
6552    echo "$as_me:6552: \$? = $ac_status" >&5
6553    if (exit $ac_status) && test -s "$ac_outfile"; then
6554      # The compiler can only warn and ignore the option if not recognized
6555      # So say no if there are warnings
6556      if test ! -s conftest.err; then
6557        lt_prog_compiler_pic_works=yes
6558      fi
6559    fi
6560    $rm conftest*
6561
6562 fi
6563 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6564 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6565
6566 if test x"$lt_prog_compiler_pic_works" = xyes; then
6567     case $lt_prog_compiler_pic in
6568      "" | " "*) ;;
6569      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6570      esac
6571 else
6572     lt_prog_compiler_pic=
6573      lt_prog_compiler_can_build_shared=no
6574 fi
6575
6576 fi
6577 case "$host_os" in
6578   # For platforms which do not support PIC, -DPIC is meaningless:
6579   *djgpp*)
6580     lt_prog_compiler_pic=
6581     ;;
6582   *)
6583     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6584     ;;
6585 esac
6586
6587 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6588 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6590   echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592   lt_cv_prog_compiler_c_o=no
6593    $rm -r conftest 2>/dev/null
6594    mkdir conftest
6595    cd conftest
6596    mkdir out
6597    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6598
6599    lt_compiler_flag="-o out/conftest2.$ac_objext"
6600    # Insert the option either (1) after the last *FLAGS variable, or
6601    # (2) before a word containing "conftest.", or (3) at the end.
6602    # Note that $ac_compile itself does not contain backslashes and begins
6603    # with a dollar sign (not a hyphen), so the echo should work correctly.
6604    lt_compile=`echo "$ac_compile" | $SED \
6605    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6607    -e 's:$: $lt_compiler_flag:'`
6608    (eval echo "\"\$as_me:6608: $lt_compile\"" >&5)
6609    (eval "$lt_compile" 2>out/conftest.err)
6610    ac_status=$?
6611    cat out/conftest.err >&5
6612    echo "$as_me:6612: \$? = $ac_status" >&5
6613    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6614    then
6615      # The compiler can only warn and ignore the option if not recognized
6616      # So say no if there are warnings
6617      if test ! -s out/conftest.err; then
6618        lt_cv_prog_compiler_c_o=yes
6619      fi
6620    fi
6621    chmod u+w .
6622    $rm conftest*
6623    # SGI C++ compiler will create directory out/ii_files/ for
6624    # template instantiation
6625    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6626    $rm out/* && rmdir out
6627    cd ..
6628    rmdir conftest
6629    $rm conftest*
6630
6631 fi
6632 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6633 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6634
6635
6636 hard_links="nottested"
6637 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6638   # do not overwrite the value of need_locks provided by the user
6639   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6640 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6641   hard_links=yes
6642   $rm conftest*
6643   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6644   touch conftest.a
6645   ln conftest.a conftest.b 2>&5 || hard_links=no
6646   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6647   echo "$as_me:$LINENO: result: $hard_links" >&5
6648 echo "${ECHO_T}$hard_links" >&6
6649   if test "$hard_links" = no; then
6650     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6651 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6652     need_locks=warn
6653   fi
6654 else
6655   need_locks=no
6656 fi
6657
6658 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6659 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6660
6661   runpath_var=
6662   allow_undefined_flag=
6663   enable_shared_with_static_runtimes=no
6664   archive_cmds=
6665   archive_expsym_cmds=
6666   old_archive_From_new_cmds=
6667   old_archive_from_expsyms_cmds=
6668   export_dynamic_flag_spec=
6669   whole_archive_flag_spec=
6670   thread_safe_flag_spec=
6671   hardcode_libdir_flag_spec=
6672   hardcode_libdir_flag_spec_ld=
6673   hardcode_libdir_separator=
6674   hardcode_direct=no
6675   hardcode_minus_L=no
6676   hardcode_shlibpath_var=unsupported
6677   link_all_deplibs=unknown
6678   hardcode_automatic=no
6679   module_cmds=
6680   module_expsym_cmds=
6681   always_export_symbols=no
6682   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6683   # include_expsyms should be a list of space-separated symbols to be *always*
6684   # included in the symbol list
6685   include_expsyms=
6686   # exclude_expsyms can be an extended regexp of symbols to exclude
6687   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6688   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6689   # as well as any symbol that contains `d'.
6690   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6691   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6692   # platforms (ab)use it in PIC code, but their linkers get confused if
6693   # the symbol is explicitly referenced.  Since portable code cannot
6694   # rely on this symbol name, it's probably fine to never include it in
6695   # preloaded symbol tables.
6696   extract_expsyms_cmds=
6697
6698   case $host_os in
6699   cygwin* | mingw* | pw32*)
6700     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6701     # When not using gcc, we currently assume that we are using
6702     # Microsoft Visual C++.
6703     if test "$GCC" != yes; then
6704       with_gnu_ld=no
6705     fi
6706     ;;
6707   openbsd*)
6708     with_gnu_ld=no
6709     ;;
6710   esac
6711
6712   ld_shlibs=yes
6713   if test "$with_gnu_ld" = yes; then
6714     # If archive_cmds runs LD, not CC, wlarc should be empty
6715     wlarc='${wl}'
6716
6717     # See if GNU ld supports shared libraries.
6718     case $host_os in
6719     aix3* | aix4* | aix5*)
6720       # On AIX/PPC, the GNU linker is very broken
6721       if test "$host_cpu" != ia64; then
6722         ld_shlibs=no
6723         cat <<EOF 1>&2
6724
6725 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6726 *** to be unable to reliably create shared libraries on AIX.
6727 *** Therefore, libtool is disabling shared libraries support.  If you
6728 *** really care for shared libraries, you may want to modify your PATH
6729 *** so that a non-GNU linker is found, and then restart.
6730
6731 EOF
6732       fi
6733       ;;
6734
6735     amigaos*)
6736       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)'
6737       hardcode_libdir_flag_spec='-L$libdir'
6738       hardcode_minus_L=yes
6739
6740       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6741       # that the semantics of dynamic libraries on AmigaOS, at least up
6742       # to version 4, is to share data among multiple programs linked
6743       # with the same dynamic library.  Since this doesn't match the
6744       # behavior of shared libraries on other platforms, we can't use
6745       # them.
6746       ld_shlibs=no
6747       ;;
6748
6749     beos*)
6750       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6751         allow_undefined_flag=unsupported
6752         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6753         # support --undefined.  This deserves some investigation.  FIXME
6754         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6755       else
6756         ld_shlibs=no
6757       fi
6758       ;;
6759
6760     cygwin* | mingw* | pw32*)
6761       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6762       # as there is no search path for DLLs.
6763       hardcode_libdir_flag_spec='-L$libdir'
6764       allow_undefined_flag=unsupported
6765       always_export_symbols=no
6766       enable_shared_with_static_runtimes=yes
6767       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6768
6769       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6770         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6771         # If the export-symbols file already is a .def file (1st line
6772         # is EXPORTS), use it as is; otherwise, prepend...
6773         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6774           cp $export_symbols $output_objdir/$soname.def;
6775         else
6776           echo EXPORTS > $output_objdir/$soname.def;
6777           cat $export_symbols >> $output_objdir/$soname.def;
6778         fi~
6779         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6780       else
6781         ld_shlibs=no
6782       fi
6783       ;;
6784
6785     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6786       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6787         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6788         wlarc=
6789       else
6790         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6791         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6792       fi
6793       ;;
6794
6795     solaris* | sysv5*)
6796       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6797         ld_shlibs=no
6798         cat <<EOF 1>&2
6799
6800 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6801 *** create shared libraries on Solaris systems.  Therefore, libtool
6802 *** is disabling shared libraries support.  We urge you to upgrade GNU
6803 *** binutils to release 2.9.1 or newer.  Another option is to modify
6804 *** your PATH or compiler configuration so that the native linker is
6805 *** used, and then restart.
6806
6807 EOF
6808       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6809         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6810         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6811       else
6812         ld_shlibs=no
6813       fi
6814       ;;
6815
6816     sunos4*)
6817       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6818       wlarc=
6819       hardcode_direct=yes
6820       hardcode_shlibpath_var=no
6821       ;;
6822
6823   linux*)
6824     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6825         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6826         archive_cmds="$tmp_archive_cmds"
6827       supports_anon_versioning=no
6828       case `$LD -v 2>/dev/null` in
6829         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6830         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6831         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6832         *\ 2.11.*) ;; # other 2.11 versions
6833         *) supports_anon_versioning=yes ;;
6834       esac
6835       if test $supports_anon_versioning = yes; then
6836         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6838 $echo "local: *; };" >> $output_objdir/$libname.ver~
6839         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6840       else
6841         archive_expsym_cmds="$tmp_archive_cmds"
6842       fi
6843       link_all_deplibs=no
6844     else
6845       ld_shlibs=no
6846     fi
6847     ;;
6848
6849     *)
6850       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6851         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6852         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6853       else
6854         ld_shlibs=no
6855       fi
6856       ;;
6857     esac
6858
6859     if test "$ld_shlibs" = yes; then
6860       runpath_var=LD_RUN_PATH
6861       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6862       export_dynamic_flag_spec='${wl}--export-dynamic'
6863       # ancient GNU ld didn't support --whole-archive et. al.
6864       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6865         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6866       else
6867         whole_archive_flag_spec=
6868       fi
6869     fi
6870   else
6871     # PORTME fill in a description of your system's linker (not GNU ld)
6872     case $host_os in
6873     aix3*)
6874       allow_undefined_flag=unsupported
6875       always_export_symbols=yes
6876       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'
6877       # Note: this linker hardcodes the directories in LIBPATH if there
6878       # are no directories specified by -L.
6879       hardcode_minus_L=yes
6880       if test "$GCC" = yes && test -z "$link_static_flag"; then
6881         # Neither direct hardcoding nor static linking is supported with a
6882         # broken collect2.
6883         hardcode_direct=unsupported
6884       fi
6885       ;;
6886
6887     aix4* | aix5*)
6888       if test "$host_cpu" = ia64; then
6889         # On IA64, the linker does run time linking by default, so we don't
6890         # have to do anything special.
6891         aix_use_runtimelinking=no
6892         exp_sym_flag='-Bexport'
6893         no_entry_flag=""
6894       else
6895         # If we're using GNU nm, then we don't want the "-C" option.
6896         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6897         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6898           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'
6899         else
6900           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'
6901         fi
6902         aix_use_runtimelinking=no
6903
6904         # Test if we are trying to use run time linking or normal
6905         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6906         # need to do runtime linking.
6907         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6908           for ld_flag in $LDFLAGS; do
6909           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6910             aix_use_runtimelinking=yes
6911             break
6912           fi
6913           done
6914         esac
6915
6916         exp_sym_flag='-bexport'
6917         no_entry_flag='-bnoentry'
6918       fi
6919
6920       # When large executables or shared objects are built, AIX ld can
6921       # have problems creating the table of contents.  If linking a library
6922       # or program results in "error TOC overflow" add -mminimal-toc to
6923       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6924       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6925
6926       archive_cmds=''
6927       hardcode_direct=yes
6928       hardcode_libdir_separator=':'
6929       link_all_deplibs=yes
6930
6931       if test "$GCC" = yes; then
6932         case $host_os in aix4.012|aix4.012.*)
6933         # We only want to do this on AIX 4.2 and lower, the check
6934         # below for broken collect2 doesn't work under 4.3+
6935           collect2name=`${CC} -print-prog-name=collect2`
6936           if test -f "$collect2name" && \
6937            strings "$collect2name" | grep resolve_lib_name >/dev/null
6938           then
6939           # We have reworked collect2
6940           hardcode_direct=yes
6941           else
6942           # We have old collect2
6943           hardcode_direct=unsupported
6944           # It fails to find uninstalled libraries when the uninstalled
6945           # path is not listed in the libpath.  Setting hardcode_minus_L
6946           # to unsupported forces relinking
6947           hardcode_minus_L=yes
6948           hardcode_libdir_flag_spec='-L$libdir'
6949           hardcode_libdir_separator=
6950           fi
6951         esac
6952         shared_flag='-shared'
6953       else
6954         # not using gcc
6955         if test "$host_cpu" = ia64; then
6956         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6957         # chokes on -Wl,-G. The following line is correct:
6958           shared_flag='-G'
6959         else
6960         if test "$aix_use_runtimelinking" = yes; then
6961             shared_flag='${wl}-G'
6962           else
6963             shared_flag='${wl}-bM:SRE'
6964         fi
6965         fi
6966       fi
6967
6968       # It seems that -bexpall does not export symbols beginning with
6969       # underscore (_), so it is better to generate a list of symbols to export.
6970       always_export_symbols=yes
6971       if test "$aix_use_runtimelinking" = yes; then
6972         # Warning - without using the other runtime loading flags (-brtl),
6973         # -berok will link without error, but may produce a broken library.
6974         allow_undefined_flag='-berok'
6975        # Determine the default libpath from the value encoded in an empty executable.
6976        cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h.  */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h.  */
6982
6983 int
6984 main ()
6985 {
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest.$ac_objext conftest$ac_exeext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6993   (eval $ac_link) 2>conftest.er1
6994   ac_status=$?
6995   grep -v '^ *+' conftest.er1 >conftest.err
6996   rm -f conftest.er1
6997   cat conftest.err >&5
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); } &&
7000          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002   (eval $ac_try) 2>&5
7003   ac_status=$?
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); }; } &&
7006          { ac_try='test -s conftest$ac_exeext'
7007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008   (eval $ac_try) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); }; }; then
7012
7013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7014 }'`
7015 # Check for a 64-bit object if we didn't find anything.
7016 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; }
7017 }'`; fi
7018 else
7019   echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022 fi
7023 rm -f conftest.err conftest.$ac_objext \
7024       conftest$ac_exeext conftest.$ac_ext
7025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7026
7027        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7028         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"
7029        else
7030         if test "$host_cpu" = ia64; then
7031           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7032           allow_undefined_flag="-z nodefs"
7033           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"
7034         else
7035          # Determine the default libpath from the value encoded in an empty executable.
7036          cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042
7043 int
7044 main ()
7045 {
7046
7047   ;
7048   return 0;
7049 }
7050 _ACEOF
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053   (eval $ac_link) 2>conftest.er1
7054   ac_status=$?
7055   grep -v '^ *+' conftest.er1 >conftest.err
7056   rm -f conftest.er1
7057   cat conftest.err >&5
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } &&
7060          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062   (eval $ac_try) 2>&5
7063   ac_status=$?
7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065   (exit $ac_status); }; } &&
7066          { ac_try='test -s conftest$ac_exeext'
7067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068   (eval $ac_try) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); }; }; then
7072
7073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7074 }'`
7075 # Check for a 64-bit object if we didn't find anything.
7076 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; }
7077 }'`; fi
7078 else
7079   echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 fi
7083 rm -f conftest.err conftest.$ac_objext \
7084       conftest$ac_exeext conftest.$ac_ext
7085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7086
7087          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7088           # Warning - without using the other run time loading flags,
7089           # -berok will link without error, but may produce a broken library.
7090           no_undefined_flag=' ${wl}-bernotok'
7091           allow_undefined_flag=' ${wl}-berok'
7092           # -bexpall does not export symbols beginning with underscore (_)
7093           always_export_symbols=yes
7094           # Exported symbols can be pulled into shared objects from archives
7095           whole_archive_flag_spec=' '
7096           archive_cmds_need_lc=yes
7097           # This is similar to how AIX traditionally builds it's shared libraries.
7098           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'
7099         fi
7100       fi
7101       ;;
7102
7103     amigaos*)
7104       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)'
7105       hardcode_libdir_flag_spec='-L$libdir'
7106       hardcode_minus_L=yes
7107       # see comment about different semantics on the GNU ld section
7108       ld_shlibs=no
7109       ;;
7110
7111     bsdi4*)
7112       export_dynamic_flag_spec=-rdynamic
7113       ;;
7114
7115     cygwin* | mingw* | pw32*)
7116       # When not using gcc, we currently assume that we are using
7117       # Microsoft Visual C++.
7118       # hardcode_libdir_flag_spec is actually meaningless, as there is
7119       # no search path for DLLs.
7120       hardcode_libdir_flag_spec=' '
7121       allow_undefined_flag=unsupported
7122       # Tell ltmain to make .lib files, not .a files.
7123       libext=lib
7124       # Tell ltmain to make .dll files, not .so files.
7125       shrext_cmds=".dll"
7126       # FIXME: Setting linknames here is a bad hack.
7127       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7128       # The linker will automatically build a .lib file if we build a DLL.
7129       old_archive_From_new_cmds='true'
7130       # FIXME: Should let the user specify the lib program.
7131       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7132       fix_srcfile_path='`cygpath -w "$srcfile"`'
7133       enable_shared_with_static_runtimes=yes
7134       ;;
7135
7136     darwin* | rhapsody*)
7137     if test "$GXX" = yes ; then
7138       archive_cmds_need_lc=no
7139       case "$host_os" in
7140       rhapsody* | darwin1.[012])
7141         allow_undefined_flag='-undefined suppress'
7142         ;;
7143       *) # Darwin 1.3 on
7144       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7145         allow_undefined_flag='-flat_namespace -undefined suppress'
7146       else
7147         case ${MACOSX_DEPLOYMENT_TARGET} in
7148           10.[012])
7149             allow_undefined_flag='-flat_namespace -undefined suppress'
7150             ;;
7151           10.*)
7152             allow_undefined_flag='-undefined dynamic_lookup'
7153             ;;
7154         esac
7155       fi
7156         ;;
7157       esac
7158         lt_int_apple_cc_single_mod=no
7159         output_verbose_link_cmd='echo'
7160         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7161           lt_int_apple_cc_single_mod=yes
7162         fi
7163         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7164           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7165         else
7166         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7167       fi
7168       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7169       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7170         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7171           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7172         else
7173           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7174         fi
7175           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}'
7176       hardcode_direct=no
7177       hardcode_automatic=yes
7178       hardcode_shlibpath_var=unsupported
7179       whole_archive_flag_spec='-all_load $convenience'
7180       link_all_deplibs=yes
7181     else
7182       ld_shlibs=no
7183     fi
7184       ;;
7185
7186     dgux*)
7187       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7188       hardcode_libdir_flag_spec='-L$libdir'
7189       hardcode_shlibpath_var=no
7190       ;;
7191
7192     freebsd1*)
7193       ld_shlibs=no
7194       ;;
7195
7196     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7197     # support.  Future versions do this automatically, but an explicit c++rt0.o
7198     # does not break anything, and helps significantly (at the cost of a little
7199     # extra space).
7200     freebsd2.2*)
7201       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7202       hardcode_libdir_flag_spec='-R$libdir'
7203       hardcode_direct=yes
7204       hardcode_shlibpath_var=no
7205       ;;
7206
7207     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7208     freebsd2*)
7209       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7210       hardcode_direct=yes
7211       hardcode_minus_L=yes
7212       hardcode_shlibpath_var=no
7213       ;;
7214
7215     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7216     freebsd* | kfreebsd*-gnu)
7217       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7218       hardcode_libdir_flag_spec='-R$libdir'
7219       hardcode_direct=yes
7220       hardcode_shlibpath_var=no
7221       ;;
7222
7223     hpux9*)
7224       if test "$GCC" = yes; then
7225         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'
7226       else
7227         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'
7228       fi
7229       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7230       hardcode_libdir_separator=:
7231       hardcode_direct=yes
7232
7233       # hardcode_minus_L: Not really in the search PATH,
7234       # but as the default location of the library.
7235       hardcode_minus_L=yes
7236       export_dynamic_flag_spec='${wl}-E'
7237       ;;
7238
7239     hpux10* | hpux11*)
7240       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7241         case "$host_cpu" in
7242         hppa*64*|ia64*)
7243           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7244           ;;
7245         *)
7246           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7247           ;;
7248         esac
7249       else
7250         case "$host_cpu" in
7251         hppa*64*|ia64*)
7252           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7253           ;;
7254         *)
7255           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7256           ;;
7257         esac
7258       fi
7259       if test "$with_gnu_ld" = no; then
7260         case "$host_cpu" in
7261         hppa*64*)
7262           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7263           hardcode_libdir_flag_spec_ld='+b $libdir'
7264           hardcode_libdir_separator=:
7265           hardcode_direct=no
7266           hardcode_shlibpath_var=no
7267           ;;
7268         ia64*)
7269           hardcode_libdir_flag_spec='-L$libdir'
7270           hardcode_direct=no
7271           hardcode_shlibpath_var=no
7272
7273           # hardcode_minus_L: Not really in the search PATH,
7274           # but as the default location of the library.
7275           hardcode_minus_L=yes
7276           ;;
7277         *)
7278           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7279           hardcode_libdir_separator=:
7280           hardcode_direct=yes
7281           export_dynamic_flag_spec='${wl}-E'
7282
7283           # hardcode_minus_L: Not really in the search PATH,
7284           # but as the default location of the library.
7285           hardcode_minus_L=yes
7286           ;;
7287         esac
7288       fi
7289       ;;
7290
7291     irix5* | irix6* | nonstopux*)
7292       if test "$GCC" = yes; then
7293         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'
7294       else
7295         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'
7296         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7297       fi
7298       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7299       hardcode_libdir_separator=:
7300       link_all_deplibs=yes
7301       ;;
7302
7303     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7304       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7305         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7306       else
7307         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7308       fi
7309       hardcode_libdir_flag_spec='-R$libdir'
7310       hardcode_direct=yes
7311       hardcode_shlibpath_var=no
7312       ;;
7313
7314     newsos6)
7315       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316       hardcode_direct=yes
7317       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7318       hardcode_libdir_separator=:
7319       hardcode_shlibpath_var=no
7320       ;;
7321
7322     openbsd*)
7323       hardcode_direct=yes
7324       hardcode_shlibpath_var=no
7325       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7326         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7327         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7328         export_dynamic_flag_spec='${wl}-E'
7329       else
7330        case $host_os in
7331          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7332            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7333            hardcode_libdir_flag_spec='-R$libdir'
7334            ;;
7335          *)
7336            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7337            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7338            ;;
7339        esac
7340       fi
7341       ;;
7342
7343     os2*)
7344       hardcode_libdir_flag_spec='-L$libdir'
7345       hardcode_minus_L=yes
7346       allow_undefined_flag=unsupported
7347       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'
7348       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7349       ;;
7350
7351     osf3*)
7352       if test "$GCC" = yes; then
7353         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7354         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'
7355       else
7356         allow_undefined_flag=' -expect_unresolved \*'
7357         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'
7358       fi
7359       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7360       hardcode_libdir_separator=:
7361       ;;
7362
7363     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7364       if test "$GCC" = yes; then
7365         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7366         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'
7367         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7368       else
7369         allow_undefined_flag=' -expect_unresolved \*'
7370         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'
7371         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7372         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7373
7374         # Both c and cxx compiler support -rpath directly
7375         hardcode_libdir_flag_spec='-rpath $libdir'
7376       fi
7377       hardcode_libdir_separator=:
7378       ;;
7379
7380     sco3.2v5*)
7381       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7382       hardcode_shlibpath_var=no
7383       export_dynamic_flag_spec='${wl}-Bexport'
7384       runpath_var=LD_RUN_PATH
7385       hardcode_runpath_var=yes
7386       ;;
7387
7388     solaris*)
7389       no_undefined_flag=' -z text'
7390       if test "$GCC" = yes; then
7391         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7392         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7393           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7394       else
7395         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7396         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7397         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7398       fi
7399       hardcode_libdir_flag_spec='-R$libdir'
7400       hardcode_shlibpath_var=no
7401       case $host_os in
7402       solaris2.[0-5] | solaris2.[0-5].*) ;;
7403       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7404         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7405       esac
7406       link_all_deplibs=yes
7407       ;;
7408
7409     sunos4*)
7410       if test "x$host_vendor" = xsequent; then
7411         # Use $CC to link under sequent, because it throws in some extra .o
7412         # files that make .init and .fini sections work.
7413         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7414       else
7415         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7416       fi
7417       hardcode_libdir_flag_spec='-L$libdir'
7418       hardcode_direct=yes
7419       hardcode_minus_L=yes
7420       hardcode_shlibpath_var=no
7421       ;;
7422
7423     sysv4)
7424       case $host_vendor in
7425         sni)
7426           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7427           hardcode_direct=yes # is this really true???
7428         ;;
7429         siemens)
7430           ## LD is ld it makes a PLAMLIB
7431           ## CC just makes a GrossModule.
7432           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7433           reload_cmds='$CC -r -o $output$reload_objs'
7434           hardcode_direct=no
7435         ;;
7436         motorola)
7437           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7438           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7439         ;;
7440       esac
7441       runpath_var='LD_RUN_PATH'
7442       hardcode_shlibpath_var=no
7443       ;;
7444
7445     sysv4.3*)
7446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7447       hardcode_shlibpath_var=no
7448       export_dynamic_flag_spec='-Bexport'
7449       ;;
7450
7451     sysv4*MP*)
7452       if test -d /usr/nec; then
7453         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454         hardcode_shlibpath_var=no
7455         runpath_var=LD_RUN_PATH
7456         hardcode_runpath_var=yes
7457         ld_shlibs=yes
7458       fi
7459       ;;
7460
7461     sysv4.2uw2*)
7462       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7463       hardcode_direct=yes
7464       hardcode_minus_L=no
7465       hardcode_shlibpath_var=no
7466       hardcode_runpath_var=yes
7467       runpath_var=LD_RUN_PATH
7468       ;;
7469
7470    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7471       no_undefined_flag='${wl}-z ${wl}text'
7472       if test "$GCC" = yes; then
7473         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7474       else
7475         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7476       fi
7477       runpath_var='LD_RUN_PATH'
7478       hardcode_shlibpath_var=no
7479       ;;
7480
7481     sysv5*)
7482       no_undefined_flag=' -z text'
7483       # $CC -shared without GNU ld will not create a library from C++
7484       # object files and a static libstdc++, better avoid it by now
7485       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7486       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7487                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7488       hardcode_libdir_flag_spec=
7489       hardcode_shlibpath_var=no
7490       runpath_var='LD_RUN_PATH'
7491       ;;
7492
7493     uts4*)
7494       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7495       hardcode_libdir_flag_spec='-L$libdir'
7496       hardcode_shlibpath_var=no
7497       ;;
7498
7499     *)
7500       ld_shlibs=no
7501       ;;
7502     esac
7503   fi
7504
7505 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7506 echo "${ECHO_T}$ld_shlibs" >&6
7507 test "$ld_shlibs" = no && can_build_shared=no
7508
7509 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7510 if test "$GCC" = yes; then
7511   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7512 fi
7513
7514 #
7515 # Do we need to explicitly link libc?
7516 #
7517 case "x$archive_cmds_need_lc" in
7518 x|xyes)
7519   # Assume -lc should be added
7520   archive_cmds_need_lc=yes
7521
7522   if test "$enable_shared" = yes && test "$GCC" = yes; then
7523     case $archive_cmds in
7524     *'~'*)
7525       # FIXME: we may have to deal with multi-command sequences.
7526       ;;
7527     '$CC '*)
7528       # Test whether the compiler implicitly links with -lc since on some
7529       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7530       # to ld, don't add -lc before -lgcc.
7531       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7532 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7533       $rm conftest*
7534       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7535
7536       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7537   (eval $ac_compile) 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); } 2>conftest.err; then
7541         soname=conftest
7542         lib=conftest
7543         libobjs=conftest.$ac_objext
7544         deplibs=
7545         wl=$lt_prog_compiler_wl
7546         compiler_flags=-v
7547         linker_flags=-v
7548         verstring=
7549         output_objdir=.
7550         libname=conftest
7551         lt_save_allow_undefined_flag=$allow_undefined_flag
7552         allow_undefined_flag=
7553         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7554   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }
7558         then
7559           archive_cmds_need_lc=no
7560         else
7561           archive_cmds_need_lc=yes
7562         fi
7563         allow_undefined_flag=$lt_save_allow_undefined_flag
7564       else
7565         cat conftest.err 1>&5
7566       fi
7567       $rm conftest*
7568       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7569 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7570       ;;
7571     esac
7572   fi
7573   ;;
7574 esac
7575
7576 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7577 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7578 library_names_spec=
7579 libname_spec='lib$name'
7580 soname_spec=
7581 shrext_cmds=".so"
7582 postinstall_cmds=
7583 postuninstall_cmds=
7584 finish_cmds=
7585 finish_eval=
7586 shlibpath_var=
7587 shlibpath_overrides_runpath=unknown
7588 version_type=none
7589 dynamic_linker="$host_os ld.so"
7590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7591 if test "$GCC" = yes; then
7592   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7593   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7594     # if the path contains ";" then we assume it to be the separator
7595     # otherwise default to the standard path separator (i.e. ":") - it is
7596     # assumed that no part of a normal pathname contains ";" but that should
7597     # okay in the real world where ";" in dirpaths is itself problematic.
7598     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7599   else
7600     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7601   fi
7602 else
7603   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7604 fi
7605 need_lib_prefix=unknown
7606 hardcode_into_libs=no
7607
7608 # when you set need_version to no, make sure it does not cause -set_version
7609 # flags to be left without arguments
7610 need_version=unknown
7611
7612 case $host_os in
7613 aix3*)
7614   version_type=linux
7615   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7616   shlibpath_var=LIBPATH
7617
7618   # AIX 3 has no versioning support, so we append a major version to the name.
7619   soname_spec='${libname}${release}${shared_ext}$major'
7620   ;;
7621
7622 aix4* | aix5*)
7623   version_type=linux
7624   need_lib_prefix=no
7625   need_version=no
7626   hardcode_into_libs=yes
7627   if test "$host_cpu" = ia64; then
7628     # AIX 5 supports IA64
7629     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7630     shlibpath_var=LD_LIBRARY_PATH
7631   else
7632     # With GCC up to 2.95.x, collect2 would create an import file
7633     # for dependence libraries.  The import file would start with
7634     # the line `#! .'.  This would cause the generated library to
7635     # depend on `.', always an invalid library.  This was fixed in
7636     # development snapshots of GCC prior to 3.0.
7637     case $host_os in
7638       aix4 | aix4.[01] | aix4.[01].*)
7639       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7640            echo ' yes '
7641            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7642         :
7643       else
7644         can_build_shared=no
7645       fi
7646       ;;
7647     esac
7648     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7649     # soname into executable. Probably we can add versioning support to
7650     # collect2, so additional links can be useful in future.
7651     if test "$aix_use_runtimelinking" = yes; then
7652       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7653       # instead of lib<name>.a to let people know that these are not
7654       # typical AIX shared libraries.
7655       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7656     else
7657       # We preserve .a as extension for shared libraries through AIX4.2
7658       # and later when we are not doing run time linking.
7659       library_names_spec='${libname}${release}.a $libname.a'
7660       soname_spec='${libname}${release}${shared_ext}$major'
7661     fi
7662     shlibpath_var=LIBPATH
7663   fi
7664   ;;
7665
7666 amigaos*)
7667   library_names_spec='$libname.ixlibrary $libname.a'
7668   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7669   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'
7670   ;;
7671
7672 beos*)
7673   library_names_spec='${libname}${shared_ext}'
7674   dynamic_linker="$host_os ld.so"
7675   shlibpath_var=LIBRARY_PATH
7676   ;;
7677
7678 bsdi4*)
7679   version_type=linux
7680   need_version=no
7681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7682   soname_spec='${libname}${release}${shared_ext}$major'
7683   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7684   shlibpath_var=LD_LIBRARY_PATH
7685   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7686   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7687   # the default ld.so.conf also contains /usr/contrib/lib and
7688   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7689   # libtool to hard-code these into programs
7690   ;;
7691
7692 cygwin* | mingw* | pw32*)
7693   version_type=windows
7694   shrext_cmds=".dll"
7695   need_version=no
7696   need_lib_prefix=no
7697
7698   case $GCC,$host_os in
7699   yes,cygwin* | yes,mingw* | yes,pw32*)
7700     library_names_spec='$libname.dll.a'
7701     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7702     postinstall_cmds='base_file=`basename \${file}`~
7703       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7704       dldir=$destdir/`dirname \$dlpath`~
7705       test -d \$dldir || mkdir -p \$dldir~
7706       $install_prog $dir/$dlname \$dldir/$dlname'
7707     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7708       dlpath=$dir/\$dldll~
7709        $rm \$dlpath'
7710     shlibpath_overrides_runpath=yes
7711
7712     case $host_os in
7713     cygwin*)
7714       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7715       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7716       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7717       ;;
7718     mingw*)
7719       # MinGW DLLs use traditional 'lib' prefix
7720       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7721       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7722       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7723         # It is most probably a Windows format PATH printed by
7724         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7725         # path with ; separators, and with drive letters. We can handle the
7726         # drive letters (cygwin fileutils understands them), so leave them,
7727         # especially as we might pass files found there to a mingw objdump,
7728         # which wouldn't understand a cygwinified path. Ahh.
7729         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7730       else
7731         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7732       fi
7733       ;;
7734     pw32*)
7735       # pw32 DLLs use 'pw' prefix rather than 'lib'
7736       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7737       ;;
7738     esac
7739     ;;
7740
7741   *)
7742     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7743     ;;
7744   esac
7745   dynamic_linker='Win32 ld.exe'
7746   # FIXME: first we should search . and the directory the executable is in
7747   shlibpath_var=PATH
7748   ;;
7749
7750 darwin* | rhapsody*)
7751   dynamic_linker="$host_os dyld"
7752   version_type=darwin
7753   need_lib_prefix=no
7754   need_version=no
7755   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7756   soname_spec='${libname}${release}${major}$shared_ext'
7757   shlibpath_overrides_runpath=yes
7758   shlibpath_var=DYLD_LIBRARY_PATH
7759   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7760   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7761   if test "$GCC" = yes; then
7762     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"`
7763   else
7764     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7765   fi
7766   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7767   ;;
7768
7769 dgux*)
7770   version_type=linux
7771   need_lib_prefix=no
7772   need_version=no
7773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7774   soname_spec='${libname}${release}${shared_ext}$major'
7775   shlibpath_var=LD_LIBRARY_PATH
7776   ;;
7777
7778 freebsd1*)
7779   dynamic_linker=no
7780   ;;
7781
7782 kfreebsd*-gnu)
7783   version_type=linux
7784   need_lib_prefix=no
7785   need_version=no
7786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7787   soname_spec='${libname}${release}${shared_ext}$major'
7788   shlibpath_var=LD_LIBRARY_PATH
7789   shlibpath_overrides_runpath=no
7790   hardcode_into_libs=yes
7791   dynamic_linker='GNU ld.so'
7792   ;;
7793
7794 freebsd*)
7795   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7796   version_type=freebsd-$objformat
7797   case $version_type in
7798     freebsd-elf*)
7799       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7800       need_version=no
7801       need_lib_prefix=no
7802       ;;
7803     freebsd-*)
7804       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7805       need_version=yes
7806       ;;
7807   esac
7808   shlibpath_var=LD_LIBRARY_PATH
7809   case $host_os in
7810   freebsd2*)
7811     shlibpath_overrides_runpath=yes
7812     ;;
7813   freebsd3.01* | freebsdelf3.01*)
7814     shlibpath_overrides_runpath=yes
7815     hardcode_into_libs=yes
7816     ;;
7817   *) # from 3.2 on
7818     shlibpath_overrides_runpath=no
7819     hardcode_into_libs=yes
7820     ;;
7821   esac
7822   ;;
7823
7824 gnu*)
7825   version_type=linux
7826   need_lib_prefix=no
7827   need_version=no
7828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7829   soname_spec='${libname}${release}${shared_ext}$major'
7830   shlibpath_var=LD_LIBRARY_PATH
7831   hardcode_into_libs=yes
7832   ;;
7833
7834 hpux9* | hpux10* | hpux11*)
7835   # Give a soname corresponding to the major version so that dld.sl refuses to
7836   # link against other versions.
7837   version_type=sunos
7838   need_lib_prefix=no
7839   need_version=no
7840   case "$host_cpu" in
7841   ia64*)
7842     shrext_cmds='.so'
7843     hardcode_into_libs=yes
7844     dynamic_linker="$host_os dld.so"
7845     shlibpath_var=LD_LIBRARY_PATH
7846     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7848     soname_spec='${libname}${release}${shared_ext}$major'
7849     if test "X$HPUX_IA64_MODE" = X32; then
7850       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7851     else
7852       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7853     fi
7854     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7855     ;;
7856    hppa*64*)
7857      shrext_cmds='.sl'
7858      hardcode_into_libs=yes
7859      dynamic_linker="$host_os dld.sl"
7860      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7861      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7862      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863      soname_spec='${libname}${release}${shared_ext}$major'
7864      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7865      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7866      ;;
7867    *)
7868     shrext_cmds='.sl'
7869     dynamic_linker="$host_os dld.sl"
7870     shlibpath_var=SHLIB_PATH
7871     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7873     soname_spec='${libname}${release}${shared_ext}$major'
7874     ;;
7875   esac
7876   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7877   postinstall_cmds='chmod 555 $lib'
7878   ;;
7879
7880 irix5* | irix6* | nonstopux*)
7881   case $host_os in
7882     nonstopux*) version_type=nonstopux ;;
7883     *)
7884         if test "$lt_cv_prog_gnu_ld" = yes; then
7885                 version_type=linux
7886         else
7887                 version_type=irix
7888         fi ;;
7889   esac
7890   need_lib_prefix=no
7891   need_version=no
7892   soname_spec='${libname}${release}${shared_ext}$major'
7893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7894   case $host_os in
7895   irix5* | nonstopux*)
7896     libsuff= shlibsuff=
7897     ;;
7898   *)
7899     case $LD in # libtool.m4 will add one of these switches to LD
7900     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7901       libsuff= shlibsuff= libmagic=32-bit;;
7902     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7903       libsuff=32 shlibsuff=N32 libmagic=N32;;
7904     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7905       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7906     *) libsuff= shlibsuff= libmagic=never-match;;
7907     esac
7908     ;;
7909   esac
7910   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7911   shlibpath_overrides_runpath=no
7912   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7913   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7914   hardcode_into_libs=yes
7915   ;;
7916
7917 # No shared lib support for Linux oldld, aout, or coff.
7918 linux*oldld* | linux*aout* | linux*coff*)
7919   dynamic_linker=no
7920   ;;
7921
7922 # This must be Linux ELF.
7923 linux*)
7924   version_type=linux
7925   need_lib_prefix=no
7926   need_version=no
7927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7928   soname_spec='${libname}${release}${shared_ext}$major'
7929   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7930   shlibpath_var=LD_LIBRARY_PATH
7931   shlibpath_overrides_runpath=no
7932   # This implies no fast_install, which is unacceptable.
7933   # Some rework will be needed to allow for fast_install
7934   # before this can be enabled.
7935   hardcode_into_libs=yes
7936
7937   # Append ld.so.conf contents to the search path
7938   if test -f /etc/ld.so.conf; then
7939     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7940     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7941   fi
7942
7943   # We used to test for /lib/ld.so.1 and disable shared libraries on
7944   # powerpc, because MkLinux only supported shared libraries with the
7945   # GNU dynamic linker.  Since this was broken with cross compilers,
7946   # most powerpc-linux boxes support dynamic linking these days and
7947   # people can always --disable-shared, the test was removed, and we
7948   # assume the GNU/Linux dynamic linker is in use.
7949   dynamic_linker='GNU/Linux ld.so'
7950   ;;
7951
7952 netbsdelf*-gnu)
7953   version_type=linux
7954   need_lib_prefix=no
7955   need_version=no
7956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7957   soname_spec='${libname}${release}${shared_ext}$major'
7958   shlibpath_var=LD_LIBRARY_PATH
7959   shlibpath_overrides_runpath=no
7960   hardcode_into_libs=yes
7961   dynamic_linker='NetBSD ld.elf_so'
7962   ;;
7963
7964 knetbsd*-gnu)
7965   version_type=linux
7966   need_lib_prefix=no
7967   need_version=no
7968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7969   soname_spec='${libname}${release}${shared_ext}$major'
7970   shlibpath_var=LD_LIBRARY_PATH
7971   shlibpath_overrides_runpath=no
7972   hardcode_into_libs=yes
7973   dynamic_linker='GNU ld.so'
7974   ;;
7975
7976 netbsd*)
7977   version_type=sunos
7978   need_lib_prefix=no
7979   need_version=no
7980   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7982     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7983     dynamic_linker='NetBSD (a.out) ld.so'
7984   else
7985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7986     soname_spec='${libname}${release}${shared_ext}$major'
7987     dynamic_linker='NetBSD ld.elf_so'
7988   fi
7989   shlibpath_var=LD_LIBRARY_PATH
7990   shlibpath_overrides_runpath=yes
7991   hardcode_into_libs=yes
7992   ;;
7993
7994 newsos6)
7995   version_type=linux
7996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7997   shlibpath_var=LD_LIBRARY_PATH
7998   shlibpath_overrides_runpath=yes
7999   ;;
8000
8001 nto-qnx*)
8002   version_type=linux
8003   need_lib_prefix=no
8004   need_version=no
8005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8006   soname_spec='${libname}${release}${shared_ext}$major'
8007   shlibpath_var=LD_LIBRARY_PATH
8008   shlibpath_overrides_runpath=yes
8009   ;;
8010
8011 openbsd*)
8012   version_type=sunos
8013   need_lib_prefix=no
8014   need_version=yes
8015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8016   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8017   shlibpath_var=LD_LIBRARY_PATH
8018   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8019     case $host_os in
8020       openbsd2.[89] | openbsd2.[89].*)
8021         shlibpath_overrides_runpath=no
8022         ;;
8023       *)
8024         shlibpath_overrides_runpath=yes
8025         ;;
8026       esac
8027   else
8028     shlibpath_overrides_runpath=yes
8029   fi
8030   ;;
8031
8032 os2*)
8033   libname_spec='$name'
8034   shrext_cmds=".dll"
8035   need_lib_prefix=no
8036   library_names_spec='$libname${shared_ext} $libname.a'
8037   dynamic_linker='OS/2 ld.exe'
8038   shlibpath_var=LIBPATH
8039   ;;
8040
8041 osf3* | osf4* | osf5*)
8042   version_type=osf
8043   need_lib_prefix=no
8044   need_version=no
8045   soname_spec='${libname}${release}${shared_ext}$major'
8046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8047   shlibpath_var=LD_LIBRARY_PATH
8048   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8049   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8050   ;;
8051
8052 sco3.2v5*)
8053   version_type=osf
8054   soname_spec='${libname}${release}${shared_ext}$major'
8055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056   shlibpath_var=LD_LIBRARY_PATH
8057   ;;
8058
8059 solaris*)
8060   version_type=linux
8061   need_lib_prefix=no
8062   need_version=no
8063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8064   soname_spec='${libname}${release}${shared_ext}$major'
8065   shlibpath_var=LD_LIBRARY_PATH
8066   shlibpath_overrides_runpath=yes
8067   hardcode_into_libs=yes
8068   # ldd complains unless libraries are executable
8069   postinstall_cmds='chmod +x $lib'
8070   ;;
8071
8072 sunos4*)
8073   version_type=sunos
8074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8075   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8076   shlibpath_var=LD_LIBRARY_PATH
8077   shlibpath_overrides_runpath=yes
8078   if test "$with_gnu_ld" = yes; then
8079     need_lib_prefix=no
8080   fi
8081   need_version=yes
8082   ;;
8083
8084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8085   version_type=linux
8086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8087   soname_spec='${libname}${release}${shared_ext}$major'
8088   shlibpath_var=LD_LIBRARY_PATH
8089   case $host_vendor in
8090     sni)
8091       shlibpath_overrides_runpath=no
8092       need_lib_prefix=no
8093       export_dynamic_flag_spec='${wl}-Blargedynsym'
8094       runpath_var=LD_RUN_PATH
8095       ;;
8096     siemens)
8097       need_lib_prefix=no
8098       ;;
8099     motorola)
8100       need_lib_prefix=no
8101       need_version=no
8102       shlibpath_overrides_runpath=no
8103       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8104       ;;
8105   esac
8106   ;;
8107
8108 sysv4*MP*)
8109   if test -d /usr/nec ;then
8110     version_type=linux
8111     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8112     soname_spec='$libname${shared_ext}.$major'
8113     shlibpath_var=LD_LIBRARY_PATH
8114   fi
8115   ;;
8116
8117 uts4*)
8118   version_type=linux
8119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8120   soname_spec='${libname}${release}${shared_ext}$major'
8121   shlibpath_var=LD_LIBRARY_PATH
8122   ;;
8123
8124 *)
8125   dynamic_linker=no
8126   ;;
8127 esac
8128 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8129 echo "${ECHO_T}$dynamic_linker" >&6
8130 test "$dynamic_linker" = no && can_build_shared=no
8131
8132 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8133 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8134 hardcode_action=
8135 if test -n "$hardcode_libdir_flag_spec" || \
8136    test -n "$runpath_var " || \
8137    test "X$hardcode_automatic"="Xyes" ; then
8138
8139   # We can hardcode non-existant directories.
8140   if test "$hardcode_direct" != no &&
8141      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8142      # have to relink, otherwise we might link with an installed library
8143      # when we should be linking with a yet-to-be-installed one
8144      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8145      test "$hardcode_minus_L" != no; then
8146     # Linking always hardcodes the temporary library directory.
8147     hardcode_action=relink
8148   else
8149     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8150     hardcode_action=immediate
8151   fi
8152 else
8153   # We cannot hardcode anything, or else we can only hardcode existing
8154   # directories.
8155   hardcode_action=unsupported
8156 fi
8157 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8158 echo "${ECHO_T}$hardcode_action" >&6
8159
8160 if test "$hardcode_action" = relink; then
8161   # Fast installation is not supported
8162   enable_fast_install=no
8163 elif test "$shlibpath_overrides_runpath" = yes ||
8164      test "$enable_shared" = no; then
8165   # Fast installation is not necessary
8166   enable_fast_install=needless
8167 fi
8168
8169 striplib=
8170 old_striplib=
8171 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8172 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8173 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8174   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8175   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8176   echo "$as_me:$LINENO: result: yes" >&5
8177 echo "${ECHO_T}yes" >&6
8178 else
8179 # FIXME - insert some real tests, host_os isn't really good enough
8180   case $host_os in
8181    darwin*)
8182        if test -n "$STRIP" ; then
8183          striplib="$STRIP -x"
8184          echo "$as_me:$LINENO: result: yes" >&5
8185 echo "${ECHO_T}yes" >&6
8186        else
8187   echo "$as_me:$LINENO: result: no" >&5
8188 echo "${ECHO_T}no" >&6
8189 fi
8190        ;;
8191    *)
8192   echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6
8194     ;;
8195   esac
8196 fi
8197
8198 if test "x$enable_dlopen" != xyes; then
8199   enable_dlopen=unknown
8200   enable_dlopen_self=unknown
8201   enable_dlopen_self_static=unknown
8202 else
8203   lt_cv_dlopen=no
8204   lt_cv_dlopen_libs=
8205
8206   case $host_os in
8207   beos*)
8208     lt_cv_dlopen="load_add_on"
8209     lt_cv_dlopen_libs=
8210     lt_cv_dlopen_self=yes
8211     ;;
8212
8213   mingw* | pw32*)
8214     lt_cv_dlopen="LoadLibrary"
8215     lt_cv_dlopen_libs=
8216    ;;
8217
8218   cygwin*)
8219     lt_cv_dlopen="dlopen"
8220     lt_cv_dlopen_libs=
8221    ;;
8222
8223   darwin*)
8224   # if libdl is installed we need to link against it
8225     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8226 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8227 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   ac_check_lib_save_LIBS=$LIBS
8231 LIBS="-ldl  $LIBS"
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238
8239 /* Override any gcc2 internal prototype to avoid an error.  */
8240 #ifdef __cplusplus
8241 extern "C"
8242 #endif
8243 /* We use char because int might match the return type of a gcc2
8244    builtin and then its argument prototype would still apply.  */
8245 char dlopen ();
8246 int
8247 main ()
8248 {
8249 dlopen ();
8250   ;
8251   return 0;
8252 }
8253 _ACEOF
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256   (eval $ac_link) 2>conftest.er1
8257   ac_status=$?
8258   grep -v '^ *+' conftest.er1 >conftest.err
8259   rm -f conftest.er1
8260   cat conftest.err >&5
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); } &&
8263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265   (eval $ac_try) 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; } &&
8269          { ac_try='test -s conftest$ac_exeext'
8270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271   (eval $ac_try) 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   ac_cv_lib_dl_dlopen=yes
8276 else
8277   echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280 ac_cv_lib_dl_dlopen=no
8281 fi
8282 rm -f conftest.err conftest.$ac_objext \
8283       conftest$ac_exeext conftest.$ac_ext
8284 LIBS=$ac_check_lib_save_LIBS
8285 fi
8286 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8287 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8288 if test $ac_cv_lib_dl_dlopen = yes; then
8289   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8290 else
8291
8292     lt_cv_dlopen="dyld"
8293     lt_cv_dlopen_libs=
8294     lt_cv_dlopen_self=yes
8295
8296 fi
8297
8298    ;;
8299
8300   *)
8301     echo "$as_me:$LINENO: checking for shl_load" >&5
8302 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8303 if test "${ac_cv_func_shl_load+set}" = set; then
8304   echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306   cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h.  */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h.  */
8312 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8314 #define shl_load innocuous_shl_load
8315
8316 /* System header to define __stub macros and hopefully few prototypes,
8317     which can conflict with char shl_load (); below.
8318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8319     <limits.h> exists even on freestanding compilers.  */
8320
8321 #ifdef __STDC__
8322 # include <limits.h>
8323 #else
8324 # include <assert.h>
8325 #endif
8326
8327 #undef shl_load
8328
8329 /* Override any gcc2 internal prototype to avoid an error.  */
8330 #ifdef __cplusplus
8331 extern "C"
8332 {
8333 #endif
8334 /* We use char because int might match the return type of a gcc2
8335    builtin and then its argument prototype would still apply.  */
8336 char shl_load ();
8337 /* The GNU C library defines this for functions which it implements
8338     to always fail with ENOSYS.  Some functions are actually named
8339     something starting with __ and the normal name is an alias.  */
8340 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8341 choke me
8342 #else
8343 char (*f) () = shl_load;
8344 #endif
8345 #ifdef __cplusplus
8346 }
8347 #endif
8348
8349 int
8350 main ()
8351 {
8352 return f != shl_load;
8353   ;
8354   return 0;
8355 }
8356 _ACEOF
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359   (eval $ac_link) 2>conftest.er1
8360   ac_status=$?
8361   grep -v '^ *+' conftest.er1 >conftest.err
8362   rm -f conftest.er1
8363   cat conftest.err >&5
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } &&
8366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368   (eval $ac_try) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; } &&
8372          { ac_try='test -s conftest$ac_exeext'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_cv_func_shl_load=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_func_shl_load=no
8384 fi
8385 rm -f conftest.err conftest.$ac_objext \
8386       conftest$ac_exeext conftest.$ac_ext
8387 fi
8388 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8389 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8390 if test $ac_cv_func_shl_load = yes; then
8391   lt_cv_dlopen="shl_load"
8392 else
8393   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8394 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8395 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398   ac_check_lib_save_LIBS=$LIBS
8399 LIBS="-ldld  $LIBS"
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h.  */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h.  */
8406
8407 /* Override any gcc2 internal prototype to avoid an error.  */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 /* We use char because int might match the return type of a gcc2
8412    builtin and then its argument prototype would still apply.  */
8413 char shl_load ();
8414 int
8415 main ()
8416 {
8417 shl_load ();
8418   ;
8419   return 0;
8420 }
8421 _ACEOF
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424   (eval $ac_link) 2>conftest.er1
8425   ac_status=$?
8426   grep -v '^ *+' conftest.er1 >conftest.err
8427   rm -f conftest.er1
8428   cat conftest.err >&5
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); } &&
8431          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433   (eval $ac_try) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; } &&
8437          { ac_try='test -s conftest$ac_exeext'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443   ac_cv_lib_dld_shl_load=yes
8444 else
8445   echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448 ac_cv_lib_dld_shl_load=no
8449 fi
8450 rm -f conftest.err conftest.$ac_objext \
8451       conftest$ac_exeext conftest.$ac_ext
8452 LIBS=$ac_check_lib_save_LIBS
8453 fi
8454 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8455 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8456 if test $ac_cv_lib_dld_shl_load = yes; then
8457   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8458 else
8459   echo "$as_me:$LINENO: checking for dlopen" >&5
8460 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8461 if test "${ac_cv_func_dlopen+set}" = set; then
8462   echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464   cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h.  */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h.  */
8470 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8472 #define dlopen innocuous_dlopen
8473
8474 /* System header to define __stub macros and hopefully few prototypes,
8475     which can conflict with char dlopen (); below.
8476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8477     <limits.h> exists even on freestanding compilers.  */
8478
8479 #ifdef __STDC__
8480 # include <limits.h>
8481 #else
8482 # include <assert.h>
8483 #endif
8484
8485 #undef dlopen
8486
8487 /* Override any gcc2 internal prototype to avoid an error.  */
8488 #ifdef __cplusplus
8489 extern "C"
8490 {
8491 #endif
8492 /* We use char because int might match the return type of a gcc2
8493    builtin and then its argument prototype would still apply.  */
8494 char dlopen ();
8495 /* The GNU C library defines this for functions which it implements
8496     to always fail with ENOSYS.  Some functions are actually named
8497     something starting with __ and the normal name is an alias.  */
8498 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8499 choke me
8500 #else
8501 char (*f) () = dlopen;
8502 #endif
8503 #ifdef __cplusplus
8504 }
8505 #endif
8506
8507 int
8508 main ()
8509 {
8510 return f != dlopen;
8511   ;
8512   return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517   (eval $ac_link) 2>conftest.er1
8518   ac_status=$?
8519   grep -v '^ *+' conftest.er1 >conftest.err
8520   rm -f conftest.er1
8521   cat conftest.err >&5
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); } &&
8524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; } &&
8530          { ac_try='test -s conftest$ac_exeext'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; }; then
8536   ac_cv_func_dlopen=yes
8537 else
8538   echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541 ac_cv_func_dlopen=no
8542 fi
8543 rm -f conftest.err conftest.$ac_objext \
8544       conftest$ac_exeext conftest.$ac_ext
8545 fi
8546 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8547 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8548 if test $ac_cv_func_dlopen = yes; then
8549   lt_cv_dlopen="dlopen"
8550 else
8551   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556   ac_check_lib_save_LIBS=$LIBS
8557 LIBS="-ldl  $LIBS"
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8564
8565 /* Override any gcc2 internal prototype to avoid an error.  */
8566 #ifdef __cplusplus
8567 extern "C"
8568 #endif
8569 /* We use char because int might match the return type of a gcc2
8570    builtin and then its argument prototype would still apply.  */
8571 char dlopen ();
8572 int
8573 main ()
8574 {
8575 dlopen ();
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582   (eval $ac_link) 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } &&
8589          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591   (eval $ac_try) 2>&5
8592   ac_status=$?
8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); }; } &&
8595          { ac_try='test -s conftest$ac_exeext'
8596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597   (eval $ac_try) 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; }; then
8601   ac_cv_lib_dl_dlopen=yes
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 ac_cv_lib_dl_dlopen=no
8607 fi
8608 rm -f conftest.err conftest.$ac_objext \
8609       conftest$ac_exeext conftest.$ac_ext
8610 LIBS=$ac_check_lib_save_LIBS
8611 fi
8612 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8614 if test $ac_cv_lib_dl_dlopen = yes; then
8615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8616 else
8617   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8618 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8619 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   ac_check_lib_save_LIBS=$LIBS
8623 LIBS="-lsvld  $LIBS"
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630
8631 /* Override any gcc2 internal prototype to avoid an error.  */
8632 #ifdef __cplusplus
8633 extern "C"
8634 #endif
8635 /* We use char because int might match the return type of a gcc2
8636    builtin and then its argument prototype would still apply.  */
8637 char dlopen ();
8638 int
8639 main ()
8640 {
8641 dlopen ();
8642   ;
8643   return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648   (eval $ac_link) 2>conftest.er1
8649   ac_status=$?
8650   grep -v '^ *+' conftest.er1 >conftest.err
8651   rm -f conftest.er1
8652   cat conftest.err >&5
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); } &&
8655          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; } &&
8661          { ac_try='test -s conftest$ac_exeext'
8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663   (eval $ac_try) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); }; }; then
8667   ac_cv_lib_svld_dlopen=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ac_cv_lib_svld_dlopen=no
8673 fi
8674 rm -f conftest.err conftest.$ac_objext \
8675       conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8677 fi
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8679 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8680 if test $ac_cv_lib_svld_dlopen = yes; then
8681   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8682 else
8683   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8684 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8685 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688   ac_check_lib_save_LIBS=$LIBS
8689 LIBS="-ldld  $LIBS"
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696
8697 /* Override any gcc2 internal prototype to avoid an error.  */
8698 #ifdef __cplusplus
8699 extern "C"
8700 #endif
8701 /* We use char because int might match the return type of a gcc2
8702    builtin and then its argument prototype would still apply.  */
8703 char dld_link ();
8704 int
8705 main ()
8706 {
8707 dld_link ();
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714   (eval $ac_link) 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; } &&
8727          { ac_try='test -s conftest$ac_exeext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_cv_lib_dld_dld_link=yes
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_cv_lib_dld_dld_link=no
8739 fi
8740 rm -f conftest.err conftest.$ac_objext \
8741       conftest$ac_exeext conftest.$ac_ext
8742 LIBS=$ac_check_lib_save_LIBS
8743 fi
8744 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8745 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8746 if test $ac_cv_lib_dld_dld_link = yes; then
8747   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8748 fi
8749
8750
8751 fi
8752
8753
8754 fi
8755
8756
8757 fi
8758
8759
8760 fi
8761
8762
8763 fi
8764
8765     ;;
8766   esac
8767
8768   if test "x$lt_cv_dlopen" != xno; then
8769     enable_dlopen=yes
8770   else
8771     enable_dlopen=no
8772   fi
8773
8774   case $lt_cv_dlopen in
8775   dlopen)
8776     save_CPPFLAGS="$CPPFLAGS"
8777     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8778
8779     save_LDFLAGS="$LDFLAGS"
8780     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8781
8782     save_LIBS="$LIBS"
8783     LIBS="$lt_cv_dlopen_libs $LIBS"
8784
8785     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8786 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8787 if test "${lt_cv_dlopen_self+set}" = set; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790           if test "$cross_compiling" = yes; then :
8791   lt_cv_dlopen_self=cross
8792 else
8793   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8794   lt_status=$lt_dlunknown
8795   cat > conftest.$ac_ext <<EOF
8796 #line 8796 "configure"
8797 #include "confdefs.h"
8798
8799 #if HAVE_DLFCN_H
8800 #include <dlfcn.h>
8801 #endif
8802
8803 #include <stdio.h>
8804
8805 #ifdef RTLD_GLOBAL
8806 #  define LT_DLGLOBAL           RTLD_GLOBAL
8807 #else
8808 #  ifdef DL_GLOBAL
8809 #    define LT_DLGLOBAL         DL_GLOBAL
8810 #  else
8811 #    define LT_DLGLOBAL         0
8812 #  endif
8813 #endif
8814
8815 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8816    find out it does not work in some platform. */
8817 #ifndef LT_DLLAZY_OR_NOW
8818 #  ifdef RTLD_LAZY
8819 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8820 #  else
8821 #    ifdef DL_LAZY
8822 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8823 #    else
8824 #      ifdef RTLD_NOW
8825 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8826 #      else
8827 #        ifdef DL_NOW
8828 #          define LT_DLLAZY_OR_NOW      DL_NOW
8829 #        else
8830 #          define LT_DLLAZY_OR_NOW      0
8831 #        endif
8832 #      endif
8833 #    endif
8834 #  endif
8835 #endif
8836
8837 #ifdef __cplusplus
8838 extern "C" void exit (int);
8839 #endif
8840
8841 void fnord() { int i=42;}
8842 int main ()
8843 {
8844   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8845   int status = $lt_dlunknown;
8846
8847   if (self)
8848     {
8849       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8850       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8851       /* dlclose (self); */
8852     }
8853
8854     exit (status);
8855 }
8856 EOF
8857   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8858   (eval $ac_link) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8862     (./conftest; exit; ) 2>/dev/null
8863     lt_status=$?
8864     case x$lt_status in
8865       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8866       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8867       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8868     esac
8869   else :
8870     # compilation failed
8871     lt_cv_dlopen_self=no
8872   fi
8873 fi
8874 rm -fr conftest*
8875
8876
8877 fi
8878 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8879 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8880
8881     if test "x$lt_cv_dlopen_self" = xyes; then
8882       LDFLAGS="$LDFLAGS $link_static_flag"
8883       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8884 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8885 if test "${lt_cv_dlopen_self_static+set}" = set; then
8886   echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888           if test "$cross_compiling" = yes; then :
8889   lt_cv_dlopen_self_static=cross
8890 else
8891   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8892   lt_status=$lt_dlunknown
8893   cat > conftest.$ac_ext <<EOF
8894 #line 8894 "configure"
8895 #include "confdefs.h"
8896
8897 #if HAVE_DLFCN_H
8898 #include <dlfcn.h>
8899 #endif
8900
8901 #include <stdio.h>
8902
8903 #ifdef RTLD_GLOBAL
8904 #  define LT_DLGLOBAL           RTLD_GLOBAL
8905 #else
8906 #  ifdef DL_GLOBAL
8907 #    define LT_DLGLOBAL         DL_GLOBAL
8908 #  else
8909 #    define LT_DLGLOBAL         0
8910 #  endif
8911 #endif
8912
8913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8914    find out it does not work in some platform. */
8915 #ifndef LT_DLLAZY_OR_NOW
8916 #  ifdef RTLD_LAZY
8917 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8918 #  else
8919 #    ifdef DL_LAZY
8920 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8921 #    else
8922 #      ifdef RTLD_NOW
8923 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8924 #      else
8925 #        ifdef DL_NOW
8926 #          define LT_DLLAZY_OR_NOW      DL_NOW
8927 #        else
8928 #          define LT_DLLAZY_OR_NOW      0
8929 #        endif
8930 #      endif
8931 #    endif
8932 #  endif
8933 #endif
8934
8935 #ifdef __cplusplus
8936 extern "C" void exit (int);
8937 #endif
8938
8939 void fnord() { int i=42;}
8940 int main ()
8941 {
8942   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8943   int status = $lt_dlunknown;
8944
8945   if (self)
8946     {
8947       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8948       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8949       /* dlclose (self); */
8950     }
8951
8952     exit (status);
8953 }
8954 EOF
8955   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8956   (eval $ac_link) 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8960     (./conftest; exit; ) 2>/dev/null
8961     lt_status=$?
8962     case x$lt_status in
8963       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8964       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8965       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8966     esac
8967   else :
8968     # compilation failed
8969     lt_cv_dlopen_self_static=no
8970   fi
8971 fi
8972 rm -fr conftest*
8973
8974
8975 fi
8976 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8977 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8978     fi
8979
8980     CPPFLAGS="$save_CPPFLAGS"
8981     LDFLAGS="$save_LDFLAGS"
8982     LIBS="$save_LIBS"
8983     ;;
8984   esac
8985
8986   case $lt_cv_dlopen_self in
8987   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8988   *) enable_dlopen_self=unknown ;;
8989   esac
8990
8991   case $lt_cv_dlopen_self_static in
8992   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8993   *) enable_dlopen_self_static=unknown ;;
8994   esac
8995 fi
8996
8997
8998 # Report which librarie types wil actually be built
8999 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9000 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9001 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9002 echo "${ECHO_T}$can_build_shared" >&6
9003
9004 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9005 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9006 test "$can_build_shared" = "no" && enable_shared=no
9007
9008 # On AIX, shared libraries and static libraries use the same namespace, and
9009 # are all built from PIC.
9010 case "$host_os" in
9011 aix3*)
9012   test "$enable_shared" = yes && enable_static=no
9013   if test -n "$RANLIB"; then
9014     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9015     postinstall_cmds='$RANLIB $lib'
9016   fi
9017   ;;
9018
9019 aix4* | aix5*)
9020   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9021     test "$enable_shared" = yes && enable_static=no
9022   fi
9023   ;;
9024   darwin* | rhapsody*)
9025   if test "$GCC" = yes; then
9026     archive_cmds_need_lc=no
9027     case "$host_os" in
9028     rhapsody* | darwin1.[012])
9029       allow_undefined_flag='-undefined suppress'
9030       ;;
9031     *) # Darwin 1.3 on
9032       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9033         allow_undefined_flag='-flat_namespace -undefined suppress'
9034       else
9035         case ${MACOSX_DEPLOYMENT_TARGET} in
9036           10.[012])
9037             allow_undefined_flag='-flat_namespace -undefined suppress'
9038             ;;
9039           10.*)
9040             allow_undefined_flag='-undefined dynamic_lookup'
9041             ;;
9042         esac
9043       fi
9044       ;;
9045     esac
9046     output_verbose_link_cmd='echo'
9047     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9048     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9049     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9050     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}'
9051     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}'
9052     hardcode_direct=no
9053     hardcode_automatic=yes
9054     hardcode_shlibpath_var=unsupported
9055     whole_archive_flag_spec='-all_load $convenience'
9056     link_all_deplibs=yes
9057   else
9058     ld_shlibs=no
9059   fi
9060     ;;
9061 esac
9062 echo "$as_me:$LINENO: result: $enable_shared" >&5
9063 echo "${ECHO_T}$enable_shared" >&6
9064
9065 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9066 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9067 # Make sure either enable_shared or enable_static is yes.
9068 test "$enable_shared" = yes || enable_static=yes
9069 echo "$as_me:$LINENO: result: $enable_static" >&5
9070 echo "${ECHO_T}$enable_static" >&6
9071
9072 # The else clause should only fire when bootstrapping the
9073 # libtool distribution, otherwise you forgot to ship ltmain.sh
9074 # with your package, and you will get complaints that there are
9075 # no rules to generate ltmain.sh.
9076 if test -f "$ltmain"; then
9077   # See if we are running on zsh, and set the options which allow our commands through
9078   # without removal of \ escapes.
9079   if test -n "${ZSH_VERSION+set}" ; then
9080     setopt NO_GLOB_SUBST
9081   fi
9082   # Now quote all the things that may contain metacharacters while being
9083   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9084   # variables and quote the copies for generation of the libtool script.
9085   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9086     SED SHELL STRIP \
9087     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9088     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9089     deplibs_check_method reload_flag reload_cmds need_locks \
9090     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9091     lt_cv_sys_global_symbol_to_c_name_address \
9092     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9093     old_postinstall_cmds old_postuninstall_cmds \
9094     compiler \
9095     CC \
9096     LD \
9097     lt_prog_compiler_wl \
9098     lt_prog_compiler_pic \
9099     lt_prog_compiler_static \
9100     lt_prog_compiler_no_builtin_flag \
9101     export_dynamic_flag_spec \
9102     thread_safe_flag_spec \
9103     whole_archive_flag_spec \
9104     enable_shared_with_static_runtimes \
9105     old_archive_cmds \
9106     old_archive_from_new_cmds \
9107     predep_objects \
9108     postdep_objects \
9109     predeps \
9110     postdeps \
9111     compiler_lib_search_path \
9112     archive_cmds \
9113     archive_expsym_cmds \
9114     postinstall_cmds \
9115     postuninstall_cmds \
9116     old_archive_from_expsyms_cmds \
9117     allow_undefined_flag \
9118     no_undefined_flag \
9119     export_symbols_cmds \
9120     hardcode_libdir_flag_spec \
9121     hardcode_libdir_flag_spec_ld \
9122     hardcode_libdir_separator \
9123     hardcode_automatic \
9124     module_cmds \
9125     module_expsym_cmds \
9126     lt_cv_prog_compiler_c_o \
9127     exclude_expsyms \
9128     include_expsyms; do
9129
9130     case $var in
9131     old_archive_cmds | \
9132     old_archive_from_new_cmds | \
9133     archive_cmds | \
9134     archive_expsym_cmds | \
9135     module_cmds | \
9136     module_expsym_cmds | \
9137     old_archive_from_expsyms_cmds | \
9138     export_symbols_cmds | \
9139     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9140     postinstall_cmds | postuninstall_cmds | \
9141     old_postinstall_cmds | old_postuninstall_cmds | \
9142     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9143       # Double-quote double-evaled strings.
9144       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9145       ;;
9146     *)
9147       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9148       ;;
9149     esac
9150   done
9151
9152   case $lt_echo in
9153   *'\$0 --fallback-echo"')
9154     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9155     ;;
9156   esac
9157
9158 cfgfile="${ofile}T"
9159   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9160   $rm -f "$cfgfile"
9161   { echo "$as_me:$LINENO: creating $ofile" >&5
9162 echo "$as_me: creating $ofile" >&6;}
9163
9164   cat <<__EOF__ >> "$cfgfile"
9165 #! $SHELL
9166
9167 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9168 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9169 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9170 #
9171 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9172 # Free Software Foundation, Inc.
9173 #
9174 # This file is part of GNU Libtool:
9175 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9176 #
9177 # This program is free software; you can redistribute it and/or modify
9178 # it under the terms of the GNU General Public License as published by
9179 # the Free Software Foundation; either version 2 of the License, or
9180 # (at your option) any later version.
9181 #
9182 # This program is distributed in the hope that it will be useful, but
9183 # WITHOUT ANY WARRANTY; without even the implied warranty of
9184 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9185 # General Public License for more details.
9186 #
9187 # You should have received a copy of the GNU General Public License
9188 # along with this program; if not, write to the Free Software
9189 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9190 #
9191 # As a special exception to the GNU General Public License, if you
9192 # distribute this file as part of a program that contains a
9193 # configuration script generated by Autoconf, you may include it under
9194 # the same distribution terms that you use for the rest of that program.
9195
9196 # A sed program that does not truncate output.
9197 SED=$lt_SED
9198
9199 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9200 Xsed="$SED -e s/^X//"
9201
9202 # The HP-UX ksh and POSIX shell print the target directory to stdout
9203 # if CDPATH is set.
9204 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9205
9206 # The names of the tagged configurations supported by this script.
9207 available_tags=
9208
9209 # ### BEGIN LIBTOOL CONFIG
9210
9211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9212
9213 # Shell to use when invoking shell scripts.
9214 SHELL=$lt_SHELL
9215
9216 # Whether or not to build shared libraries.
9217 build_libtool_libs=$enable_shared
9218
9219 # Whether or not to build static libraries.
9220 build_old_libs=$enable_static
9221
9222 # Whether or not to add -lc for building shared libraries.
9223 build_libtool_need_lc=$archive_cmds_need_lc
9224
9225 # Whether or not to disallow shared libs when runtime libs are static
9226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9227
9228 # Whether or not to optimize for fast installation.
9229 fast_install=$enable_fast_install
9230
9231 # The host system.
9232 host_alias=$host_alias
9233 host=$host
9234
9235 # An echo program that does not interpret backslashes.
9236 echo=$lt_echo
9237
9238 # The archiver.
9239 AR=$lt_AR
9240 AR_FLAGS=$lt_AR_FLAGS
9241
9242 # A C compiler.
9243 LTCC=$lt_LTCC
9244
9245 # A language-specific compiler.
9246 CC=$lt_compiler
9247
9248 # Is the compiler the GNU C compiler?
9249 with_gcc=$GCC
9250
9251 # An ERE matcher.
9252 EGREP=$lt_EGREP
9253
9254 # The linker used to build libraries.
9255 LD=$lt_LD
9256
9257 # Whether we need hard or soft links.
9258 LN_S=$lt_LN_S
9259
9260 # A BSD-compatible nm program.
9261 NM=$lt_NM
9262
9263 # A symbol stripping program
9264 STRIP=$lt_STRIP
9265
9266 # Used to examine libraries when file_magic_cmd begins "file"
9267 MAGIC_CMD=$MAGIC_CMD
9268
9269 # Used on cygwin: DLL creation program.
9270 DLLTOOL="$DLLTOOL"
9271
9272 # Used on cygwin: object dumper.
9273 OBJDUMP="$OBJDUMP"
9274
9275 # Used on cygwin: assembler.
9276 AS="$AS"
9277
9278 # The name of the directory that contains temporary libtool files.
9279 objdir=$objdir
9280
9281 # How to create reloadable object files.
9282 reload_flag=$lt_reload_flag
9283 reload_cmds=$lt_reload_cmds
9284
9285 # How to pass a linker flag through the compiler.
9286 wl=$lt_lt_prog_compiler_wl
9287
9288 # Object file suffix (normally "o").
9289 objext="$ac_objext"
9290
9291 # Old archive suffix (normally "a").
9292 libext="$libext"
9293
9294 # Shared library suffix (normally ".so").
9295 shrext_cmds='$shrext_cmds'
9296
9297 # Executable file suffix (normally "").
9298 exeext="$exeext"
9299
9300 # Additional compiler flags for building library objects.
9301 pic_flag=$lt_lt_prog_compiler_pic
9302 pic_mode=$pic_mode
9303
9304 # What is the maximum length of a command?
9305 max_cmd_len=$lt_cv_sys_max_cmd_len
9306
9307 # Does compiler simultaneously support -c and -o options?
9308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9309
9310 # Must we lock files when doing compilation ?
9311 need_locks=$lt_need_locks
9312
9313 # Do we need the lib prefix for modules?
9314 need_lib_prefix=$need_lib_prefix
9315
9316 # Do we need a version for libraries?
9317 need_version=$need_version
9318
9319 # Whether dlopen is supported.
9320 dlopen_support=$enable_dlopen
9321
9322 # Whether dlopen of programs is supported.
9323 dlopen_self=$enable_dlopen_self
9324
9325 # Whether dlopen of statically linked programs is supported.
9326 dlopen_self_static=$enable_dlopen_self_static
9327
9328 # Compiler flag to prevent dynamic linking.
9329 link_static_flag=$lt_lt_prog_compiler_static
9330
9331 # Compiler flag to turn off builtin functions.
9332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9333
9334 # Compiler flag to allow reflexive dlopens.
9335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9336
9337 # Compiler flag to generate shared objects directly from archives.
9338 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9339
9340 # Compiler flag to generate thread-safe objects.
9341 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9342
9343 # Library versioning type.
9344 version_type=$version_type
9345
9346 # Format of library name prefix.
9347 libname_spec=$lt_libname_spec
9348
9349 # List of archive names.  First name is the real one, the rest are links.
9350 # The last name is the one that the linker finds with -lNAME.
9351 library_names_spec=$lt_library_names_spec
9352
9353 # The coded name of the library, if different from the real name.
9354 soname_spec=$lt_soname_spec
9355
9356 # Commands used to build and install an old-style archive.
9357 RANLIB=$lt_RANLIB
9358 old_archive_cmds=$lt_old_archive_cmds
9359 old_postinstall_cmds=$lt_old_postinstall_cmds
9360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9361
9362 # Create an old-style archive from a shared archive.
9363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9364
9365 # Create a temporary old-style archive to link instead of a shared archive.
9366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9367
9368 # Commands used to build and install a shared archive.
9369 archive_cmds=$lt_archive_cmds
9370 archive_expsym_cmds=$lt_archive_expsym_cmds
9371 postinstall_cmds=$lt_postinstall_cmds
9372 postuninstall_cmds=$lt_postuninstall_cmds
9373
9374 # Commands used to build a loadable module (assumed same as above if empty)
9375 module_cmds=$lt_module_cmds
9376 module_expsym_cmds=$lt_module_expsym_cmds
9377
9378 # Commands to strip libraries.
9379 old_striplib=$lt_old_striplib
9380 striplib=$lt_striplib
9381
9382 # Dependencies to place before the objects being linked to create a
9383 # shared library.
9384 predep_objects=$lt_predep_objects
9385
9386 # Dependencies to place after the objects being linked to create a
9387 # shared library.
9388 postdep_objects=$lt_postdep_objects
9389
9390 # Dependencies to place before the objects being linked to create a
9391 # shared library.
9392 predeps=$lt_predeps
9393
9394 # Dependencies to place after the objects being linked to create a
9395 # shared library.
9396 postdeps=$lt_postdeps
9397
9398 # The library search path used internally by the compiler when linking
9399 # a shared library.
9400 compiler_lib_search_path=$lt_compiler_lib_search_path
9401
9402 # Method to check whether dependent libraries are shared objects.
9403 deplibs_check_method=$lt_deplibs_check_method
9404
9405 # Command to use when deplibs_check_method == file_magic.
9406 file_magic_cmd=$lt_file_magic_cmd
9407
9408 # Flag that allows shared libraries with undefined symbols to be built.
9409 allow_undefined_flag=$lt_allow_undefined_flag
9410
9411 # Flag that forces no undefined symbols.
9412 no_undefined_flag=$lt_no_undefined_flag
9413
9414 # Commands used to finish a libtool library installation in a directory.
9415 finish_cmds=$lt_finish_cmds
9416
9417 # Same as above, but a single script fragment to be evaled but not shown.
9418 finish_eval=$lt_finish_eval
9419
9420 # Take the output of nm and produce a listing of raw symbols and C names.
9421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9422
9423 # Transform the output of nm in a proper C declaration
9424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9425
9426 # Transform the output of nm in a C name address pair
9427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9428
9429 # This is the shared library runtime path variable.
9430 runpath_var=$runpath_var
9431
9432 # This is the shared library path variable.
9433 shlibpath_var=$shlibpath_var
9434
9435 # Is shlibpath searched before the hard-coded library search path?
9436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9437
9438 # How to hardcode a shared library path into an executable.
9439 hardcode_action=$hardcode_action
9440
9441 # Whether we should hardcode library paths into libraries.
9442 hardcode_into_libs=$hardcode_into_libs
9443
9444 # Flag to hardcode \$libdir into a binary during linking.
9445 # This must work even if \$libdir does not exist.
9446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9447
9448 # If ld is used when linking, flag to hardcode \$libdir into
9449 # a binary during linking. This must work even if \$libdir does
9450 # not exist.
9451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9452
9453 # Whether we need a single -rpath flag with a separated argument.
9454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9455
9456 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9457 # resulting binary.
9458 hardcode_direct=$hardcode_direct
9459
9460 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9461 # resulting binary.
9462 hardcode_minus_L=$hardcode_minus_L
9463
9464 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9465 # the resulting binary.
9466 hardcode_shlibpath_var=$hardcode_shlibpath_var
9467
9468 # Set to yes if building a shared library automatically hardcodes DIR into the library
9469 # and all subsequent libraries and executables linked against it.
9470 hardcode_automatic=$hardcode_automatic
9471
9472 # Variables whose values should be saved in libtool wrapper scripts and
9473 # restored at relink time.
9474 variables_saved_for_relink="$variables_saved_for_relink"
9475
9476 # Whether libtool must link a program against all its dependency libraries.
9477 link_all_deplibs=$link_all_deplibs
9478
9479 # Compile-time system search path for libraries
9480 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9481
9482 # Run-time system search path for libraries
9483 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9484
9485 # Fix the shell variable \$srcfile for the compiler.
9486 fix_srcfile_path="$fix_srcfile_path"
9487
9488 # Set to yes if exported symbols are required.
9489 always_export_symbols=$always_export_symbols
9490
9491 # The commands to list exported symbols.
9492 export_symbols_cmds=$lt_export_symbols_cmds
9493
9494 # The commands to extract the exported symbol list from a shared archive.
9495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9496
9497 # Symbols that should not be listed in the preloaded symbols.
9498 exclude_expsyms=$lt_exclude_expsyms
9499
9500 # Symbols that must always be exported.
9501 include_expsyms=$lt_include_expsyms
9502
9503 # ### END LIBTOOL CONFIG
9504
9505 __EOF__
9506
9507
9508   case $host_os in
9509   aix3*)
9510     cat <<\EOF >> "$cfgfile"
9511
9512 # AIX sometimes has problems with the GCC collect2 program.  For some
9513 # reason, if we set the COLLECT_NAMES environment variable, the problems
9514 # vanish in a puff of smoke.
9515 if test "X${COLLECT_NAMES+set}" != Xset; then
9516   COLLECT_NAMES=
9517   export COLLECT_NAMES
9518 fi
9519 EOF
9520     ;;
9521   esac
9522
9523   # We use sed instead of cat because bash on DJGPP gets confused if
9524   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9525   # text mode, it properly converts lines to CR/LF.  This bash problem
9526   # is reportedly fixed, but why not run on old versions too?
9527   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9528
9529   mv -f "$cfgfile" "$ofile" || \
9530     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9531   chmod +x "$ofile"
9532
9533 else
9534   # If there is no Makefile yet, we rely on a make rule to execute
9535   # `config.status --recheck' to rerun these tests and create the
9536   # libtool script then.
9537   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9538   if test -f "$ltmain_in"; then
9539     test -f Makefile && make "$ltmain"
9540   fi
9541 fi
9542
9543
9544 ac_ext=c
9545 ac_cpp='$CPP $CPPFLAGS'
9546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9549
9550 CC="$lt_save_CC"
9551
9552
9553 # Check whether --with-tags or --without-tags was given.
9554 if test "${with_tags+set}" = set; then
9555   withval="$with_tags"
9556   tagnames="$withval"
9557 fi;
9558
9559 if test -f "$ltmain" && test -n "$tagnames"; then
9560   if test ! -f "${ofile}"; then
9561     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9562 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9563   fi
9564
9565   if test -z "$LTCC"; then
9566     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9567     if test -z "$LTCC"; then
9568       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9569 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9570     else
9571       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9572 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9573     fi
9574   fi
9575
9576   # Extract list of available tagged configurations in $ofile.
9577   # Note that this assumes the entire list is on one line.
9578   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9579
9580   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9581   for tagname in $tagnames; do
9582     IFS="$lt_save_ifs"
9583     # Check whether tagname contains only valid characters
9584     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9585     "") ;;
9586     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9587 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9588    { (exit 1); exit 1; }; }
9589         ;;
9590     esac
9591
9592     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9593     then
9594       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9595 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9596    { (exit 1); exit 1; }; }
9597     fi
9598
9599     # Update the list of available tags.
9600     if test -n "$tagname"; then
9601       echo appending configuration tag \"$tagname\" to $ofile
9602
9603       case $tagname in
9604       CXX)
9605         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9606           ac_ext=cc
9607 ac_cpp='$CXXCPP $CPPFLAGS'
9608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9611
9612
9613
9614
9615 archive_cmds_need_lc_CXX=no
9616 allow_undefined_flag_CXX=
9617 always_export_symbols_CXX=no
9618 archive_expsym_cmds_CXX=
9619 export_dynamic_flag_spec_CXX=
9620 hardcode_direct_CXX=no
9621 hardcode_libdir_flag_spec_CXX=
9622 hardcode_libdir_flag_spec_ld_CXX=
9623 hardcode_libdir_separator_CXX=
9624 hardcode_minus_L_CXX=no
9625 hardcode_automatic_CXX=no
9626 module_cmds_CXX=
9627 module_expsym_cmds_CXX=
9628 link_all_deplibs_CXX=unknown
9629 old_archive_cmds_CXX=$old_archive_cmds
9630 no_undefined_flag_CXX=
9631 whole_archive_flag_spec_CXX=
9632 enable_shared_with_static_runtimes_CXX=no
9633
9634 # Dependencies to place before and after the object being linked:
9635 predep_objects_CXX=
9636 postdep_objects_CXX=
9637 predeps_CXX=
9638 postdeps_CXX=
9639 compiler_lib_search_path_CXX=
9640
9641 # Source file extension for C++ test sources.
9642 ac_ext=cc
9643
9644 # Object file extension for compiled C++ test sources.
9645 objext=o
9646 objext_CXX=$objext
9647
9648 # Code to be used in simple compile tests
9649 lt_simple_compile_test_code="int some_variable = 0;\n"
9650
9651 # Code to be used in simple link tests
9652 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9653
9654 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9655
9656 # If no C compiler was specified, use CC.
9657 LTCC=${LTCC-"$CC"}
9658
9659 # Allow CC to be a program name with arguments.
9660 compiler=$CC
9661
9662
9663 # Allow CC to be a program name with arguments.
9664 lt_save_CC=$CC
9665 lt_save_LD=$LD
9666 lt_save_GCC=$GCC
9667 GCC=$GXX
9668 lt_save_with_gnu_ld=$with_gnu_ld
9669 lt_save_path_LD=$lt_cv_path_LD
9670 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9671   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9672 else
9673   unset lt_cv_prog_gnu_ld
9674 fi
9675 if test -n "${lt_cv_path_LDCXX+set}"; then
9676   lt_cv_path_LD=$lt_cv_path_LDCXX
9677 else
9678   unset lt_cv_path_LD
9679 fi
9680 test -z "${LDCXX+set}" || LD=$LDCXX
9681 CC=${CXX-"c++"}
9682 compiler=$CC
9683 compiler_CXX=$CC
9684 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9685
9686 # We don't want -fno-exception wen compiling C++ code, so set the
9687 # no_builtin_flag separately
9688 if test "$GXX" = yes; then
9689   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9690 else
9691   lt_prog_compiler_no_builtin_flag_CXX=
9692 fi
9693
9694 if test "$GXX" = yes; then
9695   # Set up default GNU C++ configuration
9696
9697
9698 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9699 if test "${with_gnu_ld+set}" = set; then
9700   withval="$with_gnu_ld"
9701   test "$withval" = no || with_gnu_ld=yes
9702 else
9703   with_gnu_ld=no
9704 fi;
9705 ac_prog=ld
9706 if test "$GCC" = yes; then
9707   # Check if gcc -print-prog-name=ld gives a path.
9708   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9709 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9710   case $host in
9711   *-*-mingw*)
9712     # gcc leaves a trailing carriage return which upsets mingw
9713     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9714   *)
9715     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9716   esac
9717   case $ac_prog in
9718     # Accept absolute paths.
9719     [\\/]* | ?:[\\/]*)
9720       re_direlt='/[^/][^/]*/\.\./'
9721       # Canonicalize the pathname of ld
9722       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9723       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9724         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9725       done
9726       test -z "$LD" && LD="$ac_prog"
9727       ;;
9728   "")
9729     # If it fails, then pretend we aren't using GCC.
9730     ac_prog=ld
9731     ;;
9732   *)
9733     # If it is relative, then search for the first ld in PATH.
9734     with_gnu_ld=unknown
9735     ;;
9736   esac
9737 elif test "$with_gnu_ld" = yes; then
9738   echo "$as_me:$LINENO: checking for GNU ld" >&5
9739 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9740 else
9741   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9742 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9743 fi
9744 if test "${lt_cv_path_LD+set}" = set; then
9745   echo $ECHO_N "(cached) $ECHO_C" >&6
9746 else
9747   if test -z "$LD"; then
9748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9749   for ac_dir in $PATH; do
9750     IFS="$lt_save_ifs"
9751     test -z "$ac_dir" && ac_dir=.
9752     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9753       lt_cv_path_LD="$ac_dir/$ac_prog"
9754       # Check to see if the program is GNU ld.  I'd rather use --version,
9755       # but apparently some GNU ld's only accept -v.
9756       # Break only if it was the GNU/non-GNU ld that we prefer.
9757       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9758       *GNU* | *'with BFD'*)
9759         test "$with_gnu_ld" != no && break
9760         ;;
9761       *)
9762         test "$with_gnu_ld" != yes && break
9763         ;;
9764       esac
9765     fi
9766   done
9767   IFS="$lt_save_ifs"
9768 else
9769   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9770 fi
9771 fi
9772
9773 LD="$lt_cv_path_LD"
9774 if test -n "$LD"; then
9775   echo "$as_me:$LINENO: result: $LD" >&5
9776 echo "${ECHO_T}$LD" >&6
9777 else
9778   echo "$as_me:$LINENO: result: no" >&5
9779 echo "${ECHO_T}no" >&6
9780 fi
9781 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9782 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9783    { (exit 1); exit 1; }; }
9784 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9785 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9786 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9787   echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9790 case `$LD -v 2>&1 </dev/null` in
9791 *GNU* | *'with BFD'*)
9792   lt_cv_prog_gnu_ld=yes
9793   ;;
9794 *)
9795   lt_cv_prog_gnu_ld=no
9796   ;;
9797 esac
9798 fi
9799 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9800 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9801 with_gnu_ld=$lt_cv_prog_gnu_ld
9802
9803
9804
9805   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9806   # archiving commands below assume that GNU ld is being used.
9807   if test "$with_gnu_ld" = yes; then
9808     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9809     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'
9810
9811     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9812     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9813
9814     # If archive_cmds runs LD, not CC, wlarc should be empty
9815     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9816     #     investigate it a little bit more. (MM)
9817     wlarc='${wl}'
9818
9819     # ancient GNU ld didn't support --whole-archive et. al.
9820     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9821         grep 'no-whole-archive' > /dev/null; then
9822       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9823     else
9824       whole_archive_flag_spec_CXX=
9825     fi
9826   else
9827     with_gnu_ld=no
9828     wlarc=
9829
9830     # A generic and very simple default shared library creation
9831     # command for GNU C++ for the case where it uses the native
9832     # linker, instead of GNU ld.  If possible, this setting should
9833     # overridden to take advantage of the native linker features on
9834     # the platform it is being used on.
9835     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9836   fi
9837
9838   # Commands to make compiler produce verbose output that lists
9839   # what "hidden" libraries, object files and flags are used when
9840   # linking a shared library.
9841   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9842
9843 else
9844   GXX=no
9845   with_gnu_ld=no
9846   wlarc=
9847 fi
9848
9849 # PORTME: fill in a description of your system's C++ link characteristics
9850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9852 ld_shlibs_CXX=yes
9853 case $host_os in
9854   aix3*)
9855     # FIXME: insert proper C++ library support
9856     ld_shlibs_CXX=no
9857     ;;
9858   aix4* | aix5*)
9859     if test "$host_cpu" = ia64; then
9860       # On IA64, the linker does run time linking by default, so we don't
9861       # have to do anything special.
9862       aix_use_runtimelinking=no
9863       exp_sym_flag='-Bexport'
9864       no_entry_flag=""
9865     else
9866       aix_use_runtimelinking=no
9867
9868       # Test if we are trying to use run time linking or normal
9869       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9870       # need to do runtime linking.
9871       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9872         for ld_flag in $LDFLAGS; do
9873           case $ld_flag in
9874           *-brtl*)
9875             aix_use_runtimelinking=yes
9876             break
9877             ;;
9878           esac
9879         done
9880       esac
9881
9882       exp_sym_flag='-bexport'
9883       no_entry_flag='-bnoentry'
9884     fi
9885
9886     # When large executables or shared objects are built, AIX ld can
9887     # have problems creating the table of contents.  If linking a library
9888     # or program results in "error TOC overflow" add -mminimal-toc to
9889     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9890     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9891
9892     archive_cmds_CXX=''
9893     hardcode_direct_CXX=yes
9894     hardcode_libdir_separator_CXX=':'
9895     link_all_deplibs_CXX=yes
9896
9897     if test "$GXX" = yes; then
9898       case $host_os in aix4.012|aix4.012.*)
9899       # We only want to do this on AIX 4.2 and lower, the check
9900       # below for broken collect2 doesn't work under 4.3+
9901         collect2name=`${CC} -print-prog-name=collect2`
9902         if test -f "$collect2name" && \
9903            strings "$collect2name" | grep resolve_lib_name >/dev/null
9904         then
9905           # We have reworked collect2
9906           hardcode_direct_CXX=yes
9907         else
9908           # We have old collect2
9909           hardcode_direct_CXX=unsupported
9910           # It fails to find uninstalled libraries when the uninstalled
9911           # path is not listed in the libpath.  Setting hardcode_minus_L
9912           # to unsupported forces relinking
9913           hardcode_minus_L_CXX=yes
9914           hardcode_libdir_flag_spec_CXX='-L$libdir'
9915           hardcode_libdir_separator_CXX=
9916         fi
9917       esac
9918       shared_flag='-shared'
9919     else
9920       # not using gcc
9921       if test "$host_cpu" = ia64; then
9922         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9923         # chokes on -Wl,-G. The following line is correct:
9924         shared_flag='-G'
9925       else
9926         if test "$aix_use_runtimelinking" = yes; then
9927           shared_flag='${wl}-G'
9928         else
9929           shared_flag='${wl}-bM:SRE'
9930         fi
9931       fi
9932     fi
9933
9934     # It seems that -bexpall does not export symbols beginning with
9935     # underscore (_), so it is better to generate a list of symbols to export.
9936     always_export_symbols_CXX=yes
9937     if test "$aix_use_runtimelinking" = yes; then
9938       # Warning - without using the other runtime loading flags (-brtl),
9939       # -berok will link without error, but may produce a broken library.
9940       allow_undefined_flag_CXX='-berok'
9941       # Determine the default libpath from the value encoded in an empty executable.
9942       cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948
9949 int
9950 main ()
9951 {
9952
9953   ;
9954   return 0;
9955 }
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959   (eval $ac_link) 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } &&
9966          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968   (eval $ac_try) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); }; } &&
9972          { ac_try='test -s conftest$ac_exeext'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978
9979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9980 }'`
9981 # Check for a 64-bit object if we didn't find anything.
9982 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; }
9983 }'`; fi
9984 else
9985   echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9987
9988 fi
9989 rm -f conftest.err conftest.$ac_objext \
9990       conftest$ac_exeext conftest.$ac_ext
9991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9992
9993       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9994
9995       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"
9996      else
9997       if test "$host_cpu" = ia64; then
9998         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9999         allow_undefined_flag_CXX="-z nodefs"
10000         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"
10001       else
10002         # Determine the default libpath from the value encoded in an empty executable.
10003         cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h.  */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h.  */
10009
10010 int
10011 main ()
10012 {
10013
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020   (eval $ac_link) 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; } &&
10033          { ac_try='test -s conftest$ac_exeext'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; }; then
10039
10040 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10041 }'`
10042 # Check for a 64-bit object if we didn't find anything.
10043 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; }
10044 }'`; fi
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 fi
10050 rm -f conftest.err conftest.$ac_objext \
10051       conftest$ac_exeext conftest.$ac_ext
10052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10053
10054         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10055         # Warning - without using the other run time loading flags,
10056         # -berok will link without error, but may produce a broken library.
10057         no_undefined_flag_CXX=' ${wl}-bernotok'
10058         allow_undefined_flag_CXX=' ${wl}-berok'
10059         # -bexpall does not export symbols beginning with underscore (_)
10060         always_export_symbols_CXX=yes
10061         # Exported symbols can be pulled into shared objects from archives
10062         whole_archive_flag_spec_CXX=' '
10063         archive_cmds_need_lc_CXX=yes
10064         # This is similar to how AIX traditionally builds it's shared libraries.
10065         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'
10066       fi
10067     fi
10068     ;;
10069   chorus*)
10070     case $cc_basename in
10071       *)
10072         # FIXME: insert proper C++ library support
10073         ld_shlibs_CXX=no
10074         ;;
10075     esac
10076     ;;
10077
10078   cygwin* | mingw* | pw32*)
10079     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10080     # as there is no search path for DLLs.
10081     hardcode_libdir_flag_spec_CXX='-L$libdir'
10082     allow_undefined_flag_CXX=unsupported
10083     always_export_symbols_CXX=no
10084     enable_shared_with_static_runtimes_CXX=yes
10085
10086     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10087       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'
10088       # If the export-symbols file already is a .def file (1st line
10089       # is EXPORTS), use it as is; otherwise, prepend...
10090       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10091         cp $export_symbols $output_objdir/$soname.def;
10092       else
10093         echo EXPORTS > $output_objdir/$soname.def;
10094         cat $export_symbols >> $output_objdir/$soname.def;
10095       fi~
10096       $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'
10097     else
10098       ld_shlibs_CXX=no
10099     fi
10100   ;;
10101
10102   darwin* | rhapsody*)
10103   if test "$GXX" = yes; then
10104     archive_cmds_need_lc_CXX=no
10105     case "$host_os" in
10106     rhapsody* | darwin1.[012])
10107       allow_undefined_flag_CXX='-undefined suppress'
10108       ;;
10109     *) # Darwin 1.3 on
10110       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10111         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10112       else
10113         case ${MACOSX_DEPLOYMENT_TARGET} in
10114           10.[012])
10115             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10116             ;;
10117           10.*)
10118             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10119             ;;
10120         esac
10121       fi
10122       ;;
10123     esac
10124     lt_int_apple_cc_single_mod=no
10125     output_verbose_link_cmd='echo'
10126     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10127       lt_int_apple_cc_single_mod=yes
10128     fi
10129     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10130       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10131     else
10132       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10133     fi
10134     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10135
10136     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10137     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10138       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}'
10139     else
10140       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10141     fi
10142     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}'
10143     hardcode_direct_CXX=no
10144     hardcode_automatic_CXX=yes
10145     hardcode_shlibpath_var_CXX=unsupported
10146     whole_archive_flag_spec_CXX='-all_load $convenience'
10147     link_all_deplibs_CXX=yes
10148   else
10149     ld_shlibs_CXX=no
10150   fi
10151     ;;
10152
10153   dgux*)
10154     case $cc_basename in
10155       ec++)
10156         # FIXME: insert proper C++ library support
10157         ld_shlibs_CXX=no
10158         ;;
10159       ghcx)
10160         # Green Hills C++ Compiler
10161         # FIXME: insert proper C++ library support
10162         ld_shlibs_CXX=no
10163         ;;
10164       *)
10165         # FIXME: insert proper C++ library support
10166         ld_shlibs_CXX=no
10167         ;;
10168     esac
10169     ;;
10170   freebsd12*)
10171     # C++ shared libraries reported to be fairly broken before switch to ELF
10172     ld_shlibs_CXX=no
10173     ;;
10174   freebsd-elf*)
10175     archive_cmds_need_lc_CXX=no
10176     ;;
10177   freebsd* | kfreebsd*-gnu)
10178     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10179     # conventions
10180     ld_shlibs_CXX=yes
10181     ;;
10182   gnu*)
10183     ;;
10184   hpux9*)
10185     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10186     hardcode_libdir_separator_CXX=:
10187     export_dynamic_flag_spec_CXX='${wl}-E'
10188     hardcode_direct_CXX=yes
10189     hardcode_minus_L_CXX=yes # Not in the search PATH,
10190                                 # but as the default
10191                                 # location of the library.
10192
10193     case $cc_basename in
10194     CC)
10195       # FIXME: insert proper C++ library support
10196       ld_shlibs_CXX=no
10197       ;;
10198     aCC)
10199       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'
10200       # Commands to make compiler produce verbose output that lists
10201       # what "hidden" libraries, object files and flags are used when
10202       # linking a shared library.
10203       #
10204       # There doesn't appear to be a way to prevent this compiler from
10205       # explicitly linking system object files so we need to strip them
10206       # from the output so that they don't get included in the library
10207       # dependencies.
10208       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'
10209       ;;
10210     *)
10211       if test "$GXX" = yes; then
10212         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'
10213       else
10214         # FIXME: insert proper C++ library support
10215         ld_shlibs_CXX=no
10216       fi
10217       ;;
10218     esac
10219     ;;
10220   hpux10*|hpux11*)
10221     if test $with_gnu_ld = no; then
10222       case "$host_cpu" in
10223       hppa*64*)
10224         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10225         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10226         hardcode_libdir_separator_CXX=:
10227         ;;
10228       ia64*)
10229         hardcode_libdir_flag_spec_CXX='-L$libdir'
10230         ;;
10231       *)
10232         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10233         hardcode_libdir_separator_CXX=:
10234         export_dynamic_flag_spec_CXX='${wl}-E'
10235         ;;
10236       esac
10237     fi
10238     case "$host_cpu" in
10239     hppa*64*)
10240       hardcode_direct_CXX=no
10241       hardcode_shlibpath_var_CXX=no
10242       ;;
10243     ia64*)
10244       hardcode_direct_CXX=no
10245       hardcode_shlibpath_var_CXX=no
10246       hardcode_minus_L_CXX=yes # Not in the search PATH,
10247                                               # but as the default
10248                                               # location of the library.
10249       ;;
10250     *)
10251       hardcode_direct_CXX=yes
10252       hardcode_minus_L_CXX=yes # Not in the search PATH,
10253                                               # but as the default
10254                                               # location of the library.
10255       ;;
10256     esac
10257
10258     case $cc_basename in
10259       CC)
10260         # FIXME: insert proper C++ library support
10261         ld_shlibs_CXX=no
10262         ;;
10263       aCC)
10264         case "$host_cpu" in
10265         hppa*64*|ia64*)
10266           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10267           ;;
10268         *)
10269           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10270           ;;
10271         esac
10272         # Commands to make compiler produce verbose output that lists
10273         # what "hidden" libraries, object files and flags are used when
10274         # linking a shared library.
10275         #
10276         # There doesn't appear to be a way to prevent this compiler from
10277         # explicitly linking system object files so we need to strip them
10278         # from the output so that they don't get included in the library
10279         # dependencies.
10280         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'
10281         ;;
10282       *)
10283         if test "$GXX" = yes; then
10284           if test $with_gnu_ld = no; then
10285             case "$host_cpu" in
10286             ia64*|hppa*64*)
10287               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10288               ;;
10289             *)
10290               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'
10291               ;;
10292             esac
10293           fi
10294         else
10295           # FIXME: insert proper C++ library support
10296           ld_shlibs_CXX=no
10297         fi
10298         ;;
10299     esac
10300     ;;
10301   irix5* | irix6*)
10302     case $cc_basename in
10303       CC)
10304         # SGI C++
10305         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10306
10307         # Archives containing C++ object files must be created using
10308         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10309         # necessary to make sure instantiated templates are included
10310         # in the archive.
10311         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10312         ;;
10313       *)
10314         if test "$GXX" = yes; then
10315           if test "$with_gnu_ld" = no; then
10316             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10317           else
10318             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'
10319           fi
10320         fi
10321         link_all_deplibs_CXX=yes
10322         ;;
10323     esac
10324     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10325     hardcode_libdir_separator_CXX=:
10326     ;;
10327   linux*)
10328     case $cc_basename in
10329       KCC)
10330         # Kuck and Associates, Inc. (KAI) C++ Compiler
10331
10332         # KCC will only create a shared library if the output file
10333         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10334         # to its proper name (with version) after linking.
10335         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'
10336         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'
10337         # Commands to make compiler produce verbose output that lists
10338         # what "hidden" libraries, object files and flags are used when
10339         # linking a shared library.
10340         #
10341         # There doesn't appear to be a way to prevent this compiler from
10342         # explicitly linking system object files so we need to strip them
10343         # from the output so that they don't get included in the library
10344         # dependencies.
10345         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'
10346
10347         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10348         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10349
10350         # Archives containing C++ object files must be created using
10351         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10352         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10353         ;;
10354       icpc)
10355         # Intel C++
10356         with_gnu_ld=yes
10357         archive_cmds_need_lc_CXX=no
10358         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10359         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'
10360         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10361         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10362         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10363         ;;
10364       cxx)
10365         # Compaq C++
10366         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10367         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'
10368
10369         runpath_var=LD_RUN_PATH
10370         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10371         hardcode_libdir_separator_CXX=:
10372
10373         # Commands to make compiler produce verbose output that lists
10374         # what "hidden" libraries, object files and flags are used when
10375         # linking a shared library.
10376         #
10377         # There doesn't appear to be a way to prevent this compiler from
10378         # explicitly linking system object files so we need to strip them
10379         # from the output so that they don't get included in the library
10380         # dependencies.
10381         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'
10382         ;;
10383     esac
10384     ;;
10385   lynxos*)
10386     # FIXME: insert proper C++ library support
10387     ld_shlibs_CXX=no
10388     ;;
10389   m88k*)
10390     # FIXME: insert proper C++ library support
10391     ld_shlibs_CXX=no
10392     ;;
10393   mvs*)
10394     case $cc_basename in
10395       cxx)
10396         # FIXME: insert proper C++ library support
10397         ld_shlibs_CXX=no
10398         ;;
10399       *)
10400         # FIXME: insert proper C++ library support
10401         ld_shlibs_CXX=no
10402         ;;
10403     esac
10404     ;;
10405   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10406     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10407       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10408       wlarc=
10409       hardcode_libdir_flag_spec_CXX='-R$libdir'
10410       hardcode_direct_CXX=yes
10411       hardcode_shlibpath_var_CXX=no
10412     fi
10413     # Workaround some broken pre-1.5 toolchains
10414     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10415     ;;
10416   osf3*)
10417     case $cc_basename in
10418       KCC)
10419         # Kuck and Associates, Inc. (KAI) C++ Compiler
10420
10421         # KCC will only create a shared library if the output file
10422         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10423         # to its proper name (with version) after linking.
10424         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'
10425
10426         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10427         hardcode_libdir_separator_CXX=:
10428
10429         # Archives containing C++ object files must be created using
10430         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10431         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10432
10433         ;;
10434       RCC)
10435         # Rational C++ 2.4.1
10436         # FIXME: insert proper C++ library support
10437         ld_shlibs_CXX=no
10438         ;;
10439       cxx)
10440         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10441         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10442
10443         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10444         hardcode_libdir_separator_CXX=:
10445
10446         # Commands to make compiler produce verbose output that lists
10447         # what "hidden" libraries, object files and flags are used when
10448         # linking a shared library.
10449         #
10450         # There doesn't appear to be a way to prevent this compiler from
10451         # explicitly linking system object files so we need to strip them
10452         # from the output so that they don't get included in the library
10453         # dependencies.
10454         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'
10455         ;;
10456       *)
10457         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10458           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10459           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10460
10461           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10462           hardcode_libdir_separator_CXX=:
10463
10464           # Commands to make compiler produce verbose output that lists
10465           # what "hidden" libraries, object files and flags are used when
10466           # linking a shared library.
10467           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10468
10469         else
10470           # FIXME: insert proper C++ library support
10471           ld_shlibs_CXX=no
10472         fi
10473         ;;
10474     esac
10475     ;;
10476   osf4* | osf5*)
10477     case $cc_basename in
10478       KCC)
10479         # Kuck and Associates, Inc. (KAI) C++ Compiler
10480
10481         # KCC will only create a shared library if the output file
10482         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10483         # to its proper name (with version) after linking.
10484         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'
10485
10486         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10487         hardcode_libdir_separator_CXX=:
10488
10489         # Archives containing C++ object files must be created using
10490         # the KAI C++ compiler.
10491         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10492         ;;
10493       RCC)
10494         # Rational C++ 2.4.1
10495         # FIXME: insert proper C++ library support
10496         ld_shlibs_CXX=no
10497         ;;
10498       cxx)
10499         allow_undefined_flag_CXX=' -expect_unresolved \*'
10500         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10501         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10502           echo "-hidden">> $lib.exp~
10503           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10504           $rm $lib.exp'
10505
10506         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10507         hardcode_libdir_separator_CXX=:
10508
10509         # Commands to make compiler produce verbose output that lists
10510         # what "hidden" libraries, object files and flags are used when
10511         # linking a shared library.
10512         #
10513         # There doesn't appear to be a way to prevent this compiler from
10514         # explicitly linking system object files so we need to strip them
10515         # from the output so that they don't get included in the library
10516         # dependencies.
10517         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'
10518         ;;
10519       *)
10520         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10521           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10522          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10523
10524           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10525           hardcode_libdir_separator_CXX=:
10526
10527           # Commands to make compiler produce verbose output that lists
10528           # what "hidden" libraries, object files and flags are used when
10529           # linking a shared library.
10530           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10531
10532         else
10533           # FIXME: insert proper C++ library support
10534           ld_shlibs_CXX=no
10535         fi
10536         ;;
10537     esac
10538     ;;
10539   psos*)
10540     # FIXME: insert proper C++ library support
10541     ld_shlibs_CXX=no
10542     ;;
10543   sco*)
10544     archive_cmds_need_lc_CXX=no
10545     case $cc_basename in
10546       CC)
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   sunos4*)
10557     case $cc_basename in
10558       CC)
10559         # Sun C++ 4.x
10560         # FIXME: insert proper C++ library support
10561         ld_shlibs_CXX=no
10562         ;;
10563       lcc)
10564         # Lucid
10565         # FIXME: insert proper C++ library support
10566         ld_shlibs_CXX=no
10567         ;;
10568       *)
10569         # FIXME: insert proper C++ library support
10570         ld_shlibs_CXX=no
10571         ;;
10572     esac
10573     ;;
10574   solaris*)
10575     case $cc_basename in
10576       CC)
10577         # Sun C++ 4.2, 5.x and Centerline C++
10578         no_undefined_flag_CXX=' -zdefs'
10579         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10580         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10581         $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'
10582
10583         hardcode_libdir_flag_spec_CXX='-R$libdir'
10584         hardcode_shlibpath_var_CXX=no
10585         case $host_os in
10586           solaris2.0-5 | solaris2.0-5.*) ;;
10587           *)
10588             # The C++ compiler is used as linker so we must use $wl
10589             # flag to pass the commands to the underlying system
10590             # linker.
10591             # Supported since Solaris 2.6 (maybe 2.5.1?)
10592             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10593             ;;
10594         esac
10595         link_all_deplibs_CXX=yes
10596
10597         # Commands to make compiler produce verbose output that lists
10598         # what "hidden" libraries, object files and flags are used when
10599         # linking a shared library.
10600         #
10601         # There doesn't appear to be a way to prevent this compiler from
10602         # explicitly linking system object files so we need to strip them
10603         # from the output so that they don't get included in the library
10604         # dependencies.
10605         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'
10606
10607         # Archives containing C++ object files must be created using
10608         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10609         # necessary to make sure instantiated templates are included
10610         # in the archive.
10611         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10612         ;;
10613       gcx)
10614         # Green Hills C++ Compiler
10615         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10616
10617         # The C++ compiler must be used to create the archive.
10618         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10619         ;;
10620       *)
10621         # GNU C++ compiler with Solaris linker
10622         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10623           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10624           if $CC --version | grep -v '^2\.7' > /dev/null; then
10625             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10626             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10627                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10628
10629             # Commands to make compiler produce verbose output that lists
10630             # what "hidden" libraries, object files and flags are used when
10631             # linking a shared library.
10632             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10633           else
10634             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10635             # platform.
10636             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10637             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10638                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10639
10640             # Commands to make compiler produce verbose output that lists
10641             # what "hidden" libraries, object files and flags are used when
10642             # linking a shared library.
10643             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10644           fi
10645
10646           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10647         fi
10648         ;;
10649     esac
10650     ;;
10651   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10652     archive_cmds_need_lc_CXX=no
10653     ;;
10654   tandem*)
10655     case $cc_basename in
10656       NCC)
10657         # NonStop-UX NCC 3.20
10658         # FIXME: insert proper C++ library support
10659         ld_shlibs_CXX=no
10660         ;;
10661       *)
10662         # FIXME: insert proper C++ library support
10663         ld_shlibs_CXX=no
10664         ;;
10665     esac
10666     ;;
10667   vxworks*)
10668     # FIXME: insert proper C++ library support
10669     ld_shlibs_CXX=no
10670     ;;
10671   *)
10672     # FIXME: insert proper C++ library support
10673     ld_shlibs_CXX=no
10674     ;;
10675 esac
10676 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10677 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10678 test "$ld_shlibs_CXX" = no && can_build_shared=no
10679
10680 GCC_CXX="$GXX"
10681 LD_CXX="$LD"
10682
10683
10684 cat > conftest.$ac_ext <<EOF
10685 class Foo
10686 {
10687 public:
10688   Foo (void) { a = 0; }
10689 private:
10690   int a;
10691 };
10692 EOF
10693
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695   (eval $ac_compile) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; then
10699   # Parse the compiler output and extract the necessary
10700   # objects, libraries and library flags.
10701
10702   # Sentinel used to keep track of whether or not we are before
10703   # the conftest object file.
10704   pre_test_object_deps_done=no
10705
10706   # The `*' in the case matches for architectures that use `case' in
10707   # $output_verbose_cmd can trigger glob expansion during the loop
10708   # eval without this substitution.
10709   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10710
10711   for p in `eval $output_verbose_link_cmd`; do
10712     case $p in
10713
10714     -L* | -R* | -l*)
10715        # Some compilers place space between "-{L,R}" and the path.
10716        # Remove the space.
10717        if test $p = "-L" \
10718           || test $p = "-R"; then
10719          prev=$p
10720          continue
10721        else
10722          prev=
10723        fi
10724
10725        if test "$pre_test_object_deps_done" = no; then
10726          case $p in
10727          -L* | -R*)
10728            # Internal compiler library paths should come after those
10729            # provided the user.  The postdeps already come after the
10730            # user supplied libs so there is no need to process them.
10731            if test -z "$compiler_lib_search_path_CXX"; then
10732              compiler_lib_search_path_CXX="${prev}${p}"
10733            else
10734              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10735            fi
10736            ;;
10737          # The "-l" case would never come before the object being
10738          # linked, so don't bother handling this case.
10739          esac
10740        else
10741          if test -z "$postdeps_CXX"; then
10742            postdeps_CXX="${prev}${p}"
10743          else
10744            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10745          fi
10746        fi
10747        ;;
10748
10749     *.$objext)
10750        # This assumes that the test object file only shows up
10751        # once in the compiler output.
10752        if test "$p" = "conftest.$objext"; then
10753          pre_test_object_deps_done=yes
10754          continue
10755        fi
10756
10757        if test "$pre_test_object_deps_done" = no; then
10758          if test -z "$predep_objects_CXX"; then
10759            predep_objects_CXX="$p"
10760          else
10761            predep_objects_CXX="$predep_objects_CXX $p"
10762          fi
10763        else
10764          if test -z "$postdep_objects_CXX"; then
10765            postdep_objects_CXX="$p"
10766          else
10767            postdep_objects_CXX="$postdep_objects_CXX $p"
10768          fi
10769        fi
10770        ;;
10771
10772     *) ;; # Ignore the rest.
10773
10774     esac
10775   done
10776
10777   # Clean up.
10778   rm -f a.out a.exe
10779 else
10780   echo "libtool.m4: error: problem compiling CXX test program"
10781 fi
10782
10783 $rm -f confest.$objext
10784
10785 case " $postdeps_CXX " in
10786 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10787 esac
10788
10789 lt_prog_compiler_wl_CXX=
10790 lt_prog_compiler_pic_CXX=
10791 lt_prog_compiler_static_CXX=
10792
10793 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10794 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10795
10796   # C++ specific cases for pic, static, wl, etc.
10797   if test "$GXX" = yes; then
10798     lt_prog_compiler_wl_CXX='-Wl,'
10799     lt_prog_compiler_static_CXX='-static'
10800
10801     case $host_os in
10802     aix*)
10803       # All AIX code is PIC.
10804       if test "$host_cpu" = ia64; then
10805         # AIX 5 now supports IA64 processor
10806         lt_prog_compiler_static_CXX='-Bstatic'
10807       fi
10808       ;;
10809     amigaos*)
10810       # FIXME: we need at least 68020 code to build shared libraries, but
10811       # adding the `-m68020' flag to GCC prevents building anything better,
10812       # like `-m68040'.
10813       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10814       ;;
10815     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10816       # PIC is the default for these OSes.
10817       ;;
10818     mingw* | os2* | pw32*)
10819       # This hack is so that the source file can tell whether it is being
10820       # built for inclusion in a dll (and should export symbols for example).
10821       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10822       ;;
10823     darwin* | rhapsody*)
10824       # PIC is the default on this platform
10825       # Common symbols not allowed in MH_DYLIB files
10826       lt_prog_compiler_pic_CXX='-fno-common'
10827       ;;
10828     *djgpp*)
10829       # DJGPP does not support shared libraries at all
10830       lt_prog_compiler_pic_CXX=
10831       ;;
10832     sysv4*MP*)
10833       if test -d /usr/nec; then
10834         lt_prog_compiler_pic_CXX=-Kconform_pic
10835       fi
10836       ;;
10837     hpux*)
10838       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10839       # not for PA HP-UX.
10840       case "$host_cpu" in
10841       hppa*64*|ia64*)
10842         ;;
10843       *)
10844         lt_prog_compiler_pic_CXX='-fPIC'
10845         ;;
10846       esac
10847       ;;
10848     *)
10849       lt_prog_compiler_pic_CXX='-fPIC'
10850       ;;
10851     esac
10852   else
10853     case $host_os in
10854       aix4* | aix5*)
10855         # All AIX code is PIC.
10856         if test "$host_cpu" = ia64; then
10857           # AIX 5 now supports IA64 processor
10858           lt_prog_compiler_static_CXX='-Bstatic'
10859         else
10860           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10861         fi
10862         ;;
10863       chorus*)
10864         case $cc_basename in
10865         cxch68)
10866           # Green Hills C++ Compiler
10867           # _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"
10868           ;;
10869         esac
10870         ;;
10871       dgux*)
10872         case $cc_basename in
10873           ec++)
10874             lt_prog_compiler_pic_CXX='-KPIC'
10875             ;;
10876           ghcx)
10877             # Green Hills C++ Compiler
10878             lt_prog_compiler_pic_CXX='-pic'
10879             ;;
10880           *)
10881             ;;
10882         esac
10883         ;;
10884       freebsd* | kfreebsd*-gnu)
10885         # FreeBSD uses GNU C++
10886         ;;
10887       hpux9* | hpux10* | hpux11*)
10888         case $cc_basename in
10889           CC)
10890             lt_prog_compiler_wl_CXX='-Wl,'
10891             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10892             if test "$host_cpu" != ia64; then
10893               lt_prog_compiler_pic_CXX='+Z'
10894             fi
10895             ;;
10896           aCC)
10897             lt_prog_compiler_wl_CXX='-Wl,'
10898             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10899             case "$host_cpu" in
10900             hppa*64*|ia64*)
10901               # +Z the default
10902               ;;
10903             *)
10904               lt_prog_compiler_pic_CXX='+Z'
10905               ;;
10906             esac
10907             ;;
10908           *)
10909             ;;
10910         esac
10911         ;;
10912       irix5* | irix6* | nonstopux*)
10913         case $cc_basename in
10914           CC)
10915             lt_prog_compiler_wl_CXX='-Wl,'
10916             lt_prog_compiler_static_CXX='-non_shared'
10917             # CC pic flag -KPIC is the default.
10918             ;;
10919           *)
10920             ;;
10921         esac
10922         ;;
10923       linux*)
10924         case $cc_basename in
10925           KCC)
10926             # KAI C++ Compiler
10927             lt_prog_compiler_wl_CXX='--backend -Wl,'
10928             lt_prog_compiler_pic_CXX='-fPIC'
10929             ;;
10930           icpc)
10931             # Intel C++
10932             lt_prog_compiler_wl_CXX='-Wl,'
10933             lt_prog_compiler_pic_CXX='-KPIC'
10934             lt_prog_compiler_static_CXX='-static'
10935             ;;
10936           cxx)
10937             # Compaq C++
10938             # Make sure the PIC flag is empty.  It appears that all Alpha
10939             # Linux and Compaq Tru64 Unix objects are PIC.
10940             lt_prog_compiler_pic_CXX=
10941             lt_prog_compiler_static_CXX='-non_shared'
10942             ;;
10943           *)
10944             ;;
10945         esac
10946         ;;
10947       lynxos*)
10948         ;;
10949       m88k*)
10950         ;;
10951       mvs*)
10952         case $cc_basename in
10953           cxx)
10954             lt_prog_compiler_pic_CXX='-W c,exportall'
10955             ;;
10956           *)
10957             ;;
10958         esac
10959         ;;
10960       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10961         ;;
10962       osf3* | osf4* | osf5*)
10963         case $cc_basename in
10964           KCC)
10965             lt_prog_compiler_wl_CXX='--backend -Wl,'
10966             ;;
10967           RCC)
10968             # Rational C++ 2.4.1
10969             lt_prog_compiler_pic_CXX='-pic'
10970             ;;
10971           cxx)
10972             # Digital/Compaq C++
10973             lt_prog_compiler_wl_CXX='-Wl,'
10974             # Make sure the PIC flag is empty.  It appears that all Alpha
10975             # Linux and Compaq Tru64 Unix objects are PIC.
10976             lt_prog_compiler_pic_CXX=
10977             lt_prog_compiler_static_CXX='-non_shared'
10978             ;;
10979           *)
10980             ;;
10981         esac
10982         ;;
10983       psos*)
10984         ;;
10985       sco*)
10986         case $cc_basename in
10987           CC)
10988             lt_prog_compiler_pic_CXX='-fPIC'
10989             ;;
10990           *)
10991             ;;
10992         esac
10993         ;;
10994       solaris*)
10995         case $cc_basename in
10996           CC)
10997             # Sun C++ 4.2, 5.x and Centerline C++
10998             lt_prog_compiler_pic_CXX='-KPIC'
10999             lt_prog_compiler_static_CXX='-Bstatic'
11000             lt_prog_compiler_wl_CXX='-Qoption ld '
11001             ;;
11002           gcx)
11003             # Green Hills C++ Compiler
11004             lt_prog_compiler_pic_CXX='-PIC'
11005             ;;
11006           *)
11007             ;;
11008         esac
11009         ;;
11010       sunos4*)
11011         case $cc_basename in
11012           CC)
11013             # Sun C++ 4.x
11014             lt_prog_compiler_pic_CXX='-pic'
11015             lt_prog_compiler_static_CXX='-Bstatic'
11016             ;;
11017           lcc)
11018             # Lucid
11019             lt_prog_compiler_pic_CXX='-pic'
11020             ;;
11021           *)
11022             ;;
11023         esac
11024         ;;
11025       tandem*)
11026         case $cc_basename in
11027           NCC)
11028             # NonStop-UX NCC 3.20
11029             lt_prog_compiler_pic_CXX='-KPIC'
11030             ;;
11031           *)
11032             ;;
11033         esac
11034         ;;
11035       unixware*)
11036         ;;
11037       vxworks*)
11038         ;;
11039       *)
11040         lt_prog_compiler_can_build_shared_CXX=no
11041         ;;
11042     esac
11043   fi
11044
11045 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11046 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11047
11048 #
11049 # Check to make sure the PIC flag actually works.
11050 #
11051 if test -n "$lt_prog_compiler_pic_CXX"; then
11052
11053 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11054 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11055 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058   lt_prog_compiler_pic_works_CXX=no
11059   ac_outfile=conftest.$ac_objext
11060    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11061    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11062    # Insert the option either (1) after the last *FLAGS variable, or
11063    # (2) before a word containing "conftest.", or (3) at the end.
11064    # Note that $ac_compile itself does not contain backslashes and begins
11065    # with a dollar sign (not a hyphen), so the echo should work correctly.
11066    # The option is referenced via a variable to avoid confusing sed.
11067    lt_compile=`echo "$ac_compile" | $SED \
11068    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11070    -e 's:$: $lt_compiler_flag:'`
11071    (eval echo "\"\$as_me:11071: $lt_compile\"" >&5)
11072    (eval "$lt_compile" 2>conftest.err)
11073    ac_status=$?
11074    cat conftest.err >&5
11075    echo "$as_me:11075: \$? = $ac_status" >&5
11076    if (exit $ac_status) && test -s "$ac_outfile"; then
11077      # The compiler can only warn and ignore the option if not recognized
11078      # So say no if there are warnings
11079      if test ! -s conftest.err; then
11080        lt_prog_compiler_pic_works_CXX=yes
11081      fi
11082    fi
11083    $rm conftest*
11084
11085 fi
11086 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11087 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11088
11089 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11090     case $lt_prog_compiler_pic_CXX in
11091      "" | " "*) ;;
11092      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11093      esac
11094 else
11095     lt_prog_compiler_pic_CXX=
11096      lt_prog_compiler_can_build_shared_CXX=no
11097 fi
11098
11099 fi
11100 case "$host_os" in
11101   # For platforms which do not support PIC, -DPIC is meaningless:
11102   *djgpp*)
11103     lt_prog_compiler_pic_CXX=
11104     ;;
11105   *)
11106     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11107     ;;
11108 esac
11109
11110 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11111 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11112 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   lt_cv_prog_compiler_c_o_CXX=no
11116    $rm -r conftest 2>/dev/null
11117    mkdir conftest
11118    cd conftest
11119    mkdir out
11120    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11121
11122    lt_compiler_flag="-o out/conftest2.$ac_objext"
11123    # Insert the option either (1) after the last *FLAGS variable, or
11124    # (2) before a word containing "conftest.", or (3) at the end.
11125    # Note that $ac_compile itself does not contain backslashes and begins
11126    # with a dollar sign (not a hyphen), so the echo should work correctly.
11127    lt_compile=`echo "$ac_compile" | $SED \
11128    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11129    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11130    -e 's:$: $lt_compiler_flag:'`
11131    (eval echo "\"\$as_me:11131: $lt_compile\"" >&5)
11132    (eval "$lt_compile" 2>out/conftest.err)
11133    ac_status=$?
11134    cat out/conftest.err >&5
11135    echo "$as_me:11135: \$? = $ac_status" >&5
11136    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11137    then
11138      # The compiler can only warn and ignore the option if not recognized
11139      # So say no if there are warnings
11140      if test ! -s out/conftest.err; then
11141        lt_cv_prog_compiler_c_o_CXX=yes
11142      fi
11143    fi
11144    chmod u+w .
11145    $rm conftest*
11146    # SGI C++ compiler will create directory out/ii_files/ for
11147    # template instantiation
11148    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11149    $rm out/* && rmdir out
11150    cd ..
11151    rmdir conftest
11152    $rm conftest*
11153
11154 fi
11155 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11156 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11157
11158
11159 hard_links="nottested"
11160 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11161   # do not overwrite the value of need_locks provided by the user
11162   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11163 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11164   hard_links=yes
11165   $rm conftest*
11166   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11167   touch conftest.a
11168   ln conftest.a conftest.b 2>&5 || hard_links=no
11169   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11170   echo "$as_me:$LINENO: result: $hard_links" >&5
11171 echo "${ECHO_T}$hard_links" >&6
11172   if test "$hard_links" = no; then
11173     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11174 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11175     need_locks=warn
11176   fi
11177 else
11178   need_locks=no
11179 fi
11180
11181 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11182 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11183
11184   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11185   case $host_os in
11186   aix4* | aix5*)
11187     # If we're using GNU nm, then we don't want the "-C" option.
11188     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11189     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11190       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'
11191     else
11192       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'
11193     fi
11194     ;;
11195   pw32*)
11196     export_symbols_cmds_CXX="$ltdll_cmds"
11197   ;;
11198   cygwin* | mingw*)
11199     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11200   ;;
11201   linux*)
11202     link_all_deplibs_CXX=no
11203   ;;
11204   *)
11205     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11206   ;;
11207   esac
11208
11209 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11210 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11211 test "$ld_shlibs_CXX" = no && can_build_shared=no
11212
11213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11214 if test "$GCC" = yes; then
11215   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11216 fi
11217
11218 #
11219 # Do we need to explicitly link libc?
11220 #
11221 case "x$archive_cmds_need_lc_CXX" in
11222 x|xyes)
11223   # Assume -lc should be added
11224   archive_cmds_need_lc_CXX=yes
11225
11226   if test "$enable_shared" = yes && test "$GCC" = yes; then
11227     case $archive_cmds_CXX in
11228     *'~'*)
11229       # FIXME: we may have to deal with multi-command sequences.
11230       ;;
11231     '$CC '*)
11232       # Test whether the compiler implicitly links with -lc since on some
11233       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11234       # to ld, don't add -lc before -lgcc.
11235       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11237       $rm conftest*
11238       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11239
11240       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241   (eval $ac_compile) 2>&5
11242   ac_status=$?
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); } 2>conftest.err; then
11245         soname=conftest
11246         lib=conftest
11247         libobjs=conftest.$ac_objext
11248         deplibs=
11249         wl=$lt_prog_compiler_wl_CXX
11250         compiler_flags=-v
11251         linker_flags=-v
11252         verstring=
11253         output_objdir=.
11254         libname=conftest
11255         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11256         allow_undefined_flag_CXX=
11257         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11258   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11259   ac_status=$?
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); }
11262         then
11263           archive_cmds_need_lc_CXX=no
11264         else
11265           archive_cmds_need_lc_CXX=yes
11266         fi
11267         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11268       else
11269         cat conftest.err 1>&5
11270       fi
11271       $rm conftest*
11272       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11273 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11274       ;;
11275     esac
11276   fi
11277   ;;
11278 esac
11279
11280 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11281 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11282 library_names_spec=
11283 libname_spec='lib$name'
11284 soname_spec=
11285 shrext_cmds=".so"
11286 postinstall_cmds=
11287 postuninstall_cmds=
11288 finish_cmds=
11289 finish_eval=
11290 shlibpath_var=
11291 shlibpath_overrides_runpath=unknown
11292 version_type=none
11293 dynamic_linker="$host_os ld.so"
11294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11295 if test "$GCC" = yes; then
11296   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11297   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11298     # if the path contains ";" then we assume it to be the separator
11299     # otherwise default to the standard path separator (i.e. ":") - it is
11300     # assumed that no part of a normal pathname contains ";" but that should
11301     # okay in the real world where ";" in dirpaths is itself problematic.
11302     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11303   else
11304     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11305   fi
11306 else
11307   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11308 fi
11309 need_lib_prefix=unknown
11310 hardcode_into_libs=no
11311
11312 # when you set need_version to no, make sure it does not cause -set_version
11313 # flags to be left without arguments
11314 need_version=unknown
11315
11316 case $host_os in
11317 aix3*)
11318   version_type=linux
11319   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11320   shlibpath_var=LIBPATH
11321
11322   # AIX 3 has no versioning support, so we append a major version to the name.
11323   soname_spec='${libname}${release}${shared_ext}$major'
11324   ;;
11325
11326 aix4* | aix5*)
11327   version_type=linux
11328   need_lib_prefix=no
11329   need_version=no
11330   hardcode_into_libs=yes
11331   if test "$host_cpu" = ia64; then
11332     # AIX 5 supports IA64
11333     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11334     shlibpath_var=LD_LIBRARY_PATH
11335   else
11336     # With GCC up to 2.95.x, collect2 would create an import file
11337     # for dependence libraries.  The import file would start with
11338     # the line `#! .'.  This would cause the generated library to
11339     # depend on `.', always an invalid library.  This was fixed in
11340     # development snapshots of GCC prior to 3.0.
11341     case $host_os in
11342       aix4 | aix4.[01] | aix4.[01].*)
11343       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11344            echo ' yes '
11345            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11346         :
11347       else
11348         can_build_shared=no
11349       fi
11350       ;;
11351     esac
11352     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11353     # soname into executable. Probably we can add versioning support to
11354     # collect2, so additional links can be useful in future.
11355     if test "$aix_use_runtimelinking" = yes; then
11356       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11357       # instead of lib<name>.a to let people know that these are not
11358       # typical AIX shared libraries.
11359       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360     else
11361       # We preserve .a as extension for shared libraries through AIX4.2
11362       # and later when we are not doing run time linking.
11363       library_names_spec='${libname}${release}.a $libname.a'
11364       soname_spec='${libname}${release}${shared_ext}$major'
11365     fi
11366     shlibpath_var=LIBPATH
11367   fi
11368   ;;
11369
11370 amigaos*)
11371   library_names_spec='$libname.ixlibrary $libname.a'
11372   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373   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'
11374   ;;
11375
11376 beos*)
11377   library_names_spec='${libname}${shared_ext}'
11378   dynamic_linker="$host_os ld.so"
11379   shlibpath_var=LIBRARY_PATH
11380   ;;
11381
11382 bsdi4*)
11383   version_type=linux
11384   need_version=no
11385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386   soname_spec='${libname}${release}${shared_ext}$major'
11387   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11388   shlibpath_var=LD_LIBRARY_PATH
11389   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11390   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11391   # the default ld.so.conf also contains /usr/contrib/lib and
11392   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11393   # libtool to hard-code these into programs
11394   ;;
11395
11396 cygwin* | mingw* | pw32*)
11397   version_type=windows
11398   shrext_cmds=".dll"
11399   need_version=no
11400   need_lib_prefix=no
11401
11402   case $GCC,$host_os in
11403   yes,cygwin* | yes,mingw* | yes,pw32*)
11404     library_names_spec='$libname.dll.a'
11405     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11406     postinstall_cmds='base_file=`basename \${file}`~
11407       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11408       dldir=$destdir/`dirname \$dlpath`~
11409       test -d \$dldir || mkdir -p \$dldir~
11410       $install_prog $dir/$dlname \$dldir/$dlname'
11411     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11412       dlpath=$dir/\$dldll~
11413        $rm \$dlpath'
11414     shlibpath_overrides_runpath=yes
11415
11416     case $host_os in
11417     cygwin*)
11418       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11419       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11420       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11421       ;;
11422     mingw*)
11423       # MinGW DLLs use traditional 'lib' prefix
11424       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11425       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11426       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11427         # It is most probably a Windows format PATH printed by
11428         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11429         # path with ; separators, and with drive letters. We can handle the
11430         # drive letters (cygwin fileutils understands them), so leave them,
11431         # especially as we might pass files found there to a mingw objdump,
11432         # which wouldn't understand a cygwinified path. Ahh.
11433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11434       else
11435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11436       fi
11437       ;;
11438     pw32*)
11439       # pw32 DLLs use 'pw' prefix rather than 'lib'
11440       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11441       ;;
11442     esac
11443     ;;
11444
11445   *)
11446     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11447     ;;
11448   esac
11449   dynamic_linker='Win32 ld.exe'
11450   # FIXME: first we should search . and the directory the executable is in
11451   shlibpath_var=PATH
11452   ;;
11453
11454 darwin* | rhapsody*)
11455   dynamic_linker="$host_os dyld"
11456   version_type=darwin
11457   need_lib_prefix=no
11458   need_version=no
11459   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11460   soname_spec='${libname}${release}${major}$shared_ext'
11461   shlibpath_overrides_runpath=yes
11462   shlibpath_var=DYLD_LIBRARY_PATH
11463   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11464   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11465   if test "$GCC" = yes; then
11466     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"`
11467   else
11468     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11469   fi
11470   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11471   ;;
11472
11473 dgux*)
11474   version_type=linux
11475   need_lib_prefix=no
11476   need_version=no
11477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11478   soname_spec='${libname}${release}${shared_ext}$major'
11479   shlibpath_var=LD_LIBRARY_PATH
11480   ;;
11481
11482 freebsd1*)
11483   dynamic_linker=no
11484   ;;
11485
11486 kfreebsd*-gnu)
11487   version_type=linux
11488   need_lib_prefix=no
11489   need_version=no
11490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11491   soname_spec='${libname}${release}${shared_ext}$major'
11492   shlibpath_var=LD_LIBRARY_PATH
11493   shlibpath_overrides_runpath=no
11494   hardcode_into_libs=yes
11495   dynamic_linker='GNU ld.so'
11496   ;;
11497
11498 freebsd*)
11499   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11500   version_type=freebsd-$objformat
11501   case $version_type in
11502     freebsd-elf*)
11503       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11504       need_version=no
11505       need_lib_prefix=no
11506       ;;
11507     freebsd-*)
11508       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11509       need_version=yes
11510       ;;
11511   esac
11512   shlibpath_var=LD_LIBRARY_PATH
11513   case $host_os in
11514   freebsd2*)
11515     shlibpath_overrides_runpath=yes
11516     ;;
11517   freebsd3.01* | freebsdelf3.01*)
11518     shlibpath_overrides_runpath=yes
11519     hardcode_into_libs=yes
11520     ;;
11521   *) # from 3.2 on
11522     shlibpath_overrides_runpath=no
11523     hardcode_into_libs=yes
11524     ;;
11525   esac
11526   ;;
11527
11528 gnu*)
11529   version_type=linux
11530   need_lib_prefix=no
11531   need_version=no
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11533   soname_spec='${libname}${release}${shared_ext}$major'
11534   shlibpath_var=LD_LIBRARY_PATH
11535   hardcode_into_libs=yes
11536   ;;
11537
11538 hpux9* | hpux10* | hpux11*)
11539   # Give a soname corresponding to the major version so that dld.sl refuses to
11540   # link against other versions.
11541   version_type=sunos
11542   need_lib_prefix=no
11543   need_version=no
11544   case "$host_cpu" in
11545   ia64*)
11546     shrext_cmds='.so'
11547     hardcode_into_libs=yes
11548     dynamic_linker="$host_os dld.so"
11549     shlibpath_var=LD_LIBRARY_PATH
11550     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552     soname_spec='${libname}${release}${shared_ext}$major'
11553     if test "X$HPUX_IA64_MODE" = X32; then
11554       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11555     else
11556       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11557     fi
11558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11559     ;;
11560    hppa*64*)
11561      shrext_cmds='.sl'
11562      hardcode_into_libs=yes
11563      dynamic_linker="$host_os dld.sl"
11564      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11565      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11566      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567      soname_spec='${libname}${release}${shared_ext}$major'
11568      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11569      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11570      ;;
11571    *)
11572     shrext_cmds='.sl'
11573     dynamic_linker="$host_os dld.sl"
11574     shlibpath_var=SHLIB_PATH
11575     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577     soname_spec='${libname}${release}${shared_ext}$major'
11578     ;;
11579   esac
11580   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11581   postinstall_cmds='chmod 555 $lib'
11582   ;;
11583
11584 irix5* | irix6* | nonstopux*)
11585   case $host_os in
11586     nonstopux*) version_type=nonstopux ;;
11587     *)
11588         if test "$lt_cv_prog_gnu_ld" = yes; then
11589                 version_type=linux
11590         else
11591                 version_type=irix
11592         fi ;;
11593   esac
11594   need_lib_prefix=no
11595   need_version=no
11596   soname_spec='${libname}${release}${shared_ext}$major'
11597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11598   case $host_os in
11599   irix5* | nonstopux*)
11600     libsuff= shlibsuff=
11601     ;;
11602   *)
11603     case $LD in # libtool.m4 will add one of these switches to LD
11604     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11605       libsuff= shlibsuff= libmagic=32-bit;;
11606     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11607       libsuff=32 shlibsuff=N32 libmagic=N32;;
11608     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11609       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11610     *) libsuff= shlibsuff= libmagic=never-match;;
11611     esac
11612     ;;
11613   esac
11614   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11615   shlibpath_overrides_runpath=no
11616   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11617   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11618   hardcode_into_libs=yes
11619   ;;
11620
11621 # No shared lib support for Linux oldld, aout, or coff.
11622 linux*oldld* | linux*aout* | linux*coff*)
11623   dynamic_linker=no
11624   ;;
11625
11626 # This must be Linux ELF.
11627 linux*)
11628   version_type=linux
11629   need_lib_prefix=no
11630   need_version=no
11631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632   soname_spec='${libname}${release}${shared_ext}$major'
11633   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11634   shlibpath_var=LD_LIBRARY_PATH
11635   shlibpath_overrides_runpath=no
11636   # This implies no fast_install, which is unacceptable.
11637   # Some rework will be needed to allow for fast_install
11638   # before this can be enabled.
11639   hardcode_into_libs=yes
11640
11641   # Append ld.so.conf contents to the search path
11642   if test -f /etc/ld.so.conf; then
11643     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11644     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11645   fi
11646
11647   # We used to test for /lib/ld.so.1 and disable shared libraries on
11648   # powerpc, because MkLinux only supported shared libraries with the
11649   # GNU dynamic linker.  Since this was broken with cross compilers,
11650   # most powerpc-linux boxes support dynamic linking these days and
11651   # people can always --disable-shared, the test was removed, and we
11652   # assume the GNU/Linux dynamic linker is in use.
11653   dynamic_linker='GNU/Linux ld.so'
11654   ;;
11655
11656 netbsdelf*-gnu)
11657   version_type=linux
11658   need_lib_prefix=no
11659   need_version=no
11660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11661   soname_spec='${libname}${release}${shared_ext}$major'
11662   shlibpath_var=LD_LIBRARY_PATH
11663   shlibpath_overrides_runpath=no
11664   hardcode_into_libs=yes
11665   dynamic_linker='NetBSD ld.elf_so'
11666   ;;
11667
11668 knetbsd*-gnu)
11669   version_type=linux
11670   need_lib_prefix=no
11671   need_version=no
11672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11673   soname_spec='${libname}${release}${shared_ext}$major'
11674   shlibpath_var=LD_LIBRARY_PATH
11675   shlibpath_overrides_runpath=no
11676   hardcode_into_libs=yes
11677   dynamic_linker='GNU ld.so'
11678   ;;
11679
11680 netbsd*)
11681   version_type=sunos
11682   need_lib_prefix=no
11683   need_version=no
11684   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11686     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11687     dynamic_linker='NetBSD (a.out) ld.so'
11688   else
11689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11690     soname_spec='${libname}${release}${shared_ext}$major'
11691     dynamic_linker='NetBSD ld.elf_so'
11692   fi
11693   shlibpath_var=LD_LIBRARY_PATH
11694   shlibpath_overrides_runpath=yes
11695   hardcode_into_libs=yes
11696   ;;
11697
11698 newsos6)
11699   version_type=linux
11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701   shlibpath_var=LD_LIBRARY_PATH
11702   shlibpath_overrides_runpath=yes
11703   ;;
11704
11705 nto-qnx*)
11706   version_type=linux
11707   need_lib_prefix=no
11708   need_version=no
11709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710   soname_spec='${libname}${release}${shared_ext}$major'
11711   shlibpath_var=LD_LIBRARY_PATH
11712   shlibpath_overrides_runpath=yes
11713   ;;
11714
11715 openbsd*)
11716   version_type=sunos
11717   need_lib_prefix=no
11718   need_version=yes
11719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11720   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11721   shlibpath_var=LD_LIBRARY_PATH
11722   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11723     case $host_os in
11724       openbsd2.[89] | openbsd2.[89].*)
11725         shlibpath_overrides_runpath=no
11726         ;;
11727       *)
11728         shlibpath_overrides_runpath=yes
11729         ;;
11730       esac
11731   else
11732     shlibpath_overrides_runpath=yes
11733   fi
11734   ;;
11735
11736 os2*)
11737   libname_spec='$name'
11738   shrext_cmds=".dll"
11739   need_lib_prefix=no
11740   library_names_spec='$libname${shared_ext} $libname.a'
11741   dynamic_linker='OS/2 ld.exe'
11742   shlibpath_var=LIBPATH
11743   ;;
11744
11745 osf3* | osf4* | osf5*)
11746   version_type=osf
11747   need_lib_prefix=no
11748   need_version=no
11749   soname_spec='${libname}${release}${shared_ext}$major'
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751   shlibpath_var=LD_LIBRARY_PATH
11752   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11753   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11754   ;;
11755
11756 sco3.2v5*)
11757   version_type=osf
11758   soname_spec='${libname}${release}${shared_ext}$major'
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   shlibpath_var=LD_LIBRARY_PATH
11761   ;;
11762
11763 solaris*)
11764   version_type=linux
11765   need_lib_prefix=no
11766   need_version=no
11767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768   soname_spec='${libname}${release}${shared_ext}$major'
11769   shlibpath_var=LD_LIBRARY_PATH
11770   shlibpath_overrides_runpath=yes
11771   hardcode_into_libs=yes
11772   # ldd complains unless libraries are executable
11773   postinstall_cmds='chmod +x $lib'
11774   ;;
11775
11776 sunos4*)
11777   version_type=sunos
11778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11779   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11780   shlibpath_var=LD_LIBRARY_PATH
11781   shlibpath_overrides_runpath=yes
11782   if test "$with_gnu_ld" = yes; then
11783     need_lib_prefix=no
11784   fi
11785   need_version=yes
11786   ;;
11787
11788 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11789   version_type=linux
11790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791   soname_spec='${libname}${release}${shared_ext}$major'
11792   shlibpath_var=LD_LIBRARY_PATH
11793   case $host_vendor in
11794     sni)
11795       shlibpath_overrides_runpath=no
11796       need_lib_prefix=no
11797       export_dynamic_flag_spec='${wl}-Blargedynsym'
11798       runpath_var=LD_RUN_PATH
11799       ;;
11800     siemens)
11801       need_lib_prefix=no
11802       ;;
11803     motorola)
11804       need_lib_prefix=no
11805       need_version=no
11806       shlibpath_overrides_runpath=no
11807       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11808       ;;
11809   esac
11810   ;;
11811
11812 sysv4*MP*)
11813   if test -d /usr/nec ;then
11814     version_type=linux
11815     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11816     soname_spec='$libname${shared_ext}.$major'
11817     shlibpath_var=LD_LIBRARY_PATH
11818   fi
11819   ;;
11820
11821 uts4*)
11822   version_type=linux
11823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824   soname_spec='${libname}${release}${shared_ext}$major'
11825   shlibpath_var=LD_LIBRARY_PATH
11826   ;;
11827
11828 *)
11829   dynamic_linker=no
11830   ;;
11831 esac
11832 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11833 echo "${ECHO_T}$dynamic_linker" >&6
11834 test "$dynamic_linker" = no && can_build_shared=no
11835
11836 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11837 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11838 hardcode_action_CXX=
11839 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11840    test -n "$runpath_var CXX" || \
11841    test "X$hardcode_automatic_CXX"="Xyes" ; then
11842
11843   # We can hardcode non-existant directories.
11844   if test "$hardcode_direct_CXX" != no &&
11845      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11846      # have to relink, otherwise we might link with an installed library
11847      # when we should be linking with a yet-to-be-installed one
11848      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11849      test "$hardcode_minus_L_CXX" != no; then
11850     # Linking always hardcodes the temporary library directory.
11851     hardcode_action_CXX=relink
11852   else
11853     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11854     hardcode_action_CXX=immediate
11855   fi
11856 else
11857   # We cannot hardcode anything, or else we can only hardcode existing
11858   # directories.
11859   hardcode_action_CXX=unsupported
11860 fi
11861 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11862 echo "${ECHO_T}$hardcode_action_CXX" >&6
11863
11864 if test "$hardcode_action_CXX" = relink; then
11865   # Fast installation is not supported
11866   enable_fast_install=no
11867 elif test "$shlibpath_overrides_runpath" = yes ||
11868      test "$enable_shared" = no; then
11869   # Fast installation is not necessary
11870   enable_fast_install=needless
11871 fi
11872
11873 striplib=
11874 old_striplib=
11875 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11876 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11877 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11878   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11879   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11880   echo "$as_me:$LINENO: result: yes" >&5
11881 echo "${ECHO_T}yes" >&6
11882 else
11883 # FIXME - insert some real tests, host_os isn't really good enough
11884   case $host_os in
11885    darwin*)
11886        if test -n "$STRIP" ; then
11887          striplib="$STRIP -x"
11888          echo "$as_me:$LINENO: result: yes" >&5
11889 echo "${ECHO_T}yes" >&6
11890        else
11891   echo "$as_me:$LINENO: result: no" >&5
11892 echo "${ECHO_T}no" >&6
11893 fi
11894        ;;
11895    *)
11896   echo "$as_me:$LINENO: result: no" >&5
11897 echo "${ECHO_T}no" >&6
11898     ;;
11899   esac
11900 fi
11901
11902 if test "x$enable_dlopen" != xyes; then
11903   enable_dlopen=unknown
11904   enable_dlopen_self=unknown
11905   enable_dlopen_self_static=unknown
11906 else
11907   lt_cv_dlopen=no
11908   lt_cv_dlopen_libs=
11909
11910   case $host_os in
11911   beos*)
11912     lt_cv_dlopen="load_add_on"
11913     lt_cv_dlopen_libs=
11914     lt_cv_dlopen_self=yes
11915     ;;
11916
11917   mingw* | pw32*)
11918     lt_cv_dlopen="LoadLibrary"
11919     lt_cv_dlopen_libs=
11920    ;;
11921
11922   cygwin*)
11923     lt_cv_dlopen="dlopen"
11924     lt_cv_dlopen_libs=
11925    ;;
11926
11927   darwin*)
11928   # if libdl is installed we need to link against it
11929     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11930 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11931 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11932   echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934   ac_check_lib_save_LIBS=$LIBS
11935 LIBS="-ldl  $LIBS"
11936 cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h.  */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h.  */
11942
11943 /* Override any gcc2 internal prototype to avoid an error.  */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 /* We use char because int might match the return type of a gcc2
11948    builtin and then its argument prototype would still apply.  */
11949 char dlopen ();
11950 int
11951 main ()
11952 {
11953 dlopen ();
11954   ;
11955   return 0;
11956 }
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960   (eval $ac_link) 2>conftest.er1
11961   ac_status=$?
11962   grep -v '^ *+' conftest.er1 >conftest.err
11963   rm -f conftest.er1
11964   cat conftest.err >&5
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; } &&
11973          { ac_try='test -s conftest$ac_exeext'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; }; then
11979   ac_cv_lib_dl_dlopen=yes
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 ac_cv_lib_dl_dlopen=no
11985 fi
11986 rm -f conftest.err conftest.$ac_objext \
11987       conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11989 fi
11990 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11991 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11992 if test $ac_cv_lib_dl_dlopen = yes; then
11993   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11994 else
11995
11996     lt_cv_dlopen="dyld"
11997     lt_cv_dlopen_libs=
11998     lt_cv_dlopen_self=yes
11999
12000 fi
12001
12002    ;;
12003
12004   *)
12005     echo "$as_me:$LINENO: checking for shl_load" >&5
12006 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12007 if test "${ac_cv_func_shl_load+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12018 #define shl_load innocuous_shl_load
12019
12020 /* System header to define __stub macros and hopefully few prototypes,
12021     which can conflict with char shl_load (); below.
12022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12023     <limits.h> exists even on freestanding compilers.  */
12024
12025 #ifdef __STDC__
12026 # include <limits.h>
12027 #else
12028 # include <assert.h>
12029 #endif
12030
12031 #undef shl_load
12032
12033 /* Override any gcc2 internal prototype to avoid an error.  */
12034 #ifdef __cplusplus
12035 extern "C"
12036 {
12037 #endif
12038 /* We use char because int might match the return type of a gcc2
12039    builtin and then its argument prototype would still apply.  */
12040 char shl_load ();
12041 /* The GNU C library defines this for functions which it implements
12042     to always fail with ENOSYS.  Some functions are actually named
12043     something starting with __ and the normal name is an alias.  */
12044 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12045 choke me
12046 #else
12047 char (*f) () = shl_load;
12048 #endif
12049 #ifdef __cplusplus
12050 }
12051 #endif
12052
12053 int
12054 main ()
12055 {
12056 return f != shl_load;
12057   ;
12058   return 0;
12059 }
12060 _ACEOF
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063   (eval $ac_link) 2>conftest.er1
12064   ac_status=$?
12065   grep -v '^ *+' conftest.er1 >conftest.err
12066   rm -f conftest.er1
12067   cat conftest.err >&5
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } &&
12070          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; } &&
12076          { ac_try='test -s conftest$ac_exeext'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   ac_cv_func_shl_load=yes
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 ac_cv_func_shl_load=no
12088 fi
12089 rm -f conftest.err conftest.$ac_objext \
12090       conftest$ac_exeext conftest.$ac_ext
12091 fi
12092 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12093 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12094 if test $ac_cv_func_shl_load = yes; then
12095   lt_cv_dlopen="shl_load"
12096 else
12097   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12098 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12099 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12100   echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102   ac_check_lib_save_LIBS=$LIBS
12103 LIBS="-ldld  $LIBS"
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h.  */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h.  */
12110
12111 /* Override any gcc2 internal prototype to avoid an error.  */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 /* We use char because int might match the return type of a gcc2
12116    builtin and then its argument prototype would still apply.  */
12117 char shl_load ();
12118 int
12119 main ()
12120 {
12121 shl_load ();
12122   ;
12123   return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128   (eval $ac_link) 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } &&
12135          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; } &&
12141          { ac_try='test -s conftest$ac_exeext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_lib_dld_shl_load=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 ac_cv_lib_dld_shl_load=no
12153 fi
12154 rm -f conftest.err conftest.$ac_objext \
12155       conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12157 fi
12158 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12160 if test $ac_cv_lib_dld_shl_load = yes; then
12161   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12162 else
12163   echo "$as_me:$LINENO: checking for dlopen" >&5
12164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12165 if test "${ac_cv_func_dlopen+set}" = set; then
12166   echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168   cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h.  */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h.  */
12174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12176 #define dlopen innocuous_dlopen
12177
12178 /* System header to define __stub macros and hopefully few prototypes,
12179     which can conflict with char dlopen (); below.
12180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181     <limits.h> exists even on freestanding compilers.  */
12182
12183 #ifdef __STDC__
12184 # include <limits.h>
12185 #else
12186 # include <assert.h>
12187 #endif
12188
12189 #undef dlopen
12190
12191 /* Override any gcc2 internal prototype to avoid an error.  */
12192 #ifdef __cplusplus
12193 extern "C"
12194 {
12195 #endif
12196 /* We use char because int might match the return type of a gcc2
12197    builtin and then its argument prototype would still apply.  */
12198 char dlopen ();
12199 /* The GNU C library defines this for functions which it implements
12200     to always fail with ENOSYS.  Some functions are actually named
12201     something starting with __ and the normal name is an alias.  */
12202 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12203 choke me
12204 #else
12205 char (*f) () = dlopen;
12206 #endif
12207 #ifdef __cplusplus
12208 }
12209 #endif
12210
12211 int
12212 main ()
12213 {
12214 return f != dlopen;
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221   (eval $ac_link) 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230   (eval $ac_try) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; } &&
12234          { ac_try='test -s conftest$ac_exeext'
12235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236   (eval $ac_try) 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; }; then
12240   ac_cv_func_dlopen=yes
12241 else
12242   echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12244
12245 ac_cv_func_dlopen=no
12246 fi
12247 rm -f conftest.err conftest.$ac_objext \
12248       conftest$ac_exeext conftest.$ac_ext
12249 fi
12250 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12251 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12252 if test $ac_cv_func_dlopen = yes; then
12253   lt_cv_dlopen="dlopen"
12254 else
12255   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12256 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12257 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12258   echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260   ac_check_lib_save_LIBS=$LIBS
12261 LIBS="-ldl  $LIBS"
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h.  */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h.  */
12268
12269 /* Override any gcc2 internal prototype to avoid an error.  */
12270 #ifdef __cplusplus
12271 extern "C"
12272 #endif
12273 /* We use char because int might match the return type of a gcc2
12274    builtin and then its argument prototype would still apply.  */
12275 char dlopen ();
12276 int
12277 main ()
12278 {
12279 dlopen ();
12280   ;
12281   return 0;
12282 }
12283 _ACEOF
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12286   (eval $ac_link) 2>conftest.er1
12287   ac_status=$?
12288   grep -v '^ *+' conftest.er1 >conftest.err
12289   rm -f conftest.er1
12290   cat conftest.err >&5
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); } &&
12293          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; } &&
12299          { ac_try='test -s conftest$ac_exeext'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; }; then
12305   ac_cv_lib_dl_dlopen=yes
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 ac_cv_lib_dl_dlopen=no
12311 fi
12312 rm -f conftest.err conftest.$ac_objext \
12313       conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12315 fi
12316 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12317 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12318 if test $ac_cv_lib_dl_dlopen = yes; then
12319   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12320 else
12321   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12322 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12323 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-lsvld  $LIBS"
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h.  */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h.  */
12334
12335 /* Override any gcc2 internal prototype to avoid an error.  */
12336 #ifdef __cplusplus
12337 extern "C"
12338 #endif
12339 /* We use char because int might match the return type of a gcc2
12340    builtin and then its argument prototype would still apply.  */
12341 char dlopen ();
12342 int
12343 main ()
12344 {
12345 dlopen ();
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352   (eval $ac_link) 2>conftest.er1
12353   ac_status=$?
12354   grep -v '^ *+' conftest.er1 >conftest.err
12355   rm -f conftest.er1
12356   cat conftest.err >&5
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } &&
12359          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365          { ac_try='test -s conftest$ac_exeext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   ac_cv_lib_svld_dlopen=yes
12372 else
12373   echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376 ac_cv_lib_svld_dlopen=no
12377 fi
12378 rm -f conftest.err conftest.$ac_objext \
12379       conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12381 fi
12382 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12383 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12384 if test $ac_cv_lib_svld_dlopen = yes; then
12385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12386 else
12387   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12388 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   ac_check_lib_save_LIBS=$LIBS
12393 LIBS="-ldld  $LIBS"
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h.  */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h.  */
12400
12401 /* Override any gcc2 internal prototype to avoid an error.  */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 /* We use char because int might match the return type of a gcc2
12406    builtin and then its argument prototype would still apply.  */
12407 char dld_link ();
12408 int
12409 main ()
12410 {
12411 dld_link ();
12412   ;
12413   return 0;
12414 }
12415 _ACEOF
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418   (eval $ac_link) 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } &&
12425          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; } &&
12431          { ac_try='test -s conftest$ac_exeext'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   ac_cv_lib_dld_dld_link=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 ac_cv_lib_dld_dld_link=no
12443 fi
12444 rm -f conftest.err conftest.$ac_objext \
12445       conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12447 fi
12448 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12449 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12450 if test $ac_cv_lib_dld_dld_link = yes; then
12451   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12452 fi
12453
12454
12455 fi
12456
12457
12458 fi
12459
12460
12461 fi
12462
12463
12464 fi
12465
12466
12467 fi
12468
12469     ;;
12470   esac
12471
12472   if test "x$lt_cv_dlopen" != xno; then
12473     enable_dlopen=yes
12474   else
12475     enable_dlopen=no
12476   fi
12477
12478   case $lt_cv_dlopen in
12479   dlopen)
12480     save_CPPFLAGS="$CPPFLAGS"
12481     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12482
12483     save_LDFLAGS="$LDFLAGS"
12484     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12485
12486     save_LIBS="$LIBS"
12487     LIBS="$lt_cv_dlopen_libs $LIBS"
12488
12489     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12490 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12491 if test "${lt_cv_dlopen_self+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494           if test "$cross_compiling" = yes; then :
12495   lt_cv_dlopen_self=cross
12496 else
12497   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12498   lt_status=$lt_dlunknown
12499   cat > conftest.$ac_ext <<EOF
12500 #line 12500 "configure"
12501 #include "confdefs.h"
12502
12503 #if HAVE_DLFCN_H
12504 #include <dlfcn.h>
12505 #endif
12506
12507 #include <stdio.h>
12508
12509 #ifdef RTLD_GLOBAL
12510 #  define LT_DLGLOBAL           RTLD_GLOBAL
12511 #else
12512 #  ifdef DL_GLOBAL
12513 #    define LT_DLGLOBAL         DL_GLOBAL
12514 #  else
12515 #    define LT_DLGLOBAL         0
12516 #  endif
12517 #endif
12518
12519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12520    find out it does not work in some platform. */
12521 #ifndef LT_DLLAZY_OR_NOW
12522 #  ifdef RTLD_LAZY
12523 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12524 #  else
12525 #    ifdef DL_LAZY
12526 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12527 #    else
12528 #      ifdef RTLD_NOW
12529 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12530 #      else
12531 #        ifdef DL_NOW
12532 #          define LT_DLLAZY_OR_NOW      DL_NOW
12533 #        else
12534 #          define LT_DLLAZY_OR_NOW      0
12535 #        endif
12536 #      endif
12537 #    endif
12538 #  endif
12539 #endif
12540
12541 #ifdef __cplusplus
12542 extern "C" void exit (int);
12543 #endif
12544
12545 void fnord() { int i=42;}
12546 int main ()
12547 {
12548   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12549   int status = $lt_dlunknown;
12550
12551   if (self)
12552     {
12553       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12554       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12555       /* dlclose (self); */
12556     }
12557
12558     exit (status);
12559 }
12560 EOF
12561   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12562   (eval $ac_link) 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12566     (./conftest; exit; ) 2>/dev/null
12567     lt_status=$?
12568     case x$lt_status in
12569       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12570       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12571       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12572     esac
12573   else :
12574     # compilation failed
12575     lt_cv_dlopen_self=no
12576   fi
12577 fi
12578 rm -fr conftest*
12579
12580
12581 fi
12582 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12583 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12584
12585     if test "x$lt_cv_dlopen_self" = xyes; then
12586       LDFLAGS="$LDFLAGS $link_static_flag"
12587       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12588 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12589 if test "${lt_cv_dlopen_self_static+set}" = set; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592           if test "$cross_compiling" = yes; then :
12593   lt_cv_dlopen_self_static=cross
12594 else
12595   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12596   lt_status=$lt_dlunknown
12597   cat > conftest.$ac_ext <<EOF
12598 #line 12598 "configure"
12599 #include "confdefs.h"
12600
12601 #if HAVE_DLFCN_H
12602 #include <dlfcn.h>
12603 #endif
12604
12605 #include <stdio.h>
12606
12607 #ifdef RTLD_GLOBAL
12608 #  define LT_DLGLOBAL           RTLD_GLOBAL
12609 #else
12610 #  ifdef DL_GLOBAL
12611 #    define LT_DLGLOBAL         DL_GLOBAL
12612 #  else
12613 #    define LT_DLGLOBAL         0
12614 #  endif
12615 #endif
12616
12617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12618    find out it does not work in some platform. */
12619 #ifndef LT_DLLAZY_OR_NOW
12620 #  ifdef RTLD_LAZY
12621 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12622 #  else
12623 #    ifdef DL_LAZY
12624 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12625 #    else
12626 #      ifdef RTLD_NOW
12627 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12628 #      else
12629 #        ifdef DL_NOW
12630 #          define LT_DLLAZY_OR_NOW      DL_NOW
12631 #        else
12632 #          define LT_DLLAZY_OR_NOW      0
12633 #        endif
12634 #      endif
12635 #    endif
12636 #  endif
12637 #endif
12638
12639 #ifdef __cplusplus
12640 extern "C" void exit (int);
12641 #endif
12642
12643 void fnord() { int i=42;}
12644 int main ()
12645 {
12646   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12647   int status = $lt_dlunknown;
12648
12649   if (self)
12650     {
12651       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12652       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12653       /* dlclose (self); */
12654     }
12655
12656     exit (status);
12657 }
12658 EOF
12659   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660   (eval $ac_link) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12664     (./conftest; exit; ) 2>/dev/null
12665     lt_status=$?
12666     case x$lt_status in
12667       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12668       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12669       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12670     esac
12671   else :
12672     # compilation failed
12673     lt_cv_dlopen_self_static=no
12674   fi
12675 fi
12676 rm -fr conftest*
12677
12678
12679 fi
12680 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12681 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12682     fi
12683
12684     CPPFLAGS="$save_CPPFLAGS"
12685     LDFLAGS="$save_LDFLAGS"
12686     LIBS="$save_LIBS"
12687     ;;
12688   esac
12689
12690   case $lt_cv_dlopen_self in
12691   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12692   *) enable_dlopen_self=unknown ;;
12693   esac
12694
12695   case $lt_cv_dlopen_self_static in
12696   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12697   *) enable_dlopen_self_static=unknown ;;
12698   esac
12699 fi
12700
12701
12702 # The else clause should only fire when bootstrapping the
12703 # libtool distribution, otherwise you forgot to ship ltmain.sh
12704 # with your package, and you will get complaints that there are
12705 # no rules to generate ltmain.sh.
12706 if test -f "$ltmain"; then
12707   # See if we are running on zsh, and set the options which allow our commands through
12708   # without removal of \ escapes.
12709   if test -n "${ZSH_VERSION+set}" ; then
12710     setopt NO_GLOB_SUBST
12711   fi
12712   # Now quote all the things that may contain metacharacters while being
12713   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12714   # variables and quote the copies for generation of the libtool script.
12715   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12716     SED SHELL STRIP \
12717     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12718     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12719     deplibs_check_method reload_flag reload_cmds need_locks \
12720     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12721     lt_cv_sys_global_symbol_to_c_name_address \
12722     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12723     old_postinstall_cmds old_postuninstall_cmds \
12724     compiler_CXX \
12725     CC_CXX \
12726     LD_CXX \
12727     lt_prog_compiler_wl_CXX \
12728     lt_prog_compiler_pic_CXX \
12729     lt_prog_compiler_static_CXX \
12730     lt_prog_compiler_no_builtin_flag_CXX \
12731     export_dynamic_flag_spec_CXX \
12732     thread_safe_flag_spec_CXX \
12733     whole_archive_flag_spec_CXX \
12734     enable_shared_with_static_runtimes_CXX \
12735     old_archive_cmds_CXX \
12736     old_archive_from_new_cmds_CXX \
12737     predep_objects_CXX \
12738     postdep_objects_CXX \
12739     predeps_CXX \
12740     postdeps_CXX \
12741     compiler_lib_search_path_CXX \
12742     archive_cmds_CXX \
12743     archive_expsym_cmds_CXX \
12744     postinstall_cmds_CXX \
12745     postuninstall_cmds_CXX \
12746     old_archive_from_expsyms_cmds_CXX \
12747     allow_undefined_flag_CXX \
12748     no_undefined_flag_CXX \
12749     export_symbols_cmds_CXX \
12750     hardcode_libdir_flag_spec_CXX \
12751     hardcode_libdir_flag_spec_ld_CXX \
12752     hardcode_libdir_separator_CXX \
12753     hardcode_automatic_CXX \
12754     module_cmds_CXX \
12755     module_expsym_cmds_CXX \
12756     lt_cv_prog_compiler_c_o_CXX \
12757     exclude_expsyms_CXX \
12758     include_expsyms_CXX; do
12759
12760     case $var in
12761     old_archive_cmds_CXX | \
12762     old_archive_from_new_cmds_CXX | \
12763     archive_cmds_CXX | \
12764     archive_expsym_cmds_CXX | \
12765     module_cmds_CXX | \
12766     module_expsym_cmds_CXX | \
12767     old_archive_from_expsyms_cmds_CXX | \
12768     export_symbols_cmds_CXX | \
12769     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12770     postinstall_cmds | postuninstall_cmds | \
12771     old_postinstall_cmds | old_postuninstall_cmds | \
12772     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12773       # Double-quote double-evaled strings.
12774       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12775       ;;
12776     *)
12777       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12778       ;;
12779     esac
12780   done
12781
12782   case $lt_echo in
12783   *'\$0 --fallback-echo"')
12784     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12785     ;;
12786   esac
12787
12788 cfgfile="$ofile"
12789
12790   cat <<__EOF__ >> "$cfgfile"
12791 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12792
12793 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12794
12795 # Shell to use when invoking shell scripts.
12796 SHELL=$lt_SHELL
12797
12798 # Whether or not to build shared libraries.
12799 build_libtool_libs=$enable_shared
12800
12801 # Whether or not to build static libraries.
12802 build_old_libs=$enable_static
12803
12804 # Whether or not to add -lc for building shared libraries.
12805 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12806
12807 # Whether or not to disallow shared libs when runtime libs are static
12808 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12809
12810 # Whether or not to optimize for fast installation.
12811 fast_install=$enable_fast_install
12812
12813 # The host system.
12814 host_alias=$host_alias
12815 host=$host
12816
12817 # An echo program that does not interpret backslashes.
12818 echo=$lt_echo
12819
12820 # The archiver.
12821 AR=$lt_AR
12822 AR_FLAGS=$lt_AR_FLAGS
12823
12824 # A C compiler.
12825 LTCC=$lt_LTCC
12826
12827 # A language-specific compiler.
12828 CC=$lt_compiler_CXX
12829
12830 # Is the compiler the GNU C compiler?
12831 with_gcc=$GCC_CXX
12832
12833 # An ERE matcher.
12834 EGREP=$lt_EGREP
12835
12836 # The linker used to build libraries.
12837 LD=$lt_LD_CXX
12838
12839 # Whether we need hard or soft links.
12840 LN_S=$lt_LN_S
12841
12842 # A BSD-compatible nm program.
12843 NM=$lt_NM
12844
12845 # A symbol stripping program
12846 STRIP=$lt_STRIP
12847
12848 # Used to examine libraries when file_magic_cmd begins "file"
12849 MAGIC_CMD=$MAGIC_CMD
12850
12851 # Used on cygwin: DLL creation program.
12852 DLLTOOL="$DLLTOOL"
12853
12854 # Used on cygwin: object dumper.
12855 OBJDUMP="$OBJDUMP"
12856
12857 # Used on cygwin: assembler.
12858 AS="$AS"
12859
12860 # The name of the directory that contains temporary libtool files.
12861 objdir=$objdir
12862
12863 # How to create reloadable object files.
12864 reload_flag=$lt_reload_flag
12865 reload_cmds=$lt_reload_cmds
12866
12867 # How to pass a linker flag through the compiler.
12868 wl=$lt_lt_prog_compiler_wl_CXX
12869
12870 # Object file suffix (normally "o").
12871 objext="$ac_objext"
12872
12873 # Old archive suffix (normally "a").
12874 libext="$libext"
12875
12876 # Shared library suffix (normally ".so").
12877 shrext_cmds='$shrext_cmds'
12878
12879 # Executable file suffix (normally "").
12880 exeext="$exeext"
12881
12882 # Additional compiler flags for building library objects.
12883 pic_flag=$lt_lt_prog_compiler_pic_CXX
12884 pic_mode=$pic_mode
12885
12886 # What is the maximum length of a command?
12887 max_cmd_len=$lt_cv_sys_max_cmd_len
12888
12889 # Does compiler simultaneously support -c and -o options?
12890 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12891
12892 # Must we lock files when doing compilation ?
12893 need_locks=$lt_need_locks
12894
12895 # Do we need the lib prefix for modules?
12896 need_lib_prefix=$need_lib_prefix
12897
12898 # Do we need a version for libraries?
12899 need_version=$need_version
12900
12901 # Whether dlopen is supported.
12902 dlopen_support=$enable_dlopen
12903
12904 # Whether dlopen of programs is supported.
12905 dlopen_self=$enable_dlopen_self
12906
12907 # Whether dlopen of statically linked programs is supported.
12908 dlopen_self_static=$enable_dlopen_self_static
12909
12910 # Compiler flag to prevent dynamic linking.
12911 link_static_flag=$lt_lt_prog_compiler_static_CXX
12912
12913 # Compiler flag to turn off builtin functions.
12914 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12915
12916 # Compiler flag to allow reflexive dlopens.
12917 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12918
12919 # Compiler flag to generate shared objects directly from archives.
12920 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12921
12922 # Compiler flag to generate thread-safe objects.
12923 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12924
12925 # Library versioning type.
12926 version_type=$version_type
12927
12928 # Format of library name prefix.
12929 libname_spec=$lt_libname_spec
12930
12931 # List of archive names.  First name is the real one, the rest are links.
12932 # The last name is the one that the linker finds with -lNAME.
12933 library_names_spec=$lt_library_names_spec
12934
12935 # The coded name of the library, if different from the real name.
12936 soname_spec=$lt_soname_spec
12937
12938 # Commands used to build and install an old-style archive.
12939 RANLIB=$lt_RANLIB
12940 old_archive_cmds=$lt_old_archive_cmds_CXX
12941 old_postinstall_cmds=$lt_old_postinstall_cmds
12942 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12943
12944 # Create an old-style archive from a shared archive.
12945 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12946
12947 # Create a temporary old-style archive to link instead of a shared archive.
12948 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12949
12950 # Commands used to build and install a shared archive.
12951 archive_cmds=$lt_archive_cmds_CXX
12952 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12953 postinstall_cmds=$lt_postinstall_cmds
12954 postuninstall_cmds=$lt_postuninstall_cmds
12955
12956 # Commands used to build a loadable module (assumed same as above if empty)
12957 module_cmds=$lt_module_cmds_CXX
12958 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12959
12960 # Commands to strip libraries.
12961 old_striplib=$lt_old_striplib
12962 striplib=$lt_striplib
12963
12964 # Dependencies to place before the objects being linked to create a
12965 # shared library.
12966 predep_objects=$lt_predep_objects_CXX
12967
12968 # Dependencies to place after the objects being linked to create a
12969 # shared library.
12970 postdep_objects=$lt_postdep_objects_CXX
12971
12972 # Dependencies to place before the objects being linked to create a
12973 # shared library.
12974 predeps=$lt_predeps_CXX
12975
12976 # Dependencies to place after the objects being linked to create a
12977 # shared library.
12978 postdeps=$lt_postdeps_CXX
12979
12980 # The library search path used internally by the compiler when linking
12981 # a shared library.
12982 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12983
12984 # Method to check whether dependent libraries are shared objects.
12985 deplibs_check_method=$lt_deplibs_check_method
12986
12987 # Command to use when deplibs_check_method == file_magic.
12988 file_magic_cmd=$lt_file_magic_cmd
12989
12990 # Flag that allows shared libraries with undefined symbols to be built.
12991 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12992
12993 # Flag that forces no undefined symbols.
12994 no_undefined_flag=$lt_no_undefined_flag_CXX
12995
12996 # Commands used to finish a libtool library installation in a directory.
12997 finish_cmds=$lt_finish_cmds
12998
12999 # Same as above, but a single script fragment to be evaled but not shown.
13000 finish_eval=$lt_finish_eval
13001
13002 # Take the output of nm and produce a listing of raw symbols and C names.
13003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13004
13005 # Transform the output of nm in a proper C declaration
13006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13007
13008 # Transform the output of nm in a C name address pair
13009 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13010
13011 # This is the shared library runtime path variable.
13012 runpath_var=$runpath_var
13013
13014 # This is the shared library path variable.
13015 shlibpath_var=$shlibpath_var
13016
13017 # Is shlibpath searched before the hard-coded library search path?
13018 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13019
13020 # How to hardcode a shared library path into an executable.
13021 hardcode_action=$hardcode_action_CXX
13022
13023 # Whether we should hardcode library paths into libraries.
13024 hardcode_into_libs=$hardcode_into_libs
13025
13026 # Flag to hardcode \$libdir into a binary during linking.
13027 # This must work even if \$libdir does not exist.
13028 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13029
13030 # If ld is used when linking, flag to hardcode \$libdir into
13031 # a binary during linking. This must work even if \$libdir does
13032 # not exist.
13033 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13034
13035 # Whether we need a single -rpath flag with a separated argument.
13036 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13037
13038 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13039 # resulting binary.
13040 hardcode_direct=$hardcode_direct_CXX
13041
13042 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13043 # resulting binary.
13044 hardcode_minus_L=$hardcode_minus_L_CXX
13045
13046 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13047 # the resulting binary.
13048 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13049
13050 # Set to yes if building a shared library automatically hardcodes DIR into the library
13051 # and all subsequent libraries and executables linked against it.
13052 hardcode_automatic=$hardcode_automatic_CXX
13053
13054 # Variables whose values should be saved in libtool wrapper scripts and
13055 # restored at relink time.
13056 variables_saved_for_relink="$variables_saved_for_relink"
13057
13058 # Whether libtool must link a program against all its dependency libraries.
13059 link_all_deplibs=$link_all_deplibs_CXX
13060
13061 # Compile-time system search path for libraries
13062 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13063
13064 # Run-time system search path for libraries
13065 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13066
13067 # Fix the shell variable \$srcfile for the compiler.
13068 fix_srcfile_path="$fix_srcfile_path_CXX"
13069
13070 # Set to yes if exported symbols are required.
13071 always_export_symbols=$always_export_symbols_CXX
13072
13073 # The commands to list exported symbols.
13074 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13075
13076 # The commands to extract the exported symbol list from a shared archive.
13077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13078
13079 # Symbols that should not be listed in the preloaded symbols.
13080 exclude_expsyms=$lt_exclude_expsyms_CXX
13081
13082 # Symbols that must always be exported.
13083 include_expsyms=$lt_include_expsyms_CXX
13084
13085 # ### END LIBTOOL TAG CONFIG: $tagname
13086
13087 __EOF__
13088
13089
13090 else
13091   # If there is no Makefile yet, we rely on a make rule to execute
13092   # `config.status --recheck' to rerun these tests and create the
13093   # libtool script then.
13094   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13095   if test -f "$ltmain_in"; then
13096     test -f Makefile && make "$ltmain"
13097   fi
13098 fi
13099
13100
13101 ac_ext=c
13102 ac_cpp='$CPP $CPPFLAGS'
13103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13106
13107 CC=$lt_save_CC
13108 LDCXX=$LD
13109 LD=$lt_save_LD
13110 GCC=$lt_save_GCC
13111 with_gnu_ldcxx=$with_gnu_ld
13112 with_gnu_ld=$lt_save_with_gnu_ld
13113 lt_cv_path_LDCXX=$lt_cv_path_LD
13114 lt_cv_path_LD=$lt_save_path_LD
13115 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13116 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13117
13118         else
13119           tagname=""
13120         fi
13121         ;;
13122
13123       F77)
13124         if test -n "$F77" && test "X$F77" != "Xno"; then
13125
13126 ac_ext=f
13127 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13128 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13129 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13130
13131
13132 archive_cmds_need_lc_F77=no
13133 allow_undefined_flag_F77=
13134 always_export_symbols_F77=no
13135 archive_expsym_cmds_F77=
13136 export_dynamic_flag_spec_F77=
13137 hardcode_direct_F77=no
13138 hardcode_libdir_flag_spec_F77=
13139 hardcode_libdir_flag_spec_ld_F77=
13140 hardcode_libdir_separator_F77=
13141 hardcode_minus_L_F77=no
13142 hardcode_automatic_F77=no
13143 module_cmds_F77=
13144 module_expsym_cmds_F77=
13145 link_all_deplibs_F77=unknown
13146 old_archive_cmds_F77=$old_archive_cmds
13147 no_undefined_flag_F77=
13148 whole_archive_flag_spec_F77=
13149 enable_shared_with_static_runtimes_F77=no
13150
13151 # Source file extension for f77 test sources.
13152 ac_ext=f
13153
13154 # Object file extension for compiled f77 test sources.
13155 objext=o
13156 objext_F77=$objext
13157
13158 # Code to be used in simple compile tests
13159 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13160
13161 # Code to be used in simple link tests
13162 lt_simple_link_test_code="      program t\n      end\n"
13163
13164 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13165
13166 # If no C compiler was specified, use CC.
13167 LTCC=${LTCC-"$CC"}
13168
13169 # Allow CC to be a program name with arguments.
13170 compiler=$CC
13171
13172
13173 # Allow CC to be a program name with arguments.
13174 lt_save_CC="$CC"
13175 CC=${F77-"f77"}
13176 compiler=$CC
13177 compiler_F77=$CC
13178 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13179
13180 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13181 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13182 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13183 echo "${ECHO_T}$can_build_shared" >&6
13184
13185 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13186 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13187 test "$can_build_shared" = "no" && enable_shared=no
13188
13189 # On AIX, shared libraries and static libraries use the same namespace, and
13190 # are all built from PIC.
13191 case "$host_os" in
13192 aix3*)
13193   test "$enable_shared" = yes && enable_static=no
13194   if test -n "$RANLIB"; then
13195     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13196     postinstall_cmds='$RANLIB $lib'
13197   fi
13198   ;;
13199 aix4* | aix5*)
13200   test "$enable_shared" = yes && enable_static=no
13201   ;;
13202 esac
13203 echo "$as_me:$LINENO: result: $enable_shared" >&5
13204 echo "${ECHO_T}$enable_shared" >&6
13205
13206 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13207 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13208 # Make sure either enable_shared or enable_static is yes.
13209 test "$enable_shared" = yes || enable_static=yes
13210 echo "$as_me:$LINENO: result: $enable_static" >&5
13211 echo "${ECHO_T}$enable_static" >&6
13212
13213 test "$ld_shlibs_F77" = no && can_build_shared=no
13214
13215 GCC_F77="$G77"
13216 LD_F77="$LD"
13217
13218 lt_prog_compiler_wl_F77=
13219 lt_prog_compiler_pic_F77=
13220 lt_prog_compiler_static_F77=
13221
13222 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13223 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13224
13225   if test "$GCC" = yes; then
13226     lt_prog_compiler_wl_F77='-Wl,'
13227     lt_prog_compiler_static_F77='-static'
13228
13229     case $host_os in
13230       aix*)
13231       # All AIX code is PIC.
13232       if test "$host_cpu" = ia64; then
13233         # AIX 5 now supports IA64 processor
13234         lt_prog_compiler_static_F77='-Bstatic'
13235       fi
13236       ;;
13237
13238     amigaos*)
13239       # FIXME: we need at least 68020 code to build shared libraries, but
13240       # adding the `-m68020' flag to GCC prevents building anything better,
13241       # like `-m68040'.
13242       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13243       ;;
13244
13245     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13246       # PIC is the default for these OSes.
13247       ;;
13248
13249     mingw* | pw32* | os2*)
13250       # This hack is so that the source file can tell whether it is being
13251       # built for inclusion in a dll (and should export symbols for example).
13252       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13253       ;;
13254
13255     darwin* | rhapsody*)
13256       # PIC is the default on this platform
13257       # Common symbols not allowed in MH_DYLIB files
13258       lt_prog_compiler_pic_F77='-fno-common'
13259       ;;
13260
13261     msdosdjgpp*)
13262       # Just because we use GCC doesn't mean we suddenly get shared libraries
13263       # on systems that don't support them.
13264       lt_prog_compiler_can_build_shared_F77=no
13265       enable_shared=no
13266       ;;
13267
13268     sysv4*MP*)
13269       if test -d /usr/nec; then
13270         lt_prog_compiler_pic_F77=-Kconform_pic
13271       fi
13272       ;;
13273
13274     hpux*)
13275       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13276       # not for PA HP-UX.
13277       case "$host_cpu" in
13278       hppa*64*|ia64*)
13279         # +Z the default
13280         ;;
13281       *)
13282         lt_prog_compiler_pic_F77='-fPIC'
13283         ;;
13284       esac
13285       ;;
13286
13287     *)
13288       lt_prog_compiler_pic_F77='-fPIC'
13289       ;;
13290     esac
13291   else
13292     # PORTME Check for flag to pass linker flags through the system compiler.
13293     case $host_os in
13294     aix*)
13295       lt_prog_compiler_wl_F77='-Wl,'
13296       if test "$host_cpu" = ia64; then
13297         # AIX 5 now supports IA64 processor
13298         lt_prog_compiler_static_F77='-Bstatic'
13299       else
13300         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13301       fi
13302       ;;
13303
13304     mingw* | pw32* | os2*)
13305       # This hack is so that the source file can tell whether it is being
13306       # built for inclusion in a dll (and should export symbols for example).
13307       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13308       ;;
13309
13310     hpux9* | hpux10* | hpux11*)
13311       lt_prog_compiler_wl_F77='-Wl,'
13312       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13313       # not for PA HP-UX.
13314       case "$host_cpu" in
13315       hppa*64*|ia64*)
13316         # +Z the default
13317         ;;
13318       *)
13319         lt_prog_compiler_pic_F77='+Z'
13320         ;;
13321       esac
13322       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13323       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13324       ;;
13325
13326     irix5* | irix6* | nonstopux*)
13327       lt_prog_compiler_wl_F77='-Wl,'
13328       # PIC (with -KPIC) is the default.
13329       lt_prog_compiler_static_F77='-non_shared'
13330       ;;
13331
13332     newsos6)
13333       lt_prog_compiler_pic_F77='-KPIC'
13334       lt_prog_compiler_static_F77='-Bstatic'
13335       ;;
13336
13337     linux*)
13338       case $CC in
13339       icc* | ecc*)
13340         lt_prog_compiler_wl_F77='-Wl,'
13341         lt_prog_compiler_pic_F77='-KPIC'
13342         lt_prog_compiler_static_F77='-static'
13343         ;;
13344       ccc*)
13345         lt_prog_compiler_wl_F77='-Wl,'
13346         # All Alpha code is PIC.
13347         lt_prog_compiler_static_F77='-non_shared'
13348         ;;
13349       esac
13350       ;;
13351
13352     osf3* | osf4* | osf5*)
13353       lt_prog_compiler_wl_F77='-Wl,'
13354       # All OSF/1 code is PIC.
13355       lt_prog_compiler_static_F77='-non_shared'
13356       ;;
13357
13358     sco3.2v5*)
13359       lt_prog_compiler_pic_F77='-Kpic'
13360       lt_prog_compiler_static_F77='-dn'
13361       ;;
13362
13363     solaris*)
13364       lt_prog_compiler_wl_F77='-Wl,'
13365       lt_prog_compiler_pic_F77='-KPIC'
13366       lt_prog_compiler_static_F77='-Bstatic'
13367       ;;
13368
13369     sunos4*)
13370       lt_prog_compiler_wl_F77='-Qoption ld '
13371       lt_prog_compiler_pic_F77='-PIC'
13372       lt_prog_compiler_static_F77='-Bstatic'
13373       ;;
13374
13375     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13376       lt_prog_compiler_wl_F77='-Wl,'
13377       lt_prog_compiler_pic_F77='-KPIC'
13378       lt_prog_compiler_static_F77='-Bstatic'
13379       ;;
13380
13381     sysv4*MP*)
13382       if test -d /usr/nec ;then
13383         lt_prog_compiler_pic_F77='-Kconform_pic'
13384         lt_prog_compiler_static_F77='-Bstatic'
13385       fi
13386       ;;
13387
13388     uts4*)
13389       lt_prog_compiler_pic_F77='-pic'
13390       lt_prog_compiler_static_F77='-Bstatic'
13391       ;;
13392
13393     *)
13394       lt_prog_compiler_can_build_shared_F77=no
13395       ;;
13396     esac
13397   fi
13398
13399 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13400 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13401
13402 #
13403 # Check to make sure the PIC flag actually works.
13404 #
13405 if test -n "$lt_prog_compiler_pic_F77"; then
13406
13407 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13408 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13409 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13410   echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412   lt_prog_compiler_pic_works_F77=no
13413   ac_outfile=conftest.$ac_objext
13414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13415    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13416    # Insert the option either (1) after the last *FLAGS variable, or
13417    # (2) before a word containing "conftest.", or (3) at the end.
13418    # Note that $ac_compile itself does not contain backslashes and begins
13419    # with a dollar sign (not a hyphen), so the echo should work correctly.
13420    # The option is referenced via a variable to avoid confusing sed.
13421    lt_compile=`echo "$ac_compile" | $SED \
13422    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13424    -e 's:$: $lt_compiler_flag:'`
13425    (eval echo "\"\$as_me:13425: $lt_compile\"" >&5)
13426    (eval "$lt_compile" 2>conftest.err)
13427    ac_status=$?
13428    cat conftest.err >&5
13429    echo "$as_me:13429: \$? = $ac_status" >&5
13430    if (exit $ac_status) && test -s "$ac_outfile"; then
13431      # The compiler can only warn and ignore the option if not recognized
13432      # So say no if there are warnings
13433      if test ! -s conftest.err; then
13434        lt_prog_compiler_pic_works_F77=yes
13435      fi
13436    fi
13437    $rm conftest*
13438
13439 fi
13440 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13441 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13442
13443 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13444     case $lt_prog_compiler_pic_F77 in
13445      "" | " "*) ;;
13446      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13447      esac
13448 else
13449     lt_prog_compiler_pic_F77=
13450      lt_prog_compiler_can_build_shared_F77=no
13451 fi
13452
13453 fi
13454 case "$host_os" in
13455   # For platforms which do not support PIC, -DPIC is meaningless:
13456   *djgpp*)
13457     lt_prog_compiler_pic_F77=
13458     ;;
13459   *)
13460     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13461     ;;
13462 esac
13463
13464 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13465 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13466 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13467   echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469   lt_cv_prog_compiler_c_o_F77=no
13470    $rm -r conftest 2>/dev/null
13471    mkdir conftest
13472    cd conftest
13473    mkdir out
13474    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13475
13476    lt_compiler_flag="-o out/conftest2.$ac_objext"
13477    # Insert the option either (1) after the last *FLAGS variable, or
13478    # (2) before a word containing "conftest.", or (3) at the end.
13479    # Note that $ac_compile itself does not contain backslashes and begins
13480    # with a dollar sign (not a hyphen), so the echo should work correctly.
13481    lt_compile=`echo "$ac_compile" | $SED \
13482    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13483    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13484    -e 's:$: $lt_compiler_flag:'`
13485    (eval echo "\"\$as_me:13485: $lt_compile\"" >&5)
13486    (eval "$lt_compile" 2>out/conftest.err)
13487    ac_status=$?
13488    cat out/conftest.err >&5
13489    echo "$as_me:13489: \$? = $ac_status" >&5
13490    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13491    then
13492      # The compiler can only warn and ignore the option if not recognized
13493      # So say no if there are warnings
13494      if test ! -s out/conftest.err; then
13495        lt_cv_prog_compiler_c_o_F77=yes
13496      fi
13497    fi
13498    chmod u+w .
13499    $rm conftest*
13500    # SGI C++ compiler will create directory out/ii_files/ for
13501    # template instantiation
13502    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13503    $rm out/* && rmdir out
13504    cd ..
13505    rmdir conftest
13506    $rm conftest*
13507
13508 fi
13509 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13510 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13511
13512
13513 hard_links="nottested"
13514 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13515   # do not overwrite the value of need_locks provided by the user
13516   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13517 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13518   hard_links=yes
13519   $rm conftest*
13520   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13521   touch conftest.a
13522   ln conftest.a conftest.b 2>&5 || hard_links=no
13523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13524   echo "$as_me:$LINENO: result: $hard_links" >&5
13525 echo "${ECHO_T}$hard_links" >&6
13526   if test "$hard_links" = no; then
13527     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13528 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13529     need_locks=warn
13530   fi
13531 else
13532   need_locks=no
13533 fi
13534
13535 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13536 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13537
13538   runpath_var=
13539   allow_undefined_flag_F77=
13540   enable_shared_with_static_runtimes_F77=no
13541   archive_cmds_F77=
13542   archive_expsym_cmds_F77=
13543   old_archive_From_new_cmds_F77=
13544   old_archive_from_expsyms_cmds_F77=
13545   export_dynamic_flag_spec_F77=
13546   whole_archive_flag_spec_F77=
13547   thread_safe_flag_spec_F77=
13548   hardcode_libdir_flag_spec_F77=
13549   hardcode_libdir_flag_spec_ld_F77=
13550   hardcode_libdir_separator_F77=
13551   hardcode_direct_F77=no
13552   hardcode_minus_L_F77=no
13553   hardcode_shlibpath_var_F77=unsupported
13554   link_all_deplibs_F77=unknown
13555   hardcode_automatic_F77=no
13556   module_cmds_F77=
13557   module_expsym_cmds_F77=
13558   always_export_symbols_F77=no
13559   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13560   # include_expsyms should be a list of space-separated symbols to be *always*
13561   # included in the symbol list
13562   include_expsyms_F77=
13563   # exclude_expsyms can be an extended regexp of symbols to exclude
13564   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13565   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13566   # as well as any symbol that contains `d'.
13567   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13568   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13569   # platforms (ab)use it in PIC code, but their linkers get confused if
13570   # the symbol is explicitly referenced.  Since portable code cannot
13571   # rely on this symbol name, it's probably fine to never include it in
13572   # preloaded symbol tables.
13573   extract_expsyms_cmds=
13574
13575   case $host_os in
13576   cygwin* | mingw* | pw32*)
13577     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13578     # When not using gcc, we currently assume that we are using
13579     # Microsoft Visual C++.
13580     if test "$GCC" != yes; then
13581       with_gnu_ld=no
13582     fi
13583     ;;
13584   openbsd*)
13585     with_gnu_ld=no
13586     ;;
13587   esac
13588
13589   ld_shlibs_F77=yes
13590   if test "$with_gnu_ld" = yes; then
13591     # If archive_cmds runs LD, not CC, wlarc should be empty
13592     wlarc='${wl}'
13593
13594     # See if GNU ld supports shared libraries.
13595     case $host_os in
13596     aix3* | aix4* | aix5*)
13597       # On AIX/PPC, the GNU linker is very broken
13598       if test "$host_cpu" != ia64; then
13599         ld_shlibs_F77=no
13600         cat <<EOF 1>&2
13601
13602 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13603 *** to be unable to reliably create shared libraries on AIX.
13604 *** Therefore, libtool is disabling shared libraries support.  If you
13605 *** really care for shared libraries, you may want to modify your PATH
13606 *** so that a non-GNU linker is found, and then restart.
13607
13608 EOF
13609       fi
13610       ;;
13611
13612     amigaos*)
13613       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)'
13614       hardcode_libdir_flag_spec_F77='-L$libdir'
13615       hardcode_minus_L_F77=yes
13616
13617       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13618       # that the semantics of dynamic libraries on AmigaOS, at least up
13619       # to version 4, is to share data among multiple programs linked
13620       # with the same dynamic library.  Since this doesn't match the
13621       # behavior of shared libraries on other platforms, we can't use
13622       # them.
13623       ld_shlibs_F77=no
13624       ;;
13625
13626     beos*)
13627       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13628         allow_undefined_flag_F77=unsupported
13629         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13630         # support --undefined.  This deserves some investigation.  FIXME
13631         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13632       else
13633         ld_shlibs_F77=no
13634       fi
13635       ;;
13636
13637     cygwin* | mingw* | pw32*)
13638       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13639       # as there is no search path for DLLs.
13640       hardcode_libdir_flag_spec_F77='-L$libdir'
13641       allow_undefined_flag_F77=unsupported
13642       always_export_symbols_F77=no
13643       enable_shared_with_static_runtimes_F77=yes
13644       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13645
13646       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13647         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13648         # If the export-symbols file already is a .def file (1st line
13649         # is EXPORTS), use it as is; otherwise, prepend...
13650         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13651           cp $export_symbols $output_objdir/$soname.def;
13652         else
13653           echo EXPORTS > $output_objdir/$soname.def;
13654           cat $export_symbols >> $output_objdir/$soname.def;
13655         fi~
13656         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13657       else
13658         ld_shlibs=no
13659       fi
13660       ;;
13661
13662     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13663       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13664         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13665         wlarc=
13666       else
13667         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13668         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13669       fi
13670       ;;
13671
13672     solaris* | sysv5*)
13673       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13674         ld_shlibs_F77=no
13675         cat <<EOF 1>&2
13676
13677 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13678 *** create shared libraries on Solaris systems.  Therefore, libtool
13679 *** is disabling shared libraries support.  We urge you to upgrade GNU
13680 *** binutils to release 2.9.1 or newer.  Another option is to modify
13681 *** your PATH or compiler configuration so that the native linker is
13682 *** used, and then restart.
13683
13684 EOF
13685       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13686         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13687         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13688       else
13689         ld_shlibs_F77=no
13690       fi
13691       ;;
13692
13693     sunos4*)
13694       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13695       wlarc=
13696       hardcode_direct_F77=yes
13697       hardcode_shlibpath_var_F77=no
13698       ;;
13699
13700   linux*)
13701     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13702         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13703         archive_cmds_F77="$tmp_archive_cmds"
13704       supports_anon_versioning=no
13705       case `$LD -v 2>/dev/null` in
13706         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13707         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13708         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13709         *\ 2.11.*) ;; # other 2.11 versions
13710         *) supports_anon_versioning=yes ;;
13711       esac
13712       if test $supports_anon_versioning = yes; then
13713         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13715 $echo "local: *; };" >> $output_objdir/$libname.ver~
13716         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13717       else
13718         archive_expsym_cmds_F77="$tmp_archive_cmds"
13719       fi
13720       link_all_deplibs_F77=no
13721     else
13722       ld_shlibs_F77=no
13723     fi
13724     ;;
13725
13726     *)
13727       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13728         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13729         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13730       else
13731         ld_shlibs_F77=no
13732       fi
13733       ;;
13734     esac
13735
13736     if test "$ld_shlibs_F77" = yes; then
13737       runpath_var=LD_RUN_PATH
13738       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13739       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13740       # ancient GNU ld didn't support --whole-archive et. al.
13741       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13742         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13743       else
13744         whole_archive_flag_spec_F77=
13745       fi
13746     fi
13747   else
13748     # PORTME fill in a description of your system's linker (not GNU ld)
13749     case $host_os in
13750     aix3*)
13751       allow_undefined_flag_F77=unsupported
13752       always_export_symbols_F77=yes
13753       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'
13754       # Note: this linker hardcodes the directories in LIBPATH if there
13755       # are no directories specified by -L.
13756       hardcode_minus_L_F77=yes
13757       if test "$GCC" = yes && test -z "$link_static_flag"; then
13758         # Neither direct hardcoding nor static linking is supported with a
13759         # broken collect2.
13760         hardcode_direct_F77=unsupported
13761       fi
13762       ;;
13763
13764     aix4* | aix5*)
13765       if test "$host_cpu" = ia64; then
13766         # On IA64, the linker does run time linking by default, so we don't
13767         # have to do anything special.
13768         aix_use_runtimelinking=no
13769         exp_sym_flag='-Bexport'
13770         no_entry_flag=""
13771       else
13772         # If we're using GNU nm, then we don't want the "-C" option.
13773         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13774         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13775           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'
13776         else
13777           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'
13778         fi
13779         aix_use_runtimelinking=no
13780
13781         # Test if we are trying to use run time linking or normal
13782         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13783         # need to do runtime linking.
13784         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13785           for ld_flag in $LDFLAGS; do
13786           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13787             aix_use_runtimelinking=yes
13788             break
13789           fi
13790           done
13791         esac
13792
13793         exp_sym_flag='-bexport'
13794         no_entry_flag='-bnoentry'
13795       fi
13796
13797       # When large executables or shared objects are built, AIX ld can
13798       # have problems creating the table of contents.  If linking a library
13799       # or program results in "error TOC overflow" add -mminimal-toc to
13800       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13801       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13802
13803       archive_cmds_F77=''
13804       hardcode_direct_F77=yes
13805       hardcode_libdir_separator_F77=':'
13806       link_all_deplibs_F77=yes
13807
13808       if test "$GCC" = yes; then
13809         case $host_os in aix4.012|aix4.012.*)
13810         # We only want to do this on AIX 4.2 and lower, the check
13811         # below for broken collect2 doesn't work under 4.3+
13812           collect2name=`${CC} -print-prog-name=collect2`
13813           if test -f "$collect2name" && \
13814            strings "$collect2name" | grep resolve_lib_name >/dev/null
13815           then
13816           # We have reworked collect2
13817           hardcode_direct_F77=yes
13818           else
13819           # We have old collect2
13820           hardcode_direct_F77=unsupported
13821           # It fails to find uninstalled libraries when the uninstalled
13822           # path is not listed in the libpath.  Setting hardcode_minus_L
13823           # to unsupported forces relinking
13824           hardcode_minus_L_F77=yes
13825           hardcode_libdir_flag_spec_F77='-L$libdir'
13826           hardcode_libdir_separator_F77=
13827           fi
13828         esac
13829         shared_flag='-shared'
13830       else
13831         # not using gcc
13832         if test "$host_cpu" = ia64; then
13833         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13834         # chokes on -Wl,-G. The following line is correct:
13835           shared_flag='-G'
13836         else
13837         if test "$aix_use_runtimelinking" = yes; then
13838             shared_flag='${wl}-G'
13839           else
13840             shared_flag='${wl}-bM:SRE'
13841         fi
13842         fi
13843       fi
13844
13845       # It seems that -bexpall does not export symbols beginning with
13846       # underscore (_), so it is better to generate a list of symbols to export.
13847       always_export_symbols_F77=yes
13848       if test "$aix_use_runtimelinking" = yes; then
13849         # Warning - without using the other runtime loading flags (-brtl),
13850         # -berok will link without error, but may produce a broken library.
13851         allow_undefined_flag_F77='-berok'
13852        # Determine the default libpath from the value encoded in an empty executable.
13853        cat >conftest.$ac_ext <<_ACEOF
13854       program main
13855
13856       end
13857 _ACEOF
13858 rm -f conftest.$ac_objext conftest$ac_exeext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13860   (eval $ac_link) 2>conftest.er1
13861   ac_status=$?
13862   grep -v '^ *+' conftest.er1 >conftest.err
13863   rm -f conftest.er1
13864   cat conftest.err >&5
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } &&
13867          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869   (eval $ac_try) 2>&5
13870   ac_status=$?
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); }; } &&
13873          { ac_try='test -s conftest$ac_exeext'
13874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875   (eval $ac_try) 2>&5
13876   ac_status=$?
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); }; }; then
13879
13880 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13881 }'`
13882 # Check for a 64-bit object if we didn't find anything.
13883 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; }
13884 }'`; fi
13885 else
13886   echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13888
13889 fi
13890 rm -f conftest.err conftest.$ac_objext \
13891       conftest$ac_exeext conftest.$ac_ext
13892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13893
13894        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13895         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"
13896        else
13897         if test "$host_cpu" = ia64; then
13898           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13899           allow_undefined_flag_F77="-z nodefs"
13900           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"
13901         else
13902          # Determine the default libpath from the value encoded in an empty executable.
13903          cat >conftest.$ac_ext <<_ACEOF
13904       program main
13905
13906       end
13907 _ACEOF
13908 rm -f conftest.$ac_objext conftest$ac_exeext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13910   (eval $ac_link) 2>conftest.er1
13911   ac_status=$?
13912   grep -v '^ *+' conftest.er1 >conftest.err
13913   rm -f conftest.er1
13914   cat conftest.err >&5
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); } &&
13917          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919   (eval $ac_try) 2>&5
13920   ac_status=$?
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); }; } &&
13923          { ac_try='test -s conftest$ac_exeext'
13924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925   (eval $ac_try) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); }; }; then
13929
13930 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13931 }'`
13932 # Check for a 64-bit object if we didn't find anything.
13933 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; }
13934 }'`; fi
13935 else
13936   echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13938
13939 fi
13940 rm -f conftest.err conftest.$ac_objext \
13941       conftest$ac_exeext conftest.$ac_ext
13942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13943
13944          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13945           # Warning - without using the other run time loading flags,
13946           # -berok will link without error, but may produce a broken library.
13947           no_undefined_flag_F77=' ${wl}-bernotok'
13948           allow_undefined_flag_F77=' ${wl}-berok'
13949           # -bexpall does not export symbols beginning with underscore (_)
13950           always_export_symbols_F77=yes
13951           # Exported symbols can be pulled into shared objects from archives
13952           whole_archive_flag_spec_F77=' '
13953           archive_cmds_need_lc_F77=yes
13954           # This is similar to how AIX traditionally builds it's shared libraries.
13955           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'
13956         fi
13957       fi
13958       ;;
13959
13960     amigaos*)
13961       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)'
13962       hardcode_libdir_flag_spec_F77='-L$libdir'
13963       hardcode_minus_L_F77=yes
13964       # see comment about different semantics on the GNU ld section
13965       ld_shlibs_F77=no
13966       ;;
13967
13968     bsdi4*)
13969       export_dynamic_flag_spec_F77=-rdynamic
13970       ;;
13971
13972     cygwin* | mingw* | pw32*)
13973       # When not using gcc, we currently assume that we are using
13974       # Microsoft Visual C++.
13975       # hardcode_libdir_flag_spec is actually meaningless, as there is
13976       # no search path for DLLs.
13977       hardcode_libdir_flag_spec_F77=' '
13978       allow_undefined_flag_F77=unsupported
13979       # Tell ltmain to make .lib files, not .a files.
13980       libext=lib
13981       # Tell ltmain to make .dll files, not .so files.
13982       shrext_cmds=".dll"
13983       # FIXME: Setting linknames here is a bad hack.
13984       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13985       # The linker will automatically build a .lib file if we build a DLL.
13986       old_archive_From_new_cmds_F77='true'
13987       # FIXME: Should let the user specify the lib program.
13988       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13989       fix_srcfile_path='`cygpath -w "$srcfile"`'
13990       enable_shared_with_static_runtimes_F77=yes
13991       ;;
13992
13993     darwin* | rhapsody*)
13994     if test "$GXX" = yes ; then
13995       archive_cmds_need_lc_F77=no
13996       case "$host_os" in
13997       rhapsody* | darwin1.[012])
13998         allow_undefined_flag_F77='-undefined suppress'
13999         ;;
14000       *) # Darwin 1.3 on
14001       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14002         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14003       else
14004         case ${MACOSX_DEPLOYMENT_TARGET} in
14005           10.[012])
14006             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14007             ;;
14008           10.*)
14009             allow_undefined_flag_F77='-undefined dynamic_lookup'
14010             ;;
14011         esac
14012       fi
14013         ;;
14014       esac
14015         lt_int_apple_cc_single_mod=no
14016         output_verbose_link_cmd='echo'
14017         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14018           lt_int_apple_cc_single_mod=yes
14019         fi
14020         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14021           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14022         else
14023         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14024       fi
14025       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14026       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14027         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14028           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14029         else
14030           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14031         fi
14032           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}'
14033       hardcode_direct_F77=no
14034       hardcode_automatic_F77=yes
14035       hardcode_shlibpath_var_F77=unsupported
14036       whole_archive_flag_spec_F77='-all_load $convenience'
14037       link_all_deplibs_F77=yes
14038     else
14039       ld_shlibs_F77=no
14040     fi
14041       ;;
14042
14043     dgux*)
14044       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14045       hardcode_libdir_flag_spec_F77='-L$libdir'
14046       hardcode_shlibpath_var_F77=no
14047       ;;
14048
14049     freebsd1*)
14050       ld_shlibs_F77=no
14051       ;;
14052
14053     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14054     # support.  Future versions do this automatically, but an explicit c++rt0.o
14055     # does not break anything, and helps significantly (at the cost of a little
14056     # extra space).
14057     freebsd2.2*)
14058       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14059       hardcode_libdir_flag_spec_F77='-R$libdir'
14060       hardcode_direct_F77=yes
14061       hardcode_shlibpath_var_F77=no
14062       ;;
14063
14064     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14065     freebsd2*)
14066       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14067       hardcode_direct_F77=yes
14068       hardcode_minus_L_F77=yes
14069       hardcode_shlibpath_var_F77=no
14070       ;;
14071
14072     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14073     freebsd* | kfreebsd*-gnu)
14074       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14075       hardcode_libdir_flag_spec_F77='-R$libdir'
14076       hardcode_direct_F77=yes
14077       hardcode_shlibpath_var_F77=no
14078       ;;
14079
14080     hpux9*)
14081       if test "$GCC" = yes; then
14082         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'
14083       else
14084         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'
14085       fi
14086       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14087       hardcode_libdir_separator_F77=:
14088       hardcode_direct_F77=yes
14089
14090       # hardcode_minus_L: Not really in the search PATH,
14091       # but as the default location of the library.
14092       hardcode_minus_L_F77=yes
14093       export_dynamic_flag_spec_F77='${wl}-E'
14094       ;;
14095
14096     hpux10* | hpux11*)
14097       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14098         case "$host_cpu" in
14099         hppa*64*|ia64*)
14100           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14101           ;;
14102         *)
14103           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14104           ;;
14105         esac
14106       else
14107         case "$host_cpu" in
14108         hppa*64*|ia64*)
14109           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14110           ;;
14111         *)
14112           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14113           ;;
14114         esac
14115       fi
14116       if test "$with_gnu_ld" = no; then
14117         case "$host_cpu" in
14118         hppa*64*)
14119           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14120           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14121           hardcode_libdir_separator_F77=:
14122           hardcode_direct_F77=no
14123           hardcode_shlibpath_var_F77=no
14124           ;;
14125         ia64*)
14126           hardcode_libdir_flag_spec_F77='-L$libdir'
14127           hardcode_direct_F77=no
14128           hardcode_shlibpath_var_F77=no
14129
14130           # hardcode_minus_L: Not really in the search PATH,
14131           # but as the default location of the library.
14132           hardcode_minus_L_F77=yes
14133           ;;
14134         *)
14135           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14136           hardcode_libdir_separator_F77=:
14137           hardcode_direct_F77=yes
14138           export_dynamic_flag_spec_F77='${wl}-E'
14139
14140           # hardcode_minus_L: Not really in the search PATH,
14141           # but as the default location of the library.
14142           hardcode_minus_L_F77=yes
14143           ;;
14144         esac
14145       fi
14146       ;;
14147
14148     irix5* | irix6* | nonstopux*)
14149       if test "$GCC" = yes; then
14150         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'
14151       else
14152         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'
14153         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14154       fi
14155       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14156       hardcode_libdir_separator_F77=:
14157       link_all_deplibs_F77=yes
14158       ;;
14159
14160     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14161       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14162         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14163       else
14164         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14165       fi
14166       hardcode_libdir_flag_spec_F77='-R$libdir'
14167       hardcode_direct_F77=yes
14168       hardcode_shlibpath_var_F77=no
14169       ;;
14170
14171     newsos6)
14172       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14173       hardcode_direct_F77=yes
14174       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14175       hardcode_libdir_separator_F77=:
14176       hardcode_shlibpath_var_F77=no
14177       ;;
14178
14179     openbsd*)
14180       hardcode_direct_F77=yes
14181       hardcode_shlibpath_var_F77=no
14182       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14183         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14184         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14185         export_dynamic_flag_spec_F77='${wl}-E'
14186       else
14187        case $host_os in
14188          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14189            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14190            hardcode_libdir_flag_spec_F77='-R$libdir'
14191            ;;
14192          *)
14193            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14194            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14195            ;;
14196        esac
14197       fi
14198       ;;
14199
14200     os2*)
14201       hardcode_libdir_flag_spec_F77='-L$libdir'
14202       hardcode_minus_L_F77=yes
14203       allow_undefined_flag_F77=unsupported
14204       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'
14205       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14206       ;;
14207
14208     osf3*)
14209       if test "$GCC" = yes; then
14210         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14211         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'
14212       else
14213         allow_undefined_flag_F77=' -expect_unresolved \*'
14214         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'
14215       fi
14216       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14217       hardcode_libdir_separator_F77=:
14218       ;;
14219
14220     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14221       if test "$GCC" = yes; then
14222         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14223         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'
14224         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14225       else
14226         allow_undefined_flag_F77=' -expect_unresolved \*'
14227         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'
14228         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~
14229         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14230
14231         # Both c and cxx compiler support -rpath directly
14232         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14233       fi
14234       hardcode_libdir_separator_F77=:
14235       ;;
14236
14237     sco3.2v5*)
14238       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14239       hardcode_shlibpath_var_F77=no
14240       export_dynamic_flag_spec_F77='${wl}-Bexport'
14241       runpath_var=LD_RUN_PATH
14242       hardcode_runpath_var=yes
14243       ;;
14244
14245     solaris*)
14246       no_undefined_flag_F77=' -z text'
14247       if test "$GCC" = yes; then
14248         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14249         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14250           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14251       else
14252         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14253         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14254         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14255       fi
14256       hardcode_libdir_flag_spec_F77='-R$libdir'
14257       hardcode_shlibpath_var_F77=no
14258       case $host_os in
14259       solaris2.[0-5] | solaris2.[0-5].*) ;;
14260       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14261         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14262       esac
14263       link_all_deplibs_F77=yes
14264       ;;
14265
14266     sunos4*)
14267       if test "x$host_vendor" = xsequent; then
14268         # Use $CC to link under sequent, because it throws in some extra .o
14269         # files that make .init and .fini sections work.
14270         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14271       else
14272         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14273       fi
14274       hardcode_libdir_flag_spec_F77='-L$libdir'
14275       hardcode_direct_F77=yes
14276       hardcode_minus_L_F77=yes
14277       hardcode_shlibpath_var_F77=no
14278       ;;
14279
14280     sysv4)
14281       case $host_vendor in
14282         sni)
14283           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284           hardcode_direct_F77=yes # is this really true???
14285         ;;
14286         siemens)
14287           ## LD is ld it makes a PLAMLIB
14288           ## CC just makes a GrossModule.
14289           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14290           reload_cmds_F77='$CC -r -o $output$reload_objs'
14291           hardcode_direct_F77=no
14292         ;;
14293         motorola)
14294           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14296         ;;
14297       esac
14298       runpath_var='LD_RUN_PATH'
14299       hardcode_shlibpath_var_F77=no
14300       ;;
14301
14302     sysv4.3*)
14303       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14304       hardcode_shlibpath_var_F77=no
14305       export_dynamic_flag_spec_F77='-Bexport'
14306       ;;
14307
14308     sysv4*MP*)
14309       if test -d /usr/nec; then
14310         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311         hardcode_shlibpath_var_F77=no
14312         runpath_var=LD_RUN_PATH
14313         hardcode_runpath_var=yes
14314         ld_shlibs_F77=yes
14315       fi
14316       ;;
14317
14318     sysv4.2uw2*)
14319       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14320       hardcode_direct_F77=yes
14321       hardcode_minus_L_F77=no
14322       hardcode_shlibpath_var_F77=no
14323       hardcode_runpath_var=yes
14324       runpath_var=LD_RUN_PATH
14325       ;;
14326
14327    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14328       no_undefined_flag_F77='${wl}-z ${wl}text'
14329       if test "$GCC" = yes; then
14330         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14331       else
14332         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14333       fi
14334       runpath_var='LD_RUN_PATH'
14335       hardcode_shlibpath_var_F77=no
14336       ;;
14337
14338     sysv5*)
14339       no_undefined_flag_F77=' -z text'
14340       # $CC -shared without GNU ld will not create a library from C++
14341       # object files and a static libstdc++, better avoid it by now
14342       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14343       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14344                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14345       hardcode_libdir_flag_spec_F77=
14346       hardcode_shlibpath_var_F77=no
14347       runpath_var='LD_RUN_PATH'
14348       ;;
14349
14350     uts4*)
14351       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14352       hardcode_libdir_flag_spec_F77='-L$libdir'
14353       hardcode_shlibpath_var_F77=no
14354       ;;
14355
14356     *)
14357       ld_shlibs_F77=no
14358       ;;
14359     esac
14360   fi
14361
14362 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14363 echo "${ECHO_T}$ld_shlibs_F77" >&6
14364 test "$ld_shlibs_F77" = no && can_build_shared=no
14365
14366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14367 if test "$GCC" = yes; then
14368   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14369 fi
14370
14371 #
14372 # Do we need to explicitly link libc?
14373 #
14374 case "x$archive_cmds_need_lc_F77" in
14375 x|xyes)
14376   # Assume -lc should be added
14377   archive_cmds_need_lc_F77=yes
14378
14379   if test "$enable_shared" = yes && test "$GCC" = yes; then
14380     case $archive_cmds_F77 in
14381     *'~'*)
14382       # FIXME: we may have to deal with multi-command sequences.
14383       ;;
14384     '$CC '*)
14385       # Test whether the compiler implicitly links with -lc since on some
14386       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14387       # to ld, don't add -lc before -lgcc.
14388       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14389 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14390       $rm conftest*
14391       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14392
14393       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14394   (eval $ac_compile) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); } 2>conftest.err; then
14398         soname=conftest
14399         lib=conftest
14400         libobjs=conftest.$ac_objext
14401         deplibs=
14402         wl=$lt_prog_compiler_wl_F77
14403         compiler_flags=-v
14404         linker_flags=-v
14405         verstring=
14406         output_objdir=.
14407         libname=conftest
14408         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14409         allow_undefined_flag_F77=
14410         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14411   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }
14415         then
14416           archive_cmds_need_lc_F77=no
14417         else
14418           archive_cmds_need_lc_F77=yes
14419         fi
14420         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14421       else
14422         cat conftest.err 1>&5
14423       fi
14424       $rm conftest*
14425       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14426 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14427       ;;
14428     esac
14429   fi
14430   ;;
14431 esac
14432
14433 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14434 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14435 library_names_spec=
14436 libname_spec='lib$name'
14437 soname_spec=
14438 shrext_cmds=".so"
14439 postinstall_cmds=
14440 postuninstall_cmds=
14441 finish_cmds=
14442 finish_eval=
14443 shlibpath_var=
14444 shlibpath_overrides_runpath=unknown
14445 version_type=none
14446 dynamic_linker="$host_os ld.so"
14447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14448 if test "$GCC" = yes; then
14449   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14450   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14451     # if the path contains ";" then we assume it to be the separator
14452     # otherwise default to the standard path separator (i.e. ":") - it is
14453     # assumed that no part of a normal pathname contains ";" but that should
14454     # okay in the real world where ";" in dirpaths is itself problematic.
14455     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14456   else
14457     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14458   fi
14459 else
14460   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14461 fi
14462 need_lib_prefix=unknown
14463 hardcode_into_libs=no
14464
14465 # when you set need_version to no, make sure it does not cause -set_version
14466 # flags to be left without arguments
14467 need_version=unknown
14468
14469 case $host_os in
14470 aix3*)
14471   version_type=linux
14472   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14473   shlibpath_var=LIBPATH
14474
14475   # AIX 3 has no versioning support, so we append a major version to the name.
14476   soname_spec='${libname}${release}${shared_ext}$major'
14477   ;;
14478
14479 aix4* | aix5*)
14480   version_type=linux
14481   need_lib_prefix=no
14482   need_version=no
14483   hardcode_into_libs=yes
14484   if test "$host_cpu" = ia64; then
14485     # AIX 5 supports IA64
14486     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14487     shlibpath_var=LD_LIBRARY_PATH
14488   else
14489     # With GCC up to 2.95.x, collect2 would create an import file
14490     # for dependence libraries.  The import file would start with
14491     # the line `#! .'.  This would cause the generated library to
14492     # depend on `.', always an invalid library.  This was fixed in
14493     # development snapshots of GCC prior to 3.0.
14494     case $host_os in
14495       aix4 | aix4.[01] | aix4.[01].*)
14496       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14497            echo ' yes '
14498            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14499         :
14500       else
14501         can_build_shared=no
14502       fi
14503       ;;
14504     esac
14505     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14506     # soname into executable. Probably we can add versioning support to
14507     # collect2, so additional links can be useful in future.
14508     if test "$aix_use_runtimelinking" = yes; then
14509       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14510       # instead of lib<name>.a to let people know that these are not
14511       # typical AIX shared libraries.
14512       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513     else
14514       # We preserve .a as extension for shared libraries through AIX4.2
14515       # and later when we are not doing run time linking.
14516       library_names_spec='${libname}${release}.a $libname.a'
14517       soname_spec='${libname}${release}${shared_ext}$major'
14518     fi
14519     shlibpath_var=LIBPATH
14520   fi
14521   ;;
14522
14523 amigaos*)
14524   library_names_spec='$libname.ixlibrary $libname.a'
14525   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14526   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'
14527   ;;
14528
14529 beos*)
14530   library_names_spec='${libname}${shared_ext}'
14531   dynamic_linker="$host_os ld.so"
14532   shlibpath_var=LIBRARY_PATH
14533   ;;
14534
14535 bsdi4*)
14536   version_type=linux
14537   need_version=no
14538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539   soname_spec='${libname}${release}${shared_ext}$major'
14540   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14541   shlibpath_var=LD_LIBRARY_PATH
14542   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14543   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14544   # the default ld.so.conf also contains /usr/contrib/lib and
14545   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14546   # libtool to hard-code these into programs
14547   ;;
14548
14549 cygwin* | mingw* | pw32*)
14550   version_type=windows
14551   shrext_cmds=".dll"
14552   need_version=no
14553   need_lib_prefix=no
14554
14555   case $GCC,$host_os in
14556   yes,cygwin* | yes,mingw* | yes,pw32*)
14557     library_names_spec='$libname.dll.a'
14558     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14559     postinstall_cmds='base_file=`basename \${file}`~
14560       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14561       dldir=$destdir/`dirname \$dlpath`~
14562       test -d \$dldir || mkdir -p \$dldir~
14563       $install_prog $dir/$dlname \$dldir/$dlname'
14564     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14565       dlpath=$dir/\$dldll~
14566        $rm \$dlpath'
14567     shlibpath_overrides_runpath=yes
14568
14569     case $host_os in
14570     cygwin*)
14571       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14572       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14573       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14574       ;;
14575     mingw*)
14576       # MinGW DLLs use traditional 'lib' prefix
14577       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14578       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14579       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14580         # It is most probably a Windows format PATH printed by
14581         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14582         # path with ; separators, and with drive letters. We can handle the
14583         # drive letters (cygwin fileutils understands them), so leave them,
14584         # especially as we might pass files found there to a mingw objdump,
14585         # which wouldn't understand a cygwinified path. Ahh.
14586         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14587       else
14588         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14589       fi
14590       ;;
14591     pw32*)
14592       # pw32 DLLs use 'pw' prefix rather than 'lib'
14593       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14594       ;;
14595     esac
14596     ;;
14597
14598   *)
14599     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14600     ;;
14601   esac
14602   dynamic_linker='Win32 ld.exe'
14603   # FIXME: first we should search . and the directory the executable is in
14604   shlibpath_var=PATH
14605   ;;
14606
14607 darwin* | rhapsody*)
14608   dynamic_linker="$host_os dyld"
14609   version_type=darwin
14610   need_lib_prefix=no
14611   need_version=no
14612   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14613   soname_spec='${libname}${release}${major}$shared_ext'
14614   shlibpath_overrides_runpath=yes
14615   shlibpath_var=DYLD_LIBRARY_PATH
14616   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14617   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14618   if test "$GCC" = yes; then
14619     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"`
14620   else
14621     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14622   fi
14623   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14624   ;;
14625
14626 dgux*)
14627   version_type=linux
14628   need_lib_prefix=no
14629   need_version=no
14630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14631   soname_spec='${libname}${release}${shared_ext}$major'
14632   shlibpath_var=LD_LIBRARY_PATH
14633   ;;
14634
14635 freebsd1*)
14636   dynamic_linker=no
14637   ;;
14638
14639 kfreebsd*-gnu)
14640   version_type=linux
14641   need_lib_prefix=no
14642   need_version=no
14643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14644   soname_spec='${libname}${release}${shared_ext}$major'
14645   shlibpath_var=LD_LIBRARY_PATH
14646   shlibpath_overrides_runpath=no
14647   hardcode_into_libs=yes
14648   dynamic_linker='GNU ld.so'
14649   ;;
14650
14651 freebsd*)
14652   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14653   version_type=freebsd-$objformat
14654   case $version_type in
14655     freebsd-elf*)
14656       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14657       need_version=no
14658       need_lib_prefix=no
14659       ;;
14660     freebsd-*)
14661       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14662       need_version=yes
14663       ;;
14664   esac
14665   shlibpath_var=LD_LIBRARY_PATH
14666   case $host_os in
14667   freebsd2*)
14668     shlibpath_overrides_runpath=yes
14669     ;;
14670   freebsd3.01* | freebsdelf3.01*)
14671     shlibpath_overrides_runpath=yes
14672     hardcode_into_libs=yes
14673     ;;
14674   *) # from 3.2 on
14675     shlibpath_overrides_runpath=no
14676     hardcode_into_libs=yes
14677     ;;
14678   esac
14679   ;;
14680
14681 gnu*)
14682   version_type=linux
14683   need_lib_prefix=no
14684   need_version=no
14685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14686   soname_spec='${libname}${release}${shared_ext}$major'
14687   shlibpath_var=LD_LIBRARY_PATH
14688   hardcode_into_libs=yes
14689   ;;
14690
14691 hpux9* | hpux10* | hpux11*)
14692   # Give a soname corresponding to the major version so that dld.sl refuses to
14693   # link against other versions.
14694   version_type=sunos
14695   need_lib_prefix=no
14696   need_version=no
14697   case "$host_cpu" in
14698   ia64*)
14699     shrext_cmds='.so'
14700     hardcode_into_libs=yes
14701     dynamic_linker="$host_os dld.so"
14702     shlibpath_var=LD_LIBRARY_PATH
14703     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705     soname_spec='${libname}${release}${shared_ext}$major'
14706     if test "X$HPUX_IA64_MODE" = X32; then
14707       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14708     else
14709       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14710     fi
14711     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14712     ;;
14713    hppa*64*)
14714      shrext_cmds='.sl'
14715      hardcode_into_libs=yes
14716      dynamic_linker="$host_os dld.sl"
14717      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14718      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14719      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720      soname_spec='${libname}${release}${shared_ext}$major'
14721      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14722      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14723      ;;
14724    *)
14725     shrext_cmds='.sl'
14726     dynamic_linker="$host_os dld.sl"
14727     shlibpath_var=SHLIB_PATH
14728     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730     soname_spec='${libname}${release}${shared_ext}$major'
14731     ;;
14732   esac
14733   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14734   postinstall_cmds='chmod 555 $lib'
14735   ;;
14736
14737 irix5* | irix6* | nonstopux*)
14738   case $host_os in
14739     nonstopux*) version_type=nonstopux ;;
14740     *)
14741         if test "$lt_cv_prog_gnu_ld" = yes; then
14742                 version_type=linux
14743         else
14744                 version_type=irix
14745         fi ;;
14746   esac
14747   need_lib_prefix=no
14748   need_version=no
14749   soname_spec='${libname}${release}${shared_ext}$major'
14750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14751   case $host_os in
14752   irix5* | nonstopux*)
14753     libsuff= shlibsuff=
14754     ;;
14755   *)
14756     case $LD in # libtool.m4 will add one of these switches to LD
14757     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14758       libsuff= shlibsuff= libmagic=32-bit;;
14759     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14760       libsuff=32 shlibsuff=N32 libmagic=N32;;
14761     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14762       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14763     *) libsuff= shlibsuff= libmagic=never-match;;
14764     esac
14765     ;;
14766   esac
14767   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14768   shlibpath_overrides_runpath=no
14769   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14770   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14771   hardcode_into_libs=yes
14772   ;;
14773
14774 # No shared lib support for Linux oldld, aout, or coff.
14775 linux*oldld* | linux*aout* | linux*coff*)
14776   dynamic_linker=no
14777   ;;
14778
14779 # This must be Linux ELF.
14780 linux*)
14781   version_type=linux
14782   need_lib_prefix=no
14783   need_version=no
14784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785   soname_spec='${libname}${release}${shared_ext}$major'
14786   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14787   shlibpath_var=LD_LIBRARY_PATH
14788   shlibpath_overrides_runpath=no
14789   # This implies no fast_install, which is unacceptable.
14790   # Some rework will be needed to allow for fast_install
14791   # before this can be enabled.
14792   hardcode_into_libs=yes
14793
14794   # Append ld.so.conf contents to the search path
14795   if test -f /etc/ld.so.conf; then
14796     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14797     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14798   fi
14799
14800   # We used to test for /lib/ld.so.1 and disable shared libraries on
14801   # powerpc, because MkLinux only supported shared libraries with the
14802   # GNU dynamic linker.  Since this was broken with cross compilers,
14803   # most powerpc-linux boxes support dynamic linking these days and
14804   # people can always --disable-shared, the test was removed, and we
14805   # assume the GNU/Linux dynamic linker is in use.
14806   dynamic_linker='GNU/Linux ld.so'
14807   ;;
14808
14809 netbsdelf*-gnu)
14810   version_type=linux
14811   need_lib_prefix=no
14812   need_version=no
14813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14814   soname_spec='${libname}${release}${shared_ext}$major'
14815   shlibpath_var=LD_LIBRARY_PATH
14816   shlibpath_overrides_runpath=no
14817   hardcode_into_libs=yes
14818   dynamic_linker='NetBSD ld.elf_so'
14819   ;;
14820
14821 knetbsd*-gnu)
14822   version_type=linux
14823   need_lib_prefix=no
14824   need_version=no
14825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14826   soname_spec='${libname}${release}${shared_ext}$major'
14827   shlibpath_var=LD_LIBRARY_PATH
14828   shlibpath_overrides_runpath=no
14829   hardcode_into_libs=yes
14830   dynamic_linker='GNU ld.so'
14831   ;;
14832
14833 netbsd*)
14834   version_type=sunos
14835   need_lib_prefix=no
14836   need_version=no
14837   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14839     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14840     dynamic_linker='NetBSD (a.out) ld.so'
14841   else
14842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14843     soname_spec='${libname}${release}${shared_ext}$major'
14844     dynamic_linker='NetBSD ld.elf_so'
14845   fi
14846   shlibpath_var=LD_LIBRARY_PATH
14847   shlibpath_overrides_runpath=yes
14848   hardcode_into_libs=yes
14849   ;;
14850
14851 newsos6)
14852   version_type=linux
14853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14854   shlibpath_var=LD_LIBRARY_PATH
14855   shlibpath_overrides_runpath=yes
14856   ;;
14857
14858 nto-qnx*)
14859   version_type=linux
14860   need_lib_prefix=no
14861   need_version=no
14862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863   soname_spec='${libname}${release}${shared_ext}$major'
14864   shlibpath_var=LD_LIBRARY_PATH
14865   shlibpath_overrides_runpath=yes
14866   ;;
14867
14868 openbsd*)
14869   version_type=sunos
14870   need_lib_prefix=no
14871   need_version=yes
14872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14873   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14874   shlibpath_var=LD_LIBRARY_PATH
14875   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14876     case $host_os in
14877       openbsd2.[89] | openbsd2.[89].*)
14878         shlibpath_overrides_runpath=no
14879         ;;
14880       *)
14881         shlibpath_overrides_runpath=yes
14882         ;;
14883       esac
14884   else
14885     shlibpath_overrides_runpath=yes
14886   fi
14887   ;;
14888
14889 os2*)
14890   libname_spec='$name'
14891   shrext_cmds=".dll"
14892   need_lib_prefix=no
14893   library_names_spec='$libname${shared_ext} $libname.a'
14894   dynamic_linker='OS/2 ld.exe'
14895   shlibpath_var=LIBPATH
14896   ;;
14897
14898 osf3* | osf4* | osf5*)
14899   version_type=osf
14900   need_lib_prefix=no
14901   need_version=no
14902   soname_spec='${libname}${release}${shared_ext}$major'
14903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14904   shlibpath_var=LD_LIBRARY_PATH
14905   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14906   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14907   ;;
14908
14909 sco3.2v5*)
14910   version_type=osf
14911   soname_spec='${libname}${release}${shared_ext}$major'
14912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913   shlibpath_var=LD_LIBRARY_PATH
14914   ;;
14915
14916 solaris*)
14917   version_type=linux
14918   need_lib_prefix=no
14919   need_version=no
14920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921   soname_spec='${libname}${release}${shared_ext}$major'
14922   shlibpath_var=LD_LIBRARY_PATH
14923   shlibpath_overrides_runpath=yes
14924   hardcode_into_libs=yes
14925   # ldd complains unless libraries are executable
14926   postinstall_cmds='chmod +x $lib'
14927   ;;
14928
14929 sunos4*)
14930   version_type=sunos
14931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14932   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14933   shlibpath_var=LD_LIBRARY_PATH
14934   shlibpath_overrides_runpath=yes
14935   if test "$with_gnu_ld" = yes; then
14936     need_lib_prefix=no
14937   fi
14938   need_version=yes
14939   ;;
14940
14941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14942   version_type=linux
14943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944   soname_spec='${libname}${release}${shared_ext}$major'
14945   shlibpath_var=LD_LIBRARY_PATH
14946   case $host_vendor in
14947     sni)
14948       shlibpath_overrides_runpath=no
14949       need_lib_prefix=no
14950       export_dynamic_flag_spec='${wl}-Blargedynsym'
14951       runpath_var=LD_RUN_PATH
14952       ;;
14953     siemens)
14954       need_lib_prefix=no
14955       ;;
14956     motorola)
14957       need_lib_prefix=no
14958       need_version=no
14959       shlibpath_overrides_runpath=no
14960       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14961       ;;
14962   esac
14963   ;;
14964
14965 sysv4*MP*)
14966   if test -d /usr/nec ;then
14967     version_type=linux
14968     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14969     soname_spec='$libname${shared_ext}.$major'
14970     shlibpath_var=LD_LIBRARY_PATH
14971   fi
14972   ;;
14973
14974 uts4*)
14975   version_type=linux
14976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977   soname_spec='${libname}${release}${shared_ext}$major'
14978   shlibpath_var=LD_LIBRARY_PATH
14979   ;;
14980
14981 *)
14982   dynamic_linker=no
14983   ;;
14984 esac
14985 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14986 echo "${ECHO_T}$dynamic_linker" >&6
14987 test "$dynamic_linker" = no && can_build_shared=no
14988
14989 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14990 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14991 hardcode_action_F77=
14992 if test -n "$hardcode_libdir_flag_spec_F77" || \
14993    test -n "$runpath_var F77" || \
14994    test "X$hardcode_automatic_F77"="Xyes" ; then
14995
14996   # We can hardcode non-existant directories.
14997   if test "$hardcode_direct_F77" != no &&
14998      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14999      # have to relink, otherwise we might link with an installed library
15000      # when we should be linking with a yet-to-be-installed one
15001      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15002      test "$hardcode_minus_L_F77" != no; then
15003     # Linking always hardcodes the temporary library directory.
15004     hardcode_action_F77=relink
15005   else
15006     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15007     hardcode_action_F77=immediate
15008   fi
15009 else
15010   # We cannot hardcode anything, or else we can only hardcode existing
15011   # directories.
15012   hardcode_action_F77=unsupported
15013 fi
15014 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15015 echo "${ECHO_T}$hardcode_action_F77" >&6
15016
15017 if test "$hardcode_action_F77" = relink; then
15018   # Fast installation is not supported
15019   enable_fast_install=no
15020 elif test "$shlibpath_overrides_runpath" = yes ||
15021      test "$enable_shared" = no; then
15022   # Fast installation is not necessary
15023   enable_fast_install=needless
15024 fi
15025
15026 striplib=
15027 old_striplib=
15028 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15029 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15030 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15031   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15032   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15033   echo "$as_me:$LINENO: result: yes" >&5
15034 echo "${ECHO_T}yes" >&6
15035 else
15036 # FIXME - insert some real tests, host_os isn't really good enough
15037   case $host_os in
15038    darwin*)
15039        if test -n "$STRIP" ; then
15040          striplib="$STRIP -x"
15041          echo "$as_me:$LINENO: result: yes" >&5
15042 echo "${ECHO_T}yes" >&6
15043        else
15044   echo "$as_me:$LINENO: result: no" >&5
15045 echo "${ECHO_T}no" >&6
15046 fi
15047        ;;
15048    *)
15049   echo "$as_me:$LINENO: result: no" >&5
15050 echo "${ECHO_T}no" >&6
15051     ;;
15052   esac
15053 fi
15054
15055
15056
15057 # The else clause should only fire when bootstrapping the
15058 # libtool distribution, otherwise you forgot to ship ltmain.sh
15059 # with your package, and you will get complaints that there are
15060 # no rules to generate ltmain.sh.
15061 if test -f "$ltmain"; then
15062   # See if we are running on zsh, and set the options which allow our commands through
15063   # without removal of \ escapes.
15064   if test -n "${ZSH_VERSION+set}" ; then
15065     setopt NO_GLOB_SUBST
15066   fi
15067   # Now quote all the things that may contain metacharacters while being
15068   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15069   # variables and quote the copies for generation of the libtool script.
15070   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15071     SED SHELL STRIP \
15072     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15073     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15074     deplibs_check_method reload_flag reload_cmds need_locks \
15075     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15076     lt_cv_sys_global_symbol_to_c_name_address \
15077     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15078     old_postinstall_cmds old_postuninstall_cmds \
15079     compiler_F77 \
15080     CC_F77 \
15081     LD_F77 \
15082     lt_prog_compiler_wl_F77 \
15083     lt_prog_compiler_pic_F77 \
15084     lt_prog_compiler_static_F77 \
15085     lt_prog_compiler_no_builtin_flag_F77 \
15086     export_dynamic_flag_spec_F77 \
15087     thread_safe_flag_spec_F77 \
15088     whole_archive_flag_spec_F77 \
15089     enable_shared_with_static_runtimes_F77 \
15090     old_archive_cmds_F77 \
15091     old_archive_from_new_cmds_F77 \
15092     predep_objects_F77 \
15093     postdep_objects_F77 \
15094     predeps_F77 \
15095     postdeps_F77 \
15096     compiler_lib_search_path_F77 \
15097     archive_cmds_F77 \
15098     archive_expsym_cmds_F77 \
15099     postinstall_cmds_F77 \
15100     postuninstall_cmds_F77 \
15101     old_archive_from_expsyms_cmds_F77 \
15102     allow_undefined_flag_F77 \
15103     no_undefined_flag_F77 \
15104     export_symbols_cmds_F77 \
15105     hardcode_libdir_flag_spec_F77 \
15106     hardcode_libdir_flag_spec_ld_F77 \
15107     hardcode_libdir_separator_F77 \
15108     hardcode_automatic_F77 \
15109     module_cmds_F77 \
15110     module_expsym_cmds_F77 \
15111     lt_cv_prog_compiler_c_o_F77 \
15112     exclude_expsyms_F77 \
15113     include_expsyms_F77; do
15114
15115     case $var in
15116     old_archive_cmds_F77 | \
15117     old_archive_from_new_cmds_F77 | \
15118     archive_cmds_F77 | \
15119     archive_expsym_cmds_F77 | \
15120     module_cmds_F77 | \
15121     module_expsym_cmds_F77 | \
15122     old_archive_from_expsyms_cmds_F77 | \
15123     export_symbols_cmds_F77 | \
15124     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15125     postinstall_cmds | postuninstall_cmds | \
15126     old_postinstall_cmds | old_postuninstall_cmds | \
15127     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15128       # Double-quote double-evaled strings.
15129       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15130       ;;
15131     *)
15132       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15133       ;;
15134     esac
15135   done
15136
15137   case $lt_echo in
15138   *'\$0 --fallback-echo"')
15139     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15140     ;;
15141   esac
15142
15143 cfgfile="$ofile"
15144
15145   cat <<__EOF__ >> "$cfgfile"
15146 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15147
15148 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15149
15150 # Shell to use when invoking shell scripts.
15151 SHELL=$lt_SHELL
15152
15153 # Whether or not to build shared libraries.
15154 build_libtool_libs=$enable_shared
15155
15156 # Whether or not to build static libraries.
15157 build_old_libs=$enable_static
15158
15159 # Whether or not to add -lc for building shared libraries.
15160 build_libtool_need_lc=$archive_cmds_need_lc_F77
15161
15162 # Whether or not to disallow shared libs when runtime libs are static
15163 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15164
15165 # Whether or not to optimize for fast installation.
15166 fast_install=$enable_fast_install
15167
15168 # The host system.
15169 host_alias=$host_alias
15170 host=$host
15171
15172 # An echo program that does not interpret backslashes.
15173 echo=$lt_echo
15174
15175 # The archiver.
15176 AR=$lt_AR
15177 AR_FLAGS=$lt_AR_FLAGS
15178
15179 # A C compiler.
15180 LTCC=$lt_LTCC
15181
15182 # A language-specific compiler.
15183 CC=$lt_compiler_F77
15184
15185 # Is the compiler the GNU C compiler?
15186 with_gcc=$GCC_F77
15187
15188 # An ERE matcher.
15189 EGREP=$lt_EGREP
15190
15191 # The linker used to build libraries.
15192 LD=$lt_LD_F77
15193
15194 # Whether we need hard or soft links.
15195 LN_S=$lt_LN_S
15196
15197 # A BSD-compatible nm program.
15198 NM=$lt_NM
15199
15200 # A symbol stripping program
15201 STRIP=$lt_STRIP
15202
15203 # Used to examine libraries when file_magic_cmd begins "file"
15204 MAGIC_CMD=$MAGIC_CMD
15205
15206 # Used on cygwin: DLL creation program.
15207 DLLTOOL="$DLLTOOL"
15208
15209 # Used on cygwin: object dumper.
15210 OBJDUMP="$OBJDUMP"
15211
15212 # Used on cygwin: assembler.
15213 AS="$AS"
15214
15215 # The name of the directory that contains temporary libtool files.
15216 objdir=$objdir
15217
15218 # How to create reloadable object files.
15219 reload_flag=$lt_reload_flag
15220 reload_cmds=$lt_reload_cmds
15221
15222 # How to pass a linker flag through the compiler.
15223 wl=$lt_lt_prog_compiler_wl_F77
15224
15225 # Object file suffix (normally "o").
15226 objext="$ac_objext"
15227
15228 # Old archive suffix (normally "a").
15229 libext="$libext"
15230
15231 # Shared library suffix (normally ".so").
15232 shrext_cmds='$shrext_cmds'
15233
15234 # Executable file suffix (normally "").
15235 exeext="$exeext"
15236
15237 # Additional compiler flags for building library objects.
15238 pic_flag=$lt_lt_prog_compiler_pic_F77
15239 pic_mode=$pic_mode
15240
15241 # What is the maximum length of a command?
15242 max_cmd_len=$lt_cv_sys_max_cmd_len
15243
15244 # Does compiler simultaneously support -c and -o options?
15245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15246
15247 # Must we lock files when doing compilation ?
15248 need_locks=$lt_need_locks
15249
15250 # Do we need the lib prefix for modules?
15251 need_lib_prefix=$need_lib_prefix
15252
15253 # Do we need a version for libraries?
15254 need_version=$need_version
15255
15256 # Whether dlopen is supported.
15257 dlopen_support=$enable_dlopen
15258
15259 # Whether dlopen of programs is supported.
15260 dlopen_self=$enable_dlopen_self
15261
15262 # Whether dlopen of statically linked programs is supported.
15263 dlopen_self_static=$enable_dlopen_self_static
15264
15265 # Compiler flag to prevent dynamic linking.
15266 link_static_flag=$lt_lt_prog_compiler_static_F77
15267
15268 # Compiler flag to turn off builtin functions.
15269 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15270
15271 # Compiler flag to allow reflexive dlopens.
15272 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15273
15274 # Compiler flag to generate shared objects directly from archives.
15275 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15276
15277 # Compiler flag to generate thread-safe objects.
15278 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15279
15280 # Library versioning type.
15281 version_type=$version_type
15282
15283 # Format of library name prefix.
15284 libname_spec=$lt_libname_spec
15285
15286 # List of archive names.  First name is the real one, the rest are links.
15287 # The last name is the one that the linker finds with -lNAME.
15288 library_names_spec=$lt_library_names_spec
15289
15290 # The coded name of the library, if different from the real name.
15291 soname_spec=$lt_soname_spec
15292
15293 # Commands used to build and install an old-style archive.
15294 RANLIB=$lt_RANLIB
15295 old_archive_cmds=$lt_old_archive_cmds_F77
15296 old_postinstall_cmds=$lt_old_postinstall_cmds
15297 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15298
15299 # Create an old-style archive from a shared archive.
15300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15301
15302 # Create a temporary old-style archive to link instead of a shared archive.
15303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15304
15305 # Commands used to build and install a shared archive.
15306 archive_cmds=$lt_archive_cmds_F77
15307 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15308 postinstall_cmds=$lt_postinstall_cmds
15309 postuninstall_cmds=$lt_postuninstall_cmds
15310
15311 # Commands used to build a loadable module (assumed same as above if empty)
15312 module_cmds=$lt_module_cmds_F77
15313 module_expsym_cmds=$lt_module_expsym_cmds_F77
15314
15315 # Commands to strip libraries.
15316 old_striplib=$lt_old_striplib
15317 striplib=$lt_striplib
15318
15319 # Dependencies to place before the objects being linked to create a
15320 # shared library.
15321 predep_objects=$lt_predep_objects_F77
15322
15323 # Dependencies to place after the objects being linked to create a
15324 # shared library.
15325 postdep_objects=$lt_postdep_objects_F77
15326
15327 # Dependencies to place before the objects being linked to create a
15328 # shared library.
15329 predeps=$lt_predeps_F77
15330
15331 # Dependencies to place after the objects being linked to create a
15332 # shared library.
15333 postdeps=$lt_postdeps_F77
15334
15335 # The library search path used internally by the compiler when linking
15336 # a shared library.
15337 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15338
15339 # Method to check whether dependent libraries are shared objects.
15340 deplibs_check_method=$lt_deplibs_check_method
15341
15342 # Command to use when deplibs_check_method == file_magic.
15343 file_magic_cmd=$lt_file_magic_cmd
15344
15345 # Flag that allows shared libraries with undefined symbols to be built.
15346 allow_undefined_flag=$lt_allow_undefined_flag_F77
15347
15348 # Flag that forces no undefined symbols.
15349 no_undefined_flag=$lt_no_undefined_flag_F77
15350
15351 # Commands used to finish a libtool library installation in a directory.
15352 finish_cmds=$lt_finish_cmds
15353
15354 # Same as above, but a single script fragment to be evaled but not shown.
15355 finish_eval=$lt_finish_eval
15356
15357 # Take the output of nm and produce a listing of raw symbols and C names.
15358 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15359
15360 # Transform the output of nm in a proper C declaration
15361 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15362
15363 # Transform the output of nm in a C name address pair
15364 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15365
15366 # This is the shared library runtime path variable.
15367 runpath_var=$runpath_var
15368
15369 # This is the shared library path variable.
15370 shlibpath_var=$shlibpath_var
15371
15372 # Is shlibpath searched before the hard-coded library search path?
15373 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15374
15375 # How to hardcode a shared library path into an executable.
15376 hardcode_action=$hardcode_action_F77
15377
15378 # Whether we should hardcode library paths into libraries.
15379 hardcode_into_libs=$hardcode_into_libs
15380
15381 # Flag to hardcode \$libdir into a binary during linking.
15382 # This must work even if \$libdir does not exist.
15383 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15384
15385 # If ld is used when linking, flag to hardcode \$libdir into
15386 # a binary during linking. This must work even if \$libdir does
15387 # not exist.
15388 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15389
15390 # Whether we need a single -rpath flag with a separated argument.
15391 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15392
15393 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15394 # resulting binary.
15395 hardcode_direct=$hardcode_direct_F77
15396
15397 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15398 # resulting binary.
15399 hardcode_minus_L=$hardcode_minus_L_F77
15400
15401 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15402 # the resulting binary.
15403 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15404
15405 # Set to yes if building a shared library automatically hardcodes DIR into the library
15406 # and all subsequent libraries and executables linked against it.
15407 hardcode_automatic=$hardcode_automatic_F77
15408
15409 # Variables whose values should be saved in libtool wrapper scripts and
15410 # restored at relink time.
15411 variables_saved_for_relink="$variables_saved_for_relink"
15412
15413 # Whether libtool must link a program against all its dependency libraries.
15414 link_all_deplibs=$link_all_deplibs_F77
15415
15416 # Compile-time system search path for libraries
15417 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15418
15419 # Run-time system search path for libraries
15420 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15421
15422 # Fix the shell variable \$srcfile for the compiler.
15423 fix_srcfile_path="$fix_srcfile_path_F77"
15424
15425 # Set to yes if exported symbols are required.
15426 always_export_symbols=$always_export_symbols_F77
15427
15428 # The commands to list exported symbols.
15429 export_symbols_cmds=$lt_export_symbols_cmds_F77
15430
15431 # The commands to extract the exported symbol list from a shared archive.
15432 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15433
15434 # Symbols that should not be listed in the preloaded symbols.
15435 exclude_expsyms=$lt_exclude_expsyms_F77
15436
15437 # Symbols that must always be exported.
15438 include_expsyms=$lt_include_expsyms_F77
15439
15440 # ### END LIBTOOL TAG CONFIG: $tagname
15441
15442 __EOF__
15443
15444
15445 else
15446   # If there is no Makefile yet, we rely on a make rule to execute
15447   # `config.status --recheck' to rerun these tests and create the
15448   # libtool script then.
15449   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15450   if test -f "$ltmain_in"; then
15451     test -f Makefile && make "$ltmain"
15452   fi
15453 fi
15454
15455
15456 ac_ext=c
15457 ac_cpp='$CPP $CPPFLAGS'
15458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15461
15462 CC="$lt_save_CC"
15463
15464         else
15465           tagname=""
15466         fi
15467         ;;
15468
15469       GCJ)
15470         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15471
15472
15473
15474 # Source file extension for Java test sources.
15475 ac_ext=java
15476
15477 # Object file extension for compiled Java test sources.
15478 objext=o
15479 objext_GCJ=$objext
15480
15481 # Code to be used in simple compile tests
15482 lt_simple_compile_test_code="class foo {}\n"
15483
15484 # Code to be used in simple link tests
15485 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15486
15487 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15488
15489 # If no C compiler was specified, use CC.
15490 LTCC=${LTCC-"$CC"}
15491
15492 # Allow CC to be a program name with arguments.
15493 compiler=$CC
15494
15495
15496 # Allow CC to be a program name with arguments.
15497 lt_save_CC="$CC"
15498 CC=${GCJ-"gcj"}
15499 compiler=$CC
15500 compiler_GCJ=$CC
15501
15502 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15503 archive_cmds_need_lc_GCJ=no
15504
15505
15506 lt_prog_compiler_no_builtin_flag_GCJ=
15507
15508 if test "$GCC" = yes; then
15509   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15510
15511
15512 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15513 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15514 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15515   echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517   lt_cv_prog_compiler_rtti_exceptions=no
15518   ac_outfile=conftest.$ac_objext
15519    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15520    lt_compiler_flag="-fno-rtti -fno-exceptions"
15521    # Insert the option either (1) after the last *FLAGS variable, or
15522    # (2) before a word containing "conftest.", or (3) at the end.
15523    # Note that $ac_compile itself does not contain backslashes and begins
15524    # with a dollar sign (not a hyphen), so the echo should work correctly.
15525    # The option is referenced via a variable to avoid confusing sed.
15526    lt_compile=`echo "$ac_compile" | $SED \
15527    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15529    -e 's:$: $lt_compiler_flag:'`
15530    (eval echo "\"\$as_me:15530: $lt_compile\"" >&5)
15531    (eval "$lt_compile" 2>conftest.err)
15532    ac_status=$?
15533    cat conftest.err >&5
15534    echo "$as_me:15534: \$? = $ac_status" >&5
15535    if (exit $ac_status) && test -s "$ac_outfile"; then
15536      # The compiler can only warn and ignore the option if not recognized
15537      # So say no if there are warnings
15538      if test ! -s conftest.err; then
15539        lt_cv_prog_compiler_rtti_exceptions=yes
15540      fi
15541    fi
15542    $rm conftest*
15543
15544 fi
15545 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15546 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15547
15548 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15549     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15550 else
15551     :
15552 fi
15553
15554 fi
15555
15556 lt_prog_compiler_wl_GCJ=
15557 lt_prog_compiler_pic_GCJ=
15558 lt_prog_compiler_static_GCJ=
15559
15560 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15561 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15562
15563   if test "$GCC" = yes; then
15564     lt_prog_compiler_wl_GCJ='-Wl,'
15565     lt_prog_compiler_static_GCJ='-static'
15566
15567     case $host_os in
15568       aix*)
15569       # All AIX code is PIC.
15570       if test "$host_cpu" = ia64; then
15571         # AIX 5 now supports IA64 processor
15572         lt_prog_compiler_static_GCJ='-Bstatic'
15573       fi
15574       ;;
15575
15576     amigaos*)
15577       # FIXME: we need at least 68020 code to build shared libraries, but
15578       # adding the `-m68020' flag to GCC prevents building anything better,
15579       # like `-m68040'.
15580       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15581       ;;
15582
15583     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15584       # PIC is the default for these OSes.
15585       ;;
15586
15587     mingw* | pw32* | os2*)
15588       # This hack is so that the source file can tell whether it is being
15589       # built for inclusion in a dll (and should export symbols for example).
15590       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15591       ;;
15592
15593     darwin* | rhapsody*)
15594       # PIC is the default on this platform
15595       # Common symbols not allowed in MH_DYLIB files
15596       lt_prog_compiler_pic_GCJ='-fno-common'
15597       ;;
15598
15599     msdosdjgpp*)
15600       # Just because we use GCC doesn't mean we suddenly get shared libraries
15601       # on systems that don't support them.
15602       lt_prog_compiler_can_build_shared_GCJ=no
15603       enable_shared=no
15604       ;;
15605
15606     sysv4*MP*)
15607       if test -d /usr/nec; then
15608         lt_prog_compiler_pic_GCJ=-Kconform_pic
15609       fi
15610       ;;
15611
15612     hpux*)
15613       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15614       # not for PA HP-UX.
15615       case "$host_cpu" in
15616       hppa*64*|ia64*)
15617         # +Z the default
15618         ;;
15619       *)
15620         lt_prog_compiler_pic_GCJ='-fPIC'
15621         ;;
15622       esac
15623       ;;
15624
15625     *)
15626       lt_prog_compiler_pic_GCJ='-fPIC'
15627       ;;
15628     esac
15629   else
15630     # PORTME Check for flag to pass linker flags through the system compiler.
15631     case $host_os in
15632     aix*)
15633       lt_prog_compiler_wl_GCJ='-Wl,'
15634       if test "$host_cpu" = ia64; then
15635         # AIX 5 now supports IA64 processor
15636         lt_prog_compiler_static_GCJ='-Bstatic'
15637       else
15638         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15639       fi
15640       ;;
15641
15642     mingw* | pw32* | os2*)
15643       # This hack is so that the source file can tell whether it is being
15644       # built for inclusion in a dll (and should export symbols for example).
15645       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15646       ;;
15647
15648     hpux9* | hpux10* | hpux11*)
15649       lt_prog_compiler_wl_GCJ='-Wl,'
15650       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15651       # not for PA HP-UX.
15652       case "$host_cpu" in
15653       hppa*64*|ia64*)
15654         # +Z the default
15655         ;;
15656       *)
15657         lt_prog_compiler_pic_GCJ='+Z'
15658         ;;
15659       esac
15660       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15661       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15662       ;;
15663
15664     irix5* | irix6* | nonstopux*)
15665       lt_prog_compiler_wl_GCJ='-Wl,'
15666       # PIC (with -KPIC) is the default.
15667       lt_prog_compiler_static_GCJ='-non_shared'
15668       ;;
15669
15670     newsos6)
15671       lt_prog_compiler_pic_GCJ='-KPIC'
15672       lt_prog_compiler_static_GCJ='-Bstatic'
15673       ;;
15674
15675     linux*)
15676       case $CC in
15677       icc* | ecc*)
15678         lt_prog_compiler_wl_GCJ='-Wl,'
15679         lt_prog_compiler_pic_GCJ='-KPIC'
15680         lt_prog_compiler_static_GCJ='-static'
15681         ;;
15682       ccc*)
15683         lt_prog_compiler_wl_GCJ='-Wl,'
15684         # All Alpha code is PIC.
15685         lt_prog_compiler_static_GCJ='-non_shared'
15686         ;;
15687       esac
15688       ;;
15689
15690     osf3* | osf4* | osf5*)
15691       lt_prog_compiler_wl_GCJ='-Wl,'
15692       # All OSF/1 code is PIC.
15693       lt_prog_compiler_static_GCJ='-non_shared'
15694       ;;
15695
15696     sco3.2v5*)
15697       lt_prog_compiler_pic_GCJ='-Kpic'
15698       lt_prog_compiler_static_GCJ='-dn'
15699       ;;
15700
15701     solaris*)
15702       lt_prog_compiler_wl_GCJ='-Wl,'
15703       lt_prog_compiler_pic_GCJ='-KPIC'
15704       lt_prog_compiler_static_GCJ='-Bstatic'
15705       ;;
15706
15707     sunos4*)
15708       lt_prog_compiler_wl_GCJ='-Qoption ld '
15709       lt_prog_compiler_pic_GCJ='-PIC'
15710       lt_prog_compiler_static_GCJ='-Bstatic'
15711       ;;
15712
15713     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15714       lt_prog_compiler_wl_GCJ='-Wl,'
15715       lt_prog_compiler_pic_GCJ='-KPIC'
15716       lt_prog_compiler_static_GCJ='-Bstatic'
15717       ;;
15718
15719     sysv4*MP*)
15720       if test -d /usr/nec ;then
15721         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15722         lt_prog_compiler_static_GCJ='-Bstatic'
15723       fi
15724       ;;
15725
15726     uts4*)
15727       lt_prog_compiler_pic_GCJ='-pic'
15728       lt_prog_compiler_static_GCJ='-Bstatic'
15729       ;;
15730
15731     *)
15732       lt_prog_compiler_can_build_shared_GCJ=no
15733       ;;
15734     esac
15735   fi
15736
15737 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15738 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15739
15740 #
15741 # Check to make sure the PIC flag actually works.
15742 #
15743 if test -n "$lt_prog_compiler_pic_GCJ"; then
15744
15745 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15746 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15747 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15748   echo $ECHO_N "(cached) $ECHO_C" >&6
15749 else
15750   lt_prog_compiler_pic_works_GCJ=no
15751   ac_outfile=conftest.$ac_objext
15752    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15753    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15754    # Insert the option either (1) after the last *FLAGS variable, or
15755    # (2) before a word containing "conftest.", or (3) at the end.
15756    # Note that $ac_compile itself does not contain backslashes and begins
15757    # with a dollar sign (not a hyphen), so the echo should work correctly.
15758    # The option is referenced via a variable to avoid confusing sed.
15759    lt_compile=`echo "$ac_compile" | $SED \
15760    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15761    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15762    -e 's:$: $lt_compiler_flag:'`
15763    (eval echo "\"\$as_me:15763: $lt_compile\"" >&5)
15764    (eval "$lt_compile" 2>conftest.err)
15765    ac_status=$?
15766    cat conftest.err >&5
15767    echo "$as_me:15767: \$? = $ac_status" >&5
15768    if (exit $ac_status) && test -s "$ac_outfile"; then
15769      # The compiler can only warn and ignore the option if not recognized
15770      # So say no if there are warnings
15771      if test ! -s conftest.err; then
15772        lt_prog_compiler_pic_works_GCJ=yes
15773      fi
15774    fi
15775    $rm conftest*
15776
15777 fi
15778 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15779 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15780
15781 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15782     case $lt_prog_compiler_pic_GCJ in
15783      "" | " "*) ;;
15784      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15785      esac
15786 else
15787     lt_prog_compiler_pic_GCJ=
15788      lt_prog_compiler_can_build_shared_GCJ=no
15789 fi
15790
15791 fi
15792 case "$host_os" in
15793   # For platforms which do not support PIC, -DPIC is meaningless:
15794   *djgpp*)
15795     lt_prog_compiler_pic_GCJ=
15796     ;;
15797   *)
15798     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15799     ;;
15800 esac
15801
15802 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15803 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15804 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15805   echo $ECHO_N "(cached) $ECHO_C" >&6
15806 else
15807   lt_cv_prog_compiler_c_o_GCJ=no
15808    $rm -r conftest 2>/dev/null
15809    mkdir conftest
15810    cd conftest
15811    mkdir out
15812    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15813
15814    lt_compiler_flag="-o out/conftest2.$ac_objext"
15815    # Insert the option either (1) after the last *FLAGS variable, or
15816    # (2) before a word containing "conftest.", or (3) at the end.
15817    # Note that $ac_compile itself does not contain backslashes and begins
15818    # with a dollar sign (not a hyphen), so the echo should work correctly.
15819    lt_compile=`echo "$ac_compile" | $SED \
15820    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15821    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15822    -e 's:$: $lt_compiler_flag:'`
15823    (eval echo "\"\$as_me:15823: $lt_compile\"" >&5)
15824    (eval "$lt_compile" 2>out/conftest.err)
15825    ac_status=$?
15826    cat out/conftest.err >&5
15827    echo "$as_me:15827: \$? = $ac_status" >&5
15828    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15829    then
15830      # The compiler can only warn and ignore the option if not recognized
15831      # So say no if there are warnings
15832      if test ! -s out/conftest.err; then
15833        lt_cv_prog_compiler_c_o_GCJ=yes
15834      fi
15835    fi
15836    chmod u+w .
15837    $rm conftest*
15838    # SGI C++ compiler will create directory out/ii_files/ for
15839    # template instantiation
15840    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15841    $rm out/* && rmdir out
15842    cd ..
15843    rmdir conftest
15844    $rm conftest*
15845
15846 fi
15847 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15848 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15849
15850
15851 hard_links="nottested"
15852 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15853   # do not overwrite the value of need_locks provided by the user
15854   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15855 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15856   hard_links=yes
15857   $rm conftest*
15858   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15859   touch conftest.a
15860   ln conftest.a conftest.b 2>&5 || hard_links=no
15861   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15862   echo "$as_me:$LINENO: result: $hard_links" >&5
15863 echo "${ECHO_T}$hard_links" >&6
15864   if test "$hard_links" = no; then
15865     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15866 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15867     need_locks=warn
15868   fi
15869 else
15870   need_locks=no
15871 fi
15872
15873 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15874 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15875
15876   runpath_var=
15877   allow_undefined_flag_GCJ=
15878   enable_shared_with_static_runtimes_GCJ=no
15879   archive_cmds_GCJ=
15880   archive_expsym_cmds_GCJ=
15881   old_archive_From_new_cmds_GCJ=
15882   old_archive_from_expsyms_cmds_GCJ=
15883   export_dynamic_flag_spec_GCJ=
15884   whole_archive_flag_spec_GCJ=
15885   thread_safe_flag_spec_GCJ=
15886   hardcode_libdir_flag_spec_GCJ=
15887   hardcode_libdir_flag_spec_ld_GCJ=
15888   hardcode_libdir_separator_GCJ=
15889   hardcode_direct_GCJ=no
15890   hardcode_minus_L_GCJ=no
15891   hardcode_shlibpath_var_GCJ=unsupported
15892   link_all_deplibs_GCJ=unknown
15893   hardcode_automatic_GCJ=no
15894   module_cmds_GCJ=
15895   module_expsym_cmds_GCJ=
15896   always_export_symbols_GCJ=no
15897   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15898   # include_expsyms should be a list of space-separated symbols to be *always*
15899   # included in the symbol list
15900   include_expsyms_GCJ=
15901   # exclude_expsyms can be an extended regexp of symbols to exclude
15902   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15903   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15904   # as well as any symbol that contains `d'.
15905   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15906   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15907   # platforms (ab)use it in PIC code, but their linkers get confused if
15908   # the symbol is explicitly referenced.  Since portable code cannot
15909   # rely on this symbol name, it's probably fine to never include it in
15910   # preloaded symbol tables.
15911   extract_expsyms_cmds=
15912
15913   case $host_os in
15914   cygwin* | mingw* | pw32*)
15915     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15916     # When not using gcc, we currently assume that we are using
15917     # Microsoft Visual C++.
15918     if test "$GCC" != yes; then
15919       with_gnu_ld=no
15920     fi
15921     ;;
15922   openbsd*)
15923     with_gnu_ld=no
15924     ;;
15925   esac
15926
15927   ld_shlibs_GCJ=yes
15928   if test "$with_gnu_ld" = yes; then
15929     # If archive_cmds runs LD, not CC, wlarc should be empty
15930     wlarc='${wl}'
15931
15932     # See if GNU ld supports shared libraries.
15933     case $host_os in
15934     aix3* | aix4* | aix5*)
15935       # On AIX/PPC, the GNU linker is very broken
15936       if test "$host_cpu" != ia64; then
15937         ld_shlibs_GCJ=no
15938         cat <<EOF 1>&2
15939
15940 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15941 *** to be unable to reliably create shared libraries on AIX.
15942 *** Therefore, libtool is disabling shared libraries support.  If you
15943 *** really care for shared libraries, you may want to modify your PATH
15944 *** so that a non-GNU linker is found, and then restart.
15945
15946 EOF
15947       fi
15948       ;;
15949
15950     amigaos*)
15951       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)'
15952       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15953       hardcode_minus_L_GCJ=yes
15954
15955       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15956       # that the semantics of dynamic libraries on AmigaOS, at least up
15957       # to version 4, is to share data among multiple programs linked
15958       # with the same dynamic library.  Since this doesn't match the
15959       # behavior of shared libraries on other platforms, we can't use
15960       # them.
15961       ld_shlibs_GCJ=no
15962       ;;
15963
15964     beos*)
15965       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15966         allow_undefined_flag_GCJ=unsupported
15967         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15968         # support --undefined.  This deserves some investigation.  FIXME
15969         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970       else
15971         ld_shlibs_GCJ=no
15972       fi
15973       ;;
15974
15975     cygwin* | mingw* | pw32*)
15976       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15977       # as there is no search path for DLLs.
15978       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15979       allow_undefined_flag_GCJ=unsupported
15980       always_export_symbols_GCJ=no
15981       enable_shared_with_static_runtimes_GCJ=yes
15982       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15983
15984       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15985         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15986         # If the export-symbols file already is a .def file (1st line
15987         # is EXPORTS), use it as is; otherwise, prepend...
15988         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15989           cp $export_symbols $output_objdir/$soname.def;
15990         else
15991           echo EXPORTS > $output_objdir/$soname.def;
15992           cat $export_symbols >> $output_objdir/$soname.def;
15993         fi~
15994         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15995       else
15996         ld_shlibs=no
15997       fi
15998       ;;
15999
16000     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16001       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16003         wlarc=
16004       else
16005         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16006         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16007       fi
16008       ;;
16009
16010     solaris* | sysv5*)
16011       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16012         ld_shlibs_GCJ=no
16013         cat <<EOF 1>&2
16014
16015 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16016 *** create shared libraries on Solaris systems.  Therefore, libtool
16017 *** is disabling shared libraries support.  We urge you to upgrade GNU
16018 *** binutils to release 2.9.1 or newer.  Another option is to modify
16019 *** your PATH or compiler configuration so that the native linker is
16020 *** used, and then restart.
16021
16022 EOF
16023       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16024         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16025         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16026       else
16027         ld_shlibs_GCJ=no
16028       fi
16029       ;;
16030
16031     sunos4*)
16032       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16033       wlarc=
16034       hardcode_direct_GCJ=yes
16035       hardcode_shlibpath_var_GCJ=no
16036       ;;
16037
16038   linux*)
16039     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16040         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16041         archive_cmds_GCJ="$tmp_archive_cmds"
16042       supports_anon_versioning=no
16043       case `$LD -v 2>/dev/null` in
16044         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16045         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16046         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16047         *\ 2.11.*) ;; # other 2.11 versions
16048         *) supports_anon_versioning=yes ;;
16049       esac
16050       if test $supports_anon_versioning = yes; then
16051         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16052 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16053 $echo "local: *; };" >> $output_objdir/$libname.ver~
16054         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16055       else
16056         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16057       fi
16058       link_all_deplibs_GCJ=no
16059     else
16060       ld_shlibs_GCJ=no
16061     fi
16062     ;;
16063
16064     *)
16065       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16068       else
16069         ld_shlibs_GCJ=no
16070       fi
16071       ;;
16072     esac
16073
16074     if test "$ld_shlibs_GCJ" = yes; then
16075       runpath_var=LD_RUN_PATH
16076       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16077       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16078       # ancient GNU ld didn't support --whole-archive et. al.
16079       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16080         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16081       else
16082         whole_archive_flag_spec_GCJ=
16083       fi
16084     fi
16085   else
16086     # PORTME fill in a description of your system's linker (not GNU ld)
16087     case $host_os in
16088     aix3*)
16089       allow_undefined_flag_GCJ=unsupported
16090       always_export_symbols_GCJ=yes
16091       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'
16092       # Note: this linker hardcodes the directories in LIBPATH if there
16093       # are no directories specified by -L.
16094       hardcode_minus_L_GCJ=yes
16095       if test "$GCC" = yes && test -z "$link_static_flag"; then
16096         # Neither direct hardcoding nor static linking is supported with a
16097         # broken collect2.
16098         hardcode_direct_GCJ=unsupported
16099       fi
16100       ;;
16101
16102     aix4* | aix5*)
16103       if test "$host_cpu" = ia64; then
16104         # On IA64, the linker does run time linking by default, so we don't
16105         # have to do anything special.
16106         aix_use_runtimelinking=no
16107         exp_sym_flag='-Bexport'
16108         no_entry_flag=""
16109       else
16110         # If we're using GNU nm, then we don't want the "-C" option.
16111         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16112         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16113           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'
16114         else
16115           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'
16116         fi
16117         aix_use_runtimelinking=no
16118
16119         # Test if we are trying to use run time linking or normal
16120         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16121         # need to do runtime linking.
16122         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16123           for ld_flag in $LDFLAGS; do
16124           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16125             aix_use_runtimelinking=yes
16126             break
16127           fi
16128           done
16129         esac
16130
16131         exp_sym_flag='-bexport'
16132         no_entry_flag='-bnoentry'
16133       fi
16134
16135       # When large executables or shared objects are built, AIX ld can
16136       # have problems creating the table of contents.  If linking a library
16137       # or program results in "error TOC overflow" add -mminimal-toc to
16138       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16139       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16140
16141       archive_cmds_GCJ=''
16142       hardcode_direct_GCJ=yes
16143       hardcode_libdir_separator_GCJ=':'
16144       link_all_deplibs_GCJ=yes
16145
16146       if test "$GCC" = yes; then
16147         case $host_os in aix4.012|aix4.012.*)
16148         # We only want to do this on AIX 4.2 and lower, the check
16149         # below for broken collect2 doesn't work under 4.3+
16150           collect2name=`${CC} -print-prog-name=collect2`
16151           if test -f "$collect2name" && \
16152            strings "$collect2name" | grep resolve_lib_name >/dev/null
16153           then
16154           # We have reworked collect2
16155           hardcode_direct_GCJ=yes
16156           else
16157           # We have old collect2
16158           hardcode_direct_GCJ=unsupported
16159           # It fails to find uninstalled libraries when the uninstalled
16160           # path is not listed in the libpath.  Setting hardcode_minus_L
16161           # to unsupported forces relinking
16162           hardcode_minus_L_GCJ=yes
16163           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16164           hardcode_libdir_separator_GCJ=
16165           fi
16166         esac
16167         shared_flag='-shared'
16168       else
16169         # not using gcc
16170         if test "$host_cpu" = ia64; then
16171         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16172         # chokes on -Wl,-G. The following line is correct:
16173           shared_flag='-G'
16174         else
16175         if test "$aix_use_runtimelinking" = yes; then
16176             shared_flag='${wl}-G'
16177           else
16178             shared_flag='${wl}-bM:SRE'
16179         fi
16180         fi
16181       fi
16182
16183       # It seems that -bexpall does not export symbols beginning with
16184       # underscore (_), so it is better to generate a list of symbols to export.
16185       always_export_symbols_GCJ=yes
16186       if test "$aix_use_runtimelinking" = yes; then
16187         # Warning - without using the other runtime loading flags (-brtl),
16188         # -berok will link without error, but may produce a broken library.
16189         allow_undefined_flag_GCJ='-berok'
16190        # Determine the default libpath from the value encoded in an empty executable.
16191        cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h.  */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h.  */
16197
16198 int
16199 main ()
16200 {
16201
16202   ;
16203   return 0;
16204 }
16205 _ACEOF
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16208   (eval $ac_link) 2>conftest.er1
16209   ac_status=$?
16210   grep -v '^ *+' conftest.er1 >conftest.err
16211   rm -f conftest.er1
16212   cat conftest.err >&5
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } &&
16215          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217   (eval $ac_try) 2>&5
16218   ac_status=$?
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); }; } &&
16221          { ac_try='test -s conftest$ac_exeext'
16222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223   (eval $ac_try) 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); }; }; then
16227
16228 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16229 }'`
16230 # Check for a 64-bit object if we didn't find anything.
16231 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; }
16232 }'`; fi
16233 else
16234   echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16236
16237 fi
16238 rm -f conftest.err conftest.$ac_objext \
16239       conftest$ac_exeext conftest.$ac_ext
16240 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16241
16242        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16243         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"
16244        else
16245         if test "$host_cpu" = ia64; then
16246           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16247           allow_undefined_flag_GCJ="-z nodefs"
16248           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"
16249         else
16250          # Determine the default libpath from the value encoded in an empty executable.
16251          cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h.  */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h.  */
16257
16258 int
16259 main ()
16260 {
16261
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16268   (eval $ac_link) 2>conftest.er1
16269   ac_status=$?
16270   grep -v '^ *+' conftest.er1 >conftest.err
16271   rm -f conftest.er1
16272   cat conftest.err >&5
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } &&
16275          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277   (eval $ac_try) 2>&5
16278   ac_status=$?
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); }; } &&
16281          { ac_try='test -s conftest$ac_exeext'
16282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283   (eval $ac_try) 2>&5
16284   ac_status=$?
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); }; }; then
16287
16288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16289 }'`
16290 # Check for a 64-bit object if we didn't find anything.
16291 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; }
16292 }'`; fi
16293 else
16294   echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16296
16297 fi
16298 rm -f conftest.err conftest.$ac_objext \
16299       conftest$ac_exeext conftest.$ac_ext
16300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16301
16302          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16303           # Warning - without using the other run time loading flags,
16304           # -berok will link without error, but may produce a broken library.
16305           no_undefined_flag_GCJ=' ${wl}-bernotok'
16306           allow_undefined_flag_GCJ=' ${wl}-berok'
16307           # -bexpall does not export symbols beginning with underscore (_)
16308           always_export_symbols_GCJ=yes
16309           # Exported symbols can be pulled into shared objects from archives
16310           whole_archive_flag_spec_GCJ=' '
16311           archive_cmds_need_lc_GCJ=yes
16312           # This is similar to how AIX traditionally builds it's shared libraries.
16313           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'
16314         fi
16315       fi
16316       ;;
16317
16318     amigaos*)
16319       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)'
16320       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16321       hardcode_minus_L_GCJ=yes
16322       # see comment about different semantics on the GNU ld section
16323       ld_shlibs_GCJ=no
16324       ;;
16325
16326     bsdi4*)
16327       export_dynamic_flag_spec_GCJ=-rdynamic
16328       ;;
16329
16330     cygwin* | mingw* | pw32*)
16331       # When not using gcc, we currently assume that we are using
16332       # Microsoft Visual C++.
16333       # hardcode_libdir_flag_spec is actually meaningless, as there is
16334       # no search path for DLLs.
16335       hardcode_libdir_flag_spec_GCJ=' '
16336       allow_undefined_flag_GCJ=unsupported
16337       # Tell ltmain to make .lib files, not .a files.
16338       libext=lib
16339       # Tell ltmain to make .dll files, not .so files.
16340       shrext_cmds=".dll"
16341       # FIXME: Setting linknames here is a bad hack.
16342       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16343       # The linker will automatically build a .lib file if we build a DLL.
16344       old_archive_From_new_cmds_GCJ='true'
16345       # FIXME: Should let the user specify the lib program.
16346       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16347       fix_srcfile_path='`cygpath -w "$srcfile"`'
16348       enable_shared_with_static_runtimes_GCJ=yes
16349       ;;
16350
16351     darwin* | rhapsody*)
16352     if test "$GXX" = yes ; then
16353       archive_cmds_need_lc_GCJ=no
16354       case "$host_os" in
16355       rhapsody* | darwin1.[012])
16356         allow_undefined_flag_GCJ='-undefined suppress'
16357         ;;
16358       *) # Darwin 1.3 on
16359       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16360         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16361       else
16362         case ${MACOSX_DEPLOYMENT_TARGET} in
16363           10.[012])
16364             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16365             ;;
16366           10.*)
16367             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16368             ;;
16369         esac
16370       fi
16371         ;;
16372       esac
16373         lt_int_apple_cc_single_mod=no
16374         output_verbose_link_cmd='echo'
16375         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16376           lt_int_apple_cc_single_mod=yes
16377         fi
16378         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16379           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16380         else
16381         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16382       fi
16383       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16384       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16385         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16386           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16387         else
16388           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16389         fi
16390           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}'
16391       hardcode_direct_GCJ=no
16392       hardcode_automatic_GCJ=yes
16393       hardcode_shlibpath_var_GCJ=unsupported
16394       whole_archive_flag_spec_GCJ='-all_load $convenience'
16395       link_all_deplibs_GCJ=yes
16396     else
16397       ld_shlibs_GCJ=no
16398     fi
16399       ;;
16400
16401     dgux*)
16402       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16403       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16404       hardcode_shlibpath_var_GCJ=no
16405       ;;
16406
16407     freebsd1*)
16408       ld_shlibs_GCJ=no
16409       ;;
16410
16411     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16412     # support.  Future versions do this automatically, but an explicit c++rt0.o
16413     # does not break anything, and helps significantly (at the cost of a little
16414     # extra space).
16415     freebsd2.2*)
16416       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16417       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16418       hardcode_direct_GCJ=yes
16419       hardcode_shlibpath_var_GCJ=no
16420       ;;
16421
16422     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16423     freebsd2*)
16424       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16425       hardcode_direct_GCJ=yes
16426       hardcode_minus_L_GCJ=yes
16427       hardcode_shlibpath_var_GCJ=no
16428       ;;
16429
16430     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16431     freebsd* | kfreebsd*-gnu)
16432       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16433       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16434       hardcode_direct_GCJ=yes
16435       hardcode_shlibpath_var_GCJ=no
16436       ;;
16437
16438     hpux9*)
16439       if test "$GCC" = yes; then
16440         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'
16441       else
16442         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'
16443       fi
16444       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16445       hardcode_libdir_separator_GCJ=:
16446       hardcode_direct_GCJ=yes
16447
16448       # hardcode_minus_L: Not really in the search PATH,
16449       # but as the default location of the library.
16450       hardcode_minus_L_GCJ=yes
16451       export_dynamic_flag_spec_GCJ='${wl}-E'
16452       ;;
16453
16454     hpux10* | hpux11*)
16455       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16456         case "$host_cpu" in
16457         hppa*64*|ia64*)
16458           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16459           ;;
16460         *)
16461           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16462           ;;
16463         esac
16464       else
16465         case "$host_cpu" in
16466         hppa*64*|ia64*)
16467           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16468           ;;
16469         *)
16470           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16471           ;;
16472         esac
16473       fi
16474       if test "$with_gnu_ld" = no; then
16475         case "$host_cpu" in
16476         hppa*64*)
16477           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16478           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16479           hardcode_libdir_separator_GCJ=:
16480           hardcode_direct_GCJ=no
16481           hardcode_shlibpath_var_GCJ=no
16482           ;;
16483         ia64*)
16484           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16485           hardcode_direct_GCJ=no
16486           hardcode_shlibpath_var_GCJ=no
16487
16488           # hardcode_minus_L: Not really in the search PATH,
16489           # but as the default location of the library.
16490           hardcode_minus_L_GCJ=yes
16491           ;;
16492         *)
16493           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16494           hardcode_libdir_separator_GCJ=:
16495           hardcode_direct_GCJ=yes
16496           export_dynamic_flag_spec_GCJ='${wl}-E'
16497
16498           # hardcode_minus_L: Not really in the search PATH,
16499           # but as the default location of the library.
16500           hardcode_minus_L_GCJ=yes
16501           ;;
16502         esac
16503       fi
16504       ;;
16505
16506     irix5* | irix6* | nonstopux*)
16507       if test "$GCC" = yes; then
16508         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'
16509       else
16510         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'
16511         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16512       fi
16513       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16514       hardcode_libdir_separator_GCJ=:
16515       link_all_deplibs_GCJ=yes
16516       ;;
16517
16518     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16519       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16520         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16521       else
16522         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16523       fi
16524       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16525       hardcode_direct_GCJ=yes
16526       hardcode_shlibpath_var_GCJ=no
16527       ;;
16528
16529     newsos6)
16530       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16531       hardcode_direct_GCJ=yes
16532       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16533       hardcode_libdir_separator_GCJ=:
16534       hardcode_shlibpath_var_GCJ=no
16535       ;;
16536
16537     openbsd*)
16538       hardcode_direct_GCJ=yes
16539       hardcode_shlibpath_var_GCJ=no
16540       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16541         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16542         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16543         export_dynamic_flag_spec_GCJ='${wl}-E'
16544       else
16545        case $host_os in
16546          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16547            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16548            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16549            ;;
16550          *)
16551            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16552            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16553            ;;
16554        esac
16555       fi
16556       ;;
16557
16558     os2*)
16559       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16560       hardcode_minus_L_GCJ=yes
16561       allow_undefined_flag_GCJ=unsupported
16562       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'
16563       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16564       ;;
16565
16566     osf3*)
16567       if test "$GCC" = yes; then
16568         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16569         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'
16570       else
16571         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16572         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'
16573       fi
16574       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16575       hardcode_libdir_separator_GCJ=:
16576       ;;
16577
16578     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16579       if test "$GCC" = yes; then
16580         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16581         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'
16582         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16583       else
16584         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16585         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'
16586         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~
16587         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16588
16589         # Both c and cxx compiler support -rpath directly
16590         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16591       fi
16592       hardcode_libdir_separator_GCJ=:
16593       ;;
16594
16595     sco3.2v5*)
16596       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597       hardcode_shlibpath_var_GCJ=no
16598       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16599       runpath_var=LD_RUN_PATH
16600       hardcode_runpath_var=yes
16601       ;;
16602
16603     solaris*)
16604       no_undefined_flag_GCJ=' -z text'
16605       if test "$GCC" = yes; then
16606         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16607         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16608           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16609       else
16610         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16611         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16612         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16613       fi
16614       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16615       hardcode_shlibpath_var_GCJ=no
16616       case $host_os in
16617       solaris2.[0-5] | solaris2.[0-5].*) ;;
16618       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16619         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16620       esac
16621       link_all_deplibs_GCJ=yes
16622       ;;
16623
16624     sunos4*)
16625       if test "x$host_vendor" = xsequent; then
16626         # Use $CC to link under sequent, because it throws in some extra .o
16627         # files that make .init and .fini sections work.
16628         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16629       else
16630         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16631       fi
16632       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16633       hardcode_direct_GCJ=yes
16634       hardcode_minus_L_GCJ=yes
16635       hardcode_shlibpath_var_GCJ=no
16636       ;;
16637
16638     sysv4)
16639       case $host_vendor in
16640         sni)
16641           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16642           hardcode_direct_GCJ=yes # is this really true???
16643         ;;
16644         siemens)
16645           ## LD is ld it makes a PLAMLIB
16646           ## CC just makes a GrossModule.
16647           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16648           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16649           hardcode_direct_GCJ=no
16650         ;;
16651         motorola)
16652           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16653           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16654         ;;
16655       esac
16656       runpath_var='LD_RUN_PATH'
16657       hardcode_shlibpath_var_GCJ=no
16658       ;;
16659
16660     sysv4.3*)
16661       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662       hardcode_shlibpath_var_GCJ=no
16663       export_dynamic_flag_spec_GCJ='-Bexport'
16664       ;;
16665
16666     sysv4*MP*)
16667       if test -d /usr/nec; then
16668         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16669         hardcode_shlibpath_var_GCJ=no
16670         runpath_var=LD_RUN_PATH
16671         hardcode_runpath_var=yes
16672         ld_shlibs_GCJ=yes
16673       fi
16674       ;;
16675
16676     sysv4.2uw2*)
16677       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16678       hardcode_direct_GCJ=yes
16679       hardcode_minus_L_GCJ=no
16680       hardcode_shlibpath_var_GCJ=no
16681       hardcode_runpath_var=yes
16682       runpath_var=LD_RUN_PATH
16683       ;;
16684
16685    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16686       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16687       if test "$GCC" = yes; then
16688         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16689       else
16690         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16691       fi
16692       runpath_var='LD_RUN_PATH'
16693       hardcode_shlibpath_var_GCJ=no
16694       ;;
16695
16696     sysv5*)
16697       no_undefined_flag_GCJ=' -z text'
16698       # $CC -shared without GNU ld will not create a library from C++
16699       # object files and a static libstdc++, better avoid it by now
16700       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16701       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16702                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16703       hardcode_libdir_flag_spec_GCJ=
16704       hardcode_shlibpath_var_GCJ=no
16705       runpath_var='LD_RUN_PATH'
16706       ;;
16707
16708     uts4*)
16709       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16711       hardcode_shlibpath_var_GCJ=no
16712       ;;
16713
16714     *)
16715       ld_shlibs_GCJ=no
16716       ;;
16717     esac
16718   fi
16719
16720 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16721 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16722 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16723
16724 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16725 if test "$GCC" = yes; then
16726   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16727 fi
16728
16729 #
16730 # Do we need to explicitly link libc?
16731 #
16732 case "x$archive_cmds_need_lc_GCJ" in
16733 x|xyes)
16734   # Assume -lc should be added
16735   archive_cmds_need_lc_GCJ=yes
16736
16737   if test "$enable_shared" = yes && test "$GCC" = yes; then
16738     case $archive_cmds_GCJ in
16739     *'~'*)
16740       # FIXME: we may have to deal with multi-command sequences.
16741       ;;
16742     '$CC '*)
16743       # Test whether the compiler implicitly links with -lc since on some
16744       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16745       # to ld, don't add -lc before -lgcc.
16746       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16747 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16748       $rm conftest*
16749       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16750
16751       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16752   (eval $ac_compile) 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } 2>conftest.err; then
16756         soname=conftest
16757         lib=conftest
16758         libobjs=conftest.$ac_objext
16759         deplibs=
16760         wl=$lt_prog_compiler_wl_GCJ
16761         compiler_flags=-v
16762         linker_flags=-v
16763         verstring=
16764         output_objdir=.
16765         libname=conftest
16766         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16767         allow_undefined_flag_GCJ=
16768         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16769   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16770   ac_status=$?
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); }
16773         then
16774           archive_cmds_need_lc_GCJ=no
16775         else
16776           archive_cmds_need_lc_GCJ=yes
16777         fi
16778         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16779       else
16780         cat conftest.err 1>&5
16781       fi
16782       $rm conftest*
16783       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16784 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16785       ;;
16786     esac
16787   fi
16788   ;;
16789 esac
16790
16791 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16792 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16793 library_names_spec=
16794 libname_spec='lib$name'
16795 soname_spec=
16796 shrext_cmds=".so"
16797 postinstall_cmds=
16798 postuninstall_cmds=
16799 finish_cmds=
16800 finish_eval=
16801 shlibpath_var=
16802 shlibpath_overrides_runpath=unknown
16803 version_type=none
16804 dynamic_linker="$host_os ld.so"
16805 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16806 if test "$GCC" = yes; then
16807   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16808   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16809     # if the path contains ";" then we assume it to be the separator
16810     # otherwise default to the standard path separator (i.e. ":") - it is
16811     # assumed that no part of a normal pathname contains ";" but that should
16812     # okay in the real world where ";" in dirpaths is itself problematic.
16813     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16814   else
16815     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16816   fi
16817 else
16818   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16819 fi
16820 need_lib_prefix=unknown
16821 hardcode_into_libs=no
16822
16823 # when you set need_version to no, make sure it does not cause -set_version
16824 # flags to be left without arguments
16825 need_version=unknown
16826
16827 case $host_os in
16828 aix3*)
16829   version_type=linux
16830   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16831   shlibpath_var=LIBPATH
16832
16833   # AIX 3 has no versioning support, so we append a major version to the name.
16834   soname_spec='${libname}${release}${shared_ext}$major'
16835   ;;
16836
16837 aix4* | aix5*)
16838   version_type=linux
16839   need_lib_prefix=no
16840   need_version=no
16841   hardcode_into_libs=yes
16842   if test "$host_cpu" = ia64; then
16843     # AIX 5 supports IA64
16844     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16845     shlibpath_var=LD_LIBRARY_PATH
16846   else
16847     # With GCC up to 2.95.x, collect2 would create an import file
16848     # for dependence libraries.  The import file would start with
16849     # the line `#! .'.  This would cause the generated library to
16850     # depend on `.', always an invalid library.  This was fixed in
16851     # development snapshots of GCC prior to 3.0.
16852     case $host_os in
16853       aix4 | aix4.[01] | aix4.[01].*)
16854       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16855            echo ' yes '
16856            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16857         :
16858       else
16859         can_build_shared=no
16860       fi
16861       ;;
16862     esac
16863     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16864     # soname into executable. Probably we can add versioning support to
16865     # collect2, so additional links can be useful in future.
16866     if test "$aix_use_runtimelinking" = yes; then
16867       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16868       # instead of lib<name>.a to let people know that these are not
16869       # typical AIX shared libraries.
16870       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16871     else
16872       # We preserve .a as extension for shared libraries through AIX4.2
16873       # and later when we are not doing run time linking.
16874       library_names_spec='${libname}${release}.a $libname.a'
16875       soname_spec='${libname}${release}${shared_ext}$major'
16876     fi
16877     shlibpath_var=LIBPATH
16878   fi
16879   ;;
16880
16881 amigaos*)
16882   library_names_spec='$libname.ixlibrary $libname.a'
16883   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16884   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'
16885   ;;
16886
16887 beos*)
16888   library_names_spec='${libname}${shared_ext}'
16889   dynamic_linker="$host_os ld.so"
16890   shlibpath_var=LIBRARY_PATH
16891   ;;
16892
16893 bsdi4*)
16894   version_type=linux
16895   need_version=no
16896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16897   soname_spec='${libname}${release}${shared_ext}$major'
16898   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16899   shlibpath_var=LD_LIBRARY_PATH
16900   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16901   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16902   # the default ld.so.conf also contains /usr/contrib/lib and
16903   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16904   # libtool to hard-code these into programs
16905   ;;
16906
16907 cygwin* | mingw* | pw32*)
16908   version_type=windows
16909   shrext_cmds=".dll"
16910   need_version=no
16911   need_lib_prefix=no
16912
16913   case $GCC,$host_os in
16914   yes,cygwin* | yes,mingw* | yes,pw32*)
16915     library_names_spec='$libname.dll.a'
16916     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16917     postinstall_cmds='base_file=`basename \${file}`~
16918       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16919       dldir=$destdir/`dirname \$dlpath`~
16920       test -d \$dldir || mkdir -p \$dldir~
16921       $install_prog $dir/$dlname \$dldir/$dlname'
16922     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16923       dlpath=$dir/\$dldll~
16924        $rm \$dlpath'
16925     shlibpath_overrides_runpath=yes
16926
16927     case $host_os in
16928     cygwin*)
16929       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16930       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16931       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16932       ;;
16933     mingw*)
16934       # MinGW DLLs use traditional 'lib' prefix
16935       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16936       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16937       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16938         # It is most probably a Windows format PATH printed by
16939         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16940         # path with ; separators, and with drive letters. We can handle the
16941         # drive letters (cygwin fileutils understands them), so leave them,
16942         # especially as we might pass files found there to a mingw objdump,
16943         # which wouldn't understand a cygwinified path. Ahh.
16944         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16945       else
16946         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16947       fi
16948       ;;
16949     pw32*)
16950       # pw32 DLLs use 'pw' prefix rather than 'lib'
16951       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16952       ;;
16953     esac
16954     ;;
16955
16956   *)
16957     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16958     ;;
16959   esac
16960   dynamic_linker='Win32 ld.exe'
16961   # FIXME: first we should search . and the directory the executable is in
16962   shlibpath_var=PATH
16963   ;;
16964
16965 darwin* | rhapsody*)
16966   dynamic_linker="$host_os dyld"
16967   version_type=darwin
16968   need_lib_prefix=no
16969   need_version=no
16970   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16971   soname_spec='${libname}${release}${major}$shared_ext'
16972   shlibpath_overrides_runpath=yes
16973   shlibpath_var=DYLD_LIBRARY_PATH
16974   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16975   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16976   if test "$GCC" = yes; then
16977     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"`
16978   else
16979     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16980   fi
16981   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16982   ;;
16983
16984 dgux*)
16985   version_type=linux
16986   need_lib_prefix=no
16987   need_version=no
16988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16989   soname_spec='${libname}${release}${shared_ext}$major'
16990   shlibpath_var=LD_LIBRARY_PATH
16991   ;;
16992
16993 freebsd1*)
16994   dynamic_linker=no
16995   ;;
16996
16997 kfreebsd*-gnu)
16998   version_type=linux
16999   need_lib_prefix=no
17000   need_version=no
17001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17002   soname_spec='${libname}${release}${shared_ext}$major'
17003   shlibpath_var=LD_LIBRARY_PATH
17004   shlibpath_overrides_runpath=no
17005   hardcode_into_libs=yes
17006   dynamic_linker='GNU ld.so'
17007   ;;
17008
17009 freebsd*)
17010   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17011   version_type=freebsd-$objformat
17012   case $version_type in
17013     freebsd-elf*)
17014       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17015       need_version=no
17016       need_lib_prefix=no
17017       ;;
17018     freebsd-*)
17019       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17020       need_version=yes
17021       ;;
17022   esac
17023   shlibpath_var=LD_LIBRARY_PATH
17024   case $host_os in
17025   freebsd2*)
17026     shlibpath_overrides_runpath=yes
17027     ;;
17028   freebsd3.01* | freebsdelf3.01*)
17029     shlibpath_overrides_runpath=yes
17030     hardcode_into_libs=yes
17031     ;;
17032   *) # from 3.2 on
17033     shlibpath_overrides_runpath=no
17034     hardcode_into_libs=yes
17035     ;;
17036   esac
17037   ;;
17038
17039 gnu*)
17040   version_type=linux
17041   need_lib_prefix=no
17042   need_version=no
17043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17044   soname_spec='${libname}${release}${shared_ext}$major'
17045   shlibpath_var=LD_LIBRARY_PATH
17046   hardcode_into_libs=yes
17047   ;;
17048
17049 hpux9* | hpux10* | hpux11*)
17050   # Give a soname corresponding to the major version so that dld.sl refuses to
17051   # link against other versions.
17052   version_type=sunos
17053   need_lib_prefix=no
17054   need_version=no
17055   case "$host_cpu" in
17056   ia64*)
17057     shrext_cmds='.so'
17058     hardcode_into_libs=yes
17059     dynamic_linker="$host_os dld.so"
17060     shlibpath_var=LD_LIBRARY_PATH
17061     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063     soname_spec='${libname}${release}${shared_ext}$major'
17064     if test "X$HPUX_IA64_MODE" = X32; then
17065       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17066     else
17067       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17068     fi
17069     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17070     ;;
17071    hppa*64*)
17072      shrext_cmds='.sl'
17073      hardcode_into_libs=yes
17074      dynamic_linker="$host_os dld.sl"
17075      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17076      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17077      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078      soname_spec='${libname}${release}${shared_ext}$major'
17079      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17080      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17081      ;;
17082    *)
17083     shrext_cmds='.sl'
17084     dynamic_linker="$host_os dld.sl"
17085     shlibpath_var=SHLIB_PATH
17086     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088     soname_spec='${libname}${release}${shared_ext}$major'
17089     ;;
17090   esac
17091   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17092   postinstall_cmds='chmod 555 $lib'
17093   ;;
17094
17095 irix5* | irix6* | nonstopux*)
17096   case $host_os in
17097     nonstopux*) version_type=nonstopux ;;
17098     *)
17099         if test "$lt_cv_prog_gnu_ld" = yes; then
17100                 version_type=linux
17101         else
17102                 version_type=irix
17103         fi ;;
17104   esac
17105   need_lib_prefix=no
17106   need_version=no
17107   soname_spec='${libname}${release}${shared_ext}$major'
17108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17109   case $host_os in
17110   irix5* | nonstopux*)
17111     libsuff= shlibsuff=
17112     ;;
17113   *)
17114     case $LD in # libtool.m4 will add one of these switches to LD
17115     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17116       libsuff= shlibsuff= libmagic=32-bit;;
17117     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17118       libsuff=32 shlibsuff=N32 libmagic=N32;;
17119     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17120       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17121     *) libsuff= shlibsuff= libmagic=never-match;;
17122     esac
17123     ;;
17124   esac
17125   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17126   shlibpath_overrides_runpath=no
17127   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17128   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17129   hardcode_into_libs=yes
17130   ;;
17131
17132 # No shared lib support for Linux oldld, aout, or coff.
17133 linux*oldld* | linux*aout* | linux*coff*)
17134   dynamic_linker=no
17135   ;;
17136
17137 # This must be Linux ELF.
17138 linux*)
17139   version_type=linux
17140   need_lib_prefix=no
17141   need_version=no
17142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143   soname_spec='${libname}${release}${shared_ext}$major'
17144   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17145   shlibpath_var=LD_LIBRARY_PATH
17146   shlibpath_overrides_runpath=no
17147   # This implies no fast_install, which is unacceptable.
17148   # Some rework will be needed to allow for fast_install
17149   # before this can be enabled.
17150   hardcode_into_libs=yes
17151
17152   # Append ld.so.conf contents to the search path
17153   if test -f /etc/ld.so.conf; then
17154     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17155     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17156   fi
17157
17158   # We used to test for /lib/ld.so.1 and disable shared libraries on
17159   # powerpc, because MkLinux only supported shared libraries with the
17160   # GNU dynamic linker.  Since this was broken with cross compilers,
17161   # most powerpc-linux boxes support dynamic linking these days and
17162   # people can always --disable-shared, the test was removed, and we
17163   # assume the GNU/Linux dynamic linker is in use.
17164   dynamic_linker='GNU/Linux ld.so'
17165   ;;
17166
17167 netbsdelf*-gnu)
17168   version_type=linux
17169   need_lib_prefix=no
17170   need_version=no
17171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17172   soname_spec='${libname}${release}${shared_ext}$major'
17173   shlibpath_var=LD_LIBRARY_PATH
17174   shlibpath_overrides_runpath=no
17175   hardcode_into_libs=yes
17176   dynamic_linker='NetBSD ld.elf_so'
17177   ;;
17178
17179 knetbsd*-gnu)
17180   version_type=linux
17181   need_lib_prefix=no
17182   need_version=no
17183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17184   soname_spec='${libname}${release}${shared_ext}$major'
17185   shlibpath_var=LD_LIBRARY_PATH
17186   shlibpath_overrides_runpath=no
17187   hardcode_into_libs=yes
17188   dynamic_linker='GNU ld.so'
17189   ;;
17190
17191 netbsd*)
17192   version_type=sunos
17193   need_lib_prefix=no
17194   need_version=no
17195   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17197     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17198     dynamic_linker='NetBSD (a.out) ld.so'
17199   else
17200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17201     soname_spec='${libname}${release}${shared_ext}$major'
17202     dynamic_linker='NetBSD ld.elf_so'
17203   fi
17204   shlibpath_var=LD_LIBRARY_PATH
17205   shlibpath_overrides_runpath=yes
17206   hardcode_into_libs=yes
17207   ;;
17208
17209 newsos6)
17210   version_type=linux
17211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212   shlibpath_var=LD_LIBRARY_PATH
17213   shlibpath_overrides_runpath=yes
17214   ;;
17215
17216 nto-qnx*)
17217   version_type=linux
17218   need_lib_prefix=no
17219   need_version=no
17220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221   soname_spec='${libname}${release}${shared_ext}$major'
17222   shlibpath_var=LD_LIBRARY_PATH
17223   shlibpath_overrides_runpath=yes
17224   ;;
17225
17226 openbsd*)
17227   version_type=sunos
17228   need_lib_prefix=no
17229   need_version=yes
17230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232   shlibpath_var=LD_LIBRARY_PATH
17233   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17234     case $host_os in
17235       openbsd2.[89] | openbsd2.[89].*)
17236         shlibpath_overrides_runpath=no
17237         ;;
17238       *)
17239         shlibpath_overrides_runpath=yes
17240         ;;
17241       esac
17242   else
17243     shlibpath_overrides_runpath=yes
17244   fi
17245   ;;
17246
17247 os2*)
17248   libname_spec='$name'
17249   shrext_cmds=".dll"
17250   need_lib_prefix=no
17251   library_names_spec='$libname${shared_ext} $libname.a'
17252   dynamic_linker='OS/2 ld.exe'
17253   shlibpath_var=LIBPATH
17254   ;;
17255
17256 osf3* | osf4* | osf5*)
17257   version_type=osf
17258   need_lib_prefix=no
17259   need_version=no
17260   soname_spec='${libname}${release}${shared_ext}$major'
17261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262   shlibpath_var=LD_LIBRARY_PATH
17263   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17264   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17265   ;;
17266
17267 sco3.2v5*)
17268   version_type=osf
17269   soname_spec='${libname}${release}${shared_ext}$major'
17270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271   shlibpath_var=LD_LIBRARY_PATH
17272   ;;
17273
17274 solaris*)
17275   version_type=linux
17276   need_lib_prefix=no
17277   need_version=no
17278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279   soname_spec='${libname}${release}${shared_ext}$major'
17280   shlibpath_var=LD_LIBRARY_PATH
17281   shlibpath_overrides_runpath=yes
17282   hardcode_into_libs=yes
17283   # ldd complains unless libraries are executable
17284   postinstall_cmds='chmod +x $lib'
17285   ;;
17286
17287 sunos4*)
17288   version_type=sunos
17289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17290   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17291   shlibpath_var=LD_LIBRARY_PATH
17292   shlibpath_overrides_runpath=yes
17293   if test "$with_gnu_ld" = yes; then
17294     need_lib_prefix=no
17295   fi
17296   need_version=yes
17297   ;;
17298
17299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17300   version_type=linux
17301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302   soname_spec='${libname}${release}${shared_ext}$major'
17303   shlibpath_var=LD_LIBRARY_PATH
17304   case $host_vendor in
17305     sni)
17306       shlibpath_overrides_runpath=no
17307       need_lib_prefix=no
17308       export_dynamic_flag_spec='${wl}-Blargedynsym'
17309       runpath_var=LD_RUN_PATH
17310       ;;
17311     siemens)
17312       need_lib_prefix=no
17313       ;;
17314     motorola)
17315       need_lib_prefix=no
17316       need_version=no
17317       shlibpath_overrides_runpath=no
17318       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17319       ;;
17320   esac
17321   ;;
17322
17323 sysv4*MP*)
17324   if test -d /usr/nec ;then
17325     version_type=linux
17326     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17327     soname_spec='$libname${shared_ext}.$major'
17328     shlibpath_var=LD_LIBRARY_PATH
17329   fi
17330   ;;
17331
17332 uts4*)
17333   version_type=linux
17334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335   soname_spec='${libname}${release}${shared_ext}$major'
17336   shlibpath_var=LD_LIBRARY_PATH
17337   ;;
17338
17339 *)
17340   dynamic_linker=no
17341   ;;
17342 esac
17343 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17344 echo "${ECHO_T}$dynamic_linker" >&6
17345 test "$dynamic_linker" = no && can_build_shared=no
17346
17347 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17348 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17349 hardcode_action_GCJ=
17350 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17351    test -n "$runpath_var GCJ" || \
17352    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17353
17354   # We can hardcode non-existant directories.
17355   if test "$hardcode_direct_GCJ" != no &&
17356      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17357      # have to relink, otherwise we might link with an installed library
17358      # when we should be linking with a yet-to-be-installed one
17359      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17360      test "$hardcode_minus_L_GCJ" != no; then
17361     # Linking always hardcodes the temporary library directory.
17362     hardcode_action_GCJ=relink
17363   else
17364     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17365     hardcode_action_GCJ=immediate
17366   fi
17367 else
17368   # We cannot hardcode anything, or else we can only hardcode existing
17369   # directories.
17370   hardcode_action_GCJ=unsupported
17371 fi
17372 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17373 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17374
17375 if test "$hardcode_action_GCJ" = relink; then
17376   # Fast installation is not supported
17377   enable_fast_install=no
17378 elif test "$shlibpath_overrides_runpath" = yes ||
17379      test "$enable_shared" = no; then
17380   # Fast installation is not necessary
17381   enable_fast_install=needless
17382 fi
17383
17384 striplib=
17385 old_striplib=
17386 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17387 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17388 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17389   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17390   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17391   echo "$as_me:$LINENO: result: yes" >&5
17392 echo "${ECHO_T}yes" >&6
17393 else
17394 # FIXME - insert some real tests, host_os isn't really good enough
17395   case $host_os in
17396    darwin*)
17397        if test -n "$STRIP" ; then
17398          striplib="$STRIP -x"
17399          echo "$as_me:$LINENO: result: yes" >&5
17400 echo "${ECHO_T}yes" >&6
17401        else
17402   echo "$as_me:$LINENO: result: no" >&5
17403 echo "${ECHO_T}no" >&6
17404 fi
17405        ;;
17406    *)
17407   echo "$as_me:$LINENO: result: no" >&5
17408 echo "${ECHO_T}no" >&6
17409     ;;
17410   esac
17411 fi
17412
17413 if test "x$enable_dlopen" != xyes; then
17414   enable_dlopen=unknown
17415   enable_dlopen_self=unknown
17416   enable_dlopen_self_static=unknown
17417 else
17418   lt_cv_dlopen=no
17419   lt_cv_dlopen_libs=
17420
17421   case $host_os in
17422   beos*)
17423     lt_cv_dlopen="load_add_on"
17424     lt_cv_dlopen_libs=
17425     lt_cv_dlopen_self=yes
17426     ;;
17427
17428   mingw* | pw32*)
17429     lt_cv_dlopen="LoadLibrary"
17430     lt_cv_dlopen_libs=
17431    ;;
17432
17433   cygwin*)
17434     lt_cv_dlopen="dlopen"
17435     lt_cv_dlopen_libs=
17436    ;;
17437
17438   darwin*)
17439   # if libdl is installed we need to link against it
17440     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17441 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17442 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17443   echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445   ac_check_lib_save_LIBS=$LIBS
17446 LIBS="-ldl  $LIBS"
17447 cat >conftest.$ac_ext <<_ACEOF
17448 /* confdefs.h.  */
17449 _ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h.  */
17453
17454 /* Override any gcc2 internal prototype to avoid an error.  */
17455 #ifdef __cplusplus
17456 extern "C"
17457 #endif
17458 /* We use char because int might match the return type of a gcc2
17459    builtin and then its argument prototype would still apply.  */
17460 char dlopen ();
17461 int
17462 main ()
17463 {
17464 dlopen ();
17465   ;
17466   return 0;
17467 }
17468 _ACEOF
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17471   (eval $ac_link) 2>conftest.er1
17472   ac_status=$?
17473   grep -v '^ *+' conftest.er1 >conftest.err
17474   rm -f conftest.er1
17475   cat conftest.err >&5
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); } &&
17478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480   (eval $ac_try) 2>&5
17481   ac_status=$?
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); }; } &&
17484          { ac_try='test -s conftest$ac_exeext'
17485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17486   (eval $ac_try) 2>&5
17487   ac_status=$?
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); }; }; then
17490   ac_cv_lib_dl_dlopen=yes
17491 else
17492   echo "$as_me: failed program was:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17494
17495 ac_cv_lib_dl_dlopen=no
17496 fi
17497 rm -f conftest.err conftest.$ac_objext \
17498       conftest$ac_exeext conftest.$ac_ext
17499 LIBS=$ac_check_lib_save_LIBS
17500 fi
17501 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17503 if test $ac_cv_lib_dl_dlopen = yes; then
17504   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17505 else
17506
17507     lt_cv_dlopen="dyld"
17508     lt_cv_dlopen_libs=
17509     lt_cv_dlopen_self=yes
17510
17511 fi
17512
17513    ;;
17514
17515   *)
17516     echo "$as_me:$LINENO: checking for shl_load" >&5
17517 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17518 if test "${ac_cv_func_shl_load+set}" = set; then
17519   echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521   cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h.  */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h.  */
17527 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17529 #define shl_load innocuous_shl_load
17530
17531 /* System header to define __stub macros and hopefully few prototypes,
17532     which can conflict with char shl_load (); below.
17533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534     <limits.h> exists even on freestanding compilers.  */
17535
17536 #ifdef __STDC__
17537 # include <limits.h>
17538 #else
17539 # include <assert.h>
17540 #endif
17541
17542 #undef shl_load
17543
17544 /* Override any gcc2 internal prototype to avoid an error.  */
17545 #ifdef __cplusplus
17546 extern "C"
17547 {
17548 #endif
17549 /* We use char because int might match the return type of a gcc2
17550    builtin and then its argument prototype would still apply.  */
17551 char shl_load ();
17552 /* The GNU C library defines this for functions which it implements
17553     to always fail with ENOSYS.  Some functions are actually named
17554     something starting with __ and the normal name is an alias.  */
17555 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17556 choke me
17557 #else
17558 char (*f) () = shl_load;
17559 #endif
17560 #ifdef __cplusplus
17561 }
17562 #endif
17563
17564 int
17565 main ()
17566 {
17567 return f != shl_load;
17568   ;
17569   return 0;
17570 }
17571 _ACEOF
17572 rm -f conftest.$ac_objext conftest$ac_exeext
17573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17574   (eval $ac_link) 2>conftest.er1
17575   ac_status=$?
17576   grep -v '^ *+' conftest.er1 >conftest.err
17577   rm -f conftest.er1
17578   cat conftest.err >&5
17579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); } &&
17581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583   (eval $ac_try) 2>&5
17584   ac_status=$?
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); }; } &&
17587          { ac_try='test -s conftest$ac_exeext'
17588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589   (eval $ac_try) 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; }; then
17593   ac_cv_func_shl_load=yes
17594 else
17595   echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598 ac_cv_func_shl_load=no
17599 fi
17600 rm -f conftest.err conftest.$ac_objext \
17601       conftest$ac_exeext conftest.$ac_ext
17602 fi
17603 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17604 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17605 if test $ac_cv_func_shl_load = yes; then
17606   lt_cv_dlopen="shl_load"
17607 else
17608   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17609 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17610 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17611   echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613   ac_check_lib_save_LIBS=$LIBS
17614 LIBS="-ldld  $LIBS"
17615 cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h.  */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h.  */
17621
17622 /* Override any gcc2 internal prototype to avoid an error.  */
17623 #ifdef __cplusplus
17624 extern "C"
17625 #endif
17626 /* We use char because int might match the return type of a gcc2
17627    builtin and then its argument prototype would still apply.  */
17628 char shl_load ();
17629 int
17630 main ()
17631 {
17632 shl_load ();
17633   ;
17634   return 0;
17635 }
17636 _ACEOF
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639   (eval $ac_link) 2>conftest.er1
17640   ac_status=$?
17641   grep -v '^ *+' conftest.er1 >conftest.err
17642   rm -f conftest.er1
17643   cat conftest.err >&5
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); } &&
17646          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648   (eval $ac_try) 2>&5
17649   ac_status=$?
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); }; } &&
17652          { ac_try='test -s conftest$ac_exeext'
17653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654   (eval $ac_try) 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }; }; then
17658   ac_cv_lib_dld_shl_load=yes
17659 else
17660   echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ac_cv_lib_dld_shl_load=no
17664 fi
17665 rm -f conftest.err conftest.$ac_objext \
17666       conftest$ac_exeext conftest.$ac_ext
17667 LIBS=$ac_check_lib_save_LIBS
17668 fi
17669 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17670 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17671 if test $ac_cv_lib_dld_shl_load = yes; then
17672   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17673 else
17674   echo "$as_me:$LINENO: checking for dlopen" >&5
17675 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17676 if test "${ac_cv_func_dlopen+set}" = set; then
17677   echo $ECHO_N "(cached) $ECHO_C" >&6
17678 else
17679   cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h.  */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h.  */
17685 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17687 #define dlopen innocuous_dlopen
17688
17689 /* System header to define __stub macros and hopefully few prototypes,
17690     which can conflict with char dlopen (); below.
17691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692     <limits.h> exists even on freestanding compilers.  */
17693
17694 #ifdef __STDC__
17695 # include <limits.h>
17696 #else
17697 # include <assert.h>
17698 #endif
17699
17700 #undef dlopen
17701
17702 /* Override any gcc2 internal prototype to avoid an error.  */
17703 #ifdef __cplusplus
17704 extern "C"
17705 {
17706 #endif
17707 /* We use char because int might match the return type of a gcc2
17708    builtin and then its argument prototype would still apply.  */
17709 char dlopen ();
17710 /* The GNU C library defines this for functions which it implements
17711     to always fail with ENOSYS.  Some functions are actually named
17712     something starting with __ and the normal name is an alias.  */
17713 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17714 choke me
17715 #else
17716 char (*f) () = dlopen;
17717 #endif
17718 #ifdef __cplusplus
17719 }
17720 #endif
17721
17722 int
17723 main ()
17724 {
17725 return f != dlopen;
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732   (eval $ac_link) 2>conftest.er1
17733   ac_status=$?
17734   grep -v '^ *+' conftest.er1 >conftest.err
17735   rm -f conftest.er1
17736   cat conftest.err >&5
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } &&
17739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741   (eval $ac_try) 2>&5
17742   ac_status=$?
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); }; } &&
17745          { ac_try='test -s conftest$ac_exeext'
17746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747   (eval $ac_try) 2>&5
17748   ac_status=$?
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); }; }; then
17751   ac_cv_func_dlopen=yes
17752 else
17753   echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17755
17756 ac_cv_func_dlopen=no
17757 fi
17758 rm -f conftest.err conftest.$ac_objext \
17759       conftest$ac_exeext conftest.$ac_ext
17760 fi
17761 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17762 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17763 if test $ac_cv_func_dlopen = yes; then
17764   lt_cv_dlopen="dlopen"
17765 else
17766   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17769   echo $ECHO_N "(cached) $ECHO_C" >&6
17770 else
17771   ac_check_lib_save_LIBS=$LIBS
17772 LIBS="-ldl  $LIBS"
17773 cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h.  */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h.  */
17779
17780 /* Override any gcc2 internal prototype to avoid an error.  */
17781 #ifdef __cplusplus
17782 extern "C"
17783 #endif
17784 /* We use char because int might match the return type of a gcc2
17785    builtin and then its argument prototype would still apply.  */
17786 char dlopen ();
17787 int
17788 main ()
17789 {
17790 dlopen ();
17791   ;
17792   return 0;
17793 }
17794 _ACEOF
17795 rm -f conftest.$ac_objext conftest$ac_exeext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17797   (eval $ac_link) 2>conftest.er1
17798   ac_status=$?
17799   grep -v '^ *+' conftest.er1 >conftest.err
17800   rm -f conftest.er1
17801   cat conftest.err >&5
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } &&
17804          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806   (eval $ac_try) 2>&5
17807   ac_status=$?
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); }; } &&
17810          { ac_try='test -s conftest$ac_exeext'
17811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812   (eval $ac_try) 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); }; }; then
17816   ac_cv_lib_dl_dlopen=yes
17817 else
17818   echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17820
17821 ac_cv_lib_dl_dlopen=no
17822 fi
17823 rm -f conftest.err conftest.$ac_objext \
17824       conftest$ac_exeext conftest.$ac_ext
17825 LIBS=$ac_check_lib_save_LIBS
17826 fi
17827 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17829 if test $ac_cv_lib_dl_dlopen = yes; then
17830   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17831 else
17832   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17833 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17834 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17835   echo $ECHO_N "(cached) $ECHO_C" >&6
17836 else
17837   ac_check_lib_save_LIBS=$LIBS
17838 LIBS="-lsvld  $LIBS"
17839 cat >conftest.$ac_ext <<_ACEOF
17840 /* confdefs.h.  */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h.  */
17845
17846 /* Override any gcc2 internal prototype to avoid an error.  */
17847 #ifdef __cplusplus
17848 extern "C"
17849 #endif
17850 /* We use char because int might match the return type of a gcc2
17851    builtin and then its argument prototype would still apply.  */
17852 char dlopen ();
17853 int
17854 main ()
17855 {
17856 dlopen ();
17857   ;
17858   return 0;
17859 }
17860 _ACEOF
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17863   (eval $ac_link) 2>conftest.er1
17864   ac_status=$?
17865   grep -v '^ *+' conftest.er1 >conftest.err
17866   rm -f conftest.er1
17867   cat conftest.err >&5
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); } &&
17870          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872   (eval $ac_try) 2>&5
17873   ac_status=$?
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); }; } &&
17876          { ac_try='test -s conftest$ac_exeext'
17877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878   (eval $ac_try) 2>&5
17879   ac_status=$?
17880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881   (exit $ac_status); }; }; then
17882   ac_cv_lib_svld_dlopen=yes
17883 else
17884   echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17886
17887 ac_cv_lib_svld_dlopen=no
17888 fi
17889 rm -f conftest.err conftest.$ac_objext \
17890       conftest$ac_exeext conftest.$ac_ext
17891 LIBS=$ac_check_lib_save_LIBS
17892 fi
17893 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17895 if test $ac_cv_lib_svld_dlopen = yes; then
17896   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17897 else
17898   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17899 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17900 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17901   echo $ECHO_N "(cached) $ECHO_C" >&6
17902 else
17903   ac_check_lib_save_LIBS=$LIBS
17904 LIBS="-ldld  $LIBS"
17905 cat >conftest.$ac_ext <<_ACEOF
17906 /* confdefs.h.  */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h.  */
17911
17912 /* Override any gcc2 internal prototype to avoid an error.  */
17913 #ifdef __cplusplus
17914 extern "C"
17915 #endif
17916 /* We use char because int might match the return type of a gcc2
17917    builtin and then its argument prototype would still apply.  */
17918 char dld_link ();
17919 int
17920 main ()
17921 {
17922 dld_link ();
17923   ;
17924   return 0;
17925 }
17926 _ACEOF
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17929   (eval $ac_link) 2>conftest.er1
17930   ac_status=$?
17931   grep -v '^ *+' conftest.er1 >conftest.err
17932   rm -f conftest.er1
17933   cat conftest.err >&5
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); } &&
17936          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938   (eval $ac_try) 2>&5
17939   ac_status=$?
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); }; } &&
17942          { ac_try='test -s conftest$ac_exeext'
17943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944   (eval $ac_try) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; }; then
17948   ac_cv_lib_dld_dld_link=yes
17949 else
17950   echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17952
17953 ac_cv_lib_dld_dld_link=no
17954 fi
17955 rm -f conftest.err conftest.$ac_objext \
17956       conftest$ac_exeext conftest.$ac_ext
17957 LIBS=$ac_check_lib_save_LIBS
17958 fi
17959 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17960 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17961 if test $ac_cv_lib_dld_dld_link = yes; then
17962   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17963 fi
17964
17965
17966 fi
17967
17968
17969 fi
17970
17971
17972 fi
17973
17974
17975 fi
17976
17977
17978 fi
17979
17980     ;;
17981   esac
17982
17983   if test "x$lt_cv_dlopen" != xno; then
17984     enable_dlopen=yes
17985   else
17986     enable_dlopen=no
17987   fi
17988
17989   case $lt_cv_dlopen in
17990   dlopen)
17991     save_CPPFLAGS="$CPPFLAGS"
17992     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17993
17994     save_LDFLAGS="$LDFLAGS"
17995     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17996
17997     save_LIBS="$LIBS"
17998     LIBS="$lt_cv_dlopen_libs $LIBS"
17999
18000     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18001 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18002 if test "${lt_cv_dlopen_self+set}" = set; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005           if test "$cross_compiling" = yes; then :
18006   lt_cv_dlopen_self=cross
18007 else
18008   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18009   lt_status=$lt_dlunknown
18010   cat > conftest.$ac_ext <<EOF
18011 #line 18011 "configure"
18012 #include "confdefs.h"
18013
18014 #if HAVE_DLFCN_H
18015 #include <dlfcn.h>
18016 #endif
18017
18018 #include <stdio.h>
18019
18020 #ifdef RTLD_GLOBAL
18021 #  define LT_DLGLOBAL           RTLD_GLOBAL
18022 #else
18023 #  ifdef DL_GLOBAL
18024 #    define LT_DLGLOBAL         DL_GLOBAL
18025 #  else
18026 #    define LT_DLGLOBAL         0
18027 #  endif
18028 #endif
18029
18030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18031    find out it does not work in some platform. */
18032 #ifndef LT_DLLAZY_OR_NOW
18033 #  ifdef RTLD_LAZY
18034 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18035 #  else
18036 #    ifdef DL_LAZY
18037 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18038 #    else
18039 #      ifdef RTLD_NOW
18040 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18041 #      else
18042 #        ifdef DL_NOW
18043 #          define LT_DLLAZY_OR_NOW      DL_NOW
18044 #        else
18045 #          define LT_DLLAZY_OR_NOW      0
18046 #        endif
18047 #      endif
18048 #    endif
18049 #  endif
18050 #endif
18051
18052 #ifdef __cplusplus
18053 extern "C" void exit (int);
18054 #endif
18055
18056 void fnord() { int i=42;}
18057 int main ()
18058 {
18059   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18060   int status = $lt_dlunknown;
18061
18062   if (self)
18063     {
18064       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18065       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18066       /* dlclose (self); */
18067     }
18068
18069     exit (status);
18070 }
18071 EOF
18072   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18073   (eval $ac_link) 2>&5
18074   ac_status=$?
18075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18077     (./conftest; exit; ) 2>/dev/null
18078     lt_status=$?
18079     case x$lt_status in
18080       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18081       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18082       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18083     esac
18084   else :
18085     # compilation failed
18086     lt_cv_dlopen_self=no
18087   fi
18088 fi
18089 rm -fr conftest*
18090
18091
18092 fi
18093 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18094 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18095
18096     if test "x$lt_cv_dlopen_self" = xyes; then
18097       LDFLAGS="$LDFLAGS $link_static_flag"
18098       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18099 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18100 if test "${lt_cv_dlopen_self_static+set}" = set; then
18101   echo $ECHO_N "(cached) $ECHO_C" >&6
18102 else
18103           if test "$cross_compiling" = yes; then :
18104   lt_cv_dlopen_self_static=cross
18105 else
18106   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18107   lt_status=$lt_dlunknown
18108   cat > conftest.$ac_ext <<EOF
18109 #line 18109 "configure"
18110 #include "confdefs.h"
18111
18112 #if HAVE_DLFCN_H
18113 #include <dlfcn.h>
18114 #endif
18115
18116 #include <stdio.h>
18117
18118 #ifdef RTLD_GLOBAL
18119 #  define LT_DLGLOBAL           RTLD_GLOBAL
18120 #else
18121 #  ifdef DL_GLOBAL
18122 #    define LT_DLGLOBAL         DL_GLOBAL
18123 #  else
18124 #    define LT_DLGLOBAL         0
18125 #  endif
18126 #endif
18127
18128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18129    find out it does not work in some platform. */
18130 #ifndef LT_DLLAZY_OR_NOW
18131 #  ifdef RTLD_LAZY
18132 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18133 #  else
18134 #    ifdef DL_LAZY
18135 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18136 #    else
18137 #      ifdef RTLD_NOW
18138 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18139 #      else
18140 #        ifdef DL_NOW
18141 #          define LT_DLLAZY_OR_NOW      DL_NOW
18142 #        else
18143 #          define LT_DLLAZY_OR_NOW      0
18144 #        endif
18145 #      endif
18146 #    endif
18147 #  endif
18148 #endif
18149
18150 #ifdef __cplusplus
18151 extern "C" void exit (int);
18152 #endif
18153
18154 void fnord() { int i=42;}
18155 int main ()
18156 {
18157   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18158   int status = $lt_dlunknown;
18159
18160   if (self)
18161     {
18162       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18163       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18164       /* dlclose (self); */
18165     }
18166
18167     exit (status);
18168 }
18169 EOF
18170   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18171   (eval $ac_link) 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18175     (./conftest; exit; ) 2>/dev/null
18176     lt_status=$?
18177     case x$lt_status in
18178       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18179       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18180       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18181     esac
18182   else :
18183     # compilation failed
18184     lt_cv_dlopen_self_static=no
18185   fi
18186 fi
18187 rm -fr conftest*
18188
18189
18190 fi
18191 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18192 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18193     fi
18194
18195     CPPFLAGS="$save_CPPFLAGS"
18196     LDFLAGS="$save_LDFLAGS"
18197     LIBS="$save_LIBS"
18198     ;;
18199   esac
18200
18201   case $lt_cv_dlopen_self in
18202   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18203   *) enable_dlopen_self=unknown ;;
18204   esac
18205
18206   case $lt_cv_dlopen_self_static in
18207   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18208   *) enable_dlopen_self_static=unknown ;;
18209   esac
18210 fi
18211
18212
18213 # The else clause should only fire when bootstrapping the
18214 # libtool distribution, otherwise you forgot to ship ltmain.sh
18215 # with your package, and you will get complaints that there are
18216 # no rules to generate ltmain.sh.
18217 if test -f "$ltmain"; then
18218   # See if we are running on zsh, and set the options which allow our commands through
18219   # without removal of \ escapes.
18220   if test -n "${ZSH_VERSION+set}" ; then
18221     setopt NO_GLOB_SUBST
18222   fi
18223   # Now quote all the things that may contain metacharacters while being
18224   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18225   # variables and quote the copies for generation of the libtool script.
18226   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18227     SED SHELL STRIP \
18228     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18229     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18230     deplibs_check_method reload_flag reload_cmds need_locks \
18231     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18232     lt_cv_sys_global_symbol_to_c_name_address \
18233     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18234     old_postinstall_cmds old_postuninstall_cmds \
18235     compiler_GCJ \
18236     CC_GCJ \
18237     LD_GCJ \
18238     lt_prog_compiler_wl_GCJ \
18239     lt_prog_compiler_pic_GCJ \
18240     lt_prog_compiler_static_GCJ \
18241     lt_prog_compiler_no_builtin_flag_GCJ \
18242     export_dynamic_flag_spec_GCJ \
18243     thread_safe_flag_spec_GCJ \
18244     whole_archive_flag_spec_GCJ \
18245     enable_shared_with_static_runtimes_GCJ \
18246     old_archive_cmds_GCJ \
18247     old_archive_from_new_cmds_GCJ \
18248     predep_objects_GCJ \
18249     postdep_objects_GCJ \
18250     predeps_GCJ \
18251     postdeps_GCJ \
18252     compiler_lib_search_path_GCJ \
18253     archive_cmds_GCJ \
18254     archive_expsym_cmds_GCJ \
18255     postinstall_cmds_GCJ \
18256     postuninstall_cmds_GCJ \
18257     old_archive_from_expsyms_cmds_GCJ \
18258     allow_undefined_flag_GCJ \
18259     no_undefined_flag_GCJ \
18260     export_symbols_cmds_GCJ \
18261     hardcode_libdir_flag_spec_GCJ \
18262     hardcode_libdir_flag_spec_ld_GCJ \
18263     hardcode_libdir_separator_GCJ \
18264     hardcode_automatic_GCJ \
18265     module_cmds_GCJ \
18266     module_expsym_cmds_GCJ \
18267     lt_cv_prog_compiler_c_o_GCJ \
18268     exclude_expsyms_GCJ \
18269     include_expsyms_GCJ; do
18270
18271     case $var in
18272     old_archive_cmds_GCJ | \
18273     old_archive_from_new_cmds_GCJ | \
18274     archive_cmds_GCJ | \
18275     archive_expsym_cmds_GCJ | \
18276     module_cmds_GCJ | \
18277     module_expsym_cmds_GCJ | \
18278     old_archive_from_expsyms_cmds_GCJ | \
18279     export_symbols_cmds_GCJ | \
18280     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18281     postinstall_cmds | postuninstall_cmds | \
18282     old_postinstall_cmds | old_postuninstall_cmds | \
18283     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18284       # Double-quote double-evaled strings.
18285       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18286       ;;
18287     *)
18288       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18289       ;;
18290     esac
18291   done
18292
18293   case $lt_echo in
18294   *'\$0 --fallback-echo"')
18295     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18296     ;;
18297   esac
18298
18299 cfgfile="$ofile"
18300
18301   cat <<__EOF__ >> "$cfgfile"
18302 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18303
18304 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18305
18306 # Shell to use when invoking shell scripts.
18307 SHELL=$lt_SHELL
18308
18309 # Whether or not to build shared libraries.
18310 build_libtool_libs=$enable_shared
18311
18312 # Whether or not to build static libraries.
18313 build_old_libs=$enable_static
18314
18315 # Whether or not to add -lc for building shared libraries.
18316 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18317
18318 # Whether or not to disallow shared libs when runtime libs are static
18319 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18320
18321 # Whether or not to optimize for fast installation.
18322 fast_install=$enable_fast_install
18323
18324 # The host system.
18325 host_alias=$host_alias
18326 host=$host
18327
18328 # An echo program that does not interpret backslashes.
18329 echo=$lt_echo
18330
18331 # The archiver.
18332 AR=$lt_AR
18333 AR_FLAGS=$lt_AR_FLAGS
18334
18335 # A C compiler.
18336 LTCC=$lt_LTCC
18337
18338 # A language-specific compiler.
18339 CC=$lt_compiler_GCJ
18340
18341 # Is the compiler the GNU C compiler?
18342 with_gcc=$GCC_GCJ
18343
18344 # An ERE matcher.
18345 EGREP=$lt_EGREP
18346
18347 # The linker used to build libraries.
18348 LD=$lt_LD_GCJ
18349
18350 # Whether we need hard or soft links.
18351 LN_S=$lt_LN_S
18352
18353 # A BSD-compatible nm program.
18354 NM=$lt_NM
18355
18356 # A symbol stripping program
18357 STRIP=$lt_STRIP
18358
18359 # Used to examine libraries when file_magic_cmd begins "file"
18360 MAGIC_CMD=$MAGIC_CMD
18361
18362 # Used on cygwin: DLL creation program.
18363 DLLTOOL="$DLLTOOL"
18364
18365 # Used on cygwin: object dumper.
18366 OBJDUMP="$OBJDUMP"
18367
18368 # Used on cygwin: assembler.
18369 AS="$AS"
18370
18371 # The name of the directory that contains temporary libtool files.
18372 objdir=$objdir
18373
18374 # How to create reloadable object files.
18375 reload_flag=$lt_reload_flag
18376 reload_cmds=$lt_reload_cmds
18377
18378 # How to pass a linker flag through the compiler.
18379 wl=$lt_lt_prog_compiler_wl_GCJ
18380
18381 # Object file suffix (normally "o").
18382 objext="$ac_objext"
18383
18384 # Old archive suffix (normally "a").
18385 libext="$libext"
18386
18387 # Shared library suffix (normally ".so").
18388 shrext_cmds='$shrext_cmds'
18389
18390 # Executable file suffix (normally "").
18391 exeext="$exeext"
18392
18393 # Additional compiler flags for building library objects.
18394 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18395 pic_mode=$pic_mode
18396
18397 # What is the maximum length of a command?
18398 max_cmd_len=$lt_cv_sys_max_cmd_len
18399
18400 # Does compiler simultaneously support -c and -o options?
18401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18402
18403 # Must we lock files when doing compilation ?
18404 need_locks=$lt_need_locks
18405
18406 # Do we need the lib prefix for modules?
18407 need_lib_prefix=$need_lib_prefix
18408
18409 # Do we need a version for libraries?
18410 need_version=$need_version
18411
18412 # Whether dlopen is supported.
18413 dlopen_support=$enable_dlopen
18414
18415 # Whether dlopen of programs is supported.
18416 dlopen_self=$enable_dlopen_self
18417
18418 # Whether dlopen of statically linked programs is supported.
18419 dlopen_self_static=$enable_dlopen_self_static
18420
18421 # Compiler flag to prevent dynamic linking.
18422 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18423
18424 # Compiler flag to turn off builtin functions.
18425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18426
18427 # Compiler flag to allow reflexive dlopens.
18428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18429
18430 # Compiler flag to generate shared objects directly from archives.
18431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18432
18433 # Compiler flag to generate thread-safe objects.
18434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18435
18436 # Library versioning type.
18437 version_type=$version_type
18438
18439 # Format of library name prefix.
18440 libname_spec=$lt_libname_spec
18441
18442 # List of archive names.  First name is the real one, the rest are links.
18443 # The last name is the one that the linker finds with -lNAME.
18444 library_names_spec=$lt_library_names_spec
18445
18446 # The coded name of the library, if different from the real name.
18447 soname_spec=$lt_soname_spec
18448
18449 # Commands used to build and install an old-style archive.
18450 RANLIB=$lt_RANLIB
18451 old_archive_cmds=$lt_old_archive_cmds_GCJ
18452 old_postinstall_cmds=$lt_old_postinstall_cmds
18453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18454
18455 # Create an old-style archive from a shared archive.
18456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18457
18458 # Create a temporary old-style archive to link instead of a shared archive.
18459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18460
18461 # Commands used to build and install a shared archive.
18462 archive_cmds=$lt_archive_cmds_GCJ
18463 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18464 postinstall_cmds=$lt_postinstall_cmds
18465 postuninstall_cmds=$lt_postuninstall_cmds
18466
18467 # Commands used to build a loadable module (assumed same as above if empty)
18468 module_cmds=$lt_module_cmds_GCJ
18469 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18470
18471 # Commands to strip libraries.
18472 old_striplib=$lt_old_striplib
18473 striplib=$lt_striplib
18474
18475 # Dependencies to place before the objects being linked to create a
18476 # shared library.
18477 predep_objects=$lt_predep_objects_GCJ
18478
18479 # Dependencies to place after the objects being linked to create a
18480 # shared library.
18481 postdep_objects=$lt_postdep_objects_GCJ
18482
18483 # Dependencies to place before the objects being linked to create a
18484 # shared library.
18485 predeps=$lt_predeps_GCJ
18486
18487 # Dependencies to place after the objects being linked to create a
18488 # shared library.
18489 postdeps=$lt_postdeps_GCJ
18490
18491 # The library search path used internally by the compiler when linking
18492 # a shared library.
18493 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18494
18495 # Method to check whether dependent libraries are shared objects.
18496 deplibs_check_method=$lt_deplibs_check_method
18497
18498 # Command to use when deplibs_check_method == file_magic.
18499 file_magic_cmd=$lt_file_magic_cmd
18500
18501 # Flag that allows shared libraries with undefined symbols to be built.
18502 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18503
18504 # Flag that forces no undefined symbols.
18505 no_undefined_flag=$lt_no_undefined_flag_GCJ
18506
18507 # Commands used to finish a libtool library installation in a directory.
18508 finish_cmds=$lt_finish_cmds
18509
18510 # Same as above, but a single script fragment to be evaled but not shown.
18511 finish_eval=$lt_finish_eval
18512
18513 # Take the output of nm and produce a listing of raw symbols and C names.
18514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18515
18516 # Transform the output of nm in a proper C declaration
18517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18518
18519 # Transform the output of nm in a C name address pair
18520 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18521
18522 # This is the shared library runtime path variable.
18523 runpath_var=$runpath_var
18524
18525 # This is the shared library path variable.
18526 shlibpath_var=$shlibpath_var
18527
18528 # Is shlibpath searched before the hard-coded library search path?
18529 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18530
18531 # How to hardcode a shared library path into an executable.
18532 hardcode_action=$hardcode_action_GCJ
18533
18534 # Whether we should hardcode library paths into libraries.
18535 hardcode_into_libs=$hardcode_into_libs
18536
18537 # Flag to hardcode \$libdir into a binary during linking.
18538 # This must work even if \$libdir does not exist.
18539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18540
18541 # If ld is used when linking, flag to hardcode \$libdir into
18542 # a binary during linking. This must work even if \$libdir does
18543 # not exist.
18544 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18545
18546 # Whether we need a single -rpath flag with a separated argument.
18547 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18548
18549 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18550 # resulting binary.
18551 hardcode_direct=$hardcode_direct_GCJ
18552
18553 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18554 # resulting binary.
18555 hardcode_minus_L=$hardcode_minus_L_GCJ
18556
18557 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18558 # the resulting binary.
18559 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18560
18561 # Set to yes if building a shared library automatically hardcodes DIR into the library
18562 # and all subsequent libraries and executables linked against it.
18563 hardcode_automatic=$hardcode_automatic_GCJ
18564
18565 # Variables whose values should be saved in libtool wrapper scripts and
18566 # restored at relink time.
18567 variables_saved_for_relink="$variables_saved_for_relink"
18568
18569 # Whether libtool must link a program against all its dependency libraries.
18570 link_all_deplibs=$link_all_deplibs_GCJ
18571
18572 # Compile-time system search path for libraries
18573 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18574
18575 # Run-time system search path for libraries
18576 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18577
18578 # Fix the shell variable \$srcfile for the compiler.
18579 fix_srcfile_path="$fix_srcfile_path_GCJ"
18580
18581 # Set to yes if exported symbols are required.
18582 always_export_symbols=$always_export_symbols_GCJ
18583
18584 # The commands to list exported symbols.
18585 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18586
18587 # The commands to extract the exported symbol list from a shared archive.
18588 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18589
18590 # Symbols that should not be listed in the preloaded symbols.
18591 exclude_expsyms=$lt_exclude_expsyms_GCJ
18592
18593 # Symbols that must always be exported.
18594 include_expsyms=$lt_include_expsyms_GCJ
18595
18596 # ### END LIBTOOL TAG CONFIG: $tagname
18597
18598 __EOF__
18599
18600
18601 else
18602   # If there is no Makefile yet, we rely on a make rule to execute
18603   # `config.status --recheck' to rerun these tests and create the
18604   # libtool script then.
18605   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18606   if test -f "$ltmain_in"; then
18607     test -f Makefile && make "$ltmain"
18608   fi
18609 fi
18610
18611
18612 ac_ext=c
18613 ac_cpp='$CPP $CPPFLAGS'
18614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18617
18618 CC="$lt_save_CC"
18619
18620         else
18621           tagname=""
18622         fi
18623         ;;
18624
18625       RC)
18626
18627
18628
18629 # Source file extension for RC test sources.
18630 ac_ext=rc
18631
18632 # Object file extension for compiled RC test sources.
18633 objext=o
18634 objext_RC=$objext
18635
18636 # Code to be used in simple compile tests
18637 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18638
18639 # Code to be used in simple link tests
18640 lt_simple_link_test_code="$lt_simple_compile_test_code"
18641
18642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18643
18644 # If no C compiler was specified, use CC.
18645 LTCC=${LTCC-"$CC"}
18646
18647 # Allow CC to be a program name with arguments.
18648 compiler=$CC
18649
18650
18651 # Allow CC to be a program name with arguments.
18652 lt_save_CC="$CC"
18653 CC=${RC-"windres"}
18654 compiler=$CC
18655 compiler_RC=$CC
18656 lt_cv_prog_compiler_c_o_RC=yes
18657
18658 # The else clause should only fire when bootstrapping the
18659 # libtool distribution, otherwise you forgot to ship ltmain.sh
18660 # with your package, and you will get complaints that there are
18661 # no rules to generate ltmain.sh.
18662 if test -f "$ltmain"; then
18663   # See if we are running on zsh, and set the options which allow our commands through
18664   # without removal of \ escapes.
18665   if test -n "${ZSH_VERSION+set}" ; then
18666     setopt NO_GLOB_SUBST
18667   fi
18668   # Now quote all the things that may contain metacharacters while being
18669   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18670   # variables and quote the copies for generation of the libtool script.
18671   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18672     SED SHELL STRIP \
18673     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18674     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18675     deplibs_check_method reload_flag reload_cmds need_locks \
18676     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18677     lt_cv_sys_global_symbol_to_c_name_address \
18678     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18679     old_postinstall_cmds old_postuninstall_cmds \
18680     compiler_RC \
18681     CC_RC \
18682     LD_RC \
18683     lt_prog_compiler_wl_RC \
18684     lt_prog_compiler_pic_RC \
18685     lt_prog_compiler_static_RC \
18686     lt_prog_compiler_no_builtin_flag_RC \
18687     export_dynamic_flag_spec_RC \
18688     thread_safe_flag_spec_RC \
18689     whole_archive_flag_spec_RC \
18690     enable_shared_with_static_runtimes_RC \
18691     old_archive_cmds_RC \
18692     old_archive_from_new_cmds_RC \
18693     predep_objects_RC \
18694     postdep_objects_RC \
18695     predeps_RC \
18696     postdeps_RC \
18697     compiler_lib_search_path_RC \
18698     archive_cmds_RC \
18699     archive_expsym_cmds_RC \
18700     postinstall_cmds_RC \
18701     postuninstall_cmds_RC \
18702     old_archive_from_expsyms_cmds_RC \
18703     allow_undefined_flag_RC \
18704     no_undefined_flag_RC \
18705     export_symbols_cmds_RC \
18706     hardcode_libdir_flag_spec_RC \
18707     hardcode_libdir_flag_spec_ld_RC \
18708     hardcode_libdir_separator_RC \
18709     hardcode_automatic_RC \
18710     module_cmds_RC \
18711     module_expsym_cmds_RC \
18712     lt_cv_prog_compiler_c_o_RC \
18713     exclude_expsyms_RC \
18714     include_expsyms_RC; do
18715
18716     case $var in
18717     old_archive_cmds_RC | \
18718     old_archive_from_new_cmds_RC | \
18719     archive_cmds_RC | \
18720     archive_expsym_cmds_RC | \
18721     module_cmds_RC | \
18722     module_expsym_cmds_RC | \
18723     old_archive_from_expsyms_cmds_RC | \
18724     export_symbols_cmds_RC | \
18725     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18726     postinstall_cmds | postuninstall_cmds | \
18727     old_postinstall_cmds | old_postuninstall_cmds | \
18728     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18729       # Double-quote double-evaled strings.
18730       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18731       ;;
18732     *)
18733       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18734       ;;
18735     esac
18736   done
18737
18738   case $lt_echo in
18739   *'\$0 --fallback-echo"')
18740     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18741     ;;
18742   esac
18743
18744 cfgfile="$ofile"
18745
18746   cat <<__EOF__ >> "$cfgfile"
18747 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18748
18749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18750
18751 # Shell to use when invoking shell scripts.
18752 SHELL=$lt_SHELL
18753
18754 # Whether or not to build shared libraries.
18755 build_libtool_libs=$enable_shared
18756
18757 # Whether or not to build static libraries.
18758 build_old_libs=$enable_static
18759
18760 # Whether or not to add -lc for building shared libraries.
18761 build_libtool_need_lc=$archive_cmds_need_lc_RC
18762
18763 # Whether or not to disallow shared libs when runtime libs are static
18764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18765
18766 # Whether or not to optimize for fast installation.
18767 fast_install=$enable_fast_install
18768
18769 # The host system.
18770 host_alias=$host_alias
18771 host=$host
18772
18773 # An echo program that does not interpret backslashes.
18774 echo=$lt_echo
18775
18776 # The archiver.
18777 AR=$lt_AR
18778 AR_FLAGS=$lt_AR_FLAGS
18779
18780 # A C compiler.
18781 LTCC=$lt_LTCC
18782
18783 # A language-specific compiler.
18784 CC=$lt_compiler_RC
18785
18786 # Is the compiler the GNU C compiler?
18787 with_gcc=$GCC_RC
18788
18789 # An ERE matcher.
18790 EGREP=$lt_EGREP
18791
18792 # The linker used to build libraries.
18793 LD=$lt_LD_RC
18794
18795 # Whether we need hard or soft links.
18796 LN_S=$lt_LN_S
18797
18798 # A BSD-compatible nm program.
18799 NM=$lt_NM
18800
18801 # A symbol stripping program
18802 STRIP=$lt_STRIP
18803
18804 # Used to examine libraries when file_magic_cmd begins "file"
18805 MAGIC_CMD=$MAGIC_CMD
18806
18807 # Used on cygwin: DLL creation program.
18808 DLLTOOL="$DLLTOOL"
18809
18810 # Used on cygwin: object dumper.
18811 OBJDUMP="$OBJDUMP"
18812
18813 # Used on cygwin: assembler.
18814 AS="$AS"
18815
18816 # The name of the directory that contains temporary libtool files.
18817 objdir=$objdir
18818
18819 # How to create reloadable object files.
18820 reload_flag=$lt_reload_flag
18821 reload_cmds=$lt_reload_cmds
18822
18823 # How to pass a linker flag through the compiler.
18824 wl=$lt_lt_prog_compiler_wl_RC
18825
18826 # Object file suffix (normally "o").
18827 objext="$ac_objext"
18828
18829 # Old archive suffix (normally "a").
18830 libext="$libext"
18831
18832 # Shared library suffix (normally ".so").
18833 shrext_cmds='$shrext_cmds'
18834
18835 # Executable file suffix (normally "").
18836 exeext="$exeext"
18837
18838 # Additional compiler flags for building library objects.
18839 pic_flag=$lt_lt_prog_compiler_pic_RC
18840 pic_mode=$pic_mode
18841
18842 # What is the maximum length of a command?
18843 max_cmd_len=$lt_cv_sys_max_cmd_len
18844
18845 # Does compiler simultaneously support -c and -o options?
18846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18847
18848 # Must we lock files when doing compilation ?
18849 need_locks=$lt_need_locks
18850
18851 # Do we need the lib prefix for modules?
18852 need_lib_prefix=$need_lib_prefix
18853
18854 # Do we need a version for libraries?
18855 need_version=$need_version
18856
18857 # Whether dlopen is supported.
18858 dlopen_support=$enable_dlopen
18859
18860 # Whether dlopen of programs is supported.
18861 dlopen_self=$enable_dlopen_self
18862
18863 # Whether dlopen of statically linked programs is supported.
18864 dlopen_self_static=$enable_dlopen_self_static
18865
18866 # Compiler flag to prevent dynamic linking.
18867 link_static_flag=$lt_lt_prog_compiler_static_RC
18868
18869 # Compiler flag to turn off builtin functions.
18870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18871
18872 # Compiler flag to allow reflexive dlopens.
18873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18874
18875 # Compiler flag to generate shared objects directly from archives.
18876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18877
18878 # Compiler flag to generate thread-safe objects.
18879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18880
18881 # Library versioning type.
18882 version_type=$version_type
18883
18884 # Format of library name prefix.
18885 libname_spec=$lt_libname_spec
18886
18887 # List of archive names.  First name is the real one, the rest are links.
18888 # The last name is the one that the linker finds with -lNAME.
18889 library_names_spec=$lt_library_names_spec
18890
18891 # The coded name of the library, if different from the real name.
18892 soname_spec=$lt_soname_spec
18893
18894 # Commands used to build and install an old-style archive.
18895 RANLIB=$lt_RANLIB
18896 old_archive_cmds=$lt_old_archive_cmds_RC
18897 old_postinstall_cmds=$lt_old_postinstall_cmds
18898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18899
18900 # Create an old-style archive from a shared archive.
18901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18902
18903 # Create a temporary old-style archive to link instead of a shared archive.
18904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18905
18906 # Commands used to build and install a shared archive.
18907 archive_cmds=$lt_archive_cmds_RC
18908 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18909 postinstall_cmds=$lt_postinstall_cmds
18910 postuninstall_cmds=$lt_postuninstall_cmds
18911
18912 # Commands used to build a loadable module (assumed same as above if empty)
18913 module_cmds=$lt_module_cmds_RC
18914 module_expsym_cmds=$lt_module_expsym_cmds_RC
18915
18916 # Commands to strip libraries.
18917 old_striplib=$lt_old_striplib
18918 striplib=$lt_striplib
18919
18920 # Dependencies to place before the objects being linked to create a
18921 # shared library.
18922 predep_objects=$lt_predep_objects_RC
18923
18924 # Dependencies to place after the objects being linked to create a
18925 # shared library.
18926 postdep_objects=$lt_postdep_objects_RC
18927
18928 # Dependencies to place before the objects being linked to create a
18929 # shared library.
18930 predeps=$lt_predeps_RC
18931
18932 # Dependencies to place after the objects being linked to create a
18933 # shared library.
18934 postdeps=$lt_postdeps_RC
18935
18936 # The library search path used internally by the compiler when linking
18937 # a shared library.
18938 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18939
18940 # Method to check whether dependent libraries are shared objects.
18941 deplibs_check_method=$lt_deplibs_check_method
18942
18943 # Command to use when deplibs_check_method == file_magic.
18944 file_magic_cmd=$lt_file_magic_cmd
18945
18946 # Flag that allows shared libraries with undefined symbols to be built.
18947 allow_undefined_flag=$lt_allow_undefined_flag_RC
18948
18949 # Flag that forces no undefined symbols.
18950 no_undefined_flag=$lt_no_undefined_flag_RC
18951
18952 # Commands used to finish a libtool library installation in a directory.
18953 finish_cmds=$lt_finish_cmds
18954
18955 # Same as above, but a single script fragment to be evaled but not shown.
18956 finish_eval=$lt_finish_eval
18957
18958 # Take the output of nm and produce a listing of raw symbols and C names.
18959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18960
18961 # Transform the output of nm in a proper C declaration
18962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18963
18964 # Transform the output of nm in a C name address pair
18965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18966
18967 # This is the shared library runtime path variable.
18968 runpath_var=$runpath_var
18969
18970 # This is the shared library path variable.
18971 shlibpath_var=$shlibpath_var
18972
18973 # Is shlibpath searched before the hard-coded library search path?
18974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18975
18976 # How to hardcode a shared library path into an executable.
18977 hardcode_action=$hardcode_action_RC
18978
18979 # Whether we should hardcode library paths into libraries.
18980 hardcode_into_libs=$hardcode_into_libs
18981
18982 # Flag to hardcode \$libdir into a binary during linking.
18983 # This must work even if \$libdir does not exist.
18984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18985
18986 # If ld is used when linking, flag to hardcode \$libdir into
18987 # a binary during linking. This must work even if \$libdir does
18988 # not exist.
18989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18990
18991 # Whether we need a single -rpath flag with a separated argument.
18992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18993
18994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18995 # resulting binary.
18996 hardcode_direct=$hardcode_direct_RC
18997
18998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18999 # resulting binary.
19000 hardcode_minus_L=$hardcode_minus_L_RC
19001
19002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19003 # the resulting binary.
19004 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19005
19006 # Set to yes if building a shared library automatically hardcodes DIR into the library
19007 # and all subsequent libraries and executables linked against it.
19008 hardcode_automatic=$hardcode_automatic_RC
19009
19010 # Variables whose values should be saved in libtool wrapper scripts and
19011 # restored at relink time.
19012 variables_saved_for_relink="$variables_saved_for_relink"
19013
19014 # Whether libtool must link a program against all its dependency libraries.
19015 link_all_deplibs=$link_all_deplibs_RC
19016
19017 # Compile-time system search path for libraries
19018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19019
19020 # Run-time system search path for libraries
19021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19022
19023 # Fix the shell variable \$srcfile for the compiler.
19024 fix_srcfile_path="$fix_srcfile_path_RC"
19025
19026 # Set to yes if exported symbols are required.
19027 always_export_symbols=$always_export_symbols_RC
19028
19029 # The commands to list exported symbols.
19030 export_symbols_cmds=$lt_export_symbols_cmds_RC
19031
19032 # The commands to extract the exported symbol list from a shared archive.
19033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19034
19035 # Symbols that should not be listed in the preloaded symbols.
19036 exclude_expsyms=$lt_exclude_expsyms_RC
19037
19038 # Symbols that must always be exported.
19039 include_expsyms=$lt_include_expsyms_RC
19040
19041 # ### END LIBTOOL TAG CONFIG: $tagname
19042
19043 __EOF__
19044
19045
19046 else
19047   # If there is no Makefile yet, we rely on a make rule to execute
19048   # `config.status --recheck' to rerun these tests and create the
19049   # libtool script then.
19050   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19051   if test -f "$ltmain_in"; then
19052     test -f Makefile && make "$ltmain"
19053   fi
19054 fi
19055
19056
19057 ac_ext=c
19058 ac_cpp='$CPP $CPPFLAGS'
19059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19062
19063 CC="$lt_save_CC"
19064
19065         ;;
19066
19067       *)
19068         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19069 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19070    { (exit 1); exit 1; }; }
19071         ;;
19072       esac
19073
19074       # Append the new tag name to the list of available tags.
19075       if test -n "$tagname" ; then
19076       available_tags="$available_tags $tagname"
19077     fi
19078     fi
19079   done
19080   IFS="$lt_save_ifs"
19081
19082   # Now substitute the updated list of available tags.
19083   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19084     mv "${ofile}T" "$ofile"
19085     chmod +x "$ofile"
19086   else
19087     rm -f "${ofile}T"
19088     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19089 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19090    { (exit 1); exit 1; }; }
19091   fi
19092 fi
19093
19094
19095
19096 # This can be used to rebuild libtool when needed
19097 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19098
19099 # Always use our own libtool.
19100 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19101
19102 # Prevent multiple expansion
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124           ac_config_headers="$ac_config_headers src/config.h"
19125
19126           ac_config_files="$ac_config_files aubio.pc"
19127
19128
19129 case "${host_os}" in
19130 mingw*)
19131   mingw32_support="yes"
19132   if test "${ac_cv_header_windows_h+set}" = set; then
19133   echo "$as_me:$LINENO: checking for windows.h" >&5
19134 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19135 if test "${ac_cv_header_windows_h+set}" = set; then
19136   echo $ECHO_N "(cached) $ECHO_C" >&6
19137 fi
19138 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19139 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19140 else
19141   # Is the header compilable?
19142 echo "$as_me:$LINENO: checking windows.h usability" >&5
19143 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19144 cat >conftest.$ac_ext <<_ACEOF
19145 /* confdefs.h.  */
19146 _ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h.  */
19150 $ac_includes_default
19151 #include <windows.h>
19152 _ACEOF
19153 rm -f conftest.$ac_objext
19154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19155   (eval $ac_compile) 2>conftest.er1
19156   ac_status=$?
19157   grep -v '^ *+' conftest.er1 >conftest.err
19158   rm -f conftest.er1
19159   cat conftest.err >&5
19160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161   (exit $ac_status); } &&
19162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164   (eval $ac_try) 2>&5
19165   ac_status=$?
19166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167   (exit $ac_status); }; } &&
19168          { ac_try='test -s conftest.$ac_objext'
19169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170   (eval $ac_try) 2>&5
19171   ac_status=$?
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); }; }; then
19174   ac_header_compiler=yes
19175 else
19176   echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19178
19179 ac_header_compiler=no
19180 fi
19181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19183 echo "${ECHO_T}$ac_header_compiler" >&6
19184
19185 # Is the header present?
19186 echo "$as_me:$LINENO: checking windows.h presence" >&5
19187 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19188 cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h.  */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h.  */
19194 #include <windows.h>
19195 _ACEOF
19196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19197   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19198   ac_status=$?
19199   grep -v '^ *+' conftest.er1 >conftest.err
19200   rm -f conftest.er1
19201   cat conftest.err >&5
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); } >/dev/null; then
19204   if test -s conftest.err; then
19205     ac_cpp_err=$ac_c_preproc_warn_flag
19206     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19207   else
19208     ac_cpp_err=
19209   fi
19210 else
19211   ac_cpp_err=yes
19212 fi
19213 if test -z "$ac_cpp_err"; then
19214   ac_header_preproc=yes
19215 else
19216   echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19218
19219   ac_header_preproc=no
19220 fi
19221 rm -f conftest.err conftest.$ac_ext
19222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19223 echo "${ECHO_T}$ac_header_preproc" >&6
19224
19225 # So?  What about this header?
19226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19227   yes:no: )
19228     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19229 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19230     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
19231 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
19232     ac_header_preproc=yes
19233     ;;
19234   no:yes:* )
19235     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19236 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19237     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
19238 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
19239     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
19240 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
19241     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
19242 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19243     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19244 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19245     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
19246 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
19247     (
19248       cat <<\_ASBOX
19249 ## ------------------------------------------ ##
19250 ## Report this to the AC_PACKAGE_NAME lists.  ##
19251 ## ------------------------------------------ ##
19252 _ASBOX
19253     ) |
19254       sed "s/^/$as_me: WARNING:     /" >&2
19255     ;;
19256 esac
19257 echo "$as_me:$LINENO: checking for windows.h" >&5
19258 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19259 if test "${ac_cv_header_windows_h+set}" = set; then
19260   echo $ECHO_N "(cached) $ECHO_C" >&6
19261 else
19262   ac_cv_header_windows_h=$ac_header_preproc
19263 fi
19264 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19265 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19266
19267 fi
19268
19269
19270   ;;
19271 darwin*)
19272     LDFLAGS="$LDFLAGS -lmx"
19273
19274         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
19275 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
19276 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
19277   echo $ECHO_N "(cached) $ECHO_C" >&6
19278 else
19279   ac_check_lib_save_LIBS=$LIBS
19280 LIBS="-lcposix  $LIBS"
19281 cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h.  */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h.  */
19287
19288 /* Override any gcc2 internal prototype to avoid an error.  */
19289 #ifdef __cplusplus
19290 extern "C"
19291 #endif
19292 /* We use char because int might match the return type of a gcc2
19293    builtin and then its argument prototype would still apply.  */
19294 char strerror ();
19295 int
19296 main ()
19297 {
19298 strerror ();
19299   ;
19300   return 0;
19301 }
19302 _ACEOF
19303 rm -f conftest.$ac_objext conftest$ac_exeext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305   (eval $ac_link) 2>conftest.er1
19306   ac_status=$?
19307   grep -v '^ *+' conftest.er1 >conftest.err
19308   rm -f conftest.er1
19309   cat conftest.err >&5
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); } &&
19312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314   (eval $ac_try) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; } &&
19318          { ac_try='test -s conftest$ac_exeext'
19319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320   (eval $ac_try) 2>&5
19321   ac_status=$?
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); }; }; then
19324   ac_cv_lib_cposix_strerror=yes
19325 else
19326   echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19328
19329 ac_cv_lib_cposix_strerror=no
19330 fi
19331 rm -f conftest.err conftest.$ac_objext \
19332       conftest$ac_exeext conftest.$ac_ext
19333 LIBS=$ac_check_lib_save_LIBS
19334 fi
19335 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
19336 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
19337 if test $ac_cv_lib_cposix_strerror = yes; then
19338   LIBS="$LIBS -lcposix"
19339 fi
19340
19341
19342
19343   ;;
19344 *)
19345
19346         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
19347 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
19348 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
19349   echo $ECHO_N "(cached) $ECHO_C" >&6
19350 else
19351   ac_check_lib_save_LIBS=$LIBS
19352 LIBS="-lcposix  $LIBS"
19353 cat >conftest.$ac_ext <<_ACEOF
19354 /* confdefs.h.  */
19355 _ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h.  */
19359
19360 /* Override any gcc2 internal prototype to avoid an error.  */
19361 #ifdef __cplusplus
19362 extern "C"
19363 #endif
19364 /* We use char because int might match the return type of a gcc2
19365    builtin and then its argument prototype would still apply.  */
19366 char strerror ();
19367 int
19368 main ()
19369 {
19370 strerror ();
19371   ;
19372   return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19377   (eval $ac_link) 2>conftest.er1
19378   ac_status=$?
19379   grep -v '^ *+' conftest.er1 >conftest.err
19380   rm -f conftest.er1
19381   cat conftest.err >&5
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); } &&
19384          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386   (eval $ac_try) 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; } &&
19390          { ac_try='test -s conftest$ac_exeext'
19391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392   (eval $ac_try) 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; }; then
19396   ac_cv_lib_cposix_strerror=yes
19397 else
19398   echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401 ac_cv_lib_cposix_strerror=no
19402 fi
19403 rm -f conftest.err conftest.$ac_objext \
19404       conftest$ac_exeext conftest.$ac_ext
19405 LIBS=$ac_check_lib_save_LIBS
19406 fi
19407 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
19408 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
19409 if test $ac_cv_lib_cposix_strerror = yes; then
19410   LIBS="$LIBS -lcposix"
19411 fi
19412
19413
19414
19415   ;;
19416 esac
19417
19418
19419 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19420 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19421 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19422   echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424   ac_check_lib_save_LIBS=$LIBS
19425 LIBS="-lpthread  $LIBS"
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432
19433 /* Override any gcc2 internal prototype to avoid an error.  */
19434 #ifdef __cplusplus
19435 extern "C"
19436 #endif
19437 /* We use char because int might match the return type of a gcc2
19438    builtin and then its argument prototype would still apply.  */
19439 char pthread_create ();
19440 int
19441 main ()
19442 {
19443 pthread_create ();
19444   ;
19445   return 0;
19446 }
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19450   (eval $ac_link) 2>conftest.er1
19451   ac_status=$?
19452   grep -v '^ *+' conftest.er1 >conftest.err
19453   rm -f conftest.er1
19454   cat conftest.err >&5
19455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456   (exit $ac_status); } &&
19457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459   (eval $ac_try) 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; } &&
19463          { ac_try='test -s conftest$ac_exeext'
19464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465   (eval $ac_try) 2>&5
19466   ac_status=$?
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); }; }; then
19469   ac_cv_lib_pthread_pthread_create=yes
19470 else
19471   echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19473
19474 ac_cv_lib_pthread_pthread_create=no
19475 fi
19476 rm -f conftest.err conftest.$ac_objext \
19477       conftest$ac_exeext conftest.$ac_ext
19478 LIBS=$ac_check_lib_save_LIBS
19479 fi
19480 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19481 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19482 if test $ac_cv_lib_pthread_pthread_create = yes; then
19483   cat >>confdefs.h <<_ACEOF
19484 #define HAVE_LIBPTHREAD 1
19485 _ACEOF
19486
19487   LIBS="-lpthread $LIBS"
19488
19489 fi
19490
19491
19492 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19493 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19494 if test "${ac_cv_header_stdc+set}" = set; then
19495   echo $ECHO_N "(cached) $ECHO_C" >&6
19496 else
19497   cat >conftest.$ac_ext <<_ACEOF
19498 /* confdefs.h.  */
19499 _ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h.  */
19503 #include <stdlib.h>
19504 #include <stdarg.h>
19505 #include <string.h>
19506 #include <float.h>
19507
19508 int
19509 main ()
19510 {
19511
19512   ;
19513   return 0;
19514 }
19515 _ACEOF
19516 rm -f conftest.$ac_objext
19517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19518   (eval $ac_compile) 2>conftest.er1
19519   ac_status=$?
19520   grep -v '^ *+' conftest.er1 >conftest.err
19521   rm -f conftest.er1
19522   cat conftest.err >&5
19523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524   (exit $ac_status); } &&
19525          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527   (eval $ac_try) 2>&5
19528   ac_status=$?
19529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530   (exit $ac_status); }; } &&
19531          { ac_try='test -s conftest.$ac_objext'
19532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533   (eval $ac_try) 2>&5
19534   ac_status=$?
19535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536   (exit $ac_status); }; }; then
19537   ac_cv_header_stdc=yes
19538 else
19539   echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19541
19542 ac_cv_header_stdc=no
19543 fi
19544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19545
19546 if test $ac_cv_header_stdc = yes; then
19547   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19548   cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h.  */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h.  */
19554 #include <string.h>
19555
19556 _ACEOF
19557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19558   $EGREP "memchr" >/dev/null 2>&1; then
19559   :
19560 else
19561   ac_cv_header_stdc=no
19562 fi
19563 rm -f conftest*
19564
19565 fi
19566
19567 if test $ac_cv_header_stdc = yes; then
19568   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19569   cat >conftest.$ac_ext <<_ACEOF
19570 /* confdefs.h.  */
19571 _ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h.  */
19575 #include <stdlib.h>
19576
19577 _ACEOF
19578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19579   $EGREP "free" >/dev/null 2>&1; then
19580   :
19581 else
19582   ac_cv_header_stdc=no
19583 fi
19584 rm -f conftest*
19585
19586 fi
19587
19588 if test $ac_cv_header_stdc = yes; then
19589   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19590   if test "$cross_compiling" = yes; then
19591   :
19592 else
19593   cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599 #include <ctype.h>
19600 #if ((' ' & 0x0FF) == 0x020)
19601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19603 #else
19604 # define ISLOWER(c) \
19605                    (('a' <= (c) && (c) <= 'i') \
19606                      || ('j' <= (c) && (c) <= 'r') \
19607                      || ('s' <= (c) && (c) <= 'z'))
19608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19609 #endif
19610
19611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19612 int
19613 main ()
19614 {
19615   int i;
19616   for (i = 0; i < 256; i++)
19617     if (XOR (islower (i), ISLOWER (i))
19618         || toupper (i) != TOUPPER (i))
19619       exit(2);
19620   exit (0);
19621 }
19622 _ACEOF
19623 rm -f conftest$ac_exeext
19624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19625   (eval $ac_link) 2>&5
19626   ac_status=$?
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630   (eval $ac_try) 2>&5
19631   ac_status=$?
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); }; }; then
19634   :
19635 else
19636   echo "$as_me: program exited with status $ac_status" >&5
19637 echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19639
19640 ( exit $ac_status )
19641 ac_cv_header_stdc=no
19642 fi
19643 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19644 fi
19645 fi
19646 fi
19647 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19648 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19649 if test $ac_cv_header_stdc = yes; then
19650
19651 cat >>confdefs.h <<\_ACEOF
19652 #define STDC_HEADERS 1
19653 _ACEOF
19654
19655 fi
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665 for ac_header in string.h stdlib.h stdio.h math.h errno.h stdarg.h unistd.h signal.h
19666 do
19667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19669   echo "$as_me:$LINENO: checking for $ac_header" >&5
19670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19672   echo $ECHO_N "(cached) $ECHO_C" >&6
19673 fi
19674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19676 else
19677   # Is the header compilable?
19678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19680 cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h.  */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h.  */
19686 $ac_includes_default
19687 #include <$ac_header>
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19691   (eval $ac_compile) 2>conftest.er1
19692   ac_status=$?
19693   grep -v '^ *+' conftest.er1 >conftest.err
19694   rm -f conftest.er1
19695   cat conftest.err >&5
19696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); } &&
19698          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700   (eval $ac_try) 2>&5
19701   ac_status=$?
19702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703   (exit $ac_status); }; } &&
19704          { ac_try='test -s conftest.$ac_objext'
19705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706   (eval $ac_try) 2>&5
19707   ac_status=$?
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); }; }; then
19710   ac_header_compiler=yes
19711 else
19712   echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19714
19715 ac_header_compiler=no
19716 fi
19717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19719 echo "${ECHO_T}$ac_header_compiler" >&6
19720
19721 # Is the header present?
19722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19724 cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h.  */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h.  */
19730 #include <$ac_header>
19731 _ACEOF
19732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19734   ac_status=$?
19735   grep -v '^ *+' conftest.er1 >conftest.err
19736   rm -f conftest.er1
19737   cat conftest.err >&5
19738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739   (exit $ac_status); } >/dev/null; then
19740   if test -s conftest.err; then
19741     ac_cpp_err=$ac_c_preproc_warn_flag
19742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19743   else
19744     ac_cpp_err=
19745   fi
19746 else
19747   ac_cpp_err=yes
19748 fi
19749 if test -z "$ac_cpp_err"; then
19750   ac_header_preproc=yes
19751 else
19752   echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755   ac_header_preproc=no
19756 fi
19757 rm -f conftest.err conftest.$ac_ext
19758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19759 echo "${ECHO_T}$ac_header_preproc" >&6
19760
19761 # So?  What about this header?
19762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19763   yes:no: )
19764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19768     ac_header_preproc=yes
19769     ;;
19770   no:yes:* )
19771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19783     (
19784       cat <<\_ASBOX
19785 ## ------------------------------------------ ##
19786 ## Report this to the AC_PACKAGE_NAME lists.  ##
19787 ## ------------------------------------------ ##
19788 _ASBOX
19789     ) |
19790       sed "s/^/$as_me: WARNING:     /" >&2
19791     ;;
19792 esac
19793 echo "$as_me:$LINENO: checking for $ac_header" >&5
19794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19796   echo $ECHO_N "(cached) $ECHO_C" >&6
19797 else
19798   eval "$as_ac_Header=\$ac_header_preproc"
19799 fi
19800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19802
19803 fi
19804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19805   cat >>confdefs.h <<_ACEOF
19806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19807 _ACEOF
19808
19809 fi
19810
19811 done
19812
19813
19814 for ac_header in complex.h
19815 do
19816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19818   echo "$as_me:$LINENO: checking for $ac_header" >&5
19819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19821   echo $ECHO_N "(cached) $ECHO_C" >&6
19822 fi
19823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19825 else
19826   # Is the header compilable?
19827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h.  */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h.  */
19835 $ac_includes_default
19836 #include <$ac_header>
19837 _ACEOF
19838 rm -f conftest.$ac_objext
19839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19840   (eval $ac_compile) 2>conftest.er1
19841   ac_status=$?
19842   grep -v '^ *+' conftest.er1 >conftest.err
19843   rm -f conftest.er1
19844   cat conftest.err >&5
19845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846   (exit $ac_status); } &&
19847          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849   (eval $ac_try) 2>&5
19850   ac_status=$?
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); }; } &&
19853          { ac_try='test -s conftest.$ac_objext'
19854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19855   (eval $ac_try) 2>&5
19856   ac_status=$?
19857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858   (exit $ac_status); }; }; then
19859   ac_header_compiler=yes
19860 else
19861   echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19863
19864 ac_header_compiler=no
19865 fi
19866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19867 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19868 echo "${ECHO_T}$ac_header_compiler" >&6
19869
19870 # Is the header present?
19871 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19873 cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h.  */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h.  */
19879 #include <$ac_header>
19880 _ACEOF
19881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19882   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19883   ac_status=$?
19884   grep -v '^ *+' conftest.er1 >conftest.err
19885   rm -f conftest.er1
19886   cat conftest.err >&5
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); } >/dev/null; then
19889   if test -s conftest.err; then
19890     ac_cpp_err=$ac_c_preproc_warn_flag
19891     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19892   else
19893     ac_cpp_err=
19894   fi
19895 else
19896   ac_cpp_err=yes
19897 fi
19898 if test -z "$ac_cpp_err"; then
19899   ac_header_preproc=yes
19900 else
19901   echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19903
19904   ac_header_preproc=no
19905 fi
19906 rm -f conftest.err conftest.$ac_ext
19907 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19908 echo "${ECHO_T}$ac_header_preproc" >&6
19909
19910 # So?  What about this header?
19911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19912   yes:no: )
19913     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19917     ac_header_preproc=yes
19918     ;;
19919   no:yes:* )
19920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19922     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19923 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19924     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19926     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19927 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19930     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19932     (
19933       cat <<\_ASBOX
19934 ## ------------------------------------------ ##
19935 ## Report this to the AC_PACKAGE_NAME lists.  ##
19936 ## ------------------------------------------ ##
19937 _ASBOX
19938     ) |
19939       sed "s/^/$as_me: WARNING:     /" >&2
19940     ;;
19941 esac
19942 echo "$as_me:$LINENO: checking for $ac_header" >&5
19943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19945   echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947   eval "$as_ac_Header=\$ac_header_preproc"
19948 fi
19949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19951
19952 fi
19953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19954   cat >>confdefs.h <<_ACEOF
19955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19956 _ACEOF
19957
19958 else
19959   { { echo "$as_me:$LINENO: error: Ouch! missing complex.h header" >&5
19960 echo "$as_me: error: Ouch! missing complex.h header" >&2;}
19961    { (exit 1); exit 1; }; }
19962 fi
19963
19964 done
19965
19966
19967 for ac_header in fftw3.h
19968 do
19969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19971   echo "$as_me:$LINENO: checking for $ac_header" >&5
19972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19974   echo $ECHO_N "(cached) $ECHO_C" >&6
19975 fi
19976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19978 else
19979   # Is the header compilable?
19980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h.  */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h.  */
19988 $ac_includes_default
19989 #include <$ac_header>
19990 _ACEOF
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993   (eval $ac_compile) 2>conftest.er1
19994   ac_status=$?
19995   grep -v '^ *+' conftest.er1 >conftest.err
19996   rm -f conftest.er1
19997   cat conftest.err >&5
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } &&
20000          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002   (eval $ac_try) 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; } &&
20006          { ac_try='test -s conftest.$ac_objext'
20007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008   (eval $ac_try) 2>&5
20009   ac_status=$?
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); }; }; then
20012   ac_header_compiler=yes
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 ac_header_compiler=no
20018 fi
20019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021 echo "${ECHO_T}$ac_header_compiler" >&6
20022
20023 # Is the header present?
20024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h.  */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h.  */
20032 #include <$ac_header>
20033 _ACEOF
20034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20036   ac_status=$?
20037   grep -v '^ *+' conftest.er1 >conftest.err
20038   rm -f conftest.er1
20039   cat conftest.err >&5
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); } >/dev/null; then
20042   if test -s conftest.err; then
20043     ac_cpp_err=$ac_c_preproc_warn_flag
20044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20045   else
20046     ac_cpp_err=
20047   fi
20048 else
20049   ac_cpp_err=yes
20050 fi
20051 if test -z "$ac_cpp_err"; then
20052   ac_header_preproc=yes
20053 else
20054   echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057   ac_header_preproc=no
20058 fi
20059 rm -f conftest.err conftest.$ac_ext
20060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6
20062
20063 # So?  What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20065   yes:no: )
20066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20070     ac_header_preproc=yes
20071     ;;
20072   no:yes:* )
20073     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20075     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20077     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20079     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20083     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20085     (
20086       cat <<\_ASBOX
20087 ## ------------------------------------------ ##
20088 ## Report this to the AC_PACKAGE_NAME lists.  ##
20089 ## ------------------------------------------ ##
20090 _ASBOX
20091     ) |
20092       sed "s/^/$as_me: WARNING:     /" >&2
20093     ;;
20094 esac
20095 echo "$as_me:$LINENO: checking for $ac_header" >&5
20096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20098   echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100   eval "$as_ac_Header=\$ac_header_preproc"
20101 fi
20102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20104
20105 fi
20106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20107   cat >>confdefs.h <<_ACEOF
20108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20109 _ACEOF
20110
20111 else
20112   { { echo "$as_me:$LINENO: error: Ouch! missing fftw3.h headeri" >&5
20113 echo "$as_me: error: Ouch! missing fftw3.h headeri" >&2;}
20114    { (exit 1); exit 1; }; }
20115 fi
20116
20117 done
20118
20119
20120 # Extract the first word of "pkg-config", so it can be a program name with args.
20121 set dummy pkg-config; ac_word=$2
20122 echo "$as_me:$LINENO: checking for $ac_word" >&5
20123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20125   echo $ECHO_N "(cached) $ECHO_C" >&6
20126 else
20127   case $PKG_CONFIG in
20128   [\\/]* | ?:[\\/]*)
20129   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20130   ;;
20131   *)
20132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20133 for as_dir in $PATH
20134 do
20135   IFS=$as_save_IFS
20136   test -z "$as_dir" && as_dir=.
20137   for ac_exec_ext in '' $ac_executable_extensions; do
20138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20139     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20141     break 2
20142   fi
20143 done
20144 done
20145
20146   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20147   ;;
20148 esac
20149 fi
20150 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20151
20152 if test -n "$PKG_CONFIG"; then
20153   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20154 echo "${ECHO_T}$PKG_CONFIG" >&6
20155 else
20156   echo "$as_me:$LINENO: result: no" >&5
20157 echo "${ECHO_T}no" >&6
20158 fi
20159
20160
20161
20162   succeeded=no
20163
20164   if test -z "$PKG_CONFIG"; then
20165     # Extract the first word of "pkg-config", so it can be a program name with args.
20166 set dummy pkg-config; ac_word=$2
20167 echo "$as_me:$LINENO: checking for $ac_word" >&5
20168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20169 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20170   echo $ECHO_N "(cached) $ECHO_C" >&6
20171 else
20172   case $PKG_CONFIG in
20173   [\\/]* | ?:[\\/]*)
20174   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20175   ;;
20176   *)
20177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20178 for as_dir in $PATH
20179 do
20180   IFS=$as_save_IFS
20181   test -z "$as_dir" && as_dir=.
20182   for ac_exec_ext in '' $ac_executable_extensions; do
20183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20184     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20186     break 2
20187   fi
20188 done
20189 done
20190
20191   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20192   ;;
20193 esac
20194 fi
20195 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20196
20197 if test -n "$PKG_CONFIG"; then
20198   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20199 echo "${ECHO_T}$PKG_CONFIG" >&6
20200 else
20201   echo "$as_me:$LINENO: result: no" >&5
20202 echo "${ECHO_T}no" >&6
20203 fi
20204
20205   fi
20206
20207   if test "$PKG_CONFIG" = "no" ; then
20208      echo "*** The pkg-config script could not be found. Make sure it is"
20209      echo "*** in your path, or set the PKG_CONFIG environment variable"
20210      echo "*** to the full path to pkg-config."
20211      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20212   else
20213      PKG_CONFIG_MIN_VERSION=0.9.0
20214      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20215         echo "$as_me:$LINENO: checking for fftw3  >= 3.0.0" >&5
20216 echo $ECHO_N "checking for fftw3  >= 3.0.0... $ECHO_C" >&6
20217
20218         if $PKG_CONFIG --exists "fftw3  >= 3.0.0" ; then
20219             echo "$as_me:$LINENO: result: yes" >&5
20220 echo "${ECHO_T}yes" >&6
20221             succeeded=yes
20222
20223             echo "$as_me:$LINENO: checking FFTWLIB_CFLAGS" >&5
20224 echo $ECHO_N "checking FFTWLIB_CFLAGS... $ECHO_C" >&6
20225             FFTWLIB_CFLAGS=`$PKG_CONFIG --cflags "fftw3  >= 3.0.0"`
20226             echo "$as_me:$LINENO: result: $FFTWLIB_CFLAGS" >&5
20227 echo "${ECHO_T}$FFTWLIB_CFLAGS" >&6
20228
20229             echo "$as_me:$LINENO: checking FFTWLIB_LIBS" >&5
20230 echo $ECHO_N "checking FFTWLIB_LIBS... $ECHO_C" >&6
20231             FFTWLIB_LIBS=`$PKG_CONFIG --libs "fftw3  >= 3.0.0"`
20232             echo "$as_me:$LINENO: result: $FFTWLIB_LIBS" >&5
20233 echo "${ECHO_T}$FFTWLIB_LIBS" >&6
20234         else
20235             FFTWLIB_CFLAGS=""
20236             FFTWLIB_LIBS=""
20237             ## If we have a custom action on failure, don't print errors, but
20238             ## do set a variable so people can do so.
20239             FFTWLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3  >= 3.0.0"`
20240             echo $FFTWLIB_PKG_ERRORS
20241         fi
20242
20243
20244
20245      else
20246         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20247         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20248      fi
20249   fi
20250
20251   if test $succeeded = yes; then
20252      FFTW3_SUPPORT=1
20253   else
20254      { { echo "$as_me:$LINENO: error: Library requirements (fftw3  >= 3.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20255 echo "$as_me: error: Library requirements (fftw3  >= 3.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20256    { (exit 1); exit 1; }; }
20257   fi
20258
20259 if test "${FFTW3_SUPPORT}" = "1"; then
20260
20261 cat >>confdefs.h <<\_ACEOF
20262 #define FFTW3_SUPPORT 1
20263 _ACEOF
20264
20265 fi
20266
20267   succeeded=no
20268
20269   if test -z "$PKG_CONFIG"; then
20270     # Extract the first word of "pkg-config", so it can be a program name with args.
20271 set dummy pkg-config; ac_word=$2
20272 echo "$as_me:$LINENO: checking for $ac_word" >&5
20273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20274 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20275   echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277   case $PKG_CONFIG in
20278   [\\/]* | ?:[\\/]*)
20279   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20280   ;;
20281   *)
20282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20283 for as_dir in $PATH
20284 do
20285   IFS=$as_save_IFS
20286   test -z "$as_dir" && as_dir=.
20287   for ac_exec_ext in '' $ac_executable_extensions; do
20288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20289     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20291     break 2
20292   fi
20293 done
20294 done
20295
20296   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20297   ;;
20298 esac
20299 fi
20300 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20301
20302 if test -n "$PKG_CONFIG"; then
20303   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20304 echo "${ECHO_T}$PKG_CONFIG" >&6
20305 else
20306   echo "$as_me:$LINENO: result: no" >&5
20307 echo "${ECHO_T}no" >&6
20308 fi
20309
20310   fi
20311
20312   if test "$PKG_CONFIG" = "no" ; then
20313      echo "*** The pkg-config script could not be found. Make sure it is"
20314      echo "*** in your path, or set the PKG_CONFIG environment variable"
20315      echo "*** to the full path to pkg-config."
20316      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20317   else
20318      PKG_CONFIG_MIN_VERSION=0.9.0
20319      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20320         echo "$as_me:$LINENO: checking for sndfile >= 1.0.4" >&5
20321 echo $ECHO_N "checking for sndfile >= 1.0.4... $ECHO_C" >&6
20322
20323         if $PKG_CONFIG --exists "sndfile >= 1.0.4" ; then
20324             echo "$as_me:$LINENO: result: yes" >&5
20325 echo "${ECHO_T}yes" >&6
20326             succeeded=yes
20327
20328             echo "$as_me:$LINENO: checking SNDLIB_CFLAGS" >&5
20329 echo $ECHO_N "checking SNDLIB_CFLAGS... $ECHO_C" >&6
20330             SNDLIB_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.4"`
20331             echo "$as_me:$LINENO: result: $SNDLIB_CFLAGS" >&5
20332 echo "${ECHO_T}$SNDLIB_CFLAGS" >&6
20333
20334             echo "$as_me:$LINENO: checking SNDLIB_LIBS" >&5
20335 echo $ECHO_N "checking SNDLIB_LIBS... $ECHO_C" >&6
20336             SNDLIB_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.4"`
20337             echo "$as_me:$LINENO: result: $SNDLIB_LIBS" >&5
20338 echo "${ECHO_T}$SNDLIB_LIBS" >&6
20339         else
20340             SNDLIB_CFLAGS=""
20341             SNDLIB_LIBS=""
20342             ## If we have a custom action on failure, don't print errors, but
20343             ## do set a variable so people can do so.
20344             SNDLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sndfile >= 1.0.4"`
20345             echo $SNDLIB_PKG_ERRORS
20346         fi
20347
20348
20349
20350      else
20351         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20352         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20353      fi
20354   fi
20355
20356   if test $succeeded = yes; then
20357      SNDLIB_SUPPORT=1
20358   else
20359      { { echo "$as_me:$LINENO: error: Library requirements (sndfile >= 1.0.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20360 echo "$as_me: error: Library requirements (sndfile >= 1.0.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20361    { (exit 1); exit 1; }; }
20362   fi
20363
20364
20365   succeeded=no
20366
20367   if test -z "$PKG_CONFIG"; then
20368     # Extract the first word of "pkg-config", so it can be a program name with args.
20369 set dummy pkg-config; ac_word=$2
20370 echo "$as_me:$LINENO: checking for $ac_word" >&5
20371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20372 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20373   echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375   case $PKG_CONFIG in
20376   [\\/]* | ?:[\\/]*)
20377   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20378   ;;
20379   *)
20380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20381 for as_dir in $PATH
20382 do
20383   IFS=$as_save_IFS
20384   test -z "$as_dir" && as_dir=.
20385   for ac_exec_ext in '' $ac_executable_extensions; do
20386   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20387     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20389     break 2
20390   fi
20391 done
20392 done
20393
20394   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20395   ;;
20396 esac
20397 fi
20398 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20399
20400 if test -n "$PKG_CONFIG"; then
20401   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20402 echo "${ECHO_T}$PKG_CONFIG" >&6
20403 else
20404   echo "$as_me:$LINENO: result: no" >&5
20405 echo "${ECHO_T}no" >&6
20406 fi
20407
20408   fi
20409
20410   if test "$PKG_CONFIG" = "no" ; then
20411      echo "*** The pkg-config script could not be found. Make sure it is"
20412      echo "*** in your path, or set the PKG_CONFIG environment variable"
20413      echo "*** to the full path to pkg-config."
20414      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20415   else
20416      PKG_CONFIG_MIN_VERSION=0.9.0
20417      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20418         echo "$as_me:$LINENO: checking for samplerate  >= 0.0.15" >&5
20419 echo $ECHO_N "checking for samplerate  >= 0.0.15... $ECHO_C" >&6
20420
20421         if $PKG_CONFIG --exists "samplerate  >= 0.0.15" ; then
20422             echo "$as_me:$LINENO: result: yes" >&5
20423 echo "${ECHO_T}yes" >&6
20424             succeeded=yes
20425
20426             echo "$as_me:$LINENO: checking SAMPLERATE_CFLAGS" >&5
20427 echo $ECHO_N "checking SAMPLERATE_CFLAGS... $ECHO_C" >&6
20428             SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate  >= 0.0.15"`
20429             echo "$as_me:$LINENO: result: $SAMPLERATE_CFLAGS" >&5
20430 echo "${ECHO_T}$SAMPLERATE_CFLAGS" >&6
20431
20432             echo "$as_me:$LINENO: checking SAMPLERATE_LIBS" >&5
20433 echo $ECHO_N "checking SAMPLERATE_LIBS... $ECHO_C" >&6
20434             SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate  >= 0.0.15"`
20435             echo "$as_me:$LINENO: result: $SAMPLERATE_LIBS" >&5
20436 echo "${ECHO_T}$SAMPLERATE_LIBS" >&6
20437         else
20438             SAMPLERATE_CFLAGS=""
20439             SAMPLERATE_LIBS=""
20440             ## If we have a custom action on failure, don't print errors, but
20441             ## do set a variable so people can do so.
20442             SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate  >= 0.0.15"`
20443             echo $SAMPLERATE_PKG_ERRORS
20444         fi
20445
20446
20447
20448      else
20449         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20450         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20451      fi
20452   fi
20453
20454   if test $succeeded = yes; then
20455      SAMPLERATE_SUPPORT=1
20456   else
20457      { { echo "$as_me:$LINENO: error: Library requirements (samplerate  >= 0.0.15) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20458 echo "$as_me: error: Library requirements (samplerate  >= 0.0.15) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20459    { (exit 1); exit 1; }; }
20460   fi
20461
20462
20463 if test "${SNDLIB_SUPPORT}" = "1"; then
20464
20465 cat >>confdefs.h <<\_ACEOF
20466 #define SNDLIB_SUPPORT 1
20467 _ACEOF
20468
20469 fi
20470
20471
20472 # Check whether --enable-fftw3f or --disable-fftw3f was given.
20473 if test "${enable_fftw3f+set}" = set; then
20474   enableval="$enable_fftw3f"
20475   with_fftw3f="yes"
20476 else
20477   with_fftw3f="no"
20478 fi;
20479 if test "$with_fftw3f" = "yes"; then
20480
20481   succeeded=no
20482
20483   if test -z "$PKG_CONFIG"; then
20484     # Extract the first word of "pkg-config", so it can be a program name with args.
20485 set dummy pkg-config; ac_word=$2
20486 echo "$as_me:$LINENO: checking for $ac_word" >&5
20487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20488 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20489   echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491   case $PKG_CONFIG in
20492   [\\/]* | ?:[\\/]*)
20493   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20494   ;;
20495   *)
20496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20497 for as_dir in $PATH
20498 do
20499   IFS=$as_save_IFS
20500   test -z "$as_dir" && as_dir=.
20501   for ac_exec_ext in '' $ac_executable_extensions; do
20502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20503     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20505     break 2
20506   fi
20507 done
20508 done
20509
20510   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20511   ;;
20512 esac
20513 fi
20514 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20515
20516 if test -n "$PKG_CONFIG"; then
20517   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20518 echo "${ECHO_T}$PKG_CONFIG" >&6
20519 else
20520   echo "$as_me:$LINENO: result: no" >&5
20521 echo "${ECHO_T}no" >&6
20522 fi
20523
20524   fi
20525
20526   if test "$PKG_CONFIG" = "no" ; then
20527      echo "*** The pkg-config script could not be found. Make sure it is"
20528      echo "*** in your path, or set the PKG_CONFIG environment variable"
20529      echo "*** to the full path to pkg-config."
20530      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20531   else
20532      PKG_CONFIG_MIN_VERSION=0.9.0
20533      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20534         echo "$as_me:$LINENO: checking for fftw3f  >= 3.0.0" >&5
20535 echo $ECHO_N "checking for fftw3f  >= 3.0.0... $ECHO_C" >&6
20536
20537         if $PKG_CONFIG --exists "fftw3f  >= 3.0.0" ; then
20538             echo "$as_me:$LINENO: result: yes" >&5
20539 echo "${ECHO_T}yes" >&6
20540             succeeded=yes
20541
20542             echo "$as_me:$LINENO: checking FFTWLIB_CFLAGS" >&5
20543 echo $ECHO_N "checking FFTWLIB_CFLAGS... $ECHO_C" >&6
20544             FFTWLIB_CFLAGS=`$PKG_CONFIG --cflags "fftw3f  >= 3.0.0"`
20545             echo "$as_me:$LINENO: result: $FFTWLIB_CFLAGS" >&5
20546 echo "${ECHO_T}$FFTWLIB_CFLAGS" >&6
20547
20548             echo "$as_me:$LINENO: checking FFTWLIB_LIBS" >&5
20549 echo $ECHO_N "checking FFTWLIB_LIBS... $ECHO_C" >&6
20550             FFTWLIB_LIBS=`$PKG_CONFIG --libs "fftw3f  >= 3.0.0"`
20551             echo "$as_me:$LINENO: result: $FFTWLIB_LIBS" >&5
20552 echo "${ECHO_T}$FFTWLIB_LIBS" >&6
20553         else
20554             FFTWLIB_CFLAGS=""
20555             FFTWLIB_LIBS=""
20556             ## If we have a custom action on failure, don't print errors, but
20557             ## do set a variable so people can do so.
20558             FFTWLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f  >= 3.0.0"`
20559             echo $FFTWLIB_PKG_ERRORS
20560         fi
20561
20562
20563
20564      else
20565         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20566         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20567      fi
20568   fi
20569
20570   if test $succeeded = yes; then
20571      FFTW3F_SUPPORT=1
20572   else
20573      { { echo "$as_me:$LINENO: error: Library requirements (fftw3f  >= 3.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20574 echo "$as_me: error: Library requirements (fftw3f  >= 3.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20575    { (exit 1); exit 1; }; }
20576   fi
20577
20578 fi
20579 if test "${FFTW3F_SUPPORT}" = "1"; then
20580
20581 cat >>confdefs.h <<\_ACEOF
20582 #define FFTW3F_SUPPORT 1
20583 _ACEOF
20584
20585 fi
20586
20587 # Check whether --enable-jack or --disable-jack was given.
20588 if test "${enable_jack+set}" = set; then
20589   enableval="$enable_jack"
20590   with_jack="yes"
20591 else
20592   with_jack="no"
20593 fi;
20594 if test "$with_jack" = "yes"
20595 then
20596
20597   succeeded=no
20598
20599   if test -z "$PKG_CONFIG"; then
20600     # Extract the first word of "pkg-config", so it can be a program name with args.
20601 set dummy pkg-config; ac_word=$2
20602 echo "$as_me:$LINENO: checking for $ac_word" >&5
20603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20604 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20605   echo $ECHO_N "(cached) $ECHO_C" >&6
20606 else
20607   case $PKG_CONFIG in
20608   [\\/]* | ?:[\\/]*)
20609   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20610   ;;
20611   *)
20612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20613 for as_dir in $PATH
20614 do
20615   IFS=$as_save_IFS
20616   test -z "$as_dir" && as_dir=.
20617   for ac_exec_ext in '' $ac_executable_extensions; do
20618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20619     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20621     break 2
20622   fi
20623 done
20624 done
20625
20626   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20627   ;;
20628 esac
20629 fi
20630 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20631
20632 if test -n "$PKG_CONFIG"; then
20633   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20634 echo "${ECHO_T}$PKG_CONFIG" >&6
20635 else
20636   echo "$as_me:$LINENO: result: no" >&5
20637 echo "${ECHO_T}no" >&6
20638 fi
20639
20640   fi
20641
20642   if test "$PKG_CONFIG" = "no" ; then
20643      echo "*** The pkg-config script could not be found. Make sure it is"
20644      echo "*** in your path, or set the PKG_CONFIG environment variable"
20645      echo "*** to the full path to pkg-config."
20646      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20647   else
20648      PKG_CONFIG_MIN_VERSION=0.9.0
20649      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20650         echo "$as_me:$LINENO: checking for jack  >= 0.15.0" >&5
20651 echo $ECHO_N "checking for jack  >= 0.15.0... $ECHO_C" >&6
20652
20653         if $PKG_CONFIG --exists "jack  >= 0.15.0" ; then
20654             echo "$as_me:$LINENO: result: yes" >&5
20655 echo "${ECHO_T}yes" >&6
20656             succeeded=yes
20657
20658             echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
20659 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6
20660             JACK_CFLAGS=`$PKG_CONFIG --cflags "jack  >= 0.15.0"`
20661             echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
20662 echo "${ECHO_T}$JACK_CFLAGS" >&6
20663
20664             echo "$as_me:$LINENO: checking JACK_LIBS" >&5
20665 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6
20666             JACK_LIBS=`$PKG_CONFIG --libs "jack  >= 0.15.0"`
20667             echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
20668 echo "${ECHO_T}$JACK_LIBS" >&6
20669         else
20670             JACK_CFLAGS=""
20671             JACK_LIBS=""
20672             ## If we have a custom action on failure, don't print errors, but
20673             ## do set a variable so people can do so.
20674             JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack  >= 0.15.0"`
20675             echo $JACK_PKG_ERRORS
20676         fi
20677
20678
20679
20680      else
20681         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20682         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20683      fi
20684   fi
20685
20686   if test $succeeded = yes; then
20687      JACK_SUPPORT=1
20688   else
20689      { { echo "$as_me:$LINENO: error: Library requirements (jack  >= 0.15.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20690 echo "$as_me: error: Library requirements (jack  >= 0.15.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20691    { (exit 1); exit 1; }; }
20692   fi
20693
20694         if test "${JACK_SUPPORT}" = "1"; then
20695
20696 cat >>confdefs.h <<\_ACEOF
20697 #define JACK_SUPPORT 1
20698 _ACEOF
20699
20700         fi
20701 fi
20702
20703 # Check whether --enable-alsa or --disable-alsa was given.
20704 if test "${enable_alsa+set}" = set; then
20705   enableval="$enable_alsa"
20706   with_alsa="yes"
20707 else
20708   with_alsa="no"
20709 fi;
20710 if test "$with_alsa" = "yes"
20711 then
20712
20713   succeeded=no
20714
20715   if test -z "$PKG_CONFIG"; then
20716     # Extract the first word of "pkg-config", so it can be a program name with args.
20717 set dummy pkg-config; ac_word=$2
20718 echo "$as_me:$LINENO: checking for $ac_word" >&5
20719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20721   echo $ECHO_N "(cached) $ECHO_C" >&6
20722 else
20723   case $PKG_CONFIG in
20724   [\\/]* | ?:[\\/]*)
20725   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20726   ;;
20727   *)
20728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20729 for as_dir in $PATH
20730 do
20731   IFS=$as_save_IFS
20732   test -z "$as_dir" && as_dir=.
20733   for ac_exec_ext in '' $ac_executable_extensions; do
20734   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20735     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20737     break 2
20738   fi
20739 done
20740 done
20741
20742   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20743   ;;
20744 esac
20745 fi
20746 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20747
20748 if test -n "$PKG_CONFIG"; then
20749   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20750 echo "${ECHO_T}$PKG_CONFIG" >&6
20751 else
20752   echo "$as_me:$LINENO: result: no" >&5
20753 echo "${ECHO_T}no" >&6
20754 fi
20755
20756   fi
20757
20758   if test "$PKG_CONFIG" = "no" ; then
20759      echo "*** The pkg-config script could not be found. Make sure it is"
20760      echo "*** in your path, or set the PKG_CONFIG environment variable"
20761      echo "*** to the full path to pkg-config."
20762      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20763   else
20764      PKG_CONFIG_MIN_VERSION=0.9.0
20765      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20766         echo "$as_me:$LINENO: checking for alsa >= 0.0.9" >&5
20767 echo $ECHO_N "checking for alsa >= 0.0.9... $ECHO_C" >&6
20768
20769         if $PKG_CONFIG --exists "alsa >= 0.0.9" ; then
20770             echo "$as_me:$LINENO: result: yes" >&5
20771 echo "${ECHO_T}yes" >&6
20772             succeeded=yes
20773
20774             echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
20775 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
20776             ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.0.9"`
20777             echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
20778 echo "${ECHO_T}$ALSA_CFLAGS" >&6
20779
20780             echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
20781 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
20782             ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.0.9"`
20783             echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
20784 echo "${ECHO_T}$ALSA_LIBS" >&6
20785         else
20786             ALSA_CFLAGS=""
20787             ALSA_LIBS=""
20788             ## If we have a custom action on failure, don't print errors, but
20789             ## do set a variable so people can do so.
20790             ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.0.9"`
20791             echo $ALSA_PKG_ERRORS
20792         fi
20793
20794
20795
20796      else
20797         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20798         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20799      fi
20800   fi
20801
20802   if test $succeeded = yes; then
20803      ALSA_SUPPORT=1
20804   else
20805      { { echo "$as_me:$LINENO: error: Library requirements (alsa >= 0.0.9) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20806 echo "$as_me: error: Library requirements (alsa >= 0.0.9) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20807    { (exit 1); exit 1; }; }
20808   fi
20809
20810         if test "${ALSA_SUPPORT}" = "1"; then
20811
20812 cat >>confdefs.h <<\_ACEOF
20813 #define ALSA_SUPPORT 1
20814 _ACEOF
20815
20816         fi
20817 fi
20818
20819 # Check whether --enable-ladcca or --disable-ladcca was given.
20820 if test "${enable_ladcca+set}" = set; then
20821   enableval="$enable_ladcca"
20822   with_ladcca="yes"
20823 else
20824   with_ladcca="no"
20825 fi;
20826 if test "$with_ladcca" = "yes"
20827 then
20828
20829   succeeded=no
20830
20831   if test -z "$PKG_CONFIG"; then
20832     # Extract the first word of "pkg-config", so it can be a program name with args.
20833 set dummy pkg-config; ac_word=$2
20834 echo "$as_me:$LINENO: checking for $ac_word" >&5
20835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20836 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20837   echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20839   case $PKG_CONFIG in
20840   [\\/]* | ?:[\\/]*)
20841   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20842   ;;
20843   *)
20844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20845 for as_dir in $PATH
20846 do
20847   IFS=$as_save_IFS
20848   test -z "$as_dir" && as_dir=.
20849   for ac_exec_ext in '' $ac_executable_extensions; do
20850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20851     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20853     break 2
20854   fi
20855 done
20856 done
20857
20858   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20859   ;;
20860 esac
20861 fi
20862 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20863
20864 if test -n "$PKG_CONFIG"; then
20865   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20866 echo "${ECHO_T}$PKG_CONFIG" >&6
20867 else
20868   echo "$as_me:$LINENO: result: no" >&5
20869 echo "${ECHO_T}no" >&6
20870 fi
20871
20872   fi
20873
20874   if test "$PKG_CONFIG" = "no" ; then
20875      echo "*** The pkg-config script could not be found. Make sure it is"
20876      echo "*** in your path, or set the PKG_CONFIG environment variable"
20877      echo "*** to the full path to pkg-config."
20878      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20879   else
20880      PKG_CONFIG_MIN_VERSION=0.9.0
20881      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20882         echo "$as_me:$LINENO: checking for ladcca-1.0 >= 0.4.0" >&5
20883 echo $ECHO_N "checking for ladcca-1.0 >= 0.4.0... $ECHO_C" >&6
20884
20885         if $PKG_CONFIG --exists "ladcca-1.0 >= 0.4.0" ; then
20886             echo "$as_me:$LINENO: result: yes" >&5
20887 echo "${ECHO_T}yes" >&6
20888             succeeded=yes
20889
20890             echo "$as_me:$LINENO: checking LADCCA_CFLAGS" >&5
20891 echo $ECHO_N "checking LADCCA_CFLAGS... $ECHO_C" >&6
20892             LADCCA_CFLAGS=`$PKG_CONFIG --cflags "ladcca-1.0 >= 0.4.0"`
20893             echo "$as_me:$LINENO: result: $LADCCA_CFLAGS" >&5
20894 echo "${ECHO_T}$LADCCA_CFLAGS" >&6
20895
20896             echo "$as_me:$LINENO: checking LADCCA_LIBS" >&5
20897 echo $ECHO_N "checking LADCCA_LIBS... $ECHO_C" >&6
20898             LADCCA_LIBS=`$PKG_CONFIG --libs "ladcca-1.0 >= 0.4.0"`
20899             echo "$as_me:$LINENO: result: $LADCCA_LIBS" >&5
20900 echo "${ECHO_T}$LADCCA_LIBS" >&6
20901         else
20902             LADCCA_CFLAGS=""
20903             LADCCA_LIBS=""
20904             ## If we have a custom action on failure, don't print errors, but
20905             ## do set a variable so people can do so.
20906             LADCCA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ladcca-1.0 >= 0.4.0"`
20907             echo $LADCCA_PKG_ERRORS
20908         fi
20909
20910
20911
20912      else
20913         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20914         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20915      fi
20916   fi
20917
20918   if test $succeeded = yes; then
20919      LADCCA_SUPPORT=1
20920   else
20921      { { echo "$as_me:$LINENO: error: Library requirements (ladcca-1.0 >= 0.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20922 echo "$as_me: error: Library requirements (ladcca-1.0 >= 0.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20923    { (exit 1); exit 1; }; }
20924   fi
20925
20926         if test "${LADCCA_SUPPORT}" = "1"; then
20927
20928 cat >>confdefs.h <<\_ACEOF
20929 #define LADCCA_SUPPORT 1
20930 _ACEOF
20931
20932         fi
20933 fi
20934
20935
20936
20937
20938
20939         # Find any Python interpreter.
20940     for ac_prog in python python2 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
20941 do
20942   # Extract the first word of "$ac_prog", so it can be a program name with args.
20943 set dummy $ac_prog; ac_word=$2
20944 echo "$as_me:$LINENO: checking for $ac_word" >&5
20945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20946 if test "${ac_cv_path_PYTHON+set}" = set; then
20947   echo $ECHO_N "(cached) $ECHO_C" >&6
20948 else
20949   case $PYTHON in
20950   [\\/]* | ?:[\\/]*)
20951   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20952   ;;
20953   *)
20954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20955 for as_dir in $PATH
20956 do
20957   IFS=$as_save_IFS
20958   test -z "$as_dir" && as_dir=.
20959   for ac_exec_ext in '' $ac_executable_extensions; do
20960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20961     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20963     break 2
20964   fi
20965 done
20966 done
20967
20968   ;;
20969 esac
20970 fi
20971 PYTHON=$ac_cv_path_PYTHON
20972
20973 if test -n "$PYTHON"; then
20974   echo "$as_me:$LINENO: result: $PYTHON" >&5
20975 echo "${ECHO_T}$PYTHON" >&6
20976 else
20977   echo "$as_me:$LINENO: result: no" >&5
20978 echo "${ECHO_T}no" >&6
20979 fi
20980
20981   test -n "$PYTHON" && break
20982 done
20983
20984     am_display_PYTHON=python
20985
20986
20987
20988   echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
20989 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
20990 if test "${am_cv_python_version+set}" = set; then
20991   echo $ECHO_N "(cached) $ECHO_C" >&6
20992 else
20993   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
20994 fi
20995 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
20996 echo "${ECHO_T}$am_cv_python_version" >&6
20997   PYTHON_VERSION=$am_cv_python_version
20998
20999
21000
21001   PYTHON_PREFIX='${prefix}'
21002
21003   PYTHON_EXEC_PREFIX='${exec_prefix}'
21004
21005
21006
21007   echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
21008 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
21009 if test "${am_cv_python_platform+set}" = set; then
21010   echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
21013 fi
21014 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
21015 echo "${ECHO_T}$am_cv_python_platform" >&6
21016   PYTHON_PLATFORM=$am_cv_python_platform
21017
21018
21019
21020
21021                 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
21022 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
21023 if test "${am_cv_python_pythondir+set}" = set; then
21024   echo $ECHO_N "(cached) $ECHO_C" >&6
21025 else
21026   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
21027      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
21028 fi
21029 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
21030 echo "${ECHO_T}$am_cv_python_pythondir" >&6
21031   pythondir=$am_cv_python_pythondir
21032
21033
21034
21035   pkgpythondir=\${pythondir}/$PACKAGE
21036
21037
21038             echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
21039 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
21040 if test "${am_cv_python_pyexecdir+set}" = set; then
21041   echo $ECHO_N "(cached) $ECHO_C" >&6
21042 else
21043   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
21044      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
21045 fi
21046 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
21047 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
21048   pyexecdir=$am_cv_python_pyexecdir
21049
21050
21051
21052   pkgpyexecdir=\${pyexecdir}/$PACKAGE
21053
21054
21055
21056                                                                                                                         ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile sounds/Makefile doc/Makefile python/Makefile python/aubio/Makefile plugins/Makefile plugins/audacity/Makefile plugins/audacity/plug-ins/Makefile plugins/wavesurfer/Makefile swig/Makefile"
21057 cat >confcache <<\_ACEOF
21058 # This file is a shell script that caches the results of configure
21059 # tests run on this system so they can be shared between configure
21060 # scripts and configure runs, see configure's option --config-cache.
21061 # It is not useful on other systems.  If it contains results you don't
21062 # want to keep, you may remove or edit it.
21063 #
21064 # config.status only pays attention to the cache file if you give it
21065 # the --recheck option to rerun configure.
21066 #
21067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21069 # following values.
21070
21071 _ACEOF
21072
21073 # The following way of writing the cache mishandles newlines in values,
21074 # but we know of no workaround that is simple, portable, and efficient.
21075 # So, don't put newlines in cache variables' values.
21076 # Ultrix sh set writes to stderr and can't be redirected directly,
21077 # and sets the high bit in the cache file unless we assign to the vars.
21078 {
21079   (set) 2>&1 |
21080     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21081     *ac_space=\ *)
21082       # `set' does not quote correctly, so add quotes (double-quote
21083       # substitution turns \\\\ into \\, and sed turns \\ into \).
21084       sed -n \
21085         "s/'/'\\\\''/g;
21086           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21087       ;;
21088     *)
21089       # `set' quotes correctly as required by POSIX, so do not add quotes.
21090       sed -n \
21091         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21092       ;;
21093     esac;
21094 } |
21095   sed '
21096      t clear
21097      : clear
21098      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21099      t end
21100      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21101      : end' >>confcache
21102 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21103   if test -w $cache_file; then
21104     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21105     cat confcache >$cache_file
21106   else
21107     echo "not updating unwritable cache $cache_file"
21108   fi
21109 fi
21110 rm -f confcache
21111
21112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21113 # Let make expand exec_prefix.
21114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21115
21116 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21117 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21118 # trailing colons and then remove the whole line if VPATH becomes empty
21119 # (actually we leave an empty line to preserve line numbers).
21120 if test "x$srcdir" = x.; then
21121   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21122 s/:*\$(srcdir):*/:/;
21123 s/:*\${srcdir}:*/:/;
21124 s/:*@srcdir@:*/:/;
21125 s/^\([^=]*=[     ]*\):*/\1/;
21126 s/:*$//;
21127 s/^[^=]*=[       ]*$//;
21128 }'
21129 fi
21130
21131 DEFS=-DHAVE_CONFIG_H
21132
21133 ac_libobjs=
21134 ac_ltlibobjs=
21135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21136   # 1. Remove the extension, and $U if already installed.
21137   ac_i=`echo "$ac_i" |
21138          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21139   # 2. Add them.
21140   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21141   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21142 done
21143 LIBOBJS=$ac_libobjs
21144
21145 LTLIBOBJS=$ac_ltlibobjs
21146
21147
21148 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21149   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21150 Usually this means the macro was only invoked conditionally." >&5
21151 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21152 Usually this means the macro was only invoked conditionally." >&2;}
21153    { (exit 1); exit 1; }; }
21154 fi
21155 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21156   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21157 Usually this means the macro was only invoked conditionally." >&5
21158 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21159 Usually this means the macro was only invoked conditionally." >&2;}
21160    { (exit 1); exit 1; }; }
21161 fi
21162 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21163   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21164 Usually this means the macro was only invoked conditionally." >&5
21165 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21166 Usually this means the macro was only invoked conditionally." >&2;}
21167    { (exit 1); exit 1; }; }
21168 fi
21169
21170 : ${CONFIG_STATUS=./config.status}
21171 ac_clean_files_save=$ac_clean_files
21172 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21173 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21174 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21175 cat >$CONFIG_STATUS <<_ACEOF
21176 #! $SHELL
21177 # Generated by $as_me.
21178 # Run this file to recreate the current configuration.
21179 # Compiler output produced by configure, useful for debugging
21180 # configure, is in config.log if it exists.
21181
21182 debug=false
21183 ac_cs_recheck=false
21184 ac_cs_silent=false
21185 SHELL=\${CONFIG_SHELL-$SHELL}
21186 _ACEOF
21187
21188 cat >>$CONFIG_STATUS <<\_ACEOF
21189 ## --------------------- ##
21190 ## M4sh Initialization.  ##
21191 ## --------------------- ##
21192
21193 # Be Bourne compatible
21194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21195   emulate sh
21196   NULLCMD=:
21197   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21198   # is contrary to our usage.  Disable this feature.
21199   alias -g '${1+"$@"}'='"$@"'
21200 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21201   set -o posix
21202 fi
21203 DUALCASE=1; export DUALCASE # for MKS sh
21204
21205 # Support unset when possible.
21206 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21207   as_unset=unset
21208 else
21209   as_unset=false
21210 fi
21211
21212
21213 # Work around bugs in pre-3.0 UWIN ksh.
21214 $as_unset ENV MAIL MAILPATH
21215 PS1='$ '
21216 PS2='> '
21217 PS4='+ '
21218
21219 # NLS nuisances.
21220 for as_var in \
21221   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21222   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21223   LC_TELEPHONE LC_TIME
21224 do
21225   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21226     eval $as_var=C; export $as_var
21227   else
21228     $as_unset $as_var
21229   fi
21230 done
21231
21232 # Required to use basename.
21233 if expr a : '\(a\)' >/dev/null 2>&1; then
21234   as_expr=expr
21235 else
21236   as_expr=false
21237 fi
21238
21239 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21240   as_basename=basename
21241 else
21242   as_basename=false
21243 fi
21244
21245
21246 # Name of the executable.
21247 as_me=`$as_basename "$0" ||
21248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21249          X"$0" : 'X\(//\)$' \| \
21250          X"$0" : 'X\(/\)$' \| \
21251          .     : '\(.\)' 2>/dev/null ||
21252 echo X/"$0" |
21253     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21254           /^X\/\(\/\/\)$/{ s//\1/; q; }
21255           /^X\/\(\/\).*/{ s//\1/; q; }
21256           s/.*/./; q'`
21257
21258
21259 # PATH needs CR, and LINENO needs CR and PATH.
21260 # Avoid depending upon Character Ranges.
21261 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21262 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21263 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21264 as_cr_digits='0123456789'
21265 as_cr_alnum=$as_cr_Letters$as_cr_digits
21266
21267 # The user is always right.
21268 if test "${PATH_SEPARATOR+set}" != set; then
21269   echo "#! /bin/sh" >conf$$.sh
21270   echo  "exit 0"   >>conf$$.sh
21271   chmod +x conf$$.sh
21272   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21273     PATH_SEPARATOR=';'
21274   else
21275     PATH_SEPARATOR=:
21276   fi
21277   rm -f conf$$.sh
21278 fi
21279
21280
21281   as_lineno_1=$LINENO
21282   as_lineno_2=$LINENO
21283   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21284   test "x$as_lineno_1" != "x$as_lineno_2" &&
21285   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21286   # Find who we are.  Look in the path if we contain no path at all
21287   # relative or not.
21288   case $0 in
21289     *[\\/]* ) as_myself=$0 ;;
21290     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21291 for as_dir in $PATH
21292 do
21293   IFS=$as_save_IFS
21294   test -z "$as_dir" && as_dir=.
21295   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21296 done
21297
21298        ;;
21299   esac
21300   # We did not find ourselves, most probably we were run as `sh COMMAND'
21301   # in which case we are not to be found in the path.
21302   if test "x$as_myself" = x; then
21303     as_myself=$0
21304   fi
21305   if test ! -f "$as_myself"; then
21306     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21307 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21308    { (exit 1); exit 1; }; }
21309   fi
21310   case $CONFIG_SHELL in
21311   '')
21312     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21313 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21314 do
21315   IFS=$as_save_IFS
21316   test -z "$as_dir" && as_dir=.
21317   for as_base in sh bash ksh sh5; do
21318          case $as_dir in
21319          /*)
21320            if ("$as_dir/$as_base" -c '
21321   as_lineno_1=$LINENO
21322   as_lineno_2=$LINENO
21323   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21324   test "x$as_lineno_1" != "x$as_lineno_2" &&
21325   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21326              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21327              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21328              CONFIG_SHELL=$as_dir/$as_base
21329              export CONFIG_SHELL
21330              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21331            fi;;
21332          esac
21333        done
21334 done
21335 ;;
21336   esac
21337
21338   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21339   # uniformly replaced by the line number.  The first 'sed' inserts a
21340   # line-number line before each line; the second 'sed' does the real
21341   # work.  The second script uses 'N' to pair each line-number line
21342   # with the numbered line, and appends trailing '-' during
21343   # substitution so that $LINENO is not a special case at line end.
21344   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21345   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21346   sed '=' <$as_myself |
21347     sed '
21348       N
21349       s,$,-,
21350       : loop
21351       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21352       t loop
21353       s,-$,,
21354       s,^['$as_cr_digits']*\n,,
21355     ' >$as_me.lineno &&
21356   chmod +x $as_me.lineno ||
21357     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21358 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21359    { (exit 1); exit 1; }; }
21360
21361   # Don't try to exec as it changes $[0], causing all sort of problems
21362   # (the dirname of $[0] is not the place where we might find the
21363   # original and so on.  Autoconf is especially sensible to this).
21364   . ./$as_me.lineno
21365   # Exit status is that of the last command.
21366   exit
21367 }
21368
21369
21370 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21371   *c*,-n*) ECHO_N= ECHO_C='
21372 ' ECHO_T='      ' ;;
21373   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21374   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21375 esac
21376
21377 if expr a : '\(a\)' >/dev/null 2>&1; then
21378   as_expr=expr
21379 else
21380   as_expr=false
21381 fi
21382
21383 rm -f conf$$ conf$$.exe conf$$.file
21384 echo >conf$$.file
21385 if ln -s conf$$.file conf$$ 2>/dev/null; then
21386   # We could just check for DJGPP; but this test a) works b) is more generic
21387   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21388   if test -f conf$$.exe; then
21389     # Don't use ln at all; we don't have any links
21390     as_ln_s='cp -p'
21391   else
21392     as_ln_s='ln -s'
21393   fi
21394 elif ln conf$$.file conf$$ 2>/dev/null; then
21395   as_ln_s=ln
21396 else
21397   as_ln_s='cp -p'
21398 fi
21399 rm -f conf$$ conf$$.exe conf$$.file
21400
21401 if mkdir -p . 2>/dev/null; then
21402   as_mkdir_p=:
21403 else
21404   test -d ./-p && rmdir ./-p
21405   as_mkdir_p=false
21406 fi
21407
21408 as_executable_p="test -f"
21409
21410 # Sed expression to map a string onto a valid CPP name.
21411 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21412
21413 # Sed expression to map a string onto a valid variable name.
21414 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21415
21416
21417 # IFS
21418 # We need space, tab and new line, in precisely that order.
21419 as_nl='
21420 '
21421 IFS="   $as_nl"
21422
21423 # CDPATH.
21424 $as_unset CDPATH
21425
21426 exec 6>&1
21427
21428 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21429 # report actual input values of CONFIG_FILES etc. instead of their
21430 # values after options handling.  Logging --version etc. is OK.
21431 exec 5>>config.log
21432 {
21433   echo
21434   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21435 ## Running $as_me. ##
21436 _ASBOX
21437 } >&5
21438 cat >&5 <<_CSEOF
21439
21440 This file was extended by $as_me, which was
21441 generated by GNU Autoconf 2.59.  Invocation command line was
21442
21443   CONFIG_FILES    = $CONFIG_FILES
21444   CONFIG_HEADERS  = $CONFIG_HEADERS
21445   CONFIG_LINKS    = $CONFIG_LINKS
21446   CONFIG_COMMANDS = $CONFIG_COMMANDS
21447   $ $0 $@
21448
21449 _CSEOF
21450 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21451 echo >&5
21452 _ACEOF
21453
21454 # Files that config.status was made for.
21455 if test -n "$ac_config_files"; then
21456   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21457 fi
21458
21459 if test -n "$ac_config_headers"; then
21460   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21461 fi
21462
21463 if test -n "$ac_config_links"; then
21464   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21465 fi
21466
21467 if test -n "$ac_config_commands"; then
21468   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21469 fi
21470
21471 cat >>$CONFIG_STATUS <<\_ACEOF
21472
21473 ac_cs_usage="\
21474 \`$as_me' instantiates files from templates according to the
21475 current configuration.
21476
21477 Usage: $0 [OPTIONS] [FILE]...
21478
21479   -h, --help       print this help, then exit
21480   -V, --version    print version number, then exit
21481   -q, --quiet      do not print progress messages
21482   -d, --debug      don't remove temporary files
21483       --recheck    update $as_me by reconfiguring in the same conditions
21484   --file=FILE[:TEMPLATE]
21485                    instantiate the configuration file FILE
21486   --header=FILE[:TEMPLATE]
21487                    instantiate the configuration header FILE
21488
21489 Configuration files:
21490 $config_files
21491
21492 Configuration headers:
21493 $config_headers
21494
21495 Configuration commands:
21496 $config_commands
21497
21498 Report bugs to <bug-autoconf@gnu.org>."
21499 _ACEOF
21500
21501 cat >>$CONFIG_STATUS <<_ACEOF
21502 ac_cs_version="\\
21503 config.status
21504 configured by $0, generated by GNU Autoconf 2.59,
21505   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21506
21507 Copyright (C) 2003 Free Software Foundation, Inc.
21508 This config.status script is free software; the Free Software Foundation
21509 gives unlimited permission to copy, distribute and modify it."
21510 srcdir=$srcdir
21511 INSTALL="$INSTALL"
21512 _ACEOF
21513
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21515 # If no file are specified by the user, then we need to provide default
21516 # value.  By we need to know if files were specified by the user.
21517 ac_need_defaults=:
21518 while test $# != 0
21519 do
21520   case $1 in
21521   --*=*)
21522     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21523     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21524     ac_shift=:
21525     ;;
21526   -*)
21527     ac_option=$1
21528     ac_optarg=$2
21529     ac_shift=shift
21530     ;;
21531   *) # This is not an option, so the user has probably given explicit
21532      # arguments.
21533      ac_option=$1
21534      ac_need_defaults=false;;
21535   esac
21536
21537   case $ac_option in
21538   # Handling of the options.
21539 _ACEOF
21540 cat >>$CONFIG_STATUS <<\_ACEOF
21541   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21542     ac_cs_recheck=: ;;
21543   --version | --vers* | -V )
21544     echo "$ac_cs_version"; exit 0 ;;
21545   --he | --h)
21546     # Conflict between --help and --header
21547     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21548 Try \`$0 --help' for more information." >&5
21549 echo "$as_me: error: ambiguous option: $1
21550 Try \`$0 --help' for more information." >&2;}
21551    { (exit 1); exit 1; }; };;
21552   --help | --hel | -h )
21553     echo "$ac_cs_usage"; exit 0 ;;
21554   --debug | --d* | -d )
21555     debug=: ;;
21556   --file | --fil | --fi | --f )
21557     $ac_shift
21558     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21559     ac_need_defaults=false;;
21560   --header | --heade | --head | --hea )
21561     $ac_shift
21562     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21563     ac_need_defaults=false;;
21564   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21565   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21566     ac_cs_silent=: ;;
21567
21568   # This is an error.
21569   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21570 Try \`$0 --help' for more information." >&5
21571 echo "$as_me: error: unrecognized option: $1
21572 Try \`$0 --help' for more information." >&2;}
21573    { (exit 1); exit 1; }; } ;;
21574
21575   *) ac_config_targets="$ac_config_targets $1" ;;
21576
21577   esac
21578   shift
21579 done
21580
21581 ac_configure_extra_args=
21582
21583 if $ac_cs_silent; then
21584   exec 6>/dev/null
21585   ac_configure_extra_args="$ac_configure_extra_args --silent"
21586 fi
21587
21588 _ACEOF
21589 cat >>$CONFIG_STATUS <<_ACEOF
21590 if \$ac_cs_recheck; then
21591   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21592   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21593 fi
21594
21595 _ACEOF
21596
21597 cat >>$CONFIG_STATUS <<_ACEOF
21598 #
21599 # INIT-COMMANDS section.
21600 #
21601
21602 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21603
21604 _ACEOF
21605
21606
21607
21608 cat >>$CONFIG_STATUS <<\_ACEOF
21609 for ac_config_target in $ac_config_targets
21610 do
21611   case "$ac_config_target" in
21612   # Handling of arguments.
21613   "aubio.pc" ) CONFIG_FILES="$CONFIG_FILES aubio.pc" ;;
21614   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21615   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21616   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21617   "sounds/Makefile" ) CONFIG_FILES="$CONFIG_FILES sounds/Makefile" ;;
21618   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21619   "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
21620   "python/aubio/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/aubio/Makefile" ;;
21621   "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
21622   "plugins/audacity/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/audacity/Makefile" ;;
21623   "plugins/audacity/plug-ins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/audacity/plug-ins/Makefile" ;;
21624   "plugins/wavesurfer/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/wavesurfer/Makefile" ;;
21625   "swig/Makefile" ) CONFIG_FILES="$CONFIG_FILES swig/Makefile" ;;
21626   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21627   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21628   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21629 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21630    { (exit 1); exit 1; }; };;
21631   esac
21632 done
21633
21634 # If the user did not use the arguments to specify the items to instantiate,
21635 # then the envvar interface is used.  Set only those that are not.
21636 # We use the long form for the default assignment because of an extremely
21637 # bizarre bug on SunOS 4.1.3.
21638 if $ac_need_defaults; then
21639   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21640   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21641   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21642 fi
21643
21644 # Have a temporary directory for convenience.  Make it in the build tree
21645 # simply because there is no reason to put it here, and in addition,
21646 # creating and moving files from /tmp can sometimes cause problems.
21647 # Create a temporary directory, and hook for its removal unless debugging.
21648 $debug ||
21649 {
21650   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21651   trap '{ (exit 1); exit 1; }' 1 2 13 15
21652 }
21653
21654 # Create a (secure) tmp directory for tmp files.
21655
21656 {
21657   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21658   test -n "$tmp" && test -d "$tmp"
21659 }  ||
21660 {
21661   tmp=./confstat$$-$RANDOM
21662   (umask 077 && mkdir $tmp)
21663 } ||
21664 {
21665    echo "$me: cannot create a temporary directory in ." >&2
21666    { (exit 1); exit 1; }
21667 }
21668
21669 _ACEOF
21670
21671 cat >>$CONFIG_STATUS <<_ACEOF
21672
21673 #
21674 # CONFIG_FILES section.
21675 #
21676
21677 # No need to generate the scripts if there are no CONFIG_FILES.
21678 # This happens for instance when ./config.status config.h
21679 if test -n "\$CONFIG_FILES"; then
21680   # Protect against being on the right side of a sed subst in config.status.
21681   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21682    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21683 s,@SHELL@,$SHELL,;t t
21684 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21685 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21686 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21687 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21688 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21689 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21690 s,@exec_prefix@,$exec_prefix,;t t
21691 s,@prefix@,$prefix,;t t
21692 s,@program_transform_name@,$program_transform_name,;t t
21693 s,@bindir@,$bindir,;t t
21694 s,@sbindir@,$sbindir,;t t
21695 s,@libexecdir@,$libexecdir,;t t
21696 s,@datadir@,$datadir,;t t
21697 s,@sysconfdir@,$sysconfdir,;t t
21698 s,@sharedstatedir@,$sharedstatedir,;t t
21699 s,@localstatedir@,$localstatedir,;t t
21700 s,@libdir@,$libdir,;t t
21701 s,@includedir@,$includedir,;t t
21702 s,@oldincludedir@,$oldincludedir,;t t
21703 s,@infodir@,$infodir,;t t
21704 s,@mandir@,$mandir,;t t
21705 s,@build_alias@,$build_alias,;t t
21706 s,@host_alias@,$host_alias,;t t
21707 s,@target_alias@,$target_alias,;t t
21708 s,@DEFS@,$DEFS,;t t
21709 s,@ECHO_C@,$ECHO_C,;t t
21710 s,@ECHO_N@,$ECHO_N,;t t
21711 s,@ECHO_T@,$ECHO_T,;t t
21712 s,@LIBS@,$LIBS,;t t
21713 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21714 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21715 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21716 s,@CYGPATH_W@,$CYGPATH_W,;t t
21717 s,@PACKAGE@,$PACKAGE,;t t
21718 s,@VERSION@,$VERSION,;t t
21719 s,@ACLOCAL@,$ACLOCAL,;t t
21720 s,@AUTOCONF@,$AUTOCONF,;t t
21721 s,@AUTOMAKE@,$AUTOMAKE,;t t
21722 s,@AUTOHEADER@,$AUTOHEADER,;t t
21723 s,@MAKEINFO@,$MAKEINFO,;t t
21724 s,@AMTAR@,$AMTAR,;t t
21725 s,@install_sh@,$install_sh,;t t
21726 s,@STRIP@,$STRIP,;t t
21727 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21728 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21729 s,@AWK@,$AWK,;t t
21730 s,@SET_MAKE@,$SET_MAKE,;t t
21731 s,@am__leading_dot@,$am__leading_dot,;t t
21732 s,@build@,$build,;t t
21733 s,@build_cpu@,$build_cpu,;t t
21734 s,@build_vendor@,$build_vendor,;t t
21735 s,@build_os@,$build_os,;t t
21736 s,@host@,$host,;t t
21737 s,@host_cpu@,$host_cpu,;t t
21738 s,@host_vendor@,$host_vendor,;t t
21739 s,@host_os@,$host_os,;t t
21740 s,@CC@,$CC,;t t
21741 s,@CFLAGS@,$CFLAGS,;t t
21742 s,@LDFLAGS@,$LDFLAGS,;t t
21743 s,@CPPFLAGS@,$CPPFLAGS,;t t
21744 s,@ac_ct_CC@,$ac_ct_CC,;t t
21745 s,@EXEEXT@,$EXEEXT,;t t
21746 s,@OBJEXT@,$OBJEXT,;t t
21747 s,@DEPDIR@,$DEPDIR,;t t
21748 s,@am__include@,$am__include,;t t
21749 s,@am__quote@,$am__quote,;t t
21750 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21751 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21752 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21753 s,@CCDEPMODE@,$CCDEPMODE,;t t
21754 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21755 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21756 s,@EGREP@,$EGREP,;t t
21757 s,@LN_S@,$LN_S,;t t
21758 s,@ECHO@,$ECHO,;t t
21759 s,@AR@,$AR,;t t
21760 s,@ac_ct_AR@,$ac_ct_AR,;t t
21761 s,@RANLIB@,$RANLIB,;t t
21762 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21763 s,@CPP@,$CPP,;t t
21764 s,@CXX@,$CXX,;t t
21765 s,@CXXFLAGS@,$CXXFLAGS,;t t
21766 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21767 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21768 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21769 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21770 s,@CXXCPP@,$CXXCPP,;t t
21771 s,@F77@,$F77,;t t
21772 s,@FFLAGS@,$FFLAGS,;t t
21773 s,@ac_ct_F77@,$ac_ct_F77,;t t
21774 s,@LIBTOOL@,$LIBTOOL,;t t
21775 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21776 s,@FFTWLIB_CFLAGS@,$FFTWLIB_CFLAGS,;t t
21777 s,@FFTWLIB_LIBS@,$FFTWLIB_LIBS,;t t
21778 s,@SNDLIB_CFLAGS@,$SNDLIB_CFLAGS,;t t
21779 s,@SNDLIB_LIBS@,$SNDLIB_LIBS,;t t
21780 s,@SAMPLERATE_CFLAGS@,$SAMPLERATE_CFLAGS,;t t
21781 s,@SAMPLERATE_LIBS@,$SAMPLERATE_LIBS,;t t
21782 s,@JACK_CFLAGS@,$JACK_CFLAGS,;t t
21783 s,@JACK_LIBS@,$JACK_LIBS,;t t
21784 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
21785 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
21786 s,@LADCCA_CFLAGS@,$LADCCA_CFLAGS,;t t
21787 s,@LADCCA_LIBS@,$LADCCA_LIBS,;t t
21788 s,@PYTHON@,$PYTHON,;t t
21789 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
21790 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
21791 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
21792 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
21793 s,@pythondir@,$pythondir,;t t
21794 s,@pkgpythondir@,$pkgpythondir,;t t
21795 s,@pyexecdir@,$pyexecdir,;t t
21796 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
21797 s,@LIBOBJS@,$LIBOBJS,;t t
21798 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21799 CEOF
21800
21801 _ACEOF
21802
21803   cat >>$CONFIG_STATUS <<\_ACEOF
21804   # Split the substitutions into bite-sized pieces for seds with
21805   # small command number limits, like on Digital OSF/1 and HP-UX.
21806   ac_max_sed_lines=48
21807   ac_sed_frag=1 # Number of current file.
21808   ac_beg=1 # First line for current file.
21809   ac_end=$ac_max_sed_lines # Line after last line for current file.
21810   ac_more_lines=:
21811   ac_sed_cmds=
21812   while $ac_more_lines; do
21813     if test $ac_beg -gt 1; then
21814       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21815     else
21816       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21817     fi
21818     if test ! -s $tmp/subs.frag; then
21819       ac_more_lines=false
21820     else
21821       # The purpose of the label and of the branching condition is to
21822       # speed up the sed processing (if there are no `@' at all, there
21823       # is no need to browse any of the substitutions).
21824       # These are the two extra sed commands mentioned above.
21825       (echo ':t
21826   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21827       if test -z "$ac_sed_cmds"; then
21828         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21829       else
21830         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21831       fi
21832       ac_sed_frag=`expr $ac_sed_frag + 1`
21833       ac_beg=$ac_end
21834       ac_end=`expr $ac_end + $ac_max_sed_lines`
21835     fi
21836   done
21837   if test -z "$ac_sed_cmds"; then
21838     ac_sed_cmds=cat
21839   fi
21840 fi # test -n "$CONFIG_FILES"
21841
21842 _ACEOF
21843 cat >>$CONFIG_STATUS <<\_ACEOF
21844 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21845   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21846   case $ac_file in
21847   - | *:- | *:-:* ) # input from stdin
21848         cat >$tmp/stdin
21849         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21850         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21851   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21852         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21853   * )   ac_file_in=$ac_file.in ;;
21854   esac
21855
21856   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21857   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21859          X"$ac_file" : 'X\(//\)[^/]' \| \
21860          X"$ac_file" : 'X\(//\)$' \| \
21861          X"$ac_file" : 'X\(/\)' \| \
21862          .     : '\(.\)' 2>/dev/null ||
21863 echo X"$ac_file" |
21864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21866           /^X\(\/\/\)$/{ s//\1/; q; }
21867           /^X\(\/\).*/{ s//\1/; q; }
21868           s/.*/./; q'`
21869   { if $as_mkdir_p; then
21870     mkdir -p "$ac_dir"
21871   else
21872     as_dir="$ac_dir"
21873     as_dirs=
21874     while test ! -d "$as_dir"; do
21875       as_dirs="$as_dir $as_dirs"
21876       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21877 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21878          X"$as_dir" : 'X\(//\)[^/]' \| \
21879          X"$as_dir" : 'X\(//\)$' \| \
21880          X"$as_dir" : 'X\(/\)' \| \
21881          .     : '\(.\)' 2>/dev/null ||
21882 echo X"$as_dir" |
21883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21885           /^X\(\/\/\)$/{ s//\1/; q; }
21886           /^X\(\/\).*/{ s//\1/; q; }
21887           s/.*/./; q'`
21888     done
21889     test ! -n "$as_dirs" || mkdir $as_dirs
21890   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21891 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21892    { (exit 1); exit 1; }; }; }
21893
21894   ac_builddir=.
21895
21896 if test "$ac_dir" != .; then
21897   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21898   # A "../" for each directory in $ac_dir_suffix.
21899   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21900 else
21901   ac_dir_suffix= ac_top_builddir=
21902 fi
21903
21904 case $srcdir in
21905   .)  # No --srcdir option.  We are building in place.
21906     ac_srcdir=.
21907     if test -z "$ac_top_builddir"; then
21908        ac_top_srcdir=.
21909     else
21910        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21911     fi ;;
21912   [\\/]* | ?:[\\/]* )  # Absolute path.
21913     ac_srcdir=$srcdir$ac_dir_suffix;
21914     ac_top_srcdir=$srcdir ;;
21915   *) # Relative path.
21916     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21917     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21918 esac
21919
21920 # Do not use `cd foo && pwd` to compute absolute paths, because
21921 # the directories may not exist.
21922 case `pwd` in
21923 .) ac_abs_builddir="$ac_dir";;
21924 *)
21925   case "$ac_dir" in
21926   .) ac_abs_builddir=`pwd`;;
21927   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21928   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21929   esac;;
21930 esac
21931 case $ac_abs_builddir in
21932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21933 *)
21934   case ${ac_top_builddir}. in
21935   .) ac_abs_top_builddir=$ac_abs_builddir;;
21936   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21937   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21938   esac;;
21939 esac
21940 case $ac_abs_builddir in
21941 .) ac_abs_srcdir=$ac_srcdir;;
21942 *)
21943   case $ac_srcdir in
21944   .) ac_abs_srcdir=$ac_abs_builddir;;
21945   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21946   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21947   esac;;
21948 esac
21949 case $ac_abs_builddir in
21950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21951 *)
21952   case $ac_top_srcdir in
21953   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21954   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21955   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21956   esac;;
21957 esac
21958
21959
21960   case $INSTALL in
21961   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21962   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21963   esac
21964
21965   # Let's still pretend it is `configure' which instantiates (i.e., don't
21966   # use $as_me), people would be surprised to read:
21967   #    /* config.h.  Generated by config.status.  */
21968   if test x"$ac_file" = x-; then
21969     configure_input=
21970   else
21971     configure_input="$ac_file.  "
21972   fi
21973   configure_input=$configure_input"Generated from `echo $ac_file_in |
21974                                      sed 's,.*/,,'` by configure."
21975
21976   # First look for the input files in the build tree, otherwise in the
21977   # src tree.
21978   ac_file_inputs=`IFS=:
21979     for f in $ac_file_in; do
21980       case $f in
21981       -) echo $tmp/stdin ;;
21982       [\\/$]*)
21983          # Absolute (can't be DOS-style, as IFS=:)
21984          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21985 echo "$as_me: error: cannot find input file: $f" >&2;}
21986    { (exit 1); exit 1; }; }
21987          echo "$f";;
21988       *) # Relative
21989          if test -f "$f"; then
21990            # Build tree
21991            echo "$f"
21992          elif test -f "$srcdir/$f"; then
21993            # Source tree
21994            echo "$srcdir/$f"
21995          else
21996            # /dev/null tree
21997            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21998 echo "$as_me: error: cannot find input file: $f" >&2;}
21999    { (exit 1); exit 1; }; }
22000          fi;;
22001       esac
22002     done` || { (exit 1); exit 1; }
22003
22004   if test x"$ac_file" != x-; then
22005     { echo "$as_me:$LINENO: creating $ac_file" >&5
22006 echo "$as_me: creating $ac_file" >&6;}
22007     rm -f "$ac_file"
22008   fi
22009 _ACEOF
22010 cat >>$CONFIG_STATUS <<_ACEOF
22011   sed "$ac_vpsub
22012 $extrasub
22013 _ACEOF
22014 cat >>$CONFIG_STATUS <<\_ACEOF
22015 :t
22016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22017 s,@configure_input@,$configure_input,;t t
22018 s,@srcdir@,$ac_srcdir,;t t
22019 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22020 s,@top_srcdir@,$ac_top_srcdir,;t t
22021 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22022 s,@builddir@,$ac_builddir,;t t
22023 s,@abs_builddir@,$ac_abs_builddir,;t t
22024 s,@top_builddir@,$ac_top_builddir,;t t
22025 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22026 s,@INSTALL@,$ac_INSTALL,;t t
22027 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22028   rm -f $tmp/stdin
22029   if test x"$ac_file" != x-; then
22030     mv $tmp/out $ac_file
22031   else
22032     cat $tmp/out
22033     rm -f $tmp/out
22034   fi
22035
22036 done
22037 _ACEOF
22038 cat >>$CONFIG_STATUS <<\_ACEOF
22039
22040 #
22041 # CONFIG_HEADER section.
22042 #
22043
22044 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22045 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22046 #
22047 # ac_d sets the value in "#define NAME VALUE" lines.
22048 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22049 ac_dB='[         ].*$,\1#\2'
22050 ac_dC=' '
22051 ac_dD=',;t'
22052 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22053 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22054 ac_uB='$,\1#\2define\3'
22055 ac_uC=' '
22056 ac_uD=',;t'
22057
22058 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22059   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22060   case $ac_file in
22061   - | *:- | *:-:* ) # input from stdin
22062         cat >$tmp/stdin
22063         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22064         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22065   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22066         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22067   * )   ac_file_in=$ac_file.in ;;
22068   esac
22069
22070   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22071 echo "$as_me: creating $ac_file" >&6;}
22072
22073   # First look for the input files in the build tree, otherwise in the
22074   # src tree.
22075   ac_file_inputs=`IFS=:
22076     for f in $ac_file_in; do
22077       case $f in
22078       -) echo $tmp/stdin ;;
22079       [\\/$]*)
22080          # Absolute (can't be DOS-style, as IFS=:)
22081          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22082 echo "$as_me: error: cannot find input file: $f" >&2;}
22083    { (exit 1); exit 1; }; }
22084          # Do quote $f, to prevent DOS paths from being IFS'd.
22085          echo "$f";;
22086       *) # Relative
22087          if test -f "$f"; then
22088            # Build tree
22089            echo "$f"
22090          elif test -f "$srcdir/$f"; then
22091            # Source tree
22092            echo "$srcdir/$f"
22093          else
22094            # /dev/null tree
22095            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22096 echo "$as_me: error: cannot find input file: $f" >&2;}
22097    { (exit 1); exit 1; }; }
22098          fi;;
22099       esac
22100     done` || { (exit 1); exit 1; }
22101   # Remove the trailing spaces.
22102   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22103
22104 _ACEOF
22105
22106 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22107 # `conftest.undefs', that substitutes the proper values into
22108 # config.h.in to produce config.h.  The first handles `#define'
22109 # templates, and the second `#undef' templates.
22110 # And first: Protect against being on the right side of a sed subst in
22111 # config.status.  Protect against being in an unquoted here document
22112 # in config.status.
22113 rm -f conftest.defines conftest.undefs
22114 # Using a here document instead of a string reduces the quoting nightmare.
22115 # Putting comments in sed scripts is not portable.
22116 #
22117 # `end' is used to avoid that the second main sed command (meant for
22118 # 0-ary CPP macros) applies to n-ary macro definitions.
22119 # See the Autoconf documentation for `clear'.
22120 cat >confdef2sed.sed <<\_ACEOF
22121 s/[\\&,]/\\&/g
22122 s,[\\$`],\\&,g
22123 t clear
22124 : clear
22125 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22126 t end
22127 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22128 : end
22129 _ACEOF
22130 # If some macros were called several times there might be several times
22131 # the same #defines, which is useless.  Nevertheless, we may not want to
22132 # sort them, since we want the *last* AC-DEFINE to be honored.
22133 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22134 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22135 rm -f confdef2sed.sed
22136
22137 # This sed command replaces #undef with comments.  This is necessary, for
22138 # example, in the case of _POSIX_SOURCE, which is predefined and required
22139 # on some systems where configure will not decide to define it.
22140 cat >>conftest.undefs <<\_ACEOF
22141 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22142 _ACEOF
22143
22144 # Break up conftest.defines because some shells have a limit on the size
22145 # of here documents, and old seds have small limits too (100 cmds).
22146 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22147 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22148 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22149 echo '  :' >>$CONFIG_STATUS
22150 rm -f conftest.tail
22151 while grep . conftest.defines >/dev/null
22152 do
22153   # Write a limited-size here document to $tmp/defines.sed.
22154   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22155   # Speed up: don't consider the non `#define' lines.
22156   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22157   # Work around the forget-to-reset-the-flag bug.
22158   echo 't clr' >>$CONFIG_STATUS
22159   echo ': clr' >>$CONFIG_STATUS
22160   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22161   echo 'CEOF
22162   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22163   rm -f $tmp/in
22164   mv $tmp/out $tmp/in
22165 ' >>$CONFIG_STATUS
22166   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22167   rm -f conftest.defines
22168   mv conftest.tail conftest.defines
22169 done
22170 rm -f conftest.defines
22171 echo '  fi # grep' >>$CONFIG_STATUS
22172 echo >>$CONFIG_STATUS
22173
22174 # Break up conftest.undefs because some shells have a limit on the size
22175 # of here documents, and old seds have small limits too (100 cmds).
22176 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22177 rm -f conftest.tail
22178 while grep . conftest.undefs >/dev/null
22179 do
22180   # Write a limited-size here document to $tmp/undefs.sed.
22181   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22182   # Speed up: don't consider the non `#undef'
22183   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22184   # Work around the forget-to-reset-the-flag bug.
22185   echo 't clr' >>$CONFIG_STATUS
22186   echo ': clr' >>$CONFIG_STATUS
22187   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22188   echo 'CEOF
22189   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22190   rm -f $tmp/in
22191   mv $tmp/out $tmp/in
22192 ' >>$CONFIG_STATUS
22193   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22194   rm -f conftest.undefs
22195   mv conftest.tail conftest.undefs
22196 done
22197 rm -f conftest.undefs
22198
22199 cat >>$CONFIG_STATUS <<\_ACEOF
22200   # Let's still pretend it is `configure' which instantiates (i.e., don't
22201   # use $as_me), people would be surprised to read:
22202   #    /* config.h.  Generated by config.status.  */
22203   if test x"$ac_file" = x-; then
22204     echo "/* Generated by configure.  */" >$tmp/config.h
22205   else
22206     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22207   fi
22208   cat $tmp/in >>$tmp/config.h
22209   rm -f $tmp/in
22210   if test x"$ac_file" != x-; then
22211     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22212       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22213 echo "$as_me: $ac_file is unchanged" >&6;}
22214     else
22215       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22216 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22217          X"$ac_file" : 'X\(//\)[^/]' \| \
22218          X"$ac_file" : 'X\(//\)$' \| \
22219          X"$ac_file" : 'X\(/\)' \| \
22220          .     : '\(.\)' 2>/dev/null ||
22221 echo X"$ac_file" |
22222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22224           /^X\(\/\/\)$/{ s//\1/; q; }
22225           /^X\(\/\).*/{ s//\1/; q; }
22226           s/.*/./; q'`
22227       { if $as_mkdir_p; then
22228     mkdir -p "$ac_dir"
22229   else
22230     as_dir="$ac_dir"
22231     as_dirs=
22232     while test ! -d "$as_dir"; do
22233       as_dirs="$as_dir $as_dirs"
22234       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22235 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22236          X"$as_dir" : 'X\(//\)[^/]' \| \
22237          X"$as_dir" : 'X\(//\)$' \| \
22238          X"$as_dir" : 'X\(/\)' \| \
22239          .     : '\(.\)' 2>/dev/null ||
22240 echo X"$as_dir" |
22241     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22242           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22243           /^X\(\/\/\)$/{ s//\1/; q; }
22244           /^X\(\/\).*/{ s//\1/; q; }
22245           s/.*/./; q'`
22246     done
22247     test ! -n "$as_dirs" || mkdir $as_dirs
22248   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22249 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22250    { (exit 1); exit 1; }; }; }
22251
22252       rm -f $ac_file
22253       mv $tmp/config.h $ac_file
22254     fi
22255   else
22256     cat $tmp/config.h
22257     rm -f $tmp/config.h
22258   fi
22259 # Compute $ac_file's index in $config_headers.
22260 _am_stamp_count=1
22261 for _am_header in $config_headers :; do
22262   case $_am_header in
22263     $ac_file | $ac_file:* )
22264       break ;;
22265     * )
22266       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22267   esac
22268 done
22269 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22270 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22271          X$ac_file : 'X\(//\)[^/]' \| \
22272          X$ac_file : 'X\(//\)$' \| \
22273          X$ac_file : 'X\(/\)' \| \
22274          .     : '\(.\)' 2>/dev/null ||
22275 echo X$ac_file |
22276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22277           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22278           /^X\(\/\/\)$/{ s//\1/; q; }
22279           /^X\(\/\).*/{ s//\1/; q; }
22280           s/.*/./; q'`/stamp-h$_am_stamp_count
22281 done
22282 _ACEOF
22283 cat >>$CONFIG_STATUS <<\_ACEOF
22284
22285 #
22286 # CONFIG_COMMANDS section.
22287 #
22288 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22289   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22290   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22291   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22292 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22293          X"$ac_dest" : 'X\(//\)[^/]' \| \
22294          X"$ac_dest" : 'X\(//\)$' \| \
22295          X"$ac_dest" : 'X\(/\)' \| \
22296          .     : '\(.\)' 2>/dev/null ||
22297 echo X"$ac_dest" |
22298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22299           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22300           /^X\(\/\/\)$/{ s//\1/; q; }
22301           /^X\(\/\).*/{ s//\1/; q; }
22302           s/.*/./; q'`
22303   { if $as_mkdir_p; then
22304     mkdir -p "$ac_dir"
22305   else
22306     as_dir="$ac_dir"
22307     as_dirs=
22308     while test ! -d "$as_dir"; do
22309       as_dirs="$as_dir $as_dirs"
22310       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22312          X"$as_dir" : 'X\(//\)[^/]' \| \
22313          X"$as_dir" : 'X\(//\)$' \| \
22314          X"$as_dir" : 'X\(/\)' \| \
22315          .     : '\(.\)' 2>/dev/null ||
22316 echo X"$as_dir" |
22317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22318           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22319           /^X\(\/\/\)$/{ s//\1/; q; }
22320           /^X\(\/\).*/{ s//\1/; q; }
22321           s/.*/./; q'`
22322     done
22323     test ! -n "$as_dirs" || mkdir $as_dirs
22324   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22325 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22326    { (exit 1); exit 1; }; }; }
22327
22328   ac_builddir=.
22329
22330 if test "$ac_dir" != .; then
22331   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22332   # A "../" for each directory in $ac_dir_suffix.
22333   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22334 else
22335   ac_dir_suffix= ac_top_builddir=
22336 fi
22337
22338 case $srcdir in
22339   .)  # No --srcdir option.  We are building in place.
22340     ac_srcdir=.
22341     if test -z "$ac_top_builddir"; then
22342        ac_top_srcdir=.
22343     else
22344        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22345     fi ;;
22346   [\\/]* | ?:[\\/]* )  # Absolute path.
22347     ac_srcdir=$srcdir$ac_dir_suffix;
22348     ac_top_srcdir=$srcdir ;;
22349   *) # Relative path.
22350     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22351     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22352 esac
22353
22354 # Do not use `cd foo && pwd` to compute absolute paths, because
22355 # the directories may not exist.
22356 case `pwd` in
22357 .) ac_abs_builddir="$ac_dir";;
22358 *)
22359   case "$ac_dir" in
22360   .) ac_abs_builddir=`pwd`;;
22361   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22362   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22363   esac;;
22364 esac
22365 case $ac_abs_builddir in
22366 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22367 *)
22368   case ${ac_top_builddir}. in
22369   .) ac_abs_top_builddir=$ac_abs_builddir;;
22370   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22371   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22372   esac;;
22373 esac
22374 case $ac_abs_builddir in
22375 .) ac_abs_srcdir=$ac_srcdir;;
22376 *)
22377   case $ac_srcdir in
22378   .) ac_abs_srcdir=$ac_abs_builddir;;
22379   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22380   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22381   esac;;
22382 esac
22383 case $ac_abs_builddir in
22384 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22385 *)
22386   case $ac_top_srcdir in
22387   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22388   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22389   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22390   esac;;
22391 esac
22392
22393
22394   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22395 echo "$as_me: executing $ac_dest commands" >&6;}
22396   case $ac_dest in
22397     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22398   # Strip MF so we end up with the name of the file.
22399   mf=`echo "$mf" | sed -e 's/:.*$//'`
22400   # Check whether this is an Automake generated Makefile or not.
22401   # We used to match only the files named `Makefile.in', but
22402   # some people rename them; so instead we look at the file content.
22403   # Grep'ing the first line is not enough: some people post-process
22404   # each Makefile.in and add a new line on top of each file to say so.
22405   # So let's grep whole file.
22406   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22407     dirpart=`(dirname "$mf") 2>/dev/null ||
22408 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22409          X"$mf" : 'X\(//\)[^/]' \| \
22410          X"$mf" : 'X\(//\)$' \| \
22411          X"$mf" : 'X\(/\)' \| \
22412          .     : '\(.\)' 2>/dev/null ||
22413 echo X"$mf" |
22414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22415           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22416           /^X\(\/\/\)$/{ s//\1/; q; }
22417           /^X\(\/\).*/{ s//\1/; q; }
22418           s/.*/./; q'`
22419   else
22420     continue
22421   fi
22422   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22423   # Extract the definition of DEP_FILES from the Makefile without
22424   # running `make'.
22425   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
22426   test -z "$DEPDIR" && continue
22427   # When using ansi2knr, U may be empty or an underscore; expand it
22428   U=`sed -n -e '/^U = / s///p' < "$mf"`
22429   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22430   # We invoke sed twice because it is the simplest approach to
22431   # changing $(DEPDIR) to its actual value in the expansion.
22432   for file in `sed -n -e '
22433     /^DEP_FILES = .*\\\\$/ {
22434       s/^DEP_FILES = //
22435       :loop
22436         s/\\\\$//
22437         p
22438         n
22439         /\\\\$/ b loop
22440       p
22441     }
22442     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22443        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22444     # Make sure the directory exists.
22445     test -f "$dirpart/$file" && continue
22446     fdir=`(dirname "$file") 2>/dev/null ||
22447 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22448          X"$file" : 'X\(//\)[^/]' \| \
22449          X"$file" : 'X\(//\)$' \| \
22450          X"$file" : 'X\(/\)' \| \
22451          .     : '\(.\)' 2>/dev/null ||
22452 echo X"$file" |
22453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22454           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22455           /^X\(\/\/\)$/{ s//\1/; q; }
22456           /^X\(\/\).*/{ s//\1/; q; }
22457           s/.*/./; q'`
22458     { if $as_mkdir_p; then
22459     mkdir -p $dirpart/$fdir
22460   else
22461     as_dir=$dirpart/$fdir
22462     as_dirs=
22463     while test ! -d "$as_dir"; do
22464       as_dirs="$as_dir $as_dirs"
22465       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22467          X"$as_dir" : 'X\(//\)[^/]' \| \
22468          X"$as_dir" : 'X\(//\)$' \| \
22469          X"$as_dir" : 'X\(/\)' \| \
22470          .     : '\(.\)' 2>/dev/null ||
22471 echo X"$as_dir" |
22472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22473           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22474           /^X\(\/\/\)$/{ s//\1/; q; }
22475           /^X\(\/\).*/{ s//\1/; q; }
22476           s/.*/./; q'`
22477     done
22478     test ! -n "$as_dirs" || mkdir $as_dirs
22479   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22480 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22481    { (exit 1); exit 1; }; }; }
22482
22483     # echo "creating $dirpart/$file"
22484     echo '# dummy' > "$dirpart/$file"
22485   done
22486 done
22487  ;;
22488   esac
22489 done
22490 _ACEOF
22491
22492 cat >>$CONFIG_STATUS <<\_ACEOF
22493
22494 { (exit 0); exit 0; }
22495 _ACEOF
22496 chmod +x $CONFIG_STATUS
22497 ac_clean_files=$ac_clean_files_save
22498
22499
22500 # configure is writing to config.log, and then calls config.status.
22501 # config.status does its own redirection, appending to config.log.
22502 # Unfortunately, on DOS this fails, as config.log is still kept open
22503 # by configure, so config.status won't be able to write to it; its
22504 # output is simply discarded.  So we exec the FD to /dev/null,
22505 # effectively closing config.log, so it can be properly (re)opened and
22506 # appended to by config.status.  When coming back to configure, we
22507 # need to make the FD available again.
22508 if test "$no_create" != yes; then
22509   ac_cs_success=:
22510   ac_config_status_args=
22511   test "$silent" = yes &&
22512     ac_config_status_args="$ac_config_status_args --quiet"
22513   exec 5>/dev/null
22514   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22515   exec 5>>config.log
22516   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22517   # would make configure fail if this is the last instruction.
22518   $ac_cs_success || { (exit 1); exit 1; }
22519 fi
22520
22521
22522 echo
22523 echo "**************************************************************"
22524 echo "Summary:"
22525 if test "${FFTW3F_SUPPORT}" = "1"; then
22526   echo "Fftw3:                   yes (fftw3f)"
22527 else
22528 if test "${FFTW3_SUPPORT}" = "1"; then
22529   echo "Fftw3:                   yes"
22530 else
22531   echo "Fftw3f:                  no"
22532 fi
22533 fi
22534 if test "${SNDLIB_SUPPORT}" = "1"; then
22535   echo "Libsndfile:              yes"
22536 else
22537   echo "Libsndfile:              no"
22538 fi
22539 if test "${SAMPLERATE_SUPPORT}" = "1"; then
22540   echo "Libsamplerate:           yes"
22541 else
22542   echo "Libsamplerate:           no"
22543 fi
22544 if test "${JACK_SUPPORT}" = "1"; then
22545   echo "JACK:                    yes"
22546 else
22547   echo "JACK:                    no"
22548 fi
22549 if test "${ALSA_SUPPORT}" = "1"; then
22550   echo "ALSA midi:               yes"
22551 else
22552   echo "ALSA midi:               no"
22553 fi
22554 if test "${LADCCA_SUPPORT}" = "1"; then
22555   echo "Ladcca:                  yes"
22556 else
22557   echo "Ladcca:                  no"
22558 fi
22559 echo "**************************************************************"
22560 echo Configuration completed successfully. Type \'make\' to build ${PACKAGE}