Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Document last changes
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.6 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.040304.
5 #
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
250
251 case X$ECHO in
252 X*--fallback-echo)
253   # Remove one level of quotation (which was required for Make).
254   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255   ;;
256 esac
257
258 echo=${ECHO-echo}
259 if test "X$1" = X--no-reexec; then
260   # Discard the --no-reexec flag, and continue.
261   shift
262 elif test "X$1" = X--fallback-echo; then
263   # Avoid inline document here, it may be left over
264   :
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266   # Yippee, $echo works!
267   :
268 else
269   # Restart under the correct shell.
270   exec $SHELL "$0" --no-reexec ${1+"$@"}
271 fi
272
273 if test "X$1" = X--fallback-echo; then
274   # used as fallback echo
275   shift
276   cat <<EOF
277 $*
278 EOF
279   exit 0
280 fi
281
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 # if CDPATH is set.
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292        echo_test_string="`eval $cmd`" &&
293        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294     then
295       break
296     fi
297   done
298 fi
299
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302    test "X$echo_testing_string" = "X$echo_test_string"; then
303   :
304 else
305   # The Solaris, AIX, and Digital Unix default echo programs unquote
306   # backslashes.  This makes it impossible to quote backslashes using
307   #   echo "$something" | sed 's/\\/\\\\/g'
308   #
309   # So, first we look for a working echo in the user's PATH.
310
311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312   for dir in $PATH /usr/ucb; do
313     IFS="$lt_save_ifs"
314     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317        test "X$echo_testing_string" = "X$echo_test_string"; then
318       echo="$dir/echo"
319       break
320     fi
321   done
322   IFS="$lt_save_ifs"
323
324   if test "X$echo" = Xecho; then
325     # We didn't find a better echo, so look for alternatives.
326     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328        test "X$echo_testing_string" = "X$echo_test_string"; then
329       # This shell has a builtin print -r that does the trick.
330       echo='print -r'
331     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332          test "X$CONFIG_SHELL" != X/bin/ksh; then
333       # If we have ksh, try running configure again with it.
334       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335       export ORIGINAL_CONFIG_SHELL
336       CONFIG_SHELL=/bin/ksh
337       export CONFIG_SHELL
338       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339     else
340       # Try using printf.
341       echo='printf %s\n'
342       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344          test "X$echo_testing_string" = "X$echo_test_string"; then
345         # Cool, printf works
346         :
347       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348            test "X$echo_testing_string" = 'X\t' &&
349            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350            test "X$echo_testing_string" = "X$echo_test_string"; then
351         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352         export CONFIG_SHELL
353         SHELL="$CONFIG_SHELL"
354         export SHELL
355         echo="$CONFIG_SHELL $0 --fallback-echo"
356       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357            test "X$echo_testing_string" = 'X\t' &&
358            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359            test "X$echo_testing_string" = "X$echo_test_string"; then
360         echo="$CONFIG_SHELL $0 --fallback-echo"
361       else
362         # maybe with a smaller string...
363         prev=:
364
365         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367           then
368             break
369           fi
370           prev="$cmd"
371         done
372
373         if test "$prev" != 'sed 50q "$0"'; then
374           echo_test_string=`eval $prev`
375           export echo_test_string
376           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377         else
378           # Oops.  We lost completely, so just stick with echo.
379           echo=echo
380         fi
381       fi
382     fi
383   fi
384 fi
385 fi
386
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
389 ECHO=$echo
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392 fi
393
394
395
396
397 tagnames=${tagnames+${tagnames},}CXX
398
399 tagnames=${tagnames+${tagnames},}F77
400
401 # Name of the host.
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406 exec 6>&1
407
408 #
409 # Initializations.
410 #
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
413 cross_compiling=no
414 subdirs=
415 MFLAGS=
416 MAKEFLAGS=
417 SHELL=${CONFIG_SHELL-/bin/sh}
418
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete.  It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
423
424 # Identity of this package.
425 PACKAGE_NAME='GRAS'
426 PACKAGE_TARNAME='gras'
427 PACKAGE_VERSION='0.0.040304'
428 PACKAGE_STRING='GRAS 0.0.040304'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
430
431 ac_unique_file="src/include/gras.h"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 mkdir_p AWK SET_MAKE am__leading_dot 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 LIBOBJS HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE ACI_CACHE_PROG aci_module_desc_XML aci_pkg_config_XML HAVE_XML CFLAGS_XML LIBS_XML aci_module_desc_SimGrid aci_pkg_prefix_SimGrid aci_pkg_inc_SimGrid aci_pkg_lib_SimGrid aci_pkg_extra_SimGrid HAVE_SimGrid CFLAGS_SimGrid LIBS_SimGrid MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
685   -program-transform-name=* | --program-transform-name=* \
686   | --program-transform-nam=* | --program-transform-na=* \
687   | --program-transform-n=* | --program-transform-=* \
688   | --program-transform=* | --program-transfor=* \
689   | --program-transfo=* | --program-transf=* \
690   | --program-trans=* | --program-tran=* \
691   | --progr-tra=* | --program-tr=* | --program-t=*)
692     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
911 ac_env_CC_value=$CC
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures GRAS 0.0.040304 to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 Program names:
1012   --program-prefix=PREFIX            prepend PREFIX to installed program names
1013   --program-suffix=SUFFIX            append SUFFIX to installed program names
1014   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1015
1016 System types:
1017   --build=BUILD     configure for building on BUILD [guessed]
1018   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1019   --target=TARGET   configure for building compilers for TARGET [HOST]
1020 _ACEOF
1021 fi
1022
1023 if test -n "$ac_init_help"; then
1024   case $ac_init_help in
1025      short | recursive ) echo "Configuration of GRAS 0.0.040304:";;
1026    esac
1027   cat <<\_ACEOF
1028
1029 Optional Features:
1030   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-gtk-doc        use gtk-doc to build documentation default=no
1042   --enable-maintainer-mode  enable make rules and dependencies not useful
1043                           (and sometimes confusing) to the casual installer
1044   --enable-compile-warnings=no/minimum/yes       Turn on compiler warnings.
1045   --enable-iso-c          Try to warn if code is not ISO C
1046
1047 Optional Packages:
1048   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1049   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1050   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1051   --with-pic              try to use only PIC/non-PIC objects [default=use
1052                           both]
1053   --with-tags[=TAGS]
1054                           include additional configurations [automatic]
1055   --with-html-dir=PATH    path to installed docs
1056   --with-SimGrid=DIR      root directory of the SimGrid simulator installation
1057   --with-SimGrid-includes=DIR
1058                           specify exact include dir for the SimGrid simulator headers
1059   --with-SimGrid-libraries=DIR
1060                           specify exact library dir for the SimGrid simulator library
1061   --with-SimGrid-extra=ARG
1062                           specify extra args to pass to the linker to get the
1063                           the SimGrid simulator library (with no space. A sed to change "!"
1064                           to " " is run)
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 Report bugs to <martin.quinson@ens-lyon.fr>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
1094 if test "$ac_dir" != .; then
1095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096   # A "../" for each directory in $ac_dir_suffix.
1097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
1132   case ${ac_top_builddir}. in
1133   .) ac_abs_top_builddir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
1150   case $ac_top_srcdir in
1151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd "$ac_popdir"
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 GRAS configure 0.0.040304
1180 generated by GNU Autoconf 2.59
1181
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1185 _ACEOF
1186   exit 0
1187 fi
1188 exec 5>config.log
1189 cat >&5 <<_ACEOF
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1192
1193 It was created by GRAS $as_me 0.0.040304, which was
1194 generated by GNU Autoconf 2.59.  Invocation command line was
1195
1196   $ $0 $@
1197
1198 _ACEOF
1199 {
1200 cat <<_ASUNAME
1201 ## --------- ##
1202 ## Platform. ##
1203 ## --------- ##
1204
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1213
1214 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1215 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1218 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1219 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1220 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1221
1222 _ASUNAME
1223
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 for as_dir in $PATH
1226 do
1227   IFS=$as_save_IFS
1228   test -z "$as_dir" && as_dir=.
1229   echo "PATH: $as_dir"
1230 done
1231
1232 } >&5
1233
1234 cat >&5 <<_ACEOF
1235
1236
1237 ## ----------- ##
1238 ## Core tests. ##
1239 ## ----------- ##
1240
1241 _ACEOF
1242
1243
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1249 ac_configure_args=
1250 ac_configure_args0=
1251 ac_configure_args1=
1252 ac_sep=
1253 ac_must_keep_next=false
1254 for ac_pass in 1 2
1255 do
1256   for ac_arg
1257   do
1258     case $ac_arg in
1259     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261     | -silent | --silent | --silen | --sile | --sil)
1262       continue ;;
1263     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265     esac
1266     case $ac_pass in
1267     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268     2)
1269       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270       if test $ac_must_keep_next = true; then
1271         ac_must_keep_next=false # Got value, back to normal.
1272       else
1273         case $ac_arg in
1274           *=* | --config-cache | -C | -disable-* | --disable-* \
1275           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277           | -with-* | --with-* | -without-* | --without-* | --x)
1278             case "$ac_configure_args0 " in
1279               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280             esac
1281             ;;
1282           -* ) ac_must_keep_next=true ;;
1283         esac
1284       fi
1285       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286       # Get rid of the leading space.
1287       ac_sep=" "
1288       ;;
1289     esac
1290   done
1291 done
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1294
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log.  We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301   # Save into config.log some information that might help in debugging.
1302   {
1303     echo
1304
1305     cat <<\_ASBOX
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1309 _ASBOX
1310     echo
1311     # The following way of writing the cache mishandles newlines in values,
1312 {
1313   (set) 2>&1 |
1314     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315     *ac_space=\ *)
1316       sed -n \
1317         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319       ;;
1320     *)
1321       sed -n \
1322         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1323       ;;
1324     esac;
1325 }
1326     echo
1327
1328     cat <<\_ASBOX
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1332 _ASBOX
1333     echo
1334     for ac_var in $ac_subst_vars
1335     do
1336       eval ac_val=$`echo $ac_var`
1337       echo "$ac_var='"'"'$ac_val'"'"'"
1338     done | sort
1339     echo
1340
1341     if test -n "$ac_subst_files"; then
1342       cat <<\_ASBOX
1343 ## ------------- ##
1344 ## Output files. ##
1345 ## ------------- ##
1346 _ASBOX
1347       echo
1348       for ac_var in $ac_subst_files
1349       do
1350         eval ac_val=$`echo $ac_var`
1351         echo "$ac_var='"'"'$ac_val'"'"'"
1352       done | sort
1353       echo
1354     fi
1355
1356     if test -s confdefs.h; then
1357       cat <<\_ASBOX
1358 ## ----------- ##
1359 ## confdefs.h. ##
1360 ## ----------- ##
1361 _ASBOX
1362       echo
1363       sed "/^$/d" confdefs.h | sort
1364       echo
1365     fi
1366     test "$ac_signal" != 0 &&
1367       echo "$as_me: caught signal $ac_signal"
1368     echo "$as_me: exit $exit_status"
1369   } >&5
1370   rm -f core *.core &&
1371   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372     exit $exit_status
1373      ' 0
1374 for ac_signal in 1 2 13 15; do
1375   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 done
1377 ac_signal=0
1378
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382 echo >confdefs.h
1383
1384 # Predefined preprocessor variables.
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 _ACEOF
1409
1410
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414   if test "x$prefix" != xNONE; then
1415     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1416   else
1417     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418   fi
1419 fi
1420 for ac_site_file in $CONFIG_SITE; do
1421   if test -r "$ac_site_file"; then
1422     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424     sed 's/^/| /' "$ac_site_file" >&5
1425     . "$ac_site_file"
1426   fi
1427 done
1428
1429 if test -r "$cache_file"; then
1430   # Some versions of bash will fail to source /dev/null (special
1431   # files actually), so we avoid doing that.
1432   if test -f "$cache_file"; then
1433     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1435     case $cache_file in
1436       [\\/]* | ?:[\\/]* ) . $cache_file;;
1437       *)                      . ./$cache_file;;
1438     esac
1439   fi
1440 else
1441   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1443   >$cache_file
1444 fi
1445
1446 # Check that the precious variables saved in the cache have kept the same
1447 # value.
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452   eval ac_new_set=\$ac_env_${ac_var}_set
1453   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454   eval ac_new_val="\$ac_env_${ac_var}_value"
1455   case $ac_old_set,$ac_new_set in
1456     set,)
1457       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459       ac_cache_corrupted=: ;;
1460     ,set)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,);;
1465     *)
1466       if test "x$ac_old_val" != "x$ac_new_val"; then
1467         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1470 echo "$as_me:   former value:  $ac_old_val" >&2;}
1471         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1472 echo "$as_me:   current value: $ac_new_val" >&2;}
1473         ac_cache_corrupted=:
1474       fi;;
1475   esac
1476   # Pass precious variables to config.status.
1477   if test "$ac_new_set" = set; then
1478     case $ac_new_val in
1479     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481     *) ac_arg=$ac_var=$ac_new_val ;;
1482     esac
1483     case " $ac_configure_args " in
1484       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1485       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486     esac
1487   fi
1488 done
1489 if $ac_cache_corrupted; then
1490   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494    { (exit 1); exit 1; }; }
1495 fi
1496
1497 ac_ext=c
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532 ac_aux_dir=
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534   if test -f $ac_dir/install-sh; then
1535     ac_aux_dir=$ac_dir
1536     ac_install_sh="$ac_aux_dir/install-sh -c"
1537     break
1538   elif test -f $ac_dir/install.sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install.sh -c"
1541     break
1542   elif test -f $ac_dir/shtool; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/shtool install -c"
1545     break
1546   fi
1547 done
1548 if test -z "$ac_aux_dir"; then
1549   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551    { (exit 1); exit 1; }; }
1552 fi
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
1557 # Make sure we can run config.sub.
1558 $ac_config_sub sun4 >/dev/null 2>&1 ||
1559   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561    { (exit 1); exit 1; }; }
1562
1563 echo "$as_me:$LINENO: checking build system type" >&5
1564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565 if test "${ac_cv_build+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_build_alias=$build_alias
1569 test -z "$ac_cv_build_alias" &&
1570   ac_cv_build_alias=`$ac_config_guess`
1571 test -z "$ac_cv_build_alias" &&
1572   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574    { (exit 1); exit 1; }; }
1575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578    { (exit 1); exit 1; }; }
1579
1580 fi
1581 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582 echo "${ECHO_T}$ac_cv_build" >&6
1583 build=$ac_cv_build
1584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589 echo "$as_me:$LINENO: checking host system type" >&5
1590 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1591 if test "${ac_cv_host+set}" = set; then
1592   echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594   ac_cv_host_alias=$host_alias
1595 test -z "$ac_cv_host_alias" &&
1596   ac_cv_host_alias=$ac_cv_build_alias
1597 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1598   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1600    { (exit 1); exit 1; }; }
1601
1602 fi
1603 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1604 echo "${ECHO_T}$ac_cv_host" >&6
1605 host=$ac_cv_host
1606 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611 echo "$as_me:$LINENO: checking target system type" >&5
1612 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1613 if test "${ac_cv_target+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   ac_cv_target_alias=$target_alias
1617 test "x$ac_cv_target_alias" = "x" &&
1618   ac_cv_target_alias=$ac_cv_host_alias
1619 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1620   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1621 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1622    { (exit 1); exit 1; }; }
1623
1624 fi
1625 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1626 echo "${ECHO_T}$ac_cv_target" >&6
1627 target=$ac_cv_target
1628 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633 # The aliases save the names the user supplied, while $host etc.
1634 # will get canonicalized.
1635 test -n "$target_alias" &&
1636   test "$program_prefix$program_suffix$program_transform_name" = \
1637     NONENONEs,x,x, &&
1638   program_prefix=${target_alias}-
1639 ac_ext=c
1640 ac_cpp='$CPP $CPPFLAGS'
1641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1644
1645
1646           ac_config_headers="$ac_config_headers src/gras_config.h"
1647
1648 am__api_version="1.8"
1649 # Find a good install program.  We prefer a C program (faster),
1650 # so one script is as good as another.  But avoid the broken or
1651 # incompatible versions:
1652 # SysV /etc/install, /usr/sbin/install
1653 # SunOS /usr/etc/install
1654 # IRIX /sbin/install
1655 # AIX /bin/install
1656 # AmigaOS /C/install, which installs bootblocks on floppy discs
1657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660 # OS/2's system install, which has a completely different semantic
1661 # ./install, which can be erroneously created by make from ./install.sh.
1662 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1663 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1664 if test -z "$INSTALL"; then
1665 if test "${ac_cv_path_install+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671   IFS=$as_save_IFS
1672   test -z "$as_dir" && as_dir=.
1673   # Account for people who put trailing slashes in PATH elements.
1674 case $as_dir/ in
1675   ./ | .// | /cC/* | \
1676   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1677   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1678   /usr/ucb/* ) ;;
1679   *)
1680     # OSF1 and SCO ODT 3.0 have their own names for install.
1681     # Don't use installbsd from OSF since it installs stuff as root
1682     # by default.
1683     for ac_prog in ginstall scoinst install; do
1684       for ac_exec_ext in '' $ac_executable_extensions; do
1685         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1686           if test $ac_prog = install &&
1687             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688             # AIX install.  It has an incompatible calling convention.
1689             :
1690           elif test $ac_prog = install &&
1691             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692             # program-specific install script used by HP pwplus--don't use.
1693             :
1694           else
1695             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1696             break 3
1697           fi
1698         fi
1699       done
1700     done
1701     ;;
1702 esac
1703 done
1704
1705
1706 fi
1707   if test "${ac_cv_path_install+set}" = set; then
1708     INSTALL=$ac_cv_path_install
1709   else
1710     # As a last resort, use the slow shell script.  We don't cache a
1711     # path for INSTALL within a source directory, because that will
1712     # break other packages using the cache if that directory is
1713     # removed, or if the path is relative.
1714     INSTALL=$ac_install_sh
1715   fi
1716 fi
1717 echo "$as_me:$LINENO: result: $INSTALL" >&5
1718 echo "${ECHO_T}$INSTALL" >&6
1719
1720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1721 # It thinks the first close brace ends the variable substitution.
1722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1723
1724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1725
1726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1727
1728 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1729 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1730 # Just in case
1731 sleep 1
1732 echo timestamp > conftest.file
1733 # Do `set' in a subshell so we don't clobber the current shell's
1734 # arguments.  Must try -L first in case configure is actually a
1735 # symlink; some systems play weird games with the mod time of symlinks
1736 # (eg FreeBSD returns the mod time of the symlink's containing
1737 # directory).
1738 if (
1739    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1740    if test "$*" = "X"; then
1741       # -L didn't work.
1742       set X `ls -t $srcdir/configure conftest.file`
1743    fi
1744    rm -f conftest.file
1745    if test "$*" != "X $srcdir/configure conftest.file" \
1746       && test "$*" != "X conftest.file $srcdir/configure"; then
1747
1748       # If neither matched, then we have a broken ls.  This can happen
1749       # if, for instance, CONFIG_SHELL is bash and it inherits a
1750       # broken ls alias from the environment.  This has actually
1751       # happened.  Such a system could not be considered "sane".
1752       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1753 alias in your environment" >&5
1754 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1755 alias in your environment" >&2;}
1756    { (exit 1); exit 1; }; }
1757    fi
1758
1759    test "$2" = conftest.file
1760    )
1761 then
1762    # Ok.
1763    :
1764 else
1765    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1766 Check your system clock" >&5
1767 echo "$as_me: error: newly created file is older than distributed files!
1768 Check your system clock" >&2;}
1769    { (exit 1); exit 1; }; }
1770 fi
1771 echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1773 test "$program_prefix" != NONE &&
1774   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1775 # Use a double $ so make ignores it.
1776 test "$program_suffix" != NONE &&
1777   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1778 # Double any \ or $.  echo might interpret backslashes.
1779 # By default was `s,x,x', remove it if useless.
1780 cat <<\_ACEOF >conftest.sed
1781 s/[\\$]/&&/g;s/;s,x,x,$//
1782 _ACEOF
1783 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1784 rm conftest.sed
1785
1786 # expand $ac_aux_dir to an absolute path
1787 am_aux_dir=`cd $ac_aux_dir && pwd`
1788
1789 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1790 # Use eval to expand $SHELL
1791 if eval "$MISSING --run true"; then
1792   am_missing_run="$MISSING --run "
1793 else
1794   am_missing_run=
1795   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1796 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1797 fi
1798
1799 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1800   # Keeping the `.' argument allows $(mkdir_p) to be used without
1801   # argument.  Indeed, we sometimes output rules like
1802   #   $(mkdir_p) $(somedir)
1803   # where $(somedir) is conditionally defined.
1804   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1805   # expensive solution, as it forces Make to start a sub-shell.)
1806   mkdir_p='mkdir -p -- .'
1807 else
1808   # On NextStep and OpenStep, the `mkdir' command does not
1809   # recognize any option.  It will interpret all options as
1810   # directories to create, and then abort because `.' already
1811   # exists.
1812   for d in ./-p ./--version;
1813   do
1814     test -d $d && rmdir $d
1815   done
1816   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1817   if test -f "$ac_aux_dir/mkinstalldirs"; then
1818     mkdir_p='$(mkinstalldirs)'
1819   else
1820     mkdir_p='$(install_sh) -d'
1821   fi
1822 fi
1823
1824 for ac_prog in gawk mawk nawk awk
1825 do
1826   # Extract the first word of "$ac_prog", so it can be a program name with args.
1827 set dummy $ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_AWK+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$AWK"; then
1834   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_AWK="$ac_prog"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 AWK=$ac_cv_prog_AWK
1853 if test -n "$AWK"; then
1854   echo "$as_me:$LINENO: result: $AWK" >&5
1855 echo "${ECHO_T}$AWK" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861   test -n "$AWK" && break
1862 done
1863
1864 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1865 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1866 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1867 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   cat >conftest.make <<\_ACEOF
1871 all:
1872         @echo 'ac_maketemp="$(MAKE)"'
1873 _ACEOF
1874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1875 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1876 if test -n "$ac_maketemp"; then
1877   eval ac_cv_prog_make_${ac_make}_set=yes
1878 else
1879   eval ac_cv_prog_make_${ac_make}_set=no
1880 fi
1881 rm -f conftest.make
1882 fi
1883 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1884   echo "$as_me:$LINENO: result: yes" >&5
1885 echo "${ECHO_T}yes" >&6
1886   SET_MAKE=
1887 else
1888   echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890   SET_MAKE="MAKE=${MAKE-make}"
1891 fi
1892
1893 rm -rf .tst 2>/dev/null
1894 mkdir .tst 2>/dev/null
1895 if test -d .tst; then
1896   am__leading_dot=.
1897 else
1898   am__leading_dot=_
1899 fi
1900 rmdir .tst 2>/dev/null
1901
1902 # test to see if srcdir already configured
1903 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1904    test -f $srcdir/config.status; then
1905   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1906 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1907    { (exit 1); exit 1; }; }
1908 fi
1909
1910 # test whether we have cygpath
1911 if test -z "$CYGPATH_W"; then
1912   if (cygpath --version) >/dev/null 2>/dev/null; then
1913     CYGPATH_W='cygpath -w'
1914   else
1915     CYGPATH_W=echo
1916   fi
1917 fi
1918
1919
1920 # Define the identity of the package.
1921  PACKAGE='gras'
1922  VERSION='0.0.040304'
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE "$PACKAGE"
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define VERSION "$VERSION"
1932 _ACEOF
1933
1934 # Some tools Automake needs.
1935
1936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1937
1938
1939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1940
1941
1942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1943
1944
1945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1946
1947
1948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1949
1950
1951 AMTAR=${AMTAR-"${am_missing_run}tar"}
1952
1953 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1954
1955 # Installed binaries are usually stripped using `strip' when the user
1956 # run `make install-strip'.  However `strip' might not be the right
1957 # tool to use in cross-compilation environments, therefore Automake
1958 # will honor the `STRIP' environment variable to overrule this program.
1959 if test "$cross_compiling" != no; then
1960   if test -n "$ac_tool_prefix"; then
1961   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}strip; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_STRIP+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$STRIP"; then
1969   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984
1985 fi
1986 fi
1987 STRIP=$ac_cv_prog_STRIP
1988 if test -n "$STRIP"; then
1989   echo "$as_me:$LINENO: result: $STRIP" >&5
1990 echo "${ECHO_T}$STRIP" >&6
1991 else
1992   echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1994 fi
1995
1996 fi
1997 if test -z "$ac_cv_prog_STRIP"; then
1998   ac_ct_STRIP=$STRIP
1999   # Extract the first word of "strip", so it can be a program name with args.
2000 set dummy strip; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$ac_ct_STRIP"; then
2007   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_ac_ct_STRIP="strip"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2024 fi
2025 fi
2026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2027 if test -n "$ac_ct_STRIP"; then
2028   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2029 echo "${ECHO_T}$ac_ct_STRIP" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035   STRIP=$ac_ct_STRIP
2036 else
2037   STRIP="$ac_cv_prog_STRIP"
2038 fi
2039
2040 fi
2041 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2042
2043 # We need awk for the "check" target.  The system "awk" is bad on
2044 # some platforms.
2045
2046
2047
2048
2049 # Check whether --enable-shared or --disable-shared was given.
2050 if test "${enable_shared+set}" = set; then
2051   enableval="$enable_shared"
2052   p=${PACKAGE-default}
2053     case $enableval in
2054     yes) enable_shared=yes ;;
2055     no) enable_shared=no ;;
2056     *)
2057       enable_shared=no
2058       # Look at the argument we got.  We use all the common list separators.
2059       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2060       for pkg in $enableval; do
2061         IFS="$lt_save_ifs"
2062         if test "X$pkg" = "X$p"; then
2063           enable_shared=yes
2064         fi
2065       done
2066       IFS="$lt_save_ifs"
2067       ;;
2068     esac
2069 else
2070   enable_shared=yes
2071 fi;
2072
2073 # Check whether --enable-static or --disable-static was given.
2074 if test "${enable_static+set}" = set; then
2075   enableval="$enable_static"
2076   p=${PACKAGE-default}
2077     case $enableval in
2078     yes) enable_static=yes ;;
2079     no) enable_static=no ;;
2080     *)
2081      enable_static=no
2082       # Look at the argument we got.  We use all the common list separators.
2083       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2084       for pkg in $enableval; do
2085         IFS="$lt_save_ifs"
2086         if test "X$pkg" = "X$p"; then
2087           enable_static=yes
2088         fi
2089       done
2090       IFS="$lt_save_ifs"
2091       ;;
2092     esac
2093 else
2094   enable_static=yes
2095 fi;
2096
2097 # Check whether --enable-fast-install or --disable-fast-install was given.
2098 if test "${enable_fast_install+set}" = set; then
2099   enableval="$enable_fast_install"
2100   p=${PACKAGE-default}
2101     case $enableval in
2102     yes) enable_fast_install=yes ;;
2103     no) enable_fast_install=no ;;
2104     *)
2105       enable_fast_install=no
2106       # Look at the argument we got.  We use all the common list separators.
2107       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2108       for pkg in $enableval; do
2109         IFS="$lt_save_ifs"
2110         if test "X$pkg" = "X$p"; then
2111           enable_fast_install=yes
2112         fi
2113       done
2114       IFS="$lt_save_ifs"
2115       ;;
2116     esac
2117 else
2118   enable_fast_install=yes
2119 fi;
2120
2121 DEPDIR="${am__leading_dot}deps"
2122
2123           ac_config_commands="$ac_config_commands depfiles"
2124
2125
2126 am_make=${MAKE-make}
2127 cat > confinc << 'END'
2128 am__doit:
2129         @echo done
2130 .PHONY: am__doit
2131 END
2132 # If we don't find an include directive, just comment out the code.
2133 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2134 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2135 am__include="#"
2136 am__quote=
2137 _am_result=none
2138 # First try GNU make style include.
2139 echo "include confinc" > confmf
2140 # We grep out `Entering directory' and `Leaving directory'
2141 # messages which can occur if `w' ends up in MAKEFLAGS.
2142 # In particular we don't look at `^make:' because GNU make might
2143 # be invoked under some other name (usually "gmake"), in which
2144 # case it prints its new name instead of `make'.
2145 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2146    am__include=include
2147    am__quote=
2148    _am_result=GNU
2149 fi
2150 # Now try BSD make style include.
2151 if test "$am__include" = "#"; then
2152    echo '.include "confinc"' > confmf
2153    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2154       am__include=.include
2155       am__quote="\""
2156       _am_result=BSD
2157    fi
2158 fi
2159
2160
2161 echo "$as_me:$LINENO: result: $_am_result" >&5
2162 echo "${ECHO_T}$_am_result" >&6
2163 rm -f confinc confmf
2164
2165 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2166 if test "${enable_dependency_tracking+set}" = set; then
2167   enableval="$enable_dependency_tracking"
2168
2169 fi;
2170 if test "x$enable_dependency_tracking" != xno; then
2171   am_depcomp="$ac_aux_dir/depcomp"
2172   AMDEPBACKSLASH='\'
2173 fi
2174
2175
2176 if test "x$enable_dependency_tracking" != xno; then
2177   AMDEP_TRUE=
2178   AMDEP_FALSE='#'
2179 else
2180   AMDEP_TRUE='#'
2181   AMDEP_FALSE=
2182 fi
2183
2184
2185
2186 ac_ext=c
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 if test -n "$ac_tool_prefix"; then
2192   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test -n "$CC"; then
2200   ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
2206   test -z "$as_dir" && as_dir=.
2207   for ac_exec_ext in '' $ac_executable_extensions; do
2208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211     break 2
2212   fi
2213 done
2214 done
2215
2216 fi
2217 fi
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220   echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2222 else
2223   echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2226
2227 fi
2228 if test -z "$ac_cv_prog_CC"; then
2229   ac_ct_CC=$CC
2230   # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$ac_ct_CC"; then
2238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247     ac_cv_prog_ac_ct_CC="gcc"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253
2254 fi
2255 fi
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2260 else
2261   echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2263 fi
2264
2265   CC=$ac_ct_CC
2266 else
2267   CC="$ac_cv_prog_CC"
2268 fi
2269
2270 if test -z "$CC"; then
2271   if test -n "$ac_tool_prefix"; then
2272   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$CC"; then
2280   ac_cv_prog_CC="$CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285   IFS=$as_save_IFS
2286   test -z "$as_dir" && as_dir=.
2287   for ac_exec_ext in '' $ac_executable_extensions; do
2288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289     ac_cv_prog_CC="${ac_tool_prefix}cc"
2290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291     break 2
2292   fi
2293 done
2294 done
2295
2296 fi
2297 fi
2298 CC=$ac_cv_prog_CC
2299 if test -n "$CC"; then
2300   echo "$as_me:$LINENO: result: $CC" >&5
2301 echo "${ECHO_T}$CC" >&6
2302 else
2303   echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2305 fi
2306
2307 fi
2308 if test -z "$ac_cv_prog_CC"; then
2309   ac_ct_CC=$CC
2310   # Extract the first word of "cc", so it can be a program name with args.
2311 set dummy cc; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   if test -n "$ac_ct_CC"; then
2318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327     ac_cv_prog_ac_ct_CC="cc"
2328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332 done
2333
2334 fi
2335 fi
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2340 else
2341   echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2343 fi
2344
2345   CC=$ac_ct_CC
2346 else
2347   CC="$ac_cv_prog_CC"
2348 fi
2349
2350 fi
2351 if test -z "$CC"; then
2352   # Extract the first word of "cc", so it can be a program name with args.
2353 set dummy cc; ac_word=$2
2354 echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   if test -n "$CC"; then
2360   ac_cv_prog_CC="$CC" # Let the user override the test.
2361 else
2362   ac_prog_rejected=no
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2371        ac_prog_rejected=yes
2372        continue
2373      fi
2374     ac_cv_prog_CC="cc"
2375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376     break 2
2377   fi
2378 done
2379 done
2380
2381 if test $ac_prog_rejected = yes; then
2382   # We found a bogon in the path, so make sure we never use it.
2383   set dummy $ac_cv_prog_CC
2384   shift
2385   if test $# != 0; then
2386     # We chose a different compiler from the bogus one.
2387     # However, it has the same basename, so the bogon will be chosen
2388     # first if we set CC to just the basename; use the full file name.
2389     shift
2390     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2391   fi
2392 fi
2393 fi
2394 fi
2395 CC=$ac_cv_prog_CC
2396 if test -n "$CC"; then
2397   echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2399 else
2400   echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2402 fi
2403
2404 fi
2405 if test -z "$CC"; then
2406   if test -n "$ac_tool_prefix"; then
2407   for ac_prog in cl
2408   do
2409     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411 echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   if test -n "$CC"; then
2417   ac_cv_prog_CC="$CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424   for ac_exec_ext in '' $ac_executable_extensions; do
2425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431 done
2432
2433 fi
2434 fi
2435 CC=$ac_cv_prog_CC
2436 if test -n "$CC"; then
2437   echo "$as_me:$LINENO: result: $CC" >&5
2438 echo "${ECHO_T}$CC" >&6
2439 else
2440   echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6
2442 fi
2443
2444     test -n "$CC" && break
2445   done
2446 fi
2447 if test -z "$CC"; then
2448   ac_ct_CC=$CC
2449   for ac_prog in cl
2450 do
2451   # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   if test -n "$ac_ct_CC"; then
2459   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_exec_ext in '' $ac_executable_extensions; do
2467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468     ac_cv_prog_ac_ct_CC="$ac_prog"
2469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473 done
2474
2475 fi
2476 fi
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480 echo "${ECHO_T}$ac_ct_CC" >&6
2481 else
2482   echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6
2484 fi
2485
2486   test -n "$ac_ct_CC" && break
2487 done
2488
2489   CC=$ac_ct_CC
2490 fi
2491
2492 fi
2493
2494
2495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: no acceptable C compiler found in \$PATH
2498 See \`config.log' for more details." >&2;}
2499    { (exit 1); exit 1; }; }
2500
2501 # Provide some information about the compiler.
2502 echo "$as_me:$LINENO:" \
2503      "checking for C compiler version" >&5
2504 ac_compiler=`set X $ac_compile; echo $2`
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2506   (eval $ac_compiler --version </dev/null >&5) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2511   (eval $ac_compiler -v </dev/null >&5) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2516   (eval $ac_compiler -V </dev/null >&5) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }
2520
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2527
2528 int
2529 main ()
2530 {
2531
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 ac_clean_files_save=$ac_clean_files
2537 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2538 # Try to create an executable without -o first, disregard a.out.
2539 # It will help us diagnose broken compilers, and finding out an intuition
2540 # of exeext.
2541 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2542 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2543 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2545   (eval $ac_link_default) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; then
2549   # Find the output, starting from the most likely.  This scheme is
2550 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2551 # resort.
2552
2553 # Be careful to initialize this variable, since it used to be cached.
2554 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2555 ac_cv_exeext=
2556 # b.out is created by i960 compilers.
2557 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2558 do
2559   test -f "$ac_file" || continue
2560   case $ac_file in
2561     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2562         ;;
2563     conftest.$ac_ext )
2564         # This is the source file.
2565         ;;
2566     [ab].out )
2567         # We found the default executable, but exeext='' is most
2568         # certainly right.
2569         break;;
2570     *.* )
2571         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572         # FIXME: I believe we export ac_cv_exeext for Libtool,
2573         # but it would be cool to find out if it's true.  Does anybody
2574         # maintain Libtool? --akim.
2575         export ac_cv_exeext
2576         break;;
2577     * )
2578         break;;
2579   esac
2580 done
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: C compiler cannot create executables
2588 See \`config.log' for more details." >&2;}
2589    { (exit 77); exit 77; }; }
2590 fi
2591
2592 ac_exeext=$ac_cv_exeext
2593 echo "$as_me:$LINENO: result: $ac_file" >&5
2594 echo "${ECHO_T}$ac_file" >&6
2595
2596 # Check the compiler produces executables we can run.  If not, either
2597 # the compiler is broken, or we cross compile.
2598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601 # If not cross compiling, check that we can run a simple program.
2602 if test "$cross_compiling" != yes; then
2603   if { ac_try='./$ac_file'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609     cross_compiling=no
2610   else
2611     if test "$cross_compiling" = maybe; then
2612         cross_compiling=yes
2613     else
2614         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot run C compiled programs.
2618 If you meant to cross compile, use \`--host'.
2619 See \`config.log' for more details." >&2;}
2620    { (exit 1); exit 1; }; }
2621     fi
2622   fi
2623 fi
2624 echo "$as_me:$LINENO: result: yes" >&5
2625 echo "${ECHO_T}yes" >&6
2626
2627 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2628 ac_clean_files=$ac_clean_files_save
2629 # Check the compiler produces executables we can run.  If not, either
2630 # the compiler is broken, or we cross compile.
2631 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2632 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2633 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2634 echo "${ECHO_T}$cross_compiling" >&6
2635
2636 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2637 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639   (eval $ac_link) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; then
2643   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2646 # `rm'.
2647 for ac_file in conftest.exe conftest conftest.*; do
2648   test -f "$ac_file" || continue
2649   case $ac_file in
2650     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2651     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652           export ac_cv_exeext
2653           break;;
2654     * ) break;;
2655   esac
2656 done
2657 else
2658   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2661 See \`config.log' for more details." >&2;}
2662    { (exit 1); exit 1; }; }
2663 fi
2664
2665 rm -f conftest$ac_cv_exeext
2666 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2667 echo "${ECHO_T}$ac_cv_exeext" >&6
2668
2669 rm -f conftest.$ac_ext
2670 EXEEXT=$ac_cv_exeext
2671 ac_exeext=$EXEEXT
2672 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2673 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2674 if test "${ac_cv_objext+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.o conftest.obj
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; then
2698   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2699   case $ac_file in
2700     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2701     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702        break;;
2703   esac
2704 done
2705 else
2706   echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713    { (exit 1); exit 1; }; }
2714 fi
2715
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 fi
2718 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6
2720 OBJEXT=$ac_cv_objext
2721 ac_objext=$OBJEXT
2722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725   echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727   cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733
2734 int
2735 main ()
2736 {
2737 #ifndef __GNUC__
2738        choke me
2739 #endif
2740
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747   (eval $ac_compile) 2>conftest.er1
2748   ac_status=$?
2749   grep -v '^ *+' conftest.er1 >conftest.err
2750   rm -f conftest.er1
2751   cat conftest.err >&5
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } &&
2754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   ac_compiler_gnu=yes
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 ac_compiler_gnu=no
2772 fi
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775
2776 fi
2777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2779 GCC=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CFLAGS=${CFLAGS+set}
2781 ac_save_CFLAGS=$CFLAGS
2782 CFLAGS="-g"
2783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h.  */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h.  */
2794
2795 int
2796 main ()
2797 {
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805   (eval $ac_compile) 2>conftest.er1
2806   ac_status=$?
2807   grep -v '^ *+' conftest.er1 >conftest.err
2808   rm -f conftest.er1
2809   cat conftest.err >&5
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); } &&
2812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814   (eval $ac_try) 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; } &&
2818          { ac_try='test -s conftest.$ac_objext'
2819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820   (eval $ac_try) 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; }; then
2824   ac_cv_prog_cc_g=yes
2825 else
2826   echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 ac_cv_prog_cc_g=no
2830 fi
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 fi
2833 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2834 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2835 if test "$ac_test_CFLAGS" = set; then
2836   CFLAGS=$ac_save_CFLAGS
2837 elif test $ac_cv_prog_cc_g = yes; then
2838   if test "$GCC" = yes; then
2839     CFLAGS="-g -O2"
2840   else
2841     CFLAGS="-g"
2842   fi
2843 else
2844   if test "$GCC" = yes; then
2845     CFLAGS="-O2"
2846   else
2847     CFLAGS=
2848   fi
2849 fi
2850 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2851 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2852 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   ac_cv_prog_cc_stdc=no
2856 ac_save_CC=$CC
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 #include <stdarg.h>
2864 #include <stdio.h>
2865 #include <sys/types.h>
2866 #include <sys/stat.h>
2867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2868 struct buf { int x; };
2869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2870 static char *e (p, i)
2871      char **p;
2872      int i;
2873 {
2874   return p[i];
2875 }
2876 static char *f (char * (*g) (char **, int), char **p, ...)
2877 {
2878   char *s;
2879   va_list v;
2880   va_start (v,p);
2881   s = g (p, va_arg (v,int));
2882   va_end (v);
2883   return s;
2884 }
2885
2886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2887    function prototypes and stuff, but not '\xHH' hex character constants.
2888    These don't provoke an error unfortunately, instead are silently treated
2889    as 'x'.  The following induces an error, until -std1 is added to get
2890    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2891    array size at least.  It's necessary to write '\x00'==0 to get something
2892    that's true only with -std1.  */
2893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2894
2895 int test (int i, double x);
2896 struct s1 {int (*f) (int a);};
2897 struct s2 {int (*f) (double a);};
2898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2899 int argc;
2900 char **argv;
2901 int
2902 main ()
2903 {
2904 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2905   ;
2906   return 0;
2907 }
2908 _ACEOF
2909 # Don't try gcc -ansi; that turns off useful extensions and
2910 # breaks some systems' header files.
2911 # AIX                   -qlanglvl=ansi
2912 # Ultrix and OSF/1      -std1
2913 # HP-UX 10.20 and later -Ae
2914 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2915 # SVR4                  -Xc -D__EXTENSIONS__
2916 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2917 do
2918   CC="$ac_save_CC $ac_arg"
2919   rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921   (eval $ac_compile) 2>conftest.er1
2922   ac_status=$?
2923   grep -v '^ *+' conftest.er1 >conftest.err
2924   rm -f conftest.er1
2925   cat conftest.err >&5
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); } &&
2928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   ac_cv_prog_cc_stdc=$ac_arg
2941 break
2942 else
2943   echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 fi
2947 rm -f conftest.err conftest.$ac_objext
2948 done
2949 rm -f conftest.$ac_ext conftest.$ac_objext
2950 CC=$ac_save_CC
2951
2952 fi
2953
2954 case "x$ac_cv_prog_cc_stdc" in
2955   x|xno)
2956     echo "$as_me:$LINENO: result: none needed" >&5
2957 echo "${ECHO_T}none needed" >&6 ;;
2958   *)
2959     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2960 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2961     CC="$CC $ac_cv_prog_cc_stdc" ;;
2962 esac
2963
2964 # Some people use a C++ compiler to compile C.  Since we use `exit',
2965 # in C++ we need to declare it.  In case someone uses the same compiler
2966 # for both compiling C and C++ we need to have the C++ compiler decide
2967 # the declaration of exit, since it's the most demanding environment.
2968 cat >conftest.$ac_ext <<_ACEOF
2969 #ifndef __cplusplus
2970   choke me
2971 #endif
2972 _ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975   (eval $ac_compile) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; } &&
2988          { ac_try='test -s conftest.$ac_objext'
2989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990   (eval $ac_try) 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; }; then
2994   for ac_declaration in \
2995    '' \
2996    'extern "C" void std::exit (int) throw (); using std::exit;' \
2997    'extern "C" void std::exit (int); using std::exit;' \
2998    'extern "C" void exit (int) throw ();' \
2999    'extern "C" void exit (int);' \
3000    'void exit (int);'
3001 do
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008 $ac_declaration
3009 #include <stdlib.h>
3010 int
3011 main ()
3012 {
3013 exit (42);
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020   (eval $ac_compile) 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029   (eval $ac_try) 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; } &&
3033          { ac_try='test -s conftest.$ac_objext'
3034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035   (eval $ac_try) 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   :
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 continue
3045 fi
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 $ac_declaration
3054 int
3055 main ()
3056 {
3057 exit (42);
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064   (eval $ac_compile) 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } &&
3071          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073   (eval $ac_try) 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; } &&
3077          { ac_try='test -s conftest.$ac_objext'
3078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079   (eval $ac_try) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); }; }; then
3083   break
3084 else
3085   echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 fi
3089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3090 done
3091 rm -f conftest*
3092 if test -n "$ac_declaration"; then
3093   echo '#ifdef __cplusplus' >>confdefs.h
3094   echo $ac_declaration      >>confdefs.h
3095   echo '#endif'             >>confdefs.h
3096 fi
3097
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 fi
3103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109
3110 depcc="$CC"   am_compiler_list=
3111
3112 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3113 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3114 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3115   echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3118   # We make a subdir and do the tests there.  Otherwise we can end up
3119   # making bogus files that we don't know about and never remove.  For
3120   # instance it was reported that on HP-UX the gcc test will end up
3121   # making a dummy file named `D' -- because `-MD' means `put the output
3122   # in D'.
3123   mkdir conftest.dir
3124   # Copy depcomp to subdir because otherwise we won't find it if we're
3125   # using a relative directory.
3126   cp "$am_depcomp" conftest.dir
3127   cd conftest.dir
3128   # We will build objects and dependencies in a subdirectory because
3129   # it helps to detect inapplicable dependency modes.  For instance
3130   # both Tru64's cc and ICC support -MD to output dependencies as a
3131   # side effect of compilation, but ICC will put the dependencies in
3132   # the current directory while Tru64 will put them in the object
3133   # directory.
3134   mkdir sub
3135
3136   am_cv_CC_dependencies_compiler_type=none
3137   if test "$am_compiler_list" = ""; then
3138      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3139   fi
3140   for depmode in $am_compiler_list; do
3141     # Setup a source with many dependencies, because some compilers
3142     # like to wrap large dependency lists on column 80 (with \), and
3143     # we should not choose a depcomp mode which is confused by this.
3144     #
3145     # We need to recreate these files for each test, as the compiler may
3146     # overwrite some of them when testing with obscure command lines.
3147     # This happens at least with the AIX C compiler.
3148     : > sub/conftest.c
3149     for i in 1 2 3 4 5 6; do
3150       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3151       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3152       # Solaris 8's {/usr,}/bin/sh.
3153       touch sub/conftst$i.h
3154     done
3155     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3156
3157     case $depmode in
3158     nosideeffect)
3159       # after this tag, mechanisms are not by side-effect, so they'll
3160       # only be used when explicitly requested
3161       if test "x$enable_dependency_tracking" = xyes; then
3162         continue
3163       else
3164         break
3165       fi
3166       ;;
3167     none) break ;;
3168     esac
3169     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3170     # mode.  It turns out that the SunPro C++ compiler does not properly
3171     # handle `-M -o', and we need to detect this.
3172     if depmode=$depmode \
3173        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3174        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3175        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3176          >/dev/null 2>conftest.err &&
3177        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3178        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3179        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3180       # icc doesn't choke on unknown options, it will just issue warnings
3181       # (even with -Werror).  So we grep stderr for any message
3182       # that says an option was ignored.
3183       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3184         am_cv_CC_dependencies_compiler_type=$depmode
3185         break
3186       fi
3187     fi
3188   done
3189
3190   cd ..
3191   rm -rf conftest.dir
3192 else
3193   am_cv_CC_dependencies_compiler_type=none
3194 fi
3195
3196 fi
3197 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3198 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3200
3201
3202
3203 if
3204   test "x$enable_dependency_tracking" != xno \
3205   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3206   am__fastdepCC_TRUE=
3207   am__fastdepCC_FALSE='#'
3208 else
3209   am__fastdepCC_TRUE='#'
3210   am__fastdepCC_FALSE=
3211 fi
3212
3213
3214 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3215 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3216 if test "${lt_cv_path_SED+set}" = set; then
3217   echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219   # Loop through the user's path and test for sed and gsed.
3220 # Then use that list of sed's as ones to test for truncation.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224   IFS=$as_save_IFS
3225   test -z "$as_dir" && as_dir=.
3226   for lt_ac_prog in sed gsed; do
3227     for ac_exec_ext in '' $ac_executable_extensions; do
3228       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3229         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3230       fi
3231     done
3232   done
3233 done
3234 lt_ac_max=0
3235 lt_ac_count=0
3236 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3237 # along with /bin/sed that truncates output.
3238 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3239   test ! -f $lt_ac_sed && break
3240   cat /dev/null > conftest.in
3241   lt_ac_count=0
3242   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3243   # Check for GNU sed and select it if it is found.
3244   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3245     lt_cv_path_SED=$lt_ac_sed
3246     break
3247   fi
3248   while true; do
3249     cat conftest.in conftest.in >conftest.tmp
3250     mv conftest.tmp conftest.in
3251     cp conftest.in conftest.nl
3252     echo >>conftest.nl
3253     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3254     cmp -s conftest.out conftest.nl || break
3255     # 10000 chars as input seems more than enough
3256     test $lt_ac_count -gt 10 && break
3257     lt_ac_count=`expr $lt_ac_count + 1`
3258     if test $lt_ac_count -gt $lt_ac_max; then
3259       lt_ac_max=$lt_ac_count
3260       lt_cv_path_SED=$lt_ac_sed
3261     fi
3262   done
3263 done
3264 SED=$lt_cv_path_SED
3265
3266 fi
3267
3268 echo "$as_me:$LINENO: result: $SED" >&5
3269 echo "${ECHO_T}$SED" >&6
3270
3271 echo "$as_me:$LINENO: checking for egrep" >&5
3272 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3273 if test "${ac_cv_prog_egrep+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3277     then ac_cv_prog_egrep='grep -E'
3278     else ac_cv_prog_egrep='egrep'
3279     fi
3280 fi
3281 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3282 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3283  EGREP=$ac_cv_prog_egrep
3284
3285
3286
3287 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3288 if test "${with_gnu_ld+set}" = set; then
3289   withval="$with_gnu_ld"
3290   test "$withval" = no || with_gnu_ld=yes
3291 else
3292   with_gnu_ld=no
3293 fi;
3294 ac_prog=ld
3295 if test "$GCC" = yes; then
3296   # Check if gcc -print-prog-name=ld gives a path.
3297   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3298 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3299   case $host in
3300   *-*-mingw*)
3301     # gcc leaves a trailing carriage return which upsets mingw
3302     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3303   *)
3304     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3305   esac
3306   case $ac_prog in
3307     # Accept absolute paths.
3308     [\\/]* | ?:[\\/]*)
3309       re_direlt='/[^/][^/]*/\.\./'
3310       # Canonicalize the pathname of ld
3311       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3312       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3313         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3314       done
3315       test -z "$LD" && LD="$ac_prog"
3316       ;;
3317   "")
3318     # If it fails, then pretend we aren't using GCC.
3319     ac_prog=ld
3320     ;;
3321   *)
3322     # If it is relative, then search for the first ld in PATH.
3323     with_gnu_ld=unknown
3324     ;;
3325   esac
3326 elif test "$with_gnu_ld" = yes; then
3327   echo "$as_me:$LINENO: checking for GNU ld" >&5
3328 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3329 else
3330   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3331 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3332 fi
3333 if test "${lt_cv_path_LD+set}" = set; then
3334   echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336   if test -z "$LD"; then
3337   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3338   for ac_dir in $PATH; do
3339     IFS="$lt_save_ifs"
3340     test -z "$ac_dir" && ac_dir=.
3341     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3342       lt_cv_path_LD="$ac_dir/$ac_prog"
3343       # Check to see if the program is GNU ld.  I'd rather use --version,
3344       # but apparently some GNU ld's only accept -v.
3345       # Break only if it was the GNU/non-GNU ld that we prefer.
3346       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3347       *GNU* | *'with BFD'*)
3348         test "$with_gnu_ld" != no && break
3349         ;;
3350       *)
3351         test "$with_gnu_ld" != yes && break
3352         ;;
3353       esac
3354     fi
3355   done
3356   IFS="$lt_save_ifs"
3357 else
3358   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3359 fi
3360 fi
3361
3362 LD="$lt_cv_path_LD"
3363 if test -n "$LD"; then
3364   echo "$as_me:$LINENO: result: $LD" >&5
3365 echo "${ECHO_T}$LD" >&6
3366 else
3367   echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3369 fi
3370 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3371 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3372    { (exit 1); exit 1; }; }
3373 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3374 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3375 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3376   echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3379 case `$LD -v 2>&1 </dev/null` in
3380 *GNU* | *'with BFD'*)
3381   lt_cv_prog_gnu_ld=yes
3382   ;;
3383 *)
3384   lt_cv_prog_gnu_ld=no
3385   ;;
3386 esac
3387 fi
3388 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3389 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3390 with_gnu_ld=$lt_cv_prog_gnu_ld
3391
3392
3393 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3394 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3395 if test "${lt_cv_ld_reload_flag+set}" = set; then
3396   echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398   lt_cv_ld_reload_flag='-r'
3399 fi
3400 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3401 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3402 reload_flag=$lt_cv_ld_reload_flag
3403 case $reload_flag in
3404 "" | " "*) ;;
3405 *) reload_flag=" $reload_flag" ;;
3406 esac
3407 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3408
3409 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3410 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3411 if test "${lt_cv_path_NM+set}" = set; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   if test -n "$NM"; then
3415   # Let the user override the test.
3416   lt_cv_path_NM="$NM"
3417 else
3418   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3419   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3420     IFS="$lt_save_ifs"
3421     test -z "$ac_dir" && ac_dir=.
3422     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3423     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3424       # Check to see if the nm accepts a BSD-compat flag.
3425       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3426       #   nm: unknown option "B" ignored
3427       # Tru64's nm complains that /dev/null is an invalid object file
3428       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3429       */dev/null* | *'Invalid file or object type'*)
3430         lt_cv_path_NM="$tmp_nm -B"
3431         break
3432         ;;
3433       *)
3434         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3435         */dev/null*)
3436           lt_cv_path_NM="$tmp_nm -p"
3437           break
3438           ;;
3439         *)
3440           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3441           continue # so that we can try to find one that supports BSD flags
3442           ;;
3443         esac
3444       esac
3445     fi
3446   done
3447   IFS="$lt_save_ifs"
3448   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3449 fi
3450 fi
3451 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3452 echo "${ECHO_T}$lt_cv_path_NM" >&6
3453 NM="$lt_cv_path_NM"
3454
3455 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3456 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3457 LN_S=$as_ln_s
3458 if test "$LN_S" = "ln -s"; then
3459   echo "$as_me:$LINENO: result: yes" >&5
3460 echo "${ECHO_T}yes" >&6
3461 else
3462   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3463 echo "${ECHO_T}no, using $LN_S" >&6
3464 fi
3465
3466 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3467 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3468 if test "${lt_cv_deplibs_check_method+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   lt_cv_file_magic_cmd='$MAGIC_CMD'
3472 lt_cv_file_magic_test_file=
3473 lt_cv_deplibs_check_method='unknown'
3474 # Need to set the preceding variable on all platforms that support
3475 # interlibrary dependencies.
3476 # 'none' -- dependencies not supported.
3477 # `unknown' -- same as none, but documents that we really don't know.
3478 # 'pass_all' -- all dependencies passed with no checks.
3479 # 'test_compile' -- check by making test program.
3480 # 'file_magic [[regex]]' -- check by looking for files in library path
3481 # which responds to the $file_magic_cmd with a given extended regex.
3482 # If you have `file' or equivalent on your system and you're not sure
3483 # whether `pass_all' will *always* work, you probably want this one.
3484
3485 case $host_os in
3486 aix4* | aix5*)
3487   lt_cv_deplibs_check_method=pass_all
3488   ;;
3489
3490 beos*)
3491   lt_cv_deplibs_check_method=pass_all
3492   ;;
3493
3494 bsdi4*)
3495   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3496   lt_cv_file_magic_cmd='/usr/bin/file -L'
3497   lt_cv_file_magic_test_file=/shlib/libc.so
3498   ;;
3499
3500 cygwin*)
3501   # win32_libid is a shell function defined in ltmain.sh
3502   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3503   lt_cv_file_magic_cmd='win32_libid'
3504   ;;
3505
3506 mingw* | pw32*)
3507   # Base MSYS/MinGW do not provide the 'file' command needed by
3508   # win32_libid shell function, so use a weaker test based on 'objdump'.
3509   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3510   lt_cv_file_magic_cmd='$OBJDUMP -f'
3511   ;;
3512
3513 darwin* | rhapsody*)
3514   lt_cv_deplibs_check_method=pass_all
3515   ;;
3516
3517 freebsd* | kfreebsd*-gnu)
3518   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3519     case $host_cpu in
3520     i*86 )
3521       # Not sure whether the presence of OpenBSD here was a mistake.
3522       # Let's accept both of them until this is cleared up.
3523       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3524       lt_cv_file_magic_cmd=/usr/bin/file
3525       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3526       ;;
3527     esac
3528   else
3529     lt_cv_deplibs_check_method=pass_all
3530   fi
3531   ;;
3532
3533 gnu*)
3534   lt_cv_deplibs_check_method=pass_all
3535   ;;
3536
3537 hpux10.20* | hpux11*)
3538   lt_cv_file_magic_cmd=/usr/bin/file
3539   case "$host_cpu" in
3540   ia64*)
3541     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3542     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3543     ;;
3544   hppa*64*)
3545     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]'
3546     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3547     ;;
3548   *)
3549     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3550     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3551     ;;
3552   esac
3553   ;;
3554
3555 irix5* | irix6* | nonstopux*)
3556   case $LD in
3557   *-32|*"-32 ") libmagic=32-bit;;
3558   *-n32|*"-n32 ") libmagic=N32;;
3559   *-64|*"-64 ") libmagic=64-bit;;
3560   *) libmagic=never-match;;
3561   esac
3562   lt_cv_deplibs_check_method=pass_all
3563   ;;
3564
3565 # This must be Linux ELF.
3566 linux*)
3567   lt_cv_deplibs_check_method=pass_all
3568   ;;
3569
3570 netbsd* | knetbsd*-gnu)
3571   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3573   else
3574     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3575   fi
3576   ;;
3577
3578 newos6*)
3579   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3580   lt_cv_file_magic_cmd=/usr/bin/file
3581   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3582   ;;
3583
3584 nto-qnx*)
3585   lt_cv_deplibs_check_method=unknown
3586   ;;
3587
3588 openbsd*)
3589   lt_cv_file_magic_cmd=/usr/bin/file
3590   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3591   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3592     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3593   else
3594     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3595   fi
3596   ;;
3597
3598 osf3* | osf4* | osf5*)
3599   lt_cv_deplibs_check_method=pass_all
3600   ;;
3601
3602 sco3.2v5*)
3603   lt_cv_deplibs_check_method=pass_all
3604   ;;
3605
3606 solaris*)
3607   lt_cv_deplibs_check_method=pass_all
3608   ;;
3609
3610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3611   case $host_vendor in
3612   motorola)
3613     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]'
3614     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3615     ;;
3616   ncr)
3617     lt_cv_deplibs_check_method=pass_all
3618     ;;
3619   sequent)
3620     lt_cv_file_magic_cmd='/bin/file'
3621     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3622     ;;
3623   sni)
3624     lt_cv_file_magic_cmd='/bin/file'
3625     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3626     lt_cv_file_magic_test_file=/lib/libc.so
3627     ;;
3628   siemens)
3629     lt_cv_deplibs_check_method=pass_all
3630     ;;
3631   esac
3632   ;;
3633
3634 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3635   lt_cv_deplibs_check_method=pass_all
3636   ;;
3637 esac
3638
3639 fi
3640 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3641 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3642 file_magic_cmd=$lt_cv_file_magic_cmd
3643 deplibs_check_method=$lt_cv_deplibs_check_method
3644 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3645
3646
3647
3648
3649 # If no C compiler was specified, use CC.
3650 LTCC=${LTCC-"$CC"}
3651
3652 # Allow CC to be a program name with arguments.
3653 compiler=$CC
3654
3655
3656 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3657 if test "${enable_libtool_lock+set}" = set; then
3658   enableval="$enable_libtool_lock"
3659
3660 fi;
3661 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3662
3663 # Some flags need to be propagated to the compiler or linker for good
3664 # libtool support.
3665 case $host in
3666 ia64-*-hpux*)
3667   # Find out which ABI we are using.
3668   echo 'int i;' > conftest.$ac_ext
3669   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670   (eval $ac_compile) 2>&5
3671   ac_status=$?
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); }; then
3674     case `/usr/bin/file conftest.$ac_objext` in
3675     *ELF-32*)
3676       HPUX_IA64_MODE="32"
3677       ;;
3678     *ELF-64*)
3679       HPUX_IA64_MODE="64"
3680       ;;
3681     esac
3682   fi
3683   rm -rf conftest*
3684   ;;
3685 *-*-irix6*)
3686   # Find out which ABI we are using.
3687   echo '#line 3687 "configure"' > conftest.$ac_ext
3688   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689   (eval $ac_compile) 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; then
3693    if test "$lt_cv_prog_gnu_ld" = yes; then
3694     case `/usr/bin/file conftest.$ac_objext` in
3695     *32-bit*)
3696       LD="${LD-ld} -melf32bsmip"
3697       ;;
3698     *N32*)
3699       LD="${LD-ld} -melf32bmipn32"
3700       ;;
3701     *64-bit*)
3702       LD="${LD-ld} -melf64bmip"
3703       ;;
3704     esac
3705    else
3706     case `/usr/bin/file conftest.$ac_objext` in
3707     *32-bit*)
3708       LD="${LD-ld} -32"
3709       ;;
3710     *N32*)
3711       LD="${LD-ld} -n32"
3712       ;;
3713     *64-bit*)
3714       LD="${LD-ld} -64"
3715       ;;
3716     esac
3717    fi
3718   fi
3719   rm -rf conftest*
3720   ;;
3721
3722 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3723   # Find out which ABI we are using.
3724   echo 'int i;' > conftest.$ac_ext
3725   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726   (eval $ac_compile) 2>&5
3727   ac_status=$?
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); }; then
3730     case "`/usr/bin/file conftest.o`" in
3731     *32-bit*)
3732       case $host in
3733         x86_64-*linux*)
3734           LD="${LD-ld} -m elf_i386"
3735           ;;
3736         ppc64-*linux*|powerpc64-*linux*)
3737           LD="${LD-ld} -m elf32ppclinux"
3738           ;;
3739         s390x-*linux*)
3740           LD="${LD-ld} -m elf_s390"
3741           ;;
3742         sparc64-*linux*)
3743           LD="${LD-ld} -m elf32_sparc"
3744           ;;
3745       esac
3746       ;;
3747     *64-bit*)
3748       case $host in
3749         x86_64-*linux*)
3750           LD="${LD-ld} -m elf_x86_64"
3751           ;;
3752         ppc*-*linux*|powerpc*-*linux*)
3753           LD="${LD-ld} -m elf64ppc"
3754           ;;
3755         s390*-*linux*)
3756           LD="${LD-ld} -m elf64_s390"
3757           ;;
3758         sparc*-*linux*)
3759           LD="${LD-ld} -m elf64_sparc"
3760           ;;
3761       esac
3762       ;;
3763     esac
3764   fi
3765   rm -rf conftest*
3766   ;;
3767
3768 *-*-sco3.2v5*)
3769   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3770   SAVE_CFLAGS="$CFLAGS"
3771   CFLAGS="$CFLAGS -belf"
3772   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3773 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3774 if test "${lt_cv_cc_needs_belf+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783      cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800   (eval $ac_link) 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } &&
3807          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809   (eval $ac_try) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); }; } &&
3813          { ac_try='test -s conftest$ac_exeext'
3814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815   (eval $ac_try) 2>&5
3816   ac_status=$?
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); }; }; then
3819   lt_cv_cc_needs_belf=yes
3820 else
3821   echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 lt_cv_cc_needs_belf=no
3825 fi
3826 rm -f conftest.err conftest.$ac_objext \
3827       conftest$ac_exeext conftest.$ac_ext
3828      ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833
3834 fi
3835 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3836 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3837   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3838     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3839     CFLAGS="$SAVE_CFLAGS"
3840   fi
3841   ;;
3842
3843 esac
3844
3845 need_locks="$enable_libtool_lock"
3846
3847
3848 ac_ext=c
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3854 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3855 # On Suns, sometimes $CPP names a directory.
3856 if test -n "$CPP" && test -d "$CPP"; then
3857   CPP=
3858 fi
3859 if test -z "$CPP"; then
3860   if test "${ac_cv_prog_CPP+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863       # Double quotes because CPP needs to be expanded
3864     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3865     do
3866       ac_preproc_ok=false
3867 for ac_c_preproc_warn_flag in '' yes
3868 do
3869   # Use a header file that comes with gcc, so configuring glibc
3870   # with a fresh cross-compiler works.
3871   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872   # <limits.h> exists even on freestanding compilers.
3873   # On the NeXT, cc -E runs the code through the compiler's parser,
3874   # not just through cpp. "Syntax error" is here to catch this case.
3875   cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881 #ifdef __STDC__
3882 # include <limits.h>
3883 #else
3884 # include <assert.h>
3885 #endif
3886                      Syntax error
3887 _ACEOF
3888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3889   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3890   ac_status=$?
3891   grep -v '^ *+' conftest.er1 >conftest.err
3892   rm -f conftest.er1
3893   cat conftest.err >&5
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); } >/dev/null; then
3896   if test -s conftest.err; then
3897     ac_cpp_err=$ac_c_preproc_warn_flag
3898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3899   else
3900     ac_cpp_err=
3901   fi
3902 else
3903   ac_cpp_err=yes
3904 fi
3905 if test -z "$ac_cpp_err"; then
3906   :
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911   # Broken: fails on valid input.
3912 continue
3913 fi
3914 rm -f conftest.err conftest.$ac_ext
3915
3916   # OK, works on sane cases.  Now check whether non-existent headers
3917   # can be detected and how.
3918   cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924 #include <ac_nonexistent.h>
3925 _ACEOF
3926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3928   ac_status=$?
3929   grep -v '^ *+' conftest.er1 >conftest.err
3930   rm -f conftest.er1
3931   cat conftest.err >&5
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); } >/dev/null; then
3934   if test -s conftest.err; then
3935     ac_cpp_err=$ac_c_preproc_warn_flag
3936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3937   else
3938     ac_cpp_err=
3939   fi
3940 else
3941   ac_cpp_err=yes
3942 fi
3943 if test -z "$ac_cpp_err"; then
3944   # Broken: success on invalid input.
3945 continue
3946 else
3947   echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950   # Passes both tests.
3951 ac_preproc_ok=:
3952 break
3953 fi
3954 rm -f conftest.err conftest.$ac_ext
3955
3956 done
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3960   break
3961 fi
3962
3963     done
3964     ac_cv_prog_CPP=$CPP
3965
3966 fi
3967   CPP=$ac_cv_prog_CPP
3968 else
3969   ac_cv_prog_CPP=$CPP
3970 fi
3971 echo "$as_me:$LINENO: result: $CPP" >&5
3972 echo "${ECHO_T}$CPP" >&6
3973 ac_preproc_ok=false
3974 for ac_c_preproc_warn_flag in '' yes
3975 do
3976   # Use a header file that comes with gcc, so configuring glibc
3977   # with a fresh cross-compiler works.
3978   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979   # <limits.h> exists even on freestanding compilers.
3980   # On the NeXT, cc -E runs the code through the compiler's parser,
3981   # not just through cpp. "Syntax error" is here to catch this case.
3982   cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h.  */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h.  */
3988 #ifdef __STDC__
3989 # include <limits.h>
3990 #else
3991 # include <assert.h>
3992 #endif
3993                      Syntax error
3994 _ACEOF
3995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3997   ac_status=$?
3998   grep -v '^ *+' conftest.er1 >conftest.err
3999   rm -f conftest.er1
4000   cat conftest.err >&5
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); } >/dev/null; then
4003   if test -s conftest.err; then
4004     ac_cpp_err=$ac_c_preproc_warn_flag
4005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4006   else
4007     ac_cpp_err=
4008   fi
4009 else
4010   ac_cpp_err=yes
4011 fi
4012 if test -z "$ac_cpp_err"; then
4013   :
4014 else
4015   echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4017
4018   # Broken: fails on valid input.
4019 continue
4020 fi
4021 rm -f conftest.err conftest.$ac_ext
4022
4023   # OK, works on sane cases.  Now check whether non-existent headers
4024   # can be detected and how.
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031 #include <ac_nonexistent.h>
4032 _ACEOF
4033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4035   ac_status=$?
4036   grep -v '^ *+' conftest.er1 >conftest.err
4037   rm -f conftest.er1
4038   cat conftest.err >&5
4039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040   (exit $ac_status); } >/dev/null; then
4041   if test -s conftest.err; then
4042     ac_cpp_err=$ac_c_preproc_warn_flag
4043     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4044   else
4045     ac_cpp_err=
4046   fi
4047 else
4048   ac_cpp_err=yes
4049 fi
4050 if test -z "$ac_cpp_err"; then
4051   # Broken: success on invalid input.
4052 continue
4053 else
4054   echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4056
4057   # Passes both tests.
4058 ac_preproc_ok=:
4059 break
4060 fi
4061 rm -f conftest.err conftest.$ac_ext
4062
4063 done
4064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065 rm -f conftest.err conftest.$ac_ext
4066 if $ac_preproc_ok; then
4067   :
4068 else
4069   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4070 See \`config.log' for more details." >&5
4071 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4072 See \`config.log' for more details." >&2;}
4073    { (exit 1); exit 1; }; }
4074 fi
4075
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081
4082
4083 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4085 if test "${ac_cv_header_stdc+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h.  */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h.  */
4094 #include <stdlib.h>
4095 #include <stdarg.h>
4096 #include <string.h>
4097 #include <float.h>
4098
4099 int
4100 main ()
4101 {
4102
4103   ;
4104   return 0;
4105 }
4106 _ACEOF
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109   (eval $ac_compile) 2>conftest.er1
4110   ac_status=$?
4111   grep -v '^ *+' conftest.er1 >conftest.err
4112   rm -f conftest.er1
4113   cat conftest.err >&5
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); } &&
4116          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118   (eval $ac_try) 2>&5
4119   ac_status=$?
4120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121   (exit $ac_status); }; } &&
4122          { ac_try='test -s conftest.$ac_objext'
4123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124   (eval $ac_try) 2>&5
4125   ac_status=$?
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); }; }; then
4128   ac_cv_header_stdc=yes
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133 ac_cv_header_stdc=no
4134 fi
4135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136
4137 if test $ac_cv_header_stdc = yes; then
4138   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4139   cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 #include <string.h>
4146
4147 _ACEOF
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149   $EGREP "memchr" >/dev/null 2>&1; then
4150   :
4151 else
4152   ac_cv_header_stdc=no
4153 fi
4154 rm -f conftest*
4155
4156 fi
4157
4158 if test $ac_cv_header_stdc = yes; then
4159   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4160   cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #include <stdlib.h>
4167
4168 _ACEOF
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170   $EGREP "free" >/dev/null 2>&1; then
4171   :
4172 else
4173   ac_cv_header_stdc=no
4174 fi
4175 rm -f conftest*
4176
4177 fi
4178
4179 if test $ac_cv_header_stdc = yes; then
4180   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4181   if test "$cross_compiling" = yes; then
4182   :
4183 else
4184   cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h.  */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h.  */
4190 #include <ctype.h>
4191 #if ((' ' & 0x0FF) == 0x020)
4192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4194 #else
4195 # define ISLOWER(c) \
4196                    (('a' <= (c) && (c) <= 'i') \
4197                      || ('j' <= (c) && (c) <= 'r') \
4198                      || ('s' <= (c) && (c) <= 'z'))
4199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4200 #endif
4201
4202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4203 int
4204 main ()
4205 {
4206   int i;
4207   for (i = 0; i < 256; i++)
4208     if (XOR (islower (i), ISLOWER (i))
4209         || toupper (i) != TOUPPER (i))
4210       exit(2);
4211   exit (0);
4212 }
4213 _ACEOF
4214 rm -f conftest$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216   (eval $ac_link) 2>&5
4217   ac_status=$?
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221   (eval $ac_try) 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); }; }; then
4225   :
4226 else
4227   echo "$as_me: program exited with status $ac_status" >&5
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 ( exit $ac_status )
4232 ac_cv_header_stdc=no
4233 fi
4234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4235 fi
4236 fi
4237 fi
4238 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4239 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4240 if test $ac_cv_header_stdc = yes; then
4241
4242 cat >>confdefs.h <<\_ACEOF
4243 #define STDC_HEADERS 1
4244 _ACEOF
4245
4246 fi
4247
4248 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4259                   inttypes.h stdint.h unistd.h
4260 do
4261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4262 echo "$as_me:$LINENO: checking for $ac_header" >&5
4263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 $ac_includes_default
4274
4275 #include <$ac_header>
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279   (eval $ac_compile) 2>conftest.er1
4280   ac_status=$?
4281   grep -v '^ *+' conftest.er1 >conftest.err
4282   rm -f conftest.er1
4283   cat conftest.err >&5
4284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285   (exit $ac_status); } &&
4286          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288   (eval $ac_try) 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; } &&
4292          { ac_try='test -s conftest.$ac_objext'
4293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294   (eval $ac_try) 2>&5
4295   ac_status=$?
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); }; }; then
4298   eval "$as_ac_Header=yes"
4299 else
4300   echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4302
4303 eval "$as_ac_Header=no"
4304 fi
4305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4306 fi
4307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310   cat >>confdefs.h <<_ACEOF
4311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4312 _ACEOF
4313
4314 fi
4315
4316 done
4317
4318
4319
4320 for ac_header in dlfcn.h
4321 do
4322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324   echo "$as_me:$LINENO: checking for $ac_header" >&5
4325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 fi
4329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4331 else
4332   # Is the header compilable?
4333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 $ac_includes_default
4342 #include <$ac_header>
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346   (eval $ac_compile) 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; } &&
4359          { ac_try='test -s conftest.$ac_objext'
4360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361   (eval $ac_try) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   ac_header_compiler=yes
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 ac_header_compiler=no
4371 fi
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4374 echo "${ECHO_T}$ac_header_compiler" >&6
4375
4376 # Is the header present?
4377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385 #include <$ac_header>
4386 _ACEOF
4387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4388   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } >/dev/null; then
4395   if test -s conftest.err; then
4396     ac_cpp_err=$ac_c_preproc_warn_flag
4397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4398   else
4399     ac_cpp_err=
4400   fi
4401 else
4402   ac_cpp_err=yes
4403 fi
4404 if test -z "$ac_cpp_err"; then
4405   ac_header_preproc=yes
4406 else
4407   echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410   ac_header_preproc=no
4411 fi
4412 rm -f conftest.err conftest.$ac_ext
4413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4414 echo "${ECHO_T}$ac_header_preproc" >&6
4415
4416 # So?  What about this header?
4417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4418   yes:no: )
4419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4423     ac_header_preproc=yes
4424     ;;
4425   no:yes:* )
4426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4428     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4429 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4430     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4432     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4433 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4436     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4438     (
4439       cat <<\_ASBOX
4440 ## ----------------------------------------- ##
4441 ## Report this to martin.quinson@ens-lyon.fr ##
4442 ## ----------------------------------------- ##
4443 _ASBOX
4444     ) |
4445       sed "s/^/$as_me: WARNING:     /" >&2
4446     ;;
4447 esac
4448 echo "$as_me:$LINENO: checking for $ac_header" >&5
4449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4451   echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453   eval "$as_ac_Header=\$ac_header_preproc"
4454 fi
4455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4457
4458 fi
4459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4460   cat >>confdefs.h <<_ACEOF
4461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4462 _ACEOF
4463
4464 fi
4465
4466 done
4467
4468 ac_ext=cc
4469 ac_cpp='$CXXCPP $CPPFLAGS'
4470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4473 if test -n "$ac_tool_prefix"; then
4474   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4475   do
4476     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_CXX+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   if test -n "$CXX"; then
4484   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499
4500 fi
4501 fi
4502 CXX=$ac_cv_prog_CXX
4503 if test -n "$CXX"; then
4504   echo "$as_me:$LINENO: result: $CXX" >&5
4505 echo "${ECHO_T}$CXX" >&6
4506 else
4507   echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6
4509 fi
4510
4511     test -n "$CXX" && break
4512   done
4513 fi
4514 if test -z "$CXX"; then
4515   ac_ct_CXX=$CXX
4516   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4517 do
4518   # Extract the first word of "$ac_prog", so it can be a program name with args.
4519 set dummy $ac_prog; ac_word=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4523   echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525   if test -n "$ac_ct_CXX"; then
4526   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533   for ac_exec_ext in '' $ac_executable_extensions; do
4534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535     ac_cv_prog_ac_ct_CXX="$ac_prog"
4536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540 done
4541
4542 fi
4543 fi
4544 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4545 if test -n "$ac_ct_CXX"; then
4546   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4547 echo "${ECHO_T}$ac_ct_CXX" >&6
4548 else
4549   echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4551 fi
4552
4553   test -n "$ac_ct_CXX" && break
4554 done
4555 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4556
4557   CXX=$ac_ct_CXX
4558 fi
4559
4560
4561 # Provide some information about the compiler.
4562 echo "$as_me:$LINENO:" \
4563      "checking for C++ compiler version" >&5
4564 ac_compiler=`set X $ac_compile; echo $2`
4565 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4566   (eval $ac_compiler --version </dev/null >&5) 2>&5
4567   ac_status=$?
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); }
4570 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4571   (eval $ac_compiler -v </dev/null >&5) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }
4575 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4576   (eval $ac_compiler -V </dev/null >&5) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }
4580
4581 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4582 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4583 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4584   echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586   cat >conftest.$ac_ext <<_ACEOF
4587 /* confdefs.h.  */
4588 _ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h.  */
4592
4593 int
4594 main ()
4595 {
4596 #ifndef __GNUC__
4597        choke me
4598 #endif
4599
4600   ;
4601   return 0;
4602 }
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606   (eval $ac_compile) 2>conftest.er1
4607   ac_status=$?
4608   grep -v '^ *+' conftest.er1 >conftest.err
4609   rm -f conftest.er1
4610   cat conftest.err >&5
4611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612   (exit $ac_status); } &&
4613          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615   (eval $ac_try) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; } &&
4619          { ac_try='test -s conftest.$ac_objext'
4620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621   (eval $ac_try) 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; }; then
4625   ac_compiler_gnu=yes
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ac_compiler_gnu=no
4631 fi
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4634
4635 fi
4636 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4637 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4638 GXX=`test $ac_compiler_gnu = yes && echo yes`
4639 ac_test_CXXFLAGS=${CXXFLAGS+set}
4640 ac_save_CXXFLAGS=$CXXFLAGS
4641 CXXFLAGS="-g"
4642 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4643 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4644 if test "${ac_cv_prog_cxx_g+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h.  */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h.  */
4653
4654 int
4655 main ()
4656 {
4657
4658   ;
4659   return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664   (eval $ac_compile) 2>conftest.er1
4665   ac_status=$?
4666   grep -v '^ *+' conftest.er1 >conftest.err
4667   rm -f conftest.er1
4668   cat conftest.err >&5
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } &&
4671          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673   (eval $ac_try) 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); }; } &&
4677          { ac_try='test -s conftest.$ac_objext'
4678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679   (eval $ac_try) 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; }; then
4683   ac_cv_prog_cxx_g=yes
4684 else
4685   echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4687
4688 ac_cv_prog_cxx_g=no
4689 fi
4690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4691 fi
4692 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4693 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4694 if test "$ac_test_CXXFLAGS" = set; then
4695   CXXFLAGS=$ac_save_CXXFLAGS
4696 elif test $ac_cv_prog_cxx_g = yes; then
4697   if test "$GXX" = yes; then
4698     CXXFLAGS="-g -O2"
4699   else
4700     CXXFLAGS="-g"
4701   fi
4702 else
4703   if test "$GXX" = yes; then
4704     CXXFLAGS="-O2"
4705   else
4706     CXXFLAGS=
4707   fi
4708 fi
4709 for ac_declaration in \
4710    '' \
4711    'extern "C" void std::exit (int) throw (); using std::exit;' \
4712    'extern "C" void std::exit (int); using std::exit;' \
4713    'extern "C" void exit (int) throw ();' \
4714    'extern "C" void exit (int);' \
4715    'void exit (int);'
4716 do
4717   cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723 $ac_declaration
4724 #include <stdlib.h>
4725 int
4726 main ()
4727 {
4728 exit (42);
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735   (eval $ac_compile) 2>conftest.er1
4736   ac_status=$?
4737   grep -v '^ *+' conftest.er1 >conftest.err
4738   rm -f conftest.er1
4739   cat conftest.err >&5
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744   (eval $ac_try) 2>&5
4745   ac_status=$?
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); }; } &&
4748          { ac_try='test -s conftest.$ac_objext'
4749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750   (eval $ac_try) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; }; then
4754   :
4755 else
4756   echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759 continue
4760 fi
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762   cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h.  */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h.  */
4768 $ac_declaration
4769 int
4770 main ()
4771 {
4772 exit (42);
4773   ;
4774   return 0;
4775 }
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779   (eval $ac_compile) 2>conftest.er1
4780   ac_status=$?
4781   grep -v '^ *+' conftest.er1 >conftest.err
4782   rm -f conftest.er1
4783   cat conftest.err >&5
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); } &&
4786          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788   (eval $ac_try) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); }; } &&
4792          { ac_try='test -s conftest.$ac_objext'
4793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794   (eval $ac_try) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); }; }; then
4798   break
4799 else
4800   echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803 fi
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 done
4806 rm -f conftest*
4807 if test -n "$ac_declaration"; then
4808   echo '#ifdef __cplusplus' >>confdefs.h
4809   echo $ac_declaration      >>confdefs.h
4810   echo '#endif'             >>confdefs.h
4811 fi
4812
4813 ac_ext=cc
4814 ac_cpp='$CXXCPP $CPPFLAGS'
4815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4818
4819 depcc="$CXX"  am_compiler_list=
4820
4821 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4822 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4823 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 else
4826   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4827   # We make a subdir and do the tests there.  Otherwise we can end up
4828   # making bogus files that we don't know about and never remove.  For
4829   # instance it was reported that on HP-UX the gcc test will end up
4830   # making a dummy file named `D' -- because `-MD' means `put the output
4831   # in D'.
4832   mkdir conftest.dir
4833   # Copy depcomp to subdir because otherwise we won't find it if we're
4834   # using a relative directory.
4835   cp "$am_depcomp" conftest.dir
4836   cd conftest.dir
4837   # We will build objects and dependencies in a subdirectory because
4838   # it helps to detect inapplicable dependency modes.  For instance
4839   # both Tru64's cc and ICC support -MD to output dependencies as a
4840   # side effect of compilation, but ICC will put the dependencies in
4841   # the current directory while Tru64 will put them in the object
4842   # directory.
4843   mkdir sub
4844
4845   am_cv_CXX_dependencies_compiler_type=none
4846   if test "$am_compiler_list" = ""; then
4847      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4848   fi
4849   for depmode in $am_compiler_list; do
4850     # Setup a source with many dependencies, because some compilers
4851     # like to wrap large dependency lists on column 80 (with \), and
4852     # we should not choose a depcomp mode which is confused by this.
4853     #
4854     # We need to recreate these files for each test, as the compiler may
4855     # overwrite some of them when testing with obscure command lines.
4856     # This happens at least with the AIX C compiler.
4857     : > sub/conftest.c
4858     for i in 1 2 3 4 5 6; do
4859       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4860       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4861       # Solaris 8's {/usr,}/bin/sh.
4862       touch sub/conftst$i.h
4863     done
4864     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4865
4866     case $depmode in
4867     nosideeffect)
4868       # after this tag, mechanisms are not by side-effect, so they'll
4869       # only be used when explicitly requested
4870       if test "x$enable_dependency_tracking" = xyes; then
4871         continue
4872       else
4873         break
4874       fi
4875       ;;
4876     none) break ;;
4877     esac
4878     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4879     # mode.  It turns out that the SunPro C++ compiler does not properly
4880     # handle `-M -o', and we need to detect this.
4881     if depmode=$depmode \
4882        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4883        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4884        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4885          >/dev/null 2>conftest.err &&
4886        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4887        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4888        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4889       # icc doesn't choke on unknown options, it will just issue warnings
4890       # (even with -Werror).  So we grep stderr for any message
4891       # that says an option was ignored.
4892       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4893         am_cv_CXX_dependencies_compiler_type=$depmode
4894         break
4895       fi
4896     fi
4897   done
4898
4899   cd ..
4900   rm -rf conftest.dir
4901 else
4902   am_cv_CXX_dependencies_compiler_type=none
4903 fi
4904
4905 fi
4906 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4907 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4908 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4909
4910
4911
4912 if
4913   test "x$enable_dependency_tracking" != xno \
4914   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4915   am__fastdepCXX_TRUE=
4916   am__fastdepCXX_FALSE='#'
4917 else
4918   am__fastdepCXX_TRUE='#'
4919   am__fastdepCXX_FALSE=
4920 fi
4921
4922
4923 ac_ext=cc
4924 ac_cpp='$CXXCPP $CPPFLAGS'
4925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4928 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4929 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4930 if test -z "$CXXCPP"; then
4931   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934       # Double quotes because CXXCPP needs to be expanded
4935     for CXXCPP in "$CXX -E" "/lib/cpp"
4936     do
4937       ac_preproc_ok=false
4938 for ac_cxx_preproc_warn_flag in '' yes
4939 do
4940   # Use a header file that comes with gcc, so configuring glibc
4941   # with a fresh cross-compiler works.
4942   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4943   # <limits.h> exists even on freestanding compilers.
4944   # On the NeXT, cc -E runs the code through the compiler's parser,
4945   # not just through cpp. "Syntax error" is here to catch this case.
4946   cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952 #ifdef __STDC__
4953 # include <limits.h>
4954 #else
4955 # include <assert.h>
4956 #endif
4957                      Syntax error
4958 _ACEOF
4959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } >/dev/null; then
4967   if test -s conftest.err; then
4968     ac_cpp_err=$ac_cxx_preproc_warn_flag
4969     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4970   else
4971     ac_cpp_err=
4972   fi
4973 else
4974   ac_cpp_err=yes
4975 fi
4976 if test -z "$ac_cpp_err"; then
4977   :
4978 else
4979   echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4981
4982   # Broken: fails on valid input.
4983 continue
4984 fi
4985 rm -f conftest.err conftest.$ac_ext
4986
4987   # OK, works on sane cases.  Now check whether non-existent headers
4988   # can be detected and how.
4989   cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h.  */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h.  */
4995 #include <ac_nonexistent.h>
4996 _ACEOF
4997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } >/dev/null; then
5005   if test -s conftest.err; then
5006     ac_cpp_err=$ac_cxx_preproc_warn_flag
5007     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5008   else
5009     ac_cpp_err=
5010   fi
5011 else
5012   ac_cpp_err=yes
5013 fi
5014 if test -z "$ac_cpp_err"; then
5015   # Broken: success on invalid input.
5016 continue
5017 else
5018   echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021   # Passes both tests.
5022 ac_preproc_ok=:
5023 break
5024 fi
5025 rm -f conftest.err conftest.$ac_ext
5026
5027 done
5028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5029 rm -f conftest.err conftest.$ac_ext
5030 if $ac_preproc_ok; then
5031   break
5032 fi
5033
5034     done
5035     ac_cv_prog_CXXCPP=$CXXCPP
5036
5037 fi
5038   CXXCPP=$ac_cv_prog_CXXCPP
5039 else
5040   ac_cv_prog_CXXCPP=$CXXCPP
5041 fi
5042 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5043 echo "${ECHO_T}$CXXCPP" >&6
5044 ac_preproc_ok=false
5045 for ac_cxx_preproc_warn_flag in '' yes
5046 do
5047   # Use a header file that comes with gcc, so configuring glibc
5048   # with a fresh cross-compiler works.
5049   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5050   # <limits.h> exists even on freestanding compilers.
5051   # On the NeXT, cc -E runs the code through the compiler's parser,
5052   # not just through cpp. "Syntax error" is here to catch this case.
5053   cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h.  */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h.  */
5059 #ifdef __STDC__
5060 # include <limits.h>
5061 #else
5062 # include <assert.h>
5063 #endif
5064                      Syntax error
5065 _ACEOF
5066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5068   ac_status=$?
5069   grep -v '^ *+' conftest.er1 >conftest.err
5070   rm -f conftest.er1
5071   cat conftest.err >&5
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); } >/dev/null; then
5074   if test -s conftest.err; then
5075     ac_cpp_err=$ac_cxx_preproc_warn_flag
5076     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5077   else
5078     ac_cpp_err=
5079   fi
5080 else
5081   ac_cpp_err=yes
5082 fi
5083 if test -z "$ac_cpp_err"; then
5084   :
5085 else
5086   echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5088
5089   # Broken: fails on valid input.
5090 continue
5091 fi
5092 rm -f conftest.err conftest.$ac_ext
5093
5094   # OK, works on sane cases.  Now check whether non-existent headers
5095   # can be detected and how.
5096   cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h.  */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h.  */
5102 #include <ac_nonexistent.h>
5103 _ACEOF
5104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5106   ac_status=$?
5107   grep -v '^ *+' conftest.er1 >conftest.err
5108   rm -f conftest.er1
5109   cat conftest.err >&5
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); } >/dev/null; then
5112   if test -s conftest.err; then
5113     ac_cpp_err=$ac_cxx_preproc_warn_flag
5114     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5115   else
5116     ac_cpp_err=
5117   fi
5118 else
5119   ac_cpp_err=yes
5120 fi
5121 if test -z "$ac_cpp_err"; then
5122   # Broken: success on invalid input.
5123 continue
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128   # Passes both tests.
5129 ac_preproc_ok=:
5130 break
5131 fi
5132 rm -f conftest.err conftest.$ac_ext
5133
5134 done
5135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5136 rm -f conftest.err conftest.$ac_ext
5137 if $ac_preproc_ok; then
5138   :
5139 else
5140   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5141 See \`config.log' for more details." >&5
5142 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5143 See \`config.log' for more details." >&2;}
5144    { (exit 1); exit 1; }; }
5145 fi
5146
5147 ac_ext=cc
5148 ac_cpp='$CXXCPP $CPPFLAGS'
5149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5152
5153
5154 ac_ext=f
5155 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5156 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5158 if test -n "$ac_tool_prefix"; then
5159   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5160   do
5161     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5163 echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5165 if test "${ac_cv_prog_F77+set}" = set; then
5166   echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168   if test -n "$F77"; then
5169   ac_cv_prog_F77="$F77" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176   for ac_exec_ext in '' $ac_executable_extensions; do
5177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180     break 2
5181   fi
5182 done
5183 done
5184
5185 fi
5186 fi
5187 F77=$ac_cv_prog_F77
5188 if test -n "$F77"; then
5189   echo "$as_me:$LINENO: result: $F77" >&5
5190 echo "${ECHO_T}$F77" >&6
5191 else
5192   echo "$as_me:$LINENO: result: no" >&5
5193 echo "${ECHO_T}no" >&6
5194 fi
5195
5196     test -n "$F77" && break
5197   done
5198 fi
5199 if test -z "$F77"; then
5200   ac_ct_F77=$F77
5201   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5202 do
5203   # Extract the first word of "$ac_prog", so it can be a program name with args.
5204 set dummy $ac_prog; ac_word=$2
5205 echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5208   echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210   if test -n "$ac_ct_F77"; then
5211   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5215 do
5216   IFS=$as_save_IFS
5217   test -z "$as_dir" && as_dir=.
5218   for ac_exec_ext in '' $ac_executable_extensions; do
5219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220     ac_cv_prog_ac_ct_F77="$ac_prog"
5221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222     break 2
5223   fi
5224 done
5225 done
5226
5227 fi
5228 fi
5229 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5230 if test -n "$ac_ct_F77"; then
5231   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5232 echo "${ECHO_T}$ac_ct_F77" >&6
5233 else
5234   echo "$as_me:$LINENO: result: no" >&5
5235 echo "${ECHO_T}no" >&6
5236 fi
5237
5238   test -n "$ac_ct_F77" && break
5239 done
5240
5241   F77=$ac_ct_F77
5242 fi
5243
5244
5245 # Provide some information about the compiler.
5246 echo "$as_me:5246:" \
5247      "checking for Fortran 77 compiler version" >&5
5248 ac_compiler=`set X $ac_compile; echo $2`
5249 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5250   (eval $ac_compiler --version </dev/null >&5) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }
5254 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5255   (eval $ac_compiler -v </dev/null >&5) 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }
5259 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5260   (eval $ac_compiler -V </dev/null >&5) 2>&5
5261   ac_status=$?
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); }
5264 rm -f a.out
5265
5266 # If we don't use `.F' as extension, the preprocessor is not run on the
5267 # input file.  (Note that this only needs to work for GNU compilers.)
5268 ac_save_ext=$ac_ext
5269 ac_ext=F
5270 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5271 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5272 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5273   echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275   cat >conftest.$ac_ext <<_ACEOF
5276       program main
5277 #ifndef __GNUC__
5278        choke me
5279 #endif
5280
5281       end
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285   (eval $ac_compile) 2>conftest.er1
5286   ac_status=$?
5287   grep -v '^ *+' conftest.er1 >conftest.err
5288   rm -f conftest.er1
5289   cat conftest.err >&5
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); } &&
5292          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294   (eval $ac_try) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; } &&
5298          { ac_try='test -s conftest.$ac_objext'
5299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300   (eval $ac_try) 2>&5
5301   ac_status=$?
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); }; }; then
5304   ac_compiler_gnu=yes
5305 else
5306   echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309 ac_compiler_gnu=no
5310 fi
5311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5312 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5313
5314 fi
5315 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5316 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5317 ac_ext=$ac_save_ext
5318 ac_test_FFLAGS=${FFLAGS+set}
5319 ac_save_FFLAGS=$FFLAGS
5320 FFLAGS=
5321 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5322 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5323 if test "${ac_cv_prog_f77_g+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   FFLAGS=-g
5327 cat >conftest.$ac_ext <<_ACEOF
5328       program main
5329
5330       end
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334   (eval $ac_compile) 2>conftest.er1
5335   ac_status=$?
5336   grep -v '^ *+' conftest.er1 >conftest.err
5337   rm -f conftest.er1
5338   cat conftest.err >&5
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } &&
5341          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343   (eval $ac_try) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }; } &&
5347          { ac_try='test -s conftest.$ac_objext'
5348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349   (eval $ac_try) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); }; }; then
5353   ac_cv_prog_f77_g=yes
5354 else
5355   echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 ac_cv_prog_f77_g=no
5359 fi
5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5361
5362 fi
5363 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5364 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5365 if test "$ac_test_FFLAGS" = set; then
5366   FFLAGS=$ac_save_FFLAGS
5367 elif test $ac_cv_prog_f77_g = yes; then
5368   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5369     FFLAGS="-g -O2"
5370   else
5371     FFLAGS="-g"
5372   fi
5373 else
5374   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5375     FFLAGS="-O2"
5376   else
5377     FFLAGS=
5378   fi
5379 fi
5380
5381 G77=`test $ac_compiler_gnu = yes && echo yes`
5382 ac_ext=c
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388
5389
5390 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5391
5392 # find the maximum length of command line arguments
5393 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5394 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5395 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398     i=0
5399   testring="ABCD"
5400
5401   case $build_os in
5402   msdosdjgpp*)
5403     # On DJGPP, this test can blow up pretty badly due to problems in libc
5404     # (any single argument exceeding 2000 bytes causes a buffer overrun
5405     # during glob expansion).  Even if it were fixed, the result of this
5406     # check would be larger than it should be.
5407     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5408     ;;
5409
5410   gnu*)
5411     # Under GNU Hurd, this test is not required because there is
5412     # no limit to the length of command line arguments.
5413     # Libtool will interpret -1 as no limit whatsoever
5414     lt_cv_sys_max_cmd_len=-1;
5415     ;;
5416
5417   cygwin* | mingw*)
5418     # On Win9x/ME, this test blows up -- it succeeds, but takes
5419     # about 5 minutes as the teststring grows exponentially.
5420     # Worse, since 9x/ME are not pre-emptively multitasking,
5421     # you end up with a "frozen" computer, even though with patience
5422     # the test eventually succeeds (with a max line length of 256k).
5423     # Instead, let's just punt: use the minimum linelength reported by
5424     # all of the supported platforms: 8192 (on NT/2K/XP).
5425     lt_cv_sys_max_cmd_len=8192;
5426     ;;
5427
5428   amigaos*)
5429     # On AmigaOS with pdksh, this test takes hours, literally.
5430     # So we just punt and use a minimum line length of 8192.
5431     lt_cv_sys_max_cmd_len=8192;
5432     ;;
5433
5434  *)
5435     # If test is not a shell built-in, we'll probably end up computing a
5436     # maximum length that is only half of the actual maximum length, but
5437     # we can't tell.
5438     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5439                = "XX$testring") >/dev/null 2>&1 &&
5440             new_result=`expr "X$testring" : ".*" 2>&1` &&
5441             lt_cv_sys_max_cmd_len=$new_result &&
5442             test $i != 17 # 1/2 MB should be enough
5443     do
5444       i=`expr $i + 1`
5445       testring=$testring$testring
5446     done
5447     testring=
5448     # Add a significant safety factor because C++ compilers can tack on massive
5449     # amounts of additional arguments before passing them to the linker.
5450     # It appears as though 1/2 is a usable value.
5451     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5452     ;;
5453   esac
5454
5455 fi
5456
5457 if test -n $lt_cv_sys_max_cmd_len ; then
5458   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5459 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5460 else
5461   echo "$as_me:$LINENO: result: none" >&5
5462 echo "${ECHO_T}none" >&6
5463 fi
5464
5465
5466
5467
5468 # Check for command to grab the raw symbol name followed by C symbol from nm.
5469 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5470 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5471 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474
5475 # These are sane defaults that work on at least a few old systems.
5476 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5477
5478 # Character class describing NM global symbol codes.
5479 symcode='[BCDEGRST]'
5480
5481 # Regexp to match symbols that can be accessed directly from C.
5482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5483
5484 # Transform the above into a raw symbol and a C symbol.
5485 symxfrm='\1 \2\3 \3'
5486
5487 # Transform an extracted symbol line into a proper C declaration
5488 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5489
5490 # Transform an extracted symbol line into symbol name and symbol address
5491 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'"
5492
5493 # Define system-specific variables.
5494 case $host_os in
5495 aix*)
5496   symcode='[BCDT]'
5497   ;;
5498 cygwin* | mingw* | pw32*)
5499   symcode='[ABCDGISTW]'
5500   ;;
5501 hpux*) # Its linker distinguishes data from code symbols
5502   if test "$host_cpu" = ia64; then
5503     symcode='[ABCDEGRST]'
5504   fi
5505   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5506   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'"
5507   ;;
5508 irix* | nonstopux*)
5509   symcode='[BCDEGRST]'
5510   ;;
5511 osf*)
5512   symcode='[BCDEGQRST]'
5513   ;;
5514 solaris* | sysv5*)
5515   symcode='[BDRT]'
5516   ;;
5517 sysv4)
5518   symcode='[DFNSTU]'
5519   ;;
5520 esac
5521
5522 # Handle CRLF in mingw tool chain
5523 opt_cr=
5524 case $build_os in
5525 mingw*)
5526   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5527   ;;
5528 esac
5529
5530 # If we're using GNU nm, then use its standard symbol codes.
5531 case `$NM -V 2>&1` in
5532 *GNU* | *'with BFD'*)
5533   symcode='[ABCDGIRSTW]' ;;
5534 esac
5535
5536 # Try without a prefix undercore, then with it.
5537 for ac_symprfx in "" "_"; do
5538
5539   # Write the raw and C identifiers.
5540   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5541
5542   # Check to see that the pipe works correctly.
5543   pipe_works=no
5544
5545   rm -f conftest*
5546   cat > conftest.$ac_ext <<EOF
5547 #ifdef __cplusplus
5548 extern "C" {
5549 #endif
5550 char nm_test_var;
5551 void nm_test_func(){}
5552 #ifdef __cplusplus
5553 }
5554 #endif
5555 int main(){nm_test_var='a';nm_test_func();return(0);}
5556 EOF
5557
5558   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559   (eval $ac_compile) 2>&5
5560   ac_status=$?
5561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); }; then
5563     # Now try to grab the symbols.
5564     nlist=conftest.nm
5565     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5566   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5567   ac_status=$?
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); } && test -s "$nlist"; then
5570       # Try sorting and uniquifying the output.
5571       if sort "$nlist" | uniq > "$nlist"T; then
5572         mv -f "$nlist"T "$nlist"
5573       else
5574         rm -f "$nlist"T
5575       fi
5576
5577       # Make sure that we snagged all the symbols we need.
5578       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5579         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5580           cat <<EOF > conftest.$ac_ext
5581 #ifdef __cplusplus
5582 extern "C" {
5583 #endif
5584
5585 EOF
5586           # Now generate the symbol file.
5587           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5588
5589           cat <<EOF >> conftest.$ac_ext
5590 #if defined (__STDC__) && __STDC__
5591 # define lt_ptr_t void *
5592 #else
5593 # define lt_ptr_t char *
5594 # define const
5595 #endif
5596
5597 /* The mapping between symbol names and symbols. */
5598 const struct {
5599   const char *name;
5600   lt_ptr_t address;
5601 }
5602 lt_preloaded_symbols[] =
5603 {
5604 EOF
5605           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5606           cat <<\EOF >> conftest.$ac_ext
5607   {0, (lt_ptr_t) 0}
5608 };
5609
5610 #ifdef __cplusplus
5611 }
5612 #endif
5613 EOF
5614           # Now try linking the two files.
5615           mv conftest.$ac_objext conftstm.$ac_objext
5616           lt_save_LIBS="$LIBS"
5617           lt_save_CFLAGS="$CFLAGS"
5618           LIBS="conftstm.$ac_objext"
5619           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5620           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5621   (eval $ac_link) 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5625             pipe_works=yes
5626           fi
5627           LIBS="$lt_save_LIBS"
5628           CFLAGS="$lt_save_CFLAGS"
5629         else
5630           echo "cannot find nm_test_func in $nlist" >&5
5631         fi
5632       else
5633         echo "cannot find nm_test_var in $nlist" >&5
5634       fi
5635     else
5636       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5637     fi
5638   else
5639     echo "$progname: failed program was:" >&5
5640     cat conftest.$ac_ext >&5
5641   fi
5642   rm -f conftest* conftst*
5643
5644   # Do not use the global_symbol_pipe unless it works.
5645   if test "$pipe_works" = yes; then
5646     break
5647   else
5648     lt_cv_sys_global_symbol_pipe=
5649   fi
5650 done
5651
5652 fi
5653
5654 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5655   lt_cv_sys_global_symbol_to_cdecl=
5656 fi
5657 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5658   echo "$as_me:$LINENO: result: failed" >&5
5659 echo "${ECHO_T}failed" >&6
5660 else
5661   echo "$as_me:$LINENO: result: ok" >&5
5662 echo "${ECHO_T}ok" >&6
5663 fi
5664
5665 echo "$as_me:$LINENO: checking for objdir" >&5
5666 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5667 if test "${lt_cv_objdir+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   rm -f .libs 2>/dev/null
5671 mkdir .libs 2>/dev/null
5672 if test -d .libs; then
5673   lt_cv_objdir=.libs
5674 else
5675   # MS-DOS does not allow filenames that begin with a dot.
5676   lt_cv_objdir=_libs
5677 fi
5678 rmdir .libs 2>/dev/null
5679 fi
5680 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5681 echo "${ECHO_T}$lt_cv_objdir" >&6
5682 objdir=$lt_cv_objdir
5683
5684
5685
5686
5687
5688 case $host_os in
5689 aix3*)
5690   # AIX sometimes has problems with the GCC collect2 program.  For some
5691   # reason, if we set the COLLECT_NAMES environment variable, the problems
5692   # vanish in a puff of smoke.
5693   if test "X${COLLECT_NAMES+set}" != Xset; then
5694     COLLECT_NAMES=
5695     export COLLECT_NAMES
5696   fi
5697   ;;
5698 esac
5699
5700 # Sed substitution that helps us do robust quoting.  It backslashifies
5701 # metacharacters that are still active within double-quoted strings.
5702 Xsed='sed -e s/^X//'
5703 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5704
5705 # Same as above, but do not quote variable references.
5706 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5707
5708 # Sed substitution to delay expansion of an escaped shell variable in a
5709 # double_quote_subst'ed string.
5710 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5711
5712 # Sed substitution to avoid accidental globbing in evaled expressions
5713 no_glob_subst='s/\*/\\\*/g'
5714
5715 # Constants:
5716 rm="rm -f"
5717
5718 # Global variables:
5719 default_ofile=libtool
5720 can_build_shared=yes
5721
5722 # All known linkers require a `.a' archive for static linking (except M$VC,
5723 # which needs '.lib').
5724 libext=a
5725 ltmain="$ac_aux_dir/ltmain.sh"
5726 ofile="$default_ofile"
5727 with_gnu_ld="$lt_cv_prog_gnu_ld"
5728
5729 if test -n "$ac_tool_prefix"; then
5730   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}ar; ac_word=$2
5732 echo "$as_me:$LINENO: checking for $ac_word" >&5
5733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5734 if test "${ac_cv_prog_AR+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   if test -n "$AR"; then
5738   ac_cv_prog_AR="$AR" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745   for ac_exec_ext in '' $ac_executable_extensions; do
5746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747     ac_cv_prog_AR="${ac_tool_prefix}ar"
5748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752 done
5753
5754 fi
5755 fi
5756 AR=$ac_cv_prog_AR
5757 if test -n "$AR"; then
5758   echo "$as_me:$LINENO: result: $AR" >&5
5759 echo "${ECHO_T}$AR" >&6
5760 else
5761   echo "$as_me:$LINENO: result: no" >&5
5762 echo "${ECHO_T}no" >&6
5763 fi
5764
5765 fi
5766 if test -z "$ac_cv_prog_AR"; then
5767   ac_ct_AR=$AR
5768   # Extract the first word of "ar", so it can be a program name with args.
5769 set dummy ar; ac_word=$2
5770 echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5772 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   if test -n "$ac_ct_AR"; then
5776   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781   IFS=$as_save_IFS
5782   test -z "$as_dir" && as_dir=.
5783   for ac_exec_ext in '' $ac_executable_extensions; do
5784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785     ac_cv_prog_ac_ct_AR="ar"
5786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787     break 2
5788   fi
5789 done
5790 done
5791
5792   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5793 fi
5794 fi
5795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5796 if test -n "$ac_ct_AR"; then
5797   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5798 echo "${ECHO_T}$ac_ct_AR" >&6
5799 else
5800   echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6
5802 fi
5803
5804   AR=$ac_ct_AR
5805 else
5806   AR="$ac_cv_prog_AR"
5807 fi
5808
5809 if test -n "$ac_tool_prefix"; then
5810   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5812 echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814 if test "${ac_cv_prog_RANLIB+set}" = set; then
5815   echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817   if test -n "$RANLIB"; then
5818   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823   IFS=$as_save_IFS
5824   test -z "$as_dir" && as_dir=.
5825   for ac_exec_ext in '' $ac_executable_extensions; do
5826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829     break 2
5830   fi
5831 done
5832 done
5833
5834 fi
5835 fi
5836 RANLIB=$ac_cv_prog_RANLIB
5837 if test -n "$RANLIB"; then
5838   echo "$as_me:$LINENO: result: $RANLIB" >&5
5839 echo "${ECHO_T}$RANLIB" >&6
5840 else
5841   echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6
5843 fi
5844
5845 fi
5846 if test -z "$ac_cv_prog_RANLIB"; then
5847   ac_ct_RANLIB=$RANLIB
5848   # Extract the first word of "ranlib", so it can be a program name with args.
5849 set dummy ranlib; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   if test -n "$ac_ct_RANLIB"; then
5856   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865     ac_cv_prog_ac_ct_RANLIB="ranlib"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871
5872   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5873 fi
5874 fi
5875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5876 if test -n "$ac_ct_RANLIB"; then
5877   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5878 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5879 else
5880   echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5882 fi
5883
5884   RANLIB=$ac_ct_RANLIB
5885 else
5886   RANLIB="$ac_cv_prog_RANLIB"
5887 fi
5888
5889 if test -n "$ac_tool_prefix"; then
5890   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}strip; ac_word=$2
5892 echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894 if test "${ac_cv_prog_STRIP+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   if test -n "$STRIP"; then
5898   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913
5914 fi
5915 fi
5916 STRIP=$ac_cv_prog_STRIP
5917 if test -n "$STRIP"; then
5918   echo "$as_me:$LINENO: result: $STRIP" >&5
5919 echo "${ECHO_T}$STRIP" >&6
5920 else
5921   echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5923 fi
5924
5925 fi
5926 if test -z "$ac_cv_prog_STRIP"; then
5927   ac_ct_STRIP=$STRIP
5928   # Extract the first word of "strip", so it can be a program name with args.
5929 set dummy strip; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   if test -n "$ac_ct_STRIP"; then
5936   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941   IFS=$as_save_IFS
5942   test -z "$as_dir" && as_dir=.
5943   for ac_exec_ext in '' $ac_executable_extensions; do
5944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945     ac_cv_prog_ac_ct_STRIP="strip"
5946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947     break 2
5948   fi
5949 done
5950 done
5951
5952   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5953 fi
5954 fi
5955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5956 if test -n "$ac_ct_STRIP"; then
5957   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5958 echo "${ECHO_T}$ac_ct_STRIP" >&6
5959 else
5960   echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5962 fi
5963
5964   STRIP=$ac_ct_STRIP
5965 else
5966   STRIP="$ac_cv_prog_STRIP"
5967 fi
5968
5969
5970 old_CC="$CC"
5971 old_CFLAGS="$CFLAGS"
5972
5973 # Set sane defaults for various variables
5974 test -z "$AR" && AR=ar
5975 test -z "$AR_FLAGS" && AR_FLAGS=cru
5976 test -z "$AS" && AS=as
5977 test -z "$CC" && CC=cc
5978 test -z "$LTCC" && LTCC=$CC
5979 test -z "$DLLTOOL" && DLLTOOL=dlltool
5980 test -z "$LD" && LD=ld
5981 test -z "$LN_S" && LN_S="ln -s"
5982 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5983 test -z "$NM" && NM=nm
5984 test -z "$SED" && SED=sed
5985 test -z "$OBJDUMP" && OBJDUMP=objdump
5986 test -z "$RANLIB" && RANLIB=:
5987 test -z "$STRIP" && STRIP=:
5988 test -z "$ac_objext" && ac_objext=o
5989
5990 # Determine commands to create old-style static archives.
5991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5992 old_postinstall_cmds='chmod 644 $oldlib'
5993 old_postuninstall_cmds=
5994
5995 if test -n "$RANLIB"; then
5996   case $host_os in
5997   openbsd*)
5998     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5999     ;;
6000   *)
6001     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6002     ;;
6003   esac
6004   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6005 fi
6006
6007 # Only perform the check for file, if the check method requires it
6008 case $deplibs_check_method in
6009 file_magic*)
6010   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6011     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6012 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6013 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016   case $MAGIC_CMD in
6017 [\\/*] |  ?:[\\/]*)
6018   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6019   ;;
6020 *)
6021   lt_save_MAGIC_CMD="$MAGIC_CMD"
6022   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6023   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6024   for ac_dir in $ac_dummy; do
6025     IFS="$lt_save_ifs"
6026     test -z "$ac_dir" && ac_dir=.
6027     if test -f $ac_dir/${ac_tool_prefix}file; then
6028       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6029       if test -n "$file_magic_test_file"; then
6030         case $deplibs_check_method in
6031         "file_magic "*)
6032           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6033           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6034           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6035             $EGREP "$file_magic_regex" > /dev/null; then
6036             :
6037           else
6038             cat <<EOF 1>&2
6039
6040 *** Warning: the command libtool uses to detect shared libraries,
6041 *** $file_magic_cmd, produces output that libtool cannot recognize.
6042 *** The result is that libtool may fail to recognize shared libraries
6043 *** as such.  This will affect the creation of libtool libraries that
6044 *** depend on shared libraries, but programs linked with such libtool
6045 *** libraries will work regardless of this problem.  Nevertheless, you
6046 *** may want to report the problem to your system manager and/or to
6047 *** bug-libtool@gnu.org
6048
6049 EOF
6050           fi ;;
6051         esac
6052       fi
6053       break
6054     fi
6055   done
6056   IFS="$lt_save_ifs"
6057   MAGIC_CMD="$lt_save_MAGIC_CMD"
6058   ;;
6059 esac
6060 fi
6061
6062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6063 if test -n "$MAGIC_CMD"; then
6064   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6065 echo "${ECHO_T}$MAGIC_CMD" >&6
6066 else
6067   echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6
6069 fi
6070
6071 if test -z "$lt_cv_path_MAGIC_CMD"; then
6072   if test -n "$ac_tool_prefix"; then
6073     echo "$as_me:$LINENO: checking for file" >&5
6074 echo $ECHO_N "checking for file... $ECHO_C" >&6
6075 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   case $MAGIC_CMD in
6079 [\\/*] |  ?:[\\/]*)
6080   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6081   ;;
6082 *)
6083   lt_save_MAGIC_CMD="$MAGIC_CMD"
6084   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6085   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6086   for ac_dir in $ac_dummy; do
6087     IFS="$lt_save_ifs"
6088     test -z "$ac_dir" && ac_dir=.
6089     if test -f $ac_dir/file; then
6090       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6091       if test -n "$file_magic_test_file"; then
6092         case $deplibs_check_method in
6093         "file_magic "*)
6094           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6095           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6096           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6097             $EGREP "$file_magic_regex" > /dev/null; then
6098             :
6099           else
6100             cat <<EOF 1>&2
6101
6102 *** Warning: the command libtool uses to detect shared libraries,
6103 *** $file_magic_cmd, produces output that libtool cannot recognize.
6104 *** The result is that libtool may fail to recognize shared libraries
6105 *** as such.  This will affect the creation of libtool libraries that
6106 *** depend on shared libraries, but programs linked with such libtool
6107 *** libraries will work regardless of this problem.  Nevertheless, you
6108 *** may want to report the problem to your system manager and/or to
6109 *** bug-libtool@gnu.org
6110
6111 EOF
6112           fi ;;
6113         esac
6114       fi
6115       break
6116     fi
6117   done
6118   IFS="$lt_save_ifs"
6119   MAGIC_CMD="$lt_save_MAGIC_CMD"
6120   ;;
6121 esac
6122 fi
6123
6124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6125 if test -n "$MAGIC_CMD"; then
6126   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6127 echo "${ECHO_T}$MAGIC_CMD" >&6
6128 else
6129   echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6
6131 fi
6132
6133   else
6134     MAGIC_CMD=:
6135   fi
6136 fi
6137
6138   fi
6139   ;;
6140 esac
6141
6142 enable_dlopen=no
6143 enable_win32_dll=no
6144
6145 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6146 if test "${enable_libtool_lock+set}" = set; then
6147   enableval="$enable_libtool_lock"
6148
6149 fi;
6150 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6151
6152
6153 # Check whether --with-pic or --without-pic was given.
6154 if test "${with_pic+set}" = set; then
6155   withval="$with_pic"
6156   pic_mode="$withval"
6157 else
6158   pic_mode=default
6159 fi;
6160 test -z "$pic_mode" && pic_mode=default
6161
6162 # Use C for the default configuration in the libtool script
6163 tagname=
6164 lt_save_CC="$CC"
6165 ac_ext=c
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
6171
6172 # Source file extension for C test sources.
6173 ac_ext=c
6174
6175 # Object file extension for compiled C test sources.
6176 objext=o
6177 objext=$objext
6178
6179 # Code to be used in simple compile tests
6180 lt_simple_compile_test_code="int some_variable = 0;\n"
6181
6182 # Code to be used in simple link tests
6183 lt_simple_link_test_code='int main(){return(0);}\n'
6184
6185
6186 # If no C compiler was specified, use CC.
6187 LTCC=${LTCC-"$CC"}
6188
6189 # Allow CC to be a program name with arguments.
6190 compiler=$CC
6191
6192
6193 #
6194 # Check for any special shared library compilation flags.
6195 #
6196 lt_prog_cc_shlib=
6197 if test "$GCC" = no; then
6198   case $host_os in
6199   sco3.2v5*)
6200     lt_prog_cc_shlib='-belf'
6201     ;;
6202   esac
6203 fi
6204 if test -n "$lt_prog_cc_shlib"; then
6205   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6206 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6207   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6208   else
6209     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6210 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6211     lt_cv_prog_cc_can_build_shared=no
6212   fi
6213 fi
6214
6215
6216 #
6217 # Check to make sure the static flag actually works.
6218 #
6219 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6220 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6221 if test "${lt_prog_compiler_static_works+set}" = set; then
6222   echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224   lt_prog_compiler_static_works=no
6225    save_LDFLAGS="$LDFLAGS"
6226    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6227    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6228    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6229      # The compiler can only warn and ignore the option if not recognized
6230      # So say no if there are warnings
6231      if test -s conftest.err; then
6232        # Append any errors to the config.log.
6233        cat conftest.err 1>&5
6234      else
6235        lt_prog_compiler_static_works=yes
6236      fi
6237    fi
6238    $rm conftest*
6239    LDFLAGS="$save_LDFLAGS"
6240
6241 fi
6242 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6243 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6244
6245 if test x"$lt_prog_compiler_static_works" = xyes; then
6246     :
6247 else
6248     lt_prog_compiler_static=
6249 fi
6250
6251
6252
6253
6254 lt_prog_compiler_no_builtin_flag=
6255
6256 if test "$GCC" = yes; then
6257   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6258
6259
6260 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6261 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6262 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   lt_cv_prog_compiler_rtti_exceptions=no
6266   ac_outfile=conftest.$ac_objext
6267    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6268    lt_compiler_flag="-fno-rtti -fno-exceptions"
6269    # Insert the option either (1) after the last *FLAGS variable, or
6270    # (2) before a word containing "conftest.", or (3) at the end.
6271    # Note that $ac_compile itself does not contain backslashes and begins
6272    # with a dollar sign (not a hyphen), so the echo should work correctly.
6273    # The option is referenced via a variable to avoid confusing sed.
6274    lt_compile=`echo "$ac_compile" | $SED \
6275    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6277    -e 's:$: $lt_compiler_flag:'`
6278    (eval echo "\"\$as_me:6278: $lt_compile\"" >&5)
6279    (eval "$lt_compile" 2>conftest.err)
6280    ac_status=$?
6281    cat conftest.err >&5
6282    echo "$as_me:6282: \$? = $ac_status" >&5
6283    if (exit $ac_status) && test -s "$ac_outfile"; then
6284      # The compiler can only warn and ignore the option if not recognized
6285      # So say no if there are warnings
6286      if test ! -s conftest.err; then
6287        lt_cv_prog_compiler_rtti_exceptions=yes
6288      fi
6289    fi
6290    $rm conftest*
6291
6292 fi
6293 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6294 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6295
6296 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6297     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6298 else
6299     :
6300 fi
6301
6302 fi
6303
6304 lt_prog_compiler_wl=
6305 lt_prog_compiler_pic=
6306 lt_prog_compiler_static=
6307
6308 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6309 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6310
6311   if test "$GCC" = yes; then
6312     lt_prog_compiler_wl='-Wl,'
6313     lt_prog_compiler_static='-static'
6314
6315     case $host_os in
6316       aix*)
6317       # All AIX code is PIC.
6318       if test "$host_cpu" = ia64; then
6319         # AIX 5 now supports IA64 processor
6320         lt_prog_compiler_static='-Bstatic'
6321       fi
6322       ;;
6323
6324     amigaos*)
6325       # FIXME: we need at least 68020 code to build shared libraries, but
6326       # adding the `-m68020' flag to GCC prevents building anything better,
6327       # like `-m68040'.
6328       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6329       ;;
6330
6331     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6332       # PIC is the default for these OSes.
6333       ;;
6334
6335     mingw* | pw32* | os2*)
6336       # This hack is so that the source file can tell whether it is being
6337       # built for inclusion in a dll (and should export symbols for example).
6338       lt_prog_compiler_pic='-DDLL_EXPORT'
6339       ;;
6340
6341     darwin* | rhapsody*)
6342       # PIC is the default on this platform
6343       # Common symbols not allowed in MH_DYLIB files
6344       lt_prog_compiler_pic='-fno-common'
6345       ;;
6346
6347     msdosdjgpp*)
6348       # Just because we use GCC doesn't mean we suddenly get shared libraries
6349       # on systems that don't support them.
6350       lt_prog_compiler_can_build_shared=no
6351       enable_shared=no
6352       ;;
6353
6354     sysv4*MP*)
6355       if test -d /usr/nec; then
6356         lt_prog_compiler_pic=-Kconform_pic
6357       fi
6358       ;;
6359
6360     hpux*)
6361       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6362       # not for PA HP-UX.
6363       case "$host_cpu" in
6364       hppa*64*|ia64*)
6365         # +Z the default
6366         ;;
6367       *)
6368         lt_prog_compiler_pic='-fPIC'
6369         ;;
6370       esac
6371       ;;
6372
6373     *)
6374       lt_prog_compiler_pic='-fPIC'
6375       ;;
6376     esac
6377   else
6378     # PORTME Check for flag to pass linker flags through the system compiler.
6379     case $host_os in
6380     aix*)
6381       lt_prog_compiler_wl='-Wl,'
6382       if test "$host_cpu" = ia64; then
6383         # AIX 5 now supports IA64 processor
6384         lt_prog_compiler_static='-Bstatic'
6385       else
6386         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6387       fi
6388       ;;
6389
6390     mingw* | pw32* | os2*)
6391       # This hack is so that the source file can tell whether it is being
6392       # built for inclusion in a dll (and should export symbols for example).
6393       lt_prog_compiler_pic='-DDLL_EXPORT'
6394       ;;
6395
6396     hpux9* | hpux10* | hpux11*)
6397       lt_prog_compiler_wl='-Wl,'
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='+Z'
6406         ;;
6407       esac
6408       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6409       lt_prog_compiler_static='${wl}-a ${wl}archive'
6410       ;;
6411
6412     irix5* | irix6* | nonstopux*)
6413       lt_prog_compiler_wl='-Wl,'
6414       # PIC (with -KPIC) is the default.
6415       lt_prog_compiler_static='-non_shared'
6416       ;;
6417
6418     newsos6)
6419       lt_prog_compiler_pic='-KPIC'
6420       lt_prog_compiler_static='-Bstatic'
6421       ;;
6422
6423     linux*)
6424       case $CC in
6425       icc* | ecc*)
6426         lt_prog_compiler_wl='-Wl,'
6427         lt_prog_compiler_pic='-KPIC'
6428         lt_prog_compiler_static='-static'
6429         ;;
6430       ccc*)
6431         lt_prog_compiler_wl='-Wl,'
6432         # All Alpha code is PIC.
6433         lt_prog_compiler_static='-non_shared'
6434         ;;
6435       esac
6436       ;;
6437
6438     osf3* | osf4* | osf5*)
6439       lt_prog_compiler_wl='-Wl,'
6440       # All OSF/1 code is PIC.
6441       lt_prog_compiler_static='-non_shared'
6442       ;;
6443
6444     sco3.2v5*)
6445       lt_prog_compiler_pic='-Kpic'
6446       lt_prog_compiler_static='-dn'
6447       ;;
6448
6449     solaris*)
6450       lt_prog_compiler_wl='-Wl,'
6451       lt_prog_compiler_pic='-KPIC'
6452       lt_prog_compiler_static='-Bstatic'
6453       ;;
6454
6455     sunos4*)
6456       lt_prog_compiler_wl='-Qoption ld '
6457       lt_prog_compiler_pic='-PIC'
6458       lt_prog_compiler_static='-Bstatic'
6459       ;;
6460
6461     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6462       lt_prog_compiler_wl='-Wl,'
6463       lt_prog_compiler_pic='-KPIC'
6464       lt_prog_compiler_static='-Bstatic'
6465       ;;
6466
6467     sysv4*MP*)
6468       if test -d /usr/nec ;then
6469         lt_prog_compiler_pic='-Kconform_pic'
6470         lt_prog_compiler_static='-Bstatic'
6471       fi
6472       ;;
6473
6474     uts4*)
6475       lt_prog_compiler_pic='-pic'
6476       lt_prog_compiler_static='-Bstatic'
6477       ;;
6478
6479     *)
6480       lt_prog_compiler_can_build_shared=no
6481       ;;
6482     esac
6483   fi
6484
6485 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6486 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6487
6488 #
6489 # Check to make sure the PIC flag actually works.
6490 #
6491 if test -n "$lt_prog_compiler_pic"; then
6492
6493 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6495 if test "${lt_prog_compiler_pic_works+set}" = set; then
6496   echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498   lt_prog_compiler_pic_works=no
6499   ac_outfile=conftest.$ac_objext
6500    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6501    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6502    # Insert the option either (1) after the last *FLAGS variable, or
6503    # (2) before a word containing "conftest.", or (3) at the end.
6504    # Note that $ac_compile itself does not contain backslashes and begins
6505    # with a dollar sign (not a hyphen), so the echo should work correctly.
6506    # The option is referenced via a variable to avoid confusing sed.
6507    lt_compile=`echo "$ac_compile" | $SED \
6508    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6510    -e 's:$: $lt_compiler_flag:'`
6511    (eval echo "\"\$as_me:6511: $lt_compile\"" >&5)
6512    (eval "$lt_compile" 2>conftest.err)
6513    ac_status=$?
6514    cat conftest.err >&5
6515    echo "$as_me:6515: \$? = $ac_status" >&5
6516    if (exit $ac_status) && test -s "$ac_outfile"; then
6517      # The compiler can only warn and ignore the option if not recognized
6518      # So say no if there are warnings
6519      if test ! -s conftest.err; then
6520        lt_prog_compiler_pic_works=yes
6521      fi
6522    fi
6523    $rm conftest*
6524
6525 fi
6526 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6527 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6528
6529 if test x"$lt_prog_compiler_pic_works" = xyes; then
6530     case $lt_prog_compiler_pic in
6531      "" | " "*) ;;
6532      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6533      esac
6534 else
6535     lt_prog_compiler_pic=
6536      lt_prog_compiler_can_build_shared=no
6537 fi
6538
6539 fi
6540 case "$host_os" in
6541   # For platforms which do not support PIC, -DPIC is meaningless:
6542   *djgpp*)
6543     lt_prog_compiler_pic=
6544     ;;
6545   *)
6546     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6547     ;;
6548 esac
6549
6550 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6551 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6552 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   lt_cv_prog_compiler_c_o=no
6556    $rm -r conftest 2>/dev/null
6557    mkdir conftest
6558    cd conftest
6559    mkdir out
6560    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6561
6562    lt_compiler_flag="-o out/conftest2.$ac_objext"
6563    # Insert the option either (1) after the last *FLAGS variable, or
6564    # (2) before a word containing "conftest.", or (3) at the end.
6565    # Note that $ac_compile itself does not contain backslashes and begins
6566    # with a dollar sign (not a hyphen), so the echo should work correctly.
6567    lt_compile=`echo "$ac_compile" | $SED \
6568    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6569    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6570    -e 's:$: $lt_compiler_flag:'`
6571    (eval echo "\"\$as_me:6571: $lt_compile\"" >&5)
6572    (eval "$lt_compile" 2>out/conftest.err)
6573    ac_status=$?
6574    cat out/conftest.err >&5
6575    echo "$as_me:6575: \$? = $ac_status" >&5
6576    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6577    then
6578      # The compiler can only warn and ignore the option if not recognized
6579      # So say no if there are warnings
6580      if test ! -s out/conftest.err; then
6581        lt_cv_prog_compiler_c_o=yes
6582      fi
6583    fi
6584    chmod u+w .
6585    $rm conftest*
6586    # SGI C++ compiler will create directory out/ii_files/ for
6587    # template instantiation
6588    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6589    $rm out/* && rmdir out
6590    cd ..
6591    rmdir conftest
6592    $rm conftest*
6593
6594 fi
6595 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6597
6598
6599 hard_links="nottested"
6600 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6601   # do not overwrite the value of need_locks provided by the user
6602   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6604   hard_links=yes
6605   $rm conftest*
6606   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6607   touch conftest.a
6608   ln conftest.a conftest.b 2>&5 || hard_links=no
6609   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6610   echo "$as_me:$LINENO: result: $hard_links" >&5
6611 echo "${ECHO_T}$hard_links" >&6
6612   if test "$hard_links" = no; then
6613     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6615     need_locks=warn
6616   fi
6617 else
6618   need_locks=no
6619 fi
6620
6621 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6623
6624   runpath_var=
6625   allow_undefined_flag=
6626   enable_shared_with_static_runtimes=no
6627   archive_cmds=
6628   archive_expsym_cmds=
6629   old_archive_From_new_cmds=
6630   old_archive_from_expsyms_cmds=
6631   export_dynamic_flag_spec=
6632   whole_archive_flag_spec=
6633   thread_safe_flag_spec=
6634   hardcode_libdir_flag_spec=
6635   hardcode_libdir_flag_spec_ld=
6636   hardcode_libdir_separator=
6637   hardcode_direct=no
6638   hardcode_minus_L=no
6639   hardcode_shlibpath_var=unsupported
6640   link_all_deplibs=unknown
6641   hardcode_automatic=no
6642   module_cmds=
6643   module_expsym_cmds=
6644   always_export_symbols=no
6645   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6646   # include_expsyms should be a list of space-separated symbols to be *always*
6647   # included in the symbol list
6648   include_expsyms=
6649   # exclude_expsyms can be an extended regexp of symbols to exclude
6650   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6651   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6652   # as well as any symbol that contains `d'.
6653   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6654   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6655   # platforms (ab)use it in PIC code, but their linkers get confused if
6656   # the symbol is explicitly referenced.  Since portable code cannot
6657   # rely on this symbol name, it's probably fine to never include it in
6658   # preloaded symbol tables.
6659   extract_expsyms_cmds=
6660
6661   case $host_os in
6662   cygwin* | mingw* | pw32*)
6663     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6664     # When not using gcc, we currently assume that we are using
6665     # Microsoft Visual C++.
6666     if test "$GCC" != yes; then
6667       with_gnu_ld=no
6668     fi
6669     ;;
6670   openbsd*)
6671     with_gnu_ld=no
6672     ;;
6673   esac
6674
6675   ld_shlibs=yes
6676   if test "$with_gnu_ld" = yes; then
6677     # If archive_cmds runs LD, not CC, wlarc should be empty
6678     wlarc='${wl}'
6679
6680     # See if GNU ld supports shared libraries.
6681     case $host_os in
6682     aix3* | aix4* | aix5*)
6683       # On AIX/PPC, the GNU linker is very broken
6684       if test "$host_cpu" != ia64; then
6685         ld_shlibs=no
6686         cat <<EOF 1>&2
6687
6688 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6689 *** to be unable to reliably create shared libraries on AIX.
6690 *** Therefore, libtool is disabling shared libraries support.  If you
6691 *** really care for shared libraries, you may want to modify your PATH
6692 *** so that a non-GNU linker is found, and then restart.
6693
6694 EOF
6695       fi
6696       ;;
6697
6698     amigaos*)
6699       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)'
6700       hardcode_libdir_flag_spec='-L$libdir'
6701       hardcode_minus_L=yes
6702
6703       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6704       # that the semantics of dynamic libraries on AmigaOS, at least up
6705       # to version 4, is to share data among multiple programs linked
6706       # with the same dynamic library.  Since this doesn't match the
6707       # behavior of shared libraries on other platforms, we can't use
6708       # them.
6709       ld_shlibs=no
6710       ;;
6711
6712     beos*)
6713       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6714         allow_undefined_flag=unsupported
6715         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6716         # support --undefined.  This deserves some investigation.  FIXME
6717         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6718       else
6719         ld_shlibs=no
6720       fi
6721       ;;
6722
6723     cygwin* | mingw* | pw32*)
6724       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6725       # as there is no search path for DLLs.
6726       hardcode_libdir_flag_spec='-L$libdir'
6727       allow_undefined_flag=unsupported
6728       always_export_symbols=no
6729       enable_shared_with_static_runtimes=yes
6730       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6731
6732       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6733         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6734         # If the export-symbols file already is a .def file (1st line
6735         # is EXPORTS), use it as is; otherwise, prepend...
6736         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6737           cp $export_symbols $output_objdir/$soname.def;
6738         else
6739           echo EXPORTS > $output_objdir/$soname.def;
6740           cat $export_symbols >> $output_objdir/$soname.def;
6741         fi~
6742         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6743       else
6744         ld_shlibs=no
6745       fi
6746       ;;
6747
6748     netbsd* | knetbsd*-gnu)
6749       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6750         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6751         wlarc=
6752       else
6753         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6755       fi
6756       ;;
6757
6758     solaris* | sysv5*)
6759       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6760         ld_shlibs=no
6761         cat <<EOF 1>&2
6762
6763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6764 *** create shared libraries on Solaris systems.  Therefore, libtool
6765 *** is disabling shared libraries support.  We urge you to upgrade GNU
6766 *** binutils to release 2.9.1 or newer.  Another option is to modify
6767 *** your PATH or compiler configuration so that the native linker is
6768 *** used, and then restart.
6769
6770 EOF
6771       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6772         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6773         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6774       else
6775         ld_shlibs=no
6776       fi
6777       ;;
6778
6779     sunos4*)
6780       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6781       wlarc=
6782       hardcode_direct=yes
6783       hardcode_shlibpath_var=no
6784       ;;
6785
6786   linux*)
6787     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6788         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6789         archive_cmds="$tmp_archive_cmds"
6790       supports_anon_versioning=no
6791       case `$LD -v 2>/dev/null` in
6792         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6793         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6794         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6795         *\ 2.11.*) ;; # other 2.11 versions
6796         *) supports_anon_versioning=yes ;;
6797       esac
6798       if test $supports_anon_versioning = yes; then
6799         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6801 $echo "local: *; };" >> $output_objdir/$libname.ver~
6802         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6803       else
6804         archive_expsym_cmds="$tmp_archive_cmds"
6805       fi
6806     else
6807       ld_shlibs=no
6808     fi
6809     ;;
6810
6811     *)
6812       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6813         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6814         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6815       else
6816         ld_shlibs=no
6817       fi
6818       ;;
6819     esac
6820
6821     if test "$ld_shlibs" = yes; then
6822       runpath_var=LD_RUN_PATH
6823       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6824       export_dynamic_flag_spec='${wl}--export-dynamic'
6825       # ancient GNU ld didn't support --whole-archive et. al.
6826       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6827         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6828       else
6829         whole_archive_flag_spec=
6830       fi
6831     fi
6832   else
6833     # PORTME fill in a description of your system's linker (not GNU ld)
6834     case $host_os in
6835     aix3*)
6836       allow_undefined_flag=unsupported
6837       always_export_symbols=yes
6838       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'
6839       # Note: this linker hardcodes the directories in LIBPATH if there
6840       # are no directories specified by -L.
6841       hardcode_minus_L=yes
6842       if test "$GCC" = yes && test -z "$link_static_flag"; then
6843         # Neither direct hardcoding nor static linking is supported with a
6844         # broken collect2.
6845         hardcode_direct=unsupported
6846       fi
6847       ;;
6848
6849     aix4* | aix5*)
6850       if test "$host_cpu" = ia64; then
6851         # On IA64, the linker does run time linking by default, so we don't
6852         # have to do anything special.
6853         aix_use_runtimelinking=no
6854         exp_sym_flag='-Bexport'
6855         no_entry_flag=""
6856       else
6857         # If we're using GNU nm, then we don't want the "-C" option.
6858         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6859         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6860           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'
6861         else
6862           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'
6863         fi
6864         aix_use_runtimelinking=no
6865
6866         # Test if we are trying to use run time linking or normal
6867         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6868         # need to do runtime linking.
6869         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6870           for ld_flag in $LDFLAGS; do
6871           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6872             aix_use_runtimelinking=yes
6873             break
6874           fi
6875           done
6876         esac
6877
6878         exp_sym_flag='-bexport'
6879         no_entry_flag='-bnoentry'
6880       fi
6881
6882       # When large executables or shared objects are built, AIX ld can
6883       # have problems creating the table of contents.  If linking a library
6884       # or program results in "error TOC overflow" add -mminimal-toc to
6885       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6886       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6887
6888       archive_cmds=''
6889       hardcode_direct=yes
6890       hardcode_libdir_separator=':'
6891       link_all_deplibs=yes
6892
6893       if test "$GCC" = yes; then
6894         case $host_os in aix4.012|aix4.012.*)
6895         # We only want to do this on AIX 4.2 and lower, the check
6896         # below for broken collect2 doesn't work under 4.3+
6897           collect2name=`${CC} -print-prog-name=collect2`
6898           if test -f "$collect2name" && \
6899            strings "$collect2name" | grep resolve_lib_name >/dev/null
6900           then
6901           # We have reworked collect2
6902           hardcode_direct=yes
6903           else
6904           # We have old collect2
6905           hardcode_direct=unsupported
6906           # It fails to find uninstalled libraries when the uninstalled
6907           # path is not listed in the libpath.  Setting hardcode_minus_L
6908           # to unsupported forces relinking
6909           hardcode_minus_L=yes
6910           hardcode_libdir_flag_spec='-L$libdir'
6911           hardcode_libdir_separator=
6912           fi
6913         esac
6914         shared_flag='-shared'
6915       else
6916         # not using gcc
6917         if test "$host_cpu" = ia64; then
6918         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6919         # chokes on -Wl,-G. The following line is correct:
6920           shared_flag='-G'
6921         else
6922         if test "$aix_use_runtimelinking" = yes; then
6923             shared_flag='${wl}-G'
6924           else
6925             shared_flag='${wl}-bM:SRE'
6926         fi
6927         fi
6928       fi
6929
6930       # It seems that -bexpall does not export symbols beginning with
6931       # underscore (_), so it is better to generate a list of symbols to export.
6932       always_export_symbols=yes
6933       if test "$aix_use_runtimelinking" = yes; then
6934         # Warning - without using the other runtime loading flags (-brtl),
6935         # -berok will link without error, but may produce a broken library.
6936         allow_undefined_flag='-berok'
6937        # Determine the default libpath from the value encoded in an empty executable.
6938        cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944
6945 int
6946 main ()
6947 {
6948
6949   ;
6950   return 0;
6951 }
6952 _ACEOF
6953 rm -f conftest.$ac_objext conftest$ac_exeext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6955   (eval $ac_link) 2>conftest.er1
6956   ac_status=$?
6957   grep -v '^ *+' conftest.er1 >conftest.err
6958   rm -f conftest.er1
6959   cat conftest.err >&5
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } &&
6962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964   (eval $ac_try) 2>&5
6965   ac_status=$?
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); }; } &&
6968          { ac_try='test -s conftest$ac_exeext'
6969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970   (eval $ac_try) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); }; }; then
6974
6975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6976 }'`
6977 # Check for a 64-bit object if we didn't find anything.
6978 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; }
6979 }'`; fi
6980 else
6981   echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6983
6984 fi
6985 rm -f conftest.err conftest.$ac_objext \
6986       conftest$ac_exeext conftest.$ac_ext
6987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6988
6989        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6990         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"
6991        else
6992         if test "$host_cpu" = ia64; then
6993           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6994           allow_undefined_flag="-z nodefs"
6995           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"
6996         else
6997          # Determine the default libpath from the value encoded in an empty executable.
6998          cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h.  */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h.  */
7004
7005 int
7006 main ()
7007 {
7008
7009   ;
7010   return 0;
7011 }
7012 _ACEOF
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015   (eval $ac_link) 2>conftest.er1
7016   ac_status=$?
7017   grep -v '^ *+' conftest.er1 >conftest.err
7018   rm -f conftest.er1
7019   cat conftest.err >&5
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } &&
7022          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024   (eval $ac_try) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); }; } &&
7028          { ac_try='test -s conftest$ac_exeext'
7029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030   (eval $ac_try) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); }; }; then
7034
7035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7036 }'`
7037 # Check for a 64-bit object if we didn't find anything.
7038 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; }
7039 }'`; fi
7040 else
7041   echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 fi
7045 rm -f conftest.err conftest.$ac_objext \
7046       conftest$ac_exeext conftest.$ac_ext
7047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7048
7049          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7050           # Warning - without using the other run time loading flags,
7051           # -berok will link without error, but may produce a broken library.
7052           no_undefined_flag=' ${wl}-bernotok'
7053           allow_undefined_flag=' ${wl}-berok'
7054           # -bexpall does not export symbols beginning with underscore (_)
7055           always_export_symbols=yes
7056           # Exported symbols can be pulled into shared objects from archives
7057           whole_archive_flag_spec=' '
7058           archive_cmds_need_lc=yes
7059           # This is similar to how AIX traditionally builds it's shared libraries.
7060           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'
7061         fi
7062       fi
7063       ;;
7064
7065     amigaos*)
7066       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)'
7067       hardcode_libdir_flag_spec='-L$libdir'
7068       hardcode_minus_L=yes
7069       # see comment about different semantics on the GNU ld section
7070       ld_shlibs=no
7071       ;;
7072
7073     bsdi4*)
7074       export_dynamic_flag_spec=-rdynamic
7075       ;;
7076
7077     cygwin* | mingw* | pw32*)
7078       # When not using gcc, we currently assume that we are using
7079       # Microsoft Visual C++.
7080       # hardcode_libdir_flag_spec is actually meaningless, as there is
7081       # no search path for DLLs.
7082       hardcode_libdir_flag_spec=' '
7083       allow_undefined_flag=unsupported
7084       # Tell ltmain to make .lib files, not .a files.
7085       libext=lib
7086       # Tell ltmain to make .dll files, not .so files.
7087       shrext=".dll"
7088       # FIXME: Setting linknames here is a bad hack.
7089       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7090       # The linker will automatically build a .lib file if we build a DLL.
7091       old_archive_From_new_cmds='true'
7092       # FIXME: Should let the user specify the lib program.
7093       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7094       fix_srcfile_path='`cygpath -w "$srcfile"`'
7095       enable_shared_with_static_runtimes=yes
7096       ;;
7097
7098     darwin* | rhapsody*)
7099     if test "$GXX" = yes ; then
7100       archive_cmds_need_lc=no
7101       case "$host_os" in
7102       rhapsody* | darwin1.[012])
7103         allow_undefined_flag='-undefined suppress'
7104         ;;
7105       *) # Darwin 1.3 on
7106       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7107         allow_undefined_flag='-flat_namespace -undefined suppress'
7108       else
7109         case ${MACOSX_DEPLOYMENT_TARGET} in
7110           10.[012])
7111             allow_undefined_flag='-flat_namespace -undefined suppress'
7112             ;;
7113           10.*)
7114             allow_undefined_flag='-undefined dynamic_lookup'
7115             ;;
7116         esac
7117       fi
7118         ;;
7119       esac
7120         lt_int_apple_cc_single_mod=no
7121         output_verbose_link_cmd='echo'
7122         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7123           lt_int_apple_cc_single_mod=yes
7124         fi
7125         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7126           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7127         else
7128         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'
7129       fi
7130       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7131       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7132         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7133           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}'
7134         else
7135           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}'
7136         fi
7137           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}'
7138       hardcode_direct=no
7139       hardcode_automatic=yes
7140       hardcode_shlibpath_var=unsupported
7141       whole_archive_flag_spec='-all_load $convenience'
7142       link_all_deplibs=yes
7143     else
7144       ld_shlibs=no
7145     fi
7146       ;;
7147
7148     dgux*)
7149       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7150       hardcode_libdir_flag_spec='-L$libdir'
7151       hardcode_shlibpath_var=no
7152       ;;
7153
7154     freebsd1*)
7155       ld_shlibs=no
7156       ;;
7157
7158     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7159     # support.  Future versions do this automatically, but an explicit c++rt0.o
7160     # does not break anything, and helps significantly (at the cost of a little
7161     # extra space).
7162     freebsd2.2*)
7163       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7164       hardcode_libdir_flag_spec='-R$libdir'
7165       hardcode_direct=yes
7166       hardcode_shlibpath_var=no
7167       ;;
7168
7169     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7170     freebsd2*)
7171       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7172       hardcode_direct=yes
7173       hardcode_minus_L=yes
7174       hardcode_shlibpath_var=no
7175       ;;
7176
7177     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7178     freebsd* | kfreebsd*-gnu)
7179       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7180       hardcode_libdir_flag_spec='-R$libdir'
7181       hardcode_direct=yes
7182       hardcode_shlibpath_var=no
7183       ;;
7184
7185     hpux9*)
7186       if test "$GCC" = yes; then
7187         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'
7188       else
7189         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'
7190       fi
7191       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7192       hardcode_libdir_separator=:
7193       hardcode_direct=yes
7194
7195       # hardcode_minus_L: Not really in the search PATH,
7196       # but as the default location of the library.
7197       hardcode_minus_L=yes
7198       export_dynamic_flag_spec='${wl}-E'
7199       ;;
7200
7201     hpux10* | hpux11*)
7202       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7203         case "$host_cpu" in
7204         hppa*64*|ia64*)
7205           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7206           ;;
7207         *)
7208           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7209           ;;
7210         esac
7211       else
7212         case "$host_cpu" in
7213         hppa*64*|ia64*)
7214           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7215           ;;
7216         *)
7217           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7218           ;;
7219         esac
7220       fi
7221       if test "$with_gnu_ld" = no; then
7222         case "$host_cpu" in
7223         hppa*64*)
7224           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225           hardcode_libdir_flag_spec_ld='+b $libdir'
7226           hardcode_libdir_separator=:
7227           hardcode_direct=no
7228           hardcode_shlibpath_var=no
7229           ;;
7230         ia64*)
7231           hardcode_libdir_flag_spec='-L$libdir'
7232           hardcode_direct=no
7233           hardcode_shlibpath_var=no
7234
7235           # hardcode_minus_L: Not really in the search PATH,
7236           # but as the default location of the library.
7237           hardcode_minus_L=yes
7238           ;;
7239         *)
7240           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7241           hardcode_libdir_separator=:
7242           hardcode_direct=yes
7243           export_dynamic_flag_spec='${wl}-E'
7244
7245           # hardcode_minus_L: Not really in the search PATH,
7246           # but as the default location of the library.
7247           hardcode_minus_L=yes
7248           ;;
7249         esac
7250       fi
7251       ;;
7252
7253     irix5* | irix6* | nonstopux*)
7254       if test "$GCC" = yes; then
7255         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'
7256       else
7257         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'
7258         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7259       fi
7260       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7261       hardcode_libdir_separator=:
7262       link_all_deplibs=yes
7263       ;;
7264
7265     netbsd* | knetbsd*-gnu)
7266       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7267         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7268       else
7269         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7270       fi
7271       hardcode_libdir_flag_spec='-R$libdir'
7272       hardcode_direct=yes
7273       hardcode_shlibpath_var=no
7274       ;;
7275
7276     newsos6)
7277       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7278       hardcode_direct=yes
7279       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7280       hardcode_libdir_separator=:
7281       hardcode_shlibpath_var=no
7282       ;;
7283
7284     openbsd*)
7285       hardcode_direct=yes
7286       hardcode_shlibpath_var=no
7287       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7288         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7289         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7290         export_dynamic_flag_spec='${wl}-E'
7291       else
7292        case $host_os in
7293          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7294            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7295            hardcode_libdir_flag_spec='-R$libdir'
7296            ;;
7297          *)
7298            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7299            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7300            ;;
7301        esac
7302       fi
7303       ;;
7304
7305     os2*)
7306       hardcode_libdir_flag_spec='-L$libdir'
7307       hardcode_minus_L=yes
7308       allow_undefined_flag=unsupported
7309       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'
7310       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7311       ;;
7312
7313     osf3*)
7314       if test "$GCC" = yes; then
7315         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7316         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'
7317       else
7318         allow_undefined_flag=' -expect_unresolved \*'
7319         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'
7320       fi
7321       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7322       hardcode_libdir_separator=:
7323       ;;
7324
7325     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7326       if test "$GCC" = yes; then
7327         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7328         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'
7329         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7330       else
7331         allow_undefined_flag=' -expect_unresolved \*'
7332         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'
7333         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7334         $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'
7335
7336         # Both c and cxx compiler support -rpath directly
7337         hardcode_libdir_flag_spec='-rpath $libdir'
7338       fi
7339       hardcode_libdir_separator=:
7340       ;;
7341
7342     sco3.2v5*)
7343       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7344       hardcode_shlibpath_var=no
7345       export_dynamic_flag_spec='${wl}-Bexport'
7346       runpath_var=LD_RUN_PATH
7347       hardcode_runpath_var=yes
7348       ;;
7349
7350     solaris*)
7351       no_undefined_flag=' -z text'
7352       if test "$GCC" = yes; then
7353         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7354         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7355           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7356       else
7357         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7358         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7359         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7360       fi
7361       hardcode_libdir_flag_spec='-R$libdir'
7362       hardcode_shlibpath_var=no
7363       case $host_os in
7364       solaris2.[0-5] | solaris2.[0-5].*) ;;
7365       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7366         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7367       esac
7368       link_all_deplibs=yes
7369       ;;
7370
7371     sunos4*)
7372       if test "x$host_vendor" = xsequent; then
7373         # Use $CC to link under sequent, because it throws in some extra .o
7374         # files that make .init and .fini sections work.
7375         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7376       else
7377         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7378       fi
7379       hardcode_libdir_flag_spec='-L$libdir'
7380       hardcode_direct=yes
7381       hardcode_minus_L=yes
7382       hardcode_shlibpath_var=no
7383       ;;
7384
7385     sysv4)
7386       case $host_vendor in
7387         sni)
7388           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7389           hardcode_direct=yes # is this really true???
7390         ;;
7391         siemens)
7392           ## LD is ld it makes a PLAMLIB
7393           ## CC just makes a GrossModule.
7394           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7395           reload_cmds='$CC -r -o $output$reload_objs'
7396           hardcode_direct=no
7397         ;;
7398         motorola)
7399           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7401         ;;
7402       esac
7403       runpath_var='LD_RUN_PATH'
7404       hardcode_shlibpath_var=no
7405       ;;
7406
7407     sysv4.3*)
7408       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7409       hardcode_shlibpath_var=no
7410       export_dynamic_flag_spec='-Bexport'
7411       ;;
7412
7413     sysv4*MP*)
7414       if test -d /usr/nec; then
7415         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7416         hardcode_shlibpath_var=no
7417         runpath_var=LD_RUN_PATH
7418         hardcode_runpath_var=yes
7419         ld_shlibs=yes
7420       fi
7421       ;;
7422
7423     sysv4.2uw2*)
7424       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7425       hardcode_direct=yes
7426       hardcode_minus_L=no
7427       hardcode_shlibpath_var=no
7428       hardcode_runpath_var=yes
7429       runpath_var=LD_RUN_PATH
7430       ;;
7431
7432    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7433       no_undefined_flag='${wl}-z ${wl}text'
7434       if test "$GCC" = yes; then
7435         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7436       else
7437         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7438       fi
7439       runpath_var='LD_RUN_PATH'
7440       hardcode_shlibpath_var=no
7441       ;;
7442
7443     sysv5*)
7444       no_undefined_flag=' -z text'
7445       # $CC -shared without GNU ld will not create a library from C++
7446       # object files and a static libstdc++, better avoid it by now
7447       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7448       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7449                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7450       hardcode_libdir_flag_spec=
7451       hardcode_shlibpath_var=no
7452       runpath_var='LD_RUN_PATH'
7453       ;;
7454
7455     uts4*)
7456       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7457       hardcode_libdir_flag_spec='-L$libdir'
7458       hardcode_shlibpath_var=no
7459       ;;
7460
7461     *)
7462       ld_shlibs=no
7463       ;;
7464     esac
7465   fi
7466
7467 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7468 echo "${ECHO_T}$ld_shlibs" >&6
7469 test "$ld_shlibs" = no && can_build_shared=no
7470
7471 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7472 if test "$GCC" = yes; then
7473   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7474 fi
7475
7476 #
7477 # Do we need to explicitly link libc?
7478 #
7479 case "x$archive_cmds_need_lc" in
7480 x|xyes)
7481   # Assume -lc should be added
7482   archive_cmds_need_lc=yes
7483
7484   if test "$enable_shared" = yes && test "$GCC" = yes; then
7485     case $archive_cmds in
7486     *'~'*)
7487       # FIXME: we may have to deal with multi-command sequences.
7488       ;;
7489     '$CC '*)
7490       # Test whether the compiler implicitly links with -lc since on some
7491       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7492       # to ld, don't add -lc before -lgcc.
7493       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7494 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7495       $rm conftest*
7496       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7497
7498       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499   (eval $ac_compile) 2>&5
7500   ac_status=$?
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); } 2>conftest.err; then
7503         soname=conftest
7504         lib=conftest
7505         libobjs=conftest.$ac_objext
7506         deplibs=
7507         wl=$lt_prog_compiler_wl
7508         compiler_flags=-v
7509         linker_flags=-v
7510         verstring=
7511         output_objdir=.
7512         libname=conftest
7513         lt_save_allow_undefined_flag=$allow_undefined_flag
7514         allow_undefined_flag=
7515         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7516   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7517   ac_status=$?
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); }
7520         then
7521           archive_cmds_need_lc=no
7522         else
7523           archive_cmds_need_lc=yes
7524         fi
7525         allow_undefined_flag=$lt_save_allow_undefined_flag
7526       else
7527         cat conftest.err 1>&5
7528       fi
7529       $rm conftest*
7530       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7531 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7532       ;;
7533     esac
7534   fi
7535   ;;
7536 esac
7537
7538 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7539 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7540 library_names_spec=
7541 libname_spec='lib$name'
7542 soname_spec=
7543 shrext=".so"
7544 postinstall_cmds=
7545 postuninstall_cmds=
7546 finish_cmds=
7547 finish_eval=
7548 shlibpath_var=
7549 shlibpath_overrides_runpath=unknown
7550 version_type=none
7551 dynamic_linker="$host_os ld.so"
7552 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7553 if test "$GCC" = yes; then
7554   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7555   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7556     # if the path contains ";" then we assume it to be the separator
7557     # otherwise default to the standard path separator (i.e. ":") - it is
7558     # assumed that no part of a normal pathname contains ";" but that should
7559     # okay in the real world where ";" in dirpaths is itself problematic.
7560     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7561   else
7562     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7563   fi
7564 else
7565   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7566 fi
7567 need_lib_prefix=unknown
7568 hardcode_into_libs=no
7569
7570 # when you set need_version to no, make sure it does not cause -set_version
7571 # flags to be left without arguments
7572 need_version=unknown
7573
7574 case $host_os in
7575 aix3*)
7576   version_type=linux
7577   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7578   shlibpath_var=LIBPATH
7579
7580   # AIX 3 has no versioning support, so we append a major version to the name.
7581   soname_spec='${libname}${release}${shared_ext}$major'
7582   ;;
7583
7584 aix4* | aix5*)
7585   version_type=linux
7586   need_lib_prefix=no
7587   need_version=no
7588   hardcode_into_libs=yes
7589   if test "$host_cpu" = ia64; then
7590     # AIX 5 supports IA64
7591     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7592     shlibpath_var=LD_LIBRARY_PATH
7593   else
7594     # With GCC up to 2.95.x, collect2 would create an import file
7595     # for dependence libraries.  The import file would start with
7596     # the line `#! .'.  This would cause the generated library to
7597     # depend on `.', always an invalid library.  This was fixed in
7598     # development snapshots of GCC prior to 3.0.
7599     case $host_os in
7600       aix4 | aix4.[01] | aix4.[01].*)
7601       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7602            echo ' yes '
7603            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7604         :
7605       else
7606         can_build_shared=no
7607       fi
7608       ;;
7609     esac
7610     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7611     # soname into executable. Probably we can add versioning support to
7612     # collect2, so additional links can be useful in future.
7613     if test "$aix_use_runtimelinking" = yes; then
7614       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7615       # instead of lib<name>.a to let people know that these are not
7616       # typical AIX shared libraries.
7617       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7618     else
7619       # We preserve .a as extension for shared libraries through AIX4.2
7620       # and later when we are not doing run time linking.
7621       library_names_spec='${libname}${release}.a $libname.a'
7622       soname_spec='${libname}${release}${shared_ext}$major'
7623     fi
7624     shlibpath_var=LIBPATH
7625   fi
7626   ;;
7627
7628 amigaos*)
7629   library_names_spec='$libname.ixlibrary $libname.a'
7630   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7631   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'
7632   ;;
7633
7634 beos*)
7635   library_names_spec='${libname}${shared_ext}'
7636   dynamic_linker="$host_os ld.so"
7637   shlibpath_var=LIBRARY_PATH
7638   ;;
7639
7640 bsdi4*)
7641   version_type=linux
7642   need_version=no
7643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644   soname_spec='${libname}${release}${shared_ext}$major'
7645   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7646   shlibpath_var=LD_LIBRARY_PATH
7647   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7648   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7649   # the default ld.so.conf also contains /usr/contrib/lib and
7650   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7651   # libtool to hard-code these into programs
7652   ;;
7653
7654 cygwin* | mingw* | pw32*)
7655   version_type=windows
7656   shrext=".dll"
7657   need_version=no
7658   need_lib_prefix=no
7659
7660   case $GCC,$host_os in
7661   yes,cygwin* | yes,mingw* | yes,pw32*)
7662     library_names_spec='$libname.dll.a'
7663     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7664     postinstall_cmds='base_file=`basename \${file}`~
7665       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7666       dldir=$destdir/`dirname \$dlpath`~
7667       test -d \$dldir || mkdir -p \$dldir~
7668       $install_prog $dir/$dlname \$dldir/$dlname'
7669     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7670       dlpath=$dir/\$dldll~
7671        $rm \$dlpath'
7672     shlibpath_overrides_runpath=yes
7673
7674     case $host_os in
7675     cygwin*)
7676       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7677       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7678       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7679       ;;
7680     mingw*)
7681       # MinGW DLLs use traditional 'lib' prefix
7682       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7683       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7684       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7685         # It is most probably a Windows format PATH printed by
7686         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7687         # path with ; separators, and with drive letters. We can handle the
7688         # drive letters (cygwin fileutils understands them), so leave them,
7689         # especially as we might pass files found there to a mingw objdump,
7690         # which wouldn't understand a cygwinified path. Ahh.
7691         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7692       else
7693         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7694       fi
7695       ;;
7696     pw32*)
7697       # pw32 DLLs use 'pw' prefix rather than 'lib'
7698       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7699       ;;
7700     esac
7701     ;;
7702
7703   *)
7704     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7705     ;;
7706   esac
7707   dynamic_linker='Win32 ld.exe'
7708   # FIXME: first we should search . and the directory the executable is in
7709   shlibpath_var=PATH
7710   ;;
7711
7712 darwin* | rhapsody*)
7713   dynamic_linker="$host_os dyld"
7714   version_type=darwin
7715   need_lib_prefix=no
7716   need_version=no
7717   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7718   soname_spec='${libname}${release}${major}$shared_ext'
7719   shlibpath_overrides_runpath=yes
7720   shlibpath_var=DYLD_LIBRARY_PATH
7721   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7722   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7723   if test "$GCC" = yes; then
7724     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"`
7725   else
7726     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7727   fi
7728   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7729   ;;
7730
7731 dgux*)
7732   version_type=linux
7733   need_lib_prefix=no
7734   need_version=no
7735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7736   soname_spec='${libname}${release}${shared_ext}$major'
7737   shlibpath_var=LD_LIBRARY_PATH
7738   ;;
7739
7740 freebsd1*)
7741   dynamic_linker=no
7742   ;;
7743
7744 kfreebsd*-gnu)
7745   version_type=linux
7746   need_lib_prefix=no
7747   need_version=no
7748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7749   soname_spec='${libname}${release}${shared_ext}$major'
7750   shlibpath_var=LD_LIBRARY_PATH
7751   shlibpath_overrides_runpath=no
7752   hardcode_into_libs=yes
7753   dynamic_linker='GNU ld.so'
7754   ;;
7755
7756 freebsd*)
7757   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7758   version_type=freebsd-$objformat
7759   case $version_type in
7760     freebsd-elf*)
7761       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7762       need_version=no
7763       need_lib_prefix=no
7764       ;;
7765     freebsd-*)
7766       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7767       need_version=yes
7768       ;;
7769   esac
7770   shlibpath_var=LD_LIBRARY_PATH
7771   case $host_os in
7772   freebsd2*)
7773     shlibpath_overrides_runpath=yes
7774     ;;
7775   freebsd3.01* | freebsdelf3.01*)
7776     shlibpath_overrides_runpath=yes
7777     hardcode_into_libs=yes
7778     ;;
7779   *) # from 3.2 on
7780     shlibpath_overrides_runpath=no
7781     hardcode_into_libs=yes
7782     ;;
7783   esac
7784   ;;
7785
7786 gnu*)
7787   version_type=linux
7788   need_lib_prefix=no
7789   need_version=no
7790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7791   soname_spec='${libname}${release}${shared_ext}$major'
7792   shlibpath_var=LD_LIBRARY_PATH
7793   hardcode_into_libs=yes
7794   ;;
7795
7796 hpux9* | hpux10* | hpux11*)
7797   # Give a soname corresponding to the major version so that dld.sl refuses to
7798   # link against other versions.
7799   version_type=sunos
7800   need_lib_prefix=no
7801   need_version=no
7802   case "$host_cpu" in
7803   ia64*)
7804     shrext='.so'
7805     hardcode_into_libs=yes
7806     dynamic_linker="$host_os dld.so"
7807     shlibpath_var=LD_LIBRARY_PATH
7808     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810     soname_spec='${libname}${release}${shared_ext}$major'
7811     if test "X$HPUX_IA64_MODE" = X32; then
7812       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7813     else
7814       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7815     fi
7816     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7817     ;;
7818    hppa*64*)
7819      shrext='.sl'
7820      hardcode_into_libs=yes
7821      dynamic_linker="$host_os dld.sl"
7822      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7823      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7824      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7825      soname_spec='${libname}${release}${shared_ext}$major'
7826      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7827      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7828      ;;
7829    *)
7830     shrext='.sl'
7831     dynamic_linker="$host_os dld.sl"
7832     shlibpath_var=SHLIB_PATH
7833     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835     soname_spec='${libname}${release}${shared_ext}$major'
7836     ;;
7837   esac
7838   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7839   postinstall_cmds='chmod 555 $lib'
7840   ;;
7841
7842 irix5* | irix6* | nonstopux*)
7843   case $host_os in
7844     nonstopux*) version_type=nonstopux ;;
7845     *)
7846         if test "$lt_cv_prog_gnu_ld" = yes; then
7847                 version_type=linux
7848         else
7849                 version_type=irix
7850         fi ;;
7851   esac
7852   need_lib_prefix=no
7853   need_version=no
7854   soname_spec='${libname}${release}${shared_ext}$major'
7855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7856   case $host_os in
7857   irix5* | nonstopux*)
7858     libsuff= shlibsuff=
7859     ;;
7860   *)
7861     case $LD in # libtool.m4 will add one of these switches to LD
7862     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7863       libsuff= shlibsuff= libmagic=32-bit;;
7864     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7865       libsuff=32 shlibsuff=N32 libmagic=N32;;
7866     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7867       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7868     *) libsuff= shlibsuff= libmagic=never-match;;
7869     esac
7870     ;;
7871   esac
7872   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7873   shlibpath_overrides_runpath=no
7874   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7875   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7876   hardcode_into_libs=yes
7877   ;;
7878
7879 # No shared lib support for Linux oldld, aout, or coff.
7880 linux*oldld* | linux*aout* | linux*coff*)
7881   dynamic_linker=no
7882   ;;
7883
7884 # This must be Linux ELF.
7885 linux*)
7886   version_type=linux
7887   need_lib_prefix=no
7888   need_version=no
7889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7890   soname_spec='${libname}${release}${shared_ext}$major'
7891   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7892   shlibpath_var=LD_LIBRARY_PATH
7893   shlibpath_overrides_runpath=no
7894   # This implies no fast_install, which is unacceptable.
7895   # Some rework will be needed to allow for fast_install
7896   # before this can be enabled.
7897   hardcode_into_libs=yes
7898
7899   # Append ld.so.conf contents to the search path
7900   if test -f /etc/ld.so.conf; then
7901     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7902     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7903   fi
7904
7905   # We used to test for /lib/ld.so.1 and disable shared libraries on
7906   # powerpc, because MkLinux only supported shared libraries with the
7907   # GNU dynamic linker.  Since this was broken with cross compilers,
7908   # most powerpc-linux boxes support dynamic linking these days and
7909   # people can always --disable-shared, the test was removed, and we
7910   # assume the GNU/Linux dynamic linker is in use.
7911   dynamic_linker='GNU/Linux ld.so'
7912   ;;
7913
7914 knetbsd*-gnu)
7915   version_type=linux
7916   need_lib_prefix=no
7917   need_version=no
7918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7919   soname_spec='${libname}${release}${shared_ext}$major'
7920   shlibpath_var=LD_LIBRARY_PATH
7921   shlibpath_overrides_runpath=no
7922   hardcode_into_libs=yes
7923   dynamic_linker='GNU ld.so'
7924   ;;
7925
7926 netbsd*)
7927   version_type=sunos
7928   need_lib_prefix=no
7929   need_version=no
7930   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7932     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7933     dynamic_linker='NetBSD (a.out) ld.so'
7934   else
7935     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7936     soname_spec='${libname}${release}${shared_ext}$major'
7937     dynamic_linker='NetBSD ld.elf_so'
7938   fi
7939   shlibpath_var=LD_LIBRARY_PATH
7940   shlibpath_overrides_runpath=yes
7941   hardcode_into_libs=yes
7942   ;;
7943
7944 newsos6)
7945   version_type=linux
7946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947   shlibpath_var=LD_LIBRARY_PATH
7948   shlibpath_overrides_runpath=yes
7949   ;;
7950
7951 nto-qnx*)
7952   version_type=linux
7953   need_lib_prefix=no
7954   need_version=no
7955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956   soname_spec='${libname}${release}${shared_ext}$major'
7957   shlibpath_var=LD_LIBRARY_PATH
7958   shlibpath_overrides_runpath=yes
7959   ;;
7960
7961 openbsd*)
7962   version_type=sunos
7963   need_lib_prefix=no
7964   need_version=yes
7965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7967   shlibpath_var=LD_LIBRARY_PATH
7968   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7969     case $host_os in
7970       openbsd2.[89] | openbsd2.[89].*)
7971         shlibpath_overrides_runpath=no
7972         ;;
7973       *)
7974         shlibpath_overrides_runpath=yes
7975         ;;
7976       esac
7977   else
7978     shlibpath_overrides_runpath=yes
7979   fi
7980   ;;
7981
7982 os2*)
7983   libname_spec='$name'
7984   shrext=".dll"
7985   need_lib_prefix=no
7986   library_names_spec='$libname${shared_ext} $libname.a'
7987   dynamic_linker='OS/2 ld.exe'
7988   shlibpath_var=LIBPATH
7989   ;;
7990
7991 osf3* | osf4* | osf5*)
7992   version_type=osf
7993   need_lib_prefix=no
7994   need_version=no
7995   soname_spec='${libname}${release}${shared_ext}$major'
7996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7997   shlibpath_var=LD_LIBRARY_PATH
7998   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7999   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8000   ;;
8001
8002 sco3.2v5*)
8003   version_type=osf
8004   soname_spec='${libname}${release}${shared_ext}$major'
8005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8006   shlibpath_var=LD_LIBRARY_PATH
8007   ;;
8008
8009 solaris*)
8010   version_type=linux
8011   need_lib_prefix=no
8012   need_version=no
8013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8014   soname_spec='${libname}${release}${shared_ext}$major'
8015   shlibpath_var=LD_LIBRARY_PATH
8016   shlibpath_overrides_runpath=yes
8017   hardcode_into_libs=yes
8018   # ldd complains unless libraries are executable
8019   postinstall_cmds='chmod +x $lib'
8020   ;;
8021
8022 sunos4*)
8023   version_type=sunos
8024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8025   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8026   shlibpath_var=LD_LIBRARY_PATH
8027   shlibpath_overrides_runpath=yes
8028   if test "$with_gnu_ld" = yes; then
8029     need_lib_prefix=no
8030   fi
8031   need_version=yes
8032   ;;
8033
8034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8035   version_type=linux
8036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8037   soname_spec='${libname}${release}${shared_ext}$major'
8038   shlibpath_var=LD_LIBRARY_PATH
8039   case $host_vendor in
8040     sni)
8041       shlibpath_overrides_runpath=no
8042       need_lib_prefix=no
8043       export_dynamic_flag_spec='${wl}-Blargedynsym'
8044       runpath_var=LD_RUN_PATH
8045       ;;
8046     siemens)
8047       need_lib_prefix=no
8048       ;;
8049     motorola)
8050       need_lib_prefix=no
8051       need_version=no
8052       shlibpath_overrides_runpath=no
8053       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8054       ;;
8055   esac
8056   ;;
8057
8058 sysv4*MP*)
8059   if test -d /usr/nec ;then
8060     version_type=linux
8061     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8062     soname_spec='$libname${shared_ext}.$major'
8063     shlibpath_var=LD_LIBRARY_PATH
8064   fi
8065   ;;
8066
8067 uts4*)
8068   version_type=linux
8069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8070   soname_spec='${libname}${release}${shared_ext}$major'
8071   shlibpath_var=LD_LIBRARY_PATH
8072   ;;
8073
8074 *)
8075   dynamic_linker=no
8076   ;;
8077 esac
8078 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8079 echo "${ECHO_T}$dynamic_linker" >&6
8080 test "$dynamic_linker" = no && can_build_shared=no
8081
8082 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8083 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8084 hardcode_action=
8085 if test -n "$hardcode_libdir_flag_spec" || \
8086    test -n "$runpath_var " || \
8087    test "X$hardcode_automatic"="Xyes" ; then
8088
8089   # We can hardcode non-existant directories.
8090   if test "$hardcode_direct" != no &&
8091      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8092      # have to relink, otherwise we might link with an installed library
8093      # when we should be linking with a yet-to-be-installed one
8094      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8095      test "$hardcode_minus_L" != no; then
8096     # Linking always hardcodes the temporary library directory.
8097     hardcode_action=relink
8098   else
8099     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8100     hardcode_action=immediate
8101   fi
8102 else
8103   # We cannot hardcode anything, or else we can only hardcode existing
8104   # directories.
8105   hardcode_action=unsupported
8106 fi
8107 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8108 echo "${ECHO_T}$hardcode_action" >&6
8109
8110 if test "$hardcode_action" = relink; then
8111   # Fast installation is not supported
8112   enable_fast_install=no
8113 elif test "$shlibpath_overrides_runpath" = yes ||
8114      test "$enable_shared" = no; then
8115   # Fast installation is not necessary
8116   enable_fast_install=needless
8117 fi
8118
8119 striplib=
8120 old_striplib=
8121 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8122 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8123 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8124   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8125   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8126   echo "$as_me:$LINENO: result: yes" >&5
8127 echo "${ECHO_T}yes" >&6
8128 else
8129 # FIXME - insert some real tests, host_os isn't really good enough
8130   case $host_os in
8131    darwin*)
8132        if test -n "$STRIP" ; then
8133          striplib="$STRIP -x"
8134          echo "$as_me:$LINENO: result: yes" >&5
8135 echo "${ECHO_T}yes" >&6
8136        else
8137   echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6
8139 fi
8140        ;;
8141    *)
8142   echo "$as_me:$LINENO: result: no" >&5
8143 echo "${ECHO_T}no" >&6
8144     ;;
8145   esac
8146 fi
8147
8148 if test "x$enable_dlopen" != xyes; then
8149   enable_dlopen=unknown
8150   enable_dlopen_self=unknown
8151   enable_dlopen_self_static=unknown
8152 else
8153   lt_cv_dlopen=no
8154   lt_cv_dlopen_libs=
8155
8156   case $host_os in
8157   beos*)
8158     lt_cv_dlopen="load_add_on"
8159     lt_cv_dlopen_libs=
8160     lt_cv_dlopen_self=yes
8161     ;;
8162
8163   mingw* | pw32*)
8164     lt_cv_dlopen="LoadLibrary"
8165     lt_cv_dlopen_libs=
8166    ;;
8167
8168   cygwin*)
8169     lt_cv_dlopen="dlopen"
8170     lt_cv_dlopen_libs=
8171    ;;
8172
8173   darwin*)
8174   # if libdl is installed we need to link against it
8175     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8176 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8177 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180   ac_check_lib_save_LIBS=$LIBS
8181 LIBS="-ldl  $LIBS"
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h.  */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h.  */
8188
8189 /* Override any gcc2 internal prototype to avoid an error.  */
8190 #ifdef __cplusplus
8191 extern "C"
8192 #endif
8193 /* We use char because int might match the return type of a gcc2
8194    builtin and then its argument prototype would still apply.  */
8195 char dlopen ();
8196 int
8197 main ()
8198 {
8199 dlopen ();
8200   ;
8201   return 0;
8202 }
8203 _ACEOF
8204 rm -f conftest.$ac_objext conftest$ac_exeext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8206   (eval $ac_link) 2>conftest.er1
8207   ac_status=$?
8208   grep -v '^ *+' conftest.er1 >conftest.err
8209   rm -f conftest.er1
8210   cat conftest.err >&5
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); } &&
8213          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215   (eval $ac_try) 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); }; } &&
8219          { ac_try='test -s conftest$ac_exeext'
8220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221   (eval $ac_try) 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); }; }; then
8225   ac_cv_lib_dl_dlopen=yes
8226 else
8227   echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8229
8230 ac_cv_lib_dl_dlopen=no
8231 fi
8232 rm -f conftest.err conftest.$ac_objext \
8233       conftest$ac_exeext conftest.$ac_ext
8234 LIBS=$ac_check_lib_save_LIBS
8235 fi
8236 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8237 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8238 if test $ac_cv_lib_dl_dlopen = yes; then
8239   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8240 else
8241
8242     lt_cv_dlopen="dyld"
8243     lt_cv_dlopen_libs=
8244     lt_cv_dlopen_self=yes
8245
8246 fi
8247
8248    ;;
8249
8250   *)
8251     echo "$as_me:$LINENO: checking for shl_load" >&5
8252 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8253 if test "${ac_cv_func_shl_load+set}" = set; then
8254   echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256   cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h.  */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h.  */
8262 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8264 #define shl_load innocuous_shl_load
8265
8266 /* System header to define __stub macros and hopefully few prototypes,
8267     which can conflict with char shl_load (); below.
8268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269     <limits.h> exists even on freestanding compilers.  */
8270
8271 #ifdef __STDC__
8272 # include <limits.h>
8273 #else
8274 # include <assert.h>
8275 #endif
8276
8277 #undef shl_load
8278
8279 /* Override any gcc2 internal prototype to avoid an error.  */
8280 #ifdef __cplusplus
8281 extern "C"
8282 {
8283 #endif
8284 /* We use char because int might match the return type of a gcc2
8285    builtin and then its argument prototype would still apply.  */
8286 char shl_load ();
8287 /* The GNU C library defines this for functions which it implements
8288     to always fail with ENOSYS.  Some functions are actually named
8289     something starting with __ and the normal name is an alias.  */
8290 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8291 choke me
8292 #else
8293 char (*f) () = shl_load;
8294 #endif
8295 #ifdef __cplusplus
8296 }
8297 #endif
8298
8299 int
8300 main ()
8301 {
8302 return f != shl_load;
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309   (eval $ac_link) 2>conftest.er1
8310   ac_status=$?
8311   grep -v '^ *+' conftest.er1 >conftest.err
8312   rm -f conftest.er1
8313   cat conftest.err >&5
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } &&
8316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318   (eval $ac_try) 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; } &&
8322          { ac_try='test -s conftest$ac_exeext'
8323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324   (eval $ac_try) 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; }; then
8328   ac_cv_func_shl_load=yes
8329 else
8330   echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333 ac_cv_func_shl_load=no
8334 fi
8335 rm -f conftest.err conftest.$ac_objext \
8336       conftest$ac_exeext conftest.$ac_ext
8337 fi
8338 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8339 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8340 if test $ac_cv_func_shl_load = yes; then
8341   lt_cv_dlopen="shl_load"
8342 else
8343   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8344 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8345 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   ac_check_lib_save_LIBS=$LIBS
8349 LIBS="-ldld  $LIBS"
8350 cat >conftest.$ac_ext <<_ACEOF
8351 /* confdefs.h.  */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h.  */
8356
8357 /* Override any gcc2 internal prototype to avoid an error.  */
8358 #ifdef __cplusplus
8359 extern "C"
8360 #endif
8361 /* We use char because int might match the return type of a gcc2
8362    builtin and then its argument prototype would still apply.  */
8363 char shl_load ();
8364 int
8365 main ()
8366 {
8367 shl_load ();
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374   (eval $ac_link) 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; } &&
8387          { ac_try='test -s conftest$ac_exeext'
8388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389   (eval $ac_try) 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; }; then
8393   ac_cv_lib_dld_shl_load=yes
8394 else
8395   echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8397
8398 ac_cv_lib_dld_shl_load=no
8399 fi
8400 rm -f conftest.err conftest.$ac_objext \
8401       conftest$ac_exeext conftest.$ac_ext
8402 LIBS=$ac_check_lib_save_LIBS
8403 fi
8404 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8405 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8406 if test $ac_cv_lib_dld_shl_load = yes; then
8407   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8408 else
8409   echo "$as_me:$LINENO: checking for dlopen" >&5
8410 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8411 if test "${ac_cv_func_dlopen+set}" = set; then
8412   echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414   cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h.  */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h.  */
8420 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8422 #define dlopen innocuous_dlopen
8423
8424 /* System header to define __stub macros and hopefully few prototypes,
8425     which can conflict with char dlopen (); below.
8426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8427     <limits.h> exists even on freestanding compilers.  */
8428
8429 #ifdef __STDC__
8430 # include <limits.h>
8431 #else
8432 # include <assert.h>
8433 #endif
8434
8435 #undef dlopen
8436
8437 /* Override any gcc2 internal prototype to avoid an error.  */
8438 #ifdef __cplusplus
8439 extern "C"
8440 {
8441 #endif
8442 /* We use char because int might match the return type of a gcc2
8443    builtin and then its argument prototype would still apply.  */
8444 char dlopen ();
8445 /* The GNU C library defines this for functions which it implements
8446     to always fail with ENOSYS.  Some functions are actually named
8447     something starting with __ and the normal name is an alias.  */
8448 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8449 choke me
8450 #else
8451 char (*f) () = dlopen;
8452 #endif
8453 #ifdef __cplusplus
8454 }
8455 #endif
8456
8457 int
8458 main ()
8459 {
8460 return f != dlopen;
8461   ;
8462   return 0;
8463 }
8464 _ACEOF
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8467   (eval $ac_link) 2>conftest.er1
8468   ac_status=$?
8469   grep -v '^ *+' conftest.er1 >conftest.err
8470   rm -f conftest.er1
8471   cat conftest.err >&5
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); } &&
8474          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476   (eval $ac_try) 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }; } &&
8480          { ac_try='test -s conftest$ac_exeext'
8481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482   (eval $ac_try) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; }; then
8486   ac_cv_func_dlopen=yes
8487 else
8488   echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8490
8491 ac_cv_func_dlopen=no
8492 fi
8493 rm -f conftest.err conftest.$ac_objext \
8494       conftest$ac_exeext conftest.$ac_ext
8495 fi
8496 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8497 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8498 if test $ac_cv_func_dlopen = yes; then
8499   lt_cv_dlopen="dlopen"
8500 else
8501   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   ac_check_lib_save_LIBS=$LIBS
8507 LIBS="-ldl  $LIBS"
8508 cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514
8515 /* Override any gcc2 internal prototype to avoid an error.  */
8516 #ifdef __cplusplus
8517 extern "C"
8518 #endif
8519 /* We use char because int might match the return type of a gcc2
8520    builtin and then its argument prototype would still apply.  */
8521 char dlopen ();
8522 int
8523 main ()
8524 {
8525 dlopen ();
8526   ;
8527   return 0;
8528 }
8529 _ACEOF
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532   (eval $ac_link) 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } &&
8539          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; } &&
8545          { ac_try='test -s conftest$ac_exeext'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; }; then
8551   ac_cv_lib_dl_dlopen=yes
8552 else
8553   echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556 ac_cv_lib_dl_dlopen=no
8557 fi
8558 rm -f conftest.err conftest.$ac_objext \
8559       conftest$ac_exeext conftest.$ac_ext
8560 LIBS=$ac_check_lib_save_LIBS
8561 fi
8562 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8564 if test $ac_cv_lib_dl_dlopen = yes; then
8565   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8566 else
8567   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8568 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8569 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   ac_check_lib_save_LIBS=$LIBS
8573 LIBS="-lsvld  $LIBS"
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h.  */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h.  */
8580
8581 /* Override any gcc2 internal prototype to avoid an error.  */
8582 #ifdef __cplusplus
8583 extern "C"
8584 #endif
8585 /* We use char because int might match the return type of a gcc2
8586    builtin and then its argument prototype would still apply.  */
8587 char dlopen ();
8588 int
8589 main ()
8590 {
8591 dlopen ();
8592   ;
8593   return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8598   (eval $ac_link) 2>conftest.er1
8599   ac_status=$?
8600   grep -v '^ *+' conftest.er1 >conftest.err
8601   rm -f conftest.er1
8602   cat conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } &&
8605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607   (eval $ac_try) 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; } &&
8611          { ac_try='test -s conftest$ac_exeext'
8612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613   (eval $ac_try) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; }; then
8617   ac_cv_lib_svld_dlopen=yes
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 ac_cv_lib_svld_dlopen=no
8623 fi
8624 rm -f conftest.err conftest.$ac_objext \
8625       conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8627 fi
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8630 if test $ac_cv_lib_svld_dlopen = yes; then
8631   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8632 else
8633   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8636   echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638   ac_check_lib_save_LIBS=$LIBS
8639 LIBS="-ldld  $LIBS"
8640 cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h.  */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h.  */
8646
8647 /* Override any gcc2 internal prototype to avoid an error.  */
8648 #ifdef __cplusplus
8649 extern "C"
8650 #endif
8651 /* We use char because int might match the return type of a gcc2
8652    builtin and then its argument prototype would still apply.  */
8653 char dld_link ();
8654 int
8655 main ()
8656 {
8657 dld_link ();
8658   ;
8659   return 0;
8660 }
8661 _ACEOF
8662 rm -f conftest.$ac_objext conftest$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664   (eval $ac_link) 2>conftest.er1
8665   ac_status=$?
8666   grep -v '^ *+' conftest.er1 >conftest.err
8667   rm -f conftest.er1
8668   cat conftest.err >&5
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; } &&
8677          { ac_try='test -s conftest$ac_exeext'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; }; then
8683   ac_cv_lib_dld_dld_link=yes
8684 else
8685   echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8687
8688 ac_cv_lib_dld_dld_link=no
8689 fi
8690 rm -f conftest.err conftest.$ac_objext \
8691       conftest$ac_exeext conftest.$ac_ext
8692 LIBS=$ac_check_lib_save_LIBS
8693 fi
8694 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8695 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8696 if test $ac_cv_lib_dld_dld_link = yes; then
8697   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8698 fi
8699
8700
8701 fi
8702
8703
8704 fi
8705
8706
8707 fi
8708
8709
8710 fi
8711
8712
8713 fi
8714
8715     ;;
8716   esac
8717
8718   if test "x$lt_cv_dlopen" != xno; then
8719     enable_dlopen=yes
8720   else
8721     enable_dlopen=no
8722   fi
8723
8724   case $lt_cv_dlopen in
8725   dlopen)
8726     save_CPPFLAGS="$CPPFLAGS"
8727     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8728
8729     save_LDFLAGS="$LDFLAGS"
8730     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8731
8732     save_LIBS="$LIBS"
8733     LIBS="$lt_cv_dlopen_libs $LIBS"
8734
8735     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8736 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8737 if test "${lt_cv_dlopen_self+set}" = set; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740           if test "$cross_compiling" = yes; then :
8741   lt_cv_dlopen_self=cross
8742 else
8743   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8744   lt_status=$lt_dlunknown
8745   cat > conftest.$ac_ext <<EOF
8746 #line 8746 "configure"
8747 #include "confdefs.h"
8748
8749 #if HAVE_DLFCN_H
8750 #include <dlfcn.h>
8751 #endif
8752
8753 #include <stdio.h>
8754
8755 #ifdef RTLD_GLOBAL
8756 #  define LT_DLGLOBAL           RTLD_GLOBAL
8757 #else
8758 #  ifdef DL_GLOBAL
8759 #    define LT_DLGLOBAL         DL_GLOBAL
8760 #  else
8761 #    define LT_DLGLOBAL         0
8762 #  endif
8763 #endif
8764
8765 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8766    find out it does not work in some platform. */
8767 #ifndef LT_DLLAZY_OR_NOW
8768 #  ifdef RTLD_LAZY
8769 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8770 #  else
8771 #    ifdef DL_LAZY
8772 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8773 #    else
8774 #      ifdef RTLD_NOW
8775 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8776 #      else
8777 #        ifdef DL_NOW
8778 #          define LT_DLLAZY_OR_NOW      DL_NOW
8779 #        else
8780 #          define LT_DLLAZY_OR_NOW      0
8781 #        endif
8782 #      endif
8783 #    endif
8784 #  endif
8785 #endif
8786
8787 #ifdef __cplusplus
8788 extern "C" void exit (int);
8789 #endif
8790
8791 void fnord() { int i=42;}
8792 int main ()
8793 {
8794   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8795   int status = $lt_dlunknown;
8796
8797   if (self)
8798     {
8799       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8800       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8801       /* dlclose (self); */
8802     }
8803
8804     exit (status);
8805 }
8806 EOF
8807   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808   (eval $ac_link) 2>&5
8809   ac_status=$?
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8812     (./conftest; exit; ) 2>/dev/null
8813     lt_status=$?
8814     case x$lt_status in
8815       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8816       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8817       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8818     esac
8819   else :
8820     # compilation failed
8821     lt_cv_dlopen_self=no
8822   fi
8823 fi
8824 rm -fr conftest*
8825
8826
8827 fi
8828 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8829 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8830
8831     if test "x$lt_cv_dlopen_self" = xyes; then
8832       LDFLAGS="$LDFLAGS $link_static_flag"
8833       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8834 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8835 if test "${lt_cv_dlopen_self_static+set}" = set; then
8836   echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838           if test "$cross_compiling" = yes; then :
8839   lt_cv_dlopen_self_static=cross
8840 else
8841   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8842   lt_status=$lt_dlunknown
8843   cat > conftest.$ac_ext <<EOF
8844 #line 8844 "configure"
8845 #include "confdefs.h"
8846
8847 #if HAVE_DLFCN_H
8848 #include <dlfcn.h>
8849 #endif
8850
8851 #include <stdio.h>
8852
8853 #ifdef RTLD_GLOBAL
8854 #  define LT_DLGLOBAL           RTLD_GLOBAL
8855 #else
8856 #  ifdef DL_GLOBAL
8857 #    define LT_DLGLOBAL         DL_GLOBAL
8858 #  else
8859 #    define LT_DLGLOBAL         0
8860 #  endif
8861 #endif
8862
8863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8864    find out it does not work in some platform. */
8865 #ifndef LT_DLLAZY_OR_NOW
8866 #  ifdef RTLD_LAZY
8867 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8868 #  else
8869 #    ifdef DL_LAZY
8870 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8871 #    else
8872 #      ifdef RTLD_NOW
8873 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8874 #      else
8875 #        ifdef DL_NOW
8876 #          define LT_DLLAZY_OR_NOW      DL_NOW
8877 #        else
8878 #          define LT_DLLAZY_OR_NOW      0
8879 #        endif
8880 #      endif
8881 #    endif
8882 #  endif
8883 #endif
8884
8885 #ifdef __cplusplus
8886 extern "C" void exit (int);
8887 #endif
8888
8889 void fnord() { int i=42;}
8890 int main ()
8891 {
8892   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8893   int status = $lt_dlunknown;
8894
8895   if (self)
8896     {
8897       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8898       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8899       /* dlclose (self); */
8900     }
8901
8902     exit (status);
8903 }
8904 EOF
8905   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906   (eval $ac_link) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8910     (./conftest; exit; ) 2>/dev/null
8911     lt_status=$?
8912     case x$lt_status in
8913       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8914       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8915       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8916     esac
8917   else :
8918     # compilation failed
8919     lt_cv_dlopen_self_static=no
8920   fi
8921 fi
8922 rm -fr conftest*
8923
8924
8925 fi
8926 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8927 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8928     fi
8929
8930     CPPFLAGS="$save_CPPFLAGS"
8931     LDFLAGS="$save_LDFLAGS"
8932     LIBS="$save_LIBS"
8933     ;;
8934   esac
8935
8936   case $lt_cv_dlopen_self in
8937   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8938   *) enable_dlopen_self=unknown ;;
8939   esac
8940
8941   case $lt_cv_dlopen_self_static in
8942   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8943   *) enable_dlopen_self_static=unknown ;;
8944   esac
8945 fi
8946
8947
8948 # Report which librarie types wil actually be built
8949 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8951 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8952 echo "${ECHO_T}$can_build_shared" >&6
8953
8954 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8956 test "$can_build_shared" = "no" && enable_shared=no
8957
8958 # On AIX, shared libraries and static libraries use the same namespace, and
8959 # are all built from PIC.
8960 case "$host_os" in
8961 aix3*)
8962   test "$enable_shared" = yes && enable_static=no
8963   if test -n "$RANLIB"; then
8964     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8965     postinstall_cmds='$RANLIB $lib'
8966   fi
8967   ;;
8968
8969 aix4*)
8970   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8971     test "$enable_shared" = yes && enable_static=no
8972   fi
8973   ;;
8974   darwin* | rhapsody*)
8975   if test "$GCC" = yes; then
8976     archive_cmds_need_lc=no
8977     case "$host_os" in
8978     rhapsody* | darwin1.[012])
8979       allow_undefined_flag='-undefined suppress'
8980       ;;
8981     *) # Darwin 1.3 on
8982       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8983         allow_undefined_flag='-flat_namespace -undefined suppress'
8984       else
8985         case ${MACOSX_DEPLOYMENT_TARGET} in
8986           10.[012])
8987             allow_undefined_flag='-flat_namespace -undefined suppress'
8988             ;;
8989           10.*)
8990             allow_undefined_flag='-undefined dynamic_lookup'
8991             ;;
8992         esac
8993       fi
8994       ;;
8995     esac
8996     output_verbose_link_cmd='echo'
8997     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8998     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8999     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9000     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}'
9001     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}'
9002     hardcode_direct=no
9003     hardcode_automatic=yes
9004     hardcode_shlibpath_var=unsupported
9005     whole_archive_flag_spec='-all_load $convenience'
9006     link_all_deplibs=yes
9007   else
9008     ld_shlibs=no
9009   fi
9010     ;;
9011 esac
9012 echo "$as_me:$LINENO: result: $enable_shared" >&5
9013 echo "${ECHO_T}$enable_shared" >&6
9014
9015 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9016 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9017 # Make sure either enable_shared or enable_static is yes.
9018 test "$enable_shared" = yes || enable_static=yes
9019 echo "$as_me:$LINENO: result: $enable_static" >&5
9020 echo "${ECHO_T}$enable_static" >&6
9021
9022 # The else clause should only fire when bootstrapping the
9023 # libtool distribution, otherwise you forgot to ship ltmain.sh
9024 # with your package, and you will get complaints that there are
9025 # no rules to generate ltmain.sh.
9026 if test -f "$ltmain"; then
9027   # See if we are running on zsh, and set the options which allow our commands through
9028   # without removal of \ escapes.
9029   if test -n "${ZSH_VERSION+set}" ; then
9030     setopt NO_GLOB_SUBST
9031   fi
9032   # Now quote all the things that may contain metacharacters while being
9033   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9034   # variables and quote the copies for generation of the libtool script.
9035   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9036     SED SHELL STRIP \
9037     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9038     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9039     deplibs_check_method reload_flag reload_cmds need_locks \
9040     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9041     lt_cv_sys_global_symbol_to_c_name_address \
9042     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9043     old_postinstall_cmds old_postuninstall_cmds \
9044     compiler \
9045     CC \
9046     LD \
9047     lt_prog_compiler_wl \
9048     lt_prog_compiler_pic \
9049     lt_prog_compiler_static \
9050     lt_prog_compiler_no_builtin_flag \
9051     export_dynamic_flag_spec \
9052     thread_safe_flag_spec \
9053     whole_archive_flag_spec \
9054     enable_shared_with_static_runtimes \
9055     old_archive_cmds \
9056     old_archive_from_new_cmds \
9057     predep_objects \
9058     postdep_objects \
9059     predeps \
9060     postdeps \
9061     compiler_lib_search_path \
9062     archive_cmds \
9063     archive_expsym_cmds \
9064     postinstall_cmds \
9065     postuninstall_cmds \
9066     old_archive_from_expsyms_cmds \
9067     allow_undefined_flag \
9068     no_undefined_flag \
9069     export_symbols_cmds \
9070     hardcode_libdir_flag_spec \
9071     hardcode_libdir_flag_spec_ld \
9072     hardcode_libdir_separator \
9073     hardcode_automatic \
9074     module_cmds \
9075     module_expsym_cmds \
9076     lt_cv_prog_compiler_c_o \
9077     exclude_expsyms \
9078     include_expsyms; do
9079
9080     case $var in
9081     old_archive_cmds | \
9082     old_archive_from_new_cmds | \
9083     archive_cmds | \
9084     archive_expsym_cmds | \
9085     module_cmds | \
9086     module_expsym_cmds | \
9087     old_archive_from_expsyms_cmds | \
9088     export_symbols_cmds | \
9089     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9090     postinstall_cmds | postuninstall_cmds | \
9091     old_postinstall_cmds | old_postuninstall_cmds | \
9092     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9093       # Double-quote double-evaled strings.
9094       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9095       ;;
9096     *)
9097       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9098       ;;
9099     esac
9100   done
9101
9102   case $lt_echo in
9103   *'\$0 --fallback-echo"')
9104     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9105     ;;
9106   esac
9107
9108 cfgfile="${ofile}T"
9109   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9110   $rm -f "$cfgfile"
9111   { echo "$as_me:$LINENO: creating $ofile" >&5
9112 echo "$as_me: creating $ofile" >&6;}
9113
9114   cat <<__EOF__ >> "$cfgfile"
9115 #! $SHELL
9116
9117 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9118 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9119 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9120 #
9121 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9122 # Free Software Foundation, Inc.
9123 #
9124 # This file is part of GNU Libtool:
9125 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9126 #
9127 # This program is free software; you can redistribute it and/or modify
9128 # it under the terms of the GNU General Public License as published by
9129 # the Free Software Foundation; either version 2 of the License, or
9130 # (at your option) any later version.
9131 #
9132 # This program is distributed in the hope that it will be useful, but
9133 # WITHOUT ANY WARRANTY; without even the implied warranty of
9134 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9135 # General Public License for more details.
9136 #
9137 # You should have received a copy of the GNU General Public License
9138 # along with this program; if not, write to the Free Software
9139 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9140 #
9141 # As a special exception to the GNU General Public License, if you
9142 # distribute this file as part of a program that contains a
9143 # configuration script generated by Autoconf, you may include it under
9144 # the same distribution terms that you use for the rest of that program.
9145
9146 # A sed program that does not truncate output.
9147 SED=$lt_SED
9148
9149 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9150 Xsed="$SED -e s/^X//"
9151
9152 # The HP-UX ksh and POSIX shell print the target directory to stdout
9153 # if CDPATH is set.
9154 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9155
9156 # The names of the tagged configurations supported by this script.
9157 available_tags=
9158
9159 # ### BEGIN LIBTOOL CONFIG
9160
9161 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9162
9163 # Shell to use when invoking shell scripts.
9164 SHELL=$lt_SHELL
9165
9166 # Whether or not to build shared libraries.
9167 build_libtool_libs=$enable_shared
9168
9169 # Whether or not to build static libraries.
9170 build_old_libs=$enable_static
9171
9172 # Whether or not to add -lc for building shared libraries.
9173 build_libtool_need_lc=$archive_cmds_need_lc
9174
9175 # Whether or not to disallow shared libs when runtime libs are static
9176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9177
9178 # Whether or not to optimize for fast installation.
9179 fast_install=$enable_fast_install
9180
9181 # The host system.
9182 host_alias=$host_alias
9183 host=$host
9184
9185 # An echo program that does not interpret backslashes.
9186 echo=$lt_echo
9187
9188 # The archiver.
9189 AR=$lt_AR
9190 AR_FLAGS=$lt_AR_FLAGS
9191
9192 # A C compiler.
9193 LTCC=$lt_LTCC
9194
9195 # A language-specific compiler.
9196 CC=$lt_compiler
9197
9198 # Is the compiler the GNU C compiler?
9199 with_gcc=$GCC
9200
9201 # An ERE matcher.
9202 EGREP=$lt_EGREP
9203
9204 # The linker used to build libraries.
9205 LD=$lt_LD
9206
9207 # Whether we need hard or soft links.
9208 LN_S=$lt_LN_S
9209
9210 # A BSD-compatible nm program.
9211 NM=$lt_NM
9212
9213 # A symbol stripping program
9214 STRIP=$lt_STRIP
9215
9216 # Used to examine libraries when file_magic_cmd begins "file"
9217 MAGIC_CMD=$MAGIC_CMD
9218
9219 # Used on cygwin: DLL creation program.
9220 DLLTOOL="$DLLTOOL"
9221
9222 # Used on cygwin: object dumper.
9223 OBJDUMP="$OBJDUMP"
9224
9225 # Used on cygwin: assembler.
9226 AS="$AS"
9227
9228 # The name of the directory that contains temporary libtool files.
9229 objdir=$objdir
9230
9231 # How to create reloadable object files.
9232 reload_flag=$lt_reload_flag
9233 reload_cmds=$lt_reload_cmds
9234
9235 # How to pass a linker flag through the compiler.
9236 wl=$lt_lt_prog_compiler_wl
9237
9238 # Object file suffix (normally "o").
9239 objext="$ac_objext"
9240
9241 # Old archive suffix (normally "a").
9242 libext="$libext"
9243
9244 # Shared library suffix (normally ".so").
9245 shrext='$shrext'
9246
9247 # Executable file suffix (normally "").
9248 exeext="$exeext"
9249
9250 # Additional compiler flags for building library objects.
9251 pic_flag=$lt_lt_prog_compiler_pic
9252 pic_mode=$pic_mode
9253
9254 # What is the maximum length of a command?
9255 max_cmd_len=$lt_cv_sys_max_cmd_len
9256
9257 # Does compiler simultaneously support -c and -o options?
9258 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9259
9260 # Must we lock files when doing compilation ?
9261 need_locks=$lt_need_locks
9262
9263 # Do we need the lib prefix for modules?
9264 need_lib_prefix=$need_lib_prefix
9265
9266 # Do we need a version for libraries?
9267 need_version=$need_version
9268
9269 # Whether dlopen is supported.
9270 dlopen_support=$enable_dlopen
9271
9272 # Whether dlopen of programs is supported.
9273 dlopen_self=$enable_dlopen_self
9274
9275 # Whether dlopen of statically linked programs is supported.
9276 dlopen_self_static=$enable_dlopen_self_static
9277
9278 # Compiler flag to prevent dynamic linking.
9279 link_static_flag=$lt_lt_prog_compiler_static
9280
9281 # Compiler flag to turn off builtin functions.
9282 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9283
9284 # Compiler flag to allow reflexive dlopens.
9285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9286
9287 # Compiler flag to generate shared objects directly from archives.
9288 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9289
9290 # Compiler flag to generate thread-safe objects.
9291 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9292
9293 # Library versioning type.
9294 version_type=$version_type
9295
9296 # Format of library name prefix.
9297 libname_spec=$lt_libname_spec
9298
9299 # List of archive names.  First name is the real one, the rest are links.
9300 # The last name is the one that the linker finds with -lNAME.
9301 library_names_spec=$lt_library_names_spec
9302
9303 # The coded name of the library, if different from the real name.
9304 soname_spec=$lt_soname_spec
9305
9306 # Commands used to build and install an old-style archive.
9307 RANLIB=$lt_RANLIB
9308 old_archive_cmds=$lt_old_archive_cmds
9309 old_postinstall_cmds=$lt_old_postinstall_cmds
9310 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9311
9312 # Create an old-style archive from a shared archive.
9313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9314
9315 # Create a temporary old-style archive to link instead of a shared archive.
9316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9317
9318 # Commands used to build and install a shared archive.
9319 archive_cmds=$lt_archive_cmds
9320 archive_expsym_cmds=$lt_archive_expsym_cmds
9321 postinstall_cmds=$lt_postinstall_cmds
9322 postuninstall_cmds=$lt_postuninstall_cmds
9323
9324 # Commands used to build a loadable module (assumed same as above if empty)
9325 module_cmds=$lt_module_cmds
9326 module_expsym_cmds=$lt_module_expsym_cmds
9327
9328 # Commands to strip libraries.
9329 old_striplib=$lt_old_striplib
9330 striplib=$lt_striplib
9331
9332 # Dependencies to place before the objects being linked to create a
9333 # shared library.
9334 predep_objects=$lt_predep_objects
9335
9336 # Dependencies to place after the objects being linked to create a
9337 # shared library.
9338 postdep_objects=$lt_postdep_objects
9339
9340 # Dependencies to place before the objects being linked to create a
9341 # shared library.
9342 predeps=$lt_predeps
9343
9344 # Dependencies to place after the objects being linked to create a
9345 # shared library.
9346 postdeps=$lt_postdeps
9347
9348 # The library search path used internally by the compiler when linking
9349 # a shared library.
9350 compiler_lib_search_path=$lt_compiler_lib_search_path
9351
9352 # Method to check whether dependent libraries are shared objects.
9353 deplibs_check_method=$lt_deplibs_check_method
9354
9355 # Command to use when deplibs_check_method == file_magic.
9356 file_magic_cmd=$lt_file_magic_cmd
9357
9358 # Flag that allows shared libraries with undefined symbols to be built.
9359 allow_undefined_flag=$lt_allow_undefined_flag
9360
9361 # Flag that forces no undefined symbols.
9362 no_undefined_flag=$lt_no_undefined_flag
9363
9364 # Commands used to finish a libtool library installation in a directory.
9365 finish_cmds=$lt_finish_cmds
9366
9367 # Same as above, but a single script fragment to be evaled but not shown.
9368 finish_eval=$lt_finish_eval
9369
9370 # Take the output of nm and produce a listing of raw symbols and C names.
9371 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9372
9373 # Transform the output of nm in a proper C declaration
9374 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9375
9376 # Transform the output of nm in a C name address pair
9377 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9378
9379 # This is the shared library runtime path variable.
9380 runpath_var=$runpath_var
9381
9382 # This is the shared library path variable.
9383 shlibpath_var=$shlibpath_var
9384
9385 # Is shlibpath searched before the hard-coded library search path?
9386 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9387
9388 # How to hardcode a shared library path into an executable.
9389 hardcode_action=$hardcode_action
9390
9391 # Whether we should hardcode library paths into libraries.
9392 hardcode_into_libs=$hardcode_into_libs
9393
9394 # Flag to hardcode \$libdir into a binary during linking.
9395 # This must work even if \$libdir does not exist.
9396 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9397
9398 # If ld is used when linking, flag to hardcode \$libdir into
9399 # a binary during linking. This must work even if \$libdir does
9400 # not exist.
9401 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9402
9403 # Whether we need a single -rpath flag with a separated argument.
9404 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9405
9406 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9407 # resulting binary.
9408 hardcode_direct=$hardcode_direct
9409
9410 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9411 # resulting binary.
9412 hardcode_minus_L=$hardcode_minus_L
9413
9414 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9415 # the resulting binary.
9416 hardcode_shlibpath_var=$hardcode_shlibpath_var
9417
9418 # Set to yes if building a shared library automatically hardcodes DIR into the library
9419 # and all subsequent libraries and executables linked against it.
9420 hardcode_automatic=$hardcode_automatic
9421
9422 # Variables whose values should be saved in libtool wrapper scripts and
9423 # restored at relink time.
9424 variables_saved_for_relink="$variables_saved_for_relink"
9425
9426 # Whether libtool must link a program against all its dependency libraries.
9427 link_all_deplibs=$link_all_deplibs
9428
9429 # Compile-time system search path for libraries
9430 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9431
9432 # Run-time system search path for libraries
9433 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9434
9435 # Fix the shell variable \$srcfile for the compiler.
9436 fix_srcfile_path="$fix_srcfile_path"
9437
9438 # Set to yes if exported symbols are required.
9439 always_export_symbols=$always_export_symbols
9440
9441 # The commands to list exported symbols.
9442 export_symbols_cmds=$lt_export_symbols_cmds
9443
9444 # The commands to extract the exported symbol list from a shared archive.
9445 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9446
9447 # Symbols that should not be listed in the preloaded symbols.
9448 exclude_expsyms=$lt_exclude_expsyms
9449
9450 # Symbols that must always be exported.
9451 include_expsyms=$lt_include_expsyms
9452
9453 # ### END LIBTOOL CONFIG
9454
9455 __EOF__
9456
9457
9458   case $host_os in
9459   aix3*)
9460     cat <<\EOF >> "$cfgfile"
9461
9462 # AIX sometimes has problems with the GCC collect2 program.  For some
9463 # reason, if we set the COLLECT_NAMES environment variable, the problems
9464 # vanish in a puff of smoke.
9465 if test "X${COLLECT_NAMES+set}" != Xset; then
9466   COLLECT_NAMES=
9467   export COLLECT_NAMES
9468 fi
9469 EOF
9470     ;;
9471   esac
9472
9473   # We use sed instead of cat because bash on DJGPP gets confused if
9474   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9475   # text mode, it properly converts lines to CR/LF.  This bash problem
9476   # is reportedly fixed, but why not run on old versions too?
9477   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9478
9479   mv -f "$cfgfile" "$ofile" || \
9480     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9481   chmod +x "$ofile"
9482
9483 else
9484   # If there is no Makefile yet, we rely on a make rule to execute
9485   # `config.status --recheck' to rerun these tests and create the
9486   # libtool script then.
9487   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9488   if test -f "$ltmain_in"; then
9489     test -f Makefile && make "$ltmain"
9490   fi
9491 fi
9492
9493
9494 ac_ext=c
9495 ac_cpp='$CPP $CPPFLAGS'
9496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9499
9500 CC="$lt_save_CC"
9501
9502
9503 # Check whether --with-tags or --without-tags was given.
9504 if test "${with_tags+set}" = set; then
9505   withval="$with_tags"
9506   tagnames="$withval"
9507 fi;
9508
9509 if test -f "$ltmain" && test -n "$tagnames"; then
9510   if test ! -f "${ofile}"; then
9511     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9512 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9513   fi
9514
9515   if test -z "$LTCC"; then
9516     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9517     if test -z "$LTCC"; then
9518       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9519 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9520     else
9521       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9522 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9523     fi
9524   fi
9525
9526   # Extract list of available tagged configurations in $ofile.
9527   # Note that this assumes the entire list is on one line.
9528   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9529
9530   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9531   for tagname in $tagnames; do
9532     IFS="$lt_save_ifs"
9533     # Check whether tagname contains only valid characters
9534     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9535     "") ;;
9536     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9537 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9538    { (exit 1); exit 1; }; }
9539         ;;
9540     esac
9541
9542     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9543     then
9544       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9545 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9546    { (exit 1); exit 1; }; }
9547     fi
9548
9549     # Update the list of available tags.
9550     if test -n "$tagname"; then
9551       echo appending configuration tag \"$tagname\" to $ofile
9552
9553       case $tagname in
9554       CXX)
9555         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9556           ac_ext=cc
9557 ac_cpp='$CXXCPP $CPPFLAGS'
9558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9561
9562
9563
9564
9565 archive_cmds_need_lc_CXX=no
9566 allow_undefined_flag_CXX=
9567 always_export_symbols_CXX=no
9568 archive_expsym_cmds_CXX=
9569 export_dynamic_flag_spec_CXX=
9570 hardcode_direct_CXX=no
9571 hardcode_libdir_flag_spec_CXX=
9572 hardcode_libdir_flag_spec_ld_CXX=
9573 hardcode_libdir_separator_CXX=
9574 hardcode_minus_L_CXX=no
9575 hardcode_automatic_CXX=no
9576 module_cmds_CXX=
9577 module_expsym_cmds_CXX=
9578 link_all_deplibs_CXX=unknown
9579 old_archive_cmds_CXX=$old_archive_cmds
9580 no_undefined_flag_CXX=
9581 whole_archive_flag_spec_CXX=
9582 enable_shared_with_static_runtimes_CXX=no
9583
9584 # Dependencies to place before and after the object being linked:
9585 predep_objects_CXX=
9586 postdep_objects_CXX=
9587 predeps_CXX=
9588 postdeps_CXX=
9589 compiler_lib_search_path_CXX=
9590
9591 # Source file extension for C++ test sources.
9592 ac_ext=cc
9593
9594 # Object file extension for compiled C++ test sources.
9595 objext=o
9596 objext_CXX=$objext
9597
9598 # Code to be used in simple compile tests
9599 lt_simple_compile_test_code="int some_variable = 0;\n"
9600
9601 # Code to be used in simple link tests
9602 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9603
9604 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9605
9606 # If no C compiler was specified, use CC.
9607 LTCC=${LTCC-"$CC"}
9608
9609 # Allow CC to be a program name with arguments.
9610 compiler=$CC
9611
9612
9613 # Allow CC to be a program name with arguments.
9614 lt_save_CC=$CC
9615 lt_save_LD=$LD
9616 lt_save_GCC=$GCC
9617 GCC=$GXX
9618 lt_save_with_gnu_ld=$with_gnu_ld
9619 lt_save_path_LD=$lt_cv_path_LD
9620 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9621   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9622 else
9623   unset lt_cv_prog_gnu_ld
9624 fi
9625 if test -n "${lt_cv_path_LDCXX+set}"; then
9626   lt_cv_path_LD=$lt_cv_path_LDCXX
9627 else
9628   unset lt_cv_path_LD
9629 fi
9630 test -z "${LDCXX+set}" || LD=$LDCXX
9631 CC=${CXX-"c++"}
9632 compiler=$CC
9633 compiler_CXX=$CC
9634 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9635
9636 # We don't want -fno-exception wen compiling C++ code, so set the
9637 # no_builtin_flag separately
9638 if test "$GXX" = yes; then
9639   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9640 else
9641   lt_prog_compiler_no_builtin_flag_CXX=
9642 fi
9643
9644 if test "$GXX" = yes; then
9645   # Set up default GNU C++ configuration
9646
9647
9648 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9649 if test "${with_gnu_ld+set}" = set; then
9650   withval="$with_gnu_ld"
9651   test "$withval" = no || with_gnu_ld=yes
9652 else
9653   with_gnu_ld=no
9654 fi;
9655 ac_prog=ld
9656 if test "$GCC" = yes; then
9657   # Check if gcc -print-prog-name=ld gives a path.
9658   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9659 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9660   case $host in
9661   *-*-mingw*)
9662     # gcc leaves a trailing carriage return which upsets mingw
9663     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9664   *)
9665     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9666   esac
9667   case $ac_prog in
9668     # Accept absolute paths.
9669     [\\/]* | ?:[\\/]*)
9670       re_direlt='/[^/][^/]*/\.\./'
9671       # Canonicalize the pathname of ld
9672       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9673       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9674         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9675       done
9676       test -z "$LD" && LD="$ac_prog"
9677       ;;
9678   "")
9679     # If it fails, then pretend we aren't using GCC.
9680     ac_prog=ld
9681     ;;
9682   *)
9683     # If it is relative, then search for the first ld in PATH.
9684     with_gnu_ld=unknown
9685     ;;
9686   esac
9687 elif test "$with_gnu_ld" = yes; then
9688   echo "$as_me:$LINENO: checking for GNU ld" >&5
9689 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9690 else
9691   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9692 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9693 fi
9694 if test "${lt_cv_path_LD+set}" = set; then
9695   echo $ECHO_N "(cached) $ECHO_C" >&6
9696 else
9697   if test -z "$LD"; then
9698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9699   for ac_dir in $PATH; do
9700     IFS="$lt_save_ifs"
9701     test -z "$ac_dir" && ac_dir=.
9702     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9703       lt_cv_path_LD="$ac_dir/$ac_prog"
9704       # Check to see if the program is GNU ld.  I'd rather use --version,
9705       # but apparently some GNU ld's only accept -v.
9706       # Break only if it was the GNU/non-GNU ld that we prefer.
9707       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9708       *GNU* | *'with BFD'*)
9709         test "$with_gnu_ld" != no && break
9710         ;;
9711       *)
9712         test "$with_gnu_ld" != yes && break
9713         ;;
9714       esac
9715     fi
9716   done
9717   IFS="$lt_save_ifs"
9718 else
9719   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9720 fi
9721 fi
9722
9723 LD="$lt_cv_path_LD"
9724 if test -n "$LD"; then
9725   echo "$as_me:$LINENO: result: $LD" >&5
9726 echo "${ECHO_T}$LD" >&6
9727 else
9728   echo "$as_me:$LINENO: result: no" >&5
9729 echo "${ECHO_T}no" >&6
9730 fi
9731 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9732 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9733    { (exit 1); exit 1; }; }
9734 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9735 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9736 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9737   echo $ECHO_N "(cached) $ECHO_C" >&6
9738 else
9739   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9740 case `$LD -v 2>&1 </dev/null` in
9741 *GNU* | *'with BFD'*)
9742   lt_cv_prog_gnu_ld=yes
9743   ;;
9744 *)
9745   lt_cv_prog_gnu_ld=no
9746   ;;
9747 esac
9748 fi
9749 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9750 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9751 with_gnu_ld=$lt_cv_prog_gnu_ld
9752
9753
9754
9755   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9756   # archiving commands below assume that GNU ld is being used.
9757   if test "$with_gnu_ld" = yes; then
9758     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9759     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'
9760
9761     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9762     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9763
9764     # If archive_cmds runs LD, not CC, wlarc should be empty
9765     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9766     #     investigate it a little bit more. (MM)
9767     wlarc='${wl}'
9768
9769     # ancient GNU ld didn't support --whole-archive et. al.
9770     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9771         grep 'no-whole-archive' > /dev/null; then
9772       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9773     else
9774       whole_archive_flag_spec_CXX=
9775     fi
9776   else
9777     with_gnu_ld=no
9778     wlarc=
9779
9780     # A generic and very simple default shared library creation
9781     # command for GNU C++ for the case where it uses the native
9782     # linker, instead of GNU ld.  If possible, this setting should
9783     # overridden to take advantage of the native linker features on
9784     # the platform it is being used on.
9785     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9786   fi
9787
9788   # Commands to make compiler produce verbose output that lists
9789   # what "hidden" libraries, object files and flags are used when
9790   # linking a shared library.
9791   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9792
9793 else
9794   GXX=no
9795   with_gnu_ld=no
9796   wlarc=
9797 fi
9798
9799 # PORTME: fill in a description of your system's C++ link characteristics
9800 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9801 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9802 ld_shlibs_CXX=yes
9803 case $host_os in
9804   aix3*)
9805     # FIXME: insert proper C++ library support
9806     ld_shlibs_CXX=no
9807     ;;
9808   aix4* | aix5*)
9809     if test "$host_cpu" = ia64; then
9810       # On IA64, the linker does run time linking by default, so we don't
9811       # have to do anything special.
9812       aix_use_runtimelinking=no
9813       exp_sym_flag='-Bexport'
9814       no_entry_flag=""
9815     else
9816       aix_use_runtimelinking=no
9817
9818       # Test if we are trying to use run time linking or normal
9819       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9820       # need to do runtime linking.
9821       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9822         for ld_flag in $LDFLAGS; do
9823           case $ld_flag in
9824           *-brtl*)
9825             aix_use_runtimelinking=yes
9826             break
9827             ;;
9828           esac
9829         done
9830       esac
9831
9832       exp_sym_flag='-bexport'
9833       no_entry_flag='-bnoentry'
9834     fi
9835
9836     # When large executables or shared objects are built, AIX ld can
9837     # have problems creating the table of contents.  If linking a library
9838     # or program results in "error TOC overflow" add -mminimal-toc to
9839     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9840     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9841
9842     archive_cmds_CXX=''
9843     hardcode_direct_CXX=yes
9844     hardcode_libdir_separator_CXX=':'
9845     link_all_deplibs_CXX=yes
9846
9847     if test "$GXX" = yes; then
9848       case $host_os in aix4.012|aix4.012.*)
9849       # We only want to do this on AIX 4.2 and lower, the check
9850       # below for broken collect2 doesn't work under 4.3+
9851         collect2name=`${CC} -print-prog-name=collect2`
9852         if test -f "$collect2name" && \
9853            strings "$collect2name" | grep resolve_lib_name >/dev/null
9854         then
9855           # We have reworked collect2
9856           hardcode_direct_CXX=yes
9857         else
9858           # We have old collect2
9859           hardcode_direct_CXX=unsupported
9860           # It fails to find uninstalled libraries when the uninstalled
9861           # path is not listed in the libpath.  Setting hardcode_minus_L
9862           # to unsupported forces relinking
9863           hardcode_minus_L_CXX=yes
9864           hardcode_libdir_flag_spec_CXX='-L$libdir'
9865           hardcode_libdir_separator_CXX=
9866         fi
9867       esac
9868       shared_flag='-shared'
9869     else
9870       # not using gcc
9871       if test "$host_cpu" = ia64; then
9872         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9873         # chokes on -Wl,-G. The following line is correct:
9874         shared_flag='-G'
9875       else
9876         if test "$aix_use_runtimelinking" = yes; then
9877           shared_flag='${wl}-G'
9878         else
9879           shared_flag='${wl}-bM:SRE'
9880         fi
9881       fi
9882     fi
9883
9884     # It seems that -bexpall does not export symbols beginning with
9885     # underscore (_), so it is better to generate a list of symbols to export.
9886     always_export_symbols_CXX=yes
9887     if test "$aix_use_runtimelinking" = yes; then
9888       # Warning - without using the other runtime loading flags (-brtl),
9889       # -berok will link without error, but may produce a broken library.
9890       allow_undefined_flag_CXX='-berok'
9891       # Determine the default libpath from the value encoded in an empty executable.
9892       cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898
9899 int
9900 main ()
9901 {
9902
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 rm -f conftest.$ac_objext conftest$ac_exeext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9909   (eval $ac_link) 2>conftest.er1
9910   ac_status=$?
9911   grep -v '^ *+' conftest.er1 >conftest.err
9912   rm -f conftest.er1
9913   cat conftest.err >&5
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918   (eval $ac_try) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; } &&
9922          { ac_try='test -s conftest$ac_exeext'
9923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924   (eval $ac_try) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); }; }; then
9928
9929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9930 }'`
9931 # Check for a 64-bit object if we didn't find anything.
9932 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; }
9933 }'`; fi
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 fi
9939 rm -f conftest.err conftest.$ac_objext \
9940       conftest$ac_exeext conftest.$ac_ext
9941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9942
9943       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9944
9945       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"
9946      else
9947       if test "$host_cpu" = ia64; then
9948         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9949         allow_undefined_flag_CXX="-z nodefs"
9950         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"
9951       else
9952         # Determine the default libpath from the value encoded in an empty executable.
9953         cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959
9960 int
9961 main ()
9962 {
9963
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970   (eval $ac_link) 2>conftest.er1
9971   ac_status=$?
9972   grep -v '^ *+' conftest.er1 >conftest.err
9973   rm -f conftest.er1
9974   cat conftest.err >&5
9975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976   (exit $ac_status); } &&
9977          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979   (eval $ac_try) 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); }; } &&
9983          { ac_try='test -s conftest$ac_exeext'
9984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985   (eval $ac_try) 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; }; then
9989
9990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9991 }'`
9992 # Check for a 64-bit object if we didn't find anything.
9993 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; }
9994 }'`; fi
9995 else
9996   echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9998
9999 fi
10000 rm -f conftest.err conftest.$ac_objext \
10001       conftest$ac_exeext conftest.$ac_ext
10002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10003
10004         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10005         # Warning - without using the other run time loading flags,
10006         # -berok will link without error, but may produce a broken library.
10007         no_undefined_flag_CXX=' ${wl}-bernotok'
10008         allow_undefined_flag_CXX=' ${wl}-berok'
10009         # -bexpall does not export symbols beginning with underscore (_)
10010         always_export_symbols_CXX=yes
10011         # Exported symbols can be pulled into shared objects from archives
10012         whole_archive_flag_spec_CXX=' '
10013         archive_cmds_need_lc_CXX=yes
10014         # This is similar to how AIX traditionally builds it's shared libraries.
10015         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'
10016       fi
10017     fi
10018     ;;
10019   chorus*)
10020     case $cc_basename in
10021       *)
10022         # FIXME: insert proper C++ library support
10023         ld_shlibs_CXX=no
10024         ;;
10025     esac
10026     ;;
10027
10028   cygwin* | mingw* | pw32*)
10029     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10030     # as there is no search path for DLLs.
10031     hardcode_libdir_flag_spec_CXX='-L$libdir'
10032     allow_undefined_flag_CXX=unsupported
10033     always_export_symbols_CXX=no
10034     enable_shared_with_static_runtimes_CXX=yes
10035
10036     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10037       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'
10038       # If the export-symbols file already is a .def file (1st line
10039       # is EXPORTS), use it as is; otherwise, prepend...
10040       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10041         cp $export_symbols $output_objdir/$soname.def;
10042       else
10043         echo EXPORTS > $output_objdir/$soname.def;
10044         cat $export_symbols >> $output_objdir/$soname.def;
10045       fi~
10046       $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'
10047     else
10048       ld_shlibs_CXX=no
10049     fi
10050   ;;
10051
10052   darwin* | rhapsody*)
10053   if test "$GXX" = yes; then
10054     archive_cmds_need_lc_CXX=no
10055     case "$host_os" in
10056     rhapsody* | darwin1.[012])
10057       allow_undefined_flag_CXX='-undefined suppress'
10058       ;;
10059     *) # Darwin 1.3 on
10060       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10061         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10062       else
10063         case ${MACOSX_DEPLOYMENT_TARGET} in
10064           10.[012])
10065             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10066             ;;
10067           10.*)
10068             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10069             ;;
10070         esac
10071       fi
10072       ;;
10073     esac
10074     lt_int_apple_cc_single_mod=no
10075     output_verbose_link_cmd='echo'
10076     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10077       lt_int_apple_cc_single_mod=yes
10078     fi
10079     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10080       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10081     else
10082       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'
10083     fi
10084     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10085
10086     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10087     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10088       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}'
10089     else
10090       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}'
10091     fi
10092     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}'
10093     hardcode_direct_CXX=no
10094     hardcode_automatic_CXX=yes
10095     hardcode_shlibpath_var_CXX=unsupported
10096     whole_archive_flag_spec_CXX='-all_load $convenience'
10097     link_all_deplibs_CXX=yes
10098   else
10099     ld_shlibs_CXX=no
10100   fi
10101     ;;
10102
10103   dgux*)
10104     case $cc_basename in
10105       ec++)
10106         # FIXME: insert proper C++ library support
10107         ld_shlibs_CXX=no
10108         ;;
10109       ghcx)
10110         # Green Hills C++ Compiler
10111         # FIXME: insert proper C++ library support
10112         ld_shlibs_CXX=no
10113         ;;
10114       *)
10115         # FIXME: insert proper C++ library support
10116         ld_shlibs_CXX=no
10117         ;;
10118     esac
10119     ;;
10120   freebsd12*)
10121     # C++ shared libraries reported to be fairly broken before switch to ELF
10122     ld_shlibs_CXX=no
10123     ;;
10124   freebsd-elf*)
10125     archive_cmds_need_lc_CXX=no
10126     ;;
10127   freebsd* | kfreebsd*-gnu)
10128     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10129     # conventions
10130     ld_shlibs_CXX=yes
10131     ;;
10132   gnu*)
10133     ;;
10134   hpux9*)
10135     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10136     hardcode_libdir_separator_CXX=:
10137     export_dynamic_flag_spec_CXX='${wl}-E'
10138     hardcode_direct_CXX=yes
10139     hardcode_minus_L_CXX=yes # Not in the search PATH,
10140                                 # but as the default
10141                                 # location of the library.
10142
10143     case $cc_basename in
10144     CC)
10145       # FIXME: insert proper C++ library support
10146       ld_shlibs_CXX=no
10147       ;;
10148     aCC)
10149       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'
10150       # Commands to make compiler produce verbose output that lists
10151       # what "hidden" libraries, object files and flags are used when
10152       # linking a shared library.
10153       #
10154       # There doesn't appear to be a way to prevent this compiler from
10155       # explicitly linking system object files so we need to strip them
10156       # from the output so that they don't get included in the library
10157       # dependencies.
10158       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10159       ;;
10160     *)
10161       if test "$GXX" = yes; then
10162         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'
10163       else
10164         # FIXME: insert proper C++ library support
10165         ld_shlibs_CXX=no
10166       fi
10167       ;;
10168     esac
10169     ;;
10170   hpux10*|hpux11*)
10171     if test $with_gnu_ld = no; then
10172       case "$host_cpu" in
10173       hppa*64*)
10174         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10175         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10176         hardcode_libdir_separator_CXX=:
10177         ;;
10178       ia64*)
10179         hardcode_libdir_flag_spec_CXX='-L$libdir'
10180         ;;
10181       *)
10182         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10183         hardcode_libdir_separator_CXX=:
10184         export_dynamic_flag_spec_CXX='${wl}-E'
10185         ;;
10186       esac
10187     fi
10188     case "$host_cpu" in
10189     hppa*64*)
10190       hardcode_direct_CXX=no
10191       hardcode_shlibpath_var_CXX=no
10192       ;;
10193     ia64*)
10194       hardcode_direct_CXX=no
10195       hardcode_shlibpath_var_CXX=no
10196       hardcode_minus_L_CXX=yes # Not in the search PATH,
10197                                               # but as the default
10198                                               # location of the library.
10199       ;;
10200     *)
10201       hardcode_direct_CXX=yes
10202       hardcode_minus_L_CXX=yes # Not in the search PATH,
10203                                               # but as the default
10204                                               # location of the library.
10205       ;;
10206     esac
10207
10208     case $cc_basename in
10209       CC)
10210         # FIXME: insert proper C++ library support
10211         ld_shlibs_CXX=no
10212         ;;
10213       aCC)
10214         case "$host_cpu" in
10215         hppa*64*|ia64*)
10216           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10217           ;;
10218         *)
10219           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10220           ;;
10221         esac
10222         # Commands to make compiler produce verbose output that lists
10223         # what "hidden" libraries, object files and flags are used when
10224         # linking a shared library.
10225         #
10226         # There doesn't appear to be a way to prevent this compiler from
10227         # explicitly linking system object files so we need to strip them
10228         # from the output so that they don't get included in the library
10229         # dependencies.
10230         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'
10231         ;;
10232       *)
10233         if test "$GXX" = yes; then
10234           if test $with_gnu_ld = no; then
10235             case "$host_cpu" in
10236             ia64*|hppa*64*)
10237               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10238               ;;
10239             *)
10240               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'
10241               ;;
10242             esac
10243           fi
10244         else
10245           # FIXME: insert proper C++ library support
10246           ld_shlibs_CXX=no
10247         fi
10248         ;;
10249     esac
10250     ;;
10251   irix5* | irix6*)
10252     case $cc_basename in
10253       CC)
10254         # SGI C++
10255         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'
10256
10257         # Archives containing C++ object files must be created using
10258         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10259         # necessary to make sure instantiated templates are included
10260         # in the archive.
10261         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10262         ;;
10263       *)
10264         if test "$GXX" = yes; then
10265           if test "$with_gnu_ld" = no; then
10266             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'
10267           else
10268             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'
10269           fi
10270         fi
10271         link_all_deplibs_CXX=yes
10272         ;;
10273     esac
10274     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10275     hardcode_libdir_separator_CXX=:
10276     ;;
10277   linux*)
10278     case $cc_basename in
10279       KCC)
10280         # Kuck and Associates, Inc. (KAI) C++ Compiler
10281
10282         # KCC will only create a shared library if the output file
10283         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10284         # to its proper name (with version) after linking.
10285         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'
10286         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'
10287         # Commands to make compiler produce verbose output that lists
10288         # what "hidden" libraries, object files and flags are used when
10289         # linking a shared library.
10290         #
10291         # There doesn't appear to be a way to prevent this compiler from
10292         # explicitly linking system object files so we need to strip them
10293         # from the output so that they don't get included in the library
10294         # dependencies.
10295         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'
10296
10297         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10298         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10299
10300         # Archives containing C++ object files must be created using
10301         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10302         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10303         ;;
10304       icpc)
10305         # Intel C++
10306         with_gnu_ld=yes
10307         archive_cmds_need_lc_CXX=no
10308         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10309         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'
10310         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10311         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10312         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10313         ;;
10314       cxx)
10315         # Compaq C++
10316         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10317         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'
10318
10319         runpath_var=LD_RUN_PATH
10320         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10321         hardcode_libdir_separator_CXX=:
10322
10323         # Commands to make compiler produce verbose output that lists
10324         # what "hidden" libraries, object files and flags are used when
10325         # linking a shared library.
10326         #
10327         # There doesn't appear to be a way to prevent this compiler from
10328         # explicitly linking system object files so we need to strip them
10329         # from the output so that they don't get included in the library
10330         # dependencies.
10331         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'
10332         ;;
10333     esac
10334     ;;
10335   lynxos*)
10336     # FIXME: insert proper C++ library support
10337     ld_shlibs_CXX=no
10338     ;;
10339   m88k*)
10340     # FIXME: insert proper C++ library support
10341     ld_shlibs_CXX=no
10342     ;;
10343   mvs*)
10344     case $cc_basename in
10345       cxx)
10346         # FIXME: insert proper C++ library support
10347         ld_shlibs_CXX=no
10348         ;;
10349       *)
10350         # FIXME: insert proper C++ library support
10351         ld_shlibs_CXX=no
10352         ;;
10353     esac
10354     ;;
10355   netbsd* | knetbsd*-gnu)
10356     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10357       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10358       wlarc=
10359       hardcode_libdir_flag_spec_CXX='-R$libdir'
10360       hardcode_direct_CXX=yes
10361       hardcode_shlibpath_var_CXX=no
10362     fi
10363     # Workaround some broken pre-1.5 toolchains
10364     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10365     ;;
10366   osf3*)
10367     case $cc_basename in
10368       KCC)
10369         # Kuck and Associates, Inc. (KAI) C++ Compiler
10370
10371         # KCC will only create a shared library if the output file
10372         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10373         # to its proper name (with version) after linking.
10374         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'
10375
10376         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10377         hardcode_libdir_separator_CXX=:
10378
10379         # Archives containing C++ object files must be created using
10380         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10381         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10382
10383         ;;
10384       RCC)
10385         # Rational C++ 2.4.1
10386         # FIXME: insert proper C++ library support
10387         ld_shlibs_CXX=no
10388         ;;
10389       cxx)
10390         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10391         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'
10392
10393         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10394         hardcode_libdir_separator_CXX=:
10395
10396         # Commands to make compiler produce verbose output that lists
10397         # what "hidden" libraries, object files and flags are used when
10398         # linking a shared library.
10399         #
10400         # There doesn't appear to be a way to prevent this compiler from
10401         # explicitly linking system object files so we need to strip them
10402         # from the output so that they don't get included in the library
10403         # dependencies.
10404         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'
10405         ;;
10406       *)
10407         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10408           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10409           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'
10410
10411           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10412           hardcode_libdir_separator_CXX=:
10413
10414           # Commands to make compiler produce verbose output that lists
10415           # what "hidden" libraries, object files and flags are used when
10416           # linking a shared library.
10417           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10418
10419         else
10420           # FIXME: insert proper C++ library support
10421           ld_shlibs_CXX=no
10422         fi
10423         ;;
10424     esac
10425     ;;
10426   osf4* | osf5*)
10427     case $cc_basename in
10428       KCC)
10429         # Kuck and Associates, Inc. (KAI) C++ Compiler
10430
10431         # KCC will only create a shared library if the output file
10432         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10433         # to its proper name (with version) after linking.
10434         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'
10435
10436         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10437         hardcode_libdir_separator_CXX=:
10438
10439         # Archives containing C++ object files must be created using
10440         # the KAI C++ compiler.
10441         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10442         ;;
10443       RCC)
10444         # Rational C++ 2.4.1
10445         # FIXME: insert proper C++ library support
10446         ld_shlibs_CXX=no
10447         ;;
10448       cxx)
10449         allow_undefined_flag_CXX=' -expect_unresolved \*'
10450         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'
10451         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10452           echo "-hidden">> $lib.exp~
10453           $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~
10454           $rm $lib.exp'
10455
10456         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10457         hardcode_libdir_separator_CXX=:
10458
10459         # Commands to make compiler produce verbose output that lists
10460         # what "hidden" libraries, object files and flags are used when
10461         # linking a shared library.
10462         #
10463         # There doesn't appear to be a way to prevent this compiler from
10464         # explicitly linking system object files so we need to strip them
10465         # from the output so that they don't get included in the library
10466         # dependencies.
10467         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'
10468         ;;
10469       *)
10470         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10471           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10472          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'
10473
10474           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10475           hardcode_libdir_separator_CXX=:
10476
10477           # Commands to make compiler produce verbose output that lists
10478           # what "hidden" libraries, object files and flags are used when
10479           # linking a shared library.
10480           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10481
10482         else
10483           # FIXME: insert proper C++ library support
10484           ld_shlibs_CXX=no
10485         fi
10486         ;;
10487     esac
10488     ;;
10489   psos*)
10490     # FIXME: insert proper C++ library support
10491     ld_shlibs_CXX=no
10492     ;;
10493   sco*)
10494     archive_cmds_need_lc_CXX=no
10495     case $cc_basename in
10496       CC)
10497         # FIXME: insert proper C++ library support
10498         ld_shlibs_CXX=no
10499         ;;
10500       *)
10501         # FIXME: insert proper C++ library support
10502         ld_shlibs_CXX=no
10503         ;;
10504     esac
10505     ;;
10506   sunos4*)
10507     case $cc_basename in
10508       CC)
10509         # Sun C++ 4.x
10510         # FIXME: insert proper C++ library support
10511         ld_shlibs_CXX=no
10512         ;;
10513       lcc)
10514         # Lucid
10515         # FIXME: insert proper C++ library support
10516         ld_shlibs_CXX=no
10517         ;;
10518       *)
10519         # FIXME: insert proper C++ library support
10520         ld_shlibs_CXX=no
10521         ;;
10522     esac
10523     ;;
10524   solaris*)
10525     case $cc_basename in
10526       CC)
10527         # Sun C++ 4.2, 5.x and Centerline C++
10528         no_undefined_flag_CXX=' -zdefs'
10529         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10530         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10531         $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'
10532
10533         hardcode_libdir_flag_spec_CXX='-R$libdir'
10534         hardcode_shlibpath_var_CXX=no
10535         case $host_os in
10536           solaris2.0-5 | solaris2.0-5.*) ;;
10537           *)
10538             # The C++ compiler is used as linker so we must use $wl
10539             # flag to pass the commands to the underlying system
10540             # linker.
10541             # Supported since Solaris 2.6 (maybe 2.5.1?)
10542             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10543             ;;
10544         esac
10545         link_all_deplibs_CXX=yes
10546
10547         # Commands to make compiler produce verbose output that lists
10548         # what "hidden" libraries, object files and flags are used when
10549         # linking a shared library.
10550         #
10551         # There doesn't appear to be a way to prevent this compiler from
10552         # explicitly linking system object files so we need to strip them
10553         # from the output so that they don't get included in the library
10554         # dependencies.
10555         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'
10556
10557         # Archives containing C++ object files must be created using
10558         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10559         # necessary to make sure instantiated templates are included
10560         # in the archive.
10561         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10562         ;;
10563       gcx)
10564         # Green Hills C++ Compiler
10565         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10566
10567         # The C++ compiler must be used to create the archive.
10568         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10569         ;;
10570       *)
10571         # GNU C++ compiler with Solaris linker
10572         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10573           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10574           if $CC --version | grep -v '^2\.7' > /dev/null; then
10575             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10576             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10577                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10578
10579             # Commands to make compiler produce verbose output that lists
10580             # what "hidden" libraries, object files and flags are used when
10581             # linking a shared library.
10582             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10583           else
10584             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10585             # platform.
10586             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10587             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10588                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10589
10590             # Commands to make compiler produce verbose output that lists
10591             # what "hidden" libraries, object files and flags are used when
10592             # linking a shared library.
10593             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10594           fi
10595
10596           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10597         fi
10598         ;;
10599     esac
10600     ;;
10601   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10602     archive_cmds_need_lc_CXX=no
10603     ;;
10604   tandem*)
10605     case $cc_basename in
10606       NCC)
10607         # NonStop-UX NCC 3.20
10608         # FIXME: insert proper C++ library support
10609         ld_shlibs_CXX=no
10610         ;;
10611       *)
10612         # FIXME: insert proper C++ library support
10613         ld_shlibs_CXX=no
10614         ;;
10615     esac
10616     ;;
10617   vxworks*)
10618     # FIXME: insert proper C++ library support
10619     ld_shlibs_CXX=no
10620     ;;
10621   *)
10622     # FIXME: insert proper C++ library support
10623     ld_shlibs_CXX=no
10624     ;;
10625 esac
10626 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10627 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10628 test "$ld_shlibs_CXX" = no && can_build_shared=no
10629
10630 GCC_CXX="$GXX"
10631 LD_CXX="$LD"
10632
10633
10634 cat > conftest.$ac_ext <<EOF
10635 class Foo
10636 {
10637 public:
10638   Foo (void) { a = 0; }
10639 private:
10640   int a;
10641 };
10642 EOF
10643
10644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10645   (eval $ac_compile) 2>&5
10646   ac_status=$?
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); }; then
10649   # Parse the compiler output and extract the necessary
10650   # objects, libraries and library flags.
10651
10652   # Sentinel used to keep track of whether or not we are before
10653   # the conftest object file.
10654   pre_test_object_deps_done=no
10655
10656   # The `*' in the case matches for architectures that use `case' in
10657   # $output_verbose_cmd can trigger glob expansion during the loop
10658   # eval without this substitution.
10659   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10660
10661   for p in `eval $output_verbose_link_cmd`; do
10662     case $p in
10663
10664     -L* | -R* | -l*)
10665        # Some compilers place space between "-{L,R}" and the path.
10666        # Remove the space.
10667        if test $p = "-L" \
10668           || test $p = "-R"; then
10669          prev=$p
10670          continue
10671        else
10672          prev=
10673        fi
10674
10675        if test "$pre_test_object_deps_done" = no; then
10676          case $p in
10677          -L* | -R*)
10678            # Internal compiler library paths should come after those
10679            # provided the user.  The postdeps already come after the
10680            # user supplied libs so there is no need to process them.
10681            if test -z "$compiler_lib_search_path_CXX"; then
10682              compiler_lib_search_path_CXX="${prev}${p}"
10683            else
10684              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10685            fi
10686            ;;
10687          # The "-l" case would never come before the object being
10688          # linked, so don't bother handling this case.
10689          esac
10690        else
10691          if test -z "$postdeps_CXX"; then
10692            postdeps_CXX="${prev}${p}"
10693          else
10694            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10695          fi
10696        fi
10697        ;;
10698
10699     *.$objext)
10700        # This assumes that the test object file only shows up
10701        # once in the compiler output.
10702        if test "$p" = "conftest.$objext"; then
10703          pre_test_object_deps_done=yes
10704          continue
10705        fi
10706
10707        if test "$pre_test_object_deps_done" = no; then
10708          if test -z "$predep_objects_CXX"; then
10709            predep_objects_CXX="$p"
10710          else
10711            predep_objects_CXX="$predep_objects_CXX $p"
10712          fi
10713        else
10714          if test -z "$postdep_objects_CXX"; then
10715            postdep_objects_CXX="$p"
10716          else
10717            postdep_objects_CXX="$postdep_objects_CXX $p"
10718          fi
10719        fi
10720        ;;
10721
10722     *) ;; # Ignore the rest.
10723
10724     esac
10725   done
10726
10727   # Clean up.
10728   rm -f a.out a.exe
10729 else
10730   echo "libtool.m4: error: problem compiling CXX test program"
10731 fi
10732
10733 $rm -f confest.$objext
10734
10735 case " $postdeps_CXX " in
10736 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10737 esac
10738
10739 lt_prog_compiler_wl_CXX=
10740 lt_prog_compiler_pic_CXX=
10741 lt_prog_compiler_static_CXX=
10742
10743 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10744 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10745
10746   # C++ specific cases for pic, static, wl, etc.
10747   if test "$GXX" = yes; then
10748     lt_prog_compiler_wl_CXX='-Wl,'
10749     lt_prog_compiler_static_CXX='-static'
10750
10751     case $host_os in
10752     aix*)
10753       # All AIX code is PIC.
10754       if test "$host_cpu" = ia64; then
10755         # AIX 5 now supports IA64 processor
10756         lt_prog_compiler_static_CXX='-Bstatic'
10757       fi
10758       ;;
10759     amigaos*)
10760       # FIXME: we need at least 68020 code to build shared libraries, but
10761       # adding the `-m68020' flag to GCC prevents building anything better,
10762       # like `-m68040'.
10763       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10764       ;;
10765     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10766       # PIC is the default for these OSes.
10767       ;;
10768     mingw* | os2* | pw32*)
10769       # This hack is so that the source file can tell whether it is being
10770       # built for inclusion in a dll (and should export symbols for example).
10771       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10772       ;;
10773     darwin* | rhapsody*)
10774       # PIC is the default on this platform
10775       # Common symbols not allowed in MH_DYLIB files
10776       lt_prog_compiler_pic_CXX='-fno-common'
10777       ;;
10778     *djgpp*)
10779       # DJGPP does not support shared libraries at all
10780       lt_prog_compiler_pic_CXX=
10781       ;;
10782     sysv4*MP*)
10783       if test -d /usr/nec; then
10784         lt_prog_compiler_pic_CXX=-Kconform_pic
10785       fi
10786       ;;
10787     hpux*)
10788       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10789       # not for PA HP-UX.
10790       case "$host_cpu" in
10791       hppa*64*|ia64*)
10792         ;;
10793       *)
10794         lt_prog_compiler_pic_CXX='-fPIC'
10795         ;;
10796       esac
10797       ;;
10798     *)
10799       lt_prog_compiler_pic_CXX='-fPIC'
10800       ;;
10801     esac
10802   else
10803     case $host_os in
10804       aix4* | aix5*)
10805         # All AIX code is PIC.
10806         if test "$host_cpu" = ia64; then
10807           # AIX 5 now supports IA64 processor
10808           lt_prog_compiler_static_CXX='-Bstatic'
10809         else
10810           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10811         fi
10812         ;;
10813       chorus*)
10814         case $cc_basename in
10815         cxch68)
10816           # Green Hills C++ Compiler
10817           # _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"
10818           ;;
10819         esac
10820         ;;
10821       dgux*)
10822         case $cc_basename in
10823           ec++)
10824             lt_prog_compiler_pic_CXX='-KPIC'
10825             ;;
10826           ghcx)
10827             # Green Hills C++ Compiler
10828             lt_prog_compiler_pic_CXX='-pic'
10829             ;;
10830           *)
10831             ;;
10832         esac
10833         ;;
10834       freebsd* | kfreebsd*-gnu)
10835         # FreeBSD uses GNU C++
10836         ;;
10837       hpux9* | hpux10* | hpux11*)
10838         case $cc_basename in
10839           CC)
10840             lt_prog_compiler_wl_CXX='-Wl,'
10841             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10842             if test "$host_cpu" != ia64; then
10843               lt_prog_compiler_pic_CXX='+Z'
10844             fi
10845             ;;
10846           aCC)
10847             lt_prog_compiler_wl_CXX='-Wl,'
10848             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10849             case "$host_cpu" in
10850             hppa*64*|ia64*)
10851               # +Z the default
10852               ;;
10853             *)
10854               lt_prog_compiler_pic_CXX='+Z'
10855               ;;
10856             esac
10857             ;;
10858           *)
10859             ;;
10860         esac
10861         ;;
10862       irix5* | irix6* | nonstopux*)
10863         case $cc_basename in
10864           CC)
10865             lt_prog_compiler_wl_CXX='-Wl,'
10866             lt_prog_compiler_static_CXX='-non_shared'
10867             # CC pic flag -KPIC is the default.
10868             ;;
10869           *)
10870             ;;
10871         esac
10872         ;;
10873       linux*)
10874         case $cc_basename in
10875           KCC)
10876             # KAI C++ Compiler
10877             lt_prog_compiler_wl_CXX='--backend -Wl,'
10878             lt_prog_compiler_pic_CXX='-fPIC'
10879             ;;
10880           icpc)
10881             # Intel C++
10882             lt_prog_compiler_wl_CXX='-Wl,'
10883             lt_prog_compiler_pic_CXX='-KPIC'
10884             lt_prog_compiler_static_CXX='-static'
10885             ;;
10886           cxx)
10887             # Compaq C++
10888             # Make sure the PIC flag is empty.  It appears that all Alpha
10889             # Linux and Compaq Tru64 Unix objects are PIC.
10890             lt_prog_compiler_pic_CXX=
10891             lt_prog_compiler_static_CXX='-non_shared'
10892             ;;
10893           *)
10894             ;;
10895         esac
10896         ;;
10897       lynxos*)
10898         ;;
10899       m88k*)
10900         ;;
10901       mvs*)
10902         case $cc_basename in
10903           cxx)
10904             lt_prog_compiler_pic_CXX='-W c,exportall'
10905             ;;
10906           *)
10907             ;;
10908         esac
10909         ;;
10910       netbsd* | knetbsd*-gnu)
10911         ;;
10912       osf3* | osf4* | osf5*)
10913         case $cc_basename in
10914           KCC)
10915             lt_prog_compiler_wl_CXX='--backend -Wl,'
10916             ;;
10917           RCC)
10918             # Rational C++ 2.4.1
10919             lt_prog_compiler_pic_CXX='-pic'
10920             ;;
10921           cxx)
10922             # Digital/Compaq C++
10923             lt_prog_compiler_wl_CXX='-Wl,'
10924             # Make sure the PIC flag is empty.  It appears that all Alpha
10925             # Linux and Compaq Tru64 Unix objects are PIC.
10926             lt_prog_compiler_pic_CXX=
10927             lt_prog_compiler_static_CXX='-non_shared'
10928             ;;
10929           *)
10930             ;;
10931         esac
10932         ;;
10933       psos*)
10934         ;;
10935       sco*)
10936         case $cc_basename in
10937           CC)
10938             lt_prog_compiler_pic_CXX='-fPIC'
10939             ;;
10940           *)
10941             ;;
10942         esac
10943         ;;
10944       solaris*)
10945         case $cc_basename in
10946           CC)
10947             # Sun C++ 4.2, 5.x and Centerline C++
10948             lt_prog_compiler_pic_CXX='-KPIC'
10949             lt_prog_compiler_static_CXX='-Bstatic'
10950             lt_prog_compiler_wl_CXX='-Qoption ld '
10951             ;;
10952           gcx)
10953             # Green Hills C++ Compiler
10954             lt_prog_compiler_pic_CXX='-PIC'
10955             ;;
10956           *)
10957             ;;
10958         esac
10959         ;;
10960       sunos4*)
10961         case $cc_basename in
10962           CC)
10963             # Sun C++ 4.x
10964             lt_prog_compiler_pic_CXX='-pic'
10965             lt_prog_compiler_static_CXX='-Bstatic'
10966             ;;
10967           lcc)
10968             # Lucid
10969             lt_prog_compiler_pic_CXX='-pic'
10970             ;;
10971           *)
10972             ;;
10973         esac
10974         ;;
10975       tandem*)
10976         case $cc_basename in
10977           NCC)
10978             # NonStop-UX NCC 3.20
10979             lt_prog_compiler_pic_CXX='-KPIC'
10980             ;;
10981           *)
10982             ;;
10983         esac
10984         ;;
10985       unixware*)
10986         ;;
10987       vxworks*)
10988         ;;
10989       *)
10990         lt_prog_compiler_can_build_shared_CXX=no
10991         ;;
10992     esac
10993   fi
10994
10995 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10996 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10997
10998 #
10999 # Check to make sure the PIC flag actually works.
11000 #
11001 if test -n "$lt_prog_compiler_pic_CXX"; then
11002
11003 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11004 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11005 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11006   echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008   lt_prog_compiler_pic_works_CXX=no
11009   ac_outfile=conftest.$ac_objext
11010    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11011    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11012    # Insert the option either (1) after the last *FLAGS variable, or
11013    # (2) before a word containing "conftest.", or (3) at the end.
11014    # Note that $ac_compile itself does not contain backslashes and begins
11015    # with a dollar sign (not a hyphen), so the echo should work correctly.
11016    # The option is referenced via a variable to avoid confusing sed.
11017    lt_compile=`echo "$ac_compile" | $SED \
11018    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11019    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11020    -e 's:$: $lt_compiler_flag:'`
11021    (eval echo "\"\$as_me:11021: $lt_compile\"" >&5)
11022    (eval "$lt_compile" 2>conftest.err)
11023    ac_status=$?
11024    cat conftest.err >&5
11025    echo "$as_me:11025: \$? = $ac_status" >&5
11026    if (exit $ac_status) && test -s "$ac_outfile"; then
11027      # The compiler can only warn and ignore the option if not recognized
11028      # So say no if there are warnings
11029      if test ! -s conftest.err; then
11030        lt_prog_compiler_pic_works_CXX=yes
11031      fi
11032    fi
11033    $rm conftest*
11034
11035 fi
11036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11037 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11038
11039 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11040     case $lt_prog_compiler_pic_CXX in
11041      "" | " "*) ;;
11042      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11043      esac
11044 else
11045     lt_prog_compiler_pic_CXX=
11046      lt_prog_compiler_can_build_shared_CXX=no
11047 fi
11048
11049 fi
11050 case "$host_os" in
11051   # For platforms which do not support PIC, -DPIC is meaningless:
11052   *djgpp*)
11053     lt_prog_compiler_pic_CXX=
11054     ;;
11055   *)
11056     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11057     ;;
11058 esac
11059
11060 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11061 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11062 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11063   echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065   lt_cv_prog_compiler_c_o_CXX=no
11066    $rm -r conftest 2>/dev/null
11067    mkdir conftest
11068    cd conftest
11069    mkdir out
11070    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11071
11072    lt_compiler_flag="-o out/conftest2.$ac_objext"
11073    # Insert the option either (1) after the last *FLAGS variable, or
11074    # (2) before a word containing "conftest.", or (3) at the end.
11075    # Note that $ac_compile itself does not contain backslashes and begins
11076    # with a dollar sign (not a hyphen), so the echo should work correctly.
11077    lt_compile=`echo "$ac_compile" | $SED \
11078    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11080    -e 's:$: $lt_compiler_flag:'`
11081    (eval echo "\"\$as_me:11081: $lt_compile\"" >&5)
11082    (eval "$lt_compile" 2>out/conftest.err)
11083    ac_status=$?
11084    cat out/conftest.err >&5
11085    echo "$as_me:11085: \$? = $ac_status" >&5
11086    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11087    then
11088      # The compiler can only warn and ignore the option if not recognized
11089      # So say no if there are warnings
11090      if test ! -s out/conftest.err; then
11091        lt_cv_prog_compiler_c_o_CXX=yes
11092      fi
11093    fi
11094    chmod u+w .
11095    $rm conftest*
11096    # SGI C++ compiler will create directory out/ii_files/ for
11097    # template instantiation
11098    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11099    $rm out/* && rmdir out
11100    cd ..
11101    rmdir conftest
11102    $rm conftest*
11103
11104 fi
11105 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11106 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11107
11108
11109 hard_links="nottested"
11110 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11111   # do not overwrite the value of need_locks provided by the user
11112   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11113 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11114   hard_links=yes
11115   $rm conftest*
11116   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11117   touch conftest.a
11118   ln conftest.a conftest.b 2>&5 || hard_links=no
11119   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11120   echo "$as_me:$LINENO: result: $hard_links" >&5
11121 echo "${ECHO_T}$hard_links" >&6
11122   if test "$hard_links" = no; then
11123     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11124 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11125     need_locks=warn
11126   fi
11127 else
11128   need_locks=no
11129 fi
11130
11131 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11132 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11133
11134   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11135   case $host_os in
11136   aix4* | aix5*)
11137     # If we're using GNU nm, then we don't want the "-C" option.
11138     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11139     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11140       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'
11141     else
11142       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'
11143     fi
11144     ;;
11145   pw32*)
11146     export_symbols_cmds_CXX="$ltdll_cmds"
11147   ;;
11148   cygwin* | mingw*)
11149     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11150   ;;
11151   *)
11152     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11153   ;;
11154   esac
11155
11156 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11157 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11158 test "$ld_shlibs_CXX" = no && can_build_shared=no
11159
11160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11161 if test "$GCC" = yes; then
11162   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11163 fi
11164
11165 #
11166 # Do we need to explicitly link libc?
11167 #
11168 case "x$archive_cmds_need_lc_CXX" in
11169 x|xyes)
11170   # Assume -lc should be added
11171   archive_cmds_need_lc_CXX=yes
11172
11173   if test "$enable_shared" = yes && test "$GCC" = yes; then
11174     case $archive_cmds_CXX in
11175     *'~'*)
11176       # FIXME: we may have to deal with multi-command sequences.
11177       ;;
11178     '$CC '*)
11179       # Test whether the compiler implicitly links with -lc since on some
11180       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11181       # to ld, don't add -lc before -lgcc.
11182       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11184       $rm conftest*
11185       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11186
11187       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11188   (eval $ac_compile) 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } 2>conftest.err; then
11192         soname=conftest
11193         lib=conftest
11194         libobjs=conftest.$ac_objext
11195         deplibs=
11196         wl=$lt_prog_compiler_wl_CXX
11197         compiler_flags=-v
11198         linker_flags=-v
11199         verstring=
11200         output_objdir=.
11201         libname=conftest
11202         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11203         allow_undefined_flag_CXX=
11204         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11205   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); }
11209         then
11210           archive_cmds_need_lc_CXX=no
11211         else
11212           archive_cmds_need_lc_CXX=yes
11213         fi
11214         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11215       else
11216         cat conftest.err 1>&5
11217       fi
11218       $rm conftest*
11219       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11220 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11221       ;;
11222     esac
11223   fi
11224   ;;
11225 esac
11226
11227 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11228 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11229 library_names_spec=
11230 libname_spec='lib$name'
11231 soname_spec=
11232 shrext=".so"
11233 postinstall_cmds=
11234 postuninstall_cmds=
11235 finish_cmds=
11236 finish_eval=
11237 shlibpath_var=
11238 shlibpath_overrides_runpath=unknown
11239 version_type=none
11240 dynamic_linker="$host_os ld.so"
11241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11242 if test "$GCC" = yes; then
11243   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11244   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11245     # if the path contains ";" then we assume it to be the separator
11246     # otherwise default to the standard path separator (i.e. ":") - it is
11247     # assumed that no part of a normal pathname contains ";" but that should
11248     # okay in the real world where ";" in dirpaths is itself problematic.
11249     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11250   else
11251     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11252   fi
11253 else
11254   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11255 fi
11256 need_lib_prefix=unknown
11257 hardcode_into_libs=no
11258
11259 # when you set need_version to no, make sure it does not cause -set_version
11260 # flags to be left without arguments
11261 need_version=unknown
11262
11263 case $host_os in
11264 aix3*)
11265   version_type=linux
11266   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11267   shlibpath_var=LIBPATH
11268
11269   # AIX 3 has no versioning support, so we append a major version to the name.
11270   soname_spec='${libname}${release}${shared_ext}$major'
11271   ;;
11272
11273 aix4* | aix5*)
11274   version_type=linux
11275   need_lib_prefix=no
11276   need_version=no
11277   hardcode_into_libs=yes
11278   if test "$host_cpu" = ia64; then
11279     # AIX 5 supports IA64
11280     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11281     shlibpath_var=LD_LIBRARY_PATH
11282   else
11283     # With GCC up to 2.95.x, collect2 would create an import file
11284     # for dependence libraries.  The import file would start with
11285     # the line `#! .'.  This would cause the generated library to
11286     # depend on `.', always an invalid library.  This was fixed in
11287     # development snapshots of GCC prior to 3.0.
11288     case $host_os in
11289       aix4 | aix4.[01] | aix4.[01].*)
11290       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11291            echo ' yes '
11292            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11293         :
11294       else
11295         can_build_shared=no
11296       fi
11297       ;;
11298     esac
11299     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11300     # soname into executable. Probably we can add versioning support to
11301     # collect2, so additional links can be useful in future.
11302     if test "$aix_use_runtimelinking" = yes; then
11303       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11304       # instead of lib<name>.a to let people know that these are not
11305       # typical AIX shared libraries.
11306       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307     else
11308       # We preserve .a as extension for shared libraries through AIX4.2
11309       # and later when we are not doing run time linking.
11310       library_names_spec='${libname}${release}.a $libname.a'
11311       soname_spec='${libname}${release}${shared_ext}$major'
11312     fi
11313     shlibpath_var=LIBPATH
11314   fi
11315   ;;
11316
11317 amigaos*)
11318   library_names_spec='$libname.ixlibrary $libname.a'
11319   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11320   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'
11321   ;;
11322
11323 beos*)
11324   library_names_spec='${libname}${shared_ext}'
11325   dynamic_linker="$host_os ld.so"
11326   shlibpath_var=LIBRARY_PATH
11327   ;;
11328
11329 bsdi4*)
11330   version_type=linux
11331   need_version=no
11332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333   soname_spec='${libname}${release}${shared_ext}$major'
11334   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11335   shlibpath_var=LD_LIBRARY_PATH
11336   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11337   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11338   # the default ld.so.conf also contains /usr/contrib/lib and
11339   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11340   # libtool to hard-code these into programs
11341   ;;
11342
11343 cygwin* | mingw* | pw32*)
11344   version_type=windows
11345   shrext=".dll"
11346   need_version=no
11347   need_lib_prefix=no
11348
11349   case $GCC,$host_os in
11350   yes,cygwin* | yes,mingw* | yes,pw32*)
11351     library_names_spec='$libname.dll.a'
11352     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11353     postinstall_cmds='base_file=`basename \${file}`~
11354       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11355       dldir=$destdir/`dirname \$dlpath`~
11356       test -d \$dldir || mkdir -p \$dldir~
11357       $install_prog $dir/$dlname \$dldir/$dlname'
11358     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11359       dlpath=$dir/\$dldll~
11360        $rm \$dlpath'
11361     shlibpath_overrides_runpath=yes
11362
11363     case $host_os in
11364     cygwin*)
11365       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11366       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11367       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11368       ;;
11369     mingw*)
11370       # MinGW DLLs use traditional 'lib' prefix
11371       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11372       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11373       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11374         # It is most probably a Windows format PATH printed by
11375         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11376         # path with ; separators, and with drive letters. We can handle the
11377         # drive letters (cygwin fileutils understands them), so leave them,
11378         # especially as we might pass files found there to a mingw objdump,
11379         # which wouldn't understand a cygwinified path. Ahh.
11380         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11381       else
11382         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11383       fi
11384       ;;
11385     pw32*)
11386       # pw32 DLLs use 'pw' prefix rather than 'lib'
11387       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11388       ;;
11389     esac
11390     ;;
11391
11392   *)
11393     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11394     ;;
11395   esac
11396   dynamic_linker='Win32 ld.exe'
11397   # FIXME: first we should search . and the directory the executable is in
11398   shlibpath_var=PATH
11399   ;;
11400
11401 darwin* | rhapsody*)
11402   dynamic_linker="$host_os dyld"
11403   version_type=darwin
11404   need_lib_prefix=no
11405   need_version=no
11406   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11407   soname_spec='${libname}${release}${major}$shared_ext'
11408   shlibpath_overrides_runpath=yes
11409   shlibpath_var=DYLD_LIBRARY_PATH
11410   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11411   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11412   if test "$GCC" = yes; then
11413     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"`
11414   else
11415     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11416   fi
11417   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11418   ;;
11419
11420 dgux*)
11421   version_type=linux
11422   need_lib_prefix=no
11423   need_version=no
11424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11425   soname_spec='${libname}${release}${shared_ext}$major'
11426   shlibpath_var=LD_LIBRARY_PATH
11427   ;;
11428
11429 freebsd1*)
11430   dynamic_linker=no
11431   ;;
11432
11433 kfreebsd*-gnu)
11434   version_type=linux
11435   need_lib_prefix=no
11436   need_version=no
11437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11438   soname_spec='${libname}${release}${shared_ext}$major'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   shlibpath_overrides_runpath=no
11441   hardcode_into_libs=yes
11442   dynamic_linker='GNU ld.so'
11443   ;;
11444
11445 freebsd*)
11446   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11447   version_type=freebsd-$objformat
11448   case $version_type in
11449     freebsd-elf*)
11450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11451       need_version=no
11452       need_lib_prefix=no
11453       ;;
11454     freebsd-*)
11455       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11456       need_version=yes
11457       ;;
11458   esac
11459   shlibpath_var=LD_LIBRARY_PATH
11460   case $host_os in
11461   freebsd2*)
11462     shlibpath_overrides_runpath=yes
11463     ;;
11464   freebsd3.01* | freebsdelf3.01*)
11465     shlibpath_overrides_runpath=yes
11466     hardcode_into_libs=yes
11467     ;;
11468   *) # from 3.2 on
11469     shlibpath_overrides_runpath=no
11470     hardcode_into_libs=yes
11471     ;;
11472   esac
11473   ;;
11474
11475 gnu*)
11476   version_type=linux
11477   need_lib_prefix=no
11478   need_version=no
11479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11480   soname_spec='${libname}${release}${shared_ext}$major'
11481   shlibpath_var=LD_LIBRARY_PATH
11482   hardcode_into_libs=yes
11483   ;;
11484
11485 hpux9* | hpux10* | hpux11*)
11486   # Give a soname corresponding to the major version so that dld.sl refuses to
11487   # link against other versions.
11488   version_type=sunos
11489   need_lib_prefix=no
11490   need_version=no
11491   case "$host_cpu" in
11492   ia64*)
11493     shrext='.so'
11494     hardcode_into_libs=yes
11495     dynamic_linker="$host_os dld.so"
11496     shlibpath_var=LD_LIBRARY_PATH
11497     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499     soname_spec='${libname}${release}${shared_ext}$major'
11500     if test "X$HPUX_IA64_MODE" = X32; then
11501       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11502     else
11503       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11504     fi
11505     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11506     ;;
11507    hppa*64*)
11508      shrext='.sl'
11509      hardcode_into_libs=yes
11510      dynamic_linker="$host_os dld.sl"
11511      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11512      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11513      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514      soname_spec='${libname}${release}${shared_ext}$major'
11515      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11516      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11517      ;;
11518    *)
11519     shrext='.sl'
11520     dynamic_linker="$host_os dld.sl"
11521     shlibpath_var=SHLIB_PATH
11522     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524     soname_spec='${libname}${release}${shared_ext}$major'
11525     ;;
11526   esac
11527   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11528   postinstall_cmds='chmod 555 $lib'
11529   ;;
11530
11531 irix5* | irix6* | nonstopux*)
11532   case $host_os in
11533     nonstopux*) version_type=nonstopux ;;
11534     *)
11535         if test "$lt_cv_prog_gnu_ld" = yes; then
11536                 version_type=linux
11537         else
11538                 version_type=irix
11539         fi ;;
11540   esac
11541   need_lib_prefix=no
11542   need_version=no
11543   soname_spec='${libname}${release}${shared_ext}$major'
11544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11545   case $host_os in
11546   irix5* | nonstopux*)
11547     libsuff= shlibsuff=
11548     ;;
11549   *)
11550     case $LD in # libtool.m4 will add one of these switches to LD
11551     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11552       libsuff= shlibsuff= libmagic=32-bit;;
11553     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11554       libsuff=32 shlibsuff=N32 libmagic=N32;;
11555     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11556       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11557     *) libsuff= shlibsuff= libmagic=never-match;;
11558     esac
11559     ;;
11560   esac
11561   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11562   shlibpath_overrides_runpath=no
11563   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11564   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11565   hardcode_into_libs=yes
11566   ;;
11567
11568 # No shared lib support for Linux oldld, aout, or coff.
11569 linux*oldld* | linux*aout* | linux*coff*)
11570   dynamic_linker=no
11571   ;;
11572
11573 # This must be Linux ELF.
11574 linux*)
11575   version_type=linux
11576   need_lib_prefix=no
11577   need_version=no
11578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579   soname_spec='${libname}${release}${shared_ext}$major'
11580   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11581   shlibpath_var=LD_LIBRARY_PATH
11582   shlibpath_overrides_runpath=no
11583   # This implies no fast_install, which is unacceptable.
11584   # Some rework will be needed to allow for fast_install
11585   # before this can be enabled.
11586   hardcode_into_libs=yes
11587
11588   # Append ld.so.conf contents to the search path
11589   if test -f /etc/ld.so.conf; then
11590     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11591     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11592   fi
11593
11594   # We used to test for /lib/ld.so.1 and disable shared libraries on
11595   # powerpc, because MkLinux only supported shared libraries with the
11596   # GNU dynamic linker.  Since this was broken with cross compilers,
11597   # most powerpc-linux boxes support dynamic linking these days and
11598   # people can always --disable-shared, the test was removed, and we
11599   # assume the GNU/Linux dynamic linker is in use.
11600   dynamic_linker='GNU/Linux ld.so'
11601   ;;
11602
11603 knetbsd*-gnu)
11604   version_type=linux
11605   need_lib_prefix=no
11606   need_version=no
11607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11608   soname_spec='${libname}${release}${shared_ext}$major'
11609   shlibpath_var=LD_LIBRARY_PATH
11610   shlibpath_overrides_runpath=no
11611   hardcode_into_libs=yes
11612   dynamic_linker='GNU ld.so'
11613   ;;
11614
11615 netbsd*)
11616   version_type=sunos
11617   need_lib_prefix=no
11618   need_version=no
11619   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11622     dynamic_linker='NetBSD (a.out) ld.so'
11623   else
11624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11625     soname_spec='${libname}${release}${shared_ext}$major'
11626     dynamic_linker='NetBSD ld.elf_so'
11627   fi
11628   shlibpath_var=LD_LIBRARY_PATH
11629   shlibpath_overrides_runpath=yes
11630   hardcode_into_libs=yes
11631   ;;
11632
11633 newsos6)
11634   version_type=linux
11635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636   shlibpath_var=LD_LIBRARY_PATH
11637   shlibpath_overrides_runpath=yes
11638   ;;
11639
11640 nto-qnx*)
11641   version_type=linux
11642   need_lib_prefix=no
11643   need_version=no
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645   soname_spec='${libname}${release}${shared_ext}$major'
11646   shlibpath_var=LD_LIBRARY_PATH
11647   shlibpath_overrides_runpath=yes
11648   ;;
11649
11650 openbsd*)
11651   version_type=sunos
11652   need_lib_prefix=no
11653   need_version=yes
11654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656   shlibpath_var=LD_LIBRARY_PATH
11657   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11658     case $host_os in
11659       openbsd2.[89] | openbsd2.[89].*)
11660         shlibpath_overrides_runpath=no
11661         ;;
11662       *)
11663         shlibpath_overrides_runpath=yes
11664         ;;
11665       esac
11666   else
11667     shlibpath_overrides_runpath=yes
11668   fi
11669   ;;
11670
11671 os2*)
11672   libname_spec='$name'
11673   shrext=".dll"
11674   need_lib_prefix=no
11675   library_names_spec='$libname${shared_ext} $libname.a'
11676   dynamic_linker='OS/2 ld.exe'
11677   shlibpath_var=LIBPATH
11678   ;;
11679
11680 osf3* | osf4* | osf5*)
11681   version_type=osf
11682   need_lib_prefix=no
11683   need_version=no
11684   soname_spec='${libname}${release}${shared_ext}$major'
11685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686   shlibpath_var=LD_LIBRARY_PATH
11687   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11688   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11689   ;;
11690
11691 sco3.2v5*)
11692   version_type=osf
11693   soname_spec='${libname}${release}${shared_ext}$major'
11694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695   shlibpath_var=LD_LIBRARY_PATH
11696   ;;
11697
11698 solaris*)
11699   version_type=linux
11700   need_lib_prefix=no
11701   need_version=no
11702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703   soname_spec='${libname}${release}${shared_ext}$major'
11704   shlibpath_var=LD_LIBRARY_PATH
11705   shlibpath_overrides_runpath=yes
11706   hardcode_into_libs=yes
11707   # ldd complains unless libraries are executable
11708   postinstall_cmds='chmod +x $lib'
11709   ;;
11710
11711 sunos4*)
11712   version_type=sunos
11713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11714   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11715   shlibpath_var=LD_LIBRARY_PATH
11716   shlibpath_overrides_runpath=yes
11717   if test "$with_gnu_ld" = yes; then
11718     need_lib_prefix=no
11719   fi
11720   need_version=yes
11721   ;;
11722
11723 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11724   version_type=linux
11725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726   soname_spec='${libname}${release}${shared_ext}$major'
11727   shlibpath_var=LD_LIBRARY_PATH
11728   case $host_vendor in
11729     sni)
11730       shlibpath_overrides_runpath=no
11731       need_lib_prefix=no
11732       export_dynamic_flag_spec='${wl}-Blargedynsym'
11733       runpath_var=LD_RUN_PATH
11734       ;;
11735     siemens)
11736       need_lib_prefix=no
11737       ;;
11738     motorola)
11739       need_lib_prefix=no
11740       need_version=no
11741       shlibpath_overrides_runpath=no
11742       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11743       ;;
11744   esac
11745   ;;
11746
11747 sysv4*MP*)
11748   if test -d /usr/nec ;then
11749     version_type=linux
11750     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11751     soname_spec='$libname${shared_ext}.$major'
11752     shlibpath_var=LD_LIBRARY_PATH
11753   fi
11754   ;;
11755
11756 uts4*)
11757   version_type=linux
11758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759   soname_spec='${libname}${release}${shared_ext}$major'
11760   shlibpath_var=LD_LIBRARY_PATH
11761   ;;
11762
11763 *)
11764   dynamic_linker=no
11765   ;;
11766 esac
11767 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11768 echo "${ECHO_T}$dynamic_linker" >&6
11769 test "$dynamic_linker" = no && can_build_shared=no
11770
11771 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11772 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11773 hardcode_action_CXX=
11774 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11775    test -n "$runpath_var CXX" || \
11776    test "X$hardcode_automatic_CXX"="Xyes" ; then
11777
11778   # We can hardcode non-existant directories.
11779   if test "$hardcode_direct_CXX" != no &&
11780      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11781      # have to relink, otherwise we might link with an installed library
11782      # when we should be linking with a yet-to-be-installed one
11783      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11784      test "$hardcode_minus_L_CXX" != no; then
11785     # Linking always hardcodes the temporary library directory.
11786     hardcode_action_CXX=relink
11787   else
11788     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11789     hardcode_action_CXX=immediate
11790   fi
11791 else
11792   # We cannot hardcode anything, or else we can only hardcode existing
11793   # directories.
11794   hardcode_action_CXX=unsupported
11795 fi
11796 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11797 echo "${ECHO_T}$hardcode_action_CXX" >&6
11798
11799 if test "$hardcode_action_CXX" = relink; then
11800   # Fast installation is not supported
11801   enable_fast_install=no
11802 elif test "$shlibpath_overrides_runpath" = yes ||
11803      test "$enable_shared" = no; then
11804   # Fast installation is not necessary
11805   enable_fast_install=needless
11806 fi
11807
11808 striplib=
11809 old_striplib=
11810 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11811 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11812 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11813   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11814   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11815   echo "$as_me:$LINENO: result: yes" >&5
11816 echo "${ECHO_T}yes" >&6
11817 else
11818 # FIXME - insert some real tests, host_os isn't really good enough
11819   case $host_os in
11820    darwin*)
11821        if test -n "$STRIP" ; then
11822          striplib="$STRIP -x"
11823          echo "$as_me:$LINENO: result: yes" >&5
11824 echo "${ECHO_T}yes" >&6
11825        else
11826   echo "$as_me:$LINENO: result: no" >&5
11827 echo "${ECHO_T}no" >&6
11828 fi
11829        ;;
11830    *)
11831   echo "$as_me:$LINENO: result: no" >&5
11832 echo "${ECHO_T}no" >&6
11833     ;;
11834   esac
11835 fi
11836
11837 if test "x$enable_dlopen" != xyes; then
11838   enable_dlopen=unknown
11839   enable_dlopen_self=unknown
11840   enable_dlopen_self_static=unknown
11841 else
11842   lt_cv_dlopen=no
11843   lt_cv_dlopen_libs=
11844
11845   case $host_os in
11846   beos*)
11847     lt_cv_dlopen="load_add_on"
11848     lt_cv_dlopen_libs=
11849     lt_cv_dlopen_self=yes
11850     ;;
11851
11852   mingw* | pw32*)
11853     lt_cv_dlopen="LoadLibrary"
11854     lt_cv_dlopen_libs=
11855    ;;
11856
11857   cygwin*)
11858     lt_cv_dlopen="dlopen"
11859     lt_cv_dlopen_libs=
11860    ;;
11861
11862   darwin*)
11863   # if libdl is installed we need to link against it
11864     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11865 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11867   echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869   ac_check_lib_save_LIBS=$LIBS
11870 LIBS="-ldl  $LIBS"
11871 cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h.  */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h.  */
11877
11878 /* Override any gcc2 internal prototype to avoid an error.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 /* We use char because int might match the return type of a gcc2
11883    builtin and then its argument prototype would still apply.  */
11884 char dlopen ();
11885 int
11886 main ()
11887 {
11888 dlopen ();
11889   ;
11890   return 0;
11891 }
11892 _ACEOF
11893 rm -f conftest.$ac_objext conftest$ac_exeext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895   (eval $ac_link) 2>conftest.er1
11896   ac_status=$?
11897   grep -v '^ *+' conftest.er1 >conftest.err
11898   rm -f conftest.er1
11899   cat conftest.err >&5
11900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901   (exit $ac_status); } &&
11902          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904   (eval $ac_try) 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; } &&
11908          { ac_try='test -s conftest$ac_exeext'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914   ac_cv_lib_dl_dlopen=yes
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 ac_cv_lib_dl_dlopen=no
11920 fi
11921 rm -f conftest.err conftest.$ac_objext \
11922       conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11924 fi
11925 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11927 if test $ac_cv_lib_dl_dlopen = yes; then
11928   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11929 else
11930
11931     lt_cv_dlopen="dyld"
11932     lt_cv_dlopen_libs=
11933     lt_cv_dlopen_self=yes
11934
11935 fi
11936
11937    ;;
11938
11939   *)
11940     echo "$as_me:$LINENO: checking for shl_load" >&5
11941 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11942 if test "${ac_cv_func_shl_load+set}" = set; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11953 #define shl_load innocuous_shl_load
11954
11955 /* System header to define __stub macros and hopefully few prototypes,
11956     which can conflict with char shl_load (); below.
11957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958     <limits.h> exists even on freestanding compilers.  */
11959
11960 #ifdef __STDC__
11961 # include <limits.h>
11962 #else
11963 # include <assert.h>
11964 #endif
11965
11966 #undef shl_load
11967
11968 /* Override any gcc2 internal prototype to avoid an error.  */
11969 #ifdef __cplusplus
11970 extern "C"
11971 {
11972 #endif
11973 /* We use char because int might match the return type of a gcc2
11974    builtin and then its argument prototype would still apply.  */
11975 char shl_load ();
11976 /* The GNU C library defines this for functions which it implements
11977     to always fail with ENOSYS.  Some functions are actually named
11978     something starting with __ and the normal name is an alias.  */
11979 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11980 choke me
11981 #else
11982 char (*f) () = shl_load;
11983 #endif
11984 #ifdef __cplusplus
11985 }
11986 #endif
11987
11988 int
11989 main ()
11990 {
11991 return f != shl_load;
11992   ;
11993   return 0;
11994 }
11995 _ACEOF
11996 rm -f conftest.$ac_objext conftest$ac_exeext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998   (eval $ac_link) 2>conftest.er1
11999   ac_status=$?
12000   grep -v '^ *+' conftest.er1 >conftest.err
12001   rm -f conftest.er1
12002   cat conftest.err >&5
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } &&
12005          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007   (eval $ac_try) 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; } &&
12011          { ac_try='test -s conftest$ac_exeext'
12012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013   (eval $ac_try) 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; }; then
12017   ac_cv_func_shl_load=yes
12018 else
12019   echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12021
12022 ac_cv_func_shl_load=no
12023 fi
12024 rm -f conftest.err conftest.$ac_objext \
12025       conftest$ac_exeext conftest.$ac_ext
12026 fi
12027 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12028 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12029 if test $ac_cv_func_shl_load = yes; then
12030   lt_cv_dlopen="shl_load"
12031 else
12032   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12033 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12034 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037   ac_check_lib_save_LIBS=$LIBS
12038 LIBS="-ldld  $LIBS"
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h.  */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h.  */
12045
12046 /* Override any gcc2 internal prototype to avoid an error.  */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 /* We use char because int might match the return type of a gcc2
12051    builtin and then its argument prototype would still apply.  */
12052 char shl_load ();
12053 int
12054 main ()
12055 {
12056 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_lib_dld_shl_load=yes
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 ac_cv_lib_dld_shl_load=no
12088 fi
12089 rm -f conftest.err conftest.$ac_objext \
12090       conftest$ac_exeext conftest.$ac_ext
12091 LIBS=$ac_check_lib_save_LIBS
12092 fi
12093 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12094 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12095 if test $ac_cv_lib_dld_shl_load = yes; then
12096   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12097 else
12098   echo "$as_me:$LINENO: checking for dlopen" >&5
12099 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12100 if test "${ac_cv_func_dlopen+set}" = set; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103   cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h.  */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h.  */
12109 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12111 #define dlopen innocuous_dlopen
12112
12113 /* System header to define __stub macros and hopefully few prototypes,
12114     which can conflict with char dlopen (); below.
12115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116     <limits.h> exists even on freestanding compilers.  */
12117
12118 #ifdef __STDC__
12119 # include <limits.h>
12120 #else
12121 # include <assert.h>
12122 #endif
12123
12124 #undef dlopen
12125
12126 /* Override any gcc2 internal prototype to avoid an error.  */
12127 #ifdef __cplusplus
12128 extern "C"
12129 {
12130 #endif
12131 /* We use char because int might match the return type of a gcc2
12132    builtin and then its argument prototype would still apply.  */
12133 char dlopen ();
12134 /* The GNU C library defines this for functions which it implements
12135     to always fail with ENOSYS.  Some functions are actually named
12136     something starting with __ and the normal name is an alias.  */
12137 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12138 choke me
12139 #else
12140 char (*f) () = dlopen;
12141 #endif
12142 #ifdef __cplusplus
12143 }
12144 #endif
12145
12146 int
12147 main ()
12148 {
12149 return f != dlopen;
12150   ;
12151   return 0;
12152 }
12153 _ACEOF
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156   (eval $ac_link) 2>conftest.er1
12157   ac_status=$?
12158   grep -v '^ *+' conftest.er1 >conftest.err
12159   rm -f conftest.er1
12160   cat conftest.err >&5
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); } &&
12163          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165   (eval $ac_try) 2>&5
12166   ac_status=$?
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); }; } &&
12169          { ac_try='test -s conftest$ac_exeext'
12170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171   (eval $ac_try) 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; }; then
12175   ac_cv_func_dlopen=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 ac_cv_func_dlopen=no
12181 fi
12182 rm -f conftest.err conftest.$ac_objext \
12183       conftest$ac_exeext conftest.$ac_ext
12184 fi
12185 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12186 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12187 if test $ac_cv_func_dlopen = yes; then
12188   lt_cv_dlopen="dlopen"
12189 else
12190   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12191 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12192 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12193   echo $ECHO_N "(cached) $ECHO_C" >&6
12194 else
12195   ac_check_lib_save_LIBS=$LIBS
12196 LIBS="-ldl  $LIBS"
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203
12204 /* Override any gcc2 internal prototype to avoid an error.  */
12205 #ifdef __cplusplus
12206 extern "C"
12207 #endif
12208 /* We use char because int might match the return type of a gcc2
12209    builtin and then its argument prototype would still apply.  */
12210 char dlopen ();
12211 int
12212 main ()
12213 {
12214 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_lib_dl_dlopen=yes
12241 else
12242   echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12244
12245 ac_cv_lib_dl_dlopen=no
12246 fi
12247 rm -f conftest.err conftest.$ac_objext \
12248       conftest$ac_exeext conftest.$ac_ext
12249 LIBS=$ac_check_lib_save_LIBS
12250 fi
12251 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12253 if test $ac_cv_lib_dl_dlopen = yes; then
12254   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12255 else
12256   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12257 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12258 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261   ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-lsvld  $LIBS"
12263 cat >conftest.$ac_ext <<_ACEOF
12264 /* confdefs.h.  */
12265 _ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h.  */
12269
12270 /* Override any gcc2 internal prototype to avoid an error.  */
12271 #ifdef __cplusplus
12272 extern "C"
12273 #endif
12274 /* We use char because int might match the return type of a gcc2
12275    builtin and then its argument prototype would still apply.  */
12276 char dlopen ();
12277 int
12278 main ()
12279 {
12280 dlopen ();
12281   ;
12282   return 0;
12283 }
12284 _ACEOF
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287   (eval $ac_link) 2>conftest.er1
12288   ac_status=$?
12289   grep -v '^ *+' conftest.er1 >conftest.err
12290   rm -f conftest.er1
12291   cat conftest.err >&5
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); } &&
12294          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296   (eval $ac_try) 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); }; } &&
12300          { ac_try='test -s conftest$ac_exeext'
12301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302   (eval $ac_try) 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); }; }; then
12306   ac_cv_lib_svld_dlopen=yes
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311 ac_cv_lib_svld_dlopen=no
12312 fi
12313 rm -f conftest.err conftest.$ac_objext \
12314       conftest$ac_exeext conftest.$ac_ext
12315 LIBS=$ac_check_lib_save_LIBS
12316 fi
12317 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12318 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12319 if test $ac_cv_lib_svld_dlopen = yes; then
12320   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12321 else
12322   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12323 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12324 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12325   echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327   ac_check_lib_save_LIBS=$LIBS
12328 LIBS="-ldld  $LIBS"
12329 cat >conftest.$ac_ext <<_ACEOF
12330 /* confdefs.h.  */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h.  */
12335
12336 /* Override any gcc2 internal prototype to avoid an error.  */
12337 #ifdef __cplusplus
12338 extern "C"
12339 #endif
12340 /* We use char because int might match the return type of a gcc2
12341    builtin and then its argument prototype would still apply.  */
12342 char dld_link ();
12343 int
12344 main ()
12345 {
12346 dld_link ();
12347   ;
12348   return 0;
12349 }
12350 _ACEOF
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12353   (eval $ac_link) 2>conftest.er1
12354   ac_status=$?
12355   grep -v '^ *+' conftest.er1 >conftest.err
12356   rm -f conftest.er1
12357   cat conftest.err >&5
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); } &&
12360          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362   (eval $ac_try) 2>&5
12363   ac_status=$?
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); }; } &&
12366          { ac_try='test -s conftest$ac_exeext'
12367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368   (eval $ac_try) 2>&5
12369   ac_status=$?
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); }; }; then
12372   ac_cv_lib_dld_dld_link=yes
12373 else
12374   echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12376
12377 ac_cv_lib_dld_dld_link=no
12378 fi
12379 rm -f conftest.err conftest.$ac_objext \
12380       conftest$ac_exeext conftest.$ac_ext
12381 LIBS=$ac_check_lib_save_LIBS
12382 fi
12383 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12384 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12385 if test $ac_cv_lib_dld_dld_link = yes; then
12386   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12387 fi
12388
12389
12390 fi
12391
12392
12393 fi
12394
12395
12396 fi
12397
12398
12399 fi
12400
12401
12402 fi
12403
12404     ;;
12405   esac
12406
12407   if test "x$lt_cv_dlopen" != xno; then
12408     enable_dlopen=yes
12409   else
12410     enable_dlopen=no
12411   fi
12412
12413   case $lt_cv_dlopen in
12414   dlopen)
12415     save_CPPFLAGS="$CPPFLAGS"
12416     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12417
12418     save_LDFLAGS="$LDFLAGS"
12419     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12420
12421     save_LIBS="$LIBS"
12422     LIBS="$lt_cv_dlopen_libs $LIBS"
12423
12424     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12425 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12426 if test "${lt_cv_dlopen_self+set}" = set; then
12427   echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429           if test "$cross_compiling" = yes; then :
12430   lt_cv_dlopen_self=cross
12431 else
12432   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12433   lt_status=$lt_dlunknown
12434   cat > conftest.$ac_ext <<EOF
12435 #line 12435 "configure"
12436 #include "confdefs.h"
12437
12438 #if HAVE_DLFCN_H
12439 #include <dlfcn.h>
12440 #endif
12441
12442 #include <stdio.h>
12443
12444 #ifdef RTLD_GLOBAL
12445 #  define LT_DLGLOBAL           RTLD_GLOBAL
12446 #else
12447 #  ifdef DL_GLOBAL
12448 #    define LT_DLGLOBAL         DL_GLOBAL
12449 #  else
12450 #    define LT_DLGLOBAL         0
12451 #  endif
12452 #endif
12453
12454 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12455    find out it does not work in some platform. */
12456 #ifndef LT_DLLAZY_OR_NOW
12457 #  ifdef RTLD_LAZY
12458 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12459 #  else
12460 #    ifdef DL_LAZY
12461 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12462 #    else
12463 #      ifdef RTLD_NOW
12464 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12465 #      else
12466 #        ifdef DL_NOW
12467 #          define LT_DLLAZY_OR_NOW      DL_NOW
12468 #        else
12469 #          define LT_DLLAZY_OR_NOW      0
12470 #        endif
12471 #      endif
12472 #    endif
12473 #  endif
12474 #endif
12475
12476 #ifdef __cplusplus
12477 extern "C" void exit (int);
12478 #endif
12479
12480 void fnord() { int i=42;}
12481 int main ()
12482 {
12483   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12484   int status = $lt_dlunknown;
12485
12486   if (self)
12487     {
12488       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12489       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12490       /* dlclose (self); */
12491     }
12492
12493     exit (status);
12494 }
12495 EOF
12496   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497   (eval $ac_link) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12501     (./conftest; exit; ) 2>/dev/null
12502     lt_status=$?
12503     case x$lt_status in
12504       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12505       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12506       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12507     esac
12508   else :
12509     # compilation failed
12510     lt_cv_dlopen_self=no
12511   fi
12512 fi
12513 rm -fr conftest*
12514
12515
12516 fi
12517 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12518 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12519
12520     if test "x$lt_cv_dlopen_self" = xyes; then
12521       LDFLAGS="$LDFLAGS $link_static_flag"
12522       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12523 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12524 if test "${lt_cv_dlopen_self_static+set}" = set; then
12525   echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527           if test "$cross_compiling" = yes; then :
12528   lt_cv_dlopen_self_static=cross
12529 else
12530   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12531   lt_status=$lt_dlunknown
12532   cat > conftest.$ac_ext <<EOF
12533 #line 12533 "configure"
12534 #include "confdefs.h"
12535
12536 #if HAVE_DLFCN_H
12537 #include <dlfcn.h>
12538 #endif
12539
12540 #include <stdio.h>
12541
12542 #ifdef RTLD_GLOBAL
12543 #  define LT_DLGLOBAL           RTLD_GLOBAL
12544 #else
12545 #  ifdef DL_GLOBAL
12546 #    define LT_DLGLOBAL         DL_GLOBAL
12547 #  else
12548 #    define LT_DLGLOBAL         0
12549 #  endif
12550 #endif
12551
12552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12553    find out it does not work in some platform. */
12554 #ifndef LT_DLLAZY_OR_NOW
12555 #  ifdef RTLD_LAZY
12556 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12557 #  else
12558 #    ifdef DL_LAZY
12559 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12560 #    else
12561 #      ifdef RTLD_NOW
12562 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12563 #      else
12564 #        ifdef DL_NOW
12565 #          define LT_DLLAZY_OR_NOW      DL_NOW
12566 #        else
12567 #          define LT_DLLAZY_OR_NOW      0
12568 #        endif
12569 #      endif
12570 #    endif
12571 #  endif
12572 #endif
12573
12574 #ifdef __cplusplus
12575 extern "C" void exit (int);
12576 #endif
12577
12578 void fnord() { int i=42;}
12579 int main ()
12580 {
12581   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12582   int status = $lt_dlunknown;
12583
12584   if (self)
12585     {
12586       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12587       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12588       /* dlclose (self); */
12589     }
12590
12591     exit (status);
12592 }
12593 EOF
12594   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595   (eval $ac_link) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12599     (./conftest; exit; ) 2>/dev/null
12600     lt_status=$?
12601     case x$lt_status in
12602       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12603       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12604       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12605     esac
12606   else :
12607     # compilation failed
12608     lt_cv_dlopen_self_static=no
12609   fi
12610 fi
12611 rm -fr conftest*
12612
12613
12614 fi
12615 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12616 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12617     fi
12618
12619     CPPFLAGS="$save_CPPFLAGS"
12620     LDFLAGS="$save_LDFLAGS"
12621     LIBS="$save_LIBS"
12622     ;;
12623   esac
12624
12625   case $lt_cv_dlopen_self in
12626   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12627   *) enable_dlopen_self=unknown ;;
12628   esac
12629
12630   case $lt_cv_dlopen_self_static in
12631   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12632   *) enable_dlopen_self_static=unknown ;;
12633   esac
12634 fi
12635
12636
12637 # The else clause should only fire when bootstrapping the
12638 # libtool distribution, otherwise you forgot to ship ltmain.sh
12639 # with your package, and you will get complaints that there are
12640 # no rules to generate ltmain.sh.
12641 if test -f "$ltmain"; then
12642   # See if we are running on zsh, and set the options which allow our commands through
12643   # without removal of \ escapes.
12644   if test -n "${ZSH_VERSION+set}" ; then
12645     setopt NO_GLOB_SUBST
12646   fi
12647   # Now quote all the things that may contain metacharacters while being
12648   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12649   # variables and quote the copies for generation of the libtool script.
12650   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12651     SED SHELL STRIP \
12652     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12653     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12654     deplibs_check_method reload_flag reload_cmds need_locks \
12655     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12656     lt_cv_sys_global_symbol_to_c_name_address \
12657     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12658     old_postinstall_cmds old_postuninstall_cmds \
12659     compiler_CXX \
12660     CC_CXX \
12661     LD_CXX \
12662     lt_prog_compiler_wl_CXX \
12663     lt_prog_compiler_pic_CXX \
12664     lt_prog_compiler_static_CXX \
12665     lt_prog_compiler_no_builtin_flag_CXX \
12666     export_dynamic_flag_spec_CXX \
12667     thread_safe_flag_spec_CXX \
12668     whole_archive_flag_spec_CXX \
12669     enable_shared_with_static_runtimes_CXX \
12670     old_archive_cmds_CXX \
12671     old_archive_from_new_cmds_CXX \
12672     predep_objects_CXX \
12673     postdep_objects_CXX \
12674     predeps_CXX \
12675     postdeps_CXX \
12676     compiler_lib_search_path_CXX \
12677     archive_cmds_CXX \
12678     archive_expsym_cmds_CXX \
12679     postinstall_cmds_CXX \
12680     postuninstall_cmds_CXX \
12681     old_archive_from_expsyms_cmds_CXX \
12682     allow_undefined_flag_CXX \
12683     no_undefined_flag_CXX \
12684     export_symbols_cmds_CXX \
12685     hardcode_libdir_flag_spec_CXX \
12686     hardcode_libdir_flag_spec_ld_CXX \
12687     hardcode_libdir_separator_CXX \
12688     hardcode_automatic_CXX \
12689     module_cmds_CXX \
12690     module_expsym_cmds_CXX \
12691     lt_cv_prog_compiler_c_o_CXX \
12692     exclude_expsyms_CXX \
12693     include_expsyms_CXX; do
12694
12695     case $var in
12696     old_archive_cmds_CXX | \
12697     old_archive_from_new_cmds_CXX | \
12698     archive_cmds_CXX | \
12699     archive_expsym_cmds_CXX | \
12700     module_cmds_CXX | \
12701     module_expsym_cmds_CXX | \
12702     old_archive_from_expsyms_cmds_CXX | \
12703     export_symbols_cmds_CXX | \
12704     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12705     postinstall_cmds | postuninstall_cmds | \
12706     old_postinstall_cmds | old_postuninstall_cmds | \
12707     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12708       # Double-quote double-evaled strings.
12709       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12710       ;;
12711     *)
12712       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12713       ;;
12714     esac
12715   done
12716
12717   case $lt_echo in
12718   *'\$0 --fallback-echo"')
12719     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12720     ;;
12721   esac
12722
12723 cfgfile="$ofile"
12724
12725   cat <<__EOF__ >> "$cfgfile"
12726 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12727
12728 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12729
12730 # Shell to use when invoking shell scripts.
12731 SHELL=$lt_SHELL
12732
12733 # Whether or not to build shared libraries.
12734 build_libtool_libs=$enable_shared
12735
12736 # Whether or not to build static libraries.
12737 build_old_libs=$enable_static
12738
12739 # Whether or not to add -lc for building shared libraries.
12740 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12741
12742 # Whether or not to disallow shared libs when runtime libs are static
12743 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12744
12745 # Whether or not to optimize for fast installation.
12746 fast_install=$enable_fast_install
12747
12748 # The host system.
12749 host_alias=$host_alias
12750 host=$host
12751
12752 # An echo program that does not interpret backslashes.
12753 echo=$lt_echo
12754
12755 # The archiver.
12756 AR=$lt_AR
12757 AR_FLAGS=$lt_AR_FLAGS
12758
12759 # A C compiler.
12760 LTCC=$lt_LTCC
12761
12762 # A language-specific compiler.
12763 CC=$lt_compiler_CXX
12764
12765 # Is the compiler the GNU C compiler?
12766 with_gcc=$GCC_CXX
12767
12768 # An ERE matcher.
12769 EGREP=$lt_EGREP
12770
12771 # The linker used to build libraries.
12772 LD=$lt_LD_CXX
12773
12774 # Whether we need hard or soft links.
12775 LN_S=$lt_LN_S
12776
12777 # A BSD-compatible nm program.
12778 NM=$lt_NM
12779
12780 # A symbol stripping program
12781 STRIP=$lt_STRIP
12782
12783 # Used to examine libraries when file_magic_cmd begins "file"
12784 MAGIC_CMD=$MAGIC_CMD
12785
12786 # Used on cygwin: DLL creation program.
12787 DLLTOOL="$DLLTOOL"
12788
12789 # Used on cygwin: object dumper.
12790 OBJDUMP="$OBJDUMP"
12791
12792 # Used on cygwin: assembler.
12793 AS="$AS"
12794
12795 # The name of the directory that contains temporary libtool files.
12796 objdir=$objdir
12797
12798 # How to create reloadable object files.
12799 reload_flag=$lt_reload_flag
12800 reload_cmds=$lt_reload_cmds
12801
12802 # How to pass a linker flag through the compiler.
12803 wl=$lt_lt_prog_compiler_wl_CXX
12804
12805 # Object file suffix (normally "o").
12806 objext="$ac_objext"
12807
12808 # Old archive suffix (normally "a").
12809 libext="$libext"
12810
12811 # Shared library suffix (normally ".so").
12812 shrext='$shrext'
12813
12814 # Executable file suffix (normally "").
12815 exeext="$exeext"
12816
12817 # Additional compiler flags for building library objects.
12818 pic_flag=$lt_lt_prog_compiler_pic_CXX
12819 pic_mode=$pic_mode
12820
12821 # What is the maximum length of a command?
12822 max_cmd_len=$lt_cv_sys_max_cmd_len
12823
12824 # Does compiler simultaneously support -c and -o options?
12825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12826
12827 # Must we lock files when doing compilation ?
12828 need_locks=$lt_need_locks
12829
12830 # Do we need the lib prefix for modules?
12831 need_lib_prefix=$need_lib_prefix
12832
12833 # Do we need a version for libraries?
12834 need_version=$need_version
12835
12836 # Whether dlopen is supported.
12837 dlopen_support=$enable_dlopen
12838
12839 # Whether dlopen of programs is supported.
12840 dlopen_self=$enable_dlopen_self
12841
12842 # Whether dlopen of statically linked programs is supported.
12843 dlopen_self_static=$enable_dlopen_self_static
12844
12845 # Compiler flag to prevent dynamic linking.
12846 link_static_flag=$lt_lt_prog_compiler_static_CXX
12847
12848 # Compiler flag to turn off builtin functions.
12849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12850
12851 # Compiler flag to allow reflexive dlopens.
12852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12853
12854 # Compiler flag to generate shared objects directly from archives.
12855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12856
12857 # Compiler flag to generate thread-safe objects.
12858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12859
12860 # Library versioning type.
12861 version_type=$version_type
12862
12863 # Format of library name prefix.
12864 libname_spec=$lt_libname_spec
12865
12866 # List of archive names.  First name is the real one, the rest are links.
12867 # The last name is the one that the linker finds with -lNAME.
12868 library_names_spec=$lt_library_names_spec
12869
12870 # The coded name of the library, if different from the real name.
12871 soname_spec=$lt_soname_spec
12872
12873 # Commands used to build and install an old-style archive.
12874 RANLIB=$lt_RANLIB
12875 old_archive_cmds=$lt_old_archive_cmds_CXX
12876 old_postinstall_cmds=$lt_old_postinstall_cmds
12877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12878
12879 # Create an old-style archive from a shared archive.
12880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12881
12882 # Create a temporary old-style archive to link instead of a shared archive.
12883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12884
12885 # Commands used to build and install a shared archive.
12886 archive_cmds=$lt_archive_cmds_CXX
12887 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12888 postinstall_cmds=$lt_postinstall_cmds
12889 postuninstall_cmds=$lt_postuninstall_cmds
12890
12891 # Commands used to build a loadable module (assumed same as above if empty)
12892 module_cmds=$lt_module_cmds_CXX
12893 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12894
12895 # Commands to strip libraries.
12896 old_striplib=$lt_old_striplib
12897 striplib=$lt_striplib
12898
12899 # Dependencies to place before the objects being linked to create a
12900 # shared library.
12901 predep_objects=$lt_predep_objects_CXX
12902
12903 # Dependencies to place after the objects being linked to create a
12904 # shared library.
12905 postdep_objects=$lt_postdep_objects_CXX
12906
12907 # Dependencies to place before the objects being linked to create a
12908 # shared library.
12909 predeps=$lt_predeps_CXX
12910
12911 # Dependencies to place after the objects being linked to create a
12912 # shared library.
12913 postdeps=$lt_postdeps_CXX
12914
12915 # The library search path used internally by the compiler when linking
12916 # a shared library.
12917 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12918
12919 # Method to check whether dependent libraries are shared objects.
12920 deplibs_check_method=$lt_deplibs_check_method
12921
12922 # Command to use when deplibs_check_method == file_magic.
12923 file_magic_cmd=$lt_file_magic_cmd
12924
12925 # Flag that allows shared libraries with undefined symbols to be built.
12926 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12927
12928 # Flag that forces no undefined symbols.
12929 no_undefined_flag=$lt_no_undefined_flag_CXX
12930
12931 # Commands used to finish a libtool library installation in a directory.
12932 finish_cmds=$lt_finish_cmds
12933
12934 # Same as above, but a single script fragment to be evaled but not shown.
12935 finish_eval=$lt_finish_eval
12936
12937 # Take the output of nm and produce a listing of raw symbols and C names.
12938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12939
12940 # Transform the output of nm in a proper C declaration
12941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12942
12943 # Transform the output of nm in a C name address pair
12944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12945
12946 # This is the shared library runtime path variable.
12947 runpath_var=$runpath_var
12948
12949 # This is the shared library path variable.
12950 shlibpath_var=$shlibpath_var
12951
12952 # Is shlibpath searched before the hard-coded library search path?
12953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12954
12955 # How to hardcode a shared library path into an executable.
12956 hardcode_action=$hardcode_action_CXX
12957
12958 # Whether we should hardcode library paths into libraries.
12959 hardcode_into_libs=$hardcode_into_libs
12960
12961 # Flag to hardcode \$libdir into a binary during linking.
12962 # This must work even if \$libdir does not exist.
12963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12964
12965 # If ld is used when linking, flag to hardcode \$libdir into
12966 # a binary during linking. This must work even if \$libdir does
12967 # not exist.
12968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12969
12970 # Whether we need a single -rpath flag with a separated argument.
12971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12972
12973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12974 # resulting binary.
12975 hardcode_direct=$hardcode_direct_CXX
12976
12977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12978 # resulting binary.
12979 hardcode_minus_L=$hardcode_minus_L_CXX
12980
12981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12982 # the resulting binary.
12983 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12984
12985 # Set to yes if building a shared library automatically hardcodes DIR into the library
12986 # and all subsequent libraries and executables linked against it.
12987 hardcode_automatic=$hardcode_automatic_CXX
12988
12989 # Variables whose values should be saved in libtool wrapper scripts and
12990 # restored at relink time.
12991 variables_saved_for_relink="$variables_saved_for_relink"
12992
12993 # Whether libtool must link a program against all its dependency libraries.
12994 link_all_deplibs=$link_all_deplibs_CXX
12995
12996 # Compile-time system search path for libraries
12997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12998
12999 # Run-time system search path for libraries
13000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13001
13002 # Fix the shell variable \$srcfile for the compiler.
13003 fix_srcfile_path="$fix_srcfile_path_CXX"
13004
13005 # Set to yes if exported symbols are required.
13006 always_export_symbols=$always_export_symbols_CXX
13007
13008 # The commands to list exported symbols.
13009 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13010
13011 # The commands to extract the exported symbol list from a shared archive.
13012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13013
13014 # Symbols that should not be listed in the preloaded symbols.
13015 exclude_expsyms=$lt_exclude_expsyms_CXX
13016
13017 # Symbols that must always be exported.
13018 include_expsyms=$lt_include_expsyms_CXX
13019
13020 # ### END LIBTOOL TAG CONFIG: $tagname
13021
13022 __EOF__
13023
13024
13025 else
13026   # If there is no Makefile yet, we rely on a make rule to execute
13027   # `config.status --recheck' to rerun these tests and create the
13028   # libtool script then.
13029   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13030   if test -f "$ltmain_in"; then
13031     test -f Makefile && make "$ltmain"
13032   fi
13033 fi
13034
13035
13036 ac_ext=c
13037 ac_cpp='$CPP $CPPFLAGS'
13038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13041
13042 CC=$lt_save_CC
13043 LDCXX=$LD
13044 LD=$lt_save_LD
13045 GCC=$lt_save_GCC
13046 with_gnu_ldcxx=$with_gnu_ld
13047 with_gnu_ld=$lt_save_with_gnu_ld
13048 lt_cv_path_LDCXX=$lt_cv_path_LD
13049 lt_cv_path_LD=$lt_save_path_LD
13050 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13051 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13052
13053         else
13054           tagname=""
13055         fi
13056         ;;
13057
13058       F77)
13059         if test -n "$F77" && test "X$F77" != "Xno"; then
13060
13061 ac_ext=f
13062 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13063 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13064 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13065
13066
13067 archive_cmds_need_lc_F77=no
13068 allow_undefined_flag_F77=
13069 always_export_symbols_F77=no
13070 archive_expsym_cmds_F77=
13071 export_dynamic_flag_spec_F77=
13072 hardcode_direct_F77=no
13073 hardcode_libdir_flag_spec_F77=
13074 hardcode_libdir_flag_spec_ld_F77=
13075 hardcode_libdir_separator_F77=
13076 hardcode_minus_L_F77=no
13077 hardcode_automatic_F77=no
13078 module_cmds_F77=
13079 module_expsym_cmds_F77=
13080 link_all_deplibs_F77=unknown
13081 old_archive_cmds_F77=$old_archive_cmds
13082 no_undefined_flag_F77=
13083 whole_archive_flag_spec_F77=
13084 enable_shared_with_static_runtimes_F77=no
13085
13086 # Source file extension for f77 test sources.
13087 ac_ext=f
13088
13089 # Object file extension for compiled f77 test sources.
13090 objext=o
13091 objext_F77=$objext
13092
13093 # Code to be used in simple compile tests
13094 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13095
13096 # Code to be used in simple link tests
13097 lt_simple_link_test_code="      program t\n      end\n"
13098
13099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13100
13101 # If no C compiler was specified, use CC.
13102 LTCC=${LTCC-"$CC"}
13103
13104 # Allow CC to be a program name with arguments.
13105 compiler=$CC
13106
13107
13108 # Allow CC to be a program name with arguments.
13109 lt_save_CC="$CC"
13110 CC=${F77-"f77"}
13111 compiler=$CC
13112 compiler_F77=$CC
13113 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13114
13115 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13116 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13117 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13118 echo "${ECHO_T}$can_build_shared" >&6
13119
13120 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13121 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13122 test "$can_build_shared" = "no" && enable_shared=no
13123
13124 # On AIX, shared libraries and static libraries use the same namespace, and
13125 # are all built from PIC.
13126 case "$host_os" in
13127 aix3*)
13128   test "$enable_shared" = yes && enable_static=no
13129   if test -n "$RANLIB"; then
13130     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13131     postinstall_cmds='$RANLIB $lib'
13132   fi
13133   ;;
13134 aix4*)
13135   test "$enable_shared" = yes && enable_static=no
13136   ;;
13137 esac
13138 echo "$as_me:$LINENO: result: $enable_shared" >&5
13139 echo "${ECHO_T}$enable_shared" >&6
13140
13141 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13143 # Make sure either enable_shared or enable_static is yes.
13144 test "$enable_shared" = yes || enable_static=yes
13145 echo "$as_me:$LINENO: result: $enable_static" >&5
13146 echo "${ECHO_T}$enable_static" >&6
13147
13148 test "$ld_shlibs_F77" = no && can_build_shared=no
13149
13150 GCC_F77="$G77"
13151 LD_F77="$LD"
13152
13153 lt_prog_compiler_wl_F77=
13154 lt_prog_compiler_pic_F77=
13155 lt_prog_compiler_static_F77=
13156
13157 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13159
13160   if test "$GCC" = yes; then
13161     lt_prog_compiler_wl_F77='-Wl,'
13162     lt_prog_compiler_static_F77='-static'
13163
13164     case $host_os in
13165       aix*)
13166       # All AIX code is PIC.
13167       if test "$host_cpu" = ia64; then
13168         # AIX 5 now supports IA64 processor
13169         lt_prog_compiler_static_F77='-Bstatic'
13170       fi
13171       ;;
13172
13173     amigaos*)
13174       # FIXME: we need at least 68020 code to build shared libraries, but
13175       # adding the `-m68020' flag to GCC prevents building anything better,
13176       # like `-m68040'.
13177       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13178       ;;
13179
13180     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13181       # PIC is the default for these OSes.
13182       ;;
13183
13184     mingw* | pw32* | os2*)
13185       # This hack is so that the source file can tell whether it is being
13186       # built for inclusion in a dll (and should export symbols for example).
13187       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13188       ;;
13189
13190     darwin* | rhapsody*)
13191       # PIC is the default on this platform
13192       # Common symbols not allowed in MH_DYLIB files
13193       lt_prog_compiler_pic_F77='-fno-common'
13194       ;;
13195
13196     msdosdjgpp*)
13197       # Just because we use GCC doesn't mean we suddenly get shared libraries
13198       # on systems that don't support them.
13199       lt_prog_compiler_can_build_shared_F77=no
13200       enable_shared=no
13201       ;;
13202
13203     sysv4*MP*)
13204       if test -d /usr/nec; then
13205         lt_prog_compiler_pic_F77=-Kconform_pic
13206       fi
13207       ;;
13208
13209     hpux*)
13210       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13211       # not for PA HP-UX.
13212       case "$host_cpu" in
13213       hppa*64*|ia64*)
13214         # +Z the default
13215         ;;
13216       *)
13217         lt_prog_compiler_pic_F77='-fPIC'
13218         ;;
13219       esac
13220       ;;
13221
13222     *)
13223       lt_prog_compiler_pic_F77='-fPIC'
13224       ;;
13225     esac
13226   else
13227     # PORTME Check for flag to pass linker flags through the system compiler.
13228     case $host_os in
13229     aix*)
13230       lt_prog_compiler_wl_F77='-Wl,'
13231       if test "$host_cpu" = ia64; then
13232         # AIX 5 now supports IA64 processor
13233         lt_prog_compiler_static_F77='-Bstatic'
13234       else
13235         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13236       fi
13237       ;;
13238
13239     mingw* | pw32* | os2*)
13240       # This hack is so that the source file can tell whether it is being
13241       # built for inclusion in a dll (and should export symbols for example).
13242       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13243       ;;
13244
13245     hpux9* | hpux10* | hpux11*)
13246       lt_prog_compiler_wl_F77='-Wl,'
13247       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13248       # not for PA HP-UX.
13249       case "$host_cpu" in
13250       hppa*64*|ia64*)
13251         # +Z the default
13252         ;;
13253       *)
13254         lt_prog_compiler_pic_F77='+Z'
13255         ;;
13256       esac
13257       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13258       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13259       ;;
13260
13261     irix5* | irix6* | nonstopux*)
13262       lt_prog_compiler_wl_F77='-Wl,'
13263       # PIC (with -KPIC) is the default.
13264       lt_prog_compiler_static_F77='-non_shared'
13265       ;;
13266
13267     newsos6)
13268       lt_prog_compiler_pic_F77='-KPIC'
13269       lt_prog_compiler_static_F77='-Bstatic'
13270       ;;
13271
13272     linux*)
13273       case $CC in
13274       icc* | ecc*)
13275         lt_prog_compiler_wl_F77='-Wl,'
13276         lt_prog_compiler_pic_F77='-KPIC'
13277         lt_prog_compiler_static_F77='-static'
13278         ;;
13279       ccc*)
13280         lt_prog_compiler_wl_F77='-Wl,'
13281         # All Alpha code is PIC.
13282         lt_prog_compiler_static_F77='-non_shared'
13283         ;;
13284       esac
13285       ;;
13286
13287     osf3* | osf4* | osf5*)
13288       lt_prog_compiler_wl_F77='-Wl,'
13289       # All OSF/1 code is PIC.
13290       lt_prog_compiler_static_F77='-non_shared'
13291       ;;
13292
13293     sco3.2v5*)
13294       lt_prog_compiler_pic_F77='-Kpic'
13295       lt_prog_compiler_static_F77='-dn'
13296       ;;
13297
13298     solaris*)
13299       lt_prog_compiler_wl_F77='-Wl,'
13300       lt_prog_compiler_pic_F77='-KPIC'
13301       lt_prog_compiler_static_F77='-Bstatic'
13302       ;;
13303
13304     sunos4*)
13305       lt_prog_compiler_wl_F77='-Qoption ld '
13306       lt_prog_compiler_pic_F77='-PIC'
13307       lt_prog_compiler_static_F77='-Bstatic'
13308       ;;
13309
13310     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13311       lt_prog_compiler_wl_F77='-Wl,'
13312       lt_prog_compiler_pic_F77='-KPIC'
13313       lt_prog_compiler_static_F77='-Bstatic'
13314       ;;
13315
13316     sysv4*MP*)
13317       if test -d /usr/nec ;then
13318         lt_prog_compiler_pic_F77='-Kconform_pic'
13319         lt_prog_compiler_static_F77='-Bstatic'
13320       fi
13321       ;;
13322
13323     uts4*)
13324       lt_prog_compiler_pic_F77='-pic'
13325       lt_prog_compiler_static_F77='-Bstatic'
13326       ;;
13327
13328     *)
13329       lt_prog_compiler_can_build_shared_F77=no
13330       ;;
13331     esac
13332   fi
13333
13334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13335 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13336
13337 #
13338 # Check to make sure the PIC flag actually works.
13339 #
13340 if test -n "$lt_prog_compiler_pic_F77"; then
13341
13342 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13343 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13344 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13345   echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347   lt_prog_compiler_pic_works_F77=no
13348   ac_outfile=conftest.$ac_objext
13349    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13350    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13351    # Insert the option either (1) after the last *FLAGS variable, or
13352    # (2) before a word containing "conftest.", or (3) at the end.
13353    # Note that $ac_compile itself does not contain backslashes and begins
13354    # with a dollar sign (not a hyphen), so the echo should work correctly.
13355    # The option is referenced via a variable to avoid confusing sed.
13356    lt_compile=`echo "$ac_compile" | $SED \
13357    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13359    -e 's:$: $lt_compiler_flag:'`
13360    (eval echo "\"\$as_me:13360: $lt_compile\"" >&5)
13361    (eval "$lt_compile" 2>conftest.err)
13362    ac_status=$?
13363    cat conftest.err >&5
13364    echo "$as_me:13364: \$? = $ac_status" >&5
13365    if (exit $ac_status) && test -s "$ac_outfile"; then
13366      # The compiler can only warn and ignore the option if not recognized
13367      # So say no if there are warnings
13368      if test ! -s conftest.err; then
13369        lt_prog_compiler_pic_works_F77=yes
13370      fi
13371    fi
13372    $rm conftest*
13373
13374 fi
13375 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13376 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13377
13378 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13379     case $lt_prog_compiler_pic_F77 in
13380      "" | " "*) ;;
13381      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13382      esac
13383 else
13384     lt_prog_compiler_pic_F77=
13385      lt_prog_compiler_can_build_shared_F77=no
13386 fi
13387
13388 fi
13389 case "$host_os" in
13390   # For platforms which do not support PIC, -DPIC is meaningless:
13391   *djgpp*)
13392     lt_prog_compiler_pic_F77=
13393     ;;
13394   *)
13395     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13396     ;;
13397 esac
13398
13399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13401 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   lt_cv_prog_compiler_c_o_F77=no
13405    $rm -r conftest 2>/dev/null
13406    mkdir conftest
13407    cd conftest
13408    mkdir out
13409    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13410
13411    lt_compiler_flag="-o out/conftest2.$ac_objext"
13412    # Insert the option either (1) after the last *FLAGS variable, or
13413    # (2) before a word containing "conftest.", or (3) at the end.
13414    # Note that $ac_compile itself does not contain backslashes and begins
13415    # with a dollar sign (not a hyphen), so the echo should work correctly.
13416    lt_compile=`echo "$ac_compile" | $SED \
13417    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13419    -e 's:$: $lt_compiler_flag:'`
13420    (eval echo "\"\$as_me:13420: $lt_compile\"" >&5)
13421    (eval "$lt_compile" 2>out/conftest.err)
13422    ac_status=$?
13423    cat out/conftest.err >&5
13424    echo "$as_me:13424: \$? = $ac_status" >&5
13425    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13426    then
13427      # The compiler can only warn and ignore the option if not recognized
13428      # So say no if there are warnings
13429      if test ! -s out/conftest.err; then
13430        lt_cv_prog_compiler_c_o_F77=yes
13431      fi
13432    fi
13433    chmod u+w .
13434    $rm conftest*
13435    # SGI C++ compiler will create directory out/ii_files/ for
13436    # template instantiation
13437    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13438    $rm out/* && rmdir out
13439    cd ..
13440    rmdir conftest
13441    $rm conftest*
13442
13443 fi
13444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13445 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13446
13447
13448 hard_links="nottested"
13449 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13450   # do not overwrite the value of need_locks provided by the user
13451   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13452 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13453   hard_links=yes
13454   $rm conftest*
13455   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13456   touch conftest.a
13457   ln conftest.a conftest.b 2>&5 || hard_links=no
13458   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13459   echo "$as_me:$LINENO: result: $hard_links" >&5
13460 echo "${ECHO_T}$hard_links" >&6
13461   if test "$hard_links" = no; then
13462     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13463 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13464     need_locks=warn
13465   fi
13466 else
13467   need_locks=no
13468 fi
13469
13470 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13471 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13472
13473   runpath_var=
13474   allow_undefined_flag_F77=
13475   enable_shared_with_static_runtimes_F77=no
13476   archive_cmds_F77=
13477   archive_expsym_cmds_F77=
13478   old_archive_From_new_cmds_F77=
13479   old_archive_from_expsyms_cmds_F77=
13480   export_dynamic_flag_spec_F77=
13481   whole_archive_flag_spec_F77=
13482   thread_safe_flag_spec_F77=
13483   hardcode_libdir_flag_spec_F77=
13484   hardcode_libdir_flag_spec_ld_F77=
13485   hardcode_libdir_separator_F77=
13486   hardcode_direct_F77=no
13487   hardcode_minus_L_F77=no
13488   hardcode_shlibpath_var_F77=unsupported
13489   link_all_deplibs_F77=unknown
13490   hardcode_automatic_F77=no
13491   module_cmds_F77=
13492   module_expsym_cmds_F77=
13493   always_export_symbols_F77=no
13494   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13495   # include_expsyms should be a list of space-separated symbols to be *always*
13496   # included in the symbol list
13497   include_expsyms_F77=
13498   # exclude_expsyms can be an extended regexp of symbols to exclude
13499   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13500   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13501   # as well as any symbol that contains `d'.
13502   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13503   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13504   # platforms (ab)use it in PIC code, but their linkers get confused if
13505   # the symbol is explicitly referenced.  Since portable code cannot
13506   # rely on this symbol name, it's probably fine to never include it in
13507   # preloaded symbol tables.
13508   extract_expsyms_cmds=
13509
13510   case $host_os in
13511   cygwin* | mingw* | pw32*)
13512     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13513     # When not using gcc, we currently assume that we are using
13514     # Microsoft Visual C++.
13515     if test "$GCC" != yes; then
13516       with_gnu_ld=no
13517     fi
13518     ;;
13519   openbsd*)
13520     with_gnu_ld=no
13521     ;;
13522   esac
13523
13524   ld_shlibs_F77=yes
13525   if test "$with_gnu_ld" = yes; then
13526     # If archive_cmds runs LD, not CC, wlarc should be empty
13527     wlarc='${wl}'
13528
13529     # See if GNU ld supports shared libraries.
13530     case $host_os in
13531     aix3* | aix4* | aix5*)
13532       # On AIX/PPC, the GNU linker is very broken
13533       if test "$host_cpu" != ia64; then
13534         ld_shlibs_F77=no
13535         cat <<EOF 1>&2
13536
13537 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13538 *** to be unable to reliably create shared libraries on AIX.
13539 *** Therefore, libtool is disabling shared libraries support.  If you
13540 *** really care for shared libraries, you may want to modify your PATH
13541 *** so that a non-GNU linker is found, and then restart.
13542
13543 EOF
13544       fi
13545       ;;
13546
13547     amigaos*)
13548       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)'
13549       hardcode_libdir_flag_spec_F77='-L$libdir'
13550       hardcode_minus_L_F77=yes
13551
13552       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13553       # that the semantics of dynamic libraries on AmigaOS, at least up
13554       # to version 4, is to share data among multiple programs linked
13555       # with the same dynamic library.  Since this doesn't match the
13556       # behavior of shared libraries on other platforms, we can't use
13557       # them.
13558       ld_shlibs_F77=no
13559       ;;
13560
13561     beos*)
13562       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13563         allow_undefined_flag_F77=unsupported
13564         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13565         # support --undefined.  This deserves some investigation.  FIXME
13566         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13567       else
13568         ld_shlibs_F77=no
13569       fi
13570       ;;
13571
13572     cygwin* | mingw* | pw32*)
13573       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13574       # as there is no search path for DLLs.
13575       hardcode_libdir_flag_spec_F77='-L$libdir'
13576       allow_undefined_flag_F77=unsupported
13577       always_export_symbols_F77=no
13578       enable_shared_with_static_runtimes_F77=yes
13579       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13580
13581       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13582         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13583         # If the export-symbols file already is a .def file (1st line
13584         # is EXPORTS), use it as is; otherwise, prepend...
13585         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13586           cp $export_symbols $output_objdir/$soname.def;
13587         else
13588           echo EXPORTS > $output_objdir/$soname.def;
13589           cat $export_symbols >> $output_objdir/$soname.def;
13590         fi~
13591         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13592       else
13593         ld_shlibs=no
13594       fi
13595       ;;
13596
13597     netbsd* | knetbsd*-gnu)
13598       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13599         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13600         wlarc=
13601       else
13602         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13603         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13604       fi
13605       ;;
13606
13607     solaris* | sysv5*)
13608       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13609         ld_shlibs_F77=no
13610         cat <<EOF 1>&2
13611
13612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13613 *** create shared libraries on Solaris systems.  Therefore, libtool
13614 *** is disabling shared libraries support.  We urge you to upgrade GNU
13615 *** binutils to release 2.9.1 or newer.  Another option is to modify
13616 *** your PATH or compiler configuration so that the native linker is
13617 *** used, and then restart.
13618
13619 EOF
13620       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13621         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13622         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13623       else
13624         ld_shlibs_F77=no
13625       fi
13626       ;;
13627
13628     sunos4*)
13629       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13630       wlarc=
13631       hardcode_direct_F77=yes
13632       hardcode_shlibpath_var_F77=no
13633       ;;
13634
13635   linux*)
13636     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13637         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13638         archive_cmds_F77="$tmp_archive_cmds"
13639       supports_anon_versioning=no
13640       case `$LD -v 2>/dev/null` in
13641         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13642         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13643         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13644         *\ 2.11.*) ;; # other 2.11 versions
13645         *) supports_anon_versioning=yes ;;
13646       esac
13647       if test $supports_anon_versioning = yes; then
13648         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13650 $echo "local: *; };" >> $output_objdir/$libname.ver~
13651         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13652       else
13653         archive_expsym_cmds_F77="$tmp_archive_cmds"
13654       fi
13655     else
13656       ld_shlibs_F77=no
13657     fi
13658     ;;
13659
13660     *)
13661       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13662         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13664       else
13665         ld_shlibs_F77=no
13666       fi
13667       ;;
13668     esac
13669
13670     if test "$ld_shlibs_F77" = yes; then
13671       runpath_var=LD_RUN_PATH
13672       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13673       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13674       # ancient GNU ld didn't support --whole-archive et. al.
13675       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13676         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13677       else
13678         whole_archive_flag_spec_F77=
13679       fi
13680     fi
13681   else
13682     # PORTME fill in a description of your system's linker (not GNU ld)
13683     case $host_os in
13684     aix3*)
13685       allow_undefined_flag_F77=unsupported
13686       always_export_symbols_F77=yes
13687       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'
13688       # Note: this linker hardcodes the directories in LIBPATH if there
13689       # are no directories specified by -L.
13690       hardcode_minus_L_F77=yes
13691       if test "$GCC" = yes && test -z "$link_static_flag"; then
13692         # Neither direct hardcoding nor static linking is supported with a
13693         # broken collect2.
13694         hardcode_direct_F77=unsupported
13695       fi
13696       ;;
13697
13698     aix4* | aix5*)
13699       if test "$host_cpu" = ia64; then
13700         # On IA64, the linker does run time linking by default, so we don't
13701         # have to do anything special.
13702         aix_use_runtimelinking=no
13703         exp_sym_flag='-Bexport'
13704         no_entry_flag=""
13705       else
13706         # If we're using GNU nm, then we don't want the "-C" option.
13707         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13708         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13709           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'
13710         else
13711           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'
13712         fi
13713         aix_use_runtimelinking=no
13714
13715         # Test if we are trying to use run time linking or normal
13716         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13717         # need to do runtime linking.
13718         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13719           for ld_flag in $LDFLAGS; do
13720           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13721             aix_use_runtimelinking=yes
13722             break
13723           fi
13724           done
13725         esac
13726
13727         exp_sym_flag='-bexport'
13728         no_entry_flag='-bnoentry'
13729       fi
13730
13731       # When large executables or shared objects are built, AIX ld can
13732       # have problems creating the table of contents.  If linking a library
13733       # or program results in "error TOC overflow" add -mminimal-toc to
13734       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13735       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13736
13737       archive_cmds_F77=''
13738       hardcode_direct_F77=yes
13739       hardcode_libdir_separator_F77=':'
13740       link_all_deplibs_F77=yes
13741
13742       if test "$GCC" = yes; then
13743         case $host_os in aix4.012|aix4.012.*)
13744         # We only want to do this on AIX 4.2 and lower, the check
13745         # below for broken collect2 doesn't work under 4.3+
13746           collect2name=`${CC} -print-prog-name=collect2`
13747           if test -f "$collect2name" && \
13748            strings "$collect2name" | grep resolve_lib_name >/dev/null
13749           then
13750           # We have reworked collect2
13751           hardcode_direct_F77=yes
13752           else
13753           # We have old collect2
13754           hardcode_direct_F77=unsupported
13755           # It fails to find uninstalled libraries when the uninstalled
13756           # path is not listed in the libpath.  Setting hardcode_minus_L
13757           # to unsupported forces relinking
13758           hardcode_minus_L_F77=yes
13759           hardcode_libdir_flag_spec_F77='-L$libdir'
13760           hardcode_libdir_separator_F77=
13761           fi
13762         esac
13763         shared_flag='-shared'
13764       else
13765         # not using gcc
13766         if test "$host_cpu" = ia64; then
13767         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13768         # chokes on -Wl,-G. The following line is correct:
13769           shared_flag='-G'
13770         else
13771         if test "$aix_use_runtimelinking" = yes; then
13772             shared_flag='${wl}-G'
13773           else
13774             shared_flag='${wl}-bM:SRE'
13775         fi
13776         fi
13777       fi
13778
13779       # It seems that -bexpall does not export symbols beginning with
13780       # underscore (_), so it is better to generate a list of symbols to export.
13781       always_export_symbols_F77=yes
13782       if test "$aix_use_runtimelinking" = yes; then
13783         # Warning - without using the other runtime loading flags (-brtl),
13784         # -berok will link without error, but may produce a broken library.
13785         allow_undefined_flag_F77='-berok'
13786        # Determine the default libpath from the value encoded in an empty executable.
13787        cat >conftest.$ac_ext <<_ACEOF
13788       program main
13789
13790       end
13791 _ACEOF
13792 rm -f conftest.$ac_objext conftest$ac_exeext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13794   (eval $ac_link) 2>conftest.er1
13795   ac_status=$?
13796   grep -v '^ *+' conftest.er1 >conftest.err
13797   rm -f conftest.er1
13798   cat conftest.err >&5
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803   (eval $ac_try) 2>&5
13804   ac_status=$?
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); }; } &&
13807          { ac_try='test -s conftest$ac_exeext'
13808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809   (eval $ac_try) 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; }; then
13813
13814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13815 }'`
13816 # Check for a 64-bit object if we didn't find anything.
13817 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; }
13818 }'`; fi
13819 else
13820   echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13822
13823 fi
13824 rm -f conftest.err conftest.$ac_objext \
13825       conftest$ac_exeext conftest.$ac_ext
13826 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13827
13828        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13829         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"
13830        else
13831         if test "$host_cpu" = ia64; then
13832           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13833           allow_undefined_flag_F77="-z nodefs"
13834           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"
13835         else
13836          # Determine the default libpath from the value encoded in an empty executable.
13837          cat >conftest.$ac_ext <<_ACEOF
13838       program main
13839
13840       end
13841 _ACEOF
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844   (eval $ac_link) 2>conftest.er1
13845   ac_status=$?
13846   grep -v '^ *+' conftest.er1 >conftest.err
13847   rm -f conftest.er1
13848   cat conftest.err >&5
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); } &&
13851          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853   (eval $ac_try) 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; } &&
13857          { ac_try='test -s conftest$ac_exeext'
13858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859   (eval $ac_try) 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; }; then
13863
13864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13865 }'`
13866 # Check for a 64-bit object if we didn't find anything.
13867 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; }
13868 }'`; fi
13869 else
13870   echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13872
13873 fi
13874 rm -f conftest.err conftest.$ac_objext \
13875       conftest$ac_exeext conftest.$ac_ext
13876 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13877
13878          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13879           # Warning - without using the other run time loading flags,
13880           # -berok will link without error, but may produce a broken library.
13881           no_undefined_flag_F77=' ${wl}-bernotok'
13882           allow_undefined_flag_F77=' ${wl}-berok'
13883           # -bexpall does not export symbols beginning with underscore (_)
13884           always_export_symbols_F77=yes
13885           # Exported symbols can be pulled into shared objects from archives
13886           whole_archive_flag_spec_F77=' '
13887           archive_cmds_need_lc_F77=yes
13888           # This is similar to how AIX traditionally builds it's shared libraries.
13889           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'
13890         fi
13891       fi
13892       ;;
13893
13894     amigaos*)
13895       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)'
13896       hardcode_libdir_flag_spec_F77='-L$libdir'
13897       hardcode_minus_L_F77=yes
13898       # see comment about different semantics on the GNU ld section
13899       ld_shlibs_F77=no
13900       ;;
13901
13902     bsdi4*)
13903       export_dynamic_flag_spec_F77=-rdynamic
13904       ;;
13905
13906     cygwin* | mingw* | pw32*)
13907       # When not using gcc, we currently assume that we are using
13908       # Microsoft Visual C++.
13909       # hardcode_libdir_flag_spec is actually meaningless, as there is
13910       # no search path for DLLs.
13911       hardcode_libdir_flag_spec_F77=' '
13912       allow_undefined_flag_F77=unsupported
13913       # Tell ltmain to make .lib files, not .a files.
13914       libext=lib
13915       # Tell ltmain to make .dll files, not .so files.
13916       shrext=".dll"
13917       # FIXME: Setting linknames here is a bad hack.
13918       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13919       # The linker will automatically build a .lib file if we build a DLL.
13920       old_archive_From_new_cmds_F77='true'
13921       # FIXME: Should let the user specify the lib program.
13922       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13923       fix_srcfile_path='`cygpath -w "$srcfile"`'
13924       enable_shared_with_static_runtimes_F77=yes
13925       ;;
13926
13927     darwin* | rhapsody*)
13928     if test "$GXX" = yes ; then
13929       archive_cmds_need_lc_F77=no
13930       case "$host_os" in
13931       rhapsody* | darwin1.[012])
13932         allow_undefined_flag_F77='-undefined suppress'
13933         ;;
13934       *) # Darwin 1.3 on
13935       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13936         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13937       else
13938         case ${MACOSX_DEPLOYMENT_TARGET} in
13939           10.[012])
13940             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13941             ;;
13942           10.*)
13943             allow_undefined_flag_F77='-undefined dynamic_lookup'
13944             ;;
13945         esac
13946       fi
13947         ;;
13948       esac
13949         lt_int_apple_cc_single_mod=no
13950         output_verbose_link_cmd='echo'
13951         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13952           lt_int_apple_cc_single_mod=yes
13953         fi
13954         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13955           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13956         else
13957         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'
13958       fi
13959       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13960       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13961         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13962           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}'
13963         else
13964           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}'
13965         fi
13966           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}'
13967       hardcode_direct_F77=no
13968       hardcode_automatic_F77=yes
13969       hardcode_shlibpath_var_F77=unsupported
13970       whole_archive_flag_spec_F77='-all_load $convenience'
13971       link_all_deplibs_F77=yes
13972     else
13973       ld_shlibs_F77=no
13974     fi
13975       ;;
13976
13977     dgux*)
13978       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13979       hardcode_libdir_flag_spec_F77='-L$libdir'
13980       hardcode_shlibpath_var_F77=no
13981       ;;
13982
13983     freebsd1*)
13984       ld_shlibs_F77=no
13985       ;;
13986
13987     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13988     # support.  Future versions do this automatically, but an explicit c++rt0.o
13989     # does not break anything, and helps significantly (at the cost of a little
13990     # extra space).
13991     freebsd2.2*)
13992       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13993       hardcode_libdir_flag_spec_F77='-R$libdir'
13994       hardcode_direct_F77=yes
13995       hardcode_shlibpath_var_F77=no
13996       ;;
13997
13998     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13999     freebsd2*)
14000       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14001       hardcode_direct_F77=yes
14002       hardcode_minus_L_F77=yes
14003       hardcode_shlibpath_var_F77=no
14004       ;;
14005
14006     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14007     freebsd* | kfreebsd*-gnu)
14008       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14009       hardcode_libdir_flag_spec_F77='-R$libdir'
14010       hardcode_direct_F77=yes
14011       hardcode_shlibpath_var_F77=no
14012       ;;
14013
14014     hpux9*)
14015       if test "$GCC" = yes; then
14016         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'
14017       else
14018         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'
14019       fi
14020       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14021       hardcode_libdir_separator_F77=:
14022       hardcode_direct_F77=yes
14023
14024       # hardcode_minus_L: Not really in the search PATH,
14025       # but as the default location of the library.
14026       hardcode_minus_L_F77=yes
14027       export_dynamic_flag_spec_F77='${wl}-E'
14028       ;;
14029
14030     hpux10* | hpux11*)
14031       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14032         case "$host_cpu" in
14033         hppa*64*|ia64*)
14034           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14035           ;;
14036         *)
14037           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14038           ;;
14039         esac
14040       else
14041         case "$host_cpu" in
14042         hppa*64*|ia64*)
14043           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14044           ;;
14045         *)
14046           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14047           ;;
14048         esac
14049       fi
14050       if test "$with_gnu_ld" = no; then
14051         case "$host_cpu" in
14052         hppa*64*)
14053           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14054           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14055           hardcode_libdir_separator_F77=:
14056           hardcode_direct_F77=no
14057           hardcode_shlibpath_var_F77=no
14058           ;;
14059         ia64*)
14060           hardcode_libdir_flag_spec_F77='-L$libdir'
14061           hardcode_direct_F77=no
14062           hardcode_shlibpath_var_F77=no
14063
14064           # hardcode_minus_L: Not really in the search PATH,
14065           # but as the default location of the library.
14066           hardcode_minus_L_F77=yes
14067           ;;
14068         *)
14069           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14070           hardcode_libdir_separator_F77=:
14071           hardcode_direct_F77=yes
14072           export_dynamic_flag_spec_F77='${wl}-E'
14073
14074           # hardcode_minus_L: Not really in the search PATH,
14075           # but as the default location of the library.
14076           hardcode_minus_L_F77=yes
14077           ;;
14078         esac
14079       fi
14080       ;;
14081
14082     irix5* | irix6* | nonstopux*)
14083       if test "$GCC" = yes; then
14084         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'
14085       else
14086         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'
14087         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14088       fi
14089       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14090       hardcode_libdir_separator_F77=:
14091       link_all_deplibs_F77=yes
14092       ;;
14093
14094     netbsd* | knetbsd*-gnu)
14095       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14096         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14097       else
14098         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14099       fi
14100       hardcode_libdir_flag_spec_F77='-R$libdir'
14101       hardcode_direct_F77=yes
14102       hardcode_shlibpath_var_F77=no
14103       ;;
14104
14105     newsos6)
14106       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14107       hardcode_direct_F77=yes
14108       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14109       hardcode_libdir_separator_F77=:
14110       hardcode_shlibpath_var_F77=no
14111       ;;
14112
14113     openbsd*)
14114       hardcode_direct_F77=yes
14115       hardcode_shlibpath_var_F77=no
14116       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14117         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14118         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14119         export_dynamic_flag_spec_F77='${wl}-E'
14120       else
14121        case $host_os in
14122          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14123            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14124            hardcode_libdir_flag_spec_F77='-R$libdir'
14125            ;;
14126          *)
14127            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14128            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14129            ;;
14130        esac
14131       fi
14132       ;;
14133
14134     os2*)
14135       hardcode_libdir_flag_spec_F77='-L$libdir'
14136       hardcode_minus_L_F77=yes
14137       allow_undefined_flag_F77=unsupported
14138       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'
14139       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14140       ;;
14141
14142     osf3*)
14143       if test "$GCC" = yes; then
14144         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14145         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'
14146       else
14147         allow_undefined_flag_F77=' -expect_unresolved \*'
14148         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'
14149       fi
14150       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14151       hardcode_libdir_separator_F77=:
14152       ;;
14153
14154     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14155       if test "$GCC" = yes; then
14156         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14157         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'
14158         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14159       else
14160         allow_undefined_flag_F77=' -expect_unresolved \*'
14161         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'
14162         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~
14163         $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'
14164
14165         # Both c and cxx compiler support -rpath directly
14166         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14167       fi
14168       hardcode_libdir_separator_F77=:
14169       ;;
14170
14171     sco3.2v5*)
14172       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14173       hardcode_shlibpath_var_F77=no
14174       export_dynamic_flag_spec_F77='${wl}-Bexport'
14175       runpath_var=LD_RUN_PATH
14176       hardcode_runpath_var=yes
14177       ;;
14178
14179     solaris*)
14180       no_undefined_flag_F77=' -z text'
14181       if test "$GCC" = yes; then
14182         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14183         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14184           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14185       else
14186         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14187         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14188         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14189       fi
14190       hardcode_libdir_flag_spec_F77='-R$libdir'
14191       hardcode_shlibpath_var_F77=no
14192       case $host_os in
14193       solaris2.[0-5] | solaris2.[0-5].*) ;;
14194       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14195         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14196       esac
14197       link_all_deplibs_F77=yes
14198       ;;
14199
14200     sunos4*)
14201       if test "x$host_vendor" = xsequent; then
14202         # Use $CC to link under sequent, because it throws in some extra .o
14203         # files that make .init and .fini sections work.
14204         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14205       else
14206         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14207       fi
14208       hardcode_libdir_flag_spec_F77='-L$libdir'
14209       hardcode_direct_F77=yes
14210       hardcode_minus_L_F77=yes
14211       hardcode_shlibpath_var_F77=no
14212       ;;
14213
14214     sysv4)
14215       case $host_vendor in
14216         sni)
14217           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14218           hardcode_direct_F77=yes # is this really true???
14219         ;;
14220         siemens)
14221           ## LD is ld it makes a PLAMLIB
14222           ## CC just makes a GrossModule.
14223           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14224           reload_cmds_F77='$CC -r -o $output$reload_objs'
14225           hardcode_direct_F77=no
14226         ;;
14227         motorola)
14228           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14229           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14230         ;;
14231       esac
14232       runpath_var='LD_RUN_PATH'
14233       hardcode_shlibpath_var_F77=no
14234       ;;
14235
14236     sysv4.3*)
14237       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14238       hardcode_shlibpath_var_F77=no
14239       export_dynamic_flag_spec_F77='-Bexport'
14240       ;;
14241
14242     sysv4*MP*)
14243       if test -d /usr/nec; then
14244         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14245         hardcode_shlibpath_var_F77=no
14246         runpath_var=LD_RUN_PATH
14247         hardcode_runpath_var=yes
14248         ld_shlibs_F77=yes
14249       fi
14250       ;;
14251
14252     sysv4.2uw2*)
14253       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14254       hardcode_direct_F77=yes
14255       hardcode_minus_L_F77=no
14256       hardcode_shlibpath_var_F77=no
14257       hardcode_runpath_var=yes
14258       runpath_var=LD_RUN_PATH
14259       ;;
14260
14261    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14262       no_undefined_flag_F77='${wl}-z ${wl}text'
14263       if test "$GCC" = yes; then
14264         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14265       else
14266         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14267       fi
14268       runpath_var='LD_RUN_PATH'
14269       hardcode_shlibpath_var_F77=no
14270       ;;
14271
14272     sysv5*)
14273       no_undefined_flag_F77=' -z text'
14274       # $CC -shared without GNU ld will not create a library from C++
14275       # object files and a static libstdc++, better avoid it by now
14276       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14277       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14278                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14279       hardcode_libdir_flag_spec_F77=
14280       hardcode_shlibpath_var_F77=no
14281       runpath_var='LD_RUN_PATH'
14282       ;;
14283
14284     uts4*)
14285       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14286       hardcode_libdir_flag_spec_F77='-L$libdir'
14287       hardcode_shlibpath_var_F77=no
14288       ;;
14289
14290     *)
14291       ld_shlibs_F77=no
14292       ;;
14293     esac
14294   fi
14295
14296 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14297 echo "${ECHO_T}$ld_shlibs_F77" >&6
14298 test "$ld_shlibs_F77" = no && can_build_shared=no
14299
14300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14301 if test "$GCC" = yes; then
14302   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14303 fi
14304
14305 #
14306 # Do we need to explicitly link libc?
14307 #
14308 case "x$archive_cmds_need_lc_F77" in
14309 x|xyes)
14310   # Assume -lc should be added
14311   archive_cmds_need_lc_F77=yes
14312
14313   if test "$enable_shared" = yes && test "$GCC" = yes; then
14314     case $archive_cmds_F77 in
14315     *'~'*)
14316       # FIXME: we may have to deal with multi-command sequences.
14317       ;;
14318     '$CC '*)
14319       # Test whether the compiler implicitly links with -lc since on some
14320       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14321       # to ld, don't add -lc before -lgcc.
14322       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14323 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14324       $rm conftest*
14325       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14326
14327       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328   (eval $ac_compile) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); } 2>conftest.err; then
14332         soname=conftest
14333         lib=conftest
14334         libobjs=conftest.$ac_objext
14335         deplibs=
14336         wl=$lt_prog_compiler_wl_F77
14337         compiler_flags=-v
14338         linker_flags=-v
14339         verstring=
14340         output_objdir=.
14341         libname=conftest
14342         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14343         allow_undefined_flag_F77=
14344         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14345   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }
14349         then
14350           archive_cmds_need_lc_F77=no
14351         else
14352           archive_cmds_need_lc_F77=yes
14353         fi
14354         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14355       else
14356         cat conftest.err 1>&5
14357       fi
14358       $rm conftest*
14359       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14360 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14361       ;;
14362     esac
14363   fi
14364   ;;
14365 esac
14366
14367 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14368 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14369 library_names_spec=
14370 libname_spec='lib$name'
14371 soname_spec=
14372 shrext=".so"
14373 postinstall_cmds=
14374 postuninstall_cmds=
14375 finish_cmds=
14376 finish_eval=
14377 shlibpath_var=
14378 shlibpath_overrides_runpath=unknown
14379 version_type=none
14380 dynamic_linker="$host_os ld.so"
14381 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14382 if test "$GCC" = yes; then
14383   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14384   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14385     # if the path contains ";" then we assume it to be the separator
14386     # otherwise default to the standard path separator (i.e. ":") - it is
14387     # assumed that no part of a normal pathname contains ";" but that should
14388     # okay in the real world where ";" in dirpaths is itself problematic.
14389     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14390   else
14391     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14392   fi
14393 else
14394   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14395 fi
14396 need_lib_prefix=unknown
14397 hardcode_into_libs=no
14398
14399 # when you set need_version to no, make sure it does not cause -set_version
14400 # flags to be left without arguments
14401 need_version=unknown
14402
14403 case $host_os in
14404 aix3*)
14405   version_type=linux
14406   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14407   shlibpath_var=LIBPATH
14408
14409   # AIX 3 has no versioning support, so we append a major version to the name.
14410   soname_spec='${libname}${release}${shared_ext}$major'
14411   ;;
14412
14413 aix4* | aix5*)
14414   version_type=linux
14415   need_lib_prefix=no
14416   need_version=no
14417   hardcode_into_libs=yes
14418   if test "$host_cpu" = ia64; then
14419     # AIX 5 supports IA64
14420     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14421     shlibpath_var=LD_LIBRARY_PATH
14422   else
14423     # With GCC up to 2.95.x, collect2 would create an import file
14424     # for dependence libraries.  The import file would start with
14425     # the line `#! .'.  This would cause the generated library to
14426     # depend on `.', always an invalid library.  This was fixed in
14427     # development snapshots of GCC prior to 3.0.
14428     case $host_os in
14429       aix4 | aix4.[01] | aix4.[01].*)
14430       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14431            echo ' yes '
14432            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14433         :
14434       else
14435         can_build_shared=no
14436       fi
14437       ;;
14438     esac
14439     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14440     # soname into executable. Probably we can add versioning support to
14441     # collect2, so additional links can be useful in future.
14442     if test "$aix_use_runtimelinking" = yes; then
14443       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14444       # instead of lib<name>.a to let people know that these are not
14445       # typical AIX shared libraries.
14446       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14447     else
14448       # We preserve .a as extension for shared libraries through AIX4.2
14449       # and later when we are not doing run time linking.
14450       library_names_spec='${libname}${release}.a $libname.a'
14451       soname_spec='${libname}${release}${shared_ext}$major'
14452     fi
14453     shlibpath_var=LIBPATH
14454   fi
14455   ;;
14456
14457 amigaos*)
14458   library_names_spec='$libname.ixlibrary $libname.a'
14459   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14460   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'
14461   ;;
14462
14463 beos*)
14464   library_names_spec='${libname}${shared_ext}'
14465   dynamic_linker="$host_os ld.so"
14466   shlibpath_var=LIBRARY_PATH
14467   ;;
14468
14469 bsdi4*)
14470   version_type=linux
14471   need_version=no
14472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473   soname_spec='${libname}${release}${shared_ext}$major'
14474   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14475   shlibpath_var=LD_LIBRARY_PATH
14476   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14477   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14478   # the default ld.so.conf also contains /usr/contrib/lib and
14479   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14480   # libtool to hard-code these into programs
14481   ;;
14482
14483 cygwin* | mingw* | pw32*)
14484   version_type=windows
14485   shrext=".dll"
14486   need_version=no
14487   need_lib_prefix=no
14488
14489   case $GCC,$host_os in
14490   yes,cygwin* | yes,mingw* | yes,pw32*)
14491     library_names_spec='$libname.dll.a'
14492     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14493     postinstall_cmds='base_file=`basename \${file}`~
14494       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14495       dldir=$destdir/`dirname \$dlpath`~
14496       test -d \$dldir || mkdir -p \$dldir~
14497       $install_prog $dir/$dlname \$dldir/$dlname'
14498     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14499       dlpath=$dir/\$dldll~
14500        $rm \$dlpath'
14501     shlibpath_overrides_runpath=yes
14502
14503     case $host_os in
14504     cygwin*)
14505       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14506       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14507       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14508       ;;
14509     mingw*)
14510       # MinGW DLLs use traditional 'lib' prefix
14511       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14512       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14513       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14514         # It is most probably a Windows format PATH printed by
14515         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14516         # path with ; separators, and with drive letters. We can handle the
14517         # drive letters (cygwin fileutils understands them), so leave them,
14518         # especially as we might pass files found there to a mingw objdump,
14519         # which wouldn't understand a cygwinified path. Ahh.
14520         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14521       else
14522         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14523       fi
14524       ;;
14525     pw32*)
14526       # pw32 DLLs use 'pw' prefix rather than 'lib'
14527       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14528       ;;
14529     esac
14530     ;;
14531
14532   *)
14533     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14534     ;;
14535   esac
14536   dynamic_linker='Win32 ld.exe'
14537   # FIXME: first we should search . and the directory the executable is in
14538   shlibpath_var=PATH
14539   ;;
14540
14541 darwin* | rhapsody*)
14542   dynamic_linker="$host_os dyld"
14543   version_type=darwin
14544   need_lib_prefix=no
14545   need_version=no
14546   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14547   soname_spec='${libname}${release}${major}$shared_ext'
14548   shlibpath_overrides_runpath=yes
14549   shlibpath_var=DYLD_LIBRARY_PATH
14550   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14551   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14552   if test "$GCC" = yes; then
14553     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"`
14554   else
14555     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14556   fi
14557   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14558   ;;
14559
14560 dgux*)
14561   version_type=linux
14562   need_lib_prefix=no
14563   need_version=no
14564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14565   soname_spec='${libname}${release}${shared_ext}$major'
14566   shlibpath_var=LD_LIBRARY_PATH
14567   ;;
14568
14569 freebsd1*)
14570   dynamic_linker=no
14571   ;;
14572
14573 kfreebsd*-gnu)
14574   version_type=linux
14575   need_lib_prefix=no
14576   need_version=no
14577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14578   soname_spec='${libname}${release}${shared_ext}$major'
14579   shlibpath_var=LD_LIBRARY_PATH
14580   shlibpath_overrides_runpath=no
14581   hardcode_into_libs=yes
14582   dynamic_linker='GNU ld.so'
14583   ;;
14584
14585 freebsd*)
14586   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14587   version_type=freebsd-$objformat
14588   case $version_type in
14589     freebsd-elf*)
14590       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14591       need_version=no
14592       need_lib_prefix=no
14593       ;;
14594     freebsd-*)
14595       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14596       need_version=yes
14597       ;;
14598   esac
14599   shlibpath_var=LD_LIBRARY_PATH
14600   case $host_os in
14601   freebsd2*)
14602     shlibpath_overrides_runpath=yes
14603     ;;
14604   freebsd3.01* | freebsdelf3.01*)
14605     shlibpath_overrides_runpath=yes
14606     hardcode_into_libs=yes
14607     ;;
14608   *) # from 3.2 on
14609     shlibpath_overrides_runpath=no
14610     hardcode_into_libs=yes
14611     ;;
14612   esac
14613   ;;
14614
14615 gnu*)
14616   version_type=linux
14617   need_lib_prefix=no
14618   need_version=no
14619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14620   soname_spec='${libname}${release}${shared_ext}$major'
14621   shlibpath_var=LD_LIBRARY_PATH
14622   hardcode_into_libs=yes
14623   ;;
14624
14625 hpux9* | hpux10* | hpux11*)
14626   # Give a soname corresponding to the major version so that dld.sl refuses to
14627   # link against other versions.
14628   version_type=sunos
14629   need_lib_prefix=no
14630   need_version=no
14631   case "$host_cpu" in
14632   ia64*)
14633     shrext='.so'
14634     hardcode_into_libs=yes
14635     dynamic_linker="$host_os dld.so"
14636     shlibpath_var=LD_LIBRARY_PATH
14637     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639     soname_spec='${libname}${release}${shared_ext}$major'
14640     if test "X$HPUX_IA64_MODE" = X32; then
14641       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14642     else
14643       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14644     fi
14645     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14646     ;;
14647    hppa*64*)
14648      shrext='.sl'
14649      hardcode_into_libs=yes
14650      dynamic_linker="$host_os dld.sl"
14651      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14652      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14653      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14654      soname_spec='${libname}${release}${shared_ext}$major'
14655      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14656      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14657      ;;
14658    *)
14659     shrext='.sl'
14660     dynamic_linker="$host_os dld.sl"
14661     shlibpath_var=SHLIB_PATH
14662     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14664     soname_spec='${libname}${release}${shared_ext}$major'
14665     ;;
14666   esac
14667   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14668   postinstall_cmds='chmod 555 $lib'
14669   ;;
14670
14671 irix5* | irix6* | nonstopux*)
14672   case $host_os in
14673     nonstopux*) version_type=nonstopux ;;
14674     *)
14675         if test "$lt_cv_prog_gnu_ld" = yes; then
14676                 version_type=linux
14677         else
14678                 version_type=irix
14679         fi ;;
14680   esac
14681   need_lib_prefix=no
14682   need_version=no
14683   soname_spec='${libname}${release}${shared_ext}$major'
14684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14685   case $host_os in
14686   irix5* | nonstopux*)
14687     libsuff= shlibsuff=
14688     ;;
14689   *)
14690     case $LD in # libtool.m4 will add one of these switches to LD
14691     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14692       libsuff= shlibsuff= libmagic=32-bit;;
14693     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14694       libsuff=32 shlibsuff=N32 libmagic=N32;;
14695     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14696       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14697     *) libsuff= shlibsuff= libmagic=never-match;;
14698     esac
14699     ;;
14700   esac
14701   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14702   shlibpath_overrides_runpath=no
14703   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14704   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14705   hardcode_into_libs=yes
14706   ;;
14707
14708 # No shared lib support for Linux oldld, aout, or coff.
14709 linux*oldld* | linux*aout* | linux*coff*)
14710   dynamic_linker=no
14711   ;;
14712
14713 # This must be Linux ELF.
14714 linux*)
14715   version_type=linux
14716   need_lib_prefix=no
14717   need_version=no
14718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719   soname_spec='${libname}${release}${shared_ext}$major'
14720   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14721   shlibpath_var=LD_LIBRARY_PATH
14722   shlibpath_overrides_runpath=no
14723   # This implies no fast_install, which is unacceptable.
14724   # Some rework will be needed to allow for fast_install
14725   # before this can be enabled.
14726   hardcode_into_libs=yes
14727
14728   # Append ld.so.conf contents to the search path
14729   if test -f /etc/ld.so.conf; then
14730     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14731     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14732   fi
14733
14734   # We used to test for /lib/ld.so.1 and disable shared libraries on
14735   # powerpc, because MkLinux only supported shared libraries with the
14736   # GNU dynamic linker.  Since this was broken with cross compilers,
14737   # most powerpc-linux boxes support dynamic linking these days and
14738   # people can always --disable-shared, the test was removed, and we
14739   # assume the GNU/Linux dynamic linker is in use.
14740   dynamic_linker='GNU/Linux ld.so'
14741   ;;
14742
14743 knetbsd*-gnu)
14744   version_type=linux
14745   need_lib_prefix=no
14746   need_version=no
14747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14748   soname_spec='${libname}${release}${shared_ext}$major'
14749   shlibpath_var=LD_LIBRARY_PATH
14750   shlibpath_overrides_runpath=no
14751   hardcode_into_libs=yes
14752   dynamic_linker='GNU ld.so'
14753   ;;
14754
14755 netbsd*)
14756   version_type=sunos
14757   need_lib_prefix=no
14758   need_version=no
14759   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14761     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14762     dynamic_linker='NetBSD (a.out) ld.so'
14763   else
14764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14765     soname_spec='${libname}${release}${shared_ext}$major'
14766     dynamic_linker='NetBSD ld.elf_so'
14767   fi
14768   shlibpath_var=LD_LIBRARY_PATH
14769   shlibpath_overrides_runpath=yes
14770   hardcode_into_libs=yes
14771   ;;
14772
14773 newsos6)
14774   version_type=linux
14775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776   shlibpath_var=LD_LIBRARY_PATH
14777   shlibpath_overrides_runpath=yes
14778   ;;
14779
14780 nto-qnx*)
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   shlibpath_var=LD_LIBRARY_PATH
14787   shlibpath_overrides_runpath=yes
14788   ;;
14789
14790 openbsd*)
14791   version_type=sunos
14792   need_lib_prefix=no
14793   need_version=yes
14794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14795   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14796   shlibpath_var=LD_LIBRARY_PATH
14797   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14798     case $host_os in
14799       openbsd2.[89] | openbsd2.[89].*)
14800         shlibpath_overrides_runpath=no
14801         ;;
14802       *)
14803         shlibpath_overrides_runpath=yes
14804         ;;
14805       esac
14806   else
14807     shlibpath_overrides_runpath=yes
14808   fi
14809   ;;
14810
14811 os2*)
14812   libname_spec='$name'
14813   shrext=".dll"
14814   need_lib_prefix=no
14815   library_names_spec='$libname${shared_ext} $libname.a'
14816   dynamic_linker='OS/2 ld.exe'
14817   shlibpath_var=LIBPATH
14818   ;;
14819
14820 osf3* | osf4* | osf5*)
14821   version_type=osf
14822   need_lib_prefix=no
14823   need_version=no
14824   soname_spec='${libname}${release}${shared_ext}$major'
14825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826   shlibpath_var=LD_LIBRARY_PATH
14827   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14828   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14829   ;;
14830
14831 sco3.2v5*)
14832   version_type=osf
14833   soname_spec='${libname}${release}${shared_ext}$major'
14834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835   shlibpath_var=LD_LIBRARY_PATH
14836   ;;
14837
14838 solaris*)
14839   version_type=linux
14840   need_lib_prefix=no
14841   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
14845   shlibpath_overrides_runpath=yes
14846   hardcode_into_libs=yes
14847   # ldd complains unless libraries are executable
14848   postinstall_cmds='chmod +x $lib'
14849   ;;
14850
14851 sunos4*)
14852   version_type=sunos
14853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14854   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14855   shlibpath_var=LD_LIBRARY_PATH
14856   shlibpath_overrides_runpath=yes
14857   if test "$with_gnu_ld" = yes; then
14858     need_lib_prefix=no
14859   fi
14860   need_version=yes
14861   ;;
14862
14863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14864   version_type=linux
14865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866   soname_spec='${libname}${release}${shared_ext}$major'
14867   shlibpath_var=LD_LIBRARY_PATH
14868   case $host_vendor in
14869     sni)
14870       shlibpath_overrides_runpath=no
14871       need_lib_prefix=no
14872       export_dynamic_flag_spec='${wl}-Blargedynsym'
14873       runpath_var=LD_RUN_PATH
14874       ;;
14875     siemens)
14876       need_lib_prefix=no
14877       ;;
14878     motorola)
14879       need_lib_prefix=no
14880       need_version=no
14881       shlibpath_overrides_runpath=no
14882       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14883       ;;
14884   esac
14885   ;;
14886
14887 sysv4*MP*)
14888   if test -d /usr/nec ;then
14889     version_type=linux
14890     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14891     soname_spec='$libname${shared_ext}.$major'
14892     shlibpath_var=LD_LIBRARY_PATH
14893   fi
14894   ;;
14895
14896 uts4*)
14897   version_type=linux
14898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899   soname_spec='${libname}${release}${shared_ext}$major'
14900   shlibpath_var=LD_LIBRARY_PATH
14901   ;;
14902
14903 *)
14904   dynamic_linker=no
14905   ;;
14906 esac
14907 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14908 echo "${ECHO_T}$dynamic_linker" >&6
14909 test "$dynamic_linker" = no && can_build_shared=no
14910
14911 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14912 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14913 hardcode_action_F77=
14914 if test -n "$hardcode_libdir_flag_spec_F77" || \
14915    test -n "$runpath_var F77" || \
14916    test "X$hardcode_automatic_F77"="Xyes" ; then
14917
14918   # We can hardcode non-existant directories.
14919   if test "$hardcode_direct_F77" != no &&
14920      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14921      # have to relink, otherwise we might link with an installed library
14922      # when we should be linking with a yet-to-be-installed one
14923      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14924      test "$hardcode_minus_L_F77" != no; then
14925     # Linking always hardcodes the temporary library directory.
14926     hardcode_action_F77=relink
14927   else
14928     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14929     hardcode_action_F77=immediate
14930   fi
14931 else
14932   # We cannot hardcode anything, or else we can only hardcode existing
14933   # directories.
14934   hardcode_action_F77=unsupported
14935 fi
14936 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14937 echo "${ECHO_T}$hardcode_action_F77" >&6
14938
14939 if test "$hardcode_action_F77" = relink; then
14940   # Fast installation is not supported
14941   enable_fast_install=no
14942 elif test "$shlibpath_overrides_runpath" = yes ||
14943      test "$enable_shared" = no; then
14944   # Fast installation is not necessary
14945   enable_fast_install=needless
14946 fi
14947
14948 striplib=
14949 old_striplib=
14950 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14951 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14952 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14953   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14954   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14955   echo "$as_me:$LINENO: result: yes" >&5
14956 echo "${ECHO_T}yes" >&6
14957 else
14958 # FIXME - insert some real tests, host_os isn't really good enough
14959   case $host_os in
14960    darwin*)
14961        if test -n "$STRIP" ; then
14962          striplib="$STRIP -x"
14963          echo "$as_me:$LINENO: result: yes" >&5
14964 echo "${ECHO_T}yes" >&6
14965        else
14966   echo "$as_me:$LINENO: result: no" >&5
14967 echo "${ECHO_T}no" >&6
14968 fi
14969        ;;
14970    *)
14971   echo "$as_me:$LINENO: result: no" >&5
14972 echo "${ECHO_T}no" >&6
14973     ;;
14974   esac
14975 fi
14976
14977
14978
14979 # The else clause should only fire when bootstrapping the
14980 # libtool distribution, otherwise you forgot to ship ltmain.sh
14981 # with your package, and you will get complaints that there are
14982 # no rules to generate ltmain.sh.
14983 if test -f "$ltmain"; then
14984   # See if we are running on zsh, and set the options which allow our commands through
14985   # without removal of \ escapes.
14986   if test -n "${ZSH_VERSION+set}" ; then
14987     setopt NO_GLOB_SUBST
14988   fi
14989   # Now quote all the things that may contain metacharacters while being
14990   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14991   # variables and quote the copies for generation of the libtool script.
14992   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14993     SED SHELL STRIP \
14994     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14995     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14996     deplibs_check_method reload_flag reload_cmds need_locks \
14997     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14998     lt_cv_sys_global_symbol_to_c_name_address \
14999     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15000     old_postinstall_cmds old_postuninstall_cmds \
15001     compiler_F77 \
15002     CC_F77 \
15003     LD_F77 \
15004     lt_prog_compiler_wl_F77 \
15005     lt_prog_compiler_pic_F77 \
15006     lt_prog_compiler_static_F77 \
15007     lt_prog_compiler_no_builtin_flag_F77 \
15008     export_dynamic_flag_spec_F77 \
15009     thread_safe_flag_spec_F77 \
15010     whole_archive_flag_spec_F77 \
15011     enable_shared_with_static_runtimes_F77 \
15012     old_archive_cmds_F77 \
15013     old_archive_from_new_cmds_F77 \
15014     predep_objects_F77 \
15015     postdep_objects_F77 \
15016     predeps_F77 \
15017     postdeps_F77 \
15018     compiler_lib_search_path_F77 \
15019     archive_cmds_F77 \
15020     archive_expsym_cmds_F77 \
15021     postinstall_cmds_F77 \
15022     postuninstall_cmds_F77 \
15023     old_archive_from_expsyms_cmds_F77 \
15024     allow_undefined_flag_F77 \
15025     no_undefined_flag_F77 \
15026     export_symbols_cmds_F77 \
15027     hardcode_libdir_flag_spec_F77 \
15028     hardcode_libdir_flag_spec_ld_F77 \
15029     hardcode_libdir_separator_F77 \
15030     hardcode_automatic_F77 \
15031     module_cmds_F77 \
15032     module_expsym_cmds_F77 \
15033     lt_cv_prog_compiler_c_o_F77 \
15034     exclude_expsyms_F77 \
15035     include_expsyms_F77; do
15036
15037     case $var in
15038     old_archive_cmds_F77 | \
15039     old_archive_from_new_cmds_F77 | \
15040     archive_cmds_F77 | \
15041     archive_expsym_cmds_F77 | \
15042     module_cmds_F77 | \
15043     module_expsym_cmds_F77 | \
15044     old_archive_from_expsyms_cmds_F77 | \
15045     export_symbols_cmds_F77 | \
15046     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15047     postinstall_cmds | postuninstall_cmds | \
15048     old_postinstall_cmds | old_postuninstall_cmds | \
15049     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15050       # Double-quote double-evaled strings.
15051       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15052       ;;
15053     *)
15054       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15055       ;;
15056     esac
15057   done
15058
15059   case $lt_echo in
15060   *'\$0 --fallback-echo"')
15061     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15062     ;;
15063   esac
15064
15065 cfgfile="$ofile"
15066
15067   cat <<__EOF__ >> "$cfgfile"
15068 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15069
15070 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15071
15072 # Shell to use when invoking shell scripts.
15073 SHELL=$lt_SHELL
15074
15075 # Whether or not to build shared libraries.
15076 build_libtool_libs=$enable_shared
15077
15078 # Whether or not to build static libraries.
15079 build_old_libs=$enable_static
15080
15081 # Whether or not to add -lc for building shared libraries.
15082 build_libtool_need_lc=$archive_cmds_need_lc_F77
15083
15084 # Whether or not to disallow shared libs when runtime libs are static
15085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15086
15087 # Whether or not to optimize for fast installation.
15088 fast_install=$enable_fast_install
15089
15090 # The host system.
15091 host_alias=$host_alias
15092 host=$host
15093
15094 # An echo program that does not interpret backslashes.
15095 echo=$lt_echo
15096
15097 # The archiver.
15098 AR=$lt_AR
15099 AR_FLAGS=$lt_AR_FLAGS
15100
15101 # A C compiler.
15102 LTCC=$lt_LTCC
15103
15104 # A language-specific compiler.
15105 CC=$lt_compiler_F77
15106
15107 # Is the compiler the GNU C compiler?
15108 with_gcc=$GCC_F77
15109
15110 # An ERE matcher.
15111 EGREP=$lt_EGREP
15112
15113 # The linker used to build libraries.
15114 LD=$lt_LD_F77
15115
15116 # Whether we need hard or soft links.
15117 LN_S=$lt_LN_S
15118
15119 # A BSD-compatible nm program.
15120 NM=$lt_NM
15121
15122 # A symbol stripping program
15123 STRIP=$lt_STRIP
15124
15125 # Used to examine libraries when file_magic_cmd begins "file"
15126 MAGIC_CMD=$MAGIC_CMD
15127
15128 # Used on cygwin: DLL creation program.
15129 DLLTOOL="$DLLTOOL"
15130
15131 # Used on cygwin: object dumper.
15132 OBJDUMP="$OBJDUMP"
15133
15134 # Used on cygwin: assembler.
15135 AS="$AS"
15136
15137 # The name of the directory that contains temporary libtool files.
15138 objdir=$objdir
15139
15140 # How to create reloadable object files.
15141 reload_flag=$lt_reload_flag
15142 reload_cmds=$lt_reload_cmds
15143
15144 # How to pass a linker flag through the compiler.
15145 wl=$lt_lt_prog_compiler_wl_F77
15146
15147 # Object file suffix (normally "o").
15148 objext="$ac_objext"
15149
15150 # Old archive suffix (normally "a").
15151 libext="$libext"
15152
15153 # Shared library suffix (normally ".so").
15154 shrext='$shrext'
15155
15156 # Executable file suffix (normally "").
15157 exeext="$exeext"
15158
15159 # Additional compiler flags for building library objects.
15160 pic_flag=$lt_lt_prog_compiler_pic_F77
15161 pic_mode=$pic_mode
15162
15163 # What is the maximum length of a command?
15164 max_cmd_len=$lt_cv_sys_max_cmd_len
15165
15166 # Does compiler simultaneously support -c and -o options?
15167 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15168
15169 # Must we lock files when doing compilation ?
15170 need_locks=$lt_need_locks
15171
15172 # Do we need the lib prefix for modules?
15173 need_lib_prefix=$need_lib_prefix
15174
15175 # Do we need a version for libraries?
15176 need_version=$need_version
15177
15178 # Whether dlopen is supported.
15179 dlopen_support=$enable_dlopen
15180
15181 # Whether dlopen of programs is supported.
15182 dlopen_self=$enable_dlopen_self
15183
15184 # Whether dlopen of statically linked programs is supported.
15185 dlopen_self_static=$enable_dlopen_self_static
15186
15187 # Compiler flag to prevent dynamic linking.
15188 link_static_flag=$lt_lt_prog_compiler_static_F77
15189
15190 # Compiler flag to turn off builtin functions.
15191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15192
15193 # Compiler flag to allow reflexive dlopens.
15194 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15195
15196 # Compiler flag to generate shared objects directly from archives.
15197 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15198
15199 # Compiler flag to generate thread-safe objects.
15200 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15201
15202 # Library versioning type.
15203 version_type=$version_type
15204
15205 # Format of library name prefix.
15206 libname_spec=$lt_libname_spec
15207
15208 # List of archive names.  First name is the real one, the rest are links.
15209 # The last name is the one that the linker finds with -lNAME.
15210 library_names_spec=$lt_library_names_spec
15211
15212 # The coded name of the library, if different from the real name.
15213 soname_spec=$lt_soname_spec
15214
15215 # Commands used to build and install an old-style archive.
15216 RANLIB=$lt_RANLIB
15217 old_archive_cmds=$lt_old_archive_cmds_F77
15218 old_postinstall_cmds=$lt_old_postinstall_cmds
15219 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15220
15221 # Create an old-style archive from a shared archive.
15222 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15223
15224 # Create a temporary old-style archive to link instead of a shared archive.
15225 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15226
15227 # Commands used to build and install a shared archive.
15228 archive_cmds=$lt_archive_cmds_F77
15229 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15230 postinstall_cmds=$lt_postinstall_cmds
15231 postuninstall_cmds=$lt_postuninstall_cmds
15232
15233 # Commands used to build a loadable module (assumed same as above if empty)
15234 module_cmds=$lt_module_cmds_F77
15235 module_expsym_cmds=$lt_module_expsym_cmds_F77
15236
15237 # Commands to strip libraries.
15238 old_striplib=$lt_old_striplib
15239 striplib=$lt_striplib
15240
15241 # Dependencies to place before the objects being linked to create a
15242 # shared library.
15243 predep_objects=$lt_predep_objects_F77
15244
15245 # Dependencies to place after the objects being linked to create a
15246 # shared library.
15247 postdep_objects=$lt_postdep_objects_F77
15248
15249 # Dependencies to place before the objects being linked to create a
15250 # shared library.
15251 predeps=$lt_predeps_F77
15252
15253 # Dependencies to place after the objects being linked to create a
15254 # shared library.
15255 postdeps=$lt_postdeps_F77
15256
15257 # The library search path used internally by the compiler when linking
15258 # a shared library.
15259 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15260
15261 # Method to check whether dependent libraries are shared objects.
15262 deplibs_check_method=$lt_deplibs_check_method
15263
15264 # Command to use when deplibs_check_method == file_magic.
15265 file_magic_cmd=$lt_file_magic_cmd
15266
15267 # Flag that allows shared libraries with undefined symbols to be built.
15268 allow_undefined_flag=$lt_allow_undefined_flag_F77
15269
15270 # Flag that forces no undefined symbols.
15271 no_undefined_flag=$lt_no_undefined_flag_F77
15272
15273 # Commands used to finish a libtool library installation in a directory.
15274 finish_cmds=$lt_finish_cmds
15275
15276 # Same as above, but a single script fragment to be evaled but not shown.
15277 finish_eval=$lt_finish_eval
15278
15279 # Take the output of nm and produce a listing of raw symbols and C names.
15280 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15281
15282 # Transform the output of nm in a proper C declaration
15283 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15284
15285 # Transform the output of nm in a C name address pair
15286 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15287
15288 # This is the shared library runtime path variable.
15289 runpath_var=$runpath_var
15290
15291 # This is the shared library path variable.
15292 shlibpath_var=$shlibpath_var
15293
15294 # Is shlibpath searched before the hard-coded library search path?
15295 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15296
15297 # How to hardcode a shared library path into an executable.
15298 hardcode_action=$hardcode_action_F77
15299
15300 # Whether we should hardcode library paths into libraries.
15301 hardcode_into_libs=$hardcode_into_libs
15302
15303 # Flag to hardcode \$libdir into a binary during linking.
15304 # This must work even if \$libdir does not exist.
15305 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15306
15307 # If ld is used when linking, flag to hardcode \$libdir into
15308 # a binary during linking. This must work even if \$libdir does
15309 # not exist.
15310 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15311
15312 # Whether we need a single -rpath flag with a separated argument.
15313 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15314
15315 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15316 # resulting binary.
15317 hardcode_direct=$hardcode_direct_F77
15318
15319 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15320 # resulting binary.
15321 hardcode_minus_L=$hardcode_minus_L_F77
15322
15323 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15324 # the resulting binary.
15325 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15326
15327 # Set to yes if building a shared library automatically hardcodes DIR into the library
15328 # and all subsequent libraries and executables linked against it.
15329 hardcode_automatic=$hardcode_automatic_F77
15330
15331 # Variables whose values should be saved in libtool wrapper scripts and
15332 # restored at relink time.
15333 variables_saved_for_relink="$variables_saved_for_relink"
15334
15335 # Whether libtool must link a program against all its dependency libraries.
15336 link_all_deplibs=$link_all_deplibs_F77
15337
15338 # Compile-time system search path for libraries
15339 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15340
15341 # Run-time system search path for libraries
15342 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15343
15344 # Fix the shell variable \$srcfile for the compiler.
15345 fix_srcfile_path="$fix_srcfile_path_F77"
15346
15347 # Set to yes if exported symbols are required.
15348 always_export_symbols=$always_export_symbols_F77
15349
15350 # The commands to list exported symbols.
15351 export_symbols_cmds=$lt_export_symbols_cmds_F77
15352
15353 # The commands to extract the exported symbol list from a shared archive.
15354 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15355
15356 # Symbols that should not be listed in the preloaded symbols.
15357 exclude_expsyms=$lt_exclude_expsyms_F77
15358
15359 # Symbols that must always be exported.
15360 include_expsyms=$lt_include_expsyms_F77
15361
15362 # ### END LIBTOOL TAG CONFIG: $tagname
15363
15364 __EOF__
15365
15366
15367 else
15368   # If there is no Makefile yet, we rely on a make rule to execute
15369   # `config.status --recheck' to rerun these tests and create the
15370   # libtool script then.
15371   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15372   if test -f "$ltmain_in"; then
15373     test -f Makefile && make "$ltmain"
15374   fi
15375 fi
15376
15377
15378 ac_ext=c
15379 ac_cpp='$CPP $CPPFLAGS'
15380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15383
15384 CC="$lt_save_CC"
15385
15386         else
15387           tagname=""
15388         fi
15389         ;;
15390
15391       GCJ)
15392         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15393
15394
15395
15396 # Source file extension for Java test sources.
15397 ac_ext=java
15398
15399 # Object file extension for compiled Java test sources.
15400 objext=o
15401 objext_GCJ=$objext
15402
15403 # Code to be used in simple compile tests
15404 lt_simple_compile_test_code="class foo {}\n"
15405
15406 # Code to be used in simple link tests
15407 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15408
15409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15410
15411 # If no C compiler was specified, use CC.
15412 LTCC=${LTCC-"$CC"}
15413
15414 # Allow CC to be a program name with arguments.
15415 compiler=$CC
15416
15417
15418 # Allow CC to be a program name with arguments.
15419 lt_save_CC="$CC"
15420 CC=${GCJ-"gcj"}
15421 compiler=$CC
15422 compiler_GCJ=$CC
15423
15424 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15425 archive_cmds_need_lc_GCJ=no
15426
15427
15428 lt_prog_compiler_no_builtin_flag_GCJ=
15429
15430 if test "$GCC" = yes; then
15431   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15432
15433
15434 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15435 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15436 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15437   echo $ECHO_N "(cached) $ECHO_C" >&6
15438 else
15439   lt_cv_prog_compiler_rtti_exceptions=no
15440   ac_outfile=conftest.$ac_objext
15441    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15442    lt_compiler_flag="-fno-rtti -fno-exceptions"
15443    # Insert the option either (1) after the last *FLAGS variable, or
15444    # (2) before a word containing "conftest.", or (3) at the end.
15445    # Note that $ac_compile itself does not contain backslashes and begins
15446    # with a dollar sign (not a hyphen), so the echo should work correctly.
15447    # The option is referenced via a variable to avoid confusing sed.
15448    lt_compile=`echo "$ac_compile" | $SED \
15449    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15450    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15451    -e 's:$: $lt_compiler_flag:'`
15452    (eval echo "\"\$as_me:15452: $lt_compile\"" >&5)
15453    (eval "$lt_compile" 2>conftest.err)
15454    ac_status=$?
15455    cat conftest.err >&5
15456    echo "$as_me:15456: \$? = $ac_status" >&5
15457    if (exit $ac_status) && test -s "$ac_outfile"; then
15458      # The compiler can only warn and ignore the option if not recognized
15459      # So say no if there are warnings
15460      if test ! -s conftest.err; then
15461        lt_cv_prog_compiler_rtti_exceptions=yes
15462      fi
15463    fi
15464    $rm conftest*
15465
15466 fi
15467 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15468 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15469
15470 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15471     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15472 else
15473     :
15474 fi
15475
15476 fi
15477
15478 lt_prog_compiler_wl_GCJ=
15479 lt_prog_compiler_pic_GCJ=
15480 lt_prog_compiler_static_GCJ=
15481
15482 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15483 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15484
15485   if test "$GCC" = yes; then
15486     lt_prog_compiler_wl_GCJ='-Wl,'
15487     lt_prog_compiler_static_GCJ='-static'
15488
15489     case $host_os in
15490       aix*)
15491       # All AIX code is PIC.
15492       if test "$host_cpu" = ia64; then
15493         # AIX 5 now supports IA64 processor
15494         lt_prog_compiler_static_GCJ='-Bstatic'
15495       fi
15496       ;;
15497
15498     amigaos*)
15499       # FIXME: we need at least 68020 code to build shared libraries, but
15500       # adding the `-m68020' flag to GCC prevents building anything better,
15501       # like `-m68040'.
15502       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15503       ;;
15504
15505     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15506       # PIC is the default for these OSes.
15507       ;;
15508
15509     mingw* | pw32* | os2*)
15510       # This hack is so that the source file can tell whether it is being
15511       # built for inclusion in a dll (and should export symbols for example).
15512       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15513       ;;
15514
15515     darwin* | rhapsody*)
15516       # PIC is the default on this platform
15517       # Common symbols not allowed in MH_DYLIB files
15518       lt_prog_compiler_pic_GCJ='-fno-common'
15519       ;;
15520
15521     msdosdjgpp*)
15522       # Just because we use GCC doesn't mean we suddenly get shared libraries
15523       # on systems that don't support them.
15524       lt_prog_compiler_can_build_shared_GCJ=no
15525       enable_shared=no
15526       ;;
15527
15528     sysv4*MP*)
15529       if test -d /usr/nec; then
15530         lt_prog_compiler_pic_GCJ=-Kconform_pic
15531       fi
15532       ;;
15533
15534     hpux*)
15535       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15536       # not for PA HP-UX.
15537       case "$host_cpu" in
15538       hppa*64*|ia64*)
15539         # +Z the default
15540         ;;
15541       *)
15542         lt_prog_compiler_pic_GCJ='-fPIC'
15543         ;;
15544       esac
15545       ;;
15546
15547     *)
15548       lt_prog_compiler_pic_GCJ='-fPIC'
15549       ;;
15550     esac
15551   else
15552     # PORTME Check for flag to pass linker flags through the system compiler.
15553     case $host_os in
15554     aix*)
15555       lt_prog_compiler_wl_GCJ='-Wl,'
15556       if test "$host_cpu" = ia64; then
15557         # AIX 5 now supports IA64 processor
15558         lt_prog_compiler_static_GCJ='-Bstatic'
15559       else
15560         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15561       fi
15562       ;;
15563
15564     mingw* | pw32* | os2*)
15565       # This hack is so that the source file can tell whether it is being
15566       # built for inclusion in a dll (and should export symbols for example).
15567       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15568       ;;
15569
15570     hpux9* | hpux10* | hpux11*)
15571       lt_prog_compiler_wl_GCJ='-Wl,'
15572       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15573       # not for PA HP-UX.
15574       case "$host_cpu" in
15575       hppa*64*|ia64*)
15576         # +Z the default
15577         ;;
15578       *)
15579         lt_prog_compiler_pic_GCJ='+Z'
15580         ;;
15581       esac
15582       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15583       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15584       ;;
15585
15586     irix5* | irix6* | nonstopux*)
15587       lt_prog_compiler_wl_GCJ='-Wl,'
15588       # PIC (with -KPIC) is the default.
15589       lt_prog_compiler_static_GCJ='-non_shared'
15590       ;;
15591
15592     newsos6)
15593       lt_prog_compiler_pic_GCJ='-KPIC'
15594       lt_prog_compiler_static_GCJ='-Bstatic'
15595       ;;
15596
15597     linux*)
15598       case $CC in
15599       icc* | ecc*)
15600         lt_prog_compiler_wl_GCJ='-Wl,'
15601         lt_prog_compiler_pic_GCJ='-KPIC'
15602         lt_prog_compiler_static_GCJ='-static'
15603         ;;
15604       ccc*)
15605         lt_prog_compiler_wl_GCJ='-Wl,'
15606         # All Alpha code is PIC.
15607         lt_prog_compiler_static_GCJ='-non_shared'
15608         ;;
15609       esac
15610       ;;
15611
15612     osf3* | osf4* | osf5*)
15613       lt_prog_compiler_wl_GCJ='-Wl,'
15614       # All OSF/1 code is PIC.
15615       lt_prog_compiler_static_GCJ='-non_shared'
15616       ;;
15617
15618     sco3.2v5*)
15619       lt_prog_compiler_pic_GCJ='-Kpic'
15620       lt_prog_compiler_static_GCJ='-dn'
15621       ;;
15622
15623     solaris*)
15624       lt_prog_compiler_wl_GCJ='-Wl,'
15625       lt_prog_compiler_pic_GCJ='-KPIC'
15626       lt_prog_compiler_static_GCJ='-Bstatic'
15627       ;;
15628
15629     sunos4*)
15630       lt_prog_compiler_wl_GCJ='-Qoption ld '
15631       lt_prog_compiler_pic_GCJ='-PIC'
15632       lt_prog_compiler_static_GCJ='-Bstatic'
15633       ;;
15634
15635     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15636       lt_prog_compiler_wl_GCJ='-Wl,'
15637       lt_prog_compiler_pic_GCJ='-KPIC'
15638       lt_prog_compiler_static_GCJ='-Bstatic'
15639       ;;
15640
15641     sysv4*MP*)
15642       if test -d /usr/nec ;then
15643         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15644         lt_prog_compiler_static_GCJ='-Bstatic'
15645       fi
15646       ;;
15647
15648     uts4*)
15649       lt_prog_compiler_pic_GCJ='-pic'
15650       lt_prog_compiler_static_GCJ='-Bstatic'
15651       ;;
15652
15653     *)
15654       lt_prog_compiler_can_build_shared_GCJ=no
15655       ;;
15656     esac
15657   fi
15658
15659 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15660 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15661
15662 #
15663 # Check to make sure the PIC flag actually works.
15664 #
15665 if test -n "$lt_prog_compiler_pic_GCJ"; then
15666
15667 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15668 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15669 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15670   echo $ECHO_N "(cached) $ECHO_C" >&6
15671 else
15672   lt_prog_compiler_pic_works_GCJ=no
15673   ac_outfile=conftest.$ac_objext
15674    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15675    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15676    # Insert the option either (1) after the last *FLAGS variable, or
15677    # (2) before a word containing "conftest.", or (3) at the end.
15678    # Note that $ac_compile itself does not contain backslashes and begins
15679    # with a dollar sign (not a hyphen), so the echo should work correctly.
15680    # The option is referenced via a variable to avoid confusing sed.
15681    lt_compile=`echo "$ac_compile" | $SED \
15682    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15683    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15684    -e 's:$: $lt_compiler_flag:'`
15685    (eval echo "\"\$as_me:15685: $lt_compile\"" >&5)
15686    (eval "$lt_compile" 2>conftest.err)
15687    ac_status=$?
15688    cat conftest.err >&5
15689    echo "$as_me:15689: \$? = $ac_status" >&5
15690    if (exit $ac_status) && test -s "$ac_outfile"; then
15691      # The compiler can only warn and ignore the option if not recognized
15692      # So say no if there are warnings
15693      if test ! -s conftest.err; then
15694        lt_prog_compiler_pic_works_GCJ=yes
15695      fi
15696    fi
15697    $rm conftest*
15698
15699 fi
15700 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15701 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15702
15703 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15704     case $lt_prog_compiler_pic_GCJ in
15705      "" | " "*) ;;
15706      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15707      esac
15708 else
15709     lt_prog_compiler_pic_GCJ=
15710      lt_prog_compiler_can_build_shared_GCJ=no
15711 fi
15712
15713 fi
15714 case "$host_os" in
15715   # For platforms which do not support PIC, -DPIC is meaningless:
15716   *djgpp*)
15717     lt_prog_compiler_pic_GCJ=
15718     ;;
15719   *)
15720     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15721     ;;
15722 esac
15723
15724 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15725 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15726 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15727   echo $ECHO_N "(cached) $ECHO_C" >&6
15728 else
15729   lt_cv_prog_compiler_c_o_GCJ=no
15730    $rm -r conftest 2>/dev/null
15731    mkdir conftest
15732    cd conftest
15733    mkdir out
15734    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15735
15736    lt_compiler_flag="-o out/conftest2.$ac_objext"
15737    # Insert the option either (1) after the last *FLAGS variable, or
15738    # (2) before a word containing "conftest.", or (3) at the end.
15739    # Note that $ac_compile itself does not contain backslashes and begins
15740    # with a dollar sign (not a hyphen), so the echo should work correctly.
15741    lt_compile=`echo "$ac_compile" | $SED \
15742    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15743    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15744    -e 's:$: $lt_compiler_flag:'`
15745    (eval echo "\"\$as_me:15745: $lt_compile\"" >&5)
15746    (eval "$lt_compile" 2>out/conftest.err)
15747    ac_status=$?
15748    cat out/conftest.err >&5
15749    echo "$as_me:15749: \$? = $ac_status" >&5
15750    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15751    then
15752      # The compiler can only warn and ignore the option if not recognized
15753      # So say no if there are warnings
15754      if test ! -s out/conftest.err; then
15755        lt_cv_prog_compiler_c_o_GCJ=yes
15756      fi
15757    fi
15758    chmod u+w .
15759    $rm conftest*
15760    # SGI C++ compiler will create directory out/ii_files/ for
15761    # template instantiation
15762    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15763    $rm out/* && rmdir out
15764    cd ..
15765    rmdir conftest
15766    $rm conftest*
15767
15768 fi
15769 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15770 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15771
15772
15773 hard_links="nottested"
15774 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15775   # do not overwrite the value of need_locks provided by the user
15776   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15777 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15778   hard_links=yes
15779   $rm conftest*
15780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15781   touch conftest.a
15782   ln conftest.a conftest.b 2>&5 || hard_links=no
15783   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15784   echo "$as_me:$LINENO: result: $hard_links" >&5
15785 echo "${ECHO_T}$hard_links" >&6
15786   if test "$hard_links" = no; then
15787     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15788 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15789     need_locks=warn
15790   fi
15791 else
15792   need_locks=no
15793 fi
15794
15795 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15796 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15797
15798   runpath_var=
15799   allow_undefined_flag_GCJ=
15800   enable_shared_with_static_runtimes_GCJ=no
15801   archive_cmds_GCJ=
15802   archive_expsym_cmds_GCJ=
15803   old_archive_From_new_cmds_GCJ=
15804   old_archive_from_expsyms_cmds_GCJ=
15805   export_dynamic_flag_spec_GCJ=
15806   whole_archive_flag_spec_GCJ=
15807   thread_safe_flag_spec_GCJ=
15808   hardcode_libdir_flag_spec_GCJ=
15809   hardcode_libdir_flag_spec_ld_GCJ=
15810   hardcode_libdir_separator_GCJ=
15811   hardcode_direct_GCJ=no
15812   hardcode_minus_L_GCJ=no
15813   hardcode_shlibpath_var_GCJ=unsupported
15814   link_all_deplibs_GCJ=unknown
15815   hardcode_automatic_GCJ=no
15816   module_cmds_GCJ=
15817   module_expsym_cmds_GCJ=
15818   always_export_symbols_GCJ=no
15819   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15820   # include_expsyms should be a list of space-separated symbols to be *always*
15821   # included in the symbol list
15822   include_expsyms_GCJ=
15823   # exclude_expsyms can be an extended regexp of symbols to exclude
15824   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15825   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15826   # as well as any symbol that contains `d'.
15827   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15828   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15829   # platforms (ab)use it in PIC code, but their linkers get confused if
15830   # the symbol is explicitly referenced.  Since portable code cannot
15831   # rely on this symbol name, it's probably fine to never include it in
15832   # preloaded symbol tables.
15833   extract_expsyms_cmds=
15834
15835   case $host_os in
15836   cygwin* | mingw* | pw32*)
15837     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15838     # When not using gcc, we currently assume that we are using
15839     # Microsoft Visual C++.
15840     if test "$GCC" != yes; then
15841       with_gnu_ld=no
15842     fi
15843     ;;
15844   openbsd*)
15845     with_gnu_ld=no
15846     ;;
15847   esac
15848
15849   ld_shlibs_GCJ=yes
15850   if test "$with_gnu_ld" = yes; then
15851     # If archive_cmds runs LD, not CC, wlarc should be empty
15852     wlarc='${wl}'
15853
15854     # See if GNU ld supports shared libraries.
15855     case $host_os in
15856     aix3* | aix4* | aix5*)
15857       # On AIX/PPC, the GNU linker is very broken
15858       if test "$host_cpu" != ia64; then
15859         ld_shlibs_GCJ=no
15860         cat <<EOF 1>&2
15861
15862 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15863 *** to be unable to reliably create shared libraries on AIX.
15864 *** Therefore, libtool is disabling shared libraries support.  If you
15865 *** really care for shared libraries, you may want to modify your PATH
15866 *** so that a non-GNU linker is found, and then restart.
15867
15868 EOF
15869       fi
15870       ;;
15871
15872     amigaos*)
15873       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)'
15874       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15875       hardcode_minus_L_GCJ=yes
15876
15877       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15878       # that the semantics of dynamic libraries on AmigaOS, at least up
15879       # to version 4, is to share data among multiple programs linked
15880       # with the same dynamic library.  Since this doesn't match the
15881       # behavior of shared libraries on other platforms, we can't use
15882       # them.
15883       ld_shlibs_GCJ=no
15884       ;;
15885
15886     beos*)
15887       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15888         allow_undefined_flag_GCJ=unsupported
15889         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15890         # support --undefined.  This deserves some investigation.  FIXME
15891         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15892       else
15893         ld_shlibs_GCJ=no
15894       fi
15895       ;;
15896
15897     cygwin* | mingw* | pw32*)
15898       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15899       # as there is no search path for DLLs.
15900       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15901       allow_undefined_flag_GCJ=unsupported
15902       always_export_symbols_GCJ=no
15903       enable_shared_with_static_runtimes_GCJ=yes
15904       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15905
15906       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15907         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15908         # If the export-symbols file already is a .def file (1st line
15909         # is EXPORTS), use it as is; otherwise, prepend...
15910         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15911           cp $export_symbols $output_objdir/$soname.def;
15912         else
15913           echo EXPORTS > $output_objdir/$soname.def;
15914           cat $export_symbols >> $output_objdir/$soname.def;
15915         fi~
15916         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15917       else
15918         ld_shlibs=no
15919       fi
15920       ;;
15921
15922     netbsd* | knetbsd*-gnu)
15923       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15924         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15925         wlarc=
15926       else
15927         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15928         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15929       fi
15930       ;;
15931
15932     solaris* | sysv5*)
15933       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15934         ld_shlibs_GCJ=no
15935         cat <<EOF 1>&2
15936
15937 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15938 *** create shared libraries on Solaris systems.  Therefore, libtool
15939 *** is disabling shared libraries support.  We urge you to upgrade GNU
15940 *** binutils to release 2.9.1 or newer.  Another option is to modify
15941 *** your PATH or compiler configuration so that the native linker is
15942 *** used, and then restart.
15943
15944 EOF
15945       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15946         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15947         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15948       else
15949         ld_shlibs_GCJ=no
15950       fi
15951       ;;
15952
15953     sunos4*)
15954       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15955       wlarc=
15956       hardcode_direct_GCJ=yes
15957       hardcode_shlibpath_var_GCJ=no
15958       ;;
15959
15960   linux*)
15961     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15962         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15963         archive_cmds_GCJ="$tmp_archive_cmds"
15964       supports_anon_versioning=no
15965       case `$LD -v 2>/dev/null` in
15966         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15967         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15968         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15969         *\ 2.11.*) ;; # other 2.11 versions
15970         *) supports_anon_versioning=yes ;;
15971       esac
15972       if test $supports_anon_versioning = yes; then
15973         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15975 $echo "local: *; };" >> $output_objdir/$libname.ver~
15976         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15977       else
15978         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15979       fi
15980     else
15981       ld_shlibs_GCJ=no
15982     fi
15983     ;;
15984
15985     *)
15986       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15987         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15988         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15989       else
15990         ld_shlibs_GCJ=no
15991       fi
15992       ;;
15993     esac
15994
15995     if test "$ld_shlibs_GCJ" = yes; then
15996       runpath_var=LD_RUN_PATH
15997       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15998       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15999       # ancient GNU ld didn't support --whole-archive et. al.
16000       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16001         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16002       else
16003         whole_archive_flag_spec_GCJ=
16004       fi
16005     fi
16006   else
16007     # PORTME fill in a description of your system's linker (not GNU ld)
16008     case $host_os in
16009     aix3*)
16010       allow_undefined_flag_GCJ=unsupported
16011       always_export_symbols_GCJ=yes
16012       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'
16013       # Note: this linker hardcodes the directories in LIBPATH if there
16014       # are no directories specified by -L.
16015       hardcode_minus_L_GCJ=yes
16016       if test "$GCC" = yes && test -z "$link_static_flag"; then
16017         # Neither direct hardcoding nor static linking is supported with a
16018         # broken collect2.
16019         hardcode_direct_GCJ=unsupported
16020       fi
16021       ;;
16022
16023     aix4* | aix5*)
16024       if test "$host_cpu" = ia64; then
16025         # On IA64, the linker does run time linking by default, so we don't
16026         # have to do anything special.
16027         aix_use_runtimelinking=no
16028         exp_sym_flag='-Bexport'
16029         no_entry_flag=""
16030       else
16031         # If we're using GNU nm, then we don't want the "-C" option.
16032         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16033         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16034           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'
16035         else
16036           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'
16037         fi
16038         aix_use_runtimelinking=no
16039
16040         # Test if we are trying to use run time linking or normal
16041         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16042         # need to do runtime linking.
16043         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16044           for ld_flag in $LDFLAGS; do
16045           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16046             aix_use_runtimelinking=yes
16047             break
16048           fi
16049           done
16050         esac
16051
16052         exp_sym_flag='-bexport'
16053         no_entry_flag='-bnoentry'
16054       fi
16055
16056       # When large executables or shared objects are built, AIX ld can
16057       # have problems creating the table of contents.  If linking a library
16058       # or program results in "error TOC overflow" add -mminimal-toc to
16059       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16060       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16061
16062       archive_cmds_GCJ=''
16063       hardcode_direct_GCJ=yes
16064       hardcode_libdir_separator_GCJ=':'
16065       link_all_deplibs_GCJ=yes
16066
16067       if test "$GCC" = yes; then
16068         case $host_os in aix4.012|aix4.012.*)
16069         # We only want to do this on AIX 4.2 and lower, the check
16070         # below for broken collect2 doesn't work under 4.3+
16071           collect2name=`${CC} -print-prog-name=collect2`
16072           if test -f "$collect2name" && \
16073            strings "$collect2name" | grep resolve_lib_name >/dev/null
16074           then
16075           # We have reworked collect2
16076           hardcode_direct_GCJ=yes
16077           else
16078           # We have old collect2
16079           hardcode_direct_GCJ=unsupported
16080           # It fails to find uninstalled libraries when the uninstalled
16081           # path is not listed in the libpath.  Setting hardcode_minus_L
16082           # to unsupported forces relinking
16083           hardcode_minus_L_GCJ=yes
16084           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16085           hardcode_libdir_separator_GCJ=
16086           fi
16087         esac
16088         shared_flag='-shared'
16089       else
16090         # not using gcc
16091         if test "$host_cpu" = ia64; then
16092         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16093         # chokes on -Wl,-G. The following line is correct:
16094           shared_flag='-G'
16095         else
16096         if test "$aix_use_runtimelinking" = yes; then
16097             shared_flag='${wl}-G'
16098           else
16099             shared_flag='${wl}-bM:SRE'
16100         fi
16101         fi
16102       fi
16103
16104       # It seems that -bexpall does not export symbols beginning with
16105       # underscore (_), so it is better to generate a list of symbols to export.
16106       always_export_symbols_GCJ=yes
16107       if test "$aix_use_runtimelinking" = yes; then
16108         # Warning - without using the other runtime loading flags (-brtl),
16109         # -berok will link without error, but may produce a broken library.
16110         allow_undefined_flag_GCJ='-berok'
16111        # Determine the default libpath from the value encoded in an empty executable.
16112        cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h.  */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h.  */
16118
16119 int
16120 main ()
16121 {
16122
16123   ;
16124   return 0;
16125 }
16126 _ACEOF
16127 rm -f conftest.$ac_objext conftest$ac_exeext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129   (eval $ac_link) 2>conftest.er1
16130   ac_status=$?
16131   grep -v '^ *+' conftest.er1 >conftest.err
16132   rm -f conftest.er1
16133   cat conftest.err >&5
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); } &&
16136          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138   (eval $ac_try) 2>&5
16139   ac_status=$?
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); }; } &&
16142          { ac_try='test -s conftest$ac_exeext'
16143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144   (eval $ac_try) 2>&5
16145   ac_status=$?
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); }; }; then
16148
16149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16150 }'`
16151 # Check for a 64-bit object if we didn't find anything.
16152 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; }
16153 }'`; fi
16154 else
16155   echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16157
16158 fi
16159 rm -f conftest.err conftest.$ac_objext \
16160       conftest$ac_exeext conftest.$ac_ext
16161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16162
16163        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16164         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"
16165        else
16166         if test "$host_cpu" = ia64; then
16167           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16168           allow_undefined_flag_GCJ="-z nodefs"
16169           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"
16170         else
16171          # Determine the default libpath from the value encoded in an empty executable.
16172          cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h.  */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h.  */
16178
16179 int
16180 main ()
16181 {
16182
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189   (eval $ac_link) 2>conftest.er1
16190   ac_status=$?
16191   grep -v '^ *+' conftest.er1 >conftest.err
16192   rm -f conftest.er1
16193   cat conftest.err >&5
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); } &&
16196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198   (eval $ac_try) 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); }; } &&
16202          { ac_try='test -s conftest$ac_exeext'
16203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204   (eval $ac_try) 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); }; }; then
16208
16209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16210 }'`
16211 # Check for a 64-bit object if we didn't find anything.
16212 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; }
16213 }'`; fi
16214 else
16215   echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 fi
16219 rm -f conftest.err conftest.$ac_objext \
16220       conftest$ac_exeext conftest.$ac_ext
16221 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16222
16223          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16224           # Warning - without using the other run time loading flags,
16225           # -berok will link without error, but may produce a broken library.
16226           no_undefined_flag_GCJ=' ${wl}-bernotok'
16227           allow_undefined_flag_GCJ=' ${wl}-berok'
16228           # -bexpall does not export symbols beginning with underscore (_)
16229           always_export_symbols_GCJ=yes
16230           # Exported symbols can be pulled into shared objects from archives
16231           whole_archive_flag_spec_GCJ=' '
16232           archive_cmds_need_lc_GCJ=yes
16233           # This is similar to how AIX traditionally builds it's shared libraries.
16234           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'
16235         fi
16236       fi
16237       ;;
16238
16239     amigaos*)
16240       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)'
16241       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16242       hardcode_minus_L_GCJ=yes
16243       # see comment about different semantics on the GNU ld section
16244       ld_shlibs_GCJ=no
16245       ;;
16246
16247     bsdi4*)
16248       export_dynamic_flag_spec_GCJ=-rdynamic
16249       ;;
16250
16251     cygwin* | mingw* | pw32*)
16252       # When not using gcc, we currently assume that we are using
16253       # Microsoft Visual C++.
16254       # hardcode_libdir_flag_spec is actually meaningless, as there is
16255       # no search path for DLLs.
16256       hardcode_libdir_flag_spec_GCJ=' '
16257       allow_undefined_flag_GCJ=unsupported
16258       # Tell ltmain to make .lib files, not .a files.
16259       libext=lib
16260       # Tell ltmain to make .dll files, not .so files.
16261       shrext=".dll"
16262       # FIXME: Setting linknames here is a bad hack.
16263       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16264       # The linker will automatically build a .lib file if we build a DLL.
16265       old_archive_From_new_cmds_GCJ='true'
16266       # FIXME: Should let the user specify the lib program.
16267       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16268       fix_srcfile_path='`cygpath -w "$srcfile"`'
16269       enable_shared_with_static_runtimes_GCJ=yes
16270       ;;
16271
16272     darwin* | rhapsody*)
16273     if test "$GXX" = yes ; then
16274       archive_cmds_need_lc_GCJ=no
16275       case "$host_os" in
16276       rhapsody* | darwin1.[012])
16277         allow_undefined_flag_GCJ='-undefined suppress'
16278         ;;
16279       *) # Darwin 1.3 on
16280       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16281         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16282       else
16283         case ${MACOSX_DEPLOYMENT_TARGET} in
16284           10.[012])
16285             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16286             ;;
16287           10.*)
16288             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16289             ;;
16290         esac
16291       fi
16292         ;;
16293       esac
16294         lt_int_apple_cc_single_mod=no
16295         output_verbose_link_cmd='echo'
16296         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16297           lt_int_apple_cc_single_mod=yes
16298         fi
16299         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16300           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16301         else
16302         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'
16303       fi
16304       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16305       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16306         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16307           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}'
16308         else
16309           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}'
16310         fi
16311           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}'
16312       hardcode_direct_GCJ=no
16313       hardcode_automatic_GCJ=yes
16314       hardcode_shlibpath_var_GCJ=unsupported
16315       whole_archive_flag_spec_GCJ='-all_load $convenience'
16316       link_all_deplibs_GCJ=yes
16317     else
16318       ld_shlibs_GCJ=no
16319     fi
16320       ;;
16321
16322     dgux*)
16323       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16324       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16325       hardcode_shlibpath_var_GCJ=no
16326       ;;
16327
16328     freebsd1*)
16329       ld_shlibs_GCJ=no
16330       ;;
16331
16332     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16333     # support.  Future versions do this automatically, but an explicit c++rt0.o
16334     # does not break anything, and helps significantly (at the cost of a little
16335     # extra space).
16336     freebsd2.2*)
16337       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16338       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16339       hardcode_direct_GCJ=yes
16340       hardcode_shlibpath_var_GCJ=no
16341       ;;
16342
16343     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16344     freebsd2*)
16345       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16346       hardcode_direct_GCJ=yes
16347       hardcode_minus_L_GCJ=yes
16348       hardcode_shlibpath_var_GCJ=no
16349       ;;
16350
16351     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16352     freebsd* | kfreebsd*-gnu)
16353       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16354       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16355       hardcode_direct_GCJ=yes
16356       hardcode_shlibpath_var_GCJ=no
16357       ;;
16358
16359     hpux9*)
16360       if test "$GCC" = yes; then
16361         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'
16362       else
16363         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'
16364       fi
16365       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16366       hardcode_libdir_separator_GCJ=:
16367       hardcode_direct_GCJ=yes
16368
16369       # hardcode_minus_L: Not really in the search PATH,
16370       # but as the default location of the library.
16371       hardcode_minus_L_GCJ=yes
16372       export_dynamic_flag_spec_GCJ='${wl}-E'
16373       ;;
16374
16375     hpux10* | hpux11*)
16376       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16377         case "$host_cpu" in
16378         hppa*64*|ia64*)
16379           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16380           ;;
16381         *)
16382           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16383           ;;
16384         esac
16385       else
16386         case "$host_cpu" in
16387         hppa*64*|ia64*)
16388           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16389           ;;
16390         *)
16391           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16392           ;;
16393         esac
16394       fi
16395       if test "$with_gnu_ld" = no; then
16396         case "$host_cpu" in
16397         hppa*64*)
16398           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16399           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16400           hardcode_libdir_separator_GCJ=:
16401           hardcode_direct_GCJ=no
16402           hardcode_shlibpath_var_GCJ=no
16403           ;;
16404         ia64*)
16405           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16406           hardcode_direct_GCJ=no
16407           hardcode_shlibpath_var_GCJ=no
16408
16409           # hardcode_minus_L: Not really in the search PATH,
16410           # but as the default location of the library.
16411           hardcode_minus_L_GCJ=yes
16412           ;;
16413         *)
16414           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16415           hardcode_libdir_separator_GCJ=:
16416           hardcode_direct_GCJ=yes
16417           export_dynamic_flag_spec_GCJ='${wl}-E'
16418
16419           # hardcode_minus_L: Not really in the search PATH,
16420           # but as the default location of the library.
16421           hardcode_minus_L_GCJ=yes
16422           ;;
16423         esac
16424       fi
16425       ;;
16426
16427     irix5* | irix6* | nonstopux*)
16428       if test "$GCC" = yes; then
16429         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'
16430       else
16431         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'
16432         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16433       fi
16434       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16435       hardcode_libdir_separator_GCJ=:
16436       link_all_deplibs_GCJ=yes
16437       ;;
16438
16439     netbsd* | knetbsd*-gnu)
16440       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16441         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16442       else
16443         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16444       fi
16445       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16446       hardcode_direct_GCJ=yes
16447       hardcode_shlibpath_var_GCJ=no
16448       ;;
16449
16450     newsos6)
16451       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16452       hardcode_direct_GCJ=yes
16453       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16454       hardcode_libdir_separator_GCJ=:
16455       hardcode_shlibpath_var_GCJ=no
16456       ;;
16457
16458     openbsd*)
16459       hardcode_direct_GCJ=yes
16460       hardcode_shlibpath_var_GCJ=no
16461       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16462         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16463         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16464         export_dynamic_flag_spec_GCJ='${wl}-E'
16465       else
16466        case $host_os in
16467          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16468            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16469            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16470            ;;
16471          *)
16472            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16473            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16474            ;;
16475        esac
16476       fi
16477       ;;
16478
16479     os2*)
16480       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16481       hardcode_minus_L_GCJ=yes
16482       allow_undefined_flag_GCJ=unsupported
16483       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'
16484       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16485       ;;
16486
16487     osf3*)
16488       if test "$GCC" = yes; then
16489         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16490         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'
16491       else
16492         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16493         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'
16494       fi
16495       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16496       hardcode_libdir_separator_GCJ=:
16497       ;;
16498
16499     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16500       if test "$GCC" = yes; then
16501         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16502         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'
16503         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16504       else
16505         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16506         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'
16507         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~
16508         $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'
16509
16510         # Both c and cxx compiler support -rpath directly
16511         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16512       fi
16513       hardcode_libdir_separator_GCJ=:
16514       ;;
16515
16516     sco3.2v5*)
16517       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16518       hardcode_shlibpath_var_GCJ=no
16519       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16520       runpath_var=LD_RUN_PATH
16521       hardcode_runpath_var=yes
16522       ;;
16523
16524     solaris*)
16525       no_undefined_flag_GCJ=' -z text'
16526       if test "$GCC" = yes; then
16527         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16528         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16529           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16530       else
16531         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16532         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16533         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16534       fi
16535       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16536       hardcode_shlibpath_var_GCJ=no
16537       case $host_os in
16538       solaris2.[0-5] | solaris2.[0-5].*) ;;
16539       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16540         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16541       esac
16542       link_all_deplibs_GCJ=yes
16543       ;;
16544
16545     sunos4*)
16546       if test "x$host_vendor" = xsequent; then
16547         # Use $CC to link under sequent, because it throws in some extra .o
16548         # files that make .init and .fini sections work.
16549         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16550       else
16551         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16552       fi
16553       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16554       hardcode_direct_GCJ=yes
16555       hardcode_minus_L_GCJ=yes
16556       hardcode_shlibpath_var_GCJ=no
16557       ;;
16558
16559     sysv4)
16560       case $host_vendor in
16561         sni)
16562           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563           hardcode_direct_GCJ=yes # is this really true???
16564         ;;
16565         siemens)
16566           ## LD is ld it makes a PLAMLIB
16567           ## CC just makes a GrossModule.
16568           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16569           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16570           hardcode_direct_GCJ=no
16571         ;;
16572         motorola)
16573           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16575         ;;
16576       esac
16577       runpath_var='LD_RUN_PATH'
16578       hardcode_shlibpath_var_GCJ=no
16579       ;;
16580
16581     sysv4.3*)
16582       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16583       hardcode_shlibpath_var_GCJ=no
16584       export_dynamic_flag_spec_GCJ='-Bexport'
16585       ;;
16586
16587     sysv4*MP*)
16588       if test -d /usr/nec; then
16589         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590         hardcode_shlibpath_var_GCJ=no
16591         runpath_var=LD_RUN_PATH
16592         hardcode_runpath_var=yes
16593         ld_shlibs_GCJ=yes
16594       fi
16595       ;;
16596
16597     sysv4.2uw2*)
16598       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16599       hardcode_direct_GCJ=yes
16600       hardcode_minus_L_GCJ=no
16601       hardcode_shlibpath_var_GCJ=no
16602       hardcode_runpath_var=yes
16603       runpath_var=LD_RUN_PATH
16604       ;;
16605
16606    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16607       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16608       if test "$GCC" = yes; then
16609         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16610       else
16611         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16612       fi
16613       runpath_var='LD_RUN_PATH'
16614       hardcode_shlibpath_var_GCJ=no
16615       ;;
16616
16617     sysv5*)
16618       no_undefined_flag_GCJ=' -z text'
16619       # $CC -shared without GNU ld will not create a library from C++
16620       # object files and a static libstdc++, better avoid it by now
16621       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16623                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16624       hardcode_libdir_flag_spec_GCJ=
16625       hardcode_shlibpath_var_GCJ=no
16626       runpath_var='LD_RUN_PATH'
16627       ;;
16628
16629     uts4*)
16630       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16632       hardcode_shlibpath_var_GCJ=no
16633       ;;
16634
16635     *)
16636       ld_shlibs_GCJ=no
16637       ;;
16638     esac
16639   fi
16640
16641 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16642 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16643 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16644
16645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16646 if test "$GCC" = yes; then
16647   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16648 fi
16649
16650 #
16651 # Do we need to explicitly link libc?
16652 #
16653 case "x$archive_cmds_need_lc_GCJ" in
16654 x|xyes)
16655   # Assume -lc should be added
16656   archive_cmds_need_lc_GCJ=yes
16657
16658   if test "$enable_shared" = yes && test "$GCC" = yes; then
16659     case $archive_cmds_GCJ in
16660     *'~'*)
16661       # FIXME: we may have to deal with multi-command sequences.
16662       ;;
16663     '$CC '*)
16664       # Test whether the compiler implicitly links with -lc since on some
16665       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16666       # to ld, don't add -lc before -lgcc.
16667       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16668 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16669       $rm conftest*
16670       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16671
16672       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16673   (eval $ac_compile) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); } 2>conftest.err; then
16677         soname=conftest
16678         lib=conftest
16679         libobjs=conftest.$ac_objext
16680         deplibs=
16681         wl=$lt_prog_compiler_wl_GCJ
16682         compiler_flags=-v
16683         linker_flags=-v
16684         verstring=
16685         output_objdir=.
16686         libname=conftest
16687         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16688         allow_undefined_flag_GCJ=
16689         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16690   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16691   ac_status=$?
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); }
16694         then
16695           archive_cmds_need_lc_GCJ=no
16696         else
16697           archive_cmds_need_lc_GCJ=yes
16698         fi
16699         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16700       else
16701         cat conftest.err 1>&5
16702       fi
16703       $rm conftest*
16704       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16705 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16706       ;;
16707     esac
16708   fi
16709   ;;
16710 esac
16711
16712 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16713 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16714 library_names_spec=
16715 libname_spec='lib$name'
16716 soname_spec=
16717 shrext=".so"
16718 postinstall_cmds=
16719 postuninstall_cmds=
16720 finish_cmds=
16721 finish_eval=
16722 shlibpath_var=
16723 shlibpath_overrides_runpath=unknown
16724 version_type=none
16725 dynamic_linker="$host_os ld.so"
16726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16727 if test "$GCC" = yes; then
16728   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16729   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16730     # if the path contains ";" then we assume it to be the separator
16731     # otherwise default to the standard path separator (i.e. ":") - it is
16732     # assumed that no part of a normal pathname contains ";" but that should
16733     # okay in the real world where ";" in dirpaths is itself problematic.
16734     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16735   else
16736     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16737   fi
16738 else
16739   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16740 fi
16741 need_lib_prefix=unknown
16742 hardcode_into_libs=no
16743
16744 # when you set need_version to no, make sure it does not cause -set_version
16745 # flags to be left without arguments
16746 need_version=unknown
16747
16748 case $host_os in
16749 aix3*)
16750   version_type=linux
16751   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16752   shlibpath_var=LIBPATH
16753
16754   # AIX 3 has no versioning support, so we append a major version to the name.
16755   soname_spec='${libname}${release}${shared_ext}$major'
16756   ;;
16757
16758 aix4* | aix5*)
16759   version_type=linux
16760   need_lib_prefix=no
16761   need_version=no
16762   hardcode_into_libs=yes
16763   if test "$host_cpu" = ia64; then
16764     # AIX 5 supports IA64
16765     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16766     shlibpath_var=LD_LIBRARY_PATH
16767   else
16768     # With GCC up to 2.95.x, collect2 would create an import file
16769     # for dependence libraries.  The import file would start with
16770     # the line `#! .'.  This would cause the generated library to
16771     # depend on `.', always an invalid library.  This was fixed in
16772     # development snapshots of GCC prior to 3.0.
16773     case $host_os in
16774       aix4 | aix4.[01] | aix4.[01].*)
16775       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16776            echo ' yes '
16777            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16778         :
16779       else
16780         can_build_shared=no
16781       fi
16782       ;;
16783     esac
16784     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16785     # soname into executable. Probably we can add versioning support to
16786     # collect2, so additional links can be useful in future.
16787     if test "$aix_use_runtimelinking" = yes; then
16788       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16789       # instead of lib<name>.a to let people know that these are not
16790       # typical AIX shared libraries.
16791       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16792     else
16793       # We preserve .a as extension for shared libraries through AIX4.2
16794       # and later when we are not doing run time linking.
16795       library_names_spec='${libname}${release}.a $libname.a'
16796       soname_spec='${libname}${release}${shared_ext}$major'
16797     fi
16798     shlibpath_var=LIBPATH
16799   fi
16800   ;;
16801
16802 amigaos*)
16803   library_names_spec='$libname.ixlibrary $libname.a'
16804   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16805   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'
16806   ;;
16807
16808 beos*)
16809   library_names_spec='${libname}${shared_ext}'
16810   dynamic_linker="$host_os ld.so"
16811   shlibpath_var=LIBRARY_PATH
16812   ;;
16813
16814 bsdi4*)
16815   version_type=linux
16816   need_version=no
16817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818   soname_spec='${libname}${release}${shared_ext}$major'
16819   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16820   shlibpath_var=LD_LIBRARY_PATH
16821   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16822   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16823   # the default ld.so.conf also contains /usr/contrib/lib and
16824   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16825   # libtool to hard-code these into programs
16826   ;;
16827
16828 cygwin* | mingw* | pw32*)
16829   version_type=windows
16830   shrext=".dll"
16831   need_version=no
16832   need_lib_prefix=no
16833
16834   case $GCC,$host_os in
16835   yes,cygwin* | yes,mingw* | yes,pw32*)
16836     library_names_spec='$libname.dll.a'
16837     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16838     postinstall_cmds='base_file=`basename \${file}`~
16839       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16840       dldir=$destdir/`dirname \$dlpath`~
16841       test -d \$dldir || mkdir -p \$dldir~
16842       $install_prog $dir/$dlname \$dldir/$dlname'
16843     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16844       dlpath=$dir/\$dldll~
16845        $rm \$dlpath'
16846     shlibpath_overrides_runpath=yes
16847
16848     case $host_os in
16849     cygwin*)
16850       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16851       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16852       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16853       ;;
16854     mingw*)
16855       # MinGW DLLs use traditional 'lib' prefix
16856       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16857       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16858       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16859         # It is most probably a Windows format PATH printed by
16860         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16861         # path with ; separators, and with drive letters. We can handle the
16862         # drive letters (cygwin fileutils understands them), so leave them,
16863         # especially as we might pass files found there to a mingw objdump,
16864         # which wouldn't understand a cygwinified path. Ahh.
16865         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16866       else
16867         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16868       fi
16869       ;;
16870     pw32*)
16871       # pw32 DLLs use 'pw' prefix rather than 'lib'
16872       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16873       ;;
16874     esac
16875     ;;
16876
16877   *)
16878     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16879     ;;
16880   esac
16881   dynamic_linker='Win32 ld.exe'
16882   # FIXME: first we should search . and the directory the executable is in
16883   shlibpath_var=PATH
16884   ;;
16885
16886 darwin* | rhapsody*)
16887   dynamic_linker="$host_os dyld"
16888   version_type=darwin
16889   need_lib_prefix=no
16890   need_version=no
16891   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16892   soname_spec='${libname}${release}${major}$shared_ext'
16893   shlibpath_overrides_runpath=yes
16894   shlibpath_var=DYLD_LIBRARY_PATH
16895   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16896   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16897   if test "$GCC" = yes; then
16898     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"`
16899   else
16900     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16901   fi
16902   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16903   ;;
16904
16905 dgux*)
16906   version_type=linux
16907   need_lib_prefix=no
16908   need_version=no
16909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16910   soname_spec='${libname}${release}${shared_ext}$major'
16911   shlibpath_var=LD_LIBRARY_PATH
16912   ;;
16913
16914 freebsd1*)
16915   dynamic_linker=no
16916   ;;
16917
16918 kfreebsd*-gnu)
16919   version_type=linux
16920   need_lib_prefix=no
16921   need_version=no
16922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16923   soname_spec='${libname}${release}${shared_ext}$major'
16924   shlibpath_var=LD_LIBRARY_PATH
16925   shlibpath_overrides_runpath=no
16926   hardcode_into_libs=yes
16927   dynamic_linker='GNU ld.so'
16928   ;;
16929
16930 freebsd*)
16931   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16932   version_type=freebsd-$objformat
16933   case $version_type in
16934     freebsd-elf*)
16935       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16936       need_version=no
16937       need_lib_prefix=no
16938       ;;
16939     freebsd-*)
16940       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16941       need_version=yes
16942       ;;
16943   esac
16944   shlibpath_var=LD_LIBRARY_PATH
16945   case $host_os in
16946   freebsd2*)
16947     shlibpath_overrides_runpath=yes
16948     ;;
16949   freebsd3.01* | freebsdelf3.01*)
16950     shlibpath_overrides_runpath=yes
16951     hardcode_into_libs=yes
16952     ;;
16953   *) # from 3.2 on
16954     shlibpath_overrides_runpath=no
16955     hardcode_into_libs=yes
16956     ;;
16957   esac
16958   ;;
16959
16960 gnu*)
16961   version_type=linux
16962   need_lib_prefix=no
16963   need_version=no
16964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16965   soname_spec='${libname}${release}${shared_ext}$major'
16966   shlibpath_var=LD_LIBRARY_PATH
16967   hardcode_into_libs=yes
16968   ;;
16969
16970 hpux9* | hpux10* | hpux11*)
16971   # Give a soname corresponding to the major version so that dld.sl refuses to
16972   # link against other versions.
16973   version_type=sunos
16974   need_lib_prefix=no
16975   need_version=no
16976   case "$host_cpu" in
16977   ia64*)
16978     shrext='.so'
16979     hardcode_into_libs=yes
16980     dynamic_linker="$host_os dld.so"
16981     shlibpath_var=LD_LIBRARY_PATH
16982     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16984     soname_spec='${libname}${release}${shared_ext}$major'
16985     if test "X$HPUX_IA64_MODE" = X32; then
16986       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16987     else
16988       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16989     fi
16990     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16991     ;;
16992    hppa*64*)
16993      shrext='.sl'
16994      hardcode_into_libs=yes
16995      dynamic_linker="$host_os dld.sl"
16996      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16997      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16998      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16999      soname_spec='${libname}${release}${shared_ext}$major'
17000      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17001      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17002      ;;
17003    *)
17004     shrext='.sl'
17005     dynamic_linker="$host_os dld.sl"
17006     shlibpath_var=SHLIB_PATH
17007     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17009     soname_spec='${libname}${release}${shared_ext}$major'
17010     ;;
17011   esac
17012   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17013   postinstall_cmds='chmod 555 $lib'
17014   ;;
17015
17016 irix5* | irix6* | nonstopux*)
17017   case $host_os in
17018     nonstopux*) version_type=nonstopux ;;
17019     *)
17020         if test "$lt_cv_prog_gnu_ld" = yes; then
17021                 version_type=linux
17022         else
17023                 version_type=irix
17024         fi ;;
17025   esac
17026   need_lib_prefix=no
17027   need_version=no
17028   soname_spec='${libname}${release}${shared_ext}$major'
17029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17030   case $host_os in
17031   irix5* | nonstopux*)
17032     libsuff= shlibsuff=
17033     ;;
17034   *)
17035     case $LD in # libtool.m4 will add one of these switches to LD
17036     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17037       libsuff= shlibsuff= libmagic=32-bit;;
17038     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17039       libsuff=32 shlibsuff=N32 libmagic=N32;;
17040     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17041       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17042     *) libsuff= shlibsuff= libmagic=never-match;;
17043     esac
17044     ;;
17045   esac
17046   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17047   shlibpath_overrides_runpath=no
17048   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17049   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17050   hardcode_into_libs=yes
17051   ;;
17052
17053 # No shared lib support for Linux oldld, aout, or coff.
17054 linux*oldld* | linux*aout* | linux*coff*)
17055   dynamic_linker=no
17056   ;;
17057
17058 # This must be Linux ELF.
17059 linux*)
17060   version_type=linux
17061   need_lib_prefix=no
17062   need_version=no
17063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064   soname_spec='${libname}${release}${shared_ext}$major'
17065   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17066   shlibpath_var=LD_LIBRARY_PATH
17067   shlibpath_overrides_runpath=no
17068   # This implies no fast_install, which is unacceptable.
17069   # Some rework will be needed to allow for fast_install
17070   # before this can be enabled.
17071   hardcode_into_libs=yes
17072
17073   # Append ld.so.conf contents to the search path
17074   if test -f /etc/ld.so.conf; then
17075     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17076     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17077   fi
17078
17079   # We used to test for /lib/ld.so.1 and disable shared libraries on
17080   # powerpc, because MkLinux only supported shared libraries with the
17081   # GNU dynamic linker.  Since this was broken with cross compilers,
17082   # most powerpc-linux boxes support dynamic linking these days and
17083   # people can always --disable-shared, the test was removed, and we
17084   # assume the GNU/Linux dynamic linker is in use.
17085   dynamic_linker='GNU/Linux ld.so'
17086   ;;
17087
17088 knetbsd*-gnu)
17089   version_type=linux
17090   need_lib_prefix=no
17091   need_version=no
17092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17093   soname_spec='${libname}${release}${shared_ext}$major'
17094   shlibpath_var=LD_LIBRARY_PATH
17095   shlibpath_overrides_runpath=no
17096   hardcode_into_libs=yes
17097   dynamic_linker='GNU ld.so'
17098   ;;
17099
17100 netbsd*)
17101   version_type=sunos
17102   need_lib_prefix=no
17103   need_version=no
17104   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17106     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17107     dynamic_linker='NetBSD (a.out) ld.so'
17108   else
17109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17110     soname_spec='${libname}${release}${shared_ext}$major'
17111     dynamic_linker='NetBSD ld.elf_so'
17112   fi
17113   shlibpath_var=LD_LIBRARY_PATH
17114   shlibpath_overrides_runpath=yes
17115   hardcode_into_libs=yes
17116   ;;
17117
17118 newsos6)
17119   version_type=linux
17120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121   shlibpath_var=LD_LIBRARY_PATH
17122   shlibpath_overrides_runpath=yes
17123   ;;
17124
17125 nto-qnx*)
17126   version_type=linux
17127   need_lib_prefix=no
17128   need_version=no
17129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130   soname_spec='${libname}${release}${shared_ext}$major'
17131   shlibpath_var=LD_LIBRARY_PATH
17132   shlibpath_overrides_runpath=yes
17133   ;;
17134
17135 openbsd*)
17136   version_type=sunos
17137   need_lib_prefix=no
17138   need_version=yes
17139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17140   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17141   shlibpath_var=LD_LIBRARY_PATH
17142   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17143     case $host_os in
17144       openbsd2.[89] | openbsd2.[89].*)
17145         shlibpath_overrides_runpath=no
17146         ;;
17147       *)
17148         shlibpath_overrides_runpath=yes
17149         ;;
17150       esac
17151   else
17152     shlibpath_overrides_runpath=yes
17153   fi
17154   ;;
17155
17156 os2*)
17157   libname_spec='$name'
17158   shrext=".dll"
17159   need_lib_prefix=no
17160   library_names_spec='$libname${shared_ext} $libname.a'
17161   dynamic_linker='OS/2 ld.exe'
17162   shlibpath_var=LIBPATH
17163   ;;
17164
17165 osf3* | osf4* | osf5*)
17166   version_type=osf
17167   need_lib_prefix=no
17168   need_version=no
17169   soname_spec='${libname}${release}${shared_ext}$major'
17170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171   shlibpath_var=LD_LIBRARY_PATH
17172   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17173   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17174   ;;
17175
17176 sco3.2v5*)
17177   version_type=osf
17178   soname_spec='${libname}${release}${shared_ext}$major'
17179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17180   shlibpath_var=LD_LIBRARY_PATH
17181   ;;
17182
17183 solaris*)
17184   version_type=linux
17185   need_lib_prefix=no
17186   need_version=no
17187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188   soname_spec='${libname}${release}${shared_ext}$major'
17189   shlibpath_var=LD_LIBRARY_PATH
17190   shlibpath_overrides_runpath=yes
17191   hardcode_into_libs=yes
17192   # ldd complains unless libraries are executable
17193   postinstall_cmds='chmod +x $lib'
17194   ;;
17195
17196 sunos4*)
17197   version_type=sunos
17198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17199   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17200   shlibpath_var=LD_LIBRARY_PATH
17201   shlibpath_overrides_runpath=yes
17202   if test "$with_gnu_ld" = yes; then
17203     need_lib_prefix=no
17204   fi
17205   need_version=yes
17206   ;;
17207
17208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17209   version_type=linux
17210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211   soname_spec='${libname}${release}${shared_ext}$major'
17212   shlibpath_var=LD_LIBRARY_PATH
17213   case $host_vendor in
17214     sni)
17215       shlibpath_overrides_runpath=no
17216       need_lib_prefix=no
17217       export_dynamic_flag_spec='${wl}-Blargedynsym'
17218       runpath_var=LD_RUN_PATH
17219       ;;
17220     siemens)
17221       need_lib_prefix=no
17222       ;;
17223     motorola)
17224       need_lib_prefix=no
17225       need_version=no
17226       shlibpath_overrides_runpath=no
17227       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17228       ;;
17229   esac
17230   ;;
17231
17232 sysv4*MP*)
17233   if test -d /usr/nec ;then
17234     version_type=linux
17235     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17236     soname_spec='$libname${shared_ext}.$major'
17237     shlibpath_var=LD_LIBRARY_PATH
17238   fi
17239   ;;
17240
17241 uts4*)
17242   version_type=linux
17243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17244   soname_spec='${libname}${release}${shared_ext}$major'
17245   shlibpath_var=LD_LIBRARY_PATH
17246   ;;
17247
17248 *)
17249   dynamic_linker=no
17250   ;;
17251 esac
17252 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17253 echo "${ECHO_T}$dynamic_linker" >&6
17254 test "$dynamic_linker" = no && can_build_shared=no
17255
17256 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17257 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17258 hardcode_action_GCJ=
17259 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17260    test -n "$runpath_var GCJ" || \
17261    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17262
17263   # We can hardcode non-existant directories.
17264   if test "$hardcode_direct_GCJ" != no &&
17265      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17266      # have to relink, otherwise we might link with an installed library
17267      # when we should be linking with a yet-to-be-installed one
17268      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17269      test "$hardcode_minus_L_GCJ" != no; then
17270     # Linking always hardcodes the temporary library directory.
17271     hardcode_action_GCJ=relink
17272   else
17273     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17274     hardcode_action_GCJ=immediate
17275   fi
17276 else
17277   # We cannot hardcode anything, or else we can only hardcode existing
17278   # directories.
17279   hardcode_action_GCJ=unsupported
17280 fi
17281 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17282 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17283
17284 if test "$hardcode_action_GCJ" = relink; then
17285   # Fast installation is not supported
17286   enable_fast_install=no
17287 elif test "$shlibpath_overrides_runpath" = yes ||
17288      test "$enable_shared" = no; then
17289   # Fast installation is not necessary
17290   enable_fast_install=needless
17291 fi
17292
17293 striplib=
17294 old_striplib=
17295 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17296 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17297 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17298   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17299   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17300   echo "$as_me:$LINENO: result: yes" >&5
17301 echo "${ECHO_T}yes" >&6
17302 else
17303 # FIXME - insert some real tests, host_os isn't really good enough
17304   case $host_os in
17305    darwin*)
17306        if test -n "$STRIP" ; then
17307          striplib="$STRIP -x"
17308          echo "$as_me:$LINENO: result: yes" >&5
17309 echo "${ECHO_T}yes" >&6
17310        else
17311   echo "$as_me:$LINENO: result: no" >&5
17312 echo "${ECHO_T}no" >&6
17313 fi
17314        ;;
17315    *)
17316   echo "$as_me:$LINENO: result: no" >&5
17317 echo "${ECHO_T}no" >&6
17318     ;;
17319   esac
17320 fi
17321
17322 if test "x$enable_dlopen" != xyes; then
17323   enable_dlopen=unknown
17324   enable_dlopen_self=unknown
17325   enable_dlopen_self_static=unknown
17326 else
17327   lt_cv_dlopen=no
17328   lt_cv_dlopen_libs=
17329
17330   case $host_os in
17331   beos*)
17332     lt_cv_dlopen="load_add_on"
17333     lt_cv_dlopen_libs=
17334     lt_cv_dlopen_self=yes
17335     ;;
17336
17337   mingw* | pw32*)
17338     lt_cv_dlopen="LoadLibrary"
17339     lt_cv_dlopen_libs=
17340    ;;
17341
17342   cygwin*)
17343     lt_cv_dlopen="dlopen"
17344     lt_cv_dlopen_libs=
17345    ;;
17346
17347   darwin*)
17348   # if libdl is installed we need to link against it
17349     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17350 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17352   echo $ECHO_N "(cached) $ECHO_C" >&6
17353 else
17354   ac_check_lib_save_LIBS=$LIBS
17355 LIBS="-ldl  $LIBS"
17356 cat >conftest.$ac_ext <<_ACEOF
17357 /* confdefs.h.  */
17358 _ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h.  */
17362
17363 /* Override any gcc2 internal prototype to avoid an error.  */
17364 #ifdef __cplusplus
17365 extern "C"
17366 #endif
17367 /* We use char because int might match the return type of a gcc2
17368    builtin and then its argument prototype would still apply.  */
17369 char dlopen ();
17370 int
17371 main ()
17372 {
17373 dlopen ();
17374   ;
17375   return 0;
17376 }
17377 _ACEOF
17378 rm -f conftest.$ac_objext conftest$ac_exeext
17379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17380   (eval $ac_link) 2>conftest.er1
17381   ac_status=$?
17382   grep -v '^ *+' conftest.er1 >conftest.err
17383   rm -f conftest.er1
17384   cat conftest.err >&5
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); } &&
17387          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389   (eval $ac_try) 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); }; } &&
17393          { ac_try='test -s conftest$ac_exeext'
17394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395   (eval $ac_try) 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }; }; then
17399   ac_cv_lib_dl_dlopen=yes
17400 else
17401   echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 ac_cv_lib_dl_dlopen=no
17405 fi
17406 rm -f conftest.err conftest.$ac_objext \
17407       conftest$ac_exeext conftest.$ac_ext
17408 LIBS=$ac_check_lib_save_LIBS
17409 fi
17410 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17411 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17412 if test $ac_cv_lib_dl_dlopen = yes; then
17413   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17414 else
17415
17416     lt_cv_dlopen="dyld"
17417     lt_cv_dlopen_libs=
17418     lt_cv_dlopen_self=yes
17419
17420 fi
17421
17422    ;;
17423
17424   *)
17425     echo "$as_me:$LINENO: checking for shl_load" >&5
17426 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17427 if test "${ac_cv_func_shl_load+set}" = set; then
17428   echo $ECHO_N "(cached) $ECHO_C" >&6
17429 else
17430   cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h.  */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h.  */
17436 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17438 #define shl_load innocuous_shl_load
17439
17440 /* System header to define __stub macros and hopefully few prototypes,
17441     which can conflict with char shl_load (); below.
17442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443     <limits.h> exists even on freestanding compilers.  */
17444
17445 #ifdef __STDC__
17446 # include <limits.h>
17447 #else
17448 # include <assert.h>
17449 #endif
17450
17451 #undef shl_load
17452
17453 /* Override any gcc2 internal prototype to avoid an error.  */
17454 #ifdef __cplusplus
17455 extern "C"
17456 {
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 shl_load ();
17461 /* The GNU C library defines this for functions which it implements
17462     to always fail with ENOSYS.  Some functions are actually named
17463     something starting with __ and the normal name is an alias.  */
17464 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17465 choke me
17466 #else
17467 char (*f) () = shl_load;
17468 #endif
17469 #ifdef __cplusplus
17470 }
17471 #endif
17472
17473 int
17474 main ()
17475 {
17476 return f != shl_load;
17477   ;
17478   return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483   (eval $ac_link) 2>conftest.er1
17484   ac_status=$?
17485   grep -v '^ *+' conftest.er1 >conftest.err
17486   rm -f conftest.er1
17487   cat conftest.err >&5
17488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489   (exit $ac_status); } &&
17490          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492   (eval $ac_try) 2>&5
17493   ac_status=$?
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); }; } &&
17496          { ac_try='test -s conftest$ac_exeext'
17497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498   (eval $ac_try) 2>&5
17499   ac_status=$?
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); }; }; then
17502   ac_cv_func_shl_load=yes
17503 else
17504   echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 ac_cv_func_shl_load=no
17508 fi
17509 rm -f conftest.err conftest.$ac_objext \
17510       conftest$ac_exeext conftest.$ac_ext
17511 fi
17512 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17513 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17514 if test $ac_cv_func_shl_load = yes; then
17515   lt_cv_dlopen="shl_load"
17516 else
17517   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17518 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17519 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17520   echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522   ac_check_lib_save_LIBS=$LIBS
17523 LIBS="-ldld  $LIBS"
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h.  */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h.  */
17530
17531 /* Override any gcc2 internal prototype to avoid an error.  */
17532 #ifdef __cplusplus
17533 extern "C"
17534 #endif
17535 /* We use char because int might match the return type of a gcc2
17536    builtin and then its argument prototype would still apply.  */
17537 char shl_load ();
17538 int
17539 main ()
17540 {
17541 shl_load ();
17542   ;
17543   return 0;
17544 }
17545 _ACEOF
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548   (eval $ac_link) 2>conftest.er1
17549   ac_status=$?
17550   grep -v '^ *+' conftest.er1 >conftest.err
17551   rm -f conftest.er1
17552   cat conftest.err >&5
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); } &&
17555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557   (eval $ac_try) 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); }; } &&
17561          { ac_try='test -s conftest$ac_exeext'
17562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563   (eval $ac_try) 2>&5
17564   ac_status=$?
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; }; then
17567   ac_cv_lib_dld_shl_load=yes
17568 else
17569   echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572 ac_cv_lib_dld_shl_load=no
17573 fi
17574 rm -f conftest.err conftest.$ac_objext \
17575       conftest$ac_exeext conftest.$ac_ext
17576 LIBS=$ac_check_lib_save_LIBS
17577 fi
17578 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17579 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17580 if test $ac_cv_lib_dld_shl_load = yes; then
17581   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17582 else
17583   echo "$as_me:$LINENO: checking for dlopen" >&5
17584 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17585 if test "${ac_cv_func_dlopen+set}" = set; then
17586   echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588   cat >conftest.$ac_ext <<_ACEOF
17589 /* confdefs.h.  */
17590 _ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h.  */
17594 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17596 #define dlopen innocuous_dlopen
17597
17598 /* System header to define __stub macros and hopefully few prototypes,
17599     which can conflict with char dlopen (); below.
17600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17601     <limits.h> exists even on freestanding compilers.  */
17602
17603 #ifdef __STDC__
17604 # include <limits.h>
17605 #else
17606 # include <assert.h>
17607 #endif
17608
17609 #undef dlopen
17610
17611 /* Override any gcc2 internal prototype to avoid an error.  */
17612 #ifdef __cplusplus
17613 extern "C"
17614 {
17615 #endif
17616 /* We use char because int might match the return type of a gcc2
17617    builtin and then its argument prototype would still apply.  */
17618 char dlopen ();
17619 /* The GNU C library defines this for functions which it implements
17620     to always fail with ENOSYS.  Some functions are actually named
17621     something starting with __ and the normal name is an alias.  */
17622 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17623 choke me
17624 #else
17625 char (*f) () = dlopen;
17626 #endif
17627 #ifdef __cplusplus
17628 }
17629 #endif
17630
17631 int
17632 main ()
17633 {
17634 return f != dlopen;
17635   ;
17636   return 0;
17637 }
17638 _ACEOF
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641   (eval $ac_link) 2>conftest.er1
17642   ac_status=$?
17643   grep -v '^ *+' conftest.er1 >conftest.err
17644   rm -f conftest.er1
17645   cat conftest.err >&5
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); } &&
17648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650   (eval $ac_try) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; } &&
17654          { ac_try='test -s conftest$ac_exeext'
17655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656   (eval $ac_try) 2>&5
17657   ac_status=$?
17658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659   (exit $ac_status); }; }; then
17660   ac_cv_func_dlopen=yes
17661 else
17662   echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 ac_cv_func_dlopen=no
17666 fi
17667 rm -f conftest.err conftest.$ac_objext \
17668       conftest$ac_exeext conftest.$ac_ext
17669 fi
17670 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17671 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17672 if test $ac_cv_func_dlopen = yes; then
17673   lt_cv_dlopen="dlopen"
17674 else
17675   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17678   echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680   ac_check_lib_save_LIBS=$LIBS
17681 LIBS="-ldl  $LIBS"
17682 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688
17689 /* Override any gcc2 internal prototype to avoid an error.  */
17690 #ifdef __cplusplus
17691 extern "C"
17692 #endif
17693 /* We use char because int might match the return type of a gcc2
17694    builtin and then its argument prototype would still apply.  */
17695 char dlopen ();
17696 int
17697 main ()
17698 {
17699 dlopen ();
17700   ;
17701   return 0;
17702 }
17703 _ACEOF
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17706   (eval $ac_link) 2>conftest.er1
17707   ac_status=$?
17708   grep -v '^ *+' conftest.er1 >conftest.err
17709   rm -f conftest.er1
17710   cat conftest.err >&5
17711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712   (exit $ac_status); } &&
17713          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715   (eval $ac_try) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; } &&
17719          { ac_try='test -s conftest$ac_exeext'
17720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721   (eval $ac_try) 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; }; then
17725   ac_cv_lib_dl_dlopen=yes
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 ac_cv_lib_dl_dlopen=no
17731 fi
17732 rm -f conftest.err conftest.$ac_objext \
17733       conftest$ac_exeext conftest.$ac_ext
17734 LIBS=$ac_check_lib_save_LIBS
17735 fi
17736 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17737 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17738 if test $ac_cv_lib_dl_dlopen = yes; then
17739   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17740 else
17741   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17742 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17743 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17744   echo $ECHO_N "(cached) $ECHO_C" >&6
17745 else
17746   ac_check_lib_save_LIBS=$LIBS
17747 LIBS="-lsvld  $LIBS"
17748 cat >conftest.$ac_ext <<_ACEOF
17749 /* confdefs.h.  */
17750 _ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h.  */
17754
17755 /* Override any gcc2 internal prototype to avoid an error.  */
17756 #ifdef __cplusplus
17757 extern "C"
17758 #endif
17759 /* We use char because int might match the return type of a gcc2
17760    builtin and then its argument prototype would still apply.  */
17761 char dlopen ();
17762 int
17763 main ()
17764 {
17765 dlopen ();
17766   ;
17767   return 0;
17768 }
17769 _ACEOF
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17772   (eval $ac_link) 2>conftest.er1
17773   ac_status=$?
17774   grep -v '^ *+' conftest.er1 >conftest.err
17775   rm -f conftest.er1
17776   cat conftest.err >&5
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); } &&
17779          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781   (eval $ac_try) 2>&5
17782   ac_status=$?
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); }; } &&
17785          { ac_try='test -s conftest$ac_exeext'
17786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787   (eval $ac_try) 2>&5
17788   ac_status=$?
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); }; }; then
17791   ac_cv_lib_svld_dlopen=yes
17792 else
17793   echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796 ac_cv_lib_svld_dlopen=no
17797 fi
17798 rm -f conftest.err conftest.$ac_objext \
17799       conftest$ac_exeext conftest.$ac_ext
17800 LIBS=$ac_check_lib_save_LIBS
17801 fi
17802 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17803 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17804 if test $ac_cv_lib_svld_dlopen = yes; then
17805   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17806 else
17807   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17808 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17809 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17810   echo $ECHO_N "(cached) $ECHO_C" >&6
17811 else
17812   ac_check_lib_save_LIBS=$LIBS
17813 LIBS="-ldld  $LIBS"
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h.  */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h.  */
17820
17821 /* Override any gcc2 internal prototype to avoid an error.  */
17822 #ifdef __cplusplus
17823 extern "C"
17824 #endif
17825 /* We use char because int might match the return type of a gcc2
17826    builtin and then its argument prototype would still apply.  */
17827 char dld_link ();
17828 int
17829 main ()
17830 {
17831 dld_link ();
17832   ;
17833   return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext conftest$ac_exeext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17838   (eval $ac_link) 2>conftest.er1
17839   ac_status=$?
17840   grep -v '^ *+' conftest.er1 >conftest.err
17841   rm -f conftest.er1
17842   cat conftest.err >&5
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); } &&
17845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847   (eval $ac_try) 2>&5
17848   ac_status=$?
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); }; } &&
17851          { ac_try='test -s conftest$ac_exeext'
17852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853   (eval $ac_try) 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; }; then
17857   ac_cv_lib_dld_dld_link=yes
17858 else
17859   echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17861
17862 ac_cv_lib_dld_dld_link=no
17863 fi
17864 rm -f conftest.err conftest.$ac_objext \
17865       conftest$ac_exeext conftest.$ac_ext
17866 LIBS=$ac_check_lib_save_LIBS
17867 fi
17868 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17869 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17870 if test $ac_cv_lib_dld_dld_link = yes; then
17871   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17872 fi
17873
17874
17875 fi
17876
17877
17878 fi
17879
17880
17881 fi
17882
17883
17884 fi
17885
17886
17887 fi
17888
17889     ;;
17890   esac
17891
17892   if test "x$lt_cv_dlopen" != xno; then
17893     enable_dlopen=yes
17894   else
17895     enable_dlopen=no
17896   fi
17897
17898   case $lt_cv_dlopen in
17899   dlopen)
17900     save_CPPFLAGS="$CPPFLAGS"
17901     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17902
17903     save_LDFLAGS="$LDFLAGS"
17904     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17905
17906     save_LIBS="$LIBS"
17907     LIBS="$lt_cv_dlopen_libs $LIBS"
17908
17909     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17910 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17911 if test "${lt_cv_dlopen_self+set}" = set; then
17912   echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914           if test "$cross_compiling" = yes; then :
17915   lt_cv_dlopen_self=cross
17916 else
17917   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17918   lt_status=$lt_dlunknown
17919   cat > conftest.$ac_ext <<EOF
17920 #line 17920 "configure"
17921 #include "confdefs.h"
17922
17923 #if HAVE_DLFCN_H
17924 #include <dlfcn.h>
17925 #endif
17926
17927 #include <stdio.h>
17928
17929 #ifdef RTLD_GLOBAL
17930 #  define LT_DLGLOBAL           RTLD_GLOBAL
17931 #else
17932 #  ifdef DL_GLOBAL
17933 #    define LT_DLGLOBAL         DL_GLOBAL
17934 #  else
17935 #    define LT_DLGLOBAL         0
17936 #  endif
17937 #endif
17938
17939 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17940    find out it does not work in some platform. */
17941 #ifndef LT_DLLAZY_OR_NOW
17942 #  ifdef RTLD_LAZY
17943 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17944 #  else
17945 #    ifdef DL_LAZY
17946 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17947 #    else
17948 #      ifdef RTLD_NOW
17949 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17950 #      else
17951 #        ifdef DL_NOW
17952 #          define LT_DLLAZY_OR_NOW      DL_NOW
17953 #        else
17954 #          define LT_DLLAZY_OR_NOW      0
17955 #        endif
17956 #      endif
17957 #    endif
17958 #  endif
17959 #endif
17960
17961 #ifdef __cplusplus
17962 extern "C" void exit (int);
17963 #endif
17964
17965 void fnord() { int i=42;}
17966 int main ()
17967 {
17968   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17969   int status = $lt_dlunknown;
17970
17971   if (self)
17972     {
17973       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17974       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17975       /* dlclose (self); */
17976     }
17977
17978     exit (status);
17979 }
17980 EOF
17981   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17982   (eval $ac_link) 2>&5
17983   ac_status=$?
17984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17986     (./conftest; exit; ) 2>/dev/null
17987     lt_status=$?
17988     case x$lt_status in
17989       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17990       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17991       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17992     esac
17993   else :
17994     # compilation failed
17995     lt_cv_dlopen_self=no
17996   fi
17997 fi
17998 rm -fr conftest*
17999
18000
18001 fi
18002 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18003 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18004
18005     if test "x$lt_cv_dlopen_self" = xyes; then
18006       LDFLAGS="$LDFLAGS $link_static_flag"
18007       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18008 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18009 if test "${lt_cv_dlopen_self_static+set}" = set; then
18010   echo $ECHO_N "(cached) $ECHO_C" >&6
18011 else
18012           if test "$cross_compiling" = yes; then :
18013   lt_cv_dlopen_self_static=cross
18014 else
18015   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18016   lt_status=$lt_dlunknown
18017   cat > conftest.$ac_ext <<EOF
18018 #line 18018 "configure"
18019 #include "confdefs.h"
18020
18021 #if HAVE_DLFCN_H
18022 #include <dlfcn.h>
18023 #endif
18024
18025 #include <stdio.h>
18026
18027 #ifdef RTLD_GLOBAL
18028 #  define LT_DLGLOBAL           RTLD_GLOBAL
18029 #else
18030 #  ifdef DL_GLOBAL
18031 #    define LT_DLGLOBAL         DL_GLOBAL
18032 #  else
18033 #    define LT_DLGLOBAL         0
18034 #  endif
18035 #endif
18036
18037 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18038    find out it does not work in some platform. */
18039 #ifndef LT_DLLAZY_OR_NOW
18040 #  ifdef RTLD_LAZY
18041 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18042 #  else
18043 #    ifdef DL_LAZY
18044 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18045 #    else
18046 #      ifdef RTLD_NOW
18047 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18048 #      else
18049 #        ifdef DL_NOW
18050 #          define LT_DLLAZY_OR_NOW      DL_NOW
18051 #        else
18052 #          define LT_DLLAZY_OR_NOW      0
18053 #        endif
18054 #      endif
18055 #    endif
18056 #  endif
18057 #endif
18058
18059 #ifdef __cplusplus
18060 extern "C" void exit (int);
18061 #endif
18062
18063 void fnord() { int i=42;}
18064 int main ()
18065 {
18066   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18067   int status = $lt_dlunknown;
18068
18069   if (self)
18070     {
18071       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18072       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18073       /* dlclose (self); */
18074     }
18075
18076     exit (status);
18077 }
18078 EOF
18079   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080   (eval $ac_link) 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18084     (./conftest; exit; ) 2>/dev/null
18085     lt_status=$?
18086     case x$lt_status in
18087       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18088       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18089       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18090     esac
18091   else :
18092     # compilation failed
18093     lt_cv_dlopen_self_static=no
18094   fi
18095 fi
18096 rm -fr conftest*
18097
18098
18099 fi
18100 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18101 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18102     fi
18103
18104     CPPFLAGS="$save_CPPFLAGS"
18105     LDFLAGS="$save_LDFLAGS"
18106     LIBS="$save_LIBS"
18107     ;;
18108   esac
18109
18110   case $lt_cv_dlopen_self in
18111   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18112   *) enable_dlopen_self=unknown ;;
18113   esac
18114
18115   case $lt_cv_dlopen_self_static in
18116   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18117   *) enable_dlopen_self_static=unknown ;;
18118   esac
18119 fi
18120
18121
18122 # The else clause should only fire when bootstrapping the
18123 # libtool distribution, otherwise you forgot to ship ltmain.sh
18124 # with your package, and you will get complaints that there are
18125 # no rules to generate ltmain.sh.
18126 if test -f "$ltmain"; then
18127   # See if we are running on zsh, and set the options which allow our commands through
18128   # without removal of \ escapes.
18129   if test -n "${ZSH_VERSION+set}" ; then
18130     setopt NO_GLOB_SUBST
18131   fi
18132   # Now quote all the things that may contain metacharacters while being
18133   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18134   # variables and quote the copies for generation of the libtool script.
18135   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18136     SED SHELL STRIP \
18137     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18138     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18139     deplibs_check_method reload_flag reload_cmds need_locks \
18140     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18141     lt_cv_sys_global_symbol_to_c_name_address \
18142     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18143     old_postinstall_cmds old_postuninstall_cmds \
18144     compiler_GCJ \
18145     CC_GCJ \
18146     LD_GCJ \
18147     lt_prog_compiler_wl_GCJ \
18148     lt_prog_compiler_pic_GCJ \
18149     lt_prog_compiler_static_GCJ \
18150     lt_prog_compiler_no_builtin_flag_GCJ \
18151     export_dynamic_flag_spec_GCJ \
18152     thread_safe_flag_spec_GCJ \
18153     whole_archive_flag_spec_GCJ \
18154     enable_shared_with_static_runtimes_GCJ \
18155     old_archive_cmds_GCJ \
18156     old_archive_from_new_cmds_GCJ \
18157     predep_objects_GCJ \
18158     postdep_objects_GCJ \
18159     predeps_GCJ \
18160     postdeps_GCJ \
18161     compiler_lib_search_path_GCJ \
18162     archive_cmds_GCJ \
18163     archive_expsym_cmds_GCJ \
18164     postinstall_cmds_GCJ \
18165     postuninstall_cmds_GCJ \
18166     old_archive_from_expsyms_cmds_GCJ \
18167     allow_undefined_flag_GCJ \
18168     no_undefined_flag_GCJ \
18169     export_symbols_cmds_GCJ \
18170     hardcode_libdir_flag_spec_GCJ \
18171     hardcode_libdir_flag_spec_ld_GCJ \
18172     hardcode_libdir_separator_GCJ \
18173     hardcode_automatic_GCJ \
18174     module_cmds_GCJ \
18175     module_expsym_cmds_GCJ \
18176     lt_cv_prog_compiler_c_o_GCJ \
18177     exclude_expsyms_GCJ \
18178     include_expsyms_GCJ; do
18179
18180     case $var in
18181     old_archive_cmds_GCJ | \
18182     old_archive_from_new_cmds_GCJ | \
18183     archive_cmds_GCJ | \
18184     archive_expsym_cmds_GCJ | \
18185     module_cmds_GCJ | \
18186     module_expsym_cmds_GCJ | \
18187     old_archive_from_expsyms_cmds_GCJ | \
18188     export_symbols_cmds_GCJ | \
18189     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18190     postinstall_cmds | postuninstall_cmds | \
18191     old_postinstall_cmds | old_postuninstall_cmds | \
18192     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18193       # Double-quote double-evaled strings.
18194       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18195       ;;
18196     *)
18197       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18198       ;;
18199     esac
18200   done
18201
18202   case $lt_echo in
18203   *'\$0 --fallback-echo"')
18204     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18205     ;;
18206   esac
18207
18208 cfgfile="$ofile"
18209
18210   cat <<__EOF__ >> "$cfgfile"
18211 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18212
18213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18214
18215 # Shell to use when invoking shell scripts.
18216 SHELL=$lt_SHELL
18217
18218 # Whether or not to build shared libraries.
18219 build_libtool_libs=$enable_shared
18220
18221 # Whether or not to build static libraries.
18222 build_old_libs=$enable_static
18223
18224 # Whether or not to add -lc for building shared libraries.
18225 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18226
18227 # Whether or not to disallow shared libs when runtime libs are static
18228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18229
18230 # Whether or not to optimize for fast installation.
18231 fast_install=$enable_fast_install
18232
18233 # The host system.
18234 host_alias=$host_alias
18235 host=$host
18236
18237 # An echo program that does not interpret backslashes.
18238 echo=$lt_echo
18239
18240 # The archiver.
18241 AR=$lt_AR
18242 AR_FLAGS=$lt_AR_FLAGS
18243
18244 # A C compiler.
18245 LTCC=$lt_LTCC
18246
18247 # A language-specific compiler.
18248 CC=$lt_compiler_GCJ
18249
18250 # Is the compiler the GNU C compiler?
18251 with_gcc=$GCC_GCJ
18252
18253 # An ERE matcher.
18254 EGREP=$lt_EGREP
18255
18256 # The linker used to build libraries.
18257 LD=$lt_LD_GCJ
18258
18259 # Whether we need hard or soft links.
18260 LN_S=$lt_LN_S
18261
18262 # A BSD-compatible nm program.
18263 NM=$lt_NM
18264
18265 # A symbol stripping program
18266 STRIP=$lt_STRIP
18267
18268 # Used to examine libraries when file_magic_cmd begins "file"
18269 MAGIC_CMD=$MAGIC_CMD
18270
18271 # Used on cygwin: DLL creation program.
18272 DLLTOOL="$DLLTOOL"
18273
18274 # Used on cygwin: object dumper.
18275 OBJDUMP="$OBJDUMP"
18276
18277 # Used on cygwin: assembler.
18278 AS="$AS"
18279
18280 # The name of the directory that contains temporary libtool files.
18281 objdir=$objdir
18282
18283 # How to create reloadable object files.
18284 reload_flag=$lt_reload_flag
18285 reload_cmds=$lt_reload_cmds
18286
18287 # How to pass a linker flag through the compiler.
18288 wl=$lt_lt_prog_compiler_wl_GCJ
18289
18290 # Object file suffix (normally "o").
18291 objext="$ac_objext"
18292
18293 # Old archive suffix (normally "a").
18294 libext="$libext"
18295
18296 # Shared library suffix (normally ".so").
18297 shrext='$shrext'
18298
18299 # Executable file suffix (normally "").
18300 exeext="$exeext"
18301
18302 # Additional compiler flags for building library objects.
18303 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18304 pic_mode=$pic_mode
18305
18306 # What is the maximum length of a command?
18307 max_cmd_len=$lt_cv_sys_max_cmd_len
18308
18309 # Does compiler simultaneously support -c and -o options?
18310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18311
18312 # Must we lock files when doing compilation ?
18313 need_locks=$lt_need_locks
18314
18315 # Do we need the lib prefix for modules?
18316 need_lib_prefix=$need_lib_prefix
18317
18318 # Do we need a version for libraries?
18319 need_version=$need_version
18320
18321 # Whether dlopen is supported.
18322 dlopen_support=$enable_dlopen
18323
18324 # Whether dlopen of programs is supported.
18325 dlopen_self=$enable_dlopen_self
18326
18327 # Whether dlopen of statically linked programs is supported.
18328 dlopen_self_static=$enable_dlopen_self_static
18329
18330 # Compiler flag to prevent dynamic linking.
18331 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18332
18333 # Compiler flag to turn off builtin functions.
18334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18335
18336 # Compiler flag to allow reflexive dlopens.
18337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18338
18339 # Compiler flag to generate shared objects directly from archives.
18340 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18341
18342 # Compiler flag to generate thread-safe objects.
18343 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18344
18345 # Library versioning type.
18346 version_type=$version_type
18347
18348 # Format of library name prefix.
18349 libname_spec=$lt_libname_spec
18350
18351 # List of archive names.  First name is the real one, the rest are links.
18352 # The last name is the one that the linker finds with -lNAME.
18353 library_names_spec=$lt_library_names_spec
18354
18355 # The coded name of the library, if different from the real name.
18356 soname_spec=$lt_soname_spec
18357
18358 # Commands used to build and install an old-style archive.
18359 RANLIB=$lt_RANLIB
18360 old_archive_cmds=$lt_old_archive_cmds_GCJ
18361 old_postinstall_cmds=$lt_old_postinstall_cmds
18362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18363
18364 # Create an old-style archive from a shared archive.
18365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18366
18367 # Create a temporary old-style archive to link instead of a shared archive.
18368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18369
18370 # Commands used to build and install a shared archive.
18371 archive_cmds=$lt_archive_cmds_GCJ
18372 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18373 postinstall_cmds=$lt_postinstall_cmds
18374 postuninstall_cmds=$lt_postuninstall_cmds
18375
18376 # Commands used to build a loadable module (assumed same as above if empty)
18377 module_cmds=$lt_module_cmds_GCJ
18378 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18379
18380 # Commands to strip libraries.
18381 old_striplib=$lt_old_striplib
18382 striplib=$lt_striplib
18383
18384 # Dependencies to place before the objects being linked to create a
18385 # shared library.
18386 predep_objects=$lt_predep_objects_GCJ
18387
18388 # Dependencies to place after the objects being linked to create a
18389 # shared library.
18390 postdep_objects=$lt_postdep_objects_GCJ
18391
18392 # Dependencies to place before the objects being linked to create a
18393 # shared library.
18394 predeps=$lt_predeps_GCJ
18395
18396 # Dependencies to place after the objects being linked to create a
18397 # shared library.
18398 postdeps=$lt_postdeps_GCJ
18399
18400 # The library search path used internally by the compiler when linking
18401 # a shared library.
18402 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18403
18404 # Method to check whether dependent libraries are shared objects.
18405 deplibs_check_method=$lt_deplibs_check_method
18406
18407 # Command to use when deplibs_check_method == file_magic.
18408 file_magic_cmd=$lt_file_magic_cmd
18409
18410 # Flag that allows shared libraries with undefined symbols to be built.
18411 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18412
18413 # Flag that forces no undefined symbols.
18414 no_undefined_flag=$lt_no_undefined_flag_GCJ
18415
18416 # Commands used to finish a libtool library installation in a directory.
18417 finish_cmds=$lt_finish_cmds
18418
18419 # Same as above, but a single script fragment to be evaled but not shown.
18420 finish_eval=$lt_finish_eval
18421
18422 # Take the output of nm and produce a listing of raw symbols and C names.
18423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18424
18425 # Transform the output of nm in a proper C declaration
18426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18427
18428 # Transform the output of nm in a C name address pair
18429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18430
18431 # This is the shared library runtime path variable.
18432 runpath_var=$runpath_var
18433
18434 # This is the shared library path variable.
18435 shlibpath_var=$shlibpath_var
18436
18437 # Is shlibpath searched before the hard-coded library search path?
18438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18439
18440 # How to hardcode a shared library path into an executable.
18441 hardcode_action=$hardcode_action_GCJ
18442
18443 # Whether we should hardcode library paths into libraries.
18444 hardcode_into_libs=$hardcode_into_libs
18445
18446 # Flag to hardcode \$libdir into a binary during linking.
18447 # This must work even if \$libdir does not exist.
18448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18449
18450 # If ld is used when linking, flag to hardcode \$libdir into
18451 # a binary during linking. This must work even if \$libdir does
18452 # not exist.
18453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18454
18455 # Whether we need a single -rpath flag with a separated argument.
18456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18457
18458 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18459 # resulting binary.
18460 hardcode_direct=$hardcode_direct_GCJ
18461
18462 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18463 # resulting binary.
18464 hardcode_minus_L=$hardcode_minus_L_GCJ
18465
18466 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18467 # the resulting binary.
18468 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18469
18470 # Set to yes if building a shared library automatically hardcodes DIR into the library
18471 # and all subsequent libraries and executables linked against it.
18472 hardcode_automatic=$hardcode_automatic_GCJ
18473
18474 # Variables whose values should be saved in libtool wrapper scripts and
18475 # restored at relink time.
18476 variables_saved_for_relink="$variables_saved_for_relink"
18477
18478 # Whether libtool must link a program against all its dependency libraries.
18479 link_all_deplibs=$link_all_deplibs_GCJ
18480
18481 # Compile-time system search path for libraries
18482 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18483
18484 # Run-time system search path for libraries
18485 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18486
18487 # Fix the shell variable \$srcfile for the compiler.
18488 fix_srcfile_path="$fix_srcfile_path_GCJ"
18489
18490 # Set to yes if exported symbols are required.
18491 always_export_symbols=$always_export_symbols_GCJ
18492
18493 # The commands to list exported symbols.
18494 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18495
18496 # The commands to extract the exported symbol list from a shared archive.
18497 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18498
18499 # Symbols that should not be listed in the preloaded symbols.
18500 exclude_expsyms=$lt_exclude_expsyms_GCJ
18501
18502 # Symbols that must always be exported.
18503 include_expsyms=$lt_include_expsyms_GCJ
18504
18505 # ### END LIBTOOL TAG CONFIG: $tagname
18506
18507 __EOF__
18508
18509
18510 else
18511   # If there is no Makefile yet, we rely on a make rule to execute
18512   # `config.status --recheck' to rerun these tests and create the
18513   # libtool script then.
18514   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18515   if test -f "$ltmain_in"; then
18516     test -f Makefile && make "$ltmain"
18517   fi
18518 fi
18519
18520
18521 ac_ext=c
18522 ac_cpp='$CPP $CPPFLAGS'
18523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18526
18527 CC="$lt_save_CC"
18528
18529         else
18530           tagname=""
18531         fi
18532         ;;
18533
18534       RC)
18535
18536
18537
18538 # Source file extension for RC test sources.
18539 ac_ext=rc
18540
18541 # Object file extension for compiled RC test sources.
18542 objext=o
18543 objext_RC=$objext
18544
18545 # Code to be used in simple compile tests
18546 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18547
18548 # Code to be used in simple link tests
18549 lt_simple_link_test_code="$lt_simple_compile_test_code"
18550
18551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18552
18553 # If no C compiler was specified, use CC.
18554 LTCC=${LTCC-"$CC"}
18555
18556 # Allow CC to be a program name with arguments.
18557 compiler=$CC
18558
18559
18560 # Allow CC to be a program name with arguments.
18561 lt_save_CC="$CC"
18562 CC=${RC-"windres"}
18563 compiler=$CC
18564 compiler_RC=$CC
18565 lt_cv_prog_compiler_c_o_RC=yes
18566
18567 # The else clause should only fire when bootstrapping the
18568 # libtool distribution, otherwise you forgot to ship ltmain.sh
18569 # with your package, and you will get complaints that there are
18570 # no rules to generate ltmain.sh.
18571 if test -f "$ltmain"; then
18572   # See if we are running on zsh, and set the options which allow our commands through
18573   # without removal of \ escapes.
18574   if test -n "${ZSH_VERSION+set}" ; then
18575     setopt NO_GLOB_SUBST
18576   fi
18577   # Now quote all the things that may contain metacharacters while being
18578   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18579   # variables and quote the copies for generation of the libtool script.
18580   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18581     SED SHELL STRIP \
18582     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18583     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18584     deplibs_check_method reload_flag reload_cmds need_locks \
18585     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18586     lt_cv_sys_global_symbol_to_c_name_address \
18587     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18588     old_postinstall_cmds old_postuninstall_cmds \
18589     compiler_RC \
18590     CC_RC \
18591     LD_RC \
18592     lt_prog_compiler_wl_RC \
18593     lt_prog_compiler_pic_RC \
18594     lt_prog_compiler_static_RC \
18595     lt_prog_compiler_no_builtin_flag_RC \
18596     export_dynamic_flag_spec_RC \
18597     thread_safe_flag_spec_RC \
18598     whole_archive_flag_spec_RC \
18599     enable_shared_with_static_runtimes_RC \
18600     old_archive_cmds_RC \
18601     old_archive_from_new_cmds_RC \
18602     predep_objects_RC \
18603     postdep_objects_RC \
18604     predeps_RC \
18605     postdeps_RC \
18606     compiler_lib_search_path_RC \
18607     archive_cmds_RC \
18608     archive_expsym_cmds_RC \
18609     postinstall_cmds_RC \
18610     postuninstall_cmds_RC \
18611     old_archive_from_expsyms_cmds_RC \
18612     allow_undefined_flag_RC \
18613     no_undefined_flag_RC \
18614     export_symbols_cmds_RC \
18615     hardcode_libdir_flag_spec_RC \
18616     hardcode_libdir_flag_spec_ld_RC \
18617     hardcode_libdir_separator_RC \
18618     hardcode_automatic_RC \
18619     module_cmds_RC \
18620     module_expsym_cmds_RC \
18621     lt_cv_prog_compiler_c_o_RC \
18622     exclude_expsyms_RC \
18623     include_expsyms_RC; do
18624
18625     case $var in
18626     old_archive_cmds_RC | \
18627     old_archive_from_new_cmds_RC | \
18628     archive_cmds_RC | \
18629     archive_expsym_cmds_RC | \
18630     module_cmds_RC | \
18631     module_expsym_cmds_RC | \
18632     old_archive_from_expsyms_cmds_RC | \
18633     export_symbols_cmds_RC | \
18634     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18635     postinstall_cmds | postuninstall_cmds | \
18636     old_postinstall_cmds | old_postuninstall_cmds | \
18637     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18638       # Double-quote double-evaled strings.
18639       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18640       ;;
18641     *)
18642       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18643       ;;
18644     esac
18645   done
18646
18647   case $lt_echo in
18648   *'\$0 --fallback-echo"')
18649     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18650     ;;
18651   esac
18652
18653 cfgfile="$ofile"
18654
18655   cat <<__EOF__ >> "$cfgfile"
18656 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18657
18658 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18659
18660 # Shell to use when invoking shell scripts.
18661 SHELL=$lt_SHELL
18662
18663 # Whether or not to build shared libraries.
18664 build_libtool_libs=$enable_shared
18665
18666 # Whether or not to build static libraries.
18667 build_old_libs=$enable_static
18668
18669 # Whether or not to add -lc for building shared libraries.
18670 build_libtool_need_lc=$archive_cmds_need_lc_RC
18671
18672 # Whether or not to disallow shared libs when runtime libs are static
18673 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18674
18675 # Whether or not to optimize for fast installation.
18676 fast_install=$enable_fast_install
18677
18678 # The host system.
18679 host_alias=$host_alias
18680 host=$host
18681
18682 # An echo program that does not interpret backslashes.
18683 echo=$lt_echo
18684
18685 # The archiver.
18686 AR=$lt_AR
18687 AR_FLAGS=$lt_AR_FLAGS
18688
18689 # A C compiler.
18690 LTCC=$lt_LTCC
18691
18692 # A language-specific compiler.
18693 CC=$lt_compiler_RC
18694
18695 # Is the compiler the GNU C compiler?
18696 with_gcc=$GCC_RC
18697
18698 # An ERE matcher.
18699 EGREP=$lt_EGREP
18700
18701 # The linker used to build libraries.
18702 LD=$lt_LD_RC
18703
18704 # Whether we need hard or soft links.
18705 LN_S=$lt_LN_S
18706
18707 # A BSD-compatible nm program.
18708 NM=$lt_NM
18709
18710 # A symbol stripping program
18711 STRIP=$lt_STRIP
18712
18713 # Used to examine libraries when file_magic_cmd begins "file"
18714 MAGIC_CMD=$MAGIC_CMD
18715
18716 # Used on cygwin: DLL creation program.
18717 DLLTOOL="$DLLTOOL"
18718
18719 # Used on cygwin: object dumper.
18720 OBJDUMP="$OBJDUMP"
18721
18722 # Used on cygwin: assembler.
18723 AS="$AS"
18724
18725 # The name of the directory that contains temporary libtool files.
18726 objdir=$objdir
18727
18728 # How to create reloadable object files.
18729 reload_flag=$lt_reload_flag
18730 reload_cmds=$lt_reload_cmds
18731
18732 # How to pass a linker flag through the compiler.
18733 wl=$lt_lt_prog_compiler_wl_RC
18734
18735 # Object file suffix (normally "o").
18736 objext="$ac_objext"
18737
18738 # Old archive suffix (normally "a").
18739 libext="$libext"
18740
18741 # Shared library suffix (normally ".so").
18742 shrext='$shrext'
18743
18744 # Executable file suffix (normally "").
18745 exeext="$exeext"
18746
18747 # Additional compiler flags for building library objects.
18748 pic_flag=$lt_lt_prog_compiler_pic_RC
18749 pic_mode=$pic_mode
18750
18751 # What is the maximum length of a command?
18752 max_cmd_len=$lt_cv_sys_max_cmd_len
18753
18754 # Does compiler simultaneously support -c and -o options?
18755 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18756
18757 # Must we lock files when doing compilation ?
18758 need_locks=$lt_need_locks
18759
18760 # Do we need the lib prefix for modules?
18761 need_lib_prefix=$need_lib_prefix
18762
18763 # Do we need a version for libraries?
18764 need_version=$need_version
18765
18766 # Whether dlopen is supported.
18767 dlopen_support=$enable_dlopen
18768
18769 # Whether dlopen of programs is supported.
18770 dlopen_self=$enable_dlopen_self
18771
18772 # Whether dlopen of statically linked programs is supported.
18773 dlopen_self_static=$enable_dlopen_self_static
18774
18775 # Compiler flag to prevent dynamic linking.
18776 link_static_flag=$lt_lt_prog_compiler_static_RC
18777
18778 # Compiler flag to turn off builtin functions.
18779 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18780
18781 # Compiler flag to allow reflexive dlopens.
18782 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18783
18784 # Compiler flag to generate shared objects directly from archives.
18785 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18786
18787 # Compiler flag to generate thread-safe objects.
18788 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18789
18790 # Library versioning type.
18791 version_type=$version_type
18792
18793 # Format of library name prefix.
18794 libname_spec=$lt_libname_spec
18795
18796 # List of archive names.  First name is the real one, the rest are links.
18797 # The last name is the one that the linker finds with -lNAME.
18798 library_names_spec=$lt_library_names_spec
18799
18800 # The coded name of the library, if different from the real name.
18801 soname_spec=$lt_soname_spec
18802
18803 # Commands used to build and install an old-style archive.
18804 RANLIB=$lt_RANLIB
18805 old_archive_cmds=$lt_old_archive_cmds_RC
18806 old_postinstall_cmds=$lt_old_postinstall_cmds
18807 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18808
18809 # Create an old-style archive from a shared archive.
18810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18811
18812 # Create a temporary old-style archive to link instead of a shared archive.
18813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18814
18815 # Commands used to build and install a shared archive.
18816 archive_cmds=$lt_archive_cmds_RC
18817 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18818 postinstall_cmds=$lt_postinstall_cmds
18819 postuninstall_cmds=$lt_postuninstall_cmds
18820
18821 # Commands used to build a loadable module (assumed same as above if empty)
18822 module_cmds=$lt_module_cmds_RC
18823 module_expsym_cmds=$lt_module_expsym_cmds_RC
18824
18825 # Commands to strip libraries.
18826 old_striplib=$lt_old_striplib
18827 striplib=$lt_striplib
18828
18829 # Dependencies to place before the objects being linked to create a
18830 # shared library.
18831 predep_objects=$lt_predep_objects_RC
18832
18833 # Dependencies to place after the objects being linked to create a
18834 # shared library.
18835 postdep_objects=$lt_postdep_objects_RC
18836
18837 # Dependencies to place before the objects being linked to create a
18838 # shared library.
18839 predeps=$lt_predeps_RC
18840
18841 # Dependencies to place after the objects being linked to create a
18842 # shared library.
18843 postdeps=$lt_postdeps_RC
18844
18845 # The library search path used internally by the compiler when linking
18846 # a shared library.
18847 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18848
18849 # Method to check whether dependent libraries are shared objects.
18850 deplibs_check_method=$lt_deplibs_check_method
18851
18852 # Command to use when deplibs_check_method == file_magic.
18853 file_magic_cmd=$lt_file_magic_cmd
18854
18855 # Flag that allows shared libraries with undefined symbols to be built.
18856 allow_undefined_flag=$lt_allow_undefined_flag_RC
18857
18858 # Flag that forces no undefined symbols.
18859 no_undefined_flag=$lt_no_undefined_flag_RC
18860
18861 # Commands used to finish a libtool library installation in a directory.
18862 finish_cmds=$lt_finish_cmds
18863
18864 # Same as above, but a single script fragment to be evaled but not shown.
18865 finish_eval=$lt_finish_eval
18866
18867 # Take the output of nm and produce a listing of raw symbols and C names.
18868 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18869
18870 # Transform the output of nm in a proper C declaration
18871 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18872
18873 # Transform the output of nm in a C name address pair
18874 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18875
18876 # This is the shared library runtime path variable.
18877 runpath_var=$runpath_var
18878
18879 # This is the shared library path variable.
18880 shlibpath_var=$shlibpath_var
18881
18882 # Is shlibpath searched before the hard-coded library search path?
18883 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18884
18885 # How to hardcode a shared library path into an executable.
18886 hardcode_action=$hardcode_action_RC
18887
18888 # Whether we should hardcode library paths into libraries.
18889 hardcode_into_libs=$hardcode_into_libs
18890
18891 # Flag to hardcode \$libdir into a binary during linking.
18892 # This must work even if \$libdir does not exist.
18893 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18894
18895 # If ld is used when linking, flag to hardcode \$libdir into
18896 # a binary during linking. This must work even if \$libdir does
18897 # not exist.
18898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18899
18900 # Whether we need a single -rpath flag with a separated argument.
18901 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18902
18903 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18904 # resulting binary.
18905 hardcode_direct=$hardcode_direct_RC
18906
18907 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18908 # resulting binary.
18909 hardcode_minus_L=$hardcode_minus_L_RC
18910
18911 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18912 # the resulting binary.
18913 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18914
18915 # Set to yes if building a shared library automatically hardcodes DIR into the library
18916 # and all subsequent libraries and executables linked against it.
18917 hardcode_automatic=$hardcode_automatic_RC
18918
18919 # Variables whose values should be saved in libtool wrapper scripts and
18920 # restored at relink time.
18921 variables_saved_for_relink="$variables_saved_for_relink"
18922
18923 # Whether libtool must link a program against all its dependency libraries.
18924 link_all_deplibs=$link_all_deplibs_RC
18925
18926 # Compile-time system search path for libraries
18927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18928
18929 # Run-time system search path for libraries
18930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18931
18932 # Fix the shell variable \$srcfile for the compiler.
18933 fix_srcfile_path="$fix_srcfile_path_RC"
18934
18935 # Set to yes if exported symbols are required.
18936 always_export_symbols=$always_export_symbols_RC
18937
18938 # The commands to list exported symbols.
18939 export_symbols_cmds=$lt_export_symbols_cmds_RC
18940
18941 # The commands to extract the exported symbol list from a shared archive.
18942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18943
18944 # Symbols that should not be listed in the preloaded symbols.
18945 exclude_expsyms=$lt_exclude_expsyms_RC
18946
18947 # Symbols that must always be exported.
18948 include_expsyms=$lt_include_expsyms_RC
18949
18950 # ### END LIBTOOL TAG CONFIG: $tagname
18951
18952 __EOF__
18953
18954
18955 else
18956   # If there is no Makefile yet, we rely on a make rule to execute
18957   # `config.status --recheck' to rerun these tests and create the
18958   # libtool script then.
18959   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18960   if test -f "$ltmain_in"; then
18961     test -f Makefile && make "$ltmain"
18962   fi
18963 fi
18964
18965
18966 ac_ext=c
18967 ac_cpp='$CPP $CPPFLAGS'
18968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18971
18972 CC="$lt_save_CC"
18973
18974         ;;
18975
18976       *)
18977         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18978 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18979    { (exit 1); exit 1; }; }
18980         ;;
18981       esac
18982
18983       # Append the new tag name to the list of available tags.
18984       if test -n "$tagname" ; then
18985       available_tags="$available_tags $tagname"
18986     fi
18987     fi
18988   done
18989   IFS="$lt_save_ifs"
18990
18991   # Now substitute the updated list of available tags.
18992   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18993     mv "${ofile}T" "$ofile"
18994     chmod +x "$ofile"
18995   else
18996     rm -f "${ofile}T"
18997     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18998 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18999    { (exit 1); exit 1; }; }
19000   fi
19001 fi
19002
19003
19004
19005 # This can be used to rebuild libtool when needed
19006 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19007
19008 # Always use our own libtool.
19009 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19010
19011 # Prevent multiple expansion
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033 # declare the modules (no optional module)
19034
19035 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19036 ACLOCAL="$ACLOCAL -I acmacro"
19037
19038
19039 ac_ext=c
19040 ac_cpp='$CPP $CPPFLAGS'
19041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19044 if test -n "$ac_tool_prefix"; then
19045   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19046 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19047 echo "$as_me:$LINENO: checking for $ac_word" >&5
19048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19049 if test "${ac_cv_prog_CC+set}" = set; then
19050   echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052   if test -n "$CC"; then
19053   ac_cv_prog_CC="$CC" # Let the user override the test.
19054 else
19055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19056 for as_dir in $PATH
19057 do
19058   IFS=$as_save_IFS
19059   test -z "$as_dir" && as_dir=.
19060   for ac_exec_ext in '' $ac_executable_extensions; do
19061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19062     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19064     break 2
19065   fi
19066 done
19067 done
19068
19069 fi
19070 fi
19071 CC=$ac_cv_prog_CC
19072 if test -n "$CC"; then
19073   echo "$as_me:$LINENO: result: $CC" >&5
19074 echo "${ECHO_T}$CC" >&6
19075 else
19076   echo "$as_me:$LINENO: result: no" >&5
19077 echo "${ECHO_T}no" >&6
19078 fi
19079
19080 fi
19081 if test -z "$ac_cv_prog_CC"; then
19082   ac_ct_CC=$CC
19083   # Extract the first word of "gcc", so it can be a program name with args.
19084 set dummy gcc; ac_word=$2
19085 echo "$as_me:$LINENO: checking for $ac_word" >&5
19086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19088   echo $ECHO_N "(cached) $ECHO_C" >&6
19089 else
19090   if test -n "$ac_ct_CC"; then
19091   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19092 else
19093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19094 for as_dir in $PATH
19095 do
19096   IFS=$as_save_IFS
19097   test -z "$as_dir" && as_dir=.
19098   for ac_exec_ext in '' $ac_executable_extensions; do
19099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19100     ac_cv_prog_ac_ct_CC="gcc"
19101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19102     break 2
19103   fi
19104 done
19105 done
19106
19107 fi
19108 fi
19109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19110 if test -n "$ac_ct_CC"; then
19111   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19112 echo "${ECHO_T}$ac_ct_CC" >&6
19113 else
19114   echo "$as_me:$LINENO: result: no" >&5
19115 echo "${ECHO_T}no" >&6
19116 fi
19117
19118   CC=$ac_ct_CC
19119 else
19120   CC="$ac_cv_prog_CC"
19121 fi
19122
19123 if test -z "$CC"; then
19124   if test -n "$ac_tool_prefix"; then
19125   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19126 set dummy ${ac_tool_prefix}cc; ac_word=$2
19127 echo "$as_me:$LINENO: checking for $ac_word" >&5
19128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19129 if test "${ac_cv_prog_CC+set}" = set; then
19130   echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132   if test -n "$CC"; then
19133   ac_cv_prog_CC="$CC" # Let the user override the test.
19134 else
19135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19136 for as_dir in $PATH
19137 do
19138   IFS=$as_save_IFS
19139   test -z "$as_dir" && as_dir=.
19140   for ac_exec_ext in '' $ac_executable_extensions; do
19141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19142     ac_cv_prog_CC="${ac_tool_prefix}cc"
19143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19144     break 2
19145   fi
19146 done
19147 done
19148
19149 fi
19150 fi
19151 CC=$ac_cv_prog_CC
19152 if test -n "$CC"; then
19153   echo "$as_me:$LINENO: result: $CC" >&5
19154 echo "${ECHO_T}$CC" >&6
19155 else
19156   echo "$as_me:$LINENO: result: no" >&5
19157 echo "${ECHO_T}no" >&6
19158 fi
19159
19160 fi
19161 if test -z "$ac_cv_prog_CC"; then
19162   ac_ct_CC=$CC
19163   # Extract the first word of "cc", so it can be a program name with args.
19164 set dummy cc; ac_word=$2
19165 echo "$as_me:$LINENO: checking for $ac_word" >&5
19166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19167 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19168   echo $ECHO_N "(cached) $ECHO_C" >&6
19169 else
19170   if test -n "$ac_ct_CC"; then
19171   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19172 else
19173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19174 for as_dir in $PATH
19175 do
19176   IFS=$as_save_IFS
19177   test -z "$as_dir" && as_dir=.
19178   for ac_exec_ext in '' $ac_executable_extensions; do
19179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19180     ac_cv_prog_ac_ct_CC="cc"
19181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19182     break 2
19183   fi
19184 done
19185 done
19186
19187 fi
19188 fi
19189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19190 if test -n "$ac_ct_CC"; then
19191   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19192 echo "${ECHO_T}$ac_ct_CC" >&6
19193 else
19194   echo "$as_me:$LINENO: result: no" >&5
19195 echo "${ECHO_T}no" >&6
19196 fi
19197
19198   CC=$ac_ct_CC
19199 else
19200   CC="$ac_cv_prog_CC"
19201 fi
19202
19203 fi
19204 if test -z "$CC"; then
19205   # Extract the first word of "cc", so it can be a program name with args.
19206 set dummy cc; ac_word=$2
19207 echo "$as_me:$LINENO: checking for $ac_word" >&5
19208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19209 if test "${ac_cv_prog_CC+set}" = set; then
19210   echo $ECHO_N "(cached) $ECHO_C" >&6
19211 else
19212   if test -n "$CC"; then
19213   ac_cv_prog_CC="$CC" # Let the user override the test.
19214 else
19215   ac_prog_rejected=no
19216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19217 for as_dir in $PATH
19218 do
19219   IFS=$as_save_IFS
19220   test -z "$as_dir" && as_dir=.
19221   for ac_exec_ext in '' $ac_executable_extensions; do
19222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19223     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19224        ac_prog_rejected=yes
19225        continue
19226      fi
19227     ac_cv_prog_CC="cc"
19228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19229     break 2
19230   fi
19231 done
19232 done
19233
19234 if test $ac_prog_rejected = yes; then
19235   # We found a bogon in the path, so make sure we never use it.
19236   set dummy $ac_cv_prog_CC
19237   shift
19238   if test $# != 0; then
19239     # We chose a different compiler from the bogus one.
19240     # However, it has the same basename, so the bogon will be chosen
19241     # first if we set CC to just the basename; use the full file name.
19242     shift
19243     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19244   fi
19245 fi
19246 fi
19247 fi
19248 CC=$ac_cv_prog_CC
19249 if test -n "$CC"; then
19250   echo "$as_me:$LINENO: result: $CC" >&5
19251 echo "${ECHO_T}$CC" >&6
19252 else
19253   echo "$as_me:$LINENO: result: no" >&5
19254 echo "${ECHO_T}no" >&6
19255 fi
19256
19257 fi
19258 if test -z "$CC"; then
19259   if test -n "$ac_tool_prefix"; then
19260   for ac_prog in cl
19261   do
19262     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19264 echo "$as_me:$LINENO: checking for $ac_word" >&5
19265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19266 if test "${ac_cv_prog_CC+set}" = set; then
19267   echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269   if test -n "$CC"; then
19270   ac_cv_prog_CC="$CC" # Let the user override the test.
19271 else
19272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19273 for as_dir in $PATH
19274 do
19275   IFS=$as_save_IFS
19276   test -z "$as_dir" && as_dir=.
19277   for ac_exec_ext in '' $ac_executable_extensions; do
19278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19279     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19281     break 2
19282   fi
19283 done
19284 done
19285
19286 fi
19287 fi
19288 CC=$ac_cv_prog_CC
19289 if test -n "$CC"; then
19290   echo "$as_me:$LINENO: result: $CC" >&5
19291 echo "${ECHO_T}$CC" >&6
19292 else
19293   echo "$as_me:$LINENO: result: no" >&5
19294 echo "${ECHO_T}no" >&6
19295 fi
19296
19297     test -n "$CC" && break
19298   done
19299 fi
19300 if test -z "$CC"; then
19301   ac_ct_CC=$CC
19302   for ac_prog in cl
19303 do
19304   # Extract the first word of "$ac_prog", so it can be a program name with args.
19305 set dummy $ac_prog; ac_word=$2
19306 echo "$as_me:$LINENO: checking for $ac_word" >&5
19307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19309   echo $ECHO_N "(cached) $ECHO_C" >&6
19310 else
19311   if test -n "$ac_ct_CC"; then
19312   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19313 else
19314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19315 for as_dir in $PATH
19316 do
19317   IFS=$as_save_IFS
19318   test -z "$as_dir" && as_dir=.
19319   for ac_exec_ext in '' $ac_executable_extensions; do
19320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19321     ac_cv_prog_ac_ct_CC="$ac_prog"
19322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19323     break 2
19324   fi
19325 done
19326 done
19327
19328 fi
19329 fi
19330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19331 if test -n "$ac_ct_CC"; then
19332   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19333 echo "${ECHO_T}$ac_ct_CC" >&6
19334 else
19335   echo "$as_me:$LINENO: result: no" >&5
19336 echo "${ECHO_T}no" >&6
19337 fi
19338
19339   test -n "$ac_ct_CC" && break
19340 done
19341
19342   CC=$ac_ct_CC
19343 fi
19344
19345 fi
19346
19347
19348 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19349 See \`config.log' for more details." >&5
19350 echo "$as_me: error: no acceptable C compiler found in \$PATH
19351 See \`config.log' for more details." >&2;}
19352    { (exit 1); exit 1; }; }
19353
19354 # Provide some information about the compiler.
19355 echo "$as_me:$LINENO:" \
19356      "checking for C compiler version" >&5
19357 ac_compiler=`set X $ac_compile; echo $2`
19358 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19359   (eval $ac_compiler --version </dev/null >&5) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); }
19363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19364   (eval $ac_compiler -v </dev/null >&5) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }
19368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19369   (eval $ac_compiler -V </dev/null >&5) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); }
19373
19374 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19375 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19376 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19377   echo $ECHO_N "(cached) $ECHO_C" >&6
19378 else
19379   cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385
19386 int
19387 main ()
19388 {
19389 #ifndef __GNUC__
19390        choke me
19391 #endif
19392
19393   ;
19394   return 0;
19395 }
19396 _ACEOF
19397 rm -f conftest.$ac_objext
19398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19399   (eval $ac_compile) 2>conftest.er1
19400   ac_status=$?
19401   grep -v '^ *+' conftest.er1 >conftest.err
19402   rm -f conftest.er1
19403   cat conftest.err >&5
19404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); } &&
19406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408   (eval $ac_try) 2>&5
19409   ac_status=$?
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); }; } &&
19412          { ac_try='test -s conftest.$ac_objext'
19413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414   (eval $ac_try) 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); }; }; then
19418   ac_compiler_gnu=yes
19419 else
19420   echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19422
19423 ac_compiler_gnu=no
19424 fi
19425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19427
19428 fi
19429 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19430 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19431 GCC=`test $ac_compiler_gnu = yes && echo yes`
19432 ac_test_CFLAGS=${CFLAGS+set}
19433 ac_save_CFLAGS=$CFLAGS
19434 CFLAGS="-g"
19435 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19437 if test "${ac_cv_prog_cc_g+set}" = set; then
19438   echo $ECHO_N "(cached) $ECHO_C" >&6
19439 else
19440   cat >conftest.$ac_ext <<_ACEOF
19441 /* confdefs.h.  */
19442 _ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h.  */
19446
19447 int
19448 main ()
19449 {
19450
19451   ;
19452   return 0;
19453 }
19454 _ACEOF
19455 rm -f conftest.$ac_objext
19456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457   (eval $ac_compile) 2>conftest.er1
19458   ac_status=$?
19459   grep -v '^ *+' conftest.er1 >conftest.err
19460   rm -f conftest.er1
19461   cat conftest.err >&5
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); } &&
19464          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466   (eval $ac_try) 2>&5
19467   ac_status=$?
19468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); }; } &&
19470          { ac_try='test -s conftest.$ac_objext'
19471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472   (eval $ac_try) 2>&5
19473   ac_status=$?
19474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475   (exit $ac_status); }; }; then
19476   ac_cv_prog_cc_g=yes
19477 else
19478   echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19480
19481 ac_cv_prog_cc_g=no
19482 fi
19483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19484 fi
19485 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19487 if test "$ac_test_CFLAGS" = set; then
19488   CFLAGS=$ac_save_CFLAGS
19489 elif test $ac_cv_prog_cc_g = yes; then
19490   if test "$GCC" = yes; then
19491     CFLAGS="-g -O2"
19492   else
19493     CFLAGS="-g"
19494   fi
19495 else
19496   if test "$GCC" = yes; then
19497     CFLAGS="-O2"
19498   else
19499     CFLAGS=
19500   fi
19501 fi
19502 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19503 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19504 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   ac_cv_prog_cc_stdc=no
19508 ac_save_CC=$CC
19509 cat >conftest.$ac_ext <<_ACEOF
19510 /* confdefs.h.  */
19511 _ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h.  */
19515 #include <stdarg.h>
19516 #include <stdio.h>
19517 #include <sys/types.h>
19518 #include <sys/stat.h>
19519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19520 struct buf { int x; };
19521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19522 static char *e (p, i)
19523      char **p;
19524      int i;
19525 {
19526   return p[i];
19527 }
19528 static char *f (char * (*g) (char **, int), char **p, ...)
19529 {
19530   char *s;
19531   va_list v;
19532   va_start (v,p);
19533   s = g (p, va_arg (v,int));
19534   va_end (v);
19535   return s;
19536 }
19537
19538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19539    function prototypes and stuff, but not '\xHH' hex character constants.
19540    These don't provoke an error unfortunately, instead are silently treated
19541    as 'x'.  The following induces an error, until -std1 is added to get
19542    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19543    array size at least.  It's necessary to write '\x00'==0 to get something
19544    that's true only with -std1.  */
19545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19546
19547 int test (int i, double x);
19548 struct s1 {int (*f) (int a);};
19549 struct s2 {int (*f) (double a);};
19550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19551 int argc;
19552 char **argv;
19553 int
19554 main ()
19555 {
19556 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19557   ;
19558   return 0;
19559 }
19560 _ACEOF
19561 # Don't try gcc -ansi; that turns off useful extensions and
19562 # breaks some systems' header files.
19563 # AIX                   -qlanglvl=ansi
19564 # Ultrix and OSF/1      -std1
19565 # HP-UX 10.20 and later -Ae
19566 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19567 # SVR4                  -Xc -D__EXTENSIONS__
19568 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19569 do
19570   CC="$ac_save_CC $ac_arg"
19571   rm -f conftest.$ac_objext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573   (eval $ac_compile) 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } &&
19580          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582   (eval $ac_try) 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); }; } &&
19586          { ac_try='test -s conftest.$ac_objext'
19587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588   (eval $ac_try) 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; }; then
19592   ac_cv_prog_cc_stdc=$ac_arg
19593 break
19594 else
19595   echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19597
19598 fi
19599 rm -f conftest.err conftest.$ac_objext
19600 done
19601 rm -f conftest.$ac_ext conftest.$ac_objext
19602 CC=$ac_save_CC
19603
19604 fi
19605
19606 case "x$ac_cv_prog_cc_stdc" in
19607   x|xno)
19608     echo "$as_me:$LINENO: result: none needed" >&5
19609 echo "${ECHO_T}none needed" >&6 ;;
19610   *)
19611     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19612 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19613     CC="$CC $ac_cv_prog_cc_stdc" ;;
19614 esac
19615
19616 # Some people use a C++ compiler to compile C.  Since we use `exit',
19617 # in C++ we need to declare it.  In case someone uses the same compiler
19618 # for both compiling C and C++ we need to have the C++ compiler decide
19619 # the declaration of exit, since it's the most demanding environment.
19620 cat >conftest.$ac_ext <<_ACEOF
19621 #ifndef __cplusplus
19622   choke me
19623 #endif
19624 _ACEOF
19625 rm -f conftest.$ac_objext
19626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19627   (eval $ac_compile) 2>conftest.er1
19628   ac_status=$?
19629   grep -v '^ *+' conftest.er1 >conftest.err
19630   rm -f conftest.er1
19631   cat conftest.err >&5
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } &&
19634          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636   (eval $ac_try) 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); }; } &&
19640          { ac_try='test -s conftest.$ac_objext'
19641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642   (eval $ac_try) 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; }; then
19646   for ac_declaration in \
19647    '' \
19648    'extern "C" void std::exit (int) throw (); using std::exit;' \
19649    'extern "C" void std::exit (int); using std::exit;' \
19650    'extern "C" void exit (int) throw ();' \
19651    'extern "C" void exit (int);' \
19652    'void exit (int);'
19653 do
19654   cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h.  */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h.  */
19660 $ac_declaration
19661 #include <stdlib.h>
19662 int
19663 main ()
19664 {
19665 exit (42);
19666   ;
19667   return 0;
19668 }
19669 _ACEOF
19670 rm -f conftest.$ac_objext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19672   (eval $ac_compile) 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); } &&
19679          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681   (eval $ac_try) 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); }; } &&
19685          { ac_try='test -s conftest.$ac_objext'
19686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687   (eval $ac_try) 2>&5
19688   ac_status=$?
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); }; }; then
19691   :
19692 else
19693   echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 continue
19697 fi
19698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19699   cat >conftest.$ac_ext <<_ACEOF
19700 /* confdefs.h.  */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h.  */
19705 $ac_declaration
19706 int
19707 main ()
19708 {
19709 exit (42);
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716   (eval $ac_compile) 2>conftest.er1
19717   ac_status=$?
19718   grep -v '^ *+' conftest.er1 >conftest.err
19719   rm -f conftest.er1
19720   cat conftest.err >&5
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); } &&
19723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725   (eval $ac_try) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; } &&
19729          { ac_try='test -s conftest.$ac_objext'
19730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731   (eval $ac_try) 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; }; then
19735   break
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 fi
19741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19742 done
19743 rm -f conftest*
19744 if test -n "$ac_declaration"; then
19745   echo '#ifdef __cplusplus' >>confdefs.h
19746   echo $ac_declaration      >>confdefs.h
19747   echo '#endif'             >>confdefs.h
19748 fi
19749
19750 else
19751   echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19753
19754 fi
19755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19756 ac_ext=c
19757 ac_cpp='$CPP $CPPFLAGS'
19758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19761
19762 depcc="$CC"   am_compiler_list=
19763
19764 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19765 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19766 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19767   echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19770   # We make a subdir and do the tests there.  Otherwise we can end up
19771   # making bogus files that we don't know about and never remove.  For
19772   # instance it was reported that on HP-UX the gcc test will end up
19773   # making a dummy file named `D' -- because `-MD' means `put the output
19774   # in D'.
19775   mkdir conftest.dir
19776   # Copy depcomp to subdir because otherwise we won't find it if we're
19777   # using a relative directory.
19778   cp "$am_depcomp" conftest.dir
19779   cd conftest.dir
19780   # We will build objects and dependencies in a subdirectory because
19781   # it helps to detect inapplicable dependency modes.  For instance
19782   # both Tru64's cc and ICC support -MD to output dependencies as a
19783   # side effect of compilation, but ICC will put the dependencies in
19784   # the current directory while Tru64 will put them in the object
19785   # directory.
19786   mkdir sub
19787
19788   am_cv_CC_dependencies_compiler_type=none
19789   if test "$am_compiler_list" = ""; then
19790      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19791   fi
19792   for depmode in $am_compiler_list; do
19793     # Setup a source with many dependencies, because some compilers
19794     # like to wrap large dependency lists on column 80 (with \), and
19795     # we should not choose a depcomp mode which is confused by this.
19796     #
19797     # We need to recreate these files for each test, as the compiler may
19798     # overwrite some of them when testing with obscure command lines.
19799     # This happens at least with the AIX C compiler.
19800     : > sub/conftest.c
19801     for i in 1 2 3 4 5 6; do
19802       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19803       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19804       # Solaris 8's {/usr,}/bin/sh.
19805       touch sub/conftst$i.h
19806     done
19807     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19808
19809     case $depmode in
19810     nosideeffect)
19811       # after this tag, mechanisms are not by side-effect, so they'll
19812       # only be used when explicitly requested
19813       if test "x$enable_dependency_tracking" = xyes; then
19814         continue
19815       else
19816         break
19817       fi
19818       ;;
19819     none) break ;;
19820     esac
19821     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19822     # mode.  It turns out that the SunPro C++ compiler does not properly
19823     # handle `-M -o', and we need to detect this.
19824     if depmode=$depmode \
19825        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19826        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19827        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19828          >/dev/null 2>conftest.err &&
19829        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19830        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19831        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19832       # icc doesn't choke on unknown options, it will just issue warnings
19833       # (even with -Werror).  So we grep stderr for any message
19834       # that says an option was ignored.
19835       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19836         am_cv_CC_dependencies_compiler_type=$depmode
19837         break
19838       fi
19839     fi
19840   done
19841
19842   cd ..
19843   rm -rf conftest.dir
19844 else
19845   am_cv_CC_dependencies_compiler_type=none
19846 fi
19847
19848 fi
19849 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19850 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19851 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19852
19853
19854
19855 if
19856   test "x$enable_dependency_tracking" != xno \
19857   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19858   am__fastdepCC_TRUE=
19859   am__fastdepCC_FALSE='#'
19860 else
19861   am__fastdepCC_TRUE='#'
19862   am__fastdepCC_FALSE=
19863 fi
19864
19865
19866 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19867 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19868 # Just in case
19869 sleep 1
19870 echo timestamp > conftest.file
19871 # Do `set' in a subshell so we don't clobber the current shell's
19872 # arguments.  Must try -L first in case configure is actually a
19873 # symlink; some systems play weird games with the mod time of symlinks
19874 # (eg FreeBSD returns the mod time of the symlink's containing
19875 # directory).
19876 if (
19877    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19878    if test "$*" = "X"; then
19879       # -L didn't work.
19880       set X `ls -t $srcdir/configure conftest.file`
19881    fi
19882    rm -f conftest.file
19883    if test "$*" != "X $srcdir/configure conftest.file" \
19884       && test "$*" != "X conftest.file $srcdir/configure"; then
19885
19886       # If neither matched, then we have a broken ls.  This can happen
19887       # if, for instance, CONFIG_SHELL is bash and it inherits a
19888       # broken ls alias from the environment.  This has actually
19889       # happened.  Such a system could not be considered "sane".
19890       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19891 alias in your environment" >&5
19892 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19893 alias in your environment" >&2;}
19894    { (exit 1); exit 1; }; }
19895    fi
19896
19897    test "$2" = conftest.file
19898    )
19899 then
19900    # Ok.
19901    :
19902 else
19903    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19904 Check your system clock" >&5
19905 echo "$as_me: error: newly created file is older than distributed files!
19906 Check your system clock" >&2;}
19907    { (exit 1); exit 1; }; }
19908 fi
19909 echo "$as_me:$LINENO: result: yes" >&5
19910 echo "${ECHO_T}yes" >&6
19911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19912 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19913 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19915   echo $ECHO_N "(cached) $ECHO_C" >&6
19916 else
19917   cat >conftest.make <<\_ACEOF
19918 all:
19919         @echo 'ac_maketemp="$(MAKE)"'
19920 _ACEOF
19921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19923 if test -n "$ac_maketemp"; then
19924   eval ac_cv_prog_make_${ac_make}_set=yes
19925 else
19926   eval ac_cv_prog_make_${ac_make}_set=no
19927 fi
19928 rm -f conftest.make
19929 fi
19930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19931   echo "$as_me:$LINENO: result: yes" >&5
19932 echo "${ECHO_T}yes" >&6
19933   SET_MAKE=
19934 else
19935   echo "$as_me:$LINENO: result: no" >&5
19936 echo "${ECHO_T}no" >&6
19937   SET_MAKE="MAKE=${MAKE-make}"
19938 fi
19939
19940
19941 # Check architecture signature
19942
19943 # Check for the architecture
19944 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19945 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19946 if test "${ac_cv_c_bigendian+set}" = set; then
19947   echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949   # See if sys/param.h defines the BYTE_ORDER macro.
19950 cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h.  */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h.  */
19956 #include <sys/types.h>
19957 #include <sys/param.h>
19958
19959 int
19960 main ()
19961 {
19962 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19963  bogus endian macros
19964 #endif
19965
19966   ;
19967   return 0;
19968 }
19969 _ACEOF
19970 rm -f conftest.$ac_objext
19971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19972   (eval $ac_compile) 2>conftest.er1
19973   ac_status=$?
19974   grep -v '^ *+' conftest.er1 >conftest.err
19975   rm -f conftest.er1
19976   cat conftest.err >&5
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); } &&
19979          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981   (eval $ac_try) 2>&5
19982   ac_status=$?
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); }; } &&
19985          { ac_try='test -s conftest.$ac_objext'
19986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987   (eval $ac_try) 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); }; }; then
19991   # It does; now see whether it defined to BIG_ENDIAN or not.
19992 cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h.  */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h.  */
19998 #include <sys/types.h>
19999 #include <sys/param.h>
20000
20001 int
20002 main ()
20003 {
20004 #if BYTE_ORDER != BIG_ENDIAN
20005  not big endian
20006 #endif
20007
20008   ;
20009   return 0;
20010 }
20011 _ACEOF
20012 rm -f conftest.$ac_objext
20013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20014   (eval $ac_compile) 2>conftest.er1
20015   ac_status=$?
20016   grep -v '^ *+' conftest.er1 >conftest.err
20017   rm -f conftest.er1
20018   cat conftest.err >&5
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); } &&
20021          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023   (eval $ac_try) 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); }; } &&
20027          { ac_try='test -s conftest.$ac_objext'
20028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029   (eval $ac_try) 2>&5
20030   ac_status=$?
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); }; }; then
20033   ac_cv_c_bigendian=yes
20034 else
20035   echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 ac_cv_c_bigendian=no
20039 fi
20040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20041 else
20042   echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045 # It does not; compile a test program.
20046 if test "$cross_compiling" = yes; then
20047   # try to guess the endianness by grepping values into an object file
20048   ac_cv_c_bigendian=unknown
20049   cat >conftest.$ac_ext <<_ACEOF
20050 /* confdefs.h.  */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h.  */
20055 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20056 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20057 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20058 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20059 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20060 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20061 int
20062 main ()
20063 {
20064  _ascii (); _ebcdic ();
20065   ;
20066   return 0;
20067 }
20068 _ACEOF
20069 rm -f conftest.$ac_objext
20070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20071   (eval $ac_compile) 2>conftest.er1
20072   ac_status=$?
20073   grep -v '^ *+' conftest.er1 >conftest.err
20074   rm -f conftest.er1
20075   cat conftest.err >&5
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); } &&
20078          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080   (eval $ac_try) 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); }; } &&
20084          { ac_try='test -s conftest.$ac_objext'
20085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086   (eval $ac_try) 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; }; then
20090   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20091   ac_cv_c_bigendian=yes
20092 fi
20093 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20094   if test "$ac_cv_c_bigendian" = unknown; then
20095     ac_cv_c_bigendian=no
20096   else
20097     # finding both strings is unlikely to happen, but who knows?
20098     ac_cv_c_bigendian=unknown
20099   fi
20100 fi
20101 else
20102   echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105 fi
20106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20107 else
20108   cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h.  */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h.  */
20114 int
20115 main ()
20116 {
20117   /* Are we little or big endian?  From Harbison&Steele.  */
20118   union
20119   {
20120     long l;
20121     char c[sizeof (long)];
20122   } u;
20123   u.l = 1;
20124   exit (u.c[sizeof (long) - 1] == 1);
20125 }
20126 _ACEOF
20127 rm -f conftest$ac_exeext
20128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20129   (eval $ac_link) 2>&5
20130   ac_status=$?
20131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134   (eval $ac_try) 2>&5
20135   ac_status=$?
20136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); }; }; then
20138   ac_cv_c_bigendian=no
20139 else
20140   echo "$as_me: program exited with status $ac_status" >&5
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144 ( exit $ac_status )
20145 ac_cv_c_bigendian=yes
20146 fi
20147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20148 fi
20149 fi
20150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20151 fi
20152 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20153 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20154 case $ac_cv_c_bigendian in
20155   yes)
20156     endian=1 ;;
20157   no)
20158     endian=0 ;;
20159   *)
20160     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20161 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20162    { (exit 1); exit 1; }; } ;;
20163 esac
20164
20165
20166 cat >>confdefs.h <<_ACEOF
20167 #define GRAS_BIGENDIAN $endian
20168 _ACEOF
20169
20170
20171 echo "$as_me:$LINENO: checking size of char" >&5
20172 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20173     if test "${ac_cv_sizeof_char+set}" = set; then
20174   echo $ECHO_N "(cached) $ECHO_C" >&6
20175 else
20176   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20177    cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h.  */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h.  */
20183 #include "confdefs.h"
20184    #include <sys/types.h>
20185
20186
20187 int
20188 main ()
20189 {
20190 switch (0) case 0: case (sizeof (char) == $ac_size):;
20191   ;
20192   return 0;
20193 }
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197   (eval $ac_compile) 2>conftest.er1
20198   ac_status=$?
20199   grep -v '^ *+' conftest.er1 >conftest.err
20200   rm -f conftest.er1
20201   cat conftest.err >&5
20202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203   (exit $ac_status); } &&
20204          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206   (eval $ac_try) 2>&5
20207   ac_status=$?
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); }; } &&
20210          { ac_try='test -s conftest.$ac_objext'
20211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212   (eval $ac_try) 2>&5
20213   ac_status=$?
20214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215   (exit $ac_status); }; }; then
20216   ac_cv_sizeof_char=$ac_size
20217 else
20218   echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20220
20221 fi
20222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20223    if test x$ac_cv_sizeof_char != x ; then break; fi
20224   done
20225
20226 fi
20227
20228
20229 unspecif=$ac_cv_sizeof_char
20230 if test x$unspecif = x ; then
20231   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20232 echo "$as_me: error: cannot determine a size for char" >&2;}
20233    { (exit 1); exit 1; }; }
20234 fi
20235
20236     if test "${ac_cv_sizeof_signed_char+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20240    cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h.  */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h.  */
20246 #include "confdefs.h"
20247    #include <sys/types.h>
20248
20249
20250 int
20251 main ()
20252 {
20253 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20254   ;
20255   return 0;
20256 }
20257 _ACEOF
20258 rm -f conftest.$ac_objext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20260   (eval $ac_compile) 2>conftest.er1
20261   ac_status=$?
20262   grep -v '^ *+' conftest.er1 >conftest.err
20263   rm -f conftest.er1
20264   cat conftest.err >&5
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); } &&
20267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269   (eval $ac_try) 2>&5
20270   ac_status=$?
20271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272   (exit $ac_status); }; } &&
20273          { ac_try='test -s conftest.$ac_objext'
20274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275   (eval $ac_try) 2>&5
20276   ac_status=$?
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); }; }; then
20279   ac_cv_sizeof_signed_char=$ac_size
20280 else
20281   echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20283
20284 fi
20285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20286    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20287   done
20288
20289 fi
20290
20291
20292 signed=$ac_cv_sizeof_signed_char
20293 if test x$signed = x ; then
20294   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20295 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20296    { (exit 1); exit 1; }; }
20297 fi
20298 if test x$unspecif != x$signed ; then
20299   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20300 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20301    { (exit 1); exit 1; }; }
20302 fi
20303
20304     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20305   echo $ECHO_N "(cached) $ECHO_C" >&6
20306 else
20307   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20308    cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h.  */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h.  */
20314 #include "confdefs.h"
20315    #include <sys/types.h>
20316
20317
20318 int
20319 main ()
20320 {
20321 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20322   ;
20323   return 0;
20324 }
20325 _ACEOF
20326 rm -f conftest.$ac_objext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20328   (eval $ac_compile) 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } &&
20335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337   (eval $ac_try) 2>&5
20338   ac_status=$?
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); }; } &&
20341          { ac_try='test -s conftest.$ac_objext'
20342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343   (eval $ac_try) 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); }; }; then
20347   ac_cv_sizeof_unsigned_char=$ac_size
20348 else
20349   echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352 fi
20353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20354    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20355   done
20356
20357 fi
20358
20359
20360 unsigned=$ac_cv_sizeof_unsigned_char
20361 if test x$unsigned = x ; then
20362   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20363 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20364    { (exit 1); exit 1; }; }
20365 fi
20366 if test x$unsigned != x$signed ; then
20367   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20368 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20369    { (exit 1); exit 1; }; }
20370 fi
20371
20372 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20373 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20374
20375 cat >>confdefs.h <<_ACEOF
20376 #define SIZEOF_CHAR $ac_cv_sizeof_unsigned_char
20377 _ACEOF
20378
20379
20380 echo "$as_me:$LINENO: checking size of short int" >&5
20381 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20382     if test "${ac_cv_sizeof_short_int+set}" = set; then
20383   echo $ECHO_N "(cached) $ECHO_C" >&6
20384 else
20385   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20386    cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h.  */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h.  */
20392 #include "confdefs.h"
20393    #include <sys/types.h>
20394
20395
20396 int
20397 main ()
20398 {
20399 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20400   ;
20401   return 0;
20402 }
20403 _ACEOF
20404 rm -f conftest.$ac_objext
20405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20406   (eval $ac_compile) 2>conftest.er1
20407   ac_status=$?
20408   grep -v '^ *+' conftest.er1 >conftest.err
20409   rm -f conftest.er1
20410   cat conftest.err >&5
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); } &&
20413          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415   (eval $ac_try) 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); }; } &&
20419          { ac_try='test -s conftest.$ac_objext'
20420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421   (eval $ac_try) 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; }; then
20425   ac_cv_sizeof_short_int=$ac_size
20426 else
20427   echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430 fi
20431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20432    if test x$ac_cv_sizeof_short_int != x ; then break; fi
20433   done
20434
20435 fi
20436
20437
20438 unspecif=$ac_cv_sizeof_short_int
20439 if test x$unspecif = x ; then
20440   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20441 echo "$as_me: error: cannot determine a size for short int" >&2;}
20442    { (exit 1); exit 1; }; }
20443 fi
20444
20445     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20446   echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20449    cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h.  */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h.  */
20455 #include "confdefs.h"
20456    #include <sys/types.h>
20457
20458
20459 int
20460 main ()
20461 {
20462 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20463   ;
20464   return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20469   (eval $ac_compile) 2>conftest.er1
20470   ac_status=$?
20471   grep -v '^ *+' conftest.er1 >conftest.err
20472   rm -f conftest.er1
20473   cat conftest.err >&5
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); } &&
20476          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478   (eval $ac_try) 2>&5
20479   ac_status=$?
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); }; } &&
20482          { ac_try='test -s conftest.$ac_objext'
20483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484   (eval $ac_try) 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; }; then
20488   ac_cv_sizeof_signed_short_int=$ac_size
20489 else
20490   echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493 fi
20494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20495    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20496   done
20497
20498 fi
20499
20500
20501 signed=$ac_cv_sizeof_signed_short_int
20502 if test x$signed = x ; then
20503   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20504 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20505    { (exit 1); exit 1; }; }
20506 fi
20507 if test x$unspecif != x$signed ; then
20508   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20509 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20510    { (exit 1); exit 1; }; }
20511 fi
20512
20513     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20514   echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20517    cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h.  */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h.  */
20523 #include "confdefs.h"
20524    #include <sys/types.h>
20525
20526
20527 int
20528 main ()
20529 {
20530 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20531   ;
20532   return 0;
20533 }
20534 _ACEOF
20535 rm -f conftest.$ac_objext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537   (eval $ac_compile) 2>conftest.er1
20538   ac_status=$?
20539   grep -v '^ *+' conftest.er1 >conftest.err
20540   rm -f conftest.er1
20541   cat conftest.err >&5
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); } &&
20544          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546   (eval $ac_try) 2>&5
20547   ac_status=$?
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); }; } &&
20550          { ac_try='test -s conftest.$ac_objext'
20551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552   (eval $ac_try) 2>&5
20553   ac_status=$?
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); }; }; then
20556   ac_cv_sizeof_unsigned_short_int=$ac_size
20557 else
20558   echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560
20561 fi
20562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20563    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20564   done
20565
20566 fi
20567
20568
20569 unsigned=$ac_cv_sizeof_unsigned_short_int
20570 if test x$unsigned = x ; then
20571   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20572 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20573    { (exit 1); exit 1; }; }
20574 fi
20575 if test x$unsigned != x$signed ; then
20576   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20577 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20578    { (exit 1); exit 1; }; }
20579 fi
20580
20581 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20582 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20583
20584 cat >>confdefs.h <<_ACEOF
20585 #define SIZEOF_SHORT_INT $ac_cv_sizeof_unsigned_short_int
20586 _ACEOF
20587
20588
20589 echo "$as_me:$LINENO: checking size of int" >&5
20590 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20591     if test "${ac_cv_sizeof_int+set}" = set; then
20592   echo $ECHO_N "(cached) $ECHO_C" >&6
20593 else
20594   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20595    cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h.  */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h.  */
20601 #include "confdefs.h"
20602    #include <sys/types.h>
20603
20604
20605 int
20606 main ()
20607 {
20608 switch (0) case 0: case (sizeof (int) == $ac_size):;
20609   ;
20610   return 0;
20611 }
20612 _ACEOF
20613 rm -f conftest.$ac_objext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20615   (eval $ac_compile) 2>conftest.er1
20616   ac_status=$?
20617   grep -v '^ *+' conftest.er1 >conftest.err
20618   rm -f conftest.er1
20619   cat conftest.err >&5
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); } &&
20622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624   (eval $ac_try) 2>&5
20625   ac_status=$?
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); }; } &&
20628          { ac_try='test -s conftest.$ac_objext'
20629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20630   (eval $ac_try) 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); }; }; then
20634   ac_cv_sizeof_int=$ac_size
20635 else
20636   echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639 fi
20640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20641    if test x$ac_cv_sizeof_int != x ; then break; fi
20642   done
20643
20644 fi
20645
20646
20647 unspecif=$ac_cv_sizeof_int
20648 if test x$unspecif = x ; then
20649   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20650 echo "$as_me: error: cannot determine a size for int" >&2;}
20651    { (exit 1); exit 1; }; }
20652 fi
20653
20654     if test "${ac_cv_sizeof_signed_int+set}" = set; then
20655   echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20657   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20658    cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h.  */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h.  */
20664 #include "confdefs.h"
20665    #include <sys/types.h>
20666
20667
20668 int
20669 main ()
20670 {
20671 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 rm -f conftest.$ac_objext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20678   (eval $ac_compile) 2>conftest.er1
20679   ac_status=$?
20680   grep -v '^ *+' conftest.er1 >conftest.err
20681   rm -f conftest.er1
20682   cat conftest.err >&5
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); } &&
20685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687   (eval $ac_try) 2>&5
20688   ac_status=$?
20689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690   (exit $ac_status); }; } &&
20691          { ac_try='test -s conftest.$ac_objext'
20692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693   (eval $ac_try) 2>&5
20694   ac_status=$?
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); }; }; then
20697   ac_cv_sizeof_signed_int=$ac_size
20698 else
20699   echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20701
20702 fi
20703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20704    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20705   done
20706
20707 fi
20708
20709
20710 signed=$ac_cv_sizeof_signed_int
20711 if test x$signed = x ; then
20712   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20713 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20714    { (exit 1); exit 1; }; }
20715 fi
20716 if test x$unspecif != x$signed ; then
20717   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20718 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20719    { (exit 1); exit 1; }; }
20720 fi
20721
20722     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20723   echo $ECHO_N "(cached) $ECHO_C" >&6
20724 else
20725   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20726    cat >conftest.$ac_ext <<_ACEOF
20727 /* confdefs.h.  */
20728 _ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h.  */
20732 #include "confdefs.h"
20733    #include <sys/types.h>
20734
20735
20736 int
20737 main ()
20738 {
20739 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest.$ac_objext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20746   (eval $ac_compile) 2>conftest.er1
20747   ac_status=$?
20748   grep -v '^ *+' conftest.er1 >conftest.err
20749   rm -f conftest.er1
20750   cat conftest.err >&5
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); } &&
20753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755   (eval $ac_try) 2>&5
20756   ac_status=$?
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); }; } &&
20759          { ac_try='test -s conftest.$ac_objext'
20760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761   (eval $ac_try) 2>&5
20762   ac_status=$?
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); }; }; then
20765   ac_cv_sizeof_unsigned_int=$ac_size
20766 else
20767   echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770 fi
20771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20772    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
20773   done
20774
20775 fi
20776
20777
20778 unsigned=$ac_cv_sizeof_unsigned_int
20779 if test x$unsigned = x ; then
20780   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
20781 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
20782    { (exit 1); exit 1; }; }
20783 fi
20784 if test x$unsigned != x$signed ; then
20785   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
20786 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
20787    { (exit 1); exit 1; }; }
20788 fi
20789
20790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
20791 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
20792
20793 cat >>confdefs.h <<_ACEOF
20794 #define SIZEOF_INT $ac_cv_sizeof_unsigned_int
20795 _ACEOF
20796
20797
20798 echo "$as_me:$LINENO: checking size of long int" >&5
20799 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
20800     if test "${ac_cv_sizeof_long_int+set}" = set; then
20801   echo $ECHO_N "(cached) $ECHO_C" >&6
20802 else
20803   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20804    cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810 #include "confdefs.h"
20811    #include <sys/types.h>
20812
20813
20814 int
20815 main ()
20816 {
20817 switch (0) case 0: case (sizeof (long int) == $ac_size):;
20818   ;
20819   return 0;
20820 }
20821 _ACEOF
20822 rm -f conftest.$ac_objext
20823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20824   (eval $ac_compile) 2>conftest.er1
20825   ac_status=$?
20826   grep -v '^ *+' conftest.er1 >conftest.err
20827   rm -f conftest.er1
20828   cat conftest.err >&5
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); } &&
20831          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833   (eval $ac_try) 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); }; } &&
20837          { ac_try='test -s conftest.$ac_objext'
20838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839   (eval $ac_try) 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); }; }; then
20843   ac_cv_sizeof_long_int=$ac_size
20844 else
20845   echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 fi
20849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20850    if test x$ac_cv_sizeof_long_int != x ; then break; fi
20851   done
20852
20853 fi
20854
20855
20856 unspecif=$ac_cv_sizeof_long_int
20857 if test x$unspecif = x ; then
20858   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
20859 echo "$as_me: error: cannot determine a size for long int" >&2;}
20860    { (exit 1); exit 1; }; }
20861 fi
20862
20863     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
20864   echo $ECHO_N "(cached) $ECHO_C" >&6
20865 else
20866   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20867    cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 #include "confdefs.h"
20874    #include <sys/types.h>
20875
20876
20877 int
20878 main ()
20879 {
20880 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
20881   ;
20882   return 0;
20883 }
20884 _ACEOF
20885 rm -f conftest.$ac_objext
20886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20887   (eval $ac_compile) 2>conftest.er1
20888   ac_status=$?
20889   grep -v '^ *+' conftest.er1 >conftest.err
20890   rm -f conftest.er1
20891   cat conftest.err >&5
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); } &&
20894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896   (eval $ac_try) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; } &&
20900          { ac_try='test -s conftest.$ac_objext'
20901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902   (eval $ac_try) 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   ac_cv_sizeof_signed_long_int=$ac_size
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911 fi
20912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20913    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
20914   done
20915
20916 fi
20917
20918
20919 signed=$ac_cv_sizeof_signed_long_int
20920 if test x$signed = x ; then
20921   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
20922 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
20923    { (exit 1); exit 1; }; }
20924 fi
20925 if test x$unspecif != x$signed ; then
20926   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
20927 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
20928    { (exit 1); exit 1; }; }
20929 fi
20930
20931     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
20932   echo $ECHO_N "(cached) $ECHO_C" >&6
20933 else
20934   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20935    cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h.  */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h.  */
20941 #include "confdefs.h"
20942    #include <sys/types.h>
20943
20944
20945 int
20946 main ()
20947 {
20948 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
20949   ;
20950   return 0;
20951 }
20952 _ACEOF
20953 rm -f conftest.$ac_objext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20955   (eval $ac_compile) 2>conftest.er1
20956   ac_status=$?
20957   grep -v '^ *+' conftest.er1 >conftest.err
20958   rm -f conftest.er1
20959   cat conftest.err >&5
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); } &&
20962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964   (eval $ac_try) 2>&5
20965   ac_status=$?
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); }; } &&
20968          { ac_try='test -s conftest.$ac_objext'
20969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970   (eval $ac_try) 2>&5
20971   ac_status=$?
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); }; }; then
20974   ac_cv_sizeof_unsigned_long_int=$ac_size
20975 else
20976   echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20978
20979 fi
20980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20981    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
20982   done
20983
20984 fi
20985
20986
20987 unsigned=$ac_cv_sizeof_unsigned_long_int
20988 if test x$unsigned = x ; then
20989   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
20990 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
20991    { (exit 1); exit 1; }; }
20992 fi
20993 if test x$unsigned != x$signed ; then
20994   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
20995 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
20996    { (exit 1); exit 1; }; }
20997 fi
20998
20999 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
21000 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
21001
21002 cat >>confdefs.h <<_ACEOF
21003 #define SIZEOF_LONG_INT $ac_cv_sizeof_unsigned_long_int
21004 _ACEOF
21005
21006
21007 echo "$as_me:$LINENO: checking size of long long int" >&5
21008 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
21009     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
21010   echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21013    cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019 #include "confdefs.h"
21020    #include <sys/types.h>
21021
21022
21023 int
21024 main ()
21025 {
21026 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
21027   ;
21028   return 0;
21029 }
21030 _ACEOF
21031 rm -f conftest.$ac_objext
21032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21033   (eval $ac_compile) 2>conftest.er1
21034   ac_status=$?
21035   grep -v '^ *+' conftest.er1 >conftest.err
21036   rm -f conftest.er1
21037   cat conftest.err >&5
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); } &&
21040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042   (eval $ac_try) 2>&5
21043   ac_status=$?
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); }; } &&
21046          { ac_try='test -s conftest.$ac_objext'
21047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048   (eval $ac_try) 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); }; }; then
21052   ac_cv_sizeof_long_long_int=$ac_size
21053 else
21054   echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21056
21057 fi
21058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21059    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21060   done
21061
21062 fi
21063
21064
21065 unspecif=$ac_cv_sizeof_long_long_int
21066 if test x$unspecif = x ; then
21067   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21068 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21069    { (exit 1); exit 1; }; }
21070 fi
21071
21072     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21073   echo $ECHO_N "(cached) $ECHO_C" >&6
21074 else
21075   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21076    cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h.  */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h.  */
21082 #include "confdefs.h"
21083    #include <sys/types.h>
21084
21085
21086 int
21087 main ()
21088 {
21089 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21090   ;
21091   return 0;
21092 }
21093 _ACEOF
21094 rm -f conftest.$ac_objext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21096   (eval $ac_compile) 2>conftest.er1
21097   ac_status=$?
21098   grep -v '^ *+' conftest.er1 >conftest.err
21099   rm -f conftest.er1
21100   cat conftest.err >&5
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); } &&
21103          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105   (eval $ac_try) 2>&5
21106   ac_status=$?
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); }; } &&
21109          { ac_try='test -s conftest.$ac_objext'
21110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111   (eval $ac_try) 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); }; }; then
21115   ac_cv_sizeof_signed_long_long_int=$ac_size
21116 else
21117   echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21119
21120 fi
21121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21122    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21123   done
21124
21125 fi
21126
21127
21128 signed=$ac_cv_sizeof_signed_long_long_int
21129 if test x$signed = x ; then
21130   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21131 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21132    { (exit 1); exit 1; }; }
21133 fi
21134 if test x$unspecif != x$signed ; then
21135   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21136 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21137    { (exit 1); exit 1; }; }
21138 fi
21139
21140     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21141   echo $ECHO_N "(cached) $ECHO_C" >&6
21142 else
21143   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21144    cat >conftest.$ac_ext <<_ACEOF
21145 /* confdefs.h.  */
21146 _ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h.  */
21150 #include "confdefs.h"
21151    #include <sys/types.h>
21152
21153
21154 int
21155 main ()
21156 {
21157 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 rm -f conftest.$ac_objext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21164   (eval $ac_compile) 2>conftest.er1
21165   ac_status=$?
21166   grep -v '^ *+' conftest.er1 >conftest.err
21167   rm -f conftest.er1
21168   cat conftest.err >&5
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); } &&
21171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173   (eval $ac_try) 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; } &&
21177          { ac_try='test -s conftest.$ac_objext'
21178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179   (eval $ac_try) 2>&5
21180   ac_status=$?
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); }; }; then
21183   ac_cv_sizeof_unsigned_long_long_int=$ac_size
21184 else
21185   echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188 fi
21189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21190    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21191   done
21192
21193 fi
21194
21195
21196 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21197 if test x$unsigned = x ; then
21198   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21199 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21200    { (exit 1); exit 1; }; }
21201 fi
21202 if test x$unsigned != x$signed ; then
21203   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21204 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21205    { (exit 1); exit 1; }; }
21206 fi
21207
21208 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21209 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21210
21211 cat >>confdefs.h <<_ACEOF
21212 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
21213 _ACEOF
21214
21215
21216
21217
21218 echo "$as_me:$LINENO: checking size of void *" >&5
21219 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21220     if test "${ac_cv_sizeof_void_p+set}" = set; then
21221   echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21224    cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h.  */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h.  */
21230 #include "confdefs.h"
21231    #include <sys/types.h>
21232
21233
21234 int
21235 main ()
21236 {
21237 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21238   ;
21239   return 0;
21240 }
21241 _ACEOF
21242 rm -f conftest.$ac_objext
21243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21244   (eval $ac_compile) 2>conftest.er1
21245   ac_status=$?
21246   grep -v '^ *+' conftest.er1 >conftest.err
21247   rm -f conftest.er1
21248   cat conftest.err >&5
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); } &&
21251          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253   (eval $ac_try) 2>&5
21254   ac_status=$?
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); }; } &&
21257          { ac_try='test -s conftest.$ac_objext'
21258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259   (eval $ac_try) 2>&5
21260   ac_status=$?
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); }; }; then
21263   ac_cv_sizeof_void_p=$ac_size
21264 else
21265   echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21267
21268 fi
21269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21270    if test x$ac_cv_sizeof_void_p != x ; then break; fi
21271   done
21272
21273 fi
21274
21275
21276 if test x$ac_cv_sizeof_void_p = x ; then
21277   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21278 echo "$as_me: error: cannot determine a size for void *" >&2;}
21279    { (exit 1); exit 1; }; }
21280 fi
21281 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21282 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21283
21284 cat >>confdefs.h <<_ACEOF
21285 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21286 _ACEOF
21287
21288
21289 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21290 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21291     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21292   echo $ECHO_N "(cached) $ECHO_C" >&6
21293 else
21294   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21295    cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h.  */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h.  */
21301 #include "confdefs.h"
21302    #include <sys/types.h>
21303
21304
21305 int
21306 main ()
21307 {
21308 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21309   ;
21310   return 0;
21311 }
21312 _ACEOF
21313 rm -f conftest.$ac_objext
21314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21315   (eval $ac_compile) 2>conftest.er1
21316   ac_status=$?
21317   grep -v '^ *+' conftest.er1 >conftest.err
21318   rm -f conftest.er1
21319   cat conftest.err >&5
21320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321   (exit $ac_status); } &&
21322          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324   (eval $ac_try) 2>&5
21325   ac_status=$?
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); }; } &&
21328          { ac_try='test -s conftest.$ac_objext'
21329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330   (eval $ac_try) 2>&5
21331   ac_status=$?
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); }; }; then
21334   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21335 else
21336   echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21338
21339 fi
21340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21341    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21342   done
21343
21344 fi
21345
21346
21347 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21348   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21349 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21350    { (exit 1); exit 1; }; }
21351 fi
21352 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21353 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21354
21355 cat >>confdefs.h <<_ACEOF
21356 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
21357 _ACEOF
21358
21359
21360
21361 echo "$as_me:$LINENO: checking size of float" >&5
21362 echo $ECHO_N "checking size of float... $ECHO_C" >&6
21363     if test "${ac_cv_sizeof_float+set}" = set; then
21364   echo $ECHO_N "(cached) $ECHO_C" >&6
21365 else
21366   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21367    cat >conftest.$ac_ext <<_ACEOF
21368 /* confdefs.h.  */
21369 _ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h.  */
21373 #include "confdefs.h"
21374    #include <sys/types.h>
21375
21376
21377 int
21378 main ()
21379 {
21380 switch (0) case 0: case (sizeof (float) == $ac_size):;
21381   ;
21382   return 0;
21383 }
21384 _ACEOF
21385 rm -f conftest.$ac_objext
21386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21387   (eval $ac_compile) 2>conftest.er1
21388   ac_status=$?
21389   grep -v '^ *+' conftest.er1 >conftest.err
21390   rm -f conftest.er1
21391   cat conftest.err >&5
21392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); } &&
21394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396   (eval $ac_try) 2>&5
21397   ac_status=$?
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); }; } &&
21400          { ac_try='test -s conftest.$ac_objext'
21401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402   (eval $ac_try) 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); }; }; then
21406   ac_cv_sizeof_float=$ac_size
21407 else
21408   echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21410
21411 fi
21412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21413    if test x$ac_cv_sizeof_float != x ; then break; fi
21414   done
21415
21416 fi
21417
21418
21419 if test x$ac_cv_sizeof_float = x ; then
21420   { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
21421 echo "$as_me: error: cannot determine a size for float" >&2;}
21422    { (exit 1); exit 1; }; }
21423 fi
21424 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
21425 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
21426
21427 cat >>confdefs.h <<_ACEOF
21428 #define SIZEOF_FLOAT $ac_cv_sizeof_float
21429 _ACEOF
21430
21431
21432 echo "$as_me:$LINENO: checking size of double" >&5
21433 echo $ECHO_N "checking size of double... $ECHO_C" >&6
21434     if test "${ac_cv_sizeof_double+set}" = set; then
21435   echo $ECHO_N "(cached) $ECHO_C" >&6
21436 else
21437   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21438    cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h.  */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h.  */
21444 #include "confdefs.h"
21445    #include <sys/types.h>
21446
21447
21448 int
21449 main ()
21450 {
21451 switch (0) case 0: case (sizeof (double) == $ac_size):;
21452   ;
21453   return 0;
21454 }
21455 _ACEOF
21456 rm -f conftest.$ac_objext
21457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21458   (eval $ac_compile) 2>conftest.er1
21459   ac_status=$?
21460   grep -v '^ *+' conftest.er1 >conftest.err
21461   rm -f conftest.er1
21462   cat conftest.err >&5
21463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464   (exit $ac_status); } &&
21465          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467   (eval $ac_try) 2>&5
21468   ac_status=$?
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); }; } &&
21471          { ac_try='test -s conftest.$ac_objext'
21472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473   (eval $ac_try) 2>&5
21474   ac_status=$?
21475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476   (exit $ac_status); }; }; then
21477   ac_cv_sizeof_double=$ac_size
21478 else
21479   echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21481
21482 fi
21483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21484    if test x$ac_cv_sizeof_double != x ; then break; fi
21485   done
21486
21487 fi
21488
21489
21490 if test x$ac_cv_sizeof_double = x ; then
21491   { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
21492 echo "$as_me: error: cannot determine a size for double" >&2;}
21493    { (exit 1); exit 1; }; }
21494 fi
21495 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21496 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
21497
21498 cat >>confdefs.h <<_ACEOF
21499 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21500 _ACEOF
21501
21502
21503 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
21504 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511 #include "confdefs.h"
21512 union {
21513         double testFP;
21514         unsigned char bytes[sizeof(double)];
21515 } doubleTester;
21516 union {
21517         float testFP;
21518         unsigned char bytes[sizeof(float)];
21519 } floatTester;
21520
21521 int
21522 main ()
21523 {
21524
21525 memset(&doubleTester, 0, sizeof(doubleTester));
21526 memset(&floatTester, 0, sizeof(floatTester));
21527
21528 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
21529 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
21530   (sizeof(double) == 4)  ? 128 :
21531   (sizeof(double) == 8)  ? 16 :
21532   (sizeof(double) == 16) ? 1 : 0;
21533 if (doubleTester.testFP != -4.0) return 1;
21534
21535 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
21536 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
21537   (sizeof(float) == 4)  ? 128 :
21538   (sizeof(float) == 8)  ? 16 :
21539   (sizeof(float) == 16) ? 1 : 0;
21540 if (floatTester.testFP != -4.0) return 1;
21541
21542 return 0;
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 rm -f conftest.$ac_objext
21548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21549   (eval $ac_compile) 2>conftest.er1
21550   ac_status=$?
21551   grep -v '^ *+' conftest.er1 >conftest.err
21552   rm -f conftest.er1
21553   cat conftest.err >&5
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } &&
21556          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558   (eval $ac_try) 2>&5
21559   ac_status=$?
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); }; } &&
21562          { ac_try='test -s conftest.$ac_objext'
21563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564   (eval $ac_try) 2>&5
21565   ac_status=$?
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); }; }; then
21568   IEEE_FP=yes
21569
21570 cat >>confdefs.h <<\_ACEOF
21571 #define IEEE_FP 1
21572 _ACEOF
21573
21574
21575 else
21576   echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21578
21579 IEEE_FP=no
21580    { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21581 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21582    { (exit 1); exit 1; }; }
21583 fi
21584 rm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
21585 echo "${ECHO_T}$IEEE_FP" >&6
21586
21587
21588 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21589 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21590 if test x$endian = x1 ; then
21591   trace_endian=B
21592 else
21593   trace_endian=l
21594 fi
21595 gras_arch=unknown
21596 trace="$trace_endian"
21597 trace="${trace}:${ac_cv_sizeof_char}.${ac_cv_sizeof_short_int}.${ac_cv_sizeof_int}.${ac_cv_sizeof_long_int}.${ac_cv_sizeof_long_long_int}"
21598 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
21599 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
21600 case $trace in
21601   l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=i386;;
21602 esac
21603 if test x$gras_arch = xunknown ; then
21604   echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21605 echo "${ECHO_T}damnit ($trace)" >&6
21606   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21607 Please report this architecture trace ($trace) and what it corresponds to." >&5
21608 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21609 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21610    { (exit 1); exit 1; }; }
21611 fi
21612 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
21613
21614 cat >>confdefs.h <<_ACEOF
21615 #define GRAS_THISARCH_NAME "$gras_arch_name"
21616 _ACEOF
21617
21618
21619 cat >>confdefs.h <<_ACEOF
21620 #define GRAS_THISARCH $gras_arch
21621 _ACEOF
21622
21623 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
21624 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
21625
21626
21627 # Checks for header files.
21628 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21629 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21630 if test "${ac_cv_header_stdc+set}" = set; then
21631   echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633   cat >conftest.$ac_ext <<_ACEOF
21634 /* confdefs.h.  */
21635 _ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h.  */
21639 #include <stdlib.h>
21640 #include <stdarg.h>
21641 #include <string.h>
21642 #include <float.h>
21643
21644 int
21645 main ()
21646 {
21647
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654   (eval $ac_compile) 2>conftest.er1
21655   ac_status=$?
21656   grep -v '^ *+' conftest.er1 >conftest.err
21657   rm -f conftest.er1
21658   cat conftest.err >&5
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); } &&
21661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663   (eval $ac_try) 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); }; } &&
21667          { ac_try='test -s conftest.$ac_objext'
21668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669   (eval $ac_try) 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); }; }; then
21673   ac_cv_header_stdc=yes
21674 else
21675   echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678 ac_cv_header_stdc=no
21679 fi
21680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21681
21682 if test $ac_cv_header_stdc = yes; then
21683   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21684   cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h.  */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h.  */
21690 #include <string.h>
21691
21692 _ACEOF
21693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21694   $EGREP "memchr" >/dev/null 2>&1; then
21695   :
21696 else
21697   ac_cv_header_stdc=no
21698 fi
21699 rm -f conftest*
21700
21701 fi
21702
21703 if test $ac_cv_header_stdc = yes; then
21704   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21705   cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 #include <stdlib.h>
21712
21713 _ACEOF
21714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21715   $EGREP "free" >/dev/null 2>&1; then
21716   :
21717 else
21718   ac_cv_header_stdc=no
21719 fi
21720 rm -f conftest*
21721
21722 fi
21723
21724 if test $ac_cv_header_stdc = yes; then
21725   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21726   if test "$cross_compiling" = yes; then
21727   :
21728 else
21729   cat >conftest.$ac_ext <<_ACEOF
21730 /* confdefs.h.  */
21731 _ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h.  */
21735 #include <ctype.h>
21736 #if ((' ' & 0x0FF) == 0x020)
21737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21739 #else
21740 # define ISLOWER(c) \
21741                    (('a' <= (c) && (c) <= 'i') \
21742                      || ('j' <= (c) && (c) <= 'r') \
21743                      || ('s' <= (c) && (c) <= 'z'))
21744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21745 #endif
21746
21747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21748 int
21749 main ()
21750 {
21751   int i;
21752   for (i = 0; i < 256; i++)
21753     if (XOR (islower (i), ISLOWER (i))
21754         || toupper (i) != TOUPPER (i))
21755       exit(2);
21756   exit (0);
21757 }
21758 _ACEOF
21759 rm -f conftest$ac_exeext
21760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21761   (eval $ac_link) 2>&5
21762   ac_status=$?
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766   (eval $ac_try) 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); }; }; then
21770   :
21771 else
21772   echo "$as_me: program exited with status $ac_status" >&5
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21775
21776 ( exit $ac_status )
21777 ac_cv_header_stdc=no
21778 fi
21779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21780 fi
21781 fi
21782 fi
21783 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21784 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21785 if test $ac_cv_header_stdc = yes; then
21786
21787 cat >>confdefs.h <<\_ACEOF
21788 #define STDC_HEADERS 1
21789 _ACEOF
21790
21791 fi
21792
21793
21794
21795
21796
21797 for ac_header in stddef.h stdlib.h string.h unistd.h
21798 do
21799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21801   echo "$as_me:$LINENO: checking for $ac_header" >&5
21802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21804   echo $ECHO_N "(cached) $ECHO_C" >&6
21805 fi
21806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21808 else
21809   # Is the header compilable?
21810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21812 cat >conftest.$ac_ext <<_ACEOF
21813 /* confdefs.h.  */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h.  */
21818 $ac_includes_default
21819 #include <$ac_header>
21820 _ACEOF
21821 rm -f conftest.$ac_objext
21822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21823   (eval $ac_compile) 2>conftest.er1
21824   ac_status=$?
21825   grep -v '^ *+' conftest.er1 >conftest.err
21826   rm -f conftest.er1
21827   cat conftest.err >&5
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); } &&
21830          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832   (eval $ac_try) 2>&5
21833   ac_status=$?
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); }; } &&
21836          { ac_try='test -s conftest.$ac_objext'
21837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838   (eval $ac_try) 2>&5
21839   ac_status=$?
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); }; }; then
21842   ac_header_compiler=yes
21843 else
21844   echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847 ac_header_compiler=no
21848 fi
21849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21851 echo "${ECHO_T}$ac_header_compiler" >&6
21852
21853 # Is the header present?
21854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21856 cat >conftest.$ac_ext <<_ACEOF
21857 /* confdefs.h.  */
21858 _ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h.  */
21862 #include <$ac_header>
21863 _ACEOF
21864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21866   ac_status=$?
21867   grep -v '^ *+' conftest.er1 >conftest.err
21868   rm -f conftest.er1
21869   cat conftest.err >&5
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); } >/dev/null; then
21872   if test -s conftest.err; then
21873     ac_cpp_err=$ac_c_preproc_warn_flag
21874     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21875   else
21876     ac_cpp_err=
21877   fi
21878 else
21879   ac_cpp_err=yes
21880 fi
21881 if test -z "$ac_cpp_err"; then
21882   ac_header_preproc=yes
21883 else
21884   echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21886
21887   ac_header_preproc=no
21888 fi
21889 rm -f conftest.err conftest.$ac_ext
21890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21891 echo "${ECHO_T}$ac_header_preproc" >&6
21892
21893 # So?  What about this header?
21894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21895   yes:no: )
21896     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21900     ac_header_preproc=yes
21901     ;;
21902   no:yes:* )
21903     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21905     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21906 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21907     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21909     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21910 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21913     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21915     (
21916       cat <<\_ASBOX
21917 ## ----------------------------------------- ##
21918 ## Report this to martin.quinson@ens-lyon.fr ##
21919 ## ----------------------------------------- ##
21920 _ASBOX
21921     ) |
21922       sed "s/^/$as_me: WARNING:     /" >&2
21923     ;;
21924 esac
21925 echo "$as_me:$LINENO: checking for $ac_header" >&5
21926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21928   echo $ECHO_N "(cached) $ECHO_C" >&6
21929 else
21930   eval "$as_ac_Header=\$ac_header_preproc"
21931 fi
21932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21934
21935 fi
21936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21937   cat >>confdefs.h <<_ACEOF
21938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21939 _ACEOF
21940
21941 fi
21942
21943 done
21944
21945
21946 # Checks for typedefs, structures, and compiler characteristics.
21947 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21948 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21949 if test "${ac_cv_c_const+set}" = set; then
21950   echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952   cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h.  */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h.  */
21958
21959 int
21960 main ()
21961 {
21962 /* FIXME: Include the comments suggested by Paul. */
21963 #ifndef __cplusplus
21964   /* Ultrix mips cc rejects this.  */
21965   typedef int charset[2];
21966   const charset x;
21967   /* SunOS 4.1.1 cc rejects this.  */
21968   char const *const *ccp;
21969   char **p;
21970   /* NEC SVR4.0.2 mips cc rejects this.  */
21971   struct point {int x, y;};
21972   static struct point const zero = {0,0};
21973   /* AIX XL C 1.02.0.0 rejects this.
21974      It does not let you subtract one const X* pointer from another in
21975      an arm of an if-expression whose if-part is not a constant
21976      expression */
21977   const char *g = "string";
21978   ccp = &g + (g ? g-g : 0);
21979   /* HPUX 7.0 cc rejects these. */
21980   ++ccp;
21981   p = (char**) ccp;
21982   ccp = (char const *const *) p;
21983   { /* SCO 3.2v4 cc rejects this.  */
21984     char *t;
21985     char const *s = 0 ? (char *) 0 : (char const *) 0;
21986
21987     *t++ = 0;
21988   }
21989   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21990     int x[] = {25, 17};
21991     const int *foo = &x[0];
21992     ++foo;
21993   }
21994   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21995     typedef const int *iptr;
21996     iptr p = 0;
21997     ++p;
21998   }
21999   { /* AIX XL C 1.02.0.0 rejects this saying
22000        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22001     struct s { int j; const int *ap[3]; };
22002     struct s *b; b->j = 5;
22003   }
22004   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22005     const int foo = 10;
22006   }
22007 #endif
22008
22009   ;
22010   return 0;
22011 }
22012 _ACEOF
22013 rm -f conftest.$ac_objext
22014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22015   (eval $ac_compile) 2>conftest.er1
22016   ac_status=$?
22017   grep -v '^ *+' conftest.er1 >conftest.err
22018   rm -f conftest.er1
22019   cat conftest.err >&5
22020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); } &&
22022          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22024   (eval $ac_try) 2>&5
22025   ac_status=$?
22026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027   (exit $ac_status); }; } &&
22028          { ac_try='test -s conftest.$ac_objext'
22029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030   (eval $ac_try) 2>&5
22031   ac_status=$?
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); }; }; then
22034   ac_cv_c_const=yes
22035 else
22036   echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22038
22039 ac_cv_c_const=no
22040 fi
22041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22042 fi
22043 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22044 echo "${ECHO_T}$ac_cv_c_const" >&6
22045 if test $ac_cv_c_const = no; then
22046
22047 cat >>confdefs.h <<\_ACEOF
22048 #define const
22049 _ACEOF
22050
22051 fi
22052
22053 echo "$as_me:$LINENO: checking for inline" >&5
22054 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22055 if test "${ac_cv_c_inline+set}" = set; then
22056   echo $ECHO_N "(cached) $ECHO_C" >&6
22057 else
22058   ac_cv_c_inline=no
22059 for ac_kw in inline __inline__ __inline; do
22060   cat >conftest.$ac_ext <<_ACEOF
22061 /* confdefs.h.  */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h.  */
22066 #ifndef __cplusplus
22067 typedef int foo_t;
22068 static $ac_kw foo_t static_foo () {return 0; }
22069 $ac_kw foo_t foo () {return 0; }
22070 #endif
22071
22072 _ACEOF
22073 rm -f conftest.$ac_objext
22074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22075   (eval $ac_compile) 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } &&
22082          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084   (eval $ac_try) 2>&5
22085   ac_status=$?
22086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); }; } &&
22088          { ac_try='test -s conftest.$ac_objext'
22089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090   (eval $ac_try) 2>&5
22091   ac_status=$?
22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); }; }; then
22094   ac_cv_c_inline=$ac_kw; break
22095 else
22096   echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099 fi
22100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22101 done
22102
22103 fi
22104 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22105 echo "${ECHO_T}$ac_cv_c_inline" >&6
22106
22107
22108 case $ac_cv_c_inline in
22109   inline | yes) ;;
22110   *)
22111     case $ac_cv_c_inline in
22112       no) ac_val=;;
22113       *) ac_val=$ac_cv_c_inline;;
22114     esac
22115     cat >>confdefs.h <<_ACEOF
22116 #ifndef __cplusplus
22117 #define inline $ac_val
22118 #endif
22119 _ACEOF
22120     ;;
22121 esac
22122
22123 echo "$as_me:$LINENO: checking for size_t" >&5
22124 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22125 if test "${ac_cv_type_size_t+set}" = set; then
22126   echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128   cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h.  */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h.  */
22134 $ac_includes_default
22135 int
22136 main ()
22137 {
22138 if ((size_t *) 0)
22139   return 0;
22140 if (sizeof (size_t))
22141   return 0;
22142   ;
22143   return 0;
22144 }
22145 _ACEOF
22146 rm -f conftest.$ac_objext
22147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22148   (eval $ac_compile) 2>conftest.er1
22149   ac_status=$?
22150   grep -v '^ *+' conftest.er1 >conftest.err
22151   rm -f conftest.er1
22152   cat conftest.err >&5
22153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154   (exit $ac_status); } &&
22155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157   (eval $ac_try) 2>&5
22158   ac_status=$?
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); }; } &&
22161          { ac_try='test -s conftest.$ac_objext'
22162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163   (eval $ac_try) 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); }; }; then
22167   ac_cv_type_size_t=yes
22168 else
22169   echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22171
22172 ac_cv_type_size_t=no
22173 fi
22174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22175 fi
22176 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22177 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22178 if test $ac_cv_type_size_t = yes; then
22179   :
22180 else
22181
22182 cat >>confdefs.h <<_ACEOF
22183 #define size_t unsigned
22184 _ACEOF
22185
22186 fi
22187
22188
22189 # Checks for library functions.
22190
22191 for ac_header in stdlib.h
22192 do
22193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22195   echo "$as_me:$LINENO: checking for $ac_header" >&5
22196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22198   echo $ECHO_N "(cached) $ECHO_C" >&6
22199 fi
22200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22202 else
22203   # Is the header compilable?
22204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22206 cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h.  */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h.  */
22212 $ac_includes_default
22213 #include <$ac_header>
22214 _ACEOF
22215 rm -f conftest.$ac_objext
22216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22217   (eval $ac_compile) 2>conftest.er1
22218   ac_status=$?
22219   grep -v '^ *+' conftest.er1 >conftest.err
22220   rm -f conftest.er1
22221   cat conftest.err >&5
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); } &&
22224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226   (eval $ac_try) 2>&5
22227   ac_status=$?
22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); }; } &&
22230          { ac_try='test -s conftest.$ac_objext'
22231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22232   (eval $ac_try) 2>&5
22233   ac_status=$?
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); }; }; then
22236   ac_header_compiler=yes
22237 else
22238   echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22240
22241 ac_header_compiler=no
22242 fi
22243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22245 echo "${ECHO_T}$ac_header_compiler" >&6
22246
22247 # Is the header present?
22248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22250 cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256 #include <$ac_header>
22257 _ACEOF
22258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22260   ac_status=$?
22261   grep -v '^ *+' conftest.er1 >conftest.err
22262   rm -f conftest.er1
22263   cat conftest.err >&5
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); } >/dev/null; then
22266   if test -s conftest.err; then
22267     ac_cpp_err=$ac_c_preproc_warn_flag
22268     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22269   else
22270     ac_cpp_err=
22271   fi
22272 else
22273   ac_cpp_err=yes
22274 fi
22275 if test -z "$ac_cpp_err"; then
22276   ac_header_preproc=yes
22277 else
22278   echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22280
22281   ac_header_preproc=no
22282 fi
22283 rm -f conftest.err conftest.$ac_ext
22284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22285 echo "${ECHO_T}$ac_header_preproc" >&6
22286
22287 # So?  What about this header?
22288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22289   yes:no: )
22290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22294     ac_header_preproc=yes
22295     ;;
22296   no:yes:* )
22297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22309     (
22310       cat <<\_ASBOX
22311 ## ----------------------------------------- ##
22312 ## Report this to martin.quinson@ens-lyon.fr ##
22313 ## ----------------------------------------- ##
22314 _ASBOX
22315     ) |
22316       sed "s/^/$as_me: WARNING:     /" >&2
22317     ;;
22318 esac
22319 echo "$as_me:$LINENO: checking for $ac_header" >&5
22320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22322   echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324   eval "$as_ac_Header=\$ac_header_preproc"
22325 fi
22326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22328
22329 fi
22330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22331   cat >>confdefs.h <<_ACEOF
22332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22333 _ACEOF
22334
22335 fi
22336
22337 done
22338
22339 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22340 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22341 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22342   echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344   if test "$cross_compiling" = yes; then
22345   ac_cv_func_malloc_0_nonnull=no
22346 else
22347   cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h.  */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h.  */
22353 #if STDC_HEADERS || HAVE_STDLIB_H
22354 # include <stdlib.h>
22355 #else
22356 char *malloc ();
22357 #endif
22358
22359 int
22360 main ()
22361 {
22362 exit (malloc (0) ? 0 : 1);
22363   ;
22364   return 0;
22365 }
22366 _ACEOF
22367 rm -f conftest$ac_exeext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22369   (eval $ac_link) 2>&5
22370   ac_status=$?
22371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374   (eval $ac_try) 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; }; then
22378   ac_cv_func_malloc_0_nonnull=yes
22379 else
22380   echo "$as_me: program exited with status $ac_status" >&5
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22383
22384 ( exit $ac_status )
22385 ac_cv_func_malloc_0_nonnull=no
22386 fi
22387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22388 fi
22389 fi
22390 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22391 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22392 if test $ac_cv_func_malloc_0_nonnull = yes; then
22393
22394 cat >>confdefs.h <<\_ACEOF
22395 #define HAVE_MALLOC 1
22396 _ACEOF
22397
22398 else
22399   cat >>confdefs.h <<\_ACEOF
22400 #define HAVE_MALLOC 0
22401 _ACEOF
22402
22403    case $LIBOBJS in
22404     "malloc.$ac_objext"   | \
22405   *" malloc.$ac_objext"   | \
22406     "malloc.$ac_objext "* | \
22407   *" malloc.$ac_objext "* ) ;;
22408   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22409 esac
22410
22411
22412 cat >>confdefs.h <<\_ACEOF
22413 #define malloc rpl_malloc
22414 _ACEOF
22415
22416 fi
22417
22418
22419
22420 echo "$as_me:$LINENO: checking for working memcmp" >&5
22421 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22422 if test "${ac_cv_func_memcmp_working+set}" = set; then
22423   echo $ECHO_N "(cached) $ECHO_C" >&6
22424 else
22425   if test "$cross_compiling" = yes; then
22426   ac_cv_func_memcmp_working=no
22427 else
22428   cat >conftest.$ac_ext <<_ACEOF
22429 /* confdefs.h.  */
22430 _ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h.  */
22434 $ac_includes_default
22435 int
22436 main ()
22437 {
22438
22439   /* Some versions of memcmp are not 8-bit clean.  */
22440   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22441   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22442     exit (1);
22443
22444   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22445      or more and with at least one buffer not starting on a 4-byte boundary.
22446      William Lewis provided this test program.   */
22447   {
22448     char foo[21];
22449     char bar[21];
22450     int i;
22451     for (i = 0; i < 4; i++)
22452       {
22453         char *a = foo + i;
22454         char *b = bar + i;
22455         strcpy (a, "--------01111111");
22456         strcpy (b, "--------10000000");
22457         if (memcmp (a, b, 16) >= 0)
22458           exit (1);
22459       }
22460     exit (0);
22461   }
22462
22463   ;
22464   return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest$ac_exeext
22468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22469   (eval $ac_link) 2>&5
22470   ac_status=$?
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22474   (eval $ac_try) 2>&5
22475   ac_status=$?
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); }; }; then
22478   ac_cv_func_memcmp_working=yes
22479 else
22480   echo "$as_me: program exited with status $ac_status" >&5
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22483
22484 ( exit $ac_status )
22485 ac_cv_func_memcmp_working=no
22486 fi
22487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22488 fi
22489 fi
22490 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22491 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22492 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22493     "memcmp.$ac_objext"   | \
22494   *" memcmp.$ac_objext"   | \
22495     "memcmp.$ac_objext "* | \
22496   *" memcmp.$ac_objext "* ) ;;
22497   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22498 esac
22499
22500
22501
22502
22503
22504
22505 for ac_func in memset strchr strerror usleep
22506 do
22507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22508 echo "$as_me:$LINENO: checking for $ac_func" >&5
22509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22510 if eval "test \"\${$as_ac_var+set}\" = set"; then
22511   echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513   cat >conftest.$ac_ext <<_ACEOF
22514 /* confdefs.h.  */
22515 _ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h.  */
22519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22521 #define $ac_func innocuous_$ac_func
22522
22523 /* System header to define __stub macros and hopefully few prototypes,
22524     which can conflict with char $ac_func (); below.
22525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22526     <limits.h> exists even on freestanding compilers.  */
22527
22528 #ifdef __STDC__
22529 # include <limits.h>
22530 #else
22531 # include <assert.h>
22532 #endif
22533
22534 #undef $ac_func
22535
22536 /* Override any gcc2 internal prototype to avoid an error.  */
22537 #ifdef __cplusplus
22538 extern "C"
22539 {
22540 #endif
22541 /* We use char because int might match the return type of a gcc2
22542    builtin and then its argument prototype would still apply.  */
22543 char $ac_func ();
22544 /* The GNU C library defines this for functions which it implements
22545     to always fail with ENOSYS.  Some functions are actually named
22546     something starting with __ and the normal name is an alias.  */
22547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22548 choke me
22549 #else
22550 char (*f) () = $ac_func;
22551 #endif
22552 #ifdef __cplusplus
22553 }
22554 #endif
22555
22556 int
22557 main ()
22558 {
22559 return f != $ac_func;
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 rm -f conftest.$ac_objext conftest$ac_exeext
22565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22566   (eval $ac_link) 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
22570   cat conftest.err >&5
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); } &&
22573          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575   (eval $ac_try) 2>&5
22576   ac_status=$?
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); }; } &&
22579          { ac_try='test -s conftest$ac_exeext'
22580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22581   (eval $ac_try) 2>&5
22582   ac_status=$?
22583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584   (exit $ac_status); }; }; then
22585   eval "$as_ac_var=yes"
22586 else
22587   echo "$as_me: failed program was:" >&5
22588 sed 's/^/| /' conftest.$ac_ext >&5
22589
22590 eval "$as_ac_var=no"
22591 fi
22592 rm -f conftest.err conftest.$ac_objext \
22593       conftest$ac_exeext conftest.$ac_ext
22594 fi
22595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22597 if test `eval echo '${'$as_ac_var'}'` = yes; then
22598   cat >>confdefs.h <<_ACEOF
22599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22600 _ACEOF
22601
22602 fi
22603 done
22604
22605
22606 # Can we rebuild the documentation?
22607
22608
22609 # Check whether --with-html-dir or --without-html-dir was given.
22610 if test "${with_html_dir+set}" = set; then
22611   withval="$with_html_dir"
22612
22613 else
22614   with_html_dir='${datadir}/gtk-doc/html'
22615 fi;
22616   HTML_DIR="$with_html_dir"
22617
22618
22619     # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
22620 if test "${enable_gtk_doc+set}" = set; then
22621   enableval="$enable_gtk_doc"
22622
22623 else
22624   enable_gtk_doc=no
22625 fi;
22626
22627   have_gtk_doc=no
22628   if test -z "$PKG_CONFIG"; then
22629     # Extract the first word of "pkg-config", so it can be a program name with args.
22630 set dummy pkg-config; ac_word=$2
22631 echo "$as_me:$LINENO: checking for $ac_word" >&5
22632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22634   echo $ECHO_N "(cached) $ECHO_C" >&6
22635 else
22636   case $PKG_CONFIG in
22637   [\\/]* | ?:[\\/]*)
22638   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22639   ;;
22640   *)
22641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22642 for as_dir in $PATH
22643 do
22644   IFS=$as_save_IFS
22645   test -z "$as_dir" && as_dir=.
22646   for ac_exec_ext in '' $ac_executable_extensions; do
22647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22648     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22650     break 2
22651   fi
22652 done
22653 done
22654
22655   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22656   ;;
22657 esac
22658 fi
22659 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22660
22661 if test -n "$PKG_CONFIG"; then
22662   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22663 echo "${ECHO_T}$PKG_CONFIG" >&6
22664 else
22665   echo "$as_me:$LINENO: result: no" >&5
22666 echo "${ECHO_T}no" >&6
22667 fi
22668
22669   fi
22670   if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
22671     have_gtk_doc=yes
22672   fi
22673
22674
22675   if test x$enable_gtk_doc = xyes; then
22676     if test "$have_gtk_doc" != yes; then
22677       enable_gtk_doc=no
22678     fi
22679   fi
22680
22681
22682
22683 if test x$enable_gtk_doc = xyes; then
22684   ENABLE_GTK_DOC_TRUE=
22685   ENABLE_GTK_DOC_FALSE='#'
22686 else
22687   ENABLE_GTK_DOC_TRUE='#'
22688   ENABLE_GTK_DOC_FALSE=
22689 fi
22690
22691
22692
22693 if test -n "$LIBTOOL"; then
22694   GTK_DOC_USE_LIBTOOL_TRUE=
22695   GTK_DOC_USE_LIBTOOL_FALSE='#'
22696 else
22697   GTK_DOC_USE_LIBTOOL_TRUE='#'
22698   GTK_DOC_USE_LIBTOOL_FALSE=
22699 fi
22700
22701
22702
22703
22704   echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
22705   # Extract the first word of "xml2-config", so it can be a program name with args.
22706 set dummy xml2-config; ac_word=$2
22707 echo "$as_me:$LINENO: checking for $ac_word" >&5
22708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22709 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
22710   echo $ECHO_N "(cached) $ECHO_C" >&6
22711 else
22712   case $ACI_CACHE_PROG in
22713   [\\/]* | ?:[\\/]*)
22714   ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
22715   ;;
22716   *)
22717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22718 for as_dir in $PATH
22719 do
22720   IFS=$as_save_IFS
22721   test -z "$as_dir" && as_dir=.
22722   for ac_exec_ext in '' $ac_executable_extensions; do
22723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22724     ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
22725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22726     break 2
22727   fi
22728 done
22729 done
22730
22731   test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
22732   ;;
22733 esac
22734 fi
22735 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
22736
22737 if test -n "$ACI_CACHE_PROG"; then
22738   echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
22739 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
22740 else
22741   echo "$as_me:$LINENO: result: no" >&5
22742 echo "${ECHO_T}no" >&6
22743 fi
22744
22745   aci_module_desc_XML="XML library (version XML2)"
22746     aci_pkg_config_XML=xml2-config
22747     aci_packages="$aci_packages XML"
22748   if test x$ACI_CACHE_PROG = xno; then
22749     HAVE_XML=no
22750     CFLAGS_XML=""
22751     LIBS_XML=""
22752     :
22753   else
22754     HAVE_XML=yes
22755     CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
22756     LIBS_XML=`$ACI_CACHE_PROG --libs `
22757     echo >/dev/null
22758   fi
22759           echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770         aci_nameok=`echo SimGrid|sed 'y/-/./'`
22771         if test "xSimGrid" != "x$aci_nameok" ; then
22772           { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
22773 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
22774    { (exit 1); exit 1; }; }
22775         fi
22776         echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
22777         aci_module_desc_SimGrid="the SimGrid simulator"
22778                 aci_packages="$aci_packages SimGrid"
22779
22780
22781 # Check whether --with-SimGrid or --without-SimGrid was given.
22782 if test "${with_SimGrid+set}" = set; then
22783   withval="$with_SimGrid"
22784   with_SimGrid=$withval
22785            good=yes
22786            if test "$withval" = yes ; then good=no; fi
22787            if test "$withval" = no ; then good=no; fi
22788            if test $good = no ; then
22789              { { echo "$as_me:$LINENO: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&5
22790 echo "$as_me: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&2;}
22791    { (exit 1); exit 1; }; }
22792            fi
22793            aci_pkg_prefix_SimGrid="$withval"
22794            CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
22795            LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
22796
22797 fi;
22798
22799
22800 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
22801 if test "${with_SimGrid_includes+set}" = set; then
22802   withval="$with_SimGrid_includes"
22803   CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
22804            aci_pkg_inc_SimGrid="$withval"
22805
22806 fi;
22807
22808
22809 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
22810 if test "${with_SimGrid_libraries+set}" = set; then
22811   withval="$with_SimGrid_libraries"
22812   LIBS_SimGrid="-L$withval $LIBS_SimGrid"
22813              aci_pkg_lib_SimGrid="$withval"
22814 fi;
22815
22816
22817 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
22818 if test "${with_SimGrid_extra+set}" = set; then
22819   withval="$with_SimGrid_extra"
22820   LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
22821              aci_pkg_extra_SimGrid="$withval"
22822 fi;
22823
22824
22825                                 OLD_LDFLAGS=$LDFLAGS
22826         OLD_CFLAGS=$CFLAGS
22827         OLD_CPPFLAGS=$CPPFLAGS
22828
22829                 i=`echo -lsimgrid|wc -l`
22830         if test $i != 1 && test $i != 0 ; then
22831           { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
22832             please no newline and no tab." >&5
22833 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
22834             please no newline and no tab." >&2;}
22835    { (exit 1); exit 1; }; }
22836         fi
22837
22838         ac_func_search_save_LIBS="$LIBS"
22839         ac_func_search_save_this_LIBS="$LIBS_SimGrid"
22840         aci_found="no"
22841         echo "----------------------------------------" >&5
22842         echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
22843 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
22844         cat >conftest.$ac_ext <<_ACEOF
22845 /* confdefs.h.  */
22846 _ACEOF
22847 cat confdefs.h >>conftest.$ac_ext
22848 cat >>conftest.$ac_ext <<_ACEOF
22849 /* end confdefs.h.  */
22850
22851 /* Override any gcc2 internal prototype to avoid an error.  */
22852 #ifdef __cplusplus
22853 extern "C"
22854 #endif
22855 /* We use char because int might match the return type of a gcc2
22856    builtin and then its argument prototype would still apply.  */
22857 char SG_init ();
22858 int
22859 main ()
22860 {
22861 SG_init ();
22862   ;
22863   return 0;
22864 }
22865 _ACEOF
22866 rm -f conftest.$ac_objext conftest$ac_exeext
22867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22868   (eval $ac_link) 2>conftest.er1
22869   ac_status=$?
22870   grep -v '^ *+' conftest.er1 >conftest.err
22871   rm -f conftest.er1
22872   cat conftest.err >&5
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); } &&
22875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877   (eval $ac_try) 2>&5
22878   ac_status=$?
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); }; } &&
22881          { ac_try='test -s conftest$ac_exeext'
22882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883   (eval $ac_try) 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); }; }; then
22887   echo "$as_me:$LINENO: result: yes" >&5
22888 echo "${ECHO_T}yes" >&6 aci_found="yes"
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893 echo "$as_me:$LINENO: result: no" >&5
22894 echo "${ECHO_T}no" >&6
22895 fi
22896 rm -f conftest.err conftest.$ac_objext \
22897       conftest$ac_exeext conftest.$ac_ext
22898         if test "$aci_found" = "no"; then
22899           if test -n "$LIBS_SimGrid" ; then
22900             LIBS="$LIBS_SimGrid"
22901             echo "----------------------------------------" >&5
22902             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
22903 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
22904             cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h.  */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h.  */
22910
22911 /* Override any gcc2 internal prototype to avoid an error.  */
22912 #ifdef __cplusplus
22913 extern "C"
22914 #endif
22915 /* We use char because int might match the return type of a gcc2
22916    builtin and then its argument prototype would still apply.  */
22917 char SG_init ();
22918 int
22919 main ()
22920 {
22921 SG_init ();
22922   ;
22923   return 0;
22924 }
22925 _ACEOF
22926 rm -f conftest.$ac_objext conftest$ac_exeext
22927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22928   (eval $ac_link) 2>conftest.er1
22929   ac_status=$?
22930   grep -v '^ *+' conftest.er1 >conftest.err
22931   rm -f conftest.er1
22932   cat conftest.err >&5
22933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); } &&
22935          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937   (eval $ac_try) 2>&5
22938   ac_status=$?
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); }; } &&
22941          { ac_try='test -s conftest$ac_exeext'
22942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943   (eval $ac_try) 2>&5
22944   ac_status=$?
22945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946   (exit $ac_status); }; }; then
22947   aci_found="yes"
22948 else
22949   echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952 aci_found="no"
22953 fi
22954 rm -f conftest.err conftest.$ac_objext \
22955       conftest$ac_exeext conftest.$ac_ext
22956             echo "$as_me:$LINENO: result: $aci_found" >&5
22957 echo "${ECHO_T}$aci_found" >&6
22958           fi
22959         fi
22960         for i in -lsimgrid
22961         do
22962           if test "x$aci_found" = "xno"; then
22963             LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
22964             LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
22965             echo "----------------------------------------" >&5
22966             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
22967 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
22968             cat >conftest.$ac_ext <<_ACEOF
22969 /* confdefs.h.  */
22970 _ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h.  */
22974
22975 /* Override any gcc2 internal prototype to avoid an error.  */
22976 #ifdef __cplusplus
22977 extern "C"
22978 #endif
22979 /* We use char because int might match the return type of a gcc2
22980    builtin and then its argument prototype would still apply.  */
22981 char SG_init ();
22982 int
22983 main ()
22984 {
22985 SG_init ();
22986   ;
22987   return 0;
22988 }
22989 _ACEOF
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22992   (eval $ac_link) 2>conftest.er1
22993   ac_status=$?
22994   grep -v '^ *+' conftest.er1 >conftest.err
22995   rm -f conftest.er1
22996   cat conftest.err >&5
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); } &&
22999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001   (eval $ac_try) 2>&5
23002   ac_status=$?
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); }; } &&
23005          { ac_try='test -s conftest$ac_exeext'
23006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007   (eval $ac_try) 2>&5
23008   ac_status=$?
23009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010   (exit $ac_status); }; }; then
23011   aci_found="yes"
23012 else
23013   echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016 aci_found="no"
23017 fi
23018 rm -f conftest.err conftest.$ac_objext \
23019       conftest$ac_exeext conftest.$ac_ext
23020             echo "$as_me:$LINENO: result: $aci_found" >&5
23021 echo "${ECHO_T}$aci_found" >&6
23022           fi
23023         done
23024         LIBS="$ac_func_search_save_LIBS"
23025
23026                                 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
23027           CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
23028           echo "CPPFLAGS=$CPPFLAGS">&5;
23029           if test "${ac_cv_header_simgrid_h+set}" = set; then
23030   echo "$as_me:$LINENO: checking for simgrid.h" >&5
23031 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23032 if test "${ac_cv_header_simgrid_h+set}" = set; then
23033   echo $ECHO_N "(cached) $ECHO_C" >&6
23034 fi
23035 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23036 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23037 else
23038   # Is the header compilable?
23039 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23040 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
23041 cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h.  */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h.  */
23047 $ac_includes_default
23048 #include <simgrid.h>
23049 _ACEOF
23050 rm -f conftest.$ac_objext
23051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23052   (eval $ac_compile) 2>conftest.er1
23053   ac_status=$?
23054   grep -v '^ *+' conftest.er1 >conftest.err
23055   rm -f conftest.er1
23056   cat conftest.err >&5
23057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058   (exit $ac_status); } &&
23059          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061   (eval $ac_try) 2>&5
23062   ac_status=$?
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); }; } &&
23065          { ac_try='test -s conftest.$ac_objext'
23066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067   (eval $ac_try) 2>&5
23068   ac_status=$?
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); }; }; then
23071   ac_header_compiler=yes
23072 else
23073   echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23075
23076 ac_header_compiler=no
23077 fi
23078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23080 echo "${ECHO_T}$ac_header_compiler" >&6
23081
23082 # Is the header present?
23083 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23084 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23085 cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h.  */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h.  */
23091 #include <simgrid.h>
23092 _ACEOF
23093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23095   ac_status=$?
23096   grep -v '^ *+' conftest.er1 >conftest.err
23097   rm -f conftest.er1
23098   cat conftest.err >&5
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); } >/dev/null; then
23101   if test -s conftest.err; then
23102     ac_cpp_err=$ac_c_preproc_warn_flag
23103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23104   else
23105     ac_cpp_err=
23106   fi
23107 else
23108   ac_cpp_err=yes
23109 fi
23110 if test -z "$ac_cpp_err"; then
23111   ac_header_preproc=yes
23112 else
23113   echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23115
23116   ac_header_preproc=no
23117 fi
23118 rm -f conftest.err conftest.$ac_ext
23119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23120 echo "${ECHO_T}$ac_header_preproc" >&6
23121
23122 # So?  What about this header?
23123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23124   yes:no: )
23125     { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23126 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23127     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23128 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23129     ac_header_preproc=yes
23130     ;;
23131   no:yes:* )
23132     { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23133 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23134     { echo "$as_me:$LINENO: WARNING: simgrid.h:     check for missing prerequisite headers?" >&5
23135 echo "$as_me: WARNING: simgrid.h:     check for missing prerequisite headers?" >&2;}
23136     { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23137 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23138     { echo "$as_me:$LINENO: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&5
23139 echo "$as_me: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23140     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23141 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23142     { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23143 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23144     (
23145       cat <<\_ASBOX
23146 ## ----------------------------------------- ##
23147 ## Report this to martin.quinson@ens-lyon.fr ##
23148 ## ----------------------------------------- ##
23149 _ASBOX
23150     ) |
23151       sed "s/^/$as_me: WARNING:     /" >&2
23152     ;;
23153 esac
23154 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23155 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23156 if test "${ac_cv_header_simgrid_h+set}" = set; then
23157   echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159   ac_cv_header_simgrid_h=$ac_header_preproc
23160 fi
23161 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23162 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23163
23164 fi
23165 if test $ac_cv_header_simgrid_h = yes; then
23166   good=yes
23167 else
23168   good=no
23169 fi
23170
23171
23172         fi
23173         if test "x$aci_found" = "xno" ; then
23174                                    { { echo "$as_me:$LINENO: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&5
23175 echo "$as_me: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&2;}
23176    { (exit 1); exit 1; }; }
23177         else
23178                         HAVE_SimGrid="yes"
23179                 echo >/dev/null
23180         fi
23181         if test "x$HAVE_SimGrid" != "xyes" ; then
23182           CFLAGS_SimGrid=""
23183           LIBS_SimGrid=""
23184         fi
23185
23186
23187
23188
23189         echo "END OF ACI-PACKAGE(SimGrid)">&5;
23190                 LDFLAGS=$OLDLDFLAGS
23191         CPPFLAGS=$OLDCPPFLAGS
23192         CFLAGS=$OLDCFLAGS
23193
23194
23195
23196 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23197 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23198     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23199 if test "${enable_maintainer_mode+set}" = set; then
23200   enableval="$enable_maintainer_mode"
23201   USE_MAINTAINER_MODE=$enableval
23202 else
23203   USE_MAINTAINER_MODE=no
23204 fi;
23205   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
23206 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
23207
23208
23209 if test $USE_MAINTAINER_MODE = yes; then
23210   MAINTAINER_MODE_TRUE=
23211   MAINTAINER_MODE_FALSE='#'
23212 else
23213   MAINTAINER_MODE_TRUE='#'
23214   MAINTAINER_MODE_FALSE=
23215 fi
23216
23217   MAINT=$MAINTAINER_MODE_TRUE
23218
23219
23220 if test x$USE_MAINTAINER_MODE = xyes
23221 then
23222
23223   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
23224 if test "${enable_compile_warnings+set}" = set; then
23225   enableval="$enable_compile_warnings"
23226
23227 else
23228   enable_compile_warnings=yes
23229 fi;
23230
23231   echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
23232 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
23233   warnCFLAGS=
23234   if test "x$GCC" != xyes; then
23235     enable_compile_warnings=no
23236   fi
23237
23238   if test "x$enable_compile_warnings" != "xno"; then
23239     if test "x$GCC" = "xyes"; then
23240       case " $CFLAGS " in
23241       *-Wall*) ;;
23242       *) warnCFLAGS="-g -Wall -Wunused" ;;
23243       esac
23244
23245       ## -W is not all that useful.  And it cannot be controlled
23246       ## with individual -Wno-xxx flags, unlike -Wall
23247       if test "x$enable_compile_warnings" = "xyes"; then
23248         warnCFLAGS="$warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations\
23249                     -finline-functions  -Wshadow -Wpointer-arith \
23250                     -Wwrite-strings -Wno-unused-function -Werror"
23251       fi
23252     fi
23253   fi
23254   echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
23255 echo "${ECHO_T}$warnCFLAGS" >&6
23256
23257   # Check whether --enable-iso-c or --disable-iso-c was given.
23258 if test "${enable_iso_c+set}" = set; then
23259   enableval="$enable_iso_c"
23260
23261 else
23262   enable_iso_c=no
23263 fi;
23264
23265   echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
23266 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
23267   complCFLAGS=
23268   if test "x$enable_iso_c" != "xno"; then
23269     if test "x$GCC" = "xyes"; then
23270       case " $CFLAGS " in
23271       *-ansi*) ;;
23272       *) complCFLAGS="$complCFLAGS -ansi" ;;
23273       esac
23274
23275       case " $CFLAGS " in
23276       *-pedantic*) ;;
23277       *) complCFLAGS="$complCFLAGS -pedantic" ;;
23278       esac
23279     fi
23280   fi
23281   echo "$as_me:$LINENO: result: $complCFLAGS" >&5
23282 echo "${ECHO_T}$complCFLAGS" >&6
23283   if test "x$cflags_set" != "xyes"; then
23284     CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
23285     cflags_set=yes
23286
23287   fi
23288
23289 fi
23290
23291
23292
23293
23294
23295 # Extract the first word of "bash", so it can be a program name with args.
23296 set dummy bash; ac_word=$2
23297 echo "$as_me:$LINENO: checking for $ac_word" >&5
23298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23299 if test "${ac_cv_prog_BASH+set}" = set; then
23300   echo $ECHO_N "(cached) $ECHO_C" >&6
23301 else
23302   if test -n "$BASH"; then
23303   ac_cv_prog_BASH="$BASH" # Let the user override the test.
23304 else
23305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23306 for as_dir in $PATH
23307 do
23308   IFS=$as_save_IFS
23309   test -z "$as_dir" && as_dir=.
23310   for ac_exec_ext in '' $ac_executable_extensions; do
23311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23312     ac_cv_prog_BASH="`which bash`"
23313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23314     break 2
23315   fi
23316 done
23317 done
23318
23319   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
23320 fi
23321 fi
23322 BASH=$ac_cv_prog_BASH
23323 if test -n "$BASH"; then
23324   echo "$as_me:$LINENO: result: $BASH" >&5
23325 echo "${ECHO_T}$BASH" >&6
23326 else
23327   echo "$as_me:$LINENO: result: no" >&5
23328 echo "${ECHO_T}no" >&6
23329 fi
23330
23331 WARNING="This file is generated, do not edit"
23332
23333
23334                                                                                                                                                                 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/run_tests src/base/Tests/trp_tcp_usage src/base/Tests/trp_file_usage src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
23335
23336
23337 cat >confcache <<\_ACEOF
23338 # This file is a shell script that caches the results of configure
23339 # tests run on this system so they can be shared between configure
23340 # scripts and configure runs, see configure's option --config-cache.
23341 # It is not useful on other systems.  If it contains results you don't
23342 # want to keep, you may remove or edit it.
23343 #
23344 # config.status only pays attention to the cache file if you give it
23345 # the --recheck option to rerun configure.
23346 #
23347 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23348 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23349 # following values.
23350
23351 _ACEOF
23352
23353 # The following way of writing the cache mishandles newlines in values,
23354 # but we know of no workaround that is simple, portable, and efficient.
23355 # So, don't put newlines in cache variables' values.
23356 # Ultrix sh set writes to stderr and can't be redirected directly,
23357 # and sets the high bit in the cache file unless we assign to the vars.
23358 {
23359   (set) 2>&1 |
23360     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23361     *ac_space=\ *)
23362       # `set' does not quote correctly, so add quotes (double-quote
23363       # substitution turns \\\\ into \\, and sed turns \\ into \).
23364       sed -n \
23365         "s/'/'\\\\''/g;
23366           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23367       ;;
23368     *)
23369       # `set' quotes correctly as required by POSIX, so do not add quotes.
23370       sed -n \
23371         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23372       ;;
23373     esac;
23374 } |
23375   sed '
23376      t clear
23377      : clear
23378      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23379      t end
23380      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23381      : end' >>confcache
23382 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23383   if test -w $cache_file; then
23384     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23385     cat confcache >$cache_file
23386   else
23387     echo "not updating unwritable cache $cache_file"
23388   fi
23389 fi
23390 rm -f confcache
23391
23392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23393 # Let make expand exec_prefix.
23394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23395
23396 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23397 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23398 # trailing colons and then remove the whole line if VPATH becomes empty
23399 # (actually we leave an empty line to preserve line numbers).
23400 if test "x$srcdir" = x.; then
23401   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23402 s/:*\$(srcdir):*/:/;
23403 s/:*\${srcdir}:*/:/;
23404 s/:*@srcdir@:*/:/;
23405 s/^\([^=]*=[     ]*\):*/\1/;
23406 s/:*$//;
23407 s/^[^=]*=[       ]*$//;
23408 }'
23409 fi
23410
23411 DEFS=-DHAVE_CONFIG_H
23412
23413 ac_libobjs=
23414 ac_ltlibobjs=
23415 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23416   # 1. Remove the extension, and $U if already installed.
23417   ac_i=`echo "$ac_i" |
23418          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23419   # 2. Add them.
23420   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23421   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23422 done
23423 LIBOBJS=$ac_libobjs
23424
23425 LTLIBOBJS=$ac_ltlibobjs
23426
23427
23428 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23429   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23430 Usually this means the macro was only invoked conditionally." >&5
23431 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23432 Usually this means the macro was only invoked conditionally." >&2;}
23433    { (exit 1); exit 1; }; }
23434 fi
23435 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23436   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23437 Usually this means the macro was only invoked conditionally." >&5
23438 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23439 Usually this means the macro was only invoked conditionally." >&2;}
23440    { (exit 1); exit 1; }; }
23441 fi
23442 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23443   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23444 Usually this means the macro was only invoked conditionally." >&5
23445 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23446 Usually this means the macro was only invoked conditionally." >&2;}
23447    { (exit 1); exit 1; }; }
23448 fi
23449 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23450   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23451 Usually this means the macro was only invoked conditionally." >&5
23452 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23453 Usually this means the macro was only invoked conditionally." >&2;}
23454    { (exit 1); exit 1; }; }
23455 fi
23456 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23457   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23458 Usually this means the macro was only invoked conditionally." >&5
23459 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23460 Usually this means the macro was only invoked conditionally." >&2;}
23461    { (exit 1); exit 1; }; }
23462 fi
23463 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23464   { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23465 Usually this means the macro was only invoked conditionally." >&5
23466 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23467 Usually this means the macro was only invoked conditionally." >&2;}
23468    { (exit 1); exit 1; }; }
23469 fi
23470 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23471   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23472 Usually this means the macro was only invoked conditionally." >&5
23473 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23474 Usually this means the macro was only invoked conditionally." >&2;}
23475    { (exit 1); exit 1; }; }
23476 fi
23477
23478 : ${CONFIG_STATUS=./config.status}
23479 ac_clean_files_save=$ac_clean_files
23480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23481 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23482 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23483 cat >$CONFIG_STATUS <<_ACEOF
23484 #! $SHELL
23485 # Generated by $as_me.
23486 # Run this file to recreate the current configuration.
23487 # Compiler output produced by configure, useful for debugging
23488 # configure, is in config.log if it exists.
23489
23490 debug=false
23491 ac_cs_recheck=false
23492 ac_cs_silent=false
23493 SHELL=\${CONFIG_SHELL-$SHELL}
23494 _ACEOF
23495
23496 cat >>$CONFIG_STATUS <<\_ACEOF
23497 ## --------------------- ##
23498 ## M4sh Initialization.  ##
23499 ## --------------------- ##
23500
23501 # Be Bourne compatible
23502 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23503   emulate sh
23504   NULLCMD=:
23505   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23506   # is contrary to our usage.  Disable this feature.
23507   alias -g '${1+"$@"}'='"$@"'
23508 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23509   set -o posix
23510 fi
23511 DUALCASE=1; export DUALCASE # for MKS sh
23512
23513 # Support unset when possible.
23514 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23515   as_unset=unset
23516 else
23517   as_unset=false
23518 fi
23519
23520
23521 # Work around bugs in pre-3.0 UWIN ksh.
23522 $as_unset ENV MAIL MAILPATH
23523 PS1='$ '
23524 PS2='> '
23525 PS4='+ '
23526
23527 # NLS nuisances.
23528 for as_var in \
23529   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23530   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23531   LC_TELEPHONE LC_TIME
23532 do
23533   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23534     eval $as_var=C; export $as_var
23535   else
23536     $as_unset $as_var
23537   fi
23538 done
23539
23540 # Required to use basename.
23541 if expr a : '\(a\)' >/dev/null 2>&1; then
23542   as_expr=expr
23543 else
23544   as_expr=false
23545 fi
23546
23547 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23548   as_basename=basename
23549 else
23550   as_basename=false
23551 fi
23552
23553
23554 # Name of the executable.
23555 as_me=`$as_basename "$0" ||
23556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23557          X"$0" : 'X\(//\)$' \| \
23558          X"$0" : 'X\(/\)$' \| \
23559          .     : '\(.\)' 2>/dev/null ||
23560 echo X/"$0" |
23561     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23562           /^X\/\(\/\/\)$/{ s//\1/; q; }
23563           /^X\/\(\/\).*/{ s//\1/; q; }
23564           s/.*/./; q'`
23565
23566
23567 # PATH needs CR, and LINENO needs CR and PATH.
23568 # Avoid depending upon Character Ranges.
23569 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23570 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23571 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23572 as_cr_digits='0123456789'
23573 as_cr_alnum=$as_cr_Letters$as_cr_digits
23574
23575 # The user is always right.
23576 if test "${PATH_SEPARATOR+set}" != set; then
23577   echo "#! /bin/sh" >conf$$.sh
23578   echo  "exit 0"   >>conf$$.sh
23579   chmod +x conf$$.sh
23580   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23581     PATH_SEPARATOR=';'
23582   else
23583     PATH_SEPARATOR=:
23584   fi
23585   rm -f conf$$.sh
23586 fi
23587
23588
23589   as_lineno_1=$LINENO
23590   as_lineno_2=$LINENO
23591   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23592   test "x$as_lineno_1" != "x$as_lineno_2" &&
23593   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23594   # Find who we are.  Look in the path if we contain no path at all
23595   # relative or not.
23596   case $0 in
23597     *[\\/]* ) as_myself=$0 ;;
23598     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23599 for as_dir in $PATH
23600 do
23601   IFS=$as_save_IFS
23602   test -z "$as_dir" && as_dir=.
23603   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23604 done
23605
23606        ;;
23607   esac
23608   # We did not find ourselves, most probably we were run as `sh COMMAND'
23609   # in which case we are not to be found in the path.
23610   if test "x$as_myself" = x; then
23611     as_myself=$0
23612   fi
23613   if test ! -f "$as_myself"; then
23614     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23615 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23616    { (exit 1); exit 1; }; }
23617   fi
23618   case $CONFIG_SHELL in
23619   '')
23620     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23621 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23622 do
23623   IFS=$as_save_IFS
23624   test -z "$as_dir" && as_dir=.
23625   for as_base in sh bash ksh sh5; do
23626          case $as_dir in
23627          /*)
23628            if ("$as_dir/$as_base" -c '
23629   as_lineno_1=$LINENO
23630   as_lineno_2=$LINENO
23631   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23632   test "x$as_lineno_1" != "x$as_lineno_2" &&
23633   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23634              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23635              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23636              CONFIG_SHELL=$as_dir/$as_base
23637              export CONFIG_SHELL
23638              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23639            fi;;
23640          esac
23641        done
23642 done
23643 ;;
23644   esac
23645
23646   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23647   # uniformly replaced by the line number.  The first 'sed' inserts a
23648   # line-number line before each line; the second 'sed' does the real
23649   # work.  The second script uses 'N' to pair each line-number line
23650   # with the numbered line, and appends trailing '-' during
23651   # substitution so that $LINENO is not a special case at line end.
23652   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23653   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23654   sed '=' <$as_myself |
23655     sed '
23656       N
23657       s,$,-,
23658       : loop
23659       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23660       t loop
23661       s,-$,,
23662       s,^['$as_cr_digits']*\n,,
23663     ' >$as_me.lineno &&
23664   chmod +x $as_me.lineno ||
23665     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23666 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23667    { (exit 1); exit 1; }; }
23668
23669   # Don't try to exec as it changes $[0], causing all sort of problems
23670   # (the dirname of $[0] is not the place where we might find the
23671   # original and so on.  Autoconf is especially sensible to this).
23672   . ./$as_me.lineno
23673   # Exit status is that of the last command.
23674   exit
23675 }
23676
23677
23678 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23679   *c*,-n*) ECHO_N= ECHO_C='
23680 ' ECHO_T='      ' ;;
23681   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23682   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23683 esac
23684
23685 if expr a : '\(a\)' >/dev/null 2>&1; then
23686   as_expr=expr
23687 else
23688   as_expr=false
23689 fi
23690
23691 rm -f conf$$ conf$$.exe conf$$.file
23692 echo >conf$$.file
23693 if ln -s conf$$.file conf$$ 2>/dev/null; then
23694   # We could just check for DJGPP; but this test a) works b) is more generic
23695   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23696   if test -f conf$$.exe; then
23697     # Don't use ln at all; we don't have any links
23698     as_ln_s='cp -p'
23699   else
23700     as_ln_s='ln -s'
23701   fi
23702 elif ln conf$$.file conf$$ 2>/dev/null; then
23703   as_ln_s=ln
23704 else
23705   as_ln_s='cp -p'
23706 fi
23707 rm -f conf$$ conf$$.exe conf$$.file
23708
23709 if mkdir -p . 2>/dev/null; then
23710   as_mkdir_p=:
23711 else
23712   test -d ./-p && rmdir ./-p
23713   as_mkdir_p=false
23714 fi
23715
23716 as_executable_p="test -f"
23717
23718 # Sed expression to map a string onto a valid CPP name.
23719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23720
23721 # Sed expression to map a string onto a valid variable name.
23722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23723
23724
23725 # IFS
23726 # We need space, tab and new line, in precisely that order.
23727 as_nl='
23728 '
23729 IFS="   $as_nl"
23730
23731 # CDPATH.
23732 $as_unset CDPATH
23733
23734 exec 6>&1
23735
23736 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23737 # report actual input values of CONFIG_FILES etc. instead of their
23738 # values after options handling.  Logging --version etc. is OK.
23739 exec 5>>config.log
23740 {
23741   echo
23742   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23743 ## Running $as_me. ##
23744 _ASBOX
23745 } >&5
23746 cat >&5 <<_CSEOF
23747
23748 This file was extended by GRAS $as_me 0.0.040304, which was
23749 generated by GNU Autoconf 2.59.  Invocation command line was
23750
23751   CONFIG_FILES    = $CONFIG_FILES
23752   CONFIG_HEADERS  = $CONFIG_HEADERS
23753   CONFIG_LINKS    = $CONFIG_LINKS
23754   CONFIG_COMMANDS = $CONFIG_COMMANDS
23755   $ $0 $@
23756
23757 _CSEOF
23758 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23759 echo >&5
23760 _ACEOF
23761
23762 # Files that config.status was made for.
23763 if test -n "$ac_config_files"; then
23764   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23765 fi
23766
23767 if test -n "$ac_config_headers"; then
23768   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23769 fi
23770
23771 if test -n "$ac_config_links"; then
23772   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23773 fi
23774
23775 if test -n "$ac_config_commands"; then
23776   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23777 fi
23778
23779 cat >>$CONFIG_STATUS <<\_ACEOF
23780
23781 ac_cs_usage="\
23782 \`$as_me' instantiates files from templates according to the
23783 current configuration.
23784
23785 Usage: $0 [OPTIONS] [FILE]...
23786
23787   -h, --help       print this help, then exit
23788   -V, --version    print version number, then exit
23789   -q, --quiet      do not print progress messages
23790   -d, --debug      don't remove temporary files
23791       --recheck    update $as_me by reconfiguring in the same conditions
23792   --file=FILE[:TEMPLATE]
23793                    instantiate the configuration file FILE
23794   --header=FILE[:TEMPLATE]
23795                    instantiate the configuration header FILE
23796
23797 Configuration files:
23798 $config_files
23799
23800 Configuration headers:
23801 $config_headers
23802
23803 Configuration commands:
23804 $config_commands
23805
23806 Report bugs to <bug-autoconf@gnu.org>."
23807 _ACEOF
23808
23809 cat >>$CONFIG_STATUS <<_ACEOF
23810 ac_cs_version="\\
23811 GRAS config.status 0.0.040304
23812 configured by $0, generated by GNU Autoconf 2.59,
23813   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23814
23815 Copyright (C) 2003 Free Software Foundation, Inc.
23816 This config.status script is free software; the Free Software Foundation
23817 gives unlimited permission to copy, distribute and modify it."
23818 srcdir=$srcdir
23819 INSTALL="$INSTALL"
23820 _ACEOF
23821
23822 cat >>$CONFIG_STATUS <<\_ACEOF
23823 # If no file are specified by the user, then we need to provide default
23824 # value.  By we need to know if files were specified by the user.
23825 ac_need_defaults=:
23826 while test $# != 0
23827 do
23828   case $1 in
23829   --*=*)
23830     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23831     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23832     ac_shift=:
23833     ;;
23834   -*)
23835     ac_option=$1
23836     ac_optarg=$2
23837     ac_shift=shift
23838     ;;
23839   *) # This is not an option, so the user has probably given explicit
23840      # arguments.
23841      ac_option=$1
23842      ac_need_defaults=false;;
23843   esac
23844
23845   case $ac_option in
23846   # Handling of the options.
23847 _ACEOF
23848 cat >>$CONFIG_STATUS <<\_ACEOF
23849   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23850     ac_cs_recheck=: ;;
23851   --version | --vers* | -V )
23852     echo "$ac_cs_version"; exit 0 ;;
23853   --he | --h)
23854     # Conflict between --help and --header
23855     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23856 Try \`$0 --help' for more information." >&5
23857 echo "$as_me: error: ambiguous option: $1
23858 Try \`$0 --help' for more information." >&2;}
23859    { (exit 1); exit 1; }; };;
23860   --help | --hel | -h )
23861     echo "$ac_cs_usage"; exit 0 ;;
23862   --debug | --d* | -d )
23863     debug=: ;;
23864   --file | --fil | --fi | --f )
23865     $ac_shift
23866     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23867     ac_need_defaults=false;;
23868   --header | --heade | --head | --hea )
23869     $ac_shift
23870     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23871     ac_need_defaults=false;;
23872   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23873   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23874     ac_cs_silent=: ;;
23875
23876   # This is an error.
23877   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23878 Try \`$0 --help' for more information." >&5
23879 echo "$as_me: error: unrecognized option: $1
23880 Try \`$0 --help' for more information." >&2;}
23881    { (exit 1); exit 1; }; } ;;
23882
23883   *) ac_config_targets="$ac_config_targets $1" ;;
23884
23885   esac
23886   shift
23887 done
23888
23889 ac_configure_extra_args=
23890
23891 if $ac_cs_silent; then
23892   exec 6>/dev/null
23893   ac_configure_extra_args="$ac_configure_extra_args --silent"
23894 fi
23895
23896 _ACEOF
23897 cat >>$CONFIG_STATUS <<_ACEOF
23898 if \$ac_cs_recheck; then
23899   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23900   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23901 fi
23902
23903 _ACEOF
23904
23905 cat >>$CONFIG_STATUS <<_ACEOF
23906 #
23907 # INIT-COMMANDS section.
23908 #
23909
23910 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23911
23912 _ACEOF
23913
23914
23915
23916 cat >>$CONFIG_STATUS <<\_ACEOF
23917 for ac_config_target in $ac_config_targets
23918 do
23919   case "$ac_config_target" in
23920   # Handling of arguments.
23921   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23922   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23923   "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
23924   "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
23925   "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
23926   "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
23927   "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
23928   "src/base/Tests/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_tcp_usage" ;;
23929   "src/base/Tests/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_file_usage" ;;
23930   "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
23931   "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
23932   "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
23933   "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
23934   "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
23935   "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
23936   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23937   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23938   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
23939   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23940 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23941    { (exit 1); exit 1; }; };;
23942   esac
23943 done
23944
23945 # If the user did not use the arguments to specify the items to instantiate,
23946 # then the envvar interface is used.  Set only those that are not.
23947 # We use the long form for the default assignment because of an extremely
23948 # bizarre bug on SunOS 4.1.3.
23949 if $ac_need_defaults; then
23950   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23951   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23952   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23953 fi
23954
23955 # Have a temporary directory for convenience.  Make it in the build tree
23956 # simply because there is no reason to put it here, and in addition,
23957 # creating and moving files from /tmp can sometimes cause problems.
23958 # Create a temporary directory, and hook for its removal unless debugging.
23959 $debug ||
23960 {
23961   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23962   trap '{ (exit 1); exit 1; }' 1 2 13 15
23963 }
23964
23965 # Create a (secure) tmp directory for tmp files.
23966
23967 {
23968   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23969   test -n "$tmp" && test -d "$tmp"
23970 }  ||
23971 {
23972   tmp=./confstat$$-$RANDOM
23973   (umask 077 && mkdir $tmp)
23974 } ||
23975 {
23976    echo "$me: cannot create a temporary directory in ." >&2
23977    { (exit 1); exit 1; }
23978 }
23979
23980 _ACEOF
23981
23982 cat >>$CONFIG_STATUS <<_ACEOF
23983
23984 #
23985 # CONFIG_FILES section.
23986 #
23987
23988 # No need to generate the scripts if there are no CONFIG_FILES.
23989 # This happens for instance when ./config.status config.h
23990 if test -n "\$CONFIG_FILES"; then
23991   # Protect against being on the right side of a sed subst in config.status.
23992   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23993    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23994 s,@SHELL@,$SHELL,;t t
23995 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23996 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23997 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23998 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23999 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24000 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24001 s,@exec_prefix@,$exec_prefix,;t t
24002 s,@prefix@,$prefix,;t t
24003 s,@program_transform_name@,$program_transform_name,;t t
24004 s,@bindir@,$bindir,;t t
24005 s,@sbindir@,$sbindir,;t t
24006 s,@libexecdir@,$libexecdir,;t t
24007 s,@datadir@,$datadir,;t t
24008 s,@sysconfdir@,$sysconfdir,;t t
24009 s,@sharedstatedir@,$sharedstatedir,;t t
24010 s,@localstatedir@,$localstatedir,;t t
24011 s,@libdir@,$libdir,;t t
24012 s,@includedir@,$includedir,;t t
24013 s,@oldincludedir@,$oldincludedir,;t t
24014 s,@infodir@,$infodir,;t t
24015 s,@mandir@,$mandir,;t t
24016 s,@build_alias@,$build_alias,;t t
24017 s,@host_alias@,$host_alias,;t t
24018 s,@target_alias@,$target_alias,;t t
24019 s,@DEFS@,$DEFS,;t t
24020 s,@ECHO_C@,$ECHO_C,;t t
24021 s,@ECHO_N@,$ECHO_N,;t t
24022 s,@ECHO_T@,$ECHO_T,;t t
24023 s,@LIBS@,$LIBS,;t t
24024 s,@build@,$build,;t t
24025 s,@build_cpu@,$build_cpu,;t t
24026 s,@build_vendor@,$build_vendor,;t t
24027 s,@build_os@,$build_os,;t t
24028 s,@host@,$host,;t t
24029 s,@host_cpu@,$host_cpu,;t t
24030 s,@host_vendor@,$host_vendor,;t t
24031 s,@host_os@,$host_os,;t t
24032 s,@target@,$target,;t t
24033 s,@target_cpu@,$target_cpu,;t t
24034 s,@target_vendor@,$target_vendor,;t t
24035 s,@target_os@,$target_os,;t t
24036 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24037 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24038 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24039 s,@CYGPATH_W@,$CYGPATH_W,;t t
24040 s,@PACKAGE@,$PACKAGE,;t t
24041 s,@VERSION@,$VERSION,;t t
24042 s,@ACLOCAL@,$ACLOCAL,;t t
24043 s,@AUTOCONF@,$AUTOCONF,;t t
24044 s,@AUTOMAKE@,$AUTOMAKE,;t t
24045 s,@AUTOHEADER@,$AUTOHEADER,;t t
24046 s,@MAKEINFO@,$MAKEINFO,;t t
24047 s,@AMTAR@,$AMTAR,;t t
24048 s,@install_sh@,$install_sh,;t t
24049 s,@STRIP@,$STRIP,;t t
24050 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24051 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24052 s,@mkdir_p@,$mkdir_p,;t t
24053 s,@AWK@,$AWK,;t t
24054 s,@SET_MAKE@,$SET_MAKE,;t t
24055 s,@am__leading_dot@,$am__leading_dot,;t t
24056 s,@CC@,$CC,;t t
24057 s,@CFLAGS@,$CFLAGS,;t t
24058 s,@LDFLAGS@,$LDFLAGS,;t t
24059 s,@CPPFLAGS@,$CPPFLAGS,;t t
24060 s,@ac_ct_CC@,$ac_ct_CC,;t t
24061 s,@EXEEXT@,$EXEEXT,;t t
24062 s,@OBJEXT@,$OBJEXT,;t t
24063 s,@DEPDIR@,$DEPDIR,;t t
24064 s,@am__include@,$am__include,;t t
24065 s,@am__quote@,$am__quote,;t t
24066 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24067 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24068 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24069 s,@CCDEPMODE@,$CCDEPMODE,;t t
24070 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24071 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24072 s,@EGREP@,$EGREP,;t t
24073 s,@LN_S@,$LN_S,;t t
24074 s,@ECHO@,$ECHO,;t t
24075 s,@AR@,$AR,;t t
24076 s,@ac_ct_AR@,$ac_ct_AR,;t t
24077 s,@RANLIB@,$RANLIB,;t t
24078 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24079 s,@CPP@,$CPP,;t t
24080 s,@CXX@,$CXX,;t t
24081 s,@CXXFLAGS@,$CXXFLAGS,;t t
24082 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24083 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24084 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24085 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24086 s,@CXXCPP@,$CXXCPP,;t t
24087 s,@F77@,$F77,;t t
24088 s,@FFLAGS@,$FFLAGS,;t t
24089 s,@ac_ct_F77@,$ac_ct_F77,;t t
24090 s,@LIBTOOL@,$LIBTOOL,;t t
24091 s,@LIBOBJS@,$LIBOBJS,;t t
24092 s,@HTML_DIR@,$HTML_DIR,;t t
24093 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24094 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
24095 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
24096 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
24097 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
24098 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
24099 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
24100 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
24101 s,@HAVE_XML@,$HAVE_XML,;t t
24102 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
24103 s,@LIBS_XML@,$LIBS_XML,;t t
24104 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
24105 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
24106 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
24107 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
24108 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
24109 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
24110 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
24111 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
24112 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24113 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24114 s,@MAINT@,$MAINT,;t t
24115 s,@cflags_set@,$cflags_set,;t t
24116 s,@BASH@,$BASH,;t t
24117 s,@WARNING@,$WARNING,;t t
24118 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24119 CEOF
24120
24121 _ACEOF
24122
24123   cat >>$CONFIG_STATUS <<\_ACEOF
24124   # Split the substitutions into bite-sized pieces for seds with
24125   # small command number limits, like on Digital OSF/1 and HP-UX.
24126   ac_max_sed_lines=48
24127   ac_sed_frag=1 # Number of current file.
24128   ac_beg=1 # First line for current file.
24129   ac_end=$ac_max_sed_lines # Line after last line for current file.
24130   ac_more_lines=:
24131   ac_sed_cmds=
24132   while $ac_more_lines; do
24133     if test $ac_beg -gt 1; then
24134       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24135     else
24136       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24137     fi
24138     if test ! -s $tmp/subs.frag; then
24139       ac_more_lines=false
24140     else
24141       # The purpose of the label and of the branching condition is to
24142       # speed up the sed processing (if there are no `@' at all, there
24143       # is no need to browse any of the substitutions).
24144       # These are the two extra sed commands mentioned above.
24145       (echo ':t
24146   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24147       if test -z "$ac_sed_cmds"; then
24148         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24149       else
24150         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24151       fi
24152       ac_sed_frag=`expr $ac_sed_frag + 1`
24153       ac_beg=$ac_end
24154       ac_end=`expr $ac_end + $ac_max_sed_lines`
24155     fi
24156   done
24157   if test -z "$ac_sed_cmds"; then
24158     ac_sed_cmds=cat
24159   fi
24160 fi # test -n "$CONFIG_FILES"
24161
24162 _ACEOF
24163 cat >>$CONFIG_STATUS <<\_ACEOF
24164 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24165   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24166   case $ac_file in
24167   - | *:- | *:-:* ) # input from stdin
24168         cat >$tmp/stdin
24169         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24170         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24171   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24172         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24173   * )   ac_file_in=$ac_file.in ;;
24174   esac
24175
24176   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24177   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24178 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24179          X"$ac_file" : 'X\(//\)[^/]' \| \
24180          X"$ac_file" : 'X\(//\)$' \| \
24181          X"$ac_file" : 'X\(/\)' \| \
24182          .     : '\(.\)' 2>/dev/null ||
24183 echo X"$ac_file" |
24184     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24185           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24186           /^X\(\/\/\)$/{ s//\1/; q; }
24187           /^X\(\/\).*/{ s//\1/; q; }
24188           s/.*/./; q'`
24189   { if $as_mkdir_p; then
24190     mkdir -p "$ac_dir"
24191   else
24192     as_dir="$ac_dir"
24193     as_dirs=
24194     while test ! -d "$as_dir"; do
24195       as_dirs="$as_dir $as_dirs"
24196       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24198          X"$as_dir" : 'X\(//\)[^/]' \| \
24199          X"$as_dir" : 'X\(//\)$' \| \
24200          X"$as_dir" : 'X\(/\)' \| \
24201          .     : '\(.\)' 2>/dev/null ||
24202 echo X"$as_dir" |
24203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24204           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24205           /^X\(\/\/\)$/{ s//\1/; q; }
24206           /^X\(\/\).*/{ s//\1/; q; }
24207           s/.*/./; q'`
24208     done
24209     test ! -n "$as_dirs" || mkdir $as_dirs
24210   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24211 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24212    { (exit 1); exit 1; }; }; }
24213
24214   ac_builddir=.
24215
24216 if test "$ac_dir" != .; then
24217   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24218   # A "../" for each directory in $ac_dir_suffix.
24219   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24220 else
24221   ac_dir_suffix= ac_top_builddir=
24222 fi
24223
24224 case $srcdir in
24225   .)  # No --srcdir option.  We are building in place.
24226     ac_srcdir=.
24227     if test -z "$ac_top_builddir"; then
24228        ac_top_srcdir=.
24229     else
24230        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24231     fi ;;
24232   [\\/]* | ?:[\\/]* )  # Absolute path.
24233     ac_srcdir=$srcdir$ac_dir_suffix;
24234     ac_top_srcdir=$srcdir ;;
24235   *) # Relative path.
24236     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24237     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24238 esac
24239
24240 # Do not use `cd foo && pwd` to compute absolute paths, because
24241 # the directories may not exist.
24242 case `pwd` in
24243 .) ac_abs_builddir="$ac_dir";;
24244 *)
24245   case "$ac_dir" in
24246   .) ac_abs_builddir=`pwd`;;
24247   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24248   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24249   esac;;
24250 esac
24251 case $ac_abs_builddir in
24252 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24253 *)
24254   case ${ac_top_builddir}. in
24255   .) ac_abs_top_builddir=$ac_abs_builddir;;
24256   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24257   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24258   esac;;
24259 esac
24260 case $ac_abs_builddir in
24261 .) ac_abs_srcdir=$ac_srcdir;;
24262 *)
24263   case $ac_srcdir in
24264   .) ac_abs_srcdir=$ac_abs_builddir;;
24265   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24266   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24267   esac;;
24268 esac
24269 case $ac_abs_builddir in
24270 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24271 *)
24272   case $ac_top_srcdir in
24273   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24274   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24275   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24276   esac;;
24277 esac
24278
24279
24280   case $INSTALL in
24281   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24282   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24283   esac
24284
24285   # Let's still pretend it is `configure' which instantiates (i.e., don't
24286   # use $as_me), people would be surprised to read:
24287   #    /* config.h.  Generated by config.status.  */
24288   if test x"$ac_file" = x-; then
24289     configure_input=
24290   else
24291     configure_input="$ac_file.  "
24292   fi
24293   configure_input=$configure_input"Generated from `echo $ac_file_in |
24294                                      sed 's,.*/,,'` by configure."
24295
24296   # First look for the input files in the build tree, otherwise in the
24297   # src tree.
24298   ac_file_inputs=`IFS=:
24299     for f in $ac_file_in; do
24300       case $f in
24301       -) echo $tmp/stdin ;;
24302       [\\/$]*)
24303          # Absolute (can't be DOS-style, as IFS=:)
24304          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24305 echo "$as_me: error: cannot find input file: $f" >&2;}
24306    { (exit 1); exit 1; }; }
24307          echo "$f";;
24308       *) # Relative
24309          if test -f "$f"; then
24310            # Build tree
24311            echo "$f"
24312          elif test -f "$srcdir/$f"; then
24313            # Source tree
24314            echo "$srcdir/$f"
24315          else
24316            # /dev/null tree
24317            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24318 echo "$as_me: error: cannot find input file: $f" >&2;}
24319    { (exit 1); exit 1; }; }
24320          fi;;
24321       esac
24322     done` || { (exit 1); exit 1; }
24323
24324   if test x"$ac_file" != x-; then
24325     { echo "$as_me:$LINENO: creating $ac_file" >&5
24326 echo "$as_me: creating $ac_file" >&6;}
24327     rm -f "$ac_file"
24328   fi
24329 _ACEOF
24330 cat >>$CONFIG_STATUS <<_ACEOF
24331   sed "$ac_vpsub
24332 $extrasub
24333 _ACEOF
24334 cat >>$CONFIG_STATUS <<\_ACEOF
24335 :t
24336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24337 s,@configure_input@,$configure_input,;t t
24338 s,@srcdir@,$ac_srcdir,;t t
24339 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24340 s,@top_srcdir@,$ac_top_srcdir,;t t
24341 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24342 s,@builddir@,$ac_builddir,;t t
24343 s,@abs_builddir@,$ac_abs_builddir,;t t
24344 s,@top_builddir@,$ac_top_builddir,;t t
24345 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24346 s,@INSTALL@,$ac_INSTALL,;t t
24347 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24348   rm -f $tmp/stdin
24349   if test x"$ac_file" != x-; then
24350     mv $tmp/out $ac_file
24351   else
24352     cat $tmp/out
24353     rm -f $tmp/out
24354   fi
24355
24356   # Run the commands associated with the file.
24357   case $ac_file in
24358     Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24359      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24360      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24361      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24362     src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24363      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24364      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24365      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24366     src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24367      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24368      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24369      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24370     src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24371      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24372      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24373      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24374     src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24375      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24376      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24377      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24378     src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24379      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24380      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24381      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24382     src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
24383      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24384      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24385      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24386     src/base/Tests/trp_tcp_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24387      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24388      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24389      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24390     src/base/Tests/trp_file_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24391      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24392      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24393      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24394     src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24395      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24396      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24397      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24398     src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24399      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24400      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24401      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24402     src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24403      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24404      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24405      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24406     src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24407      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24408      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24409      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24410     src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24411      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24412      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24413      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24414     src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24415      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24416      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24417      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24418     doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24419      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24420      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24421      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests ;;
24422   esac
24423 done
24424 _ACEOF
24425 cat >>$CONFIG_STATUS <<\_ACEOF
24426
24427 #
24428 # CONFIG_HEADER section.
24429 #
24430
24431 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24432 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24433 #
24434 # ac_d sets the value in "#define NAME VALUE" lines.
24435 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24436 ac_dB='[         ].*$,\1#\2'
24437 ac_dC=' '
24438 ac_dD=',;t'
24439 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24440 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24441 ac_uB='$,\1#\2define\3'
24442 ac_uC=' '
24443 ac_uD=',;t'
24444
24445 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24446   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24447   case $ac_file in
24448   - | *:- | *:-:* ) # input from stdin
24449         cat >$tmp/stdin
24450         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24451         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24452   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24453         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24454   * )   ac_file_in=$ac_file.in ;;
24455   esac
24456
24457   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24458 echo "$as_me: creating $ac_file" >&6;}
24459
24460   # First look for the input files in the build tree, otherwise in the
24461   # src tree.
24462   ac_file_inputs=`IFS=:
24463     for f in $ac_file_in; do
24464       case $f in
24465       -) echo $tmp/stdin ;;
24466       [\\/$]*)
24467          # Absolute (can't be DOS-style, as IFS=:)
24468          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24469 echo "$as_me: error: cannot find input file: $f" >&2;}
24470    { (exit 1); exit 1; }; }
24471          # Do quote $f, to prevent DOS paths from being IFS'd.
24472          echo "$f";;
24473       *) # Relative
24474          if test -f "$f"; then
24475            # Build tree
24476            echo "$f"
24477          elif test -f "$srcdir/$f"; then
24478            # Source tree
24479            echo "$srcdir/$f"
24480          else
24481            # /dev/null tree
24482            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24483 echo "$as_me: error: cannot find input file: $f" >&2;}
24484    { (exit 1); exit 1; }; }
24485          fi;;
24486       esac
24487     done` || { (exit 1); exit 1; }
24488   # Remove the trailing spaces.
24489   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24490
24491 _ACEOF
24492
24493 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24494 # `conftest.undefs', that substitutes the proper values into
24495 # config.h.in to produce config.h.  The first handles `#define'
24496 # templates, and the second `#undef' templates.
24497 # And first: Protect against being on the right side of a sed subst in
24498 # config.status.  Protect against being in an unquoted here document
24499 # in config.status.
24500 rm -f conftest.defines conftest.undefs
24501 # Using a here document instead of a string reduces the quoting nightmare.
24502 # Putting comments in sed scripts is not portable.
24503 #
24504 # `end' is used to avoid that the second main sed command (meant for
24505 # 0-ary CPP macros) applies to n-ary macro definitions.
24506 # See the Autoconf documentation for `clear'.
24507 cat >confdef2sed.sed <<\_ACEOF
24508 s/[\\&,]/\\&/g
24509 s,[\\$`],\\&,g
24510 t clear
24511 : clear
24512 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24513 t end
24514 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24515 : end
24516 _ACEOF
24517 # If some macros were called several times there might be several times
24518 # the same #defines, which is useless.  Nevertheless, we may not want to
24519 # sort them, since we want the *last* AC-DEFINE to be honored.
24520 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24521 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24522 rm -f confdef2sed.sed
24523
24524 # This sed command replaces #undef with comments.  This is necessary, for
24525 # example, in the case of _POSIX_SOURCE, which is predefined and required
24526 # on some systems where configure will not decide to define it.
24527 cat >>conftest.undefs <<\_ACEOF
24528 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24529 _ACEOF
24530
24531 # Break up conftest.defines because some shells have a limit on the size
24532 # of here documents, and old seds have small limits too (100 cmds).
24533 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24534 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24535 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24536 echo '  :' >>$CONFIG_STATUS
24537 rm -f conftest.tail
24538 while grep . conftest.defines >/dev/null
24539 do
24540   # Write a limited-size here document to $tmp/defines.sed.
24541   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24542   # Speed up: don't consider the non `#define' lines.
24543   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24544   # Work around the forget-to-reset-the-flag bug.
24545   echo 't clr' >>$CONFIG_STATUS
24546   echo ': clr' >>$CONFIG_STATUS
24547   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24548   echo 'CEOF
24549   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24550   rm -f $tmp/in
24551   mv $tmp/out $tmp/in
24552 ' >>$CONFIG_STATUS
24553   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24554   rm -f conftest.defines
24555   mv conftest.tail conftest.defines
24556 done
24557 rm -f conftest.defines
24558 echo '  fi # grep' >>$CONFIG_STATUS
24559 echo >>$CONFIG_STATUS
24560
24561 # Break up conftest.undefs because some shells have a limit on the size
24562 # of here documents, and old seds have small limits too (100 cmds).
24563 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24564 rm -f conftest.tail
24565 while grep . conftest.undefs >/dev/null
24566 do
24567   # Write a limited-size here document to $tmp/undefs.sed.
24568   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24569   # Speed up: don't consider the non `#undef'
24570   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24571   # Work around the forget-to-reset-the-flag bug.
24572   echo 't clr' >>$CONFIG_STATUS
24573   echo ': clr' >>$CONFIG_STATUS
24574   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24575   echo 'CEOF
24576   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24577   rm -f $tmp/in
24578   mv $tmp/out $tmp/in
24579 ' >>$CONFIG_STATUS
24580   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24581   rm -f conftest.undefs
24582   mv conftest.tail conftest.undefs
24583 done
24584 rm -f conftest.undefs
24585
24586 cat >>$CONFIG_STATUS <<\_ACEOF
24587   # Let's still pretend it is `configure' which instantiates (i.e., don't
24588   # use $as_me), people would be surprised to read:
24589   #    /* config.h.  Generated by config.status.  */
24590   if test x"$ac_file" = x-; then
24591     echo "/* Generated by configure.  */" >$tmp/config.h
24592   else
24593     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24594   fi
24595   cat $tmp/in >>$tmp/config.h
24596   rm -f $tmp/in
24597   if test x"$ac_file" != x-; then
24598     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24599       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24600 echo "$as_me: $ac_file is unchanged" >&6;}
24601     else
24602       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24603 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24604          X"$ac_file" : 'X\(//\)[^/]' \| \
24605          X"$ac_file" : 'X\(//\)$' \| \
24606          X"$ac_file" : 'X\(/\)' \| \
24607          .     : '\(.\)' 2>/dev/null ||
24608 echo X"$ac_file" |
24609     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24610           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24611           /^X\(\/\/\)$/{ s//\1/; q; }
24612           /^X\(\/\).*/{ s//\1/; q; }
24613           s/.*/./; q'`
24614       { if $as_mkdir_p; then
24615     mkdir -p "$ac_dir"
24616   else
24617     as_dir="$ac_dir"
24618     as_dirs=
24619     while test ! -d "$as_dir"; do
24620       as_dirs="$as_dir $as_dirs"
24621       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24622 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24623          X"$as_dir" : 'X\(//\)[^/]' \| \
24624          X"$as_dir" : 'X\(//\)$' \| \
24625          X"$as_dir" : 'X\(/\)' \| \
24626          .     : '\(.\)' 2>/dev/null ||
24627 echo X"$as_dir" |
24628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24629           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24630           /^X\(\/\/\)$/{ s//\1/; q; }
24631           /^X\(\/\).*/{ s//\1/; q; }
24632           s/.*/./; q'`
24633     done
24634     test ! -n "$as_dirs" || mkdir $as_dirs
24635   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24636 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24637    { (exit 1); exit 1; }; }; }
24638
24639       rm -f $ac_file
24640       mv $tmp/config.h $ac_file
24641     fi
24642   else
24643     cat $tmp/config.h
24644     rm -f $tmp/config.h
24645   fi
24646 # Compute $ac_file's index in $config_headers.
24647 _am_stamp_count=1
24648 for _am_header in $config_headers :; do
24649   case $_am_header in
24650     $ac_file | $ac_file:* )
24651       break ;;
24652     * )
24653       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24654   esac
24655 done
24656 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24657 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24658          X$ac_file : 'X\(//\)[^/]' \| \
24659          X$ac_file : 'X\(//\)$' \| \
24660          X$ac_file : 'X\(/\)' \| \
24661          .     : '\(.\)' 2>/dev/null ||
24662 echo X$ac_file |
24663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24664           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24665           /^X\(\/\/\)$/{ s//\1/; q; }
24666           /^X\(\/\).*/{ s//\1/; q; }
24667           s/.*/./; q'`/stamp-h$_am_stamp_count
24668 done
24669 _ACEOF
24670 cat >>$CONFIG_STATUS <<\_ACEOF
24671
24672 #
24673 # CONFIG_COMMANDS section.
24674 #
24675 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24676   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24677   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24678   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24679 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24680          X"$ac_dest" : 'X\(//\)[^/]' \| \
24681          X"$ac_dest" : 'X\(//\)$' \| \
24682          X"$ac_dest" : 'X\(/\)' \| \
24683          .     : '\(.\)' 2>/dev/null ||
24684 echo X"$ac_dest" |
24685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24686           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24687           /^X\(\/\/\)$/{ s//\1/; q; }
24688           /^X\(\/\).*/{ s//\1/; q; }
24689           s/.*/./; q'`
24690   { if $as_mkdir_p; then
24691     mkdir -p "$ac_dir"
24692   else
24693     as_dir="$ac_dir"
24694     as_dirs=
24695     while test ! -d "$as_dir"; do
24696       as_dirs="$as_dir $as_dirs"
24697       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24699          X"$as_dir" : 'X\(//\)[^/]' \| \
24700          X"$as_dir" : 'X\(//\)$' \| \
24701          X"$as_dir" : 'X\(/\)' \| \
24702          .     : '\(.\)' 2>/dev/null ||
24703 echo X"$as_dir" |
24704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24705           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24706           /^X\(\/\/\)$/{ s//\1/; q; }
24707           /^X\(\/\).*/{ s//\1/; q; }
24708           s/.*/./; q'`
24709     done
24710     test ! -n "$as_dirs" || mkdir $as_dirs
24711   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24713    { (exit 1); exit 1; }; }; }
24714
24715   ac_builddir=.
24716
24717 if test "$ac_dir" != .; then
24718   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24719   # A "../" for each directory in $ac_dir_suffix.
24720   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24721 else
24722   ac_dir_suffix= ac_top_builddir=
24723 fi
24724
24725 case $srcdir in
24726   .)  # No --srcdir option.  We are building in place.
24727     ac_srcdir=.
24728     if test -z "$ac_top_builddir"; then
24729        ac_top_srcdir=.
24730     else
24731        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24732     fi ;;
24733   [\\/]* | ?:[\\/]* )  # Absolute path.
24734     ac_srcdir=$srcdir$ac_dir_suffix;
24735     ac_top_srcdir=$srcdir ;;
24736   *) # Relative path.
24737     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24738     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24739 esac
24740
24741 # Do not use `cd foo && pwd` to compute absolute paths, because
24742 # the directories may not exist.
24743 case `pwd` in
24744 .) ac_abs_builddir="$ac_dir";;
24745 *)
24746   case "$ac_dir" in
24747   .) ac_abs_builddir=`pwd`;;
24748   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24749   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24750   esac;;
24751 esac
24752 case $ac_abs_builddir in
24753 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24754 *)
24755   case ${ac_top_builddir}. in
24756   .) ac_abs_top_builddir=$ac_abs_builddir;;
24757   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24758   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24759   esac;;
24760 esac
24761 case $ac_abs_builddir in
24762 .) ac_abs_srcdir=$ac_srcdir;;
24763 *)
24764   case $ac_srcdir in
24765   .) ac_abs_srcdir=$ac_abs_builddir;;
24766   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24767   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24768   esac;;
24769 esac
24770 case $ac_abs_builddir in
24771 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24772 *)
24773   case $ac_top_srcdir in
24774   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24775   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24776   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24777   esac;;
24778 esac
24779
24780
24781   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24782 echo "$as_me: executing $ac_dest commands" >&6;}
24783   case $ac_dest in
24784     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24785   # Strip MF so we end up with the name of the file.
24786   mf=`echo "$mf" | sed -e 's/:.*$//'`
24787   # Check whether this is an Automake generated Makefile or not.
24788   # We used to match only the files named `Makefile.in', but
24789   # some people rename them; so instead we look at the file content.
24790   # Grep'ing the first line is not enough: some people post-process
24791   # each Makefile.in and add a new line on top of each file to say so.
24792   # So let's grep whole file.
24793   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24794     dirpart=`(dirname "$mf") 2>/dev/null ||
24795 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24796          X"$mf" : 'X\(//\)[^/]' \| \
24797          X"$mf" : 'X\(//\)$' \| \
24798          X"$mf" : 'X\(/\)' \| \
24799          .     : '\(.\)' 2>/dev/null ||
24800 echo X"$mf" |
24801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24802           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24803           /^X\(\/\/\)$/{ s//\1/; q; }
24804           /^X\(\/\).*/{ s//\1/; q; }
24805           s/.*/./; q'`
24806   else
24807     continue
24808   fi
24809   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24810   # Extract the definition of DEP_FILES from the Makefile without
24811   # running `make'.
24812   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24813   test -z "$DEPDIR" && continue
24814   # When using ansi2knr, U may be empty or an underscore; expand it
24815   U=`sed -n 's/^U = //p' < "$mf"`
24816   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24817   # We invoke sed twice because it is the simplest approach to
24818   # changing $(DEPDIR) to its actual value in the expansion.
24819   for file in `sed -n '
24820     /^DEP_FILES = .*\\\\$/ {
24821       s/^DEP_FILES = //
24822       :loop
24823         s/\\\\$//
24824         p
24825         n
24826         /\\\\$/ b loop
24827       p
24828     }
24829     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24830        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24831     # Make sure the directory exists.
24832     test -f "$dirpart/$file" && continue
24833     fdir=`(dirname "$file") 2>/dev/null ||
24834 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24835          X"$file" : 'X\(//\)[^/]' \| \
24836          X"$file" : 'X\(//\)$' \| \
24837          X"$file" : 'X\(/\)' \| \
24838          .     : '\(.\)' 2>/dev/null ||
24839 echo X"$file" |
24840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24841           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24842           /^X\(\/\/\)$/{ s//\1/; q; }
24843           /^X\(\/\).*/{ s//\1/; q; }
24844           s/.*/./; q'`
24845     { if $as_mkdir_p; then
24846     mkdir -p $dirpart/$fdir
24847   else
24848     as_dir=$dirpart/$fdir
24849     as_dirs=
24850     while test ! -d "$as_dir"; do
24851       as_dirs="$as_dir $as_dirs"
24852       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24854          X"$as_dir" : 'X\(//\)[^/]' \| \
24855          X"$as_dir" : 'X\(//\)$' \| \
24856          X"$as_dir" : 'X\(/\)' \| \
24857          .     : '\(.\)' 2>/dev/null ||
24858 echo X"$as_dir" |
24859     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24860           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24861           /^X\(\/\/\)$/{ s//\1/; q; }
24862           /^X\(\/\).*/{ s//\1/; q; }
24863           s/.*/./; q'`
24864     done
24865     test ! -n "$as_dirs" || mkdir $as_dirs
24866   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24867 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24868    { (exit 1); exit 1; }; }; }
24869
24870     # echo "creating $dirpart/$file"
24871     echo '# dummy' > "$dirpart/$file"
24872   done
24873 done
24874  ;;
24875   esac
24876 done
24877 _ACEOF
24878
24879 cat >>$CONFIG_STATUS <<\_ACEOF
24880
24881 { (exit 0); exit 0; }
24882 _ACEOF
24883 chmod +x $CONFIG_STATUS
24884 ac_clean_files=$ac_clean_files_save
24885
24886
24887 # configure is writing to config.log, and then calls config.status.
24888 # config.status does its own redirection, appending to config.log.
24889 # Unfortunately, on DOS this fails, as config.log is still kept open
24890 # by configure, so config.status won't be able to write to it; its
24891 # output is simply discarded.  So we exec the FD to /dev/null,
24892 # effectively closing config.log, so it can be properly (re)opened and
24893 # appended to by config.status.  When coming back to configure, we
24894 # need to make the FD available again.
24895 if test "$no_create" != yes; then
24896   ac_cs_success=:
24897   ac_config_status_args=
24898   test "$silent" = yes &&
24899     ac_config_status_args="$ac_config_status_args --quiet"
24900   exec 5>/dev/null
24901   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24902   exec 5>>config.log
24903   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24904   # would make configure fail if this is the last instruction.
24905   $ac_cs_success || { (exit 1); exit 1; }
24906 fi
24907
24908
24909 echo "
24910
24911 Configuration of package \`${PACKAGE}':
24912
24913         Compiler:       ${CC}
24914
24915         CFlags:         ${CFLAGS}
24916         LDFlags:        ${LDFLAGS}
24917 "
24918
24919 exit 0;