Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
J'en ai marre de faire des messages detailles. 'Current state' ;)
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.4 .
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 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 builds
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.7"
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
1787 # expand $ac_aux_dir to an absolute path
1788 am_aux_dir=`cd $ac_aux_dir && pwd`
1789
1790 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1791 # Use eval to expand $SHELL
1792 if eval "$MISSING --run true"; then
1793   am_missing_run="$MISSING --run "
1794 else
1795   am_missing_run=
1796   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1797 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1798 fi
1799
1800 for ac_prog in gawk mawk nawk awk
1801 do
1802   # Extract the first word of "$ac_prog", so it can be a program name with args.
1803 set dummy $ac_prog; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_AWK+set}" = set; then
1807   echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809   if test -n "$AWK"; then
1810   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815   IFS=$as_save_IFS
1816   test -z "$as_dir" && as_dir=.
1817   for ac_exec_ext in '' $ac_executable_extensions; do
1818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819     ac_cv_prog_AWK="$ac_prog"
1820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821     break 2
1822   fi
1823 done
1824 done
1825
1826 fi
1827 fi
1828 AWK=$ac_cv_prog_AWK
1829 if test -n "$AWK"; then
1830   echo "$as_me:$LINENO: result: $AWK" >&5
1831 echo "${ECHO_T}$AWK" >&6
1832 else
1833   echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837   test -n "$AWK" && break
1838 done
1839
1840 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1841 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1842 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1843 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846   cat >conftest.make <<\_ACEOF
1847 all:
1848         @echo 'ac_maketemp="$(MAKE)"'
1849 _ACEOF
1850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1851 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1852 if test -n "$ac_maketemp"; then
1853   eval ac_cv_prog_make_${ac_make}_set=yes
1854 else
1855   eval ac_cv_prog_make_${ac_make}_set=no
1856 fi
1857 rm -f conftest.make
1858 fi
1859 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1860   echo "$as_me:$LINENO: result: yes" >&5
1861 echo "${ECHO_T}yes" >&6
1862   SET_MAKE=
1863 else
1864   echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866   SET_MAKE="MAKE=${MAKE-make}"
1867 fi
1868
1869 rm -rf .tst 2>/dev/null
1870 mkdir .tst 2>/dev/null
1871 if test -d .tst; then
1872   am__leading_dot=.
1873 else
1874   am__leading_dot=_
1875 fi
1876 rmdir .tst 2>/dev/null
1877
1878  # test to see if srcdir already configured
1879 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1880    test -f $srcdir/config.status; then
1881   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1882 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1883    { (exit 1); exit 1; }; }
1884 fi
1885
1886 # test whether we have cygpath
1887 if test -z "$CYGPATH_W"; then
1888   if (cygpath --version) >/dev/null 2>/dev/null; then
1889     CYGPATH_W='cygpath -w'
1890   else
1891     CYGPATH_W=echo
1892   fi
1893 fi
1894
1895
1896 # Define the identity of the package.
1897  PACKAGE='gras'
1898  VERSION='0.0.040304'
1899
1900
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE "$PACKAGE"
1903 _ACEOF
1904
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define VERSION "$VERSION"
1908 _ACEOF
1909
1910 # Some tools Automake needs.
1911
1912 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1913
1914
1915 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1916
1917
1918 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1919
1920
1921 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1922
1923
1924 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1925
1926
1927 AMTAR=${AMTAR-"${am_missing_run}tar"}
1928
1929 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1930
1931 # Installed binaries are usually stripped using `strip' when the user
1932 # run `make install-strip'.  However `strip' might not be the right
1933 # tool to use in cross-compilation environments, therefore Automake
1934 # will honor the `STRIP' environment variable to overrule this program.
1935 if test "$cross_compiling" != no; then
1936   if test -n "$ac_tool_prefix"; then
1937   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1938 set dummy ${ac_tool_prefix}strip; ac_word=$2
1939 echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 if test "${ac_cv_prog_STRIP+set}" = set; then
1942   echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944   if test -n "$STRIP"; then
1945   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1946 else
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950   IFS=$as_save_IFS
1951   test -z "$as_dir" && as_dir=.
1952   for ac_exec_ext in '' $ac_executable_extensions; do
1953   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1954     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956     break 2
1957   fi
1958 done
1959 done
1960
1961 fi
1962 fi
1963 STRIP=$ac_cv_prog_STRIP
1964 if test -n "$STRIP"; then
1965   echo "$as_me:$LINENO: result: $STRIP" >&5
1966 echo "${ECHO_T}$STRIP" >&6
1967 else
1968   echo "$as_me:$LINENO: result: no" >&5
1969 echo "${ECHO_T}no" >&6
1970 fi
1971
1972 fi
1973 if test -z "$ac_cv_prog_STRIP"; then
1974   ac_ct_STRIP=$STRIP
1975   # Extract the first word of "strip", so it can be a program name with args.
1976 set dummy strip; ac_word=$2
1977 echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   if test -n "$ac_ct_STRIP"; then
1983   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1984 else
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990   for ac_exec_ext in '' $ac_executable_extensions; do
1991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992     ac_cv_prog_ac_ct_STRIP="strip"
1993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994     break 2
1995   fi
1996 done
1997 done
1998
1999   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2000 fi
2001 fi
2002 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2003 if test -n "$ac_ct_STRIP"; then
2004   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2005 echo "${ECHO_T}$ac_ct_STRIP" >&6
2006 else
2007   echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6
2009 fi
2010
2011   STRIP=$ac_ct_STRIP
2012 else
2013   STRIP="$ac_cv_prog_STRIP"
2014 fi
2015
2016 fi
2017 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2018
2019 # We need awk for the "check" target.  The system "awk" is bad on
2020 # some platforms.
2021
2022
2023
2024
2025 # Check whether --enable-shared or --disable-shared was given.
2026 if test "${enable_shared+set}" = set; then
2027   enableval="$enable_shared"
2028   p=${PACKAGE-default}
2029     case $enableval in
2030     yes) enable_shared=yes ;;
2031     no) enable_shared=no ;;
2032     *)
2033       enable_shared=no
2034       # Look at the argument we got.  We use all the common list separators.
2035       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2036       for pkg in $enableval; do
2037         IFS="$lt_save_ifs"
2038         if test "X$pkg" = "X$p"; then
2039           enable_shared=yes
2040         fi
2041       done
2042       IFS="$lt_save_ifs"
2043       ;;
2044     esac
2045 else
2046   enable_shared=yes
2047 fi;
2048
2049 # Check whether --enable-static or --disable-static was given.
2050 if test "${enable_static+set}" = set; then
2051   enableval="$enable_static"
2052   p=${PACKAGE-default}
2053     case $enableval in
2054     yes) enable_static=yes ;;
2055     no) enable_static=no ;;
2056     *)
2057      enable_static=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_static=yes
2064         fi
2065       done
2066       IFS="$lt_save_ifs"
2067       ;;
2068     esac
2069 else
2070   enable_static=yes
2071 fi;
2072
2073 # Check whether --enable-fast-install or --disable-fast-install was given.
2074 if test "${enable_fast_install+set}" = set; then
2075   enableval="$enable_fast_install"
2076   p=${PACKAGE-default}
2077     case $enableval in
2078     yes) enable_fast_install=yes ;;
2079     no) enable_fast_install=no ;;
2080     *)
2081       enable_fast_install=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_fast_install=yes
2088         fi
2089       done
2090       IFS="$lt_save_ifs"
2091       ;;
2092     esac
2093 else
2094   enable_fast_install=yes
2095 fi;
2096
2097 DEPDIR="${am__leading_dot}deps"
2098
2099           ac_config_commands="$ac_config_commands depfiles"
2100
2101
2102 am_make=${MAKE-make}
2103 cat > confinc << 'END'
2104 am__doit:
2105         @echo done
2106 .PHONY: am__doit
2107 END
2108 # If we don't find an include directive, just comment out the code.
2109 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2110 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2111 am__include="#"
2112 am__quote=
2113 _am_result=none
2114 # First try GNU make style include.
2115 echo "include confinc" > confmf
2116 # We grep out `Entering directory' and `Leaving directory'
2117 # messages which can occur if `w' ends up in MAKEFLAGS.
2118 # In particular we don't look at `^make:' because GNU make might
2119 # be invoked under some other name (usually "gmake"), in which
2120 # case it prints its new name instead of `make'.
2121 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2122    am__include=include
2123    am__quote=
2124    _am_result=GNU
2125 fi
2126 # Now try BSD make style include.
2127 if test "$am__include" = "#"; then
2128    echo '.include "confinc"' > confmf
2129    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2130       am__include=.include
2131       am__quote="\""
2132       _am_result=BSD
2133    fi
2134 fi
2135
2136
2137 echo "$as_me:$LINENO: result: $_am_result" >&5
2138 echo "${ECHO_T}$_am_result" >&6
2139 rm -f confinc confmf
2140
2141 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2142 if test "${enable_dependency_tracking+set}" = set; then
2143   enableval="$enable_dependency_tracking"
2144
2145 fi;
2146 if test "x$enable_dependency_tracking" != xno; then
2147   am_depcomp="$ac_aux_dir/depcomp"
2148   AMDEPBACKSLASH='\'
2149 fi
2150
2151
2152 if test "x$enable_dependency_tracking" != xno; then
2153   AMDEP_TRUE=
2154   AMDEP_FALSE='#'
2155 else
2156   AMDEP_TRUE='#'
2157   AMDEP_FALSE=
2158 fi
2159
2160
2161
2162 ac_ext=c
2163 ac_cpp='$CPP $CPPFLAGS'
2164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167 if test -n "$ac_tool_prefix"; then
2168   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2169 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_CC+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test -n "$CC"; then
2176   ac_cv_prog_CC="$CC" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183   for ac_exec_ext in '' $ac_executable_extensions; do
2184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187     break 2
2188   fi
2189 done
2190 done
2191
2192 fi
2193 fi
2194 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then
2196   echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6
2198 else
2199   echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2201 fi
2202
2203 fi
2204 if test -z "$ac_cv_prog_CC"; then
2205   ac_ct_CC=$CC
2206   # Extract the first word of "gcc", so it can be a program name with args.
2207 set dummy gcc; ac_word=$2
2208 echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   if test -n "$ac_ct_CC"; then
2214   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219   IFS=$as_save_IFS
2220   test -z "$as_dir" && as_dir=.
2221   for ac_exec_ext in '' $ac_executable_extensions; do
2222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2223     ac_cv_prog_ac_ct_CC="gcc"
2224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225     break 2
2226   fi
2227 done
2228 done
2229
2230 fi
2231 fi
2232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2233 if test -n "$ac_ct_CC"; then
2234   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2235 echo "${ECHO_T}$ac_ct_CC" >&6
2236 else
2237   echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2239 fi
2240
2241   CC=$ac_ct_CC
2242 else
2243   CC="$ac_cv_prog_CC"
2244 fi
2245
2246 if test -z "$CC"; then
2247   if test -n "$ac_tool_prefix"; then
2248   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2249 set dummy ${ac_tool_prefix}cc; ac_word=$2
2250 echo "$as_me:$LINENO: checking for $ac_word" >&5
2251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2252 if test "${ac_cv_prog_CC+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   if test -n "$CC"; then
2256   ac_cv_prog_CC="$CC" # Let the user override the test.
2257 else
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2260 do
2261   IFS=$as_save_IFS
2262   test -z "$as_dir" && as_dir=.
2263   for ac_exec_ext in '' $ac_executable_extensions; do
2264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265     ac_cv_prog_CC="${ac_tool_prefix}cc"
2266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267     break 2
2268   fi
2269 done
2270 done
2271
2272 fi
2273 fi
2274 CC=$ac_cv_prog_CC
2275 if test -n "$CC"; then
2276   echo "$as_me:$LINENO: result: $CC" >&5
2277 echo "${ECHO_T}$CC" >&6
2278 else
2279   echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6
2281 fi
2282
2283 fi
2284 if test -z "$ac_cv_prog_CC"; then
2285   ac_ct_CC=$CC
2286   # Extract the first word of "cc", so it can be a program name with args.
2287 set dummy cc; ac_word=$2
2288 echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2291   echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293   if test -n "$ac_ct_CC"; then
2294   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299   IFS=$as_save_IFS
2300   test -z "$as_dir" && as_dir=.
2301   for ac_exec_ext in '' $ac_executable_extensions; do
2302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303     ac_cv_prog_ac_ct_CC="cc"
2304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305     break 2
2306   fi
2307 done
2308 done
2309
2310 fi
2311 fi
2312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313 if test -n "$ac_ct_CC"; then
2314   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315 echo "${ECHO_T}$ac_ct_CC" >&6
2316 else
2317   echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2319 fi
2320
2321   CC=$ac_ct_CC
2322 else
2323   CC="$ac_cv_prog_CC"
2324 fi
2325
2326 fi
2327 if test -z "$CC"; then
2328   # Extract the first word of "cc", so it can be a program name with args.
2329 set dummy cc; ac_word=$2
2330 echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2332 if test "${ac_cv_prog_CC+set}" = set; then
2333   echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335   if test -n "$CC"; then
2336   ac_cv_prog_CC="$CC" # Let the user override the test.
2337 else
2338   ac_prog_rejected=no
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2347        ac_prog_rejected=yes
2348        continue
2349      fi
2350     ac_cv_prog_CC="cc"
2351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352     break 2
2353   fi
2354 done
2355 done
2356
2357 if test $ac_prog_rejected = yes; then
2358   # We found a bogon in the path, so make sure we never use it.
2359   set dummy $ac_cv_prog_CC
2360   shift
2361   if test $# != 0; then
2362     # We chose a different compiler from the bogus one.
2363     # However, it has the same basename, so the bogon will be chosen
2364     # first if we set CC to just the basename; use the full file name.
2365     shift
2366     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2367   fi
2368 fi
2369 fi
2370 fi
2371 CC=$ac_cv_prog_CC
2372 if test -n "$CC"; then
2373   echo "$as_me:$LINENO: result: $CC" >&5
2374 echo "${ECHO_T}$CC" >&6
2375 else
2376   echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2378 fi
2379
2380 fi
2381 if test -z "$CC"; then
2382   if test -n "$ac_tool_prefix"; then
2383   for ac_prog in cl
2384   do
2385     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2387 echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390   echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392   if test -n "$CC"; then
2393   ac_cv_prog_CC="$CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400   for ac_exec_ext in '' $ac_executable_extensions; do
2401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404     break 2
2405   fi
2406 done
2407 done
2408
2409 fi
2410 fi
2411 CC=$ac_cv_prog_CC
2412 if test -n "$CC"; then
2413   echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6
2415 else
2416   echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2418 fi
2419
2420     test -n "$CC" && break
2421   done
2422 fi
2423 if test -z "$CC"; then
2424   ac_ct_CC=$CC
2425   for ac_prog in cl
2426 do
2427   # Extract the first word of "$ac_prog", so it can be a program name with args.
2428 set dummy $ac_prog; ac_word=$2
2429 echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2432   echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434   if test -n "$ac_ct_CC"; then
2435   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440   IFS=$as_save_IFS
2441   test -z "$as_dir" && as_dir=.
2442   for ac_exec_ext in '' $ac_executable_extensions; do
2443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2444     ac_cv_prog_ac_ct_CC="$ac_prog"
2445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446     break 2
2447   fi
2448 done
2449 done
2450
2451 fi
2452 fi
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 echo "${ECHO_T}$ac_ct_CC" >&6
2457 else
2458   echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6
2460 fi
2461
2462   test -n "$ac_ct_CC" && break
2463 done
2464
2465   CC=$ac_ct_CC
2466 fi
2467
2468 fi
2469
2470
2471 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2472 See \`config.log' for more details." >&5
2473 echo "$as_me: error: no acceptable C compiler found in \$PATH
2474 See \`config.log' for more details." >&2;}
2475    { (exit 1); exit 1; }; }
2476
2477 # Provide some information about the compiler.
2478 echo "$as_me:$LINENO:" \
2479      "checking for C compiler version" >&5
2480 ac_compiler=`set X $ac_compile; echo $2`
2481 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2482   (eval $ac_compiler --version </dev/null >&5) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }
2486 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2487   (eval $ac_compiler -v </dev/null >&5) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }
2491 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2492   (eval $ac_compiler -V </dev/null >&5) 2>&5
2493   ac_status=$?
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); }
2496
2497 cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503
2504 int
2505 main ()
2506 {
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 ac_clean_files_save=$ac_clean_files
2513 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2514 # Try to create an executable without -o first, disregard a.out.
2515 # It will help us diagnose broken compilers, and finding out an intuition
2516 # of exeext.
2517 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2518 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2519 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2520 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2521   (eval $ac_link_default) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; then
2525   # Find the output, starting from the most likely.  This scheme is
2526 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2527 # resort.
2528
2529 # Be careful to initialize this variable, since it used to be cached.
2530 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2531 ac_cv_exeext=
2532 # b.out is created by i960 compilers.
2533 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2534 do
2535   test -f "$ac_file" || continue
2536   case $ac_file in
2537     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2538         ;;
2539     conftest.$ac_ext )
2540         # This is the source file.
2541         ;;
2542     [ab].out )
2543         # We found the default executable, but exeext='' is most
2544         # certainly right.
2545         break;;
2546     *.* )
2547         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548         # FIXME: I believe we export ac_cv_exeext for Libtool,
2549         # but it would be cool to find out if it's true.  Does anybody
2550         # maintain Libtool? --akim.
2551         export ac_cv_exeext
2552         break;;
2553     * )
2554         break;;
2555   esac
2556 done
2557 else
2558   echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&5
2563 echo "$as_me: error: C compiler cannot create executables
2564 See \`config.log' for more details." >&2;}
2565    { (exit 77); exit 77; }; }
2566 fi
2567
2568 ac_exeext=$ac_cv_exeext
2569 echo "$as_me:$LINENO: result: $ac_file" >&5
2570 echo "${ECHO_T}$ac_file" >&6
2571
2572 # Check the compiler produces executables we can run.  If not, either
2573 # the compiler is broken, or we cross compile.
2574 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2575 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2576 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2577 # If not cross compiling, check that we can run a simple program.
2578 if test "$cross_compiling" != yes; then
2579   if { ac_try='./$ac_file'
2580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581   (eval $ac_try) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; }; then
2585     cross_compiling=no
2586   else
2587     if test "$cross_compiling" = maybe; then
2588         cross_compiling=yes
2589     else
2590         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2591 If you meant to cross compile, use \`--host'.
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: cannot run C compiled programs.
2594 If you meant to cross compile, use \`--host'.
2595 See \`config.log' for more details." >&2;}
2596    { (exit 1); exit 1; }; }
2597     fi
2598   fi
2599 fi
2600 echo "$as_me:$LINENO: result: yes" >&5
2601 echo "${ECHO_T}yes" >&6
2602
2603 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2604 ac_clean_files=$ac_clean_files_save
2605 # Check the compiler produces executables we can run.  If not, either
2606 # the compiler is broken, or we cross compile.
2607 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2608 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2609 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2610 echo "${ECHO_T}$cross_compiling" >&6
2611
2612 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2613 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615   (eval $ac_link) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); }; then
2619   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2620 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2621 # work properly (i.e., refer to `conftest.exe'), while it won't with
2622 # `rm'.
2623 for ac_file in conftest.exe conftest conftest.*; do
2624   test -f "$ac_file" || continue
2625   case $ac_file in
2626     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2627     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2628           export ac_cv_exeext
2629           break;;
2630     * ) break;;
2631   esac
2632 done
2633 else
2634   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details." >&5
2636 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2637 See \`config.log' for more details." >&2;}
2638    { (exit 1); exit 1; }; }
2639 fi
2640
2641 rm -f conftest$ac_cv_exeext
2642 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2643 echo "${ECHO_T}$ac_cv_exeext" >&6
2644
2645 rm -f conftest.$ac_ext
2646 EXEEXT=$ac_cv_exeext
2647 ac_exeext=$EXEEXT
2648 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2649 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2650 if test "${ac_cv_objext+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h.  */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h.  */
2659
2660 int
2661 main ()
2662 {
2663
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 rm -f conftest.o conftest.obj
2669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670   (eval $ac_compile) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }; then
2674   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2675   case $ac_file in
2676     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2677     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2678        break;;
2679   esac
2680 done
2681 else
2682   echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2688 See \`config.log' for more details." >&2;}
2689    { (exit 1); exit 1; }; }
2690 fi
2691
2692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2693 fi
2694 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2695 echo "${ECHO_T}$ac_cv_objext" >&6
2696 OBJEXT=$ac_cv_objext
2697 ac_objext=$OBJEXT
2698 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2699 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2700 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2701   echo $ECHO_N "(cached) $ECHO_C" >&6
2702 else
2703   cat >conftest.$ac_ext <<_ACEOF
2704 /* confdefs.h.  */
2705 _ACEOF
2706 cat confdefs.h >>conftest.$ac_ext
2707 cat >>conftest.$ac_ext <<_ACEOF
2708 /* end confdefs.h.  */
2709
2710 int
2711 main ()
2712 {
2713 #ifndef __GNUC__
2714        choke me
2715 #endif
2716
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 rm -f conftest.$ac_objext
2722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723   (eval $ac_compile) 2>conftest.er1
2724   ac_status=$?
2725   grep -v '^ *+' conftest.er1 >conftest.err
2726   rm -f conftest.er1
2727   cat conftest.err >&5
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); } &&
2730          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   ac_compiler_gnu=yes
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 ac_compiler_gnu=no
2748 fi
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2751
2752 fi
2753 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2758 CFLAGS="-g"
2759 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2760 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2761 if test "${ac_cv_prog_cc_g+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781   (eval $ac_compile) 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } &&
2788          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   ac_cv_prog_cc_g=yes
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 ac_cv_prog_cc_g=no
2806 fi
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 fi
2809 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2811 if test "$ac_test_CFLAGS" = set; then
2812   CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814   if test "$GCC" = yes; then
2815     CFLAGS="-g -O2"
2816   else
2817     CFLAGS="-g"
2818   fi
2819 else
2820   if test "$GCC" = yes; then
2821     CFLAGS="-O2"
2822   else
2823     CFLAGS=
2824   fi
2825 fi
2826 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2827 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2828 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   ac_cv_prog_cc_stdc=no
2832 ac_save_CC=$CC
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839 #include <stdarg.h>
2840 #include <stdio.h>
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2847      char **p;
2848      int i;
2849 {
2850   return p[i];
2851 }
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2853 {
2854   char *s;
2855   va_list v;
2856   va_start (v,p);
2857   s = g (p, va_arg (v,int));
2858   va_end (v);
2859   return s;
2860 }
2861
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2863    function prototypes and stuff, but not '\xHH' hex character constants.
2864    These don't provoke an error unfortunately, instead are silently treated
2865    as 'x'.  The following induces an error, until -std1 is added to get
2866    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2867    array size at least.  It's necessary to write '\x00'==0 to get something
2868    that's true only with -std1.  */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875 int argc;
2876 char **argv;
2877 int
2878 main ()
2879 {
2880 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 # Don't try gcc -ansi; that turns off useful extensions and
2886 # breaks some systems' header files.
2887 # AIX                   -qlanglvl=ansi
2888 # Ultrix and OSF/1      -std1
2889 # HP-UX 10.20 and later -Ae
2890 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2891 # SVR4                  -Xc -D__EXTENSIONS__
2892 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 do
2894   CC="$ac_save_CC $ac_arg"
2895   rm -f conftest.$ac_objext
2896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2897   (eval $ac_compile) 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } &&
2904          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; } &&
2910          { ac_try='test -s conftest.$ac_objext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   ac_cv_prog_cc_stdc=$ac_arg
2917 break
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922 fi
2923 rm -f conftest.err conftest.$ac_objext
2924 done
2925 rm -f conftest.$ac_ext conftest.$ac_objext
2926 CC=$ac_save_CC
2927
2928 fi
2929
2930 case "x$ac_cv_prog_cc_stdc" in
2931   x|xno)
2932     echo "$as_me:$LINENO: result: none needed" >&5
2933 echo "${ECHO_T}none needed" >&6 ;;
2934   *)
2935     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2937     CC="$CC $ac_cv_prog_cc_stdc" ;;
2938 esac
2939
2940 # Some people use a C++ compiler to compile C.  Since we use `exit',
2941 # in C++ we need to declare it.  In case someone uses the same compiler
2942 # for both compiling C and C++ we need to have the C++ compiler decide
2943 # the declaration of exit, since it's the most demanding environment.
2944 cat >conftest.$ac_ext <<_ACEOF
2945 #ifndef __cplusplus
2946   choke me
2947 #endif
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951   (eval $ac_compile) 2>conftest.er1
2952   ac_status=$?
2953   grep -v '^ *+' conftest.er1 >conftest.err
2954   rm -f conftest.er1
2955   cat conftest.err >&5
2956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957   (exit $ac_status); } &&
2958          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960   (eval $ac_try) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); }; } &&
2964          { ac_try='test -s conftest.$ac_objext'
2965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966   (eval $ac_try) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; }; then
2970   for ac_declaration in \
2971    '' \
2972    'extern "C" void std::exit (int) throw (); using std::exit;' \
2973    'extern "C" void std::exit (int); using std::exit;' \
2974    'extern "C" void exit (int) throw ();' \
2975    'extern "C" void exit (int);' \
2976    'void exit (int);'
2977 do
2978   cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984 $ac_declaration
2985 #include <stdlib.h>
2986 int
2987 main ()
2988 {
2989 exit (42);
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996   (eval $ac_compile) 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } &&
3003          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005   (eval $ac_try) 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; } &&
3009          { ac_try='test -s conftest.$ac_objext'
3010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011   (eval $ac_try) 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }; }; then
3015   :
3016 else
3017   echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 continue
3021 fi
3022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029 $ac_declaration
3030 int
3031 main ()
3032 {
3033 exit (42);
3034   ;
3035   return 0;
3036 }
3037 _ACEOF
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040   (eval $ac_compile) 2>conftest.er1
3041   ac_status=$?
3042   grep -v '^ *+' conftest.er1 >conftest.err
3043   rm -f conftest.er1
3044   cat conftest.err >&5
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); } &&
3047          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049   (eval $ac_try) 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; } &&
3053          { ac_try='test -s conftest.$ac_objext'
3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055   (eval $ac_try) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   break
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 fi
3065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3066 done
3067 rm -f conftest*
3068 if test -n "$ac_declaration"; then
3069   echo '#ifdef __cplusplus' >>confdefs.h
3070   echo $ac_declaration      >>confdefs.h
3071   echo '#endif'             >>confdefs.h
3072 fi
3073
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 fi
3079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_ext=c
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085
3086 depcc="$CC"   am_compiler_list=
3087
3088 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3089 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3090 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3091   echo $ECHO_N "(cached) $ECHO_C" >&6
3092 else
3093   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3094   # We make a subdir and do the tests there.  Otherwise we can end up
3095   # making bogus files that we don't know about and never remove.  For
3096   # instance it was reported that on HP-UX the gcc test will end up
3097   # making a dummy file named `D' -- because `-MD' means `put the output
3098   # in D'.
3099   mkdir conftest.dir
3100   # Copy depcomp to subdir because otherwise we won't find it if we're
3101   # using a relative directory.
3102   cp "$am_depcomp" conftest.dir
3103   cd conftest.dir
3104   # We will build objects and dependencies in a subdirectory because
3105   # it helps to detect inapplicable dependency modes.  For instance
3106   # both Tru64's cc and ICC support -MD to output dependencies as a
3107   # side effect of compilation, but ICC will put the dependencies in
3108   # the current directory while Tru64 will put them in the object
3109   # directory.
3110   mkdir sub
3111
3112   am_cv_CC_dependencies_compiler_type=none
3113   if test "$am_compiler_list" = ""; then
3114      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3115   fi
3116   for depmode in $am_compiler_list; do
3117     # Setup a source with many dependencies, because some compilers
3118     # like to wrap large dependency lists on column 80 (with \), and
3119     # we should not choose a depcomp mode which is confused by this.
3120     #
3121     # We need to recreate these files for each test, as the compiler may
3122     # overwrite some of them when testing with obscure command lines.
3123     # This happens at least with the AIX C compiler.
3124     : > sub/conftest.c
3125     for i in 1 2 3 4 5 6; do
3126       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3127       : > sub/conftst$i.h
3128     done
3129     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3130
3131     case $depmode in
3132     nosideeffect)
3133       # after this tag, mechanisms are not by side-effect, so they'll
3134       # only be used when explicitly requested
3135       if test "x$enable_dependency_tracking" = xyes; then
3136         continue
3137       else
3138         break
3139       fi
3140       ;;
3141     none) break ;;
3142     esac
3143     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3144     # mode.  It turns out that the SunPro C++ compiler does not properly
3145     # handle `-M -o', and we need to detect this.
3146     if depmode=$depmode \
3147        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3148        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3149        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3150          >/dev/null 2>conftest.err &&
3151        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3152        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3153        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3154       # icc doesn't choke on unknown options, it will just issue warnings
3155       # (even with -Werror).  So we grep stderr for any message
3156       # that says an option was ignored.
3157       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3158         am_cv_CC_dependencies_compiler_type=$depmode
3159         break
3160       fi
3161     fi
3162   done
3163
3164   cd ..
3165   rm -rf conftest.dir
3166 else
3167   am_cv_CC_dependencies_compiler_type=none
3168 fi
3169
3170 fi
3171 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3172 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3173 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3174
3175
3176
3177 if
3178   test "x$enable_dependency_tracking" != xno \
3179   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3180   am__fastdepCC_TRUE=
3181   am__fastdepCC_FALSE='#'
3182 else
3183   am__fastdepCC_TRUE='#'
3184   am__fastdepCC_FALSE=
3185 fi
3186
3187
3188 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3189 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3190 if test "${lt_cv_path_SED+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   # Loop through the user's path and test for sed and gsed.
3194 # Then use that list of sed's as ones to test for truncation.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198   IFS=$as_save_IFS
3199   test -z "$as_dir" && as_dir=.
3200   for lt_ac_prog in sed gsed; do
3201     for ac_exec_ext in '' $ac_executable_extensions; do
3202       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3203         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3204       fi
3205     done
3206   done
3207 done
3208 lt_ac_max=0
3209 lt_ac_count=0
3210 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3211 # along with /bin/sed that truncates output.
3212 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3213   test ! -f $lt_ac_sed && break
3214   cat /dev/null > conftest.in
3215   lt_ac_count=0
3216   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3217   # Check for GNU sed and select it if it is found.
3218   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3219     lt_cv_path_SED=$lt_ac_sed
3220     break
3221   fi
3222   while true; do
3223     cat conftest.in conftest.in >conftest.tmp
3224     mv conftest.tmp conftest.in
3225     cp conftest.in conftest.nl
3226     echo >>conftest.nl
3227     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3228     cmp -s conftest.out conftest.nl || break
3229     # 10000 chars as input seems more than enough
3230     test $lt_ac_count -gt 10 && break
3231     lt_ac_count=`expr $lt_ac_count + 1`
3232     if test $lt_ac_count -gt $lt_ac_max; then
3233       lt_ac_max=$lt_ac_count
3234       lt_cv_path_SED=$lt_ac_sed
3235     fi
3236   done
3237 done
3238 SED=$lt_cv_path_SED
3239
3240 fi
3241
3242 echo "$as_me:$LINENO: result: $SED" >&5
3243 echo "${ECHO_T}$SED" >&6
3244
3245 echo "$as_me:$LINENO: checking for egrep" >&5
3246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3247 if test "${ac_cv_prog_egrep+set}" = set; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3251     then ac_cv_prog_egrep='grep -E'
3252     else ac_cv_prog_egrep='egrep'
3253     fi
3254 fi
3255 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3257  EGREP=$ac_cv_prog_egrep
3258
3259
3260
3261 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3262 if test "${with_gnu_ld+set}" = set; then
3263   withval="$with_gnu_ld"
3264   test "$withval" = no || with_gnu_ld=yes
3265 else
3266   with_gnu_ld=no
3267 fi;
3268 ac_prog=ld
3269 if test "$GCC" = yes; then
3270   # Check if gcc -print-prog-name=ld gives a path.
3271   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3272 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3273   case $host in
3274   *-*-mingw*)
3275     # gcc leaves a trailing carriage return which upsets mingw
3276     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3277   *)
3278     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3279   esac
3280   case $ac_prog in
3281     # Accept absolute paths.
3282     [\\/]* | ?:[\\/]*)
3283       re_direlt='/[^/][^/]*/\.\./'
3284       # Canonicalize the pathname of ld
3285       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3286       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3287         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3288       done
3289       test -z "$LD" && LD="$ac_prog"
3290       ;;
3291   "")
3292     # If it fails, then pretend we aren't using GCC.
3293     ac_prog=ld
3294     ;;
3295   *)
3296     # If it is relative, then search for the first ld in PATH.
3297     with_gnu_ld=unknown
3298     ;;
3299   esac
3300 elif test "$with_gnu_ld" = yes; then
3301   echo "$as_me:$LINENO: checking for GNU ld" >&5
3302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3303 else
3304   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3306 fi
3307 if test "${lt_cv_path_LD+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310   if test -z "$LD"; then
3311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3312   for ac_dir in $PATH; do
3313     IFS="$lt_save_ifs"
3314     test -z "$ac_dir" && ac_dir=.
3315     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3316       lt_cv_path_LD="$ac_dir/$ac_prog"
3317       # Check to see if the program is GNU ld.  I'd rather use --version,
3318       # but apparently some GNU ld's only accept -v.
3319       # Break only if it was the GNU/non-GNU ld that we prefer.
3320       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3321       *GNU* | *'with BFD'*)
3322         test "$with_gnu_ld" != no && break
3323         ;;
3324       *)
3325         test "$with_gnu_ld" != yes && break
3326         ;;
3327       esac
3328     fi
3329   done
3330   IFS="$lt_save_ifs"
3331 else
3332   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3333 fi
3334 fi
3335
3336 LD="$lt_cv_path_LD"
3337 if test -n "$LD"; then
3338   echo "$as_me:$LINENO: result: $LD" >&5
3339 echo "${ECHO_T}$LD" >&6
3340 else
3341   echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3343 fi
3344 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3345 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3346    { (exit 1); exit 1; }; }
3347 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3348 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3349 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3350   echo $ECHO_N "(cached) $ECHO_C" >&6
3351 else
3352   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3353 case `$LD -v 2>&1 </dev/null` in
3354 *GNU* | *'with BFD'*)
3355   lt_cv_prog_gnu_ld=yes
3356   ;;
3357 *)
3358   lt_cv_prog_gnu_ld=no
3359   ;;
3360 esac
3361 fi
3362 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3363 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3364 with_gnu_ld=$lt_cv_prog_gnu_ld
3365
3366
3367 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3368 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3369 if test "${lt_cv_ld_reload_flag+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   lt_cv_ld_reload_flag='-r'
3373 fi
3374 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3375 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3376 reload_flag=$lt_cv_ld_reload_flag
3377 case $reload_flag in
3378 "" | " "*) ;;
3379 *) reload_flag=" $reload_flag" ;;
3380 esac
3381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3382
3383 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3384 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3385 if test "${lt_cv_path_NM+set}" = set; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   if test -n "$NM"; then
3389   # Let the user override the test.
3390   lt_cv_path_NM="$NM"
3391 else
3392   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3393   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3394     IFS="$lt_save_ifs"
3395     test -z "$ac_dir" && ac_dir=.
3396     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3397     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3398       # Check to see if the nm accepts a BSD-compat flag.
3399       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3400       #   nm: unknown option "B" ignored
3401       # Tru64's nm complains that /dev/null is an invalid object file
3402       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3403       */dev/null* | *'Invalid file or object type'*)
3404         lt_cv_path_NM="$tmp_nm -B"
3405         break
3406         ;;
3407       *)
3408         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3409         */dev/null*)
3410           lt_cv_path_NM="$tmp_nm -p"
3411           break
3412           ;;
3413         *)
3414           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3415           continue # so that we can try to find one that supports BSD flags
3416           ;;
3417         esac
3418       esac
3419     fi
3420   done
3421   IFS="$lt_save_ifs"
3422   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3423 fi
3424 fi
3425 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3426 echo "${ECHO_T}$lt_cv_path_NM" >&6
3427 NM="$lt_cv_path_NM"
3428
3429 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3430 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3431 LN_S=$as_ln_s
3432 if test "$LN_S" = "ln -s"; then
3433   echo "$as_me:$LINENO: result: yes" >&5
3434 echo "${ECHO_T}yes" >&6
3435 else
3436   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3437 echo "${ECHO_T}no, using $LN_S" >&6
3438 fi
3439
3440 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3441 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3442 if test "${lt_cv_deplibs_check_method+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   lt_cv_file_magic_cmd='$MAGIC_CMD'
3446 lt_cv_file_magic_test_file=
3447 lt_cv_deplibs_check_method='unknown'
3448 # Need to set the preceding variable on all platforms that support
3449 # interlibrary dependencies.
3450 # 'none' -- dependencies not supported.
3451 # `unknown' -- same as none, but documents that we really don't know.
3452 # 'pass_all' -- all dependencies passed with no checks.
3453 # 'test_compile' -- check by making test program.
3454 # 'file_magic [[regex]]' -- check by looking for files in library path
3455 # which responds to the $file_magic_cmd with a given extended regex.
3456 # If you have `file' or equivalent on your system and you're not sure
3457 # whether `pass_all' will *always* work, you probably want this one.
3458
3459 case $host_os in
3460 aix4* | aix5*)
3461   lt_cv_deplibs_check_method=pass_all
3462   ;;
3463
3464 beos*)
3465   lt_cv_deplibs_check_method=pass_all
3466   ;;
3467
3468 bsdi4*)
3469   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3470   lt_cv_file_magic_cmd='/usr/bin/file -L'
3471   lt_cv_file_magic_test_file=/shlib/libc.so
3472   ;;
3473
3474 cygwin*)
3475   # win32_libid is a shell function defined in ltmain.sh
3476   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3477   lt_cv_file_magic_cmd='win32_libid'
3478   ;;
3479
3480 mingw* | pw32*)
3481   # Base MSYS/MinGW do not provide the 'file' command needed by
3482   # win32_libid shell function, so use a weaker test based on 'objdump'.
3483   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3484   lt_cv_file_magic_cmd='$OBJDUMP -f'
3485   ;;
3486
3487 darwin* | rhapsody*)
3488   lt_cv_deplibs_check_method=pass_all
3489   ;;
3490
3491 freebsd* | kfreebsd*-gnu)
3492   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3493     case $host_cpu in
3494     i*86 )
3495       # Not sure whether the presence of OpenBSD here was a mistake.
3496       # Let's accept both of them until this is cleared up.
3497       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3498       lt_cv_file_magic_cmd=/usr/bin/file
3499       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3500       ;;
3501     esac
3502   else
3503     lt_cv_deplibs_check_method=pass_all
3504   fi
3505   ;;
3506
3507 gnu*)
3508   lt_cv_deplibs_check_method=pass_all
3509   ;;
3510
3511 hpux10.20* | hpux11*)
3512   lt_cv_file_magic_cmd=/usr/bin/file
3513   case "$host_cpu" in
3514   ia64*)
3515     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3516     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3517     ;;
3518   hppa*64*)
3519     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]'
3520     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3521     ;;
3522   *)
3523     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3524     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3525     ;;
3526   esac
3527   ;;
3528
3529 irix5* | irix6* | nonstopux*)
3530   case $LD in
3531   *-32|*"-32 ") libmagic=32-bit;;
3532   *-n32|*"-n32 ") libmagic=N32;;
3533   *-64|*"-64 ") libmagic=64-bit;;
3534   *) libmagic=never-match;;
3535   esac
3536   lt_cv_deplibs_check_method=pass_all
3537   ;;
3538
3539 # This must be Linux ELF.
3540 linux*)
3541   lt_cv_deplibs_check_method=pass_all
3542   ;;
3543
3544 netbsd* | knetbsd*-gnu)
3545   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3546     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3547   else
3548     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3549   fi
3550   ;;
3551
3552 newos6*)
3553   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3554   lt_cv_file_magic_cmd=/usr/bin/file
3555   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3556   ;;
3557
3558 nto-qnx*)
3559   lt_cv_deplibs_check_method=unknown
3560   ;;
3561
3562 openbsd*)
3563   lt_cv_file_magic_cmd=/usr/bin/file
3564   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3565   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3566     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3567   else
3568     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3569   fi
3570   ;;
3571
3572 osf3* | osf4* | osf5*)
3573   lt_cv_deplibs_check_method=pass_all
3574   ;;
3575
3576 sco3.2v5*)
3577   lt_cv_deplibs_check_method=pass_all
3578   ;;
3579
3580 solaris*)
3581   lt_cv_deplibs_check_method=pass_all
3582   ;;
3583
3584 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3585   case $host_vendor in
3586   motorola)
3587     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]'
3588     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3589     ;;
3590   ncr)
3591     lt_cv_deplibs_check_method=pass_all
3592     ;;
3593   sequent)
3594     lt_cv_file_magic_cmd='/bin/file'
3595     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3596     ;;
3597   sni)
3598     lt_cv_file_magic_cmd='/bin/file'
3599     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3600     lt_cv_file_magic_test_file=/lib/libc.so
3601     ;;
3602   siemens)
3603     lt_cv_deplibs_check_method=pass_all
3604     ;;
3605   esac
3606   ;;
3607
3608 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3609   lt_cv_deplibs_check_method=pass_all
3610   ;;
3611 esac
3612
3613 fi
3614 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3615 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3616 file_magic_cmd=$lt_cv_file_magic_cmd
3617 deplibs_check_method=$lt_cv_deplibs_check_method
3618 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3619
3620
3621
3622
3623 # If no C compiler was specified, use CC.
3624 LTCC=${LTCC-"$CC"}
3625
3626 # Allow CC to be a program name with arguments.
3627 compiler=$CC
3628
3629
3630 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3631 if test "${enable_libtool_lock+set}" = set; then
3632   enableval="$enable_libtool_lock"
3633
3634 fi;
3635 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3636
3637 # Some flags need to be propagated to the compiler or linker for good
3638 # libtool support.
3639 case $host in
3640 ia64-*-hpux*)
3641   # Find out which ABI we are using.
3642   echo 'int i;' > conftest.$ac_ext
3643   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644   (eval $ac_compile) 2>&5
3645   ac_status=$?
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); }; then
3648     case `/usr/bin/file conftest.$ac_objext` in
3649     *ELF-32*)
3650       HPUX_IA64_MODE="32"
3651       ;;
3652     *ELF-64*)
3653       HPUX_IA64_MODE="64"
3654       ;;
3655     esac
3656   fi
3657   rm -rf conftest*
3658   ;;
3659 *-*-irix6*)
3660   # Find out which ABI we are using.
3661   echo '#line 3661 "configure"' > conftest.$ac_ext
3662   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663   (eval $ac_compile) 2>&5
3664   ac_status=$?
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); }; then
3667    if test "$lt_cv_prog_gnu_ld" = yes; then
3668     case `/usr/bin/file conftest.$ac_objext` in
3669     *32-bit*)
3670       LD="${LD-ld} -melf32bsmip"
3671       ;;
3672     *N32*)
3673       LD="${LD-ld} -melf32bmipn32"
3674       ;;
3675     *64-bit*)
3676       LD="${LD-ld} -melf64bmip"
3677       ;;
3678     esac
3679    else
3680     case `/usr/bin/file conftest.$ac_objext` in
3681     *32-bit*)
3682       LD="${LD-ld} -32"
3683       ;;
3684     *N32*)
3685       LD="${LD-ld} -n32"
3686       ;;
3687     *64-bit*)
3688       LD="${LD-ld} -64"
3689       ;;
3690     esac
3691    fi
3692   fi
3693   rm -rf conftest*
3694   ;;
3695
3696 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3697   # Find out which ABI we are using.
3698   echo 'int i;' > conftest.$ac_ext
3699   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700   (eval $ac_compile) 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); }; then
3704     case "`/usr/bin/file conftest.o`" in
3705     *32-bit*)
3706       case $host in
3707         x86_64-*linux*)
3708           LD="${LD-ld} -m elf_i386"
3709           ;;
3710         ppc64-*linux*|powerpc64-*linux*)
3711           LD="${LD-ld} -m elf32ppclinux"
3712           ;;
3713         s390x-*linux*)
3714           LD="${LD-ld} -m elf_s390"
3715           ;;
3716         sparc64-*linux*)
3717           LD="${LD-ld} -m elf32_sparc"
3718           ;;
3719       esac
3720       ;;
3721     *64-bit*)
3722       case $host in
3723         x86_64-*linux*)
3724           LD="${LD-ld} -m elf_x86_64"
3725           ;;
3726         ppc*-*linux*|powerpc*-*linux*)
3727           LD="${LD-ld} -m elf64ppc"
3728           ;;
3729         s390*-*linux*)
3730           LD="${LD-ld} -m elf64_s390"
3731           ;;
3732         sparc*-*linux*)
3733           LD="${LD-ld} -m elf64_sparc"
3734           ;;
3735       esac
3736       ;;
3737     esac
3738   fi
3739   rm -rf conftest*
3740   ;;
3741
3742 *-*-sco3.2v5*)
3743   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3744   SAVE_CFLAGS="$CFLAGS"
3745   CFLAGS="$CFLAGS -belf"
3746   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3747 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3748 if test "${lt_cv_cc_needs_belf+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   ac_ext=c
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
3757      cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763
3764 int
3765 main ()
3766 {
3767
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 rm -f conftest.$ac_objext conftest$ac_exeext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774   (eval $ac_link) 2>conftest.er1
3775   ac_status=$?
3776   grep -v '^ *+' conftest.er1 >conftest.err
3777   rm -f conftest.er1
3778   cat conftest.err >&5
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); } &&
3781          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783   (eval $ac_try) 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); }; } &&
3787          { ac_try='test -s conftest$ac_exeext'
3788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789   (eval $ac_try) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); }; }; then
3793   lt_cv_cc_needs_belf=yes
3794 else
3795   echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3797
3798 lt_cv_cc_needs_belf=no
3799 fi
3800 rm -f conftest.err conftest.$ac_objext \
3801       conftest$ac_exeext conftest.$ac_ext
3802      ac_ext=c
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807
3808 fi
3809 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3810 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3811   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3812     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3813     CFLAGS="$SAVE_CFLAGS"
3814   fi
3815   ;;
3816
3817 esac
3818
3819 need_locks="$enable_libtool_lock"
3820
3821
3822 ac_ext=c
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3828 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3829 # On Suns, sometimes $CPP names a directory.
3830 if test -n "$CPP" && test -d "$CPP"; then
3831   CPP=
3832 fi
3833 if test -z "$CPP"; then
3834   if test "${ac_cv_prog_CPP+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837       # Double quotes because CPP needs to be expanded
3838     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3839     do
3840       ac_preproc_ok=false
3841 for ac_c_preproc_warn_flag in '' yes
3842 do
3843   # Use a header file that comes with gcc, so configuring glibc
3844   # with a fresh cross-compiler works.
3845   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846   # <limits.h> exists even on freestanding compilers.
3847   # On the NeXT, cc -E runs the code through the compiler's parser,
3848   # not just through cpp. "Syntax error" is here to catch this case.
3849   cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 #ifdef __STDC__
3856 # include <limits.h>
3857 #else
3858 # include <assert.h>
3859 #endif
3860                      Syntax error
3861 _ACEOF
3862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3864   ac_status=$?
3865   grep -v '^ *+' conftest.er1 >conftest.err
3866   rm -f conftest.er1
3867   cat conftest.err >&5
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } >/dev/null; then
3870   if test -s conftest.err; then
3871     ac_cpp_err=$ac_c_preproc_warn_flag
3872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3873   else
3874     ac_cpp_err=
3875   fi
3876 else
3877   ac_cpp_err=yes
3878 fi
3879 if test -z "$ac_cpp_err"; then
3880   :
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885   # Broken: fails on valid input.
3886 continue
3887 fi
3888 rm -f conftest.err conftest.$ac_ext
3889
3890   # OK, works on sane cases.  Now check whether non-existent headers
3891   # can be detected and how.
3892   cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898 #include <ac_nonexistent.h>
3899 _ACEOF
3900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3902   ac_status=$?
3903   grep -v '^ *+' conftest.er1 >conftest.err
3904   rm -f conftest.er1
3905   cat conftest.err >&5
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } >/dev/null; then
3908   if test -s conftest.err; then
3909     ac_cpp_err=$ac_c_preproc_warn_flag
3910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3911   else
3912     ac_cpp_err=
3913   fi
3914 else
3915   ac_cpp_err=yes
3916 fi
3917 if test -z "$ac_cpp_err"; then
3918   # Broken: success on invalid input.
3919 continue
3920 else
3921   echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924   # Passes both tests.
3925 ac_preproc_ok=:
3926 break
3927 fi
3928 rm -f conftest.err conftest.$ac_ext
3929
3930 done
3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3932 rm -f conftest.err conftest.$ac_ext
3933 if $ac_preproc_ok; then
3934   break
3935 fi
3936
3937     done
3938     ac_cv_prog_CPP=$CPP
3939
3940 fi
3941   CPP=$ac_cv_prog_CPP
3942 else
3943   ac_cv_prog_CPP=$CPP
3944 fi
3945 echo "$as_me:$LINENO: result: $CPP" >&5
3946 echo "${ECHO_T}$CPP" >&6
3947 ac_preproc_ok=false
3948 for ac_c_preproc_warn_flag in '' yes
3949 do
3950   # Use a header file that comes with gcc, so configuring glibc
3951   # with a fresh cross-compiler works.
3952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3953   # <limits.h> exists even on freestanding compilers.
3954   # On the NeXT, cc -E runs the code through the compiler's parser,
3955   # not just through cpp. "Syntax error" is here to catch this case.
3956   cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962 #ifdef __STDC__
3963 # include <limits.h>
3964 #else
3965 # include <assert.h>
3966 #endif
3967                      Syntax error
3968 _ACEOF
3969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3971   ac_status=$?
3972   grep -v '^ *+' conftest.er1 >conftest.err
3973   rm -f conftest.er1
3974   cat conftest.err >&5
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); } >/dev/null; then
3977   if test -s conftest.err; then
3978     ac_cpp_err=$ac_c_preproc_warn_flag
3979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3980   else
3981     ac_cpp_err=
3982   fi
3983 else
3984   ac_cpp_err=yes
3985 fi
3986 if test -z "$ac_cpp_err"; then
3987   :
3988 else
3989   echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992   # Broken: fails on valid input.
3993 continue
3994 fi
3995 rm -f conftest.err conftest.$ac_ext
3996
3997   # OK, works on sane cases.  Now check whether non-existent headers
3998   # can be detected and how.
3999   cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h.  */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h.  */
4005 #include <ac_nonexistent.h>
4006 _ACEOF
4007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4009   ac_status=$?
4010   grep -v '^ *+' conftest.er1 >conftest.err
4011   rm -f conftest.er1
4012   cat conftest.err >&5
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } >/dev/null; then
4015   if test -s conftest.err; then
4016     ac_cpp_err=$ac_c_preproc_warn_flag
4017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4018   else
4019     ac_cpp_err=
4020   fi
4021 else
4022   ac_cpp_err=yes
4023 fi
4024 if test -z "$ac_cpp_err"; then
4025   # Broken: success on invalid input.
4026 continue
4027 else
4028   echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031   # Passes both tests.
4032 ac_preproc_ok=:
4033 break
4034 fi
4035 rm -f conftest.err conftest.$ac_ext
4036
4037 done
4038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039 rm -f conftest.err conftest.$ac_ext
4040 if $ac_preproc_ok; then
4041   :
4042 else
4043   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4044 See \`config.log' for more details." >&5
4045 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4046 See \`config.log' for more details." >&2;}
4047    { (exit 1); exit 1; }; }
4048 fi
4049
4050 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055
4056
4057 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4059 if test "${ac_cv_header_stdc+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h.  */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h.  */
4068 #include <stdlib.h>
4069 #include <stdarg.h>
4070 #include <string.h>
4071 #include <float.h>
4072
4073 int
4074 main ()
4075 {
4076
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083   (eval $ac_compile) 2>conftest.er1
4084   ac_status=$?
4085   grep -v '^ *+' conftest.er1 >conftest.err
4086   rm -f conftest.er1
4087   cat conftest.err >&5
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); } &&
4090          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; } &&
4096          { ac_try='test -s conftest.$ac_objext'
4097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098   (eval $ac_try) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   ac_cv_header_stdc=yes
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_cv_header_stdc=no
4108 fi
4109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4110
4111 if test $ac_cv_header_stdc = yes; then
4112   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4113   cat >conftest.$ac_ext <<_ACEOF
4114 /* confdefs.h.  */
4115 _ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h.  */
4119 #include <string.h>
4120
4121 _ACEOF
4122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4123   $EGREP "memchr" >/dev/null 2>&1; then
4124   :
4125 else
4126   ac_cv_header_stdc=no
4127 fi
4128 rm -f conftest*
4129
4130 fi
4131
4132 if test $ac_cv_header_stdc = yes; then
4133   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4134   cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h.  */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h.  */
4140 #include <stdlib.h>
4141
4142 _ACEOF
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144   $EGREP "free" >/dev/null 2>&1; then
4145   :
4146 else
4147   ac_cv_header_stdc=no
4148 fi
4149 rm -f conftest*
4150
4151 fi
4152
4153 if test $ac_cv_header_stdc = yes; then
4154   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4155   if test "$cross_compiling" = yes; then
4156   :
4157 else
4158   cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164 #include <ctype.h>
4165 #if ((' ' & 0x0FF) == 0x020)
4166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4168 #else
4169 # define ISLOWER(c) \
4170                    (('a' <= (c) && (c) <= 'i') \
4171                      || ('j' <= (c) && (c) <= 'r') \
4172                      || ('s' <= (c) && (c) <= 'z'))
4173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4174 #endif
4175
4176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4177 int
4178 main ()
4179 {
4180   int i;
4181   for (i = 0; i < 256; i++)
4182     if (XOR (islower (i), ISLOWER (i))
4183         || toupper (i) != TOUPPER (i))
4184       exit(2);
4185   exit (0);
4186 }
4187 _ACEOF
4188 rm -f conftest$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190   (eval $ac_link) 2>&5
4191   ac_status=$?
4192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195   (eval $ac_try) 2>&5
4196   ac_status=$?
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); }; }; then
4199   :
4200 else
4201   echo "$as_me: program exited with status $ac_status" >&5
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205 ( exit $ac_status )
4206 ac_cv_header_stdc=no
4207 fi
4208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4209 fi
4210 fi
4211 fi
4212 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4213 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4214 if test $ac_cv_header_stdc = yes; then
4215
4216 cat >>confdefs.h <<\_ACEOF
4217 #define STDC_HEADERS 1
4218 _ACEOF
4219
4220 fi
4221
4222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4233                   inttypes.h stdint.h unistd.h
4234 do
4235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4236 echo "$as_me:$LINENO: checking for $ac_header" >&5
4237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h.  */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h.  */
4247 $ac_includes_default
4248
4249 #include <$ac_header>
4250 _ACEOF
4251 rm -f conftest.$ac_objext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253   (eval $ac_compile) 2>conftest.er1
4254   ac_status=$?
4255   grep -v '^ *+' conftest.er1 >conftest.err
4256   rm -f conftest.er1
4257   cat conftest.err >&5
4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259   (exit $ac_status); } &&
4260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262   (eval $ac_try) 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); }; } &&
4266          { ac_try='test -s conftest.$ac_objext'
4267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268   (eval $ac_try) 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; }; then
4272   eval "$as_ac_Header=yes"
4273 else
4274   echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 eval "$as_ac_Header=no"
4278 fi
4279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4280 fi
4281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4284   cat >>confdefs.h <<_ACEOF
4285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4286 _ACEOF
4287
4288 fi
4289
4290 done
4291
4292
4293
4294 for ac_header in dlfcn.h
4295 do
4296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4298   echo "$as_me:$LINENO: checking for $ac_header" >&5
4299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 fi
4303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4305 else
4306   # Is the header compilable?
4307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4309 cat >conftest.$ac_ext <<_ACEOF
4310 /* confdefs.h.  */
4311 _ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h.  */
4315 $ac_includes_default
4316 #include <$ac_header>
4317 _ACEOF
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320   (eval $ac_compile) 2>conftest.er1
4321   ac_status=$?
4322   grep -v '^ *+' conftest.er1 >conftest.err
4323   rm -f conftest.er1
4324   cat conftest.err >&5
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } &&
4327          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; } &&
4333          { ac_try='test -s conftest.$ac_objext'
4334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335   (eval $ac_try) 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   ac_header_compiler=yes
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ac_header_compiler=no
4345 fi
4346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4348 echo "${ECHO_T}$ac_header_compiler" >&6
4349
4350 # Is the header present?
4351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h.  */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h.  */
4359 #include <$ac_header>
4360 _ACEOF
4361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4362   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4363   ac_status=$?
4364   grep -v '^ *+' conftest.er1 >conftest.err
4365   rm -f conftest.er1
4366   cat conftest.err >&5
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); } >/dev/null; then
4369   if test -s conftest.err; then
4370     ac_cpp_err=$ac_c_preproc_warn_flag
4371     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4372   else
4373     ac_cpp_err=
4374   fi
4375 else
4376   ac_cpp_err=yes
4377 fi
4378 if test -z "$ac_cpp_err"; then
4379   ac_header_preproc=yes
4380 else
4381   echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384   ac_header_preproc=no
4385 fi
4386 rm -f conftest.err conftest.$ac_ext
4387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4388 echo "${ECHO_T}$ac_header_preproc" >&6
4389
4390 # So?  What about this header?
4391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4392   yes:no: )
4393     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4397     ac_header_preproc=yes
4398     ;;
4399   no:yes:* )
4400     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4402     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4403 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4404     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4406     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4407 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4410     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4412     (
4413       cat <<\_ASBOX
4414 ## ----------------------------------------- ##
4415 ## Report this to martin.quinson@ens-lyon.fr ##
4416 ## ----------------------------------------- ##
4417 _ASBOX
4418     ) |
4419       sed "s/^/$as_me: WARNING:     /" >&2
4420     ;;
4421 esac
4422 echo "$as_me:$LINENO: checking for $ac_header" >&5
4423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   eval "$as_ac_Header=\$ac_header_preproc"
4428 fi
4429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4431
4432 fi
4433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4434   cat >>confdefs.h <<_ACEOF
4435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4436 _ACEOF
4437
4438 fi
4439
4440 done
4441
4442 ac_ext=cc
4443 ac_cpp='$CXXCPP $CPPFLAGS'
4444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4447 if test -n "$ac_tool_prefix"; then
4448   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4449   do
4450     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4452 echo "$as_me:$LINENO: checking for $ac_word" >&5
4453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454 if test "${ac_cv_prog_CXX+set}" = set; then
4455   echo $ECHO_N "(cached) $ECHO_C" >&6
4456 else
4457   if test -n "$CXX"; then
4458   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4459 else
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463   IFS=$as_save_IFS
4464   test -z "$as_dir" && as_dir=.
4465   for ac_exec_ext in '' $ac_executable_extensions; do
4466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469     break 2
4470   fi
4471 done
4472 done
4473
4474 fi
4475 fi
4476 CXX=$ac_cv_prog_CXX
4477 if test -n "$CXX"; then
4478   echo "$as_me:$LINENO: result: $CXX" >&5
4479 echo "${ECHO_T}$CXX" >&6
4480 else
4481   echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4483 fi
4484
4485     test -n "$CXX" && break
4486   done
4487 fi
4488 if test -z "$CXX"; then
4489   ac_ct_CXX=$CXX
4490   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4491 do
4492   # Extract the first word of "$ac_prog", so it can be a program name with args.
4493 set dummy $ac_prog; ac_word=$2
4494 echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4497   echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499   if test -n "$ac_ct_CXX"; then
4500   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505   IFS=$as_save_IFS
4506   test -z "$as_dir" && as_dir=.
4507   for ac_exec_ext in '' $ac_executable_extensions; do
4508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509     ac_cv_prog_ac_ct_CXX="$ac_prog"
4510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511     break 2
4512   fi
4513 done
4514 done
4515
4516 fi
4517 fi
4518 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4519 if test -n "$ac_ct_CXX"; then
4520   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4521 echo "${ECHO_T}$ac_ct_CXX" >&6
4522 else
4523   echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6
4525 fi
4526
4527   test -n "$ac_ct_CXX" && break
4528 done
4529 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4530
4531   CXX=$ac_ct_CXX
4532 fi
4533
4534
4535 # Provide some information about the compiler.
4536 echo "$as_me:$LINENO:" \
4537      "checking for C++ compiler version" >&5
4538 ac_compiler=`set X $ac_compile; echo $2`
4539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4540   (eval $ac_compiler --version </dev/null >&5) 2>&5
4541   ac_status=$?
4542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); }
4544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4545   (eval $ac_compiler -v </dev/null >&5) 2>&5
4546   ac_status=$?
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); }
4549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4550   (eval $ac_compiler -V </dev/null >&5) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }
4554
4555 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4556 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4557 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566
4567 int
4568 main ()
4569 {
4570 #ifndef __GNUC__
4571        choke me
4572 #endif
4573
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580   (eval $ac_compile) 2>conftest.er1
4581   ac_status=$?
4582   grep -v '^ *+' conftest.er1 >conftest.err
4583   rm -f conftest.er1
4584   cat conftest.err >&5
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } &&
4587          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; } &&
4593          { ac_try='test -s conftest.$ac_objext'
4594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595   (eval $ac_try) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; }; then
4599   ac_compiler_gnu=yes
4600 else
4601   echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604 ac_compiler_gnu=no
4605 fi
4606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4608
4609 fi
4610 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4611 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4612 GXX=`test $ac_compiler_gnu = yes && echo yes`
4613 ac_test_CXXFLAGS=${CXXFLAGS+set}
4614 ac_save_CXXFLAGS=$CXXFLAGS
4615 CXXFLAGS="-g"
4616 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4617 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4618 if test "${ac_cv_prog_cxx_g+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621   cat >conftest.$ac_ext <<_ACEOF
4622 /* confdefs.h.  */
4623 _ACEOF
4624 cat confdefs.h >>conftest.$ac_ext
4625 cat >>conftest.$ac_ext <<_ACEOF
4626 /* end confdefs.h.  */
4627
4628 int
4629 main ()
4630 {
4631
4632   ;
4633   return 0;
4634 }
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638   (eval $ac_compile) 2>conftest.er1
4639   ac_status=$?
4640   grep -v '^ *+' conftest.er1 >conftest.err
4641   rm -f conftest.er1
4642   cat conftest.err >&5
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); } &&
4645          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647   (eval $ac_try) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; } &&
4651          { ac_try='test -s conftest.$ac_objext'
4652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653   (eval $ac_try) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657   ac_cv_prog_cxx_g=yes
4658 else
4659   echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_cv_prog_cxx_g=no
4663 fi
4664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4665 fi
4666 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4667 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4668 if test "$ac_test_CXXFLAGS" = set; then
4669   CXXFLAGS=$ac_save_CXXFLAGS
4670 elif test $ac_cv_prog_cxx_g = yes; then
4671   if test "$GXX" = yes; then
4672     CXXFLAGS="-g -O2"
4673   else
4674     CXXFLAGS="-g"
4675   fi
4676 else
4677   if test "$GXX" = yes; then
4678     CXXFLAGS="-O2"
4679   else
4680     CXXFLAGS=
4681   fi
4682 fi
4683 for ac_declaration in \
4684    '' \
4685    'extern "C" void std::exit (int) throw (); using std::exit;' \
4686    'extern "C" void std::exit (int); using std::exit;' \
4687    'extern "C" void exit (int) throw ();' \
4688    'extern "C" void exit (int);' \
4689    'void exit (int);'
4690 do
4691   cat >conftest.$ac_ext <<_ACEOF
4692 /* confdefs.h.  */
4693 _ACEOF
4694 cat confdefs.h >>conftest.$ac_ext
4695 cat >>conftest.$ac_ext <<_ACEOF
4696 /* end confdefs.h.  */
4697 $ac_declaration
4698 #include <stdlib.h>
4699 int
4700 main ()
4701 {
4702 exit (42);
4703   ;
4704   return 0;
4705 }
4706 _ACEOF
4707 rm -f conftest.$ac_objext
4708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4709   (eval $ac_compile) 2>conftest.er1
4710   ac_status=$?
4711   grep -v '^ *+' conftest.er1 >conftest.err
4712   rm -f conftest.er1
4713   cat conftest.err >&5
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); } &&
4716          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; } &&
4722          { ac_try='test -s conftest.$ac_objext'
4723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724   (eval $ac_try) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); }; }; then
4728   :
4729 else
4730   echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 continue
4734 fi
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736   cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742 $ac_declaration
4743 int
4744 main ()
4745 {
4746 exit (42);
4747   ;
4748   return 0;
4749 }
4750 _ACEOF
4751 rm -f conftest.$ac_objext
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753   (eval $ac_compile) 2>conftest.er1
4754   ac_status=$?
4755   grep -v '^ *+' conftest.er1 >conftest.err
4756   rm -f conftest.er1
4757   cat conftest.err >&5
4758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759   (exit $ac_status); } &&
4760          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762   (eval $ac_try) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; } &&
4766          { ac_try='test -s conftest.$ac_objext'
4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768   (eval $ac_try) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }; }; then
4772   break
4773 else
4774   echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 fi
4778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4779 done
4780 rm -f conftest*
4781 if test -n "$ac_declaration"; then
4782   echo '#ifdef __cplusplus' >>confdefs.h
4783   echo $ac_declaration      >>confdefs.h
4784   echo '#endif'             >>confdefs.h
4785 fi
4786
4787 ac_ext=cc
4788 ac_cpp='$CXXCPP $CPPFLAGS'
4789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4792
4793 depcc="$CXX"  am_compiler_list=
4794
4795 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4796 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4797 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4801   # We make a subdir and do the tests there.  Otherwise we can end up
4802   # making bogus files that we don't know about and never remove.  For
4803   # instance it was reported that on HP-UX the gcc test will end up
4804   # making a dummy file named `D' -- because `-MD' means `put the output
4805   # in D'.
4806   mkdir conftest.dir
4807   # Copy depcomp to subdir because otherwise we won't find it if we're
4808   # using a relative directory.
4809   cp "$am_depcomp" conftest.dir
4810   cd conftest.dir
4811   # We will build objects and dependencies in a subdirectory because
4812   # it helps to detect inapplicable dependency modes.  For instance
4813   # both Tru64's cc and ICC support -MD to output dependencies as a
4814   # side effect of compilation, but ICC will put the dependencies in
4815   # the current directory while Tru64 will put them in the object
4816   # directory.
4817   mkdir sub
4818
4819   am_cv_CXX_dependencies_compiler_type=none
4820   if test "$am_compiler_list" = ""; then
4821      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4822   fi
4823   for depmode in $am_compiler_list; do
4824     # Setup a source with many dependencies, because some compilers
4825     # like to wrap large dependency lists on column 80 (with \), and
4826     # we should not choose a depcomp mode which is confused by this.
4827     #
4828     # We need to recreate these files for each test, as the compiler may
4829     # overwrite some of them when testing with obscure command lines.
4830     # This happens at least with the AIX C compiler.
4831     : > sub/conftest.c
4832     for i in 1 2 3 4 5 6; do
4833       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4834       : > sub/conftst$i.h
4835     done
4836     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4837
4838     case $depmode in
4839     nosideeffect)
4840       # after this tag, mechanisms are not by side-effect, so they'll
4841       # only be used when explicitly requested
4842       if test "x$enable_dependency_tracking" = xyes; then
4843         continue
4844       else
4845         break
4846       fi
4847       ;;
4848     none) break ;;
4849     esac
4850     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4851     # mode.  It turns out that the SunPro C++ compiler does not properly
4852     # handle `-M -o', and we need to detect this.
4853     if depmode=$depmode \
4854        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4855        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4856        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4857          >/dev/null 2>conftest.err &&
4858        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4859        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4860        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4861       # icc doesn't choke on unknown options, it will just issue warnings
4862       # (even with -Werror).  So we grep stderr for any message
4863       # that says an option was ignored.
4864       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4865         am_cv_CXX_dependencies_compiler_type=$depmode
4866         break
4867       fi
4868     fi
4869   done
4870
4871   cd ..
4872   rm -rf conftest.dir
4873 else
4874   am_cv_CXX_dependencies_compiler_type=none
4875 fi
4876
4877 fi
4878 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4879 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4880 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4881
4882
4883
4884 if
4885   test "x$enable_dependency_tracking" != xno \
4886   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4887   am__fastdepCXX_TRUE=
4888   am__fastdepCXX_FALSE='#'
4889 else
4890   am__fastdepCXX_TRUE='#'
4891   am__fastdepCXX_FALSE=
4892 fi
4893
4894
4895 ac_ext=cc
4896 ac_cpp='$CXXCPP $CPPFLAGS'
4897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4900 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4901 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4902 if test -z "$CXXCPP"; then
4903   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906       # Double quotes because CXXCPP needs to be expanded
4907     for CXXCPP in "$CXX -E" "/lib/cpp"
4908     do
4909       ac_preproc_ok=false
4910 for ac_cxx_preproc_warn_flag in '' yes
4911 do
4912   # Use a header file that comes with gcc, so configuring glibc
4913   # with a fresh cross-compiler works.
4914   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915   # <limits.h> exists even on freestanding compilers.
4916   # On the NeXT, cc -E runs the code through the compiler's parser,
4917   # not just through cpp. "Syntax error" is here to catch this case.
4918   cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h.  */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h.  */
4924 #ifdef __STDC__
4925 # include <limits.h>
4926 #else
4927 # include <assert.h>
4928 #endif
4929                      Syntax error
4930 _ACEOF
4931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4932   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4933   ac_status=$?
4934   grep -v '^ *+' conftest.er1 >conftest.err
4935   rm -f conftest.er1
4936   cat conftest.err >&5
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); } >/dev/null; then
4939   if test -s conftest.err; then
4940     ac_cpp_err=$ac_cxx_preproc_warn_flag
4941     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4942   else
4943     ac_cpp_err=
4944   fi
4945 else
4946   ac_cpp_err=yes
4947 fi
4948 if test -z "$ac_cpp_err"; then
4949   :
4950 else
4951   echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4953
4954   # Broken: fails on valid input.
4955 continue
4956 fi
4957 rm -f conftest.err conftest.$ac_ext
4958
4959   # OK, works on sane cases.  Now check whether non-existent headers
4960   # can be detected and how.
4961   cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 #include <ac_nonexistent.h>
4968 _ACEOF
4969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } >/dev/null; then
4977   if test -s conftest.err; then
4978     ac_cpp_err=$ac_cxx_preproc_warn_flag
4979     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4980   else
4981     ac_cpp_err=
4982   fi
4983 else
4984   ac_cpp_err=yes
4985 fi
4986 if test -z "$ac_cpp_err"; then
4987   # Broken: success on invalid input.
4988 continue
4989 else
4990   echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993   # Passes both tests.
4994 ac_preproc_ok=:
4995 break
4996 fi
4997 rm -f conftest.err conftest.$ac_ext
4998
4999 done
5000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5001 rm -f conftest.err conftest.$ac_ext
5002 if $ac_preproc_ok; then
5003   break
5004 fi
5005
5006     done
5007     ac_cv_prog_CXXCPP=$CXXCPP
5008
5009 fi
5010   CXXCPP=$ac_cv_prog_CXXCPP
5011 else
5012   ac_cv_prog_CXXCPP=$CXXCPP
5013 fi
5014 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5015 echo "${ECHO_T}$CXXCPP" >&6
5016 ac_preproc_ok=false
5017 for ac_cxx_preproc_warn_flag in '' yes
5018 do
5019   # Use a header file that comes with gcc, so configuring glibc
5020   # with a fresh cross-compiler works.
5021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5022   # <limits.h> exists even on freestanding compilers.
5023   # On the NeXT, cc -E runs the code through the compiler's parser,
5024   # not just through cpp. "Syntax error" is here to catch this case.
5025   cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h.  */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h.  */
5031 #ifdef __STDC__
5032 # include <limits.h>
5033 #else
5034 # include <assert.h>
5035 #endif
5036                      Syntax error
5037 _ACEOF
5038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } >/dev/null; then
5046   if test -s conftest.err; then
5047     ac_cpp_err=$ac_cxx_preproc_warn_flag
5048     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5049   else
5050     ac_cpp_err=
5051   fi
5052 else
5053   ac_cpp_err=yes
5054 fi
5055 if test -z "$ac_cpp_err"; then
5056   :
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061   # Broken: fails on valid input.
5062 continue
5063 fi
5064 rm -f conftest.err conftest.$ac_ext
5065
5066   # OK, works on sane cases.  Now check whether non-existent headers
5067   # can be detected and how.
5068   cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 #include <ac_nonexistent.h>
5075 _ACEOF
5076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078   ac_status=$?
5079   grep -v '^ *+' conftest.er1 >conftest.err
5080   rm -f conftest.er1
5081   cat conftest.err >&5
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); } >/dev/null; then
5084   if test -s conftest.err; then
5085     ac_cpp_err=$ac_cxx_preproc_warn_flag
5086     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5087   else
5088     ac_cpp_err=
5089   fi
5090 else
5091   ac_cpp_err=yes
5092 fi
5093 if test -z "$ac_cpp_err"; then
5094   # Broken: success on invalid input.
5095 continue
5096 else
5097   echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100   # Passes both tests.
5101 ac_preproc_ok=:
5102 break
5103 fi
5104 rm -f conftest.err conftest.$ac_ext
5105
5106 done
5107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108 rm -f conftest.err conftest.$ac_ext
5109 if $ac_preproc_ok; then
5110   :
5111 else
5112   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5113 See \`config.log' for more details." >&5
5114 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5115 See \`config.log' for more details." >&2;}
5116    { (exit 1); exit 1; }; }
5117 fi
5118
5119 ac_ext=cc
5120 ac_cpp='$CXXCPP $CPPFLAGS'
5121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124
5125
5126 ac_ext=f
5127 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5128 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5129 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5130 if test -n "$ac_tool_prefix"; then
5131   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5132   do
5133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5135 echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5137 if test "${ac_cv_prog_F77+set}" = set; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   if test -n "$F77"; then
5141   ac_cv_prog_F77="$F77" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148   for ac_exec_ext in '' $ac_executable_extensions; do
5149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152     break 2
5153   fi
5154 done
5155 done
5156
5157 fi
5158 fi
5159 F77=$ac_cv_prog_F77
5160 if test -n "$F77"; then
5161   echo "$as_me:$LINENO: result: $F77" >&5
5162 echo "${ECHO_T}$F77" >&6
5163 else
5164   echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6
5166 fi
5167
5168     test -n "$F77" && break
5169   done
5170 fi
5171 if test -z "$F77"; then
5172   ac_ct_F77=$F77
5173   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5174 do
5175   # Extract the first word of "$ac_prog", so it can be a program name with args.
5176 set dummy $ac_prog; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   if test -n "$ac_ct_F77"; then
5183   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190   for ac_exec_ext in '' $ac_executable_extensions; do
5191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192     ac_cv_prog_ac_ct_F77="$ac_prog"
5193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197 done
5198
5199 fi
5200 fi
5201 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5202 if test -n "$ac_ct_F77"; then
5203   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5204 echo "${ECHO_T}$ac_ct_F77" >&6
5205 else
5206   echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5208 fi
5209
5210   test -n "$ac_ct_F77" && break
5211 done
5212
5213   F77=$ac_ct_F77
5214 fi
5215
5216
5217 # Provide some information about the compiler.
5218 echo "$as_me:5218:" \
5219      "checking for Fortran 77 compiler version" >&5
5220 ac_compiler=`set X $ac_compile; echo $2`
5221 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5222   (eval $ac_compiler --version </dev/null >&5) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }
5226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5227   (eval $ac_compiler -v </dev/null >&5) 2>&5
5228   ac_status=$?
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); }
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5232   (eval $ac_compiler -V </dev/null >&5) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); }
5236 rm -f a.out
5237
5238 # If we don't use `.F' as extension, the preprocessor is not run on the
5239 # input file.  (Note that this only needs to work for GNU compilers.)
5240 ac_save_ext=$ac_ext
5241 ac_ext=F
5242 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5243 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5244 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   cat >conftest.$ac_ext <<_ACEOF
5248       program main
5249 #ifndef __GNUC__
5250        choke me
5251 #endif
5252
5253       end
5254 _ACEOF
5255 rm -f conftest.$ac_objext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5257   (eval $ac_compile) 2>conftest.er1
5258   ac_status=$?
5259   grep -v '^ *+' conftest.er1 >conftest.err
5260   rm -f conftest.er1
5261   cat conftest.err >&5
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } &&
5264          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266   (eval $ac_try) 2>&5
5267   ac_status=$?
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); }; } &&
5270          { ac_try='test -s conftest.$ac_objext'
5271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272   (eval $ac_try) 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; }; then
5276   ac_compiler_gnu=yes
5277 else
5278   echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 ac_compiler_gnu=no
5282 fi
5283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5284 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5285
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5288 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5289 ac_ext=$ac_save_ext
5290 ac_test_FFLAGS=${FFLAGS+set}
5291 ac_save_FFLAGS=$FFLAGS
5292 FFLAGS=
5293 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5294 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5295 if test "${ac_cv_prog_f77_g+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   FFLAGS=-g
5299 cat >conftest.$ac_ext <<_ACEOF
5300       program main
5301
5302       end
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306   (eval $ac_compile) 2>conftest.er1
5307   ac_status=$?
5308   grep -v '^ *+' conftest.er1 >conftest.err
5309   rm -f conftest.er1
5310   cat conftest.err >&5
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; } &&
5319          { ac_try='test -s conftest.$ac_objext'
5320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321   (eval $ac_try) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   ac_cv_prog_f77_g=yes
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 ac_cv_prog_f77_g=no
5331 fi
5332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5333
5334 fi
5335 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5336 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5337 if test "$ac_test_FFLAGS" = set; then
5338   FFLAGS=$ac_save_FFLAGS
5339 elif test $ac_cv_prog_f77_g = yes; then
5340   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5341     FFLAGS="-g -O2"
5342   else
5343     FFLAGS="-g"
5344   fi
5345 else
5346   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5347     FFLAGS="-O2"
5348   else
5349     FFLAGS=
5350   fi
5351 fi
5352
5353 G77=`test $ac_compiler_gnu = yes && echo yes`
5354 ac_ext=c
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359
5360
5361
5362 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5363
5364 # find the maximum length of command line arguments
5365 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5366 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5367 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5368   echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370     i=0
5371   testring="ABCD"
5372
5373   case $build_os in
5374   msdosdjgpp*)
5375     # On DJGPP, this test can blow up pretty badly due to problems in libc
5376     # (any single argument exceeding 2000 bytes causes a buffer overrun
5377     # during glob expansion).  Even if it were fixed, the result of this
5378     # check would be larger than it should be.
5379     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5380     ;;
5381
5382   gnu*)
5383     # Under GNU Hurd, this test is not required because there is
5384     # no limit to the length of command line arguments.
5385     # Libtool will interpret -1 as no limit whatsoever
5386     lt_cv_sys_max_cmd_len=-1;
5387     ;;
5388
5389   cygwin* | mingw*)
5390     # On Win9x/ME, this test blows up -- it succeeds, but takes
5391     # about 5 minutes as the teststring grows exponentially.
5392     # Worse, since 9x/ME are not pre-emptively multitasking,
5393     # you end up with a "frozen" computer, even though with patience
5394     # the test eventually succeeds (with a max line length of 256k).
5395     # Instead, let's just punt: use the minimum linelength reported by
5396     # all of the supported platforms: 8192 (on NT/2K/XP).
5397     lt_cv_sys_max_cmd_len=8192;
5398     ;;
5399
5400   amigaos*)
5401     # On AmigaOS with pdksh, this test takes hours, literally.
5402     # So we just punt and use a minimum line length of 8192.
5403     lt_cv_sys_max_cmd_len=8192;
5404     ;;
5405
5406  *)
5407     # If test is not a shell built-in, we'll probably end up computing a
5408     # maximum length that is only half of the actual maximum length, but
5409     # we can't tell.
5410     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5411                = "XX$testring") >/dev/null 2>&1 &&
5412             new_result=`expr "X$testring" : ".*" 2>&1` &&
5413             lt_cv_sys_max_cmd_len=$new_result &&
5414             test $i != 17 # 1/2 MB should be enough
5415     do
5416       i=`expr $i + 1`
5417       testring=$testring$testring
5418     done
5419     testring=
5420     # Add a significant safety factor because C++ compilers can tack on massive
5421     # amounts of additional arguments before passing them to the linker.
5422     # It appears as though 1/2 is a usable value.
5423     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5424     ;;
5425   esac
5426
5427 fi
5428
5429 if test -n $lt_cv_sys_max_cmd_len ; then
5430   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5431 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5432 else
5433   echo "$as_me:$LINENO: result: none" >&5
5434 echo "${ECHO_T}none" >&6
5435 fi
5436
5437
5438
5439
5440 # Check for command to grab the raw symbol name followed by C symbol from nm.
5441 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5442 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5443 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446
5447 # These are sane defaults that work on at least a few old systems.
5448 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5449
5450 # Character class describing NM global symbol codes.
5451 symcode='[BCDEGRST]'
5452
5453 # Regexp to match symbols that can be accessed directly from C.
5454 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5455
5456 # Transform the above into a raw symbol and a C symbol.
5457 symxfrm='\1 \2\3 \3'
5458
5459 # Transform an extracted symbol line into a proper C declaration
5460 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5461
5462 # Transform an extracted symbol line into symbol name and symbol address
5463 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'"
5464
5465 # Define system-specific variables.
5466 case $host_os in
5467 aix*)
5468   symcode='[BCDT]'
5469   ;;
5470 cygwin* | mingw* | pw32*)
5471   symcode='[ABCDGISTW]'
5472   ;;
5473 hpux*) # Its linker distinguishes data from code symbols
5474   if test "$host_cpu" = ia64; then
5475     symcode='[ABCDEGRST]'
5476   fi
5477   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5478   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'"
5479   ;;
5480 irix* | nonstopux*)
5481   symcode='[BCDEGRST]'
5482   ;;
5483 osf*)
5484   symcode='[BCDEGQRST]'
5485   ;;
5486 solaris* | sysv5*)
5487   symcode='[BDRT]'
5488   ;;
5489 sysv4)
5490   symcode='[DFNSTU]'
5491   ;;
5492 esac
5493
5494 # Handle CRLF in mingw tool chain
5495 opt_cr=
5496 case $build_os in
5497 mingw*)
5498   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5499   ;;
5500 esac
5501
5502 # If we're using GNU nm, then use its standard symbol codes.
5503 case `$NM -V 2>&1` in
5504 *GNU* | *'with BFD'*)
5505   symcode='[ABCDGIRSTW]' ;;
5506 esac
5507
5508 # Try without a prefix undercore, then with it.
5509 for ac_symprfx in "" "_"; do
5510
5511   # Write the raw and C identifiers.
5512   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5513
5514   # Check to see that the pipe works correctly.
5515   pipe_works=no
5516
5517   rm -f conftest*
5518   cat > conftest.$ac_ext <<EOF
5519 #ifdef __cplusplus
5520 extern "C" {
5521 #endif
5522 char nm_test_var;
5523 void nm_test_func(){}
5524 #ifdef __cplusplus
5525 }
5526 #endif
5527 int main(){nm_test_var='a';nm_test_func();return(0);}
5528 EOF
5529
5530   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531   (eval $ac_compile) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }; then
5535     # Now try to grab the symbols.
5536     nlist=conftest.nm
5537     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5538   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } && test -s "$nlist"; then
5542       # Try sorting and uniquifying the output.
5543       if sort "$nlist" | uniq > "$nlist"T; then
5544         mv -f "$nlist"T "$nlist"
5545       else
5546         rm -f "$nlist"T
5547       fi
5548
5549       # Make sure that we snagged all the symbols we need.
5550       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5551         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5552           cat <<EOF > conftest.$ac_ext
5553 #ifdef __cplusplus
5554 extern "C" {
5555 #endif
5556
5557 EOF
5558           # Now generate the symbol file.
5559           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5560
5561           cat <<EOF >> conftest.$ac_ext
5562 #if defined (__STDC__) && __STDC__
5563 # define lt_ptr_t void *
5564 #else
5565 # define lt_ptr_t char *
5566 # define const
5567 #endif
5568
5569 /* The mapping between symbol names and symbols. */
5570 const struct {
5571   const char *name;
5572   lt_ptr_t address;
5573 }
5574 lt_preloaded_symbols[] =
5575 {
5576 EOF
5577           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5578           cat <<\EOF >> conftest.$ac_ext
5579   {0, (lt_ptr_t) 0}
5580 };
5581
5582 #ifdef __cplusplus
5583 }
5584 #endif
5585 EOF
5586           # Now try linking the two files.
5587           mv conftest.$ac_objext conftstm.$ac_objext
5588           lt_save_LIBS="$LIBS"
5589           lt_save_CFLAGS="$CFLAGS"
5590           LIBS="conftstm.$ac_objext"
5591           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5592           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593   (eval $ac_link) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5597             pipe_works=yes
5598           fi
5599           LIBS="$lt_save_LIBS"
5600           CFLAGS="$lt_save_CFLAGS"
5601         else
5602           echo "cannot find nm_test_func in $nlist" >&5
5603         fi
5604       else
5605         echo "cannot find nm_test_var in $nlist" >&5
5606       fi
5607     else
5608       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5609     fi
5610   else
5611     echo "$progname: failed program was:" >&5
5612     cat conftest.$ac_ext >&5
5613   fi
5614   rm -f conftest* conftst*
5615
5616   # Do not use the global_symbol_pipe unless it works.
5617   if test "$pipe_works" = yes; then
5618     break
5619   else
5620     lt_cv_sys_global_symbol_pipe=
5621   fi
5622 done
5623
5624 fi
5625
5626 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5627   lt_cv_sys_global_symbol_to_cdecl=
5628 fi
5629 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5630   echo "$as_me:$LINENO: result: failed" >&5
5631 echo "${ECHO_T}failed" >&6
5632 else
5633   echo "$as_me:$LINENO: result: ok" >&5
5634 echo "${ECHO_T}ok" >&6
5635 fi
5636
5637 echo "$as_me:$LINENO: checking for objdir" >&5
5638 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5639 if test "${lt_cv_objdir+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   rm -f .libs 2>/dev/null
5643 mkdir .libs 2>/dev/null
5644 if test -d .libs; then
5645   lt_cv_objdir=.libs
5646 else
5647   # MS-DOS does not allow filenames that begin with a dot.
5648   lt_cv_objdir=_libs
5649 fi
5650 rmdir .libs 2>/dev/null
5651 fi
5652 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5653 echo "${ECHO_T}$lt_cv_objdir" >&6
5654 objdir=$lt_cv_objdir
5655
5656
5657
5658
5659
5660 case $host_os in
5661 aix3*)
5662   # AIX sometimes has problems with the GCC collect2 program.  For some
5663   # reason, if we set the COLLECT_NAMES environment variable, the problems
5664   # vanish in a puff of smoke.
5665   if test "X${COLLECT_NAMES+set}" != Xset; then
5666     COLLECT_NAMES=
5667     export COLLECT_NAMES
5668   fi
5669   ;;
5670 esac
5671
5672 # Sed substitution that helps us do robust quoting.  It backslashifies
5673 # metacharacters that are still active within double-quoted strings.
5674 Xsed='sed -e s/^X//'
5675 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5676
5677 # Same as above, but do not quote variable references.
5678 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5679
5680 # Sed substitution to delay expansion of an escaped shell variable in a
5681 # double_quote_subst'ed string.
5682 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5683
5684 # Sed substitution to avoid accidental globbing in evaled expressions
5685 no_glob_subst='s/\*/\\\*/g'
5686
5687 # Constants:
5688 rm="rm -f"
5689
5690 # Global variables:
5691 default_ofile=libtool
5692 can_build_shared=yes
5693
5694 # All known linkers require a `.a' archive for static linking (except M$VC,
5695 # which needs '.lib').
5696 libext=a
5697 ltmain="$ac_aux_dir/ltmain.sh"
5698 ofile="$default_ofile"
5699 with_gnu_ld="$lt_cv_prog_gnu_ld"
5700
5701 if test -n "$ac_tool_prefix"; then
5702   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5703 set dummy ${ac_tool_prefix}ar; ac_word=$2
5704 echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5706 if test "${ac_cv_prog_AR+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   if test -n "$AR"; then
5710   ac_cv_prog_AR="$AR" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715   IFS=$as_save_IFS
5716   test -z "$as_dir" && as_dir=.
5717   for ac_exec_ext in '' $ac_executable_extensions; do
5718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719     ac_cv_prog_AR="${ac_tool_prefix}ar"
5720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721     break 2
5722   fi
5723 done
5724 done
5725
5726 fi
5727 fi
5728 AR=$ac_cv_prog_AR
5729 if test -n "$AR"; then
5730   echo "$as_me:$LINENO: result: $AR" >&5
5731 echo "${ECHO_T}$AR" >&6
5732 else
5733   echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5735 fi
5736
5737 fi
5738 if test -z "$ac_cv_prog_AR"; then
5739   ac_ct_AR=$AR
5740   # Extract the first word of "ar", so it can be a program name with args.
5741 set dummy ar; ac_word=$2
5742 echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   if test -n "$ac_ct_AR"; then
5748   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755   for ac_exec_ext in '' $ac_executable_extensions; do
5756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757     ac_cv_prog_ac_ct_AR="ar"
5758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762 done
5763
5764   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5765 fi
5766 fi
5767 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5768 if test -n "$ac_ct_AR"; then
5769   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5770 echo "${ECHO_T}$ac_ct_AR" >&6
5771 else
5772   echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6
5774 fi
5775
5776   AR=$ac_ct_AR
5777 else
5778   AR="$ac_cv_prog_AR"
5779 fi
5780
5781 if test -n "$ac_tool_prefix"; then
5782   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5784 echo "$as_me:$LINENO: checking for $ac_word" >&5
5785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5786 if test "${ac_cv_prog_RANLIB+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   if test -n "$RANLIB"; then
5790   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5791 else
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795   IFS=$as_save_IFS
5796   test -z "$as_dir" && as_dir=.
5797   for ac_exec_ext in '' $ac_executable_extensions; do
5798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801     break 2
5802   fi
5803 done
5804 done
5805
5806 fi
5807 fi
5808 RANLIB=$ac_cv_prog_RANLIB
5809 if test -n "$RANLIB"; then
5810   echo "$as_me:$LINENO: result: $RANLIB" >&5
5811 echo "${ECHO_T}$RANLIB" >&6
5812 else
5813   echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6
5815 fi
5816
5817 fi
5818 if test -z "$ac_cv_prog_RANLIB"; then
5819   ac_ct_RANLIB=$RANLIB
5820   # Extract the first word of "ranlib", so it can be a program name with args.
5821 set dummy ranlib; ac_word=$2
5822 echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   if test -n "$ac_ct_RANLIB"; then
5828   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833   IFS=$as_save_IFS
5834   test -z "$as_dir" && as_dir=.
5835   for ac_exec_ext in '' $ac_executable_extensions; do
5836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837     ac_cv_prog_ac_ct_RANLIB="ranlib"
5838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840   fi
5841 done
5842 done
5843
5844   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5845 fi
5846 fi
5847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5848 if test -n "$ac_ct_RANLIB"; then
5849   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5850 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5851 else
5852   echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6
5854 fi
5855
5856   RANLIB=$ac_ct_RANLIB
5857 else
5858   RANLIB="$ac_cv_prog_RANLIB"
5859 fi
5860
5861 if test -n "$ac_tool_prefix"; then
5862   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}strip; ac_word=$2
5864 echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5866 if test "${ac_cv_prog_STRIP+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$STRIP"; then
5870   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885
5886 fi
5887 fi
5888 STRIP=$ac_cv_prog_STRIP
5889 if test -n "$STRIP"; then
5890   echo "$as_me:$LINENO: result: $STRIP" >&5
5891 echo "${ECHO_T}$STRIP" >&6
5892 else
5893   echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5895 fi
5896
5897 fi
5898 if test -z "$ac_cv_prog_STRIP"; then
5899   ac_ct_STRIP=$STRIP
5900   # Extract the first word of "strip", so it can be a program name with args.
5901 set dummy strip; ac_word=$2
5902 echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   if test -n "$ac_ct_STRIP"; then
5908   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_exec_ext in '' $ac_executable_extensions; do
5916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917     ac_cv_prog_ac_ct_STRIP="strip"
5918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922 done
5923
5924   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5925 fi
5926 fi
5927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5928 if test -n "$ac_ct_STRIP"; then
5929   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5930 echo "${ECHO_T}$ac_ct_STRIP" >&6
5931 else
5932   echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5934 fi
5935
5936   STRIP=$ac_ct_STRIP
5937 else
5938   STRIP="$ac_cv_prog_STRIP"
5939 fi
5940
5941
5942 old_CC="$CC"
5943 old_CFLAGS="$CFLAGS"
5944
5945 # Set sane defaults for various variables
5946 test -z "$AR" && AR=ar
5947 test -z "$AR_FLAGS" && AR_FLAGS=cru
5948 test -z "$AS" && AS=as
5949 test -z "$CC" && CC=cc
5950 test -z "$LTCC" && LTCC=$CC
5951 test -z "$DLLTOOL" && DLLTOOL=dlltool
5952 test -z "$LD" && LD=ld
5953 test -z "$LN_S" && LN_S="ln -s"
5954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5955 test -z "$NM" && NM=nm
5956 test -z "$SED" && SED=sed
5957 test -z "$OBJDUMP" && OBJDUMP=objdump
5958 test -z "$RANLIB" && RANLIB=:
5959 test -z "$STRIP" && STRIP=:
5960 test -z "$ac_objext" && ac_objext=o
5961
5962 # Determine commands to create old-style static archives.
5963 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5964 old_postinstall_cmds='chmod 644 $oldlib'
5965 old_postuninstall_cmds=
5966
5967 if test -n "$RANLIB"; then
5968   case $host_os in
5969   openbsd*)
5970     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5971     ;;
5972   *)
5973     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5974     ;;
5975   esac
5976   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5977 fi
5978
5979 # Only perform the check for file, if the check method requires it
5980 case $deplibs_check_method in
5981 file_magic*)
5982   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5983     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5984 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5985 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   case $MAGIC_CMD in
5989 [\\/*] |  ?:[\\/]*)
5990   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5991   ;;
5992 *)
5993   lt_save_MAGIC_CMD="$MAGIC_CMD"
5994   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5995   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5996   for ac_dir in $ac_dummy; do
5997     IFS="$lt_save_ifs"
5998     test -z "$ac_dir" && ac_dir=.
5999     if test -f $ac_dir/${ac_tool_prefix}file; then
6000       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6001       if test -n "$file_magic_test_file"; then
6002         case $deplibs_check_method in
6003         "file_magic "*)
6004           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6005           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6006           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6007             $EGREP "$file_magic_regex" > /dev/null; then
6008             :
6009           else
6010             cat <<EOF 1>&2
6011
6012 *** Warning: the command libtool uses to detect shared libraries,
6013 *** $file_magic_cmd, produces output that libtool cannot recognize.
6014 *** The result is that libtool may fail to recognize shared libraries
6015 *** as such.  This will affect the creation of libtool libraries that
6016 *** depend on shared libraries, but programs linked with such libtool
6017 *** libraries will work regardless of this problem.  Nevertheless, you
6018 *** may want to report the problem to your system manager and/or to
6019 *** bug-libtool@gnu.org
6020
6021 EOF
6022           fi ;;
6023         esac
6024       fi
6025       break
6026     fi
6027   done
6028   IFS="$lt_save_ifs"
6029   MAGIC_CMD="$lt_save_MAGIC_CMD"
6030   ;;
6031 esac
6032 fi
6033
6034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035 if test -n "$MAGIC_CMD"; then
6036   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6037 echo "${ECHO_T}$MAGIC_CMD" >&6
6038 else
6039   echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6041 fi
6042
6043 if test -z "$lt_cv_path_MAGIC_CMD"; then
6044   if test -n "$ac_tool_prefix"; then
6045     echo "$as_me:$LINENO: checking for file" >&5
6046 echo $ECHO_N "checking for file... $ECHO_C" >&6
6047 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   case $MAGIC_CMD in
6051 [\\/*] |  ?:[\\/]*)
6052   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6053   ;;
6054 *)
6055   lt_save_MAGIC_CMD="$MAGIC_CMD"
6056   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6057   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6058   for ac_dir in $ac_dummy; do
6059     IFS="$lt_save_ifs"
6060     test -z "$ac_dir" && ac_dir=.
6061     if test -f $ac_dir/file; then
6062       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6063       if test -n "$file_magic_test_file"; then
6064         case $deplibs_check_method in
6065         "file_magic "*)
6066           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6067           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6068           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6069             $EGREP "$file_magic_regex" > /dev/null; then
6070             :
6071           else
6072             cat <<EOF 1>&2
6073
6074 *** Warning: the command libtool uses to detect shared libraries,
6075 *** $file_magic_cmd, produces output that libtool cannot recognize.
6076 *** The result is that libtool may fail to recognize shared libraries
6077 *** as such.  This will affect the creation of libtool libraries that
6078 *** depend on shared libraries, but programs linked with such libtool
6079 *** libraries will work regardless of this problem.  Nevertheless, you
6080 *** may want to report the problem to your system manager and/or to
6081 *** bug-libtool@gnu.org
6082
6083 EOF
6084           fi ;;
6085         esac
6086       fi
6087       break
6088     fi
6089   done
6090   IFS="$lt_save_ifs"
6091   MAGIC_CMD="$lt_save_MAGIC_CMD"
6092   ;;
6093 esac
6094 fi
6095
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if test -n "$MAGIC_CMD"; then
6098   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6099 echo "${ECHO_T}$MAGIC_CMD" >&6
6100 else
6101   echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6
6103 fi
6104
6105   else
6106     MAGIC_CMD=:
6107   fi
6108 fi
6109
6110   fi
6111   ;;
6112 esac
6113
6114 enable_dlopen=no
6115 enable_win32_dll=no
6116
6117 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6118 if test "${enable_libtool_lock+set}" = set; then
6119   enableval="$enable_libtool_lock"
6120
6121 fi;
6122 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6123
6124
6125 # Check whether --with-pic or --without-pic was given.
6126 if test "${with_pic+set}" = set; then
6127   withval="$with_pic"
6128   pic_mode="$withval"
6129 else
6130   pic_mode=default
6131 fi;
6132 test -z "$pic_mode" && pic_mode=default
6133
6134 # Use C for the default configuration in the libtool script
6135 tagname=
6136 lt_save_CC="$CC"
6137 ac_ext=c
6138 ac_cpp='$CPP $CPPFLAGS'
6139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6142
6143
6144 # Source file extension for C test sources.
6145 ac_ext=c
6146
6147 # Object file extension for compiled C test sources.
6148 objext=o
6149 objext=$objext
6150
6151 # Code to be used in simple compile tests
6152 lt_simple_compile_test_code="int some_variable = 0;\n"
6153
6154 # Code to be used in simple link tests
6155 lt_simple_link_test_code='int main(){return(0);}\n'
6156
6157
6158 # If no C compiler was specified, use CC.
6159 LTCC=${LTCC-"$CC"}
6160
6161 # Allow CC to be a program name with arguments.
6162 compiler=$CC
6163
6164
6165 #
6166 # Check for any special shared library compilation flags.
6167 #
6168 lt_prog_cc_shlib=
6169 if test "$GCC" = no; then
6170   case $host_os in
6171   sco3.2v5*)
6172     lt_prog_cc_shlib='-belf'
6173     ;;
6174   esac
6175 fi
6176 if test -n "$lt_prog_cc_shlib"; then
6177   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6178 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6179   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6180   else
6181     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6182 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6183     lt_cv_prog_cc_can_build_shared=no
6184   fi
6185 fi
6186
6187
6188 #
6189 # Check to make sure the static flag actually works.
6190 #
6191 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6192 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6193 if test "${lt_prog_compiler_static_works+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   lt_prog_compiler_static_works=no
6197    save_LDFLAGS="$LDFLAGS"
6198    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6199    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6200    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6201      # The compiler can only warn and ignore the option if not recognized
6202      # So say no if there are warnings
6203      if test -s conftest.err; then
6204        # Append any errors to the config.log.
6205        cat conftest.err 1>&5
6206      else
6207        lt_prog_compiler_static_works=yes
6208      fi
6209    fi
6210    $rm conftest*
6211    LDFLAGS="$save_LDFLAGS"
6212
6213 fi
6214 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6215 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6216
6217 if test x"$lt_prog_compiler_static_works" = xyes; then
6218     :
6219 else
6220     lt_prog_compiler_static=
6221 fi
6222
6223
6224
6225
6226 lt_prog_compiler_no_builtin_flag=
6227
6228 if test "$GCC" = yes; then
6229   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6230
6231
6232 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6233 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6234 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   lt_cv_prog_compiler_rtti_exceptions=no
6238   ac_outfile=conftest.$ac_objext
6239    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6240    lt_compiler_flag="-fno-rtti -fno-exceptions"
6241    # Insert the option either (1) after the last *FLAGS variable, or
6242    # (2) before a word containing "conftest.", or (3) at the end.
6243    # Note that $ac_compile itself does not contain backslashes and begins
6244    # with a dollar sign (not a hyphen), so the echo should work correctly.
6245    # The option is referenced via a variable to avoid confusing sed.
6246    lt_compile=`echo "$ac_compile" | $SED \
6247    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6249    -e 's:$: $lt_compiler_flag:'`
6250    (eval echo "\"\$as_me:6250: $lt_compile\"" >&5)
6251    (eval "$lt_compile" 2>conftest.err)
6252    ac_status=$?
6253    cat conftest.err >&5
6254    echo "$as_me:6254: \$? = $ac_status" >&5
6255    if (exit $ac_status) && test -s "$ac_outfile"; then
6256      # The compiler can only warn and ignore the option if not recognized
6257      # So say no if there are warnings
6258      if test ! -s conftest.err; then
6259        lt_cv_prog_compiler_rtti_exceptions=yes
6260      fi
6261    fi
6262    $rm conftest*
6263
6264 fi
6265 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6266 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6267
6268 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6269     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6270 else
6271     :
6272 fi
6273
6274 fi
6275
6276 lt_prog_compiler_wl=
6277 lt_prog_compiler_pic=
6278 lt_prog_compiler_static=
6279
6280 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6281 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6282
6283   if test "$GCC" = yes; then
6284     lt_prog_compiler_wl='-Wl,'
6285     lt_prog_compiler_static='-static'
6286
6287     case $host_os in
6288       aix*)
6289       # All AIX code is PIC.
6290       if test "$host_cpu" = ia64; then
6291         # AIX 5 now supports IA64 processor
6292         lt_prog_compiler_static='-Bstatic'
6293       fi
6294       ;;
6295
6296     amigaos*)
6297       # FIXME: we need at least 68020 code to build shared libraries, but
6298       # adding the `-m68020' flag to GCC prevents building anything better,
6299       # like `-m68040'.
6300       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6301       ;;
6302
6303     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6304       # PIC is the default for these OSes.
6305       ;;
6306
6307     mingw* | pw32* | os2*)
6308       # This hack is so that the source file can tell whether it is being
6309       # built for inclusion in a dll (and should export symbols for example).
6310       lt_prog_compiler_pic='-DDLL_EXPORT'
6311       ;;
6312
6313     darwin* | rhapsody*)
6314       # PIC is the default on this platform
6315       # Common symbols not allowed in MH_DYLIB files
6316       lt_prog_compiler_pic='-fno-common'
6317       ;;
6318
6319     msdosdjgpp*)
6320       # Just because we use GCC doesn't mean we suddenly get shared libraries
6321       # on systems that don't support them.
6322       lt_prog_compiler_can_build_shared=no
6323       enable_shared=no
6324       ;;
6325
6326     sysv4*MP*)
6327       if test -d /usr/nec; then
6328         lt_prog_compiler_pic=-Kconform_pic
6329       fi
6330       ;;
6331
6332     hpux*)
6333       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6334       # not for PA HP-UX.
6335       case "$host_cpu" in
6336       hppa*64*|ia64*)
6337         # +Z the default
6338         ;;
6339       *)
6340         lt_prog_compiler_pic='-fPIC'
6341         ;;
6342       esac
6343       ;;
6344
6345     *)
6346       lt_prog_compiler_pic='-fPIC'
6347       ;;
6348     esac
6349   else
6350     # PORTME Check for flag to pass linker flags through the system compiler.
6351     case $host_os in
6352     aix*)
6353       lt_prog_compiler_wl='-Wl,'
6354       if test "$host_cpu" = ia64; then
6355         # AIX 5 now supports IA64 processor
6356         lt_prog_compiler_static='-Bstatic'
6357       else
6358         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6359       fi
6360       ;;
6361
6362     mingw* | pw32* | os2*)
6363       # This hack is so that the source file can tell whether it is being
6364       # built for inclusion in a dll (and should export symbols for example).
6365       lt_prog_compiler_pic='-DDLL_EXPORT'
6366       ;;
6367
6368     hpux9* | hpux10* | hpux11*)
6369       lt_prog_compiler_wl='-Wl,'
6370       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6371       # not for PA HP-UX.
6372       case "$host_cpu" in
6373       hppa*64*|ia64*)
6374         # +Z the default
6375         ;;
6376       *)
6377         lt_prog_compiler_pic='+Z'
6378         ;;
6379       esac
6380       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6381       lt_prog_compiler_static='${wl}-a ${wl}archive'
6382       ;;
6383
6384     irix5* | irix6* | nonstopux*)
6385       lt_prog_compiler_wl='-Wl,'
6386       # PIC (with -KPIC) is the default.
6387       lt_prog_compiler_static='-non_shared'
6388       ;;
6389
6390     newsos6)
6391       lt_prog_compiler_pic='-KPIC'
6392       lt_prog_compiler_static='-Bstatic'
6393       ;;
6394
6395     linux*)
6396       case $CC in
6397       icc* | ecc*)
6398         lt_prog_compiler_wl='-Wl,'
6399         lt_prog_compiler_pic='-KPIC'
6400         lt_prog_compiler_static='-static'
6401         ;;
6402       ccc*)
6403         lt_prog_compiler_wl='-Wl,'
6404         # All Alpha code is PIC.
6405         lt_prog_compiler_static='-non_shared'
6406         ;;
6407       esac
6408       ;;
6409
6410     osf3* | osf4* | osf5*)
6411       lt_prog_compiler_wl='-Wl,'
6412       # All OSF/1 code is PIC.
6413       lt_prog_compiler_static='-non_shared'
6414       ;;
6415
6416     sco3.2v5*)
6417       lt_prog_compiler_pic='-Kpic'
6418       lt_prog_compiler_static='-dn'
6419       ;;
6420
6421     solaris*)
6422       lt_prog_compiler_wl='-Wl,'
6423       lt_prog_compiler_pic='-KPIC'
6424       lt_prog_compiler_static='-Bstatic'
6425       ;;
6426
6427     sunos4*)
6428       lt_prog_compiler_wl='-Qoption ld '
6429       lt_prog_compiler_pic='-PIC'
6430       lt_prog_compiler_static='-Bstatic'
6431       ;;
6432
6433     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6434       lt_prog_compiler_wl='-Wl,'
6435       lt_prog_compiler_pic='-KPIC'
6436       lt_prog_compiler_static='-Bstatic'
6437       ;;
6438
6439     sysv4*MP*)
6440       if test -d /usr/nec ;then
6441         lt_prog_compiler_pic='-Kconform_pic'
6442         lt_prog_compiler_static='-Bstatic'
6443       fi
6444       ;;
6445
6446     uts4*)
6447       lt_prog_compiler_pic='-pic'
6448       lt_prog_compiler_static='-Bstatic'
6449       ;;
6450
6451     *)
6452       lt_prog_compiler_can_build_shared=no
6453       ;;
6454     esac
6455   fi
6456
6457 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6458 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6459
6460 #
6461 # Check to make sure the PIC flag actually works.
6462 #
6463 if test -n "$lt_prog_compiler_pic"; then
6464
6465 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6466 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6467 if test "${lt_prog_compiler_pic_works+set}" = set; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470   lt_prog_compiler_pic_works=no
6471   ac_outfile=conftest.$ac_objext
6472    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6473    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6474    # Insert the option either (1) after the last *FLAGS variable, or
6475    # (2) before a word containing "conftest.", or (3) at the end.
6476    # Note that $ac_compile itself does not contain backslashes and begins
6477    # with a dollar sign (not a hyphen), so the echo should work correctly.
6478    # The option is referenced via a variable to avoid confusing sed.
6479    lt_compile=`echo "$ac_compile" | $SED \
6480    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6481    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6482    -e 's:$: $lt_compiler_flag:'`
6483    (eval echo "\"\$as_me:6483: $lt_compile\"" >&5)
6484    (eval "$lt_compile" 2>conftest.err)
6485    ac_status=$?
6486    cat conftest.err >&5
6487    echo "$as_me:6487: \$? = $ac_status" >&5
6488    if (exit $ac_status) && test -s "$ac_outfile"; then
6489      # The compiler can only warn and ignore the option if not recognized
6490      # So say no if there are warnings
6491      if test ! -s conftest.err; then
6492        lt_prog_compiler_pic_works=yes
6493      fi
6494    fi
6495    $rm conftest*
6496
6497 fi
6498 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6499 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6500
6501 if test x"$lt_prog_compiler_pic_works" = xyes; then
6502     case $lt_prog_compiler_pic in
6503      "" | " "*) ;;
6504      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6505      esac
6506 else
6507     lt_prog_compiler_pic=
6508      lt_prog_compiler_can_build_shared=no
6509 fi
6510
6511 fi
6512 case "$host_os" in
6513   # For platforms which do not support PIC, -DPIC is meaningless:
6514   *djgpp*)
6515     lt_prog_compiler_pic=
6516     ;;
6517   *)
6518     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6519     ;;
6520 esac
6521
6522 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6523 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6524 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527   lt_cv_prog_compiler_c_o=no
6528    $rm -r conftest 2>/dev/null
6529    mkdir conftest
6530    cd conftest
6531    mkdir out
6532    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6533
6534    lt_compiler_flag="-o out/conftest2.$ac_objext"
6535    # Insert the option either (1) after the last *FLAGS variable, or
6536    # (2) before a word containing "conftest.", or (3) at the end.
6537    # Note that $ac_compile itself does not contain backslashes and begins
6538    # with a dollar sign (not a hyphen), so the echo should work correctly.
6539    lt_compile=`echo "$ac_compile" | $SED \
6540    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6542    -e 's:$: $lt_compiler_flag:'`
6543    (eval echo "\"\$as_me:6543: $lt_compile\"" >&5)
6544    (eval "$lt_compile" 2>out/conftest.err)
6545    ac_status=$?
6546    cat out/conftest.err >&5
6547    echo "$as_me:6547: \$? = $ac_status" >&5
6548    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6549    then
6550      # The compiler can only warn and ignore the option if not recognized
6551      # So say no if there are warnings
6552      if test ! -s out/conftest.err; then
6553        lt_cv_prog_compiler_c_o=yes
6554      fi
6555    fi
6556    chmod u+w .
6557    $rm conftest*
6558    # SGI C++ compiler will create directory out/ii_files/ for
6559    # template instantiation
6560    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6561    $rm out/* && rmdir out
6562    cd ..
6563    rmdir conftest
6564    $rm conftest*
6565
6566 fi
6567 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6568 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6569
6570
6571 hard_links="nottested"
6572 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6573   # do not overwrite the value of need_locks provided by the user
6574   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6575 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6576   hard_links=yes
6577   $rm conftest*
6578   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6579   touch conftest.a
6580   ln conftest.a conftest.b 2>&5 || hard_links=no
6581   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6582   echo "$as_me:$LINENO: result: $hard_links" >&5
6583 echo "${ECHO_T}$hard_links" >&6
6584   if test "$hard_links" = no; then
6585     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6586 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6587     need_locks=warn
6588   fi
6589 else
6590   need_locks=no
6591 fi
6592
6593 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6594 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6595
6596   runpath_var=
6597   allow_undefined_flag=
6598   enable_shared_with_static_runtimes=no
6599   archive_cmds=
6600   archive_expsym_cmds=
6601   old_archive_From_new_cmds=
6602   old_archive_from_expsyms_cmds=
6603   export_dynamic_flag_spec=
6604   whole_archive_flag_spec=
6605   thread_safe_flag_spec=
6606   hardcode_libdir_flag_spec=
6607   hardcode_libdir_flag_spec_ld=
6608   hardcode_libdir_separator=
6609   hardcode_direct=no
6610   hardcode_minus_L=no
6611   hardcode_shlibpath_var=unsupported
6612   link_all_deplibs=unknown
6613   hardcode_automatic=no
6614   module_cmds=
6615   module_expsym_cmds=
6616   always_export_symbols=no
6617   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6618   # include_expsyms should be a list of space-separated symbols to be *always*
6619   # included in the symbol list
6620   include_expsyms=
6621   # exclude_expsyms can be an extended regexp of symbols to exclude
6622   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6623   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6624   # as well as any symbol that contains `d'.
6625   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6626   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6627   # platforms (ab)use it in PIC code, but their linkers get confused if
6628   # the symbol is explicitly referenced.  Since portable code cannot
6629   # rely on this symbol name, it's probably fine to never include it in
6630   # preloaded symbol tables.
6631   extract_expsyms_cmds=
6632
6633   case $host_os in
6634   cygwin* | mingw* | pw32*)
6635     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6636     # When not using gcc, we currently assume that we are using
6637     # Microsoft Visual C++.
6638     if test "$GCC" != yes; then
6639       with_gnu_ld=no
6640     fi
6641     ;;
6642   openbsd*)
6643     with_gnu_ld=no
6644     ;;
6645   esac
6646
6647   ld_shlibs=yes
6648   if test "$with_gnu_ld" = yes; then
6649     # If archive_cmds runs LD, not CC, wlarc should be empty
6650     wlarc='${wl}'
6651
6652     # See if GNU ld supports shared libraries.
6653     case $host_os in
6654     aix3* | aix4* | aix5*)
6655       # On AIX/PPC, the GNU linker is very broken
6656       if test "$host_cpu" != ia64; then
6657         ld_shlibs=no
6658         cat <<EOF 1>&2
6659
6660 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6661 *** to be unable to reliably create shared libraries on AIX.
6662 *** Therefore, libtool is disabling shared libraries support.  If you
6663 *** really care for shared libraries, you may want to modify your PATH
6664 *** so that a non-GNU linker is found, and then restart.
6665
6666 EOF
6667       fi
6668       ;;
6669
6670     amigaos*)
6671       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)'
6672       hardcode_libdir_flag_spec='-L$libdir'
6673       hardcode_minus_L=yes
6674
6675       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6676       # that the semantics of dynamic libraries on AmigaOS, at least up
6677       # to version 4, is to share data among multiple programs linked
6678       # with the same dynamic library.  Since this doesn't match the
6679       # behavior of shared libraries on other platforms, we can't use
6680       # them.
6681       ld_shlibs=no
6682       ;;
6683
6684     beos*)
6685       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6686         allow_undefined_flag=unsupported
6687         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6688         # support --undefined.  This deserves some investigation.  FIXME
6689         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6690       else
6691         ld_shlibs=no
6692       fi
6693       ;;
6694
6695     cygwin* | mingw* | pw32*)
6696       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6697       # as there is no search path for DLLs.
6698       hardcode_libdir_flag_spec='-L$libdir'
6699       allow_undefined_flag=unsupported
6700       always_export_symbols=no
6701       enable_shared_with_static_runtimes=yes
6702       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6703
6704       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6705         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6706         # If the export-symbols file already is a .def file (1st line
6707         # is EXPORTS), use it as is; otherwise, prepend...
6708         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6709           cp $export_symbols $output_objdir/$soname.def;
6710         else
6711           echo EXPORTS > $output_objdir/$soname.def;
6712           cat $export_symbols >> $output_objdir/$soname.def;
6713         fi~
6714         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6715       else
6716         ld_shlibs=no
6717       fi
6718       ;;
6719
6720     netbsd* | knetbsd*-gnu)
6721       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6722         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6723         wlarc=
6724       else
6725         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6726         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6727       fi
6728       ;;
6729
6730     solaris* | sysv5*)
6731       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6732         ld_shlibs=no
6733         cat <<EOF 1>&2
6734
6735 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6736 *** create shared libraries on Solaris systems.  Therefore, libtool
6737 *** is disabling shared libraries support.  We urge you to upgrade GNU
6738 *** binutils to release 2.9.1 or newer.  Another option is to modify
6739 *** your PATH or compiler configuration so that the native linker is
6740 *** used, and then restart.
6741
6742 EOF
6743       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6744         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6745         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6746       else
6747         ld_shlibs=no
6748       fi
6749       ;;
6750
6751     sunos4*)
6752       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6753       wlarc=
6754       hardcode_direct=yes
6755       hardcode_shlibpath_var=no
6756       ;;
6757
6758   linux*)
6759     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6760         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761         archive_cmds="$tmp_archive_cmds"
6762       supports_anon_versioning=no
6763       case `$LD -v 2>/dev/null` in
6764         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6765         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6766         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6767         *\ 2.11.*) ;; # other 2.11 versions
6768         *) supports_anon_versioning=yes ;;
6769       esac
6770       if test $supports_anon_versioning = yes; then
6771         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6773 $echo "local: *; };" >> $output_objdir/$libname.ver~
6774         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6775       else
6776         archive_expsym_cmds="$tmp_archive_cmds"
6777       fi
6778     else
6779       ld_shlibs=no
6780     fi
6781     ;;
6782
6783     *)
6784       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6785         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6786         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6787       else
6788         ld_shlibs=no
6789       fi
6790       ;;
6791     esac
6792
6793     if test "$ld_shlibs" = yes; then
6794       runpath_var=LD_RUN_PATH
6795       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6796       export_dynamic_flag_spec='${wl}--export-dynamic'
6797       # ancient GNU ld didn't support --whole-archive et. al.
6798       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6799         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6800       else
6801         whole_archive_flag_spec=
6802       fi
6803     fi
6804   else
6805     # PORTME fill in a description of your system's linker (not GNU ld)
6806     case $host_os in
6807     aix3*)
6808       allow_undefined_flag=unsupported
6809       always_export_symbols=yes
6810       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'
6811       # Note: this linker hardcodes the directories in LIBPATH if there
6812       # are no directories specified by -L.
6813       hardcode_minus_L=yes
6814       if test "$GCC" = yes && test -z "$link_static_flag"; then
6815         # Neither direct hardcoding nor static linking is supported with a
6816         # broken collect2.
6817         hardcode_direct=unsupported
6818       fi
6819       ;;
6820
6821     aix4* | aix5*)
6822       if test "$host_cpu" = ia64; then
6823         # On IA64, the linker does run time linking by default, so we don't
6824         # have to do anything special.
6825         aix_use_runtimelinking=no
6826         exp_sym_flag='-Bexport'
6827         no_entry_flag=""
6828       else
6829         # If we're using GNU nm, then we don't want the "-C" option.
6830         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6831         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6832           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'
6833         else
6834           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'
6835         fi
6836         aix_use_runtimelinking=no
6837
6838         # Test if we are trying to use run time linking or normal
6839         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6840         # need to do runtime linking.
6841         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6842           for ld_flag in $LDFLAGS; do
6843           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6844             aix_use_runtimelinking=yes
6845             break
6846           fi
6847           done
6848         esac
6849
6850         exp_sym_flag='-bexport'
6851         no_entry_flag='-bnoentry'
6852       fi
6853
6854       # When large executables or shared objects are built, AIX ld can
6855       # have problems creating the table of contents.  If linking a library
6856       # or program results in "error TOC overflow" add -mminimal-toc to
6857       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6858       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6859
6860       archive_cmds=''
6861       hardcode_direct=yes
6862       hardcode_libdir_separator=':'
6863       link_all_deplibs=yes
6864
6865       if test "$GCC" = yes; then
6866         case $host_os in aix4.012|aix4.012.*)
6867         # We only want to do this on AIX 4.2 and lower, the check
6868         # below for broken collect2 doesn't work under 4.3+
6869           collect2name=`${CC} -print-prog-name=collect2`
6870           if test -f "$collect2name" && \
6871            strings "$collect2name" | grep resolve_lib_name >/dev/null
6872           then
6873           # We have reworked collect2
6874           hardcode_direct=yes
6875           else
6876           # We have old collect2
6877           hardcode_direct=unsupported
6878           # It fails to find uninstalled libraries when the uninstalled
6879           # path is not listed in the libpath.  Setting hardcode_minus_L
6880           # to unsupported forces relinking
6881           hardcode_minus_L=yes
6882           hardcode_libdir_flag_spec='-L$libdir'
6883           hardcode_libdir_separator=
6884           fi
6885         esac
6886         shared_flag='-shared'
6887       else
6888         # not using gcc
6889         if test "$host_cpu" = ia64; then
6890         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6891         # chokes on -Wl,-G. The following line is correct:
6892           shared_flag='-G'
6893         else
6894         if test "$aix_use_runtimelinking" = yes; then
6895             shared_flag='${wl}-G'
6896           else
6897             shared_flag='${wl}-bM:SRE'
6898         fi
6899         fi
6900       fi
6901
6902       # It seems that -bexpall does not export symbols beginning with
6903       # underscore (_), so it is better to generate a list of symbols to export.
6904       always_export_symbols=yes
6905       if test "$aix_use_runtimelinking" = yes; then
6906         # Warning - without using the other runtime loading flags (-brtl),
6907         # -berok will link without error, but may produce a broken library.
6908         allow_undefined_flag='-berok'
6909        # Determine the default libpath from the value encoded in an empty executable.
6910        cat >conftest.$ac_ext <<_ACEOF
6911 /* confdefs.h.  */
6912 _ACEOF
6913 cat confdefs.h >>conftest.$ac_ext
6914 cat >>conftest.$ac_ext <<_ACEOF
6915 /* end confdefs.h.  */
6916
6917 int
6918 main ()
6919 {
6920
6921   ;
6922   return 0;
6923 }
6924 _ACEOF
6925 rm -f conftest.$ac_objext conftest$ac_exeext
6926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6927   (eval $ac_link) 2>conftest.er1
6928   ac_status=$?
6929   grep -v '^ *+' conftest.er1 >conftest.err
6930   rm -f conftest.er1
6931   cat conftest.err >&5
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); } &&
6934          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936   (eval $ac_try) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); }; } &&
6940          { ac_try='test -s conftest$ac_exeext'
6941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942   (eval $ac_try) 2>&5
6943   ac_status=$?
6944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945   (exit $ac_status); }; }; then
6946
6947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6948 }'`
6949 # Check for a 64-bit object if we didn't find anything.
6950 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; }
6951 }'`; fi
6952 else
6953   echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6955
6956 fi
6957 rm -f conftest.err conftest.$ac_objext \
6958       conftest$ac_exeext conftest.$ac_ext
6959 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6960
6961        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6962         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"
6963        else
6964         if test "$host_cpu" = ia64; then
6965           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6966           allow_undefined_flag="-z nodefs"
6967           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"
6968         else
6969          # Determine the default libpath from the value encoded in an empty executable.
6970          cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h.  */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h.  */
6976
6977 int
6978 main ()
6979 {
6980
6981   ;
6982   return 0;
6983 }
6984 _ACEOF
6985 rm -f conftest.$ac_objext conftest$ac_exeext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6987   (eval $ac_link) 2>conftest.er1
6988   ac_status=$?
6989   grep -v '^ *+' conftest.er1 >conftest.err
6990   rm -f conftest.er1
6991   cat conftest.err >&5
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); } &&
6994          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); }; } &&
7000          { ac_try='test -s conftest$ac_exeext'
7001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002   (eval $ac_try) 2>&5
7003   ac_status=$?
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); }; }; then
7006
7007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7008 }'`
7009 # Check for a 64-bit object if we didn't find anything.
7010 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; }
7011 }'`; fi
7012 else
7013   echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 fi
7017 rm -f conftest.err conftest.$ac_objext \
7018       conftest$ac_exeext conftest.$ac_ext
7019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7020
7021          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7022           # Warning - without using the other run time loading flags,
7023           # -berok will link without error, but may produce a broken library.
7024           no_undefined_flag=' ${wl}-bernotok'
7025           allow_undefined_flag=' ${wl}-berok'
7026           # -bexpall does not export symbols beginning with underscore (_)
7027           always_export_symbols=yes
7028           # Exported symbols can be pulled into shared objects from archives
7029           whole_archive_flag_spec=' '
7030           archive_cmds_need_lc=yes
7031           # This is similar to how AIX traditionally builds it's shared libraries.
7032           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'
7033         fi
7034       fi
7035       ;;
7036
7037     amigaos*)
7038       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)'
7039       hardcode_libdir_flag_spec='-L$libdir'
7040       hardcode_minus_L=yes
7041       # see comment about different semantics on the GNU ld section
7042       ld_shlibs=no
7043       ;;
7044
7045     bsdi4*)
7046       export_dynamic_flag_spec=-rdynamic
7047       ;;
7048
7049     cygwin* | mingw* | pw32*)
7050       # When not using gcc, we currently assume that we are using
7051       # Microsoft Visual C++.
7052       # hardcode_libdir_flag_spec is actually meaningless, as there is
7053       # no search path for DLLs.
7054       hardcode_libdir_flag_spec=' '
7055       allow_undefined_flag=unsupported
7056       # Tell ltmain to make .lib files, not .a files.
7057       libext=lib
7058       # Tell ltmain to make .dll files, not .so files.
7059       shrext=".dll"
7060       # FIXME: Setting linknames here is a bad hack.
7061       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7062       # The linker will automatically build a .lib file if we build a DLL.
7063       old_archive_From_new_cmds='true'
7064       # FIXME: Should let the user specify the lib program.
7065       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7066       fix_srcfile_path='`cygpath -w "$srcfile"`'
7067       enable_shared_with_static_runtimes=yes
7068       ;;
7069
7070     darwin* | rhapsody*)
7071     if test "$GXX" = yes ; then
7072       archive_cmds_need_lc=no
7073       case "$host_os" in
7074       rhapsody* | darwin1.[012])
7075         allow_undefined_flag='-undefined suppress'
7076         ;;
7077       *) # Darwin 1.3 on
7078       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7079         allow_undefined_flag='-flat_namespace -undefined suppress'
7080       else
7081         case ${MACOSX_DEPLOYMENT_TARGET} in
7082           10.[012])
7083             allow_undefined_flag='-flat_namespace -undefined suppress'
7084             ;;
7085           10.*)
7086             allow_undefined_flag='-undefined dynamic_lookup'
7087             ;;
7088         esac
7089       fi
7090         ;;
7091       esac
7092         lt_int_apple_cc_single_mod=no
7093         output_verbose_link_cmd='echo'
7094         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7095           lt_int_apple_cc_single_mod=yes
7096         fi
7097         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7098           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7099         else
7100         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'
7101       fi
7102       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7103       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7104         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7105           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}'
7106         else
7107           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}'
7108         fi
7109           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}'
7110       hardcode_direct=no
7111       hardcode_automatic=yes
7112       hardcode_shlibpath_var=unsupported
7113       whole_archive_flag_spec='-all_load $convenience'
7114       link_all_deplibs=yes
7115     else
7116       ld_shlibs=no
7117     fi
7118       ;;
7119
7120     dgux*)
7121       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7122       hardcode_libdir_flag_spec='-L$libdir'
7123       hardcode_shlibpath_var=no
7124       ;;
7125
7126     freebsd1*)
7127       ld_shlibs=no
7128       ;;
7129
7130     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7131     # support.  Future versions do this automatically, but an explicit c++rt0.o
7132     # does not break anything, and helps significantly (at the cost of a little
7133     # extra space).
7134     freebsd2.2*)
7135       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7136       hardcode_libdir_flag_spec='-R$libdir'
7137       hardcode_direct=yes
7138       hardcode_shlibpath_var=no
7139       ;;
7140
7141     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7142     freebsd2*)
7143       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7144       hardcode_direct=yes
7145       hardcode_minus_L=yes
7146       hardcode_shlibpath_var=no
7147       ;;
7148
7149     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7150     freebsd* | kfreebsd*-gnu)
7151       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7152       hardcode_libdir_flag_spec='-R$libdir'
7153       hardcode_direct=yes
7154       hardcode_shlibpath_var=no
7155       ;;
7156
7157     hpux9*)
7158       if test "$GCC" = yes; then
7159         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'
7160       else
7161         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'
7162       fi
7163       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7164       hardcode_libdir_separator=:
7165       hardcode_direct=yes
7166
7167       # hardcode_minus_L: Not really in the search PATH,
7168       # but as the default location of the library.
7169       hardcode_minus_L=yes
7170       export_dynamic_flag_spec='${wl}-E'
7171       ;;
7172
7173     hpux10* | hpux11*)
7174       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7175         case "$host_cpu" in
7176         hppa*64*|ia64*)
7177           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7178           ;;
7179         *)
7180           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7181           ;;
7182         esac
7183       else
7184         case "$host_cpu" in
7185         hppa*64*|ia64*)
7186           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7187           ;;
7188         *)
7189           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7190           ;;
7191         esac
7192       fi
7193       if test "$with_gnu_ld" = no; then
7194         case "$host_cpu" in
7195         hppa*64*)
7196           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7197           hardcode_libdir_flag_spec_ld='+b $libdir'
7198           hardcode_libdir_separator=:
7199           hardcode_direct=no
7200           hardcode_shlibpath_var=no
7201           ;;
7202         ia64*)
7203           hardcode_libdir_flag_spec='-L$libdir'
7204           hardcode_direct=no
7205           hardcode_shlibpath_var=no
7206
7207           # hardcode_minus_L: Not really in the search PATH,
7208           # but as the default location of the library.
7209           hardcode_minus_L=yes
7210           ;;
7211         *)
7212           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7213           hardcode_libdir_separator=:
7214           hardcode_direct=yes
7215           export_dynamic_flag_spec='${wl}-E'
7216
7217           # hardcode_minus_L: Not really in the search PATH,
7218           # but as the default location of the library.
7219           hardcode_minus_L=yes
7220           ;;
7221         esac
7222       fi
7223       ;;
7224
7225     irix5* | irix6* | nonstopux*)
7226       if test "$GCC" = yes; then
7227         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'
7228       else
7229         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'
7230         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7231       fi
7232       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7233       hardcode_libdir_separator=:
7234       link_all_deplibs=yes
7235       ;;
7236
7237     netbsd* | knetbsd*-gnu)
7238       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7239         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7240       else
7241         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7242       fi
7243       hardcode_libdir_flag_spec='-R$libdir'
7244       hardcode_direct=yes
7245       hardcode_shlibpath_var=no
7246       ;;
7247
7248     newsos6)
7249       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7250       hardcode_direct=yes
7251       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7252       hardcode_libdir_separator=:
7253       hardcode_shlibpath_var=no
7254       ;;
7255
7256     openbsd*)
7257       hardcode_direct=yes
7258       hardcode_shlibpath_var=no
7259       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7260         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7261         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7262         export_dynamic_flag_spec='${wl}-E'
7263       else
7264        case $host_os in
7265          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7266            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7267            hardcode_libdir_flag_spec='-R$libdir'
7268            ;;
7269          *)
7270            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7271            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7272            ;;
7273        esac
7274       fi
7275       ;;
7276
7277     os2*)
7278       hardcode_libdir_flag_spec='-L$libdir'
7279       hardcode_minus_L=yes
7280       allow_undefined_flag=unsupported
7281       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'
7282       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7283       ;;
7284
7285     osf3*)
7286       if test "$GCC" = yes; then
7287         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7288         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'
7289       else
7290         allow_undefined_flag=' -expect_unresolved \*'
7291         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'
7292       fi
7293       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7294       hardcode_libdir_separator=:
7295       ;;
7296
7297     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7298       if test "$GCC" = yes; then
7299         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7300         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'
7301         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7302       else
7303         allow_undefined_flag=' -expect_unresolved \*'
7304         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'
7305         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7306         $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'
7307
7308         # Both c and cxx compiler support -rpath directly
7309         hardcode_libdir_flag_spec='-rpath $libdir'
7310       fi
7311       hardcode_libdir_separator=:
7312       ;;
7313
7314     sco3.2v5*)
7315       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7316       hardcode_shlibpath_var=no
7317       export_dynamic_flag_spec='${wl}-Bexport'
7318       runpath_var=LD_RUN_PATH
7319       hardcode_runpath_var=yes
7320       ;;
7321
7322     solaris*)
7323       no_undefined_flag=' -z text'
7324       if test "$GCC" = yes; then
7325         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7326         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7327           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7328       else
7329         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7330         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7331         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7332       fi
7333       hardcode_libdir_flag_spec='-R$libdir'
7334       hardcode_shlibpath_var=no
7335       case $host_os in
7336       solaris2.[0-5] | solaris2.[0-5].*) ;;
7337       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7338         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7339       esac
7340       link_all_deplibs=yes
7341       ;;
7342
7343     sunos4*)
7344       if test "x$host_vendor" = xsequent; then
7345         # Use $CC to link under sequent, because it throws in some extra .o
7346         # files that make .init and .fini sections work.
7347         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7348       else
7349         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7350       fi
7351       hardcode_libdir_flag_spec='-L$libdir'
7352       hardcode_direct=yes
7353       hardcode_minus_L=yes
7354       hardcode_shlibpath_var=no
7355       ;;
7356
7357     sysv4)
7358       case $host_vendor in
7359         sni)
7360           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7361           hardcode_direct=yes # is this really true???
7362         ;;
7363         siemens)
7364           ## LD is ld it makes a PLAMLIB
7365           ## CC just makes a GrossModule.
7366           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7367           reload_cmds='$CC -r -o $output$reload_objs'
7368           hardcode_direct=no
7369         ;;
7370         motorola)
7371           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7373         ;;
7374       esac
7375       runpath_var='LD_RUN_PATH'
7376       hardcode_shlibpath_var=no
7377       ;;
7378
7379     sysv4.3*)
7380       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7381       hardcode_shlibpath_var=no
7382       export_dynamic_flag_spec='-Bexport'
7383       ;;
7384
7385     sysv4*MP*)
7386       if test -d /usr/nec; then
7387         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7388         hardcode_shlibpath_var=no
7389         runpath_var=LD_RUN_PATH
7390         hardcode_runpath_var=yes
7391         ld_shlibs=yes
7392       fi
7393       ;;
7394
7395     sysv4.2uw2*)
7396       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7397       hardcode_direct=yes
7398       hardcode_minus_L=no
7399       hardcode_shlibpath_var=no
7400       hardcode_runpath_var=yes
7401       runpath_var=LD_RUN_PATH
7402       ;;
7403
7404    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7405       no_undefined_flag='${wl}-z ${wl}text'
7406       if test "$GCC" = yes; then
7407         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7408       else
7409         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7410       fi
7411       runpath_var='LD_RUN_PATH'
7412       hardcode_shlibpath_var=no
7413       ;;
7414
7415     sysv5*)
7416       no_undefined_flag=' -z text'
7417       # $CC -shared without GNU ld will not create a library from C++
7418       # object files and a static libstdc++, better avoid it by now
7419       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7420       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7421                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7422       hardcode_libdir_flag_spec=
7423       hardcode_shlibpath_var=no
7424       runpath_var='LD_RUN_PATH'
7425       ;;
7426
7427     uts4*)
7428       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7429       hardcode_libdir_flag_spec='-L$libdir'
7430       hardcode_shlibpath_var=no
7431       ;;
7432
7433     *)
7434       ld_shlibs=no
7435       ;;
7436     esac
7437   fi
7438
7439 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7440 echo "${ECHO_T}$ld_shlibs" >&6
7441 test "$ld_shlibs" = no && can_build_shared=no
7442
7443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7444 if test "$GCC" = yes; then
7445   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7446 fi
7447
7448 #
7449 # Do we need to explicitly link libc?
7450 #
7451 case "x$archive_cmds_need_lc" in
7452 x|xyes)
7453   # Assume -lc should be added
7454   archive_cmds_need_lc=yes
7455
7456   if test "$enable_shared" = yes && test "$GCC" = yes; then
7457     case $archive_cmds in
7458     *'~'*)
7459       # FIXME: we may have to deal with multi-command sequences.
7460       ;;
7461     '$CC '*)
7462       # Test whether the compiler implicitly links with -lc since on some
7463       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7464       # to ld, don't add -lc before -lgcc.
7465       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7466 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7467       $rm conftest*
7468       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7469
7470       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7471   (eval $ac_compile) 2>&5
7472   ac_status=$?
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); } 2>conftest.err; then
7475         soname=conftest
7476         lib=conftest
7477         libobjs=conftest.$ac_objext
7478         deplibs=
7479         wl=$lt_prog_compiler_wl
7480         compiler_flags=-v
7481         linker_flags=-v
7482         verstring=
7483         output_objdir=.
7484         libname=conftest
7485         lt_save_allow_undefined_flag=$allow_undefined_flag
7486         allow_undefined_flag=
7487         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7488   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7489   ac_status=$?
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); }
7492         then
7493           archive_cmds_need_lc=no
7494         else
7495           archive_cmds_need_lc=yes
7496         fi
7497         allow_undefined_flag=$lt_save_allow_undefined_flag
7498       else
7499         cat conftest.err 1>&5
7500       fi
7501       $rm conftest*
7502       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7503 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7504       ;;
7505     esac
7506   fi
7507   ;;
7508 esac
7509
7510 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7511 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7512 library_names_spec=
7513 libname_spec='lib$name'
7514 soname_spec=
7515 shrext=".so"
7516 postinstall_cmds=
7517 postuninstall_cmds=
7518 finish_cmds=
7519 finish_eval=
7520 shlibpath_var=
7521 shlibpath_overrides_runpath=unknown
7522 version_type=none
7523 dynamic_linker="$host_os ld.so"
7524 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7525 if test "$GCC" = yes; then
7526   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7527   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7528     # if the path contains ";" then we assume it to be the separator
7529     # otherwise default to the standard path separator (i.e. ":") - it is
7530     # assumed that no part of a normal pathname contains ";" but that should
7531     # okay in the real world where ";" in dirpaths is itself problematic.
7532     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7533   else
7534     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7535   fi
7536 else
7537   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7538 fi
7539 need_lib_prefix=unknown
7540 hardcode_into_libs=no
7541
7542 # when you set need_version to no, make sure it does not cause -set_version
7543 # flags to be left without arguments
7544 need_version=unknown
7545
7546 case $host_os in
7547 aix3*)
7548   version_type=linux
7549   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7550   shlibpath_var=LIBPATH
7551
7552   # AIX 3 has no versioning support, so we append a major version to the name.
7553   soname_spec='${libname}${release}${shared_ext}$major'
7554   ;;
7555
7556 aix4* | aix5*)
7557   version_type=linux
7558   need_lib_prefix=no
7559   need_version=no
7560   hardcode_into_libs=yes
7561   if test "$host_cpu" = ia64; then
7562     # AIX 5 supports IA64
7563     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7564     shlibpath_var=LD_LIBRARY_PATH
7565   else
7566     # With GCC up to 2.95.x, collect2 would create an import file
7567     # for dependence libraries.  The import file would start with
7568     # the line `#! .'.  This would cause the generated library to
7569     # depend on `.', always an invalid library.  This was fixed in
7570     # development snapshots of GCC prior to 3.0.
7571     case $host_os in
7572       aix4 | aix4.[01] | aix4.[01].*)
7573       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7574            echo ' yes '
7575            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7576         :
7577       else
7578         can_build_shared=no
7579       fi
7580       ;;
7581     esac
7582     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7583     # soname into executable. Probably we can add versioning support to
7584     # collect2, so additional links can be useful in future.
7585     if test "$aix_use_runtimelinking" = yes; then
7586       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7587       # instead of lib<name>.a to let people know that these are not
7588       # typical AIX shared libraries.
7589       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7590     else
7591       # We preserve .a as extension for shared libraries through AIX4.2
7592       # and later when we are not doing run time linking.
7593       library_names_spec='${libname}${release}.a $libname.a'
7594       soname_spec='${libname}${release}${shared_ext}$major'
7595     fi
7596     shlibpath_var=LIBPATH
7597   fi
7598   ;;
7599
7600 amigaos*)
7601   library_names_spec='$libname.ixlibrary $libname.a'
7602   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7603   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'
7604   ;;
7605
7606 beos*)
7607   library_names_spec='${libname}${shared_ext}'
7608   dynamic_linker="$host_os ld.so"
7609   shlibpath_var=LIBRARY_PATH
7610   ;;
7611
7612 bsdi4*)
7613   version_type=linux
7614   need_version=no
7615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7616   soname_spec='${libname}${release}${shared_ext}$major'
7617   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7618   shlibpath_var=LD_LIBRARY_PATH
7619   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7620   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7621   # the default ld.so.conf also contains /usr/contrib/lib and
7622   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7623   # libtool to hard-code these into programs
7624   ;;
7625
7626 cygwin* | mingw* | pw32*)
7627   version_type=windows
7628   shrext=".dll"
7629   need_version=no
7630   need_lib_prefix=no
7631
7632   case $GCC,$host_os in
7633   yes,cygwin* | yes,mingw* | yes,pw32*)
7634     library_names_spec='$libname.dll.a'
7635     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7636     postinstall_cmds='base_file=`basename \${file}`~
7637       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7638       dldir=$destdir/`dirname \$dlpath`~
7639       test -d \$dldir || mkdir -p \$dldir~
7640       $install_prog $dir/$dlname \$dldir/$dlname'
7641     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7642       dlpath=$dir/\$dldll~
7643        $rm \$dlpath'
7644     shlibpath_overrides_runpath=yes
7645
7646     case $host_os in
7647     cygwin*)
7648       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7649       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7650       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7651       ;;
7652     mingw*)
7653       # MinGW DLLs use traditional 'lib' prefix
7654       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7655       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7656       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7657         # It is most probably a Windows format PATH printed by
7658         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7659         # path with ; separators, and with drive letters. We can handle the
7660         # drive letters (cygwin fileutils understands them), so leave them,
7661         # especially as we might pass files found there to a mingw objdump,
7662         # which wouldn't understand a cygwinified path. Ahh.
7663         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7664       else
7665         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7666       fi
7667       ;;
7668     pw32*)
7669       # pw32 DLLs use 'pw' prefix rather than 'lib'
7670       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7671       ;;
7672     esac
7673     ;;
7674
7675   *)
7676     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7677     ;;
7678   esac
7679   dynamic_linker='Win32 ld.exe'
7680   # FIXME: first we should search . and the directory the executable is in
7681   shlibpath_var=PATH
7682   ;;
7683
7684 darwin* | rhapsody*)
7685   dynamic_linker="$host_os dyld"
7686   version_type=darwin
7687   need_lib_prefix=no
7688   need_version=no
7689   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7690   soname_spec='${libname}${release}${major}$shared_ext'
7691   shlibpath_overrides_runpath=yes
7692   shlibpath_var=DYLD_LIBRARY_PATH
7693   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7694   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7695   if test "$GCC" = yes; then
7696     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"`
7697   else
7698     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7699   fi
7700   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7701   ;;
7702
7703 dgux*)
7704   version_type=linux
7705   need_lib_prefix=no
7706   need_version=no
7707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7708   soname_spec='${libname}${release}${shared_ext}$major'
7709   shlibpath_var=LD_LIBRARY_PATH
7710   ;;
7711
7712 freebsd1*)
7713   dynamic_linker=no
7714   ;;
7715
7716 kfreebsd*-gnu)
7717   version_type=linux
7718   need_lib_prefix=no
7719   need_version=no
7720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7721   soname_spec='${libname}${release}${shared_ext}$major'
7722   shlibpath_var=LD_LIBRARY_PATH
7723   shlibpath_overrides_runpath=no
7724   hardcode_into_libs=yes
7725   dynamic_linker='GNU ld.so'
7726   ;;
7727
7728 freebsd*)
7729   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7730   version_type=freebsd-$objformat
7731   case $version_type in
7732     freebsd-elf*)
7733       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7734       need_version=no
7735       need_lib_prefix=no
7736       ;;
7737     freebsd-*)
7738       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7739       need_version=yes
7740       ;;
7741   esac
7742   shlibpath_var=LD_LIBRARY_PATH
7743   case $host_os in
7744   freebsd2*)
7745     shlibpath_overrides_runpath=yes
7746     ;;
7747   freebsd3.01* | freebsdelf3.01*)
7748     shlibpath_overrides_runpath=yes
7749     hardcode_into_libs=yes
7750     ;;
7751   *) # from 3.2 on
7752     shlibpath_overrides_runpath=no
7753     hardcode_into_libs=yes
7754     ;;
7755   esac
7756   ;;
7757
7758 gnu*)
7759   version_type=linux
7760   need_lib_prefix=no
7761   need_version=no
7762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7763   soname_spec='${libname}${release}${shared_ext}$major'
7764   shlibpath_var=LD_LIBRARY_PATH
7765   hardcode_into_libs=yes
7766   ;;
7767
7768 hpux9* | hpux10* | hpux11*)
7769   # Give a soname corresponding to the major version so that dld.sl refuses to
7770   # link against other versions.
7771   version_type=sunos
7772   need_lib_prefix=no
7773   need_version=no
7774   case "$host_cpu" in
7775   ia64*)
7776     shrext='.so'
7777     hardcode_into_libs=yes
7778     dynamic_linker="$host_os dld.so"
7779     shlibpath_var=LD_LIBRARY_PATH
7780     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7782     soname_spec='${libname}${release}${shared_ext}$major'
7783     if test "X$HPUX_IA64_MODE" = X32; then
7784       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7785     else
7786       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7787     fi
7788     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7789     ;;
7790    hppa*64*)
7791      shrext='.sl'
7792      hardcode_into_libs=yes
7793      dynamic_linker="$host_os dld.sl"
7794      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7795      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7796      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7797      soname_spec='${libname}${release}${shared_ext}$major'
7798      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7799      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7800      ;;
7801    *)
7802     shrext='.sl'
7803     dynamic_linker="$host_os dld.sl"
7804     shlibpath_var=SHLIB_PATH
7805     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807     soname_spec='${libname}${release}${shared_ext}$major'
7808     ;;
7809   esac
7810   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7811   postinstall_cmds='chmod 555 $lib'
7812   ;;
7813
7814 irix5* | irix6* | nonstopux*)
7815   case $host_os in
7816     nonstopux*) version_type=nonstopux ;;
7817     *)
7818         if test "$lt_cv_prog_gnu_ld" = yes; then
7819                 version_type=linux
7820         else
7821                 version_type=irix
7822         fi ;;
7823   esac
7824   need_lib_prefix=no
7825   need_version=no
7826   soname_spec='${libname}${release}${shared_ext}$major'
7827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7828   case $host_os in
7829   irix5* | nonstopux*)
7830     libsuff= shlibsuff=
7831     ;;
7832   *)
7833     case $LD in # libtool.m4 will add one of these switches to LD
7834     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7835       libsuff= shlibsuff= libmagic=32-bit;;
7836     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7837       libsuff=32 shlibsuff=N32 libmagic=N32;;
7838     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7839       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7840     *) libsuff= shlibsuff= libmagic=never-match;;
7841     esac
7842     ;;
7843   esac
7844   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7845   shlibpath_overrides_runpath=no
7846   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7847   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7848   hardcode_into_libs=yes
7849   ;;
7850
7851 # No shared lib support for Linux oldld, aout, or coff.
7852 linux*oldld* | linux*aout* | linux*coff*)
7853   dynamic_linker=no
7854   ;;
7855
7856 # This must be Linux ELF.
7857 linux*)
7858   version_type=linux
7859   need_lib_prefix=no
7860   need_version=no
7861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862   soname_spec='${libname}${release}${shared_ext}$major'
7863   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7864   shlibpath_var=LD_LIBRARY_PATH
7865   shlibpath_overrides_runpath=no
7866   # This implies no fast_install, which is unacceptable.
7867   # Some rework will be needed to allow for fast_install
7868   # before this can be enabled.
7869   hardcode_into_libs=yes
7870
7871   # Append ld.so.conf contents to the search path
7872   if test -f /etc/ld.so.conf; then
7873     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7874     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7875   fi
7876
7877   # We used to test for /lib/ld.so.1 and disable shared libraries on
7878   # powerpc, because MkLinux only supported shared libraries with the
7879   # GNU dynamic linker.  Since this was broken with cross compilers,
7880   # most powerpc-linux boxes support dynamic linking these days and
7881   # people can always --disable-shared, the test was removed, and we
7882   # assume the GNU/Linux dynamic linker is in use.
7883   dynamic_linker='GNU/Linux ld.so'
7884   ;;
7885
7886 knetbsd*-gnu)
7887   version_type=linux
7888   need_lib_prefix=no
7889   need_version=no
7890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7891   soname_spec='${libname}${release}${shared_ext}$major'
7892   shlibpath_var=LD_LIBRARY_PATH
7893   shlibpath_overrides_runpath=no
7894   hardcode_into_libs=yes
7895   dynamic_linker='GNU ld.so'
7896   ;;
7897
7898 netbsd*)
7899   version_type=sunos
7900   need_lib_prefix=no
7901   need_version=no
7902   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7904     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7905     dynamic_linker='NetBSD (a.out) ld.so'
7906   else
7907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7908     soname_spec='${libname}${release}${shared_ext}$major'
7909     dynamic_linker='NetBSD ld.elf_so'
7910   fi
7911   shlibpath_var=LD_LIBRARY_PATH
7912   shlibpath_overrides_runpath=yes
7913   hardcode_into_libs=yes
7914   ;;
7915
7916 newsos6)
7917   version_type=linux
7918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7919   shlibpath_var=LD_LIBRARY_PATH
7920   shlibpath_overrides_runpath=yes
7921   ;;
7922
7923 nto-qnx*)
7924   version_type=linux
7925   need_lib_prefix=no
7926   need_version=no
7927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7928   soname_spec='${libname}${release}${shared_ext}$major'
7929   shlibpath_var=LD_LIBRARY_PATH
7930   shlibpath_overrides_runpath=yes
7931   ;;
7932
7933 openbsd*)
7934   version_type=sunos
7935   need_lib_prefix=no
7936   need_version=yes
7937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7938   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7939   shlibpath_var=LD_LIBRARY_PATH
7940   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7941     case $host_os in
7942       openbsd2.[89] | openbsd2.[89].*)
7943         shlibpath_overrides_runpath=no
7944         ;;
7945       *)
7946         shlibpath_overrides_runpath=yes
7947         ;;
7948       esac
7949   else
7950     shlibpath_overrides_runpath=yes
7951   fi
7952   ;;
7953
7954 os2*)
7955   libname_spec='$name'
7956   shrext=".dll"
7957   need_lib_prefix=no
7958   library_names_spec='$libname${shared_ext} $libname.a'
7959   dynamic_linker='OS/2 ld.exe'
7960   shlibpath_var=LIBPATH
7961   ;;
7962
7963 osf3* | osf4* | osf5*)
7964   version_type=osf
7965   need_lib_prefix=no
7966   need_version=no
7967   soname_spec='${libname}${release}${shared_ext}$major'
7968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7969   shlibpath_var=LD_LIBRARY_PATH
7970   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7971   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7972   ;;
7973
7974 sco3.2v5*)
7975   version_type=osf
7976   soname_spec='${libname}${release}${shared_ext}$major'
7977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7978   shlibpath_var=LD_LIBRARY_PATH
7979   ;;
7980
7981 solaris*)
7982   version_type=linux
7983   need_lib_prefix=no
7984   need_version=no
7985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7986   soname_spec='${libname}${release}${shared_ext}$major'
7987   shlibpath_var=LD_LIBRARY_PATH
7988   shlibpath_overrides_runpath=yes
7989   hardcode_into_libs=yes
7990   # ldd complains unless libraries are executable
7991   postinstall_cmds='chmod +x $lib'
7992   ;;
7993
7994 sunos4*)
7995   version_type=sunos
7996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7997   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7998   shlibpath_var=LD_LIBRARY_PATH
7999   shlibpath_overrides_runpath=yes
8000   if test "$with_gnu_ld" = yes; then
8001     need_lib_prefix=no
8002   fi
8003   need_version=yes
8004   ;;
8005
8006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8007   version_type=linux
8008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8009   soname_spec='${libname}${release}${shared_ext}$major'
8010   shlibpath_var=LD_LIBRARY_PATH
8011   case $host_vendor in
8012     sni)
8013       shlibpath_overrides_runpath=no
8014       need_lib_prefix=no
8015       export_dynamic_flag_spec='${wl}-Blargedynsym'
8016       runpath_var=LD_RUN_PATH
8017       ;;
8018     siemens)
8019       need_lib_prefix=no
8020       ;;
8021     motorola)
8022       need_lib_prefix=no
8023       need_version=no
8024       shlibpath_overrides_runpath=no
8025       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8026       ;;
8027   esac
8028   ;;
8029
8030 sysv4*MP*)
8031   if test -d /usr/nec ;then
8032     version_type=linux
8033     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8034     soname_spec='$libname${shared_ext}.$major'
8035     shlibpath_var=LD_LIBRARY_PATH
8036   fi
8037   ;;
8038
8039 uts4*)
8040   version_type=linux
8041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8042   soname_spec='${libname}${release}${shared_ext}$major'
8043   shlibpath_var=LD_LIBRARY_PATH
8044   ;;
8045
8046 *)
8047   dynamic_linker=no
8048   ;;
8049 esac
8050 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8051 echo "${ECHO_T}$dynamic_linker" >&6
8052 test "$dynamic_linker" = no && can_build_shared=no
8053
8054 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8055 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8056 hardcode_action=
8057 if test -n "$hardcode_libdir_flag_spec" || \
8058    test -n "$runpath_var " || \
8059    test "X$hardcode_automatic"="Xyes" ; then
8060
8061   # We can hardcode non-existant directories.
8062   if test "$hardcode_direct" != no &&
8063      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8064      # have to relink, otherwise we might link with an installed library
8065      # when we should be linking with a yet-to-be-installed one
8066      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8067      test "$hardcode_minus_L" != no; then
8068     # Linking always hardcodes the temporary library directory.
8069     hardcode_action=relink
8070   else
8071     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8072     hardcode_action=immediate
8073   fi
8074 else
8075   # We cannot hardcode anything, or else we can only hardcode existing
8076   # directories.
8077   hardcode_action=unsupported
8078 fi
8079 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8080 echo "${ECHO_T}$hardcode_action" >&6
8081
8082 if test "$hardcode_action" = relink; then
8083   # Fast installation is not supported
8084   enable_fast_install=no
8085 elif test "$shlibpath_overrides_runpath" = yes ||
8086      test "$enable_shared" = no; then
8087   # Fast installation is not necessary
8088   enable_fast_install=needless
8089 fi
8090
8091 striplib=
8092 old_striplib=
8093 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8094 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8095 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8096   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8097   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8098   echo "$as_me:$LINENO: result: yes" >&5
8099 echo "${ECHO_T}yes" >&6
8100 else
8101 # FIXME - insert some real tests, host_os isn't really good enough
8102   case $host_os in
8103    darwin*)
8104        if test -n "$STRIP" ; then
8105          striplib="$STRIP -x"
8106          echo "$as_me:$LINENO: result: yes" >&5
8107 echo "${ECHO_T}yes" >&6
8108        else
8109   echo "$as_me:$LINENO: result: no" >&5
8110 echo "${ECHO_T}no" >&6
8111 fi
8112        ;;
8113    *)
8114   echo "$as_me:$LINENO: result: no" >&5
8115 echo "${ECHO_T}no" >&6
8116     ;;
8117   esac
8118 fi
8119
8120 if test "x$enable_dlopen" != xyes; then
8121   enable_dlopen=unknown
8122   enable_dlopen_self=unknown
8123   enable_dlopen_self_static=unknown
8124 else
8125   lt_cv_dlopen=no
8126   lt_cv_dlopen_libs=
8127
8128   case $host_os in
8129   beos*)
8130     lt_cv_dlopen="load_add_on"
8131     lt_cv_dlopen_libs=
8132     lt_cv_dlopen_self=yes
8133     ;;
8134
8135   mingw* | pw32*)
8136     lt_cv_dlopen="LoadLibrary"
8137     lt_cv_dlopen_libs=
8138    ;;
8139
8140   cygwin*)
8141     lt_cv_dlopen="dlopen"
8142     lt_cv_dlopen_libs=
8143    ;;
8144
8145   darwin*)
8146   # if libdl is installed we need to link against it
8147     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8150   echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152   ac_check_lib_save_LIBS=$LIBS
8153 LIBS="-ldl  $LIBS"
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h.  */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h.  */
8160
8161 /* Override any gcc2 internal prototype to avoid an error.  */
8162 #ifdef __cplusplus
8163 extern "C"
8164 #endif
8165 /* We use char because int might match the return type of a gcc2
8166    builtin and then its argument prototype would still apply.  */
8167 char dlopen ();
8168 int
8169 main ()
8170 {
8171 dlopen ();
8172   ;
8173   return 0;
8174 }
8175 _ACEOF
8176 rm -f conftest.$ac_objext conftest$ac_exeext
8177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8178   (eval $ac_link) 2>conftest.er1
8179   ac_status=$?
8180   grep -v '^ *+' conftest.er1 >conftest.err
8181   rm -f conftest.er1
8182   cat conftest.err >&5
8183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184   (exit $ac_status); } &&
8185          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187   (eval $ac_try) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); }; } &&
8191          { ac_try='test -s conftest$ac_exeext'
8192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193   (eval $ac_try) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; }; then
8197   ac_cv_lib_dl_dlopen=yes
8198 else
8199   echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202 ac_cv_lib_dl_dlopen=no
8203 fi
8204 rm -f conftest.err conftest.$ac_objext \
8205       conftest$ac_exeext conftest.$ac_ext
8206 LIBS=$ac_check_lib_save_LIBS
8207 fi
8208 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8209 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8210 if test $ac_cv_lib_dl_dlopen = yes; then
8211   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8212 else
8213
8214     lt_cv_dlopen="dyld"
8215     lt_cv_dlopen_libs=
8216     lt_cv_dlopen_self=yes
8217
8218 fi
8219
8220    ;;
8221
8222   *)
8223     echo "$as_me:$LINENO: checking for shl_load" >&5
8224 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8225 if test "${ac_cv_func_shl_load+set}" = set; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8236 #define shl_load innocuous_shl_load
8237
8238 /* System header to define __stub macros and hopefully few prototypes,
8239     which can conflict with char shl_load (); below.
8240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8241     <limits.h> exists even on freestanding compilers.  */
8242
8243 #ifdef __STDC__
8244 # include <limits.h>
8245 #else
8246 # include <assert.h>
8247 #endif
8248
8249 #undef shl_load
8250
8251 /* Override any gcc2 internal prototype to avoid an error.  */
8252 #ifdef __cplusplus
8253 extern "C"
8254 {
8255 #endif
8256 /* We use char because int might match the return type of a gcc2
8257    builtin and then its argument prototype would still apply.  */
8258 char shl_load ();
8259 /* The GNU C library defines this for functions which it implements
8260     to always fail with ENOSYS.  Some functions are actually named
8261     something starting with __ and the normal name is an alias.  */
8262 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8263 choke me
8264 #else
8265 char (*f) () = shl_load;
8266 #endif
8267 #ifdef __cplusplus
8268 }
8269 #endif
8270
8271 int
8272 main ()
8273 {
8274 return f != shl_load;
8275   ;
8276   return 0;
8277 }
8278 _ACEOF
8279 rm -f conftest.$ac_objext conftest$ac_exeext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281   (eval $ac_link) 2>conftest.er1
8282   ac_status=$?
8283   grep -v '^ *+' conftest.er1 >conftest.err
8284   rm -f conftest.er1
8285   cat conftest.err >&5
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); } &&
8288          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290   (eval $ac_try) 2>&5
8291   ac_status=$?
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); }; } &&
8294          { ac_try='test -s conftest$ac_exeext'
8295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296   (eval $ac_try) 2>&5
8297   ac_status=$?
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); }; }; then
8300   ac_cv_func_shl_load=yes
8301 else
8302   echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305 ac_cv_func_shl_load=no
8306 fi
8307 rm -f conftest.err conftest.$ac_objext \
8308       conftest$ac_exeext conftest.$ac_ext
8309 fi
8310 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8311 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8312 if test $ac_cv_func_shl_load = yes; then
8313   lt_cv_dlopen="shl_load"
8314 else
8315   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8316 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8317 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   ac_check_lib_save_LIBS=$LIBS
8321 LIBS="-ldld  $LIBS"
8322 cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h.  */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h.  */
8328
8329 /* Override any gcc2 internal prototype to avoid an error.  */
8330 #ifdef __cplusplus
8331 extern "C"
8332 #endif
8333 /* We use char because int might match the return type of a gcc2
8334    builtin and then its argument prototype would still apply.  */
8335 char shl_load ();
8336 int
8337 main ()
8338 {
8339 shl_load ();
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346   (eval $ac_link) 2>conftest.er1
8347   ac_status=$?
8348   grep -v '^ *+' conftest.er1 >conftest.err
8349   rm -f conftest.er1
8350   cat conftest.err >&5
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); } &&
8353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; } &&
8359          { ac_try='test -s conftest$ac_exeext'
8360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361   (eval $ac_try) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   ac_cv_lib_dld_shl_load=yes
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 ac_cv_lib_dld_shl_load=no
8371 fi
8372 rm -f conftest.err conftest.$ac_objext \
8373       conftest$ac_exeext conftest.$ac_ext
8374 LIBS=$ac_check_lib_save_LIBS
8375 fi
8376 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8377 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8378 if test $ac_cv_lib_dld_shl_load = yes; then
8379   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8380 else
8381   echo "$as_me:$LINENO: checking for dlopen" >&5
8382 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8383 if test "${ac_cv_func_dlopen+set}" = set; then
8384   echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386   cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h.  */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h.  */
8392 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8394 #define dlopen innocuous_dlopen
8395
8396 /* System header to define __stub macros and hopefully few prototypes,
8397     which can conflict with char dlopen (); below.
8398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8399     <limits.h> exists even on freestanding compilers.  */
8400
8401 #ifdef __STDC__
8402 # include <limits.h>
8403 #else
8404 # include <assert.h>
8405 #endif
8406
8407 #undef dlopen
8408
8409 /* Override any gcc2 internal prototype to avoid an error.  */
8410 #ifdef __cplusplus
8411 extern "C"
8412 {
8413 #endif
8414 /* We use char because int might match the return type of a gcc2
8415    builtin and then its argument prototype would still apply.  */
8416 char dlopen ();
8417 /* The GNU C library defines this for functions which it implements
8418     to always fail with ENOSYS.  Some functions are actually named
8419     something starting with __ and the normal name is an alias.  */
8420 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8421 choke me
8422 #else
8423 char (*f) () = dlopen;
8424 #endif
8425 #ifdef __cplusplus
8426 }
8427 #endif
8428
8429 int
8430 main ()
8431 {
8432 return f != dlopen;
8433   ;
8434   return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439   (eval $ac_link) 2>conftest.er1
8440   ac_status=$?
8441   grep -v '^ *+' conftest.er1 >conftest.err
8442   rm -f conftest.er1
8443   cat conftest.err >&5
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } &&
8446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448   (eval $ac_try) 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; } &&
8452          { ac_try='test -s conftest$ac_exeext'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; }; then
8458   ac_cv_func_dlopen=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463 ac_cv_func_dlopen=no
8464 fi
8465 rm -f conftest.err conftest.$ac_objext \
8466       conftest$ac_exeext conftest.$ac_ext
8467 fi
8468 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8469 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8470 if test $ac_cv_func_dlopen = yes; then
8471   lt_cv_dlopen="dlopen"
8472 else
8473   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8474 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8475 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8476   echo $ECHO_N "(cached) $ECHO_C" >&6
8477 else
8478   ac_check_lib_save_LIBS=$LIBS
8479 LIBS="-ldl  $LIBS"
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486
8487 /* Override any gcc2 internal prototype to avoid an error.  */
8488 #ifdef __cplusplus
8489 extern "C"
8490 #endif
8491 /* We use char because int might match the return type of a gcc2
8492    builtin and then its argument prototype would still apply.  */
8493 char dlopen ();
8494 int
8495 main ()
8496 {
8497 dlopen ();
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext conftest$ac_exeext
8503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504   (eval $ac_link) 2>conftest.er1
8505   ac_status=$?
8506   grep -v '^ *+' conftest.er1 >conftest.err
8507   rm -f conftest.er1
8508   cat conftest.err >&5
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } &&
8511          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513   (eval $ac_try) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; } &&
8517          { ac_try='test -s conftest$ac_exeext'
8518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519   (eval $ac_try) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); }; }; then
8523   ac_cv_lib_dl_dlopen=yes
8524 else
8525   echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8527
8528 ac_cv_lib_dl_dlopen=no
8529 fi
8530 rm -f conftest.err conftest.$ac_objext \
8531       conftest$ac_exeext conftest.$ac_ext
8532 LIBS=$ac_check_lib_save_LIBS
8533 fi
8534 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8535 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8536 if test $ac_cv_lib_dl_dlopen = yes; then
8537   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8538 else
8539   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8540 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8541 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   ac_check_lib_save_LIBS=$LIBS
8545 LIBS="-lsvld  $LIBS"
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h.  */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h.  */
8552
8553 /* Override any gcc2 internal prototype to avoid an error.  */
8554 #ifdef __cplusplus
8555 extern "C"
8556 #endif
8557 /* We use char because int might match the return type of a gcc2
8558    builtin and then its argument prototype would still apply.  */
8559 char dlopen ();
8560 int
8561 main ()
8562 {
8563 dlopen ();
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570   (eval $ac_link) 2>conftest.er1
8571   ac_status=$?
8572   grep -v '^ *+' conftest.er1 >conftest.err
8573   rm -f conftest.er1
8574   cat conftest.err >&5
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); } &&
8577          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579   (eval $ac_try) 2>&5
8580   ac_status=$?
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); }; } &&
8583          { ac_try='test -s conftest$ac_exeext'
8584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585   (eval $ac_try) 2>&5
8586   ac_status=$?
8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); }; }; then
8589   ac_cv_lib_svld_dlopen=yes
8590 else
8591   echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8593
8594 ac_cv_lib_svld_dlopen=no
8595 fi
8596 rm -f conftest.err conftest.$ac_objext \
8597       conftest$ac_exeext conftest.$ac_ext
8598 LIBS=$ac_check_lib_save_LIBS
8599 fi
8600 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8601 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8602 if test $ac_cv_lib_svld_dlopen = yes; then
8603   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8604 else
8605   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8606 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8607 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   ac_check_lib_save_LIBS=$LIBS
8611 LIBS="-ldld  $LIBS"
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h.  */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h.  */
8618
8619 /* Override any gcc2 internal prototype to avoid an error.  */
8620 #ifdef __cplusplus
8621 extern "C"
8622 #endif
8623 /* We use char because int might match the return type of a gcc2
8624    builtin and then its argument prototype would still apply.  */
8625 char dld_link ();
8626 int
8627 main ()
8628 {
8629 dld_link ();
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636   (eval $ac_link) 2>conftest.er1
8637   ac_status=$?
8638   grep -v '^ *+' conftest.er1 >conftest.err
8639   rm -f conftest.er1
8640   cat conftest.err >&5
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); } &&
8643          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645   (eval $ac_try) 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; } &&
8649          { ac_try='test -s conftest$ac_exeext'
8650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651   (eval $ac_try) 2>&5
8652   ac_status=$?
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); }; }; then
8655   ac_cv_lib_dld_dld_link=yes
8656 else
8657   echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 ac_cv_lib_dld_dld_link=no
8661 fi
8662 rm -f conftest.err conftest.$ac_objext \
8663       conftest$ac_exeext conftest.$ac_ext
8664 LIBS=$ac_check_lib_save_LIBS
8665 fi
8666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8667 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8668 if test $ac_cv_lib_dld_dld_link = yes; then
8669   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8670 fi
8671
8672
8673 fi
8674
8675
8676 fi
8677
8678
8679 fi
8680
8681
8682 fi
8683
8684
8685 fi
8686
8687     ;;
8688   esac
8689
8690   if test "x$lt_cv_dlopen" != xno; then
8691     enable_dlopen=yes
8692   else
8693     enable_dlopen=no
8694   fi
8695
8696   case $lt_cv_dlopen in
8697   dlopen)
8698     save_CPPFLAGS="$CPPFLAGS"
8699     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8700
8701     save_LDFLAGS="$LDFLAGS"
8702     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8703
8704     save_LIBS="$LIBS"
8705     LIBS="$lt_cv_dlopen_libs $LIBS"
8706
8707     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8708 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8709 if test "${lt_cv_dlopen_self+set}" = set; then
8710   echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712           if test "$cross_compiling" = yes; then :
8713   lt_cv_dlopen_self=cross
8714 else
8715   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8716   lt_status=$lt_dlunknown
8717   cat > conftest.$ac_ext <<EOF
8718 #line 8718 "configure"
8719 #include "confdefs.h"
8720
8721 #if HAVE_DLFCN_H
8722 #include <dlfcn.h>
8723 #endif
8724
8725 #include <stdio.h>
8726
8727 #ifdef RTLD_GLOBAL
8728 #  define LT_DLGLOBAL           RTLD_GLOBAL
8729 #else
8730 #  ifdef DL_GLOBAL
8731 #    define LT_DLGLOBAL         DL_GLOBAL
8732 #  else
8733 #    define LT_DLGLOBAL         0
8734 #  endif
8735 #endif
8736
8737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8738    find out it does not work in some platform. */
8739 #ifndef LT_DLLAZY_OR_NOW
8740 #  ifdef RTLD_LAZY
8741 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8742 #  else
8743 #    ifdef DL_LAZY
8744 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8745 #    else
8746 #      ifdef RTLD_NOW
8747 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8748 #      else
8749 #        ifdef DL_NOW
8750 #          define LT_DLLAZY_OR_NOW      DL_NOW
8751 #        else
8752 #          define LT_DLLAZY_OR_NOW      0
8753 #        endif
8754 #      endif
8755 #    endif
8756 #  endif
8757 #endif
8758
8759 #ifdef __cplusplus
8760 extern "C" void exit (int);
8761 #endif
8762
8763 void fnord() { int i=42;}
8764 int main ()
8765 {
8766   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8767   int status = $lt_dlunknown;
8768
8769   if (self)
8770     {
8771       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8772       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8773       /* dlclose (self); */
8774     }
8775
8776     exit (status);
8777 }
8778 EOF
8779   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780   (eval $ac_link) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8784     (./conftest; exit; ) 2>/dev/null
8785     lt_status=$?
8786     case x$lt_status in
8787       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8788       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8789       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8790     esac
8791   else :
8792     # compilation failed
8793     lt_cv_dlopen_self=no
8794   fi
8795 fi
8796 rm -fr conftest*
8797
8798
8799 fi
8800 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8801 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8802
8803     if test "x$lt_cv_dlopen_self" = xyes; then
8804       LDFLAGS="$LDFLAGS $link_static_flag"
8805       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8806 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8807 if test "${lt_cv_dlopen_self_static+set}" = set; then
8808   echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810           if test "$cross_compiling" = yes; then :
8811   lt_cv_dlopen_self_static=cross
8812 else
8813   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8814   lt_status=$lt_dlunknown
8815   cat > conftest.$ac_ext <<EOF
8816 #line 8816 "configure"
8817 #include "confdefs.h"
8818
8819 #if HAVE_DLFCN_H
8820 #include <dlfcn.h>
8821 #endif
8822
8823 #include <stdio.h>
8824
8825 #ifdef RTLD_GLOBAL
8826 #  define LT_DLGLOBAL           RTLD_GLOBAL
8827 #else
8828 #  ifdef DL_GLOBAL
8829 #    define LT_DLGLOBAL         DL_GLOBAL
8830 #  else
8831 #    define LT_DLGLOBAL         0
8832 #  endif
8833 #endif
8834
8835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8836    find out it does not work in some platform. */
8837 #ifndef LT_DLLAZY_OR_NOW
8838 #  ifdef RTLD_LAZY
8839 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8840 #  else
8841 #    ifdef DL_LAZY
8842 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8843 #    else
8844 #      ifdef RTLD_NOW
8845 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8846 #      else
8847 #        ifdef DL_NOW
8848 #          define LT_DLLAZY_OR_NOW      DL_NOW
8849 #        else
8850 #          define LT_DLLAZY_OR_NOW      0
8851 #        endif
8852 #      endif
8853 #    endif
8854 #  endif
8855 #endif
8856
8857 #ifdef __cplusplus
8858 extern "C" void exit (int);
8859 #endif
8860
8861 void fnord() { int i=42;}
8862 int main ()
8863 {
8864   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8865   int status = $lt_dlunknown;
8866
8867   if (self)
8868     {
8869       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8870       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8871       /* dlclose (self); */
8872     }
8873
8874     exit (status);
8875 }
8876 EOF
8877   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8878   (eval $ac_link) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8882     (./conftest; exit; ) 2>/dev/null
8883     lt_status=$?
8884     case x$lt_status in
8885       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8886       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8887       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8888     esac
8889   else :
8890     # compilation failed
8891     lt_cv_dlopen_self_static=no
8892   fi
8893 fi
8894 rm -fr conftest*
8895
8896
8897 fi
8898 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8899 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8900     fi
8901
8902     CPPFLAGS="$save_CPPFLAGS"
8903     LDFLAGS="$save_LDFLAGS"
8904     LIBS="$save_LIBS"
8905     ;;
8906   esac
8907
8908   case $lt_cv_dlopen_self in
8909   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8910   *) enable_dlopen_self=unknown ;;
8911   esac
8912
8913   case $lt_cv_dlopen_self_static in
8914   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8915   *) enable_dlopen_self_static=unknown ;;
8916   esac
8917 fi
8918
8919
8920 # Report which librarie types wil actually be built
8921 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8922 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8923 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8924 echo "${ECHO_T}$can_build_shared" >&6
8925
8926 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8927 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8928 test "$can_build_shared" = "no" && enable_shared=no
8929
8930 # On AIX, shared libraries and static libraries use the same namespace, and
8931 # are all built from PIC.
8932 case "$host_os" in
8933 aix3*)
8934   test "$enable_shared" = yes && enable_static=no
8935   if test -n "$RANLIB"; then
8936     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8937     postinstall_cmds='$RANLIB $lib'
8938   fi
8939   ;;
8940
8941 aix4*)
8942   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8943     test "$enable_shared" = yes && enable_static=no
8944   fi
8945   ;;
8946   darwin* | rhapsody*)
8947   if test "$GCC" = yes; then
8948     archive_cmds_need_lc=no
8949     case "$host_os" in
8950     rhapsody* | darwin1.[012])
8951       allow_undefined_flag='-undefined suppress'
8952       ;;
8953     *) # Darwin 1.3 on
8954       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8955         allow_undefined_flag='-flat_namespace -undefined suppress'
8956       else
8957         case ${MACOSX_DEPLOYMENT_TARGET} in
8958           10.[012])
8959             allow_undefined_flag='-flat_namespace -undefined suppress'
8960             ;;
8961           10.*)
8962             allow_undefined_flag='-undefined dynamic_lookup'
8963             ;;
8964         esac
8965       fi
8966       ;;
8967     esac
8968     output_verbose_link_cmd='echo'
8969     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8970     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8971     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8972     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}'
8973     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}'
8974     hardcode_direct=no
8975     hardcode_automatic=yes
8976     hardcode_shlibpath_var=unsupported
8977     whole_archive_flag_spec='-all_load $convenience'
8978     link_all_deplibs=yes
8979   else
8980     ld_shlibs=no
8981   fi
8982     ;;
8983 esac
8984 echo "$as_me:$LINENO: result: $enable_shared" >&5
8985 echo "${ECHO_T}$enable_shared" >&6
8986
8987 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8988 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8989 # Make sure either enable_shared or enable_static is yes.
8990 test "$enable_shared" = yes || enable_static=yes
8991 echo "$as_me:$LINENO: result: $enable_static" >&5
8992 echo "${ECHO_T}$enable_static" >&6
8993
8994 # The else clause should only fire when bootstrapping the
8995 # libtool distribution, otherwise you forgot to ship ltmain.sh
8996 # with your package, and you will get complaints that there are
8997 # no rules to generate ltmain.sh.
8998 if test -f "$ltmain"; then
8999   # See if we are running on zsh, and set the options which allow our commands through
9000   # without removal of \ escapes.
9001   if test -n "${ZSH_VERSION+set}" ; then
9002     setopt NO_GLOB_SUBST
9003   fi
9004   # Now quote all the things that may contain metacharacters while being
9005   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9006   # variables and quote the copies for generation of the libtool script.
9007   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9008     SED SHELL STRIP \
9009     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9010     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9011     deplibs_check_method reload_flag reload_cmds need_locks \
9012     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9013     lt_cv_sys_global_symbol_to_c_name_address \
9014     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9015     old_postinstall_cmds old_postuninstall_cmds \
9016     compiler \
9017     CC \
9018     LD \
9019     lt_prog_compiler_wl \
9020     lt_prog_compiler_pic \
9021     lt_prog_compiler_static \
9022     lt_prog_compiler_no_builtin_flag \
9023     export_dynamic_flag_spec \
9024     thread_safe_flag_spec \
9025     whole_archive_flag_spec \
9026     enable_shared_with_static_runtimes \
9027     old_archive_cmds \
9028     old_archive_from_new_cmds \
9029     predep_objects \
9030     postdep_objects \
9031     predeps \
9032     postdeps \
9033     compiler_lib_search_path \
9034     archive_cmds \
9035     archive_expsym_cmds \
9036     postinstall_cmds \
9037     postuninstall_cmds \
9038     old_archive_from_expsyms_cmds \
9039     allow_undefined_flag \
9040     no_undefined_flag \
9041     export_symbols_cmds \
9042     hardcode_libdir_flag_spec \
9043     hardcode_libdir_flag_spec_ld \
9044     hardcode_libdir_separator \
9045     hardcode_automatic \
9046     module_cmds \
9047     module_expsym_cmds \
9048     lt_cv_prog_compiler_c_o \
9049     exclude_expsyms \
9050     include_expsyms; do
9051
9052     case $var in
9053     old_archive_cmds | \
9054     old_archive_from_new_cmds | \
9055     archive_cmds | \
9056     archive_expsym_cmds | \
9057     module_cmds | \
9058     module_expsym_cmds | \
9059     old_archive_from_expsyms_cmds | \
9060     export_symbols_cmds | \
9061     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9062     postinstall_cmds | postuninstall_cmds | \
9063     old_postinstall_cmds | old_postuninstall_cmds | \
9064     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9065       # Double-quote double-evaled strings.
9066       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9067       ;;
9068     *)
9069       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9070       ;;
9071     esac
9072   done
9073
9074   case $lt_echo in
9075   *'\$0 --fallback-echo"')
9076     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9077     ;;
9078   esac
9079
9080 cfgfile="${ofile}T"
9081   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9082   $rm -f "$cfgfile"
9083   { echo "$as_me:$LINENO: creating $ofile" >&5
9084 echo "$as_me: creating $ofile" >&6;}
9085
9086   cat <<__EOF__ >> "$cfgfile"
9087 #! $SHELL
9088
9089 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9090 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9092 #
9093 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9094 # Free Software Foundation, Inc.
9095 #
9096 # This file is part of GNU Libtool:
9097 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9098 #
9099 # This program is free software; you can redistribute it and/or modify
9100 # it under the terms of the GNU General Public License as published by
9101 # the Free Software Foundation; either version 2 of the License, or
9102 # (at your option) any later version.
9103 #
9104 # This program is distributed in the hope that it will be useful, but
9105 # WITHOUT ANY WARRANTY; without even the implied warranty of
9106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9107 # General Public License for more details.
9108 #
9109 # You should have received a copy of the GNU General Public License
9110 # along with this program; if not, write to the Free Software
9111 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9112 #
9113 # As a special exception to the GNU General Public License, if you
9114 # distribute this file as part of a program that contains a
9115 # configuration script generated by Autoconf, you may include it under
9116 # the same distribution terms that you use for the rest of that program.
9117
9118 # A sed program that does not truncate output.
9119 SED=$lt_SED
9120
9121 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9122 Xsed="$SED -e s/^X//"
9123
9124 # The HP-UX ksh and POSIX shell print the target directory to stdout
9125 # if CDPATH is set.
9126 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9127
9128 # The names of the tagged configurations supported by this script.
9129 available_tags=
9130
9131 # ### BEGIN LIBTOOL CONFIG
9132
9133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9134
9135 # Shell to use when invoking shell scripts.
9136 SHELL=$lt_SHELL
9137
9138 # Whether or not to build shared libraries.
9139 build_libtool_libs=$enable_shared
9140
9141 # Whether or not to build static libraries.
9142 build_old_libs=$enable_static
9143
9144 # Whether or not to add -lc for building shared libraries.
9145 build_libtool_need_lc=$archive_cmds_need_lc
9146
9147 # Whether or not to disallow shared libs when runtime libs are static
9148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9149
9150 # Whether or not to optimize for fast installation.
9151 fast_install=$enable_fast_install
9152
9153 # The host system.
9154 host_alias=$host_alias
9155 host=$host
9156
9157 # An echo program that does not interpret backslashes.
9158 echo=$lt_echo
9159
9160 # The archiver.
9161 AR=$lt_AR
9162 AR_FLAGS=$lt_AR_FLAGS
9163
9164 # A C compiler.
9165 LTCC=$lt_LTCC
9166
9167 # A language-specific compiler.
9168 CC=$lt_compiler
9169
9170 # Is the compiler the GNU C compiler?
9171 with_gcc=$GCC
9172
9173 # An ERE matcher.
9174 EGREP=$lt_EGREP
9175
9176 # The linker used to build libraries.
9177 LD=$lt_LD
9178
9179 # Whether we need hard or soft links.
9180 LN_S=$lt_LN_S
9181
9182 # A BSD-compatible nm program.
9183 NM=$lt_NM
9184
9185 # A symbol stripping program
9186 STRIP=$lt_STRIP
9187
9188 # Used to examine libraries when file_magic_cmd begins "file"
9189 MAGIC_CMD=$MAGIC_CMD
9190
9191 # Used on cygwin: DLL creation program.
9192 DLLTOOL="$DLLTOOL"
9193
9194 # Used on cygwin: object dumper.
9195 OBJDUMP="$OBJDUMP"
9196
9197 # Used on cygwin: assembler.
9198 AS="$AS"
9199
9200 # The name of the directory that contains temporary libtool files.
9201 objdir=$objdir
9202
9203 # How to create reloadable object files.
9204 reload_flag=$lt_reload_flag
9205 reload_cmds=$lt_reload_cmds
9206
9207 # How to pass a linker flag through the compiler.
9208 wl=$lt_lt_prog_compiler_wl
9209
9210 # Object file suffix (normally "o").
9211 objext="$ac_objext"
9212
9213 # Old archive suffix (normally "a").
9214 libext="$libext"
9215
9216 # Shared library suffix (normally ".so").
9217 shrext='$shrext'
9218
9219 # Executable file suffix (normally "").
9220 exeext="$exeext"
9221
9222 # Additional compiler flags for building library objects.
9223 pic_flag=$lt_lt_prog_compiler_pic
9224 pic_mode=$pic_mode
9225
9226 # What is the maximum length of a command?
9227 max_cmd_len=$lt_cv_sys_max_cmd_len
9228
9229 # Does compiler simultaneously support -c and -o options?
9230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9231
9232 # Must we lock files when doing compilation ?
9233 need_locks=$lt_need_locks
9234
9235 # Do we need the lib prefix for modules?
9236 need_lib_prefix=$need_lib_prefix
9237
9238 # Do we need a version for libraries?
9239 need_version=$need_version
9240
9241 # Whether dlopen is supported.
9242 dlopen_support=$enable_dlopen
9243
9244 # Whether dlopen of programs is supported.
9245 dlopen_self=$enable_dlopen_self
9246
9247 # Whether dlopen of statically linked programs is supported.
9248 dlopen_self_static=$enable_dlopen_self_static
9249
9250 # Compiler flag to prevent dynamic linking.
9251 link_static_flag=$lt_lt_prog_compiler_static
9252
9253 # Compiler flag to turn off builtin functions.
9254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9255
9256 # Compiler flag to allow reflexive dlopens.
9257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9258
9259 # Compiler flag to generate shared objects directly from archives.
9260 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9261
9262 # Compiler flag to generate thread-safe objects.
9263 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9264
9265 # Library versioning type.
9266 version_type=$version_type
9267
9268 # Format of library name prefix.
9269 libname_spec=$lt_libname_spec
9270
9271 # List of archive names.  First name is the real one, the rest are links.
9272 # The last name is the one that the linker finds with -lNAME.
9273 library_names_spec=$lt_library_names_spec
9274
9275 # The coded name of the library, if different from the real name.
9276 soname_spec=$lt_soname_spec
9277
9278 # Commands used to build and install an old-style archive.
9279 RANLIB=$lt_RANLIB
9280 old_archive_cmds=$lt_old_archive_cmds
9281 old_postinstall_cmds=$lt_old_postinstall_cmds
9282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9283
9284 # Create an old-style archive from a shared archive.
9285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9286
9287 # Create a temporary old-style archive to link instead of a shared archive.
9288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9289
9290 # Commands used to build and install a shared archive.
9291 archive_cmds=$lt_archive_cmds
9292 archive_expsym_cmds=$lt_archive_expsym_cmds
9293 postinstall_cmds=$lt_postinstall_cmds
9294 postuninstall_cmds=$lt_postuninstall_cmds
9295
9296 # Commands used to build a loadable module (assumed same as above if empty)
9297 module_cmds=$lt_module_cmds
9298 module_expsym_cmds=$lt_module_expsym_cmds
9299
9300 # Commands to strip libraries.
9301 old_striplib=$lt_old_striplib
9302 striplib=$lt_striplib
9303
9304 # Dependencies to place before the objects being linked to create a
9305 # shared library.
9306 predep_objects=$lt_predep_objects
9307
9308 # Dependencies to place after the objects being linked to create a
9309 # shared library.
9310 postdep_objects=$lt_postdep_objects
9311
9312 # Dependencies to place before the objects being linked to create a
9313 # shared library.
9314 predeps=$lt_predeps
9315
9316 # Dependencies to place after the objects being linked to create a
9317 # shared library.
9318 postdeps=$lt_postdeps
9319
9320 # The library search path used internally by the compiler when linking
9321 # a shared library.
9322 compiler_lib_search_path=$lt_compiler_lib_search_path
9323
9324 # Method to check whether dependent libraries are shared objects.
9325 deplibs_check_method=$lt_deplibs_check_method
9326
9327 # Command to use when deplibs_check_method == file_magic.
9328 file_magic_cmd=$lt_file_magic_cmd
9329
9330 # Flag that allows shared libraries with undefined symbols to be built.
9331 allow_undefined_flag=$lt_allow_undefined_flag
9332
9333 # Flag that forces no undefined symbols.
9334 no_undefined_flag=$lt_no_undefined_flag
9335
9336 # Commands used to finish a libtool library installation in a directory.
9337 finish_cmds=$lt_finish_cmds
9338
9339 # Same as above, but a single script fragment to be evaled but not shown.
9340 finish_eval=$lt_finish_eval
9341
9342 # Take the output of nm and produce a listing of raw symbols and C names.
9343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9344
9345 # Transform the output of nm in a proper C declaration
9346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9347
9348 # Transform the output of nm in a C name address pair
9349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9350
9351 # This is the shared library runtime path variable.
9352 runpath_var=$runpath_var
9353
9354 # This is the shared library path variable.
9355 shlibpath_var=$shlibpath_var
9356
9357 # Is shlibpath searched before the hard-coded library search path?
9358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9359
9360 # How to hardcode a shared library path into an executable.
9361 hardcode_action=$hardcode_action
9362
9363 # Whether we should hardcode library paths into libraries.
9364 hardcode_into_libs=$hardcode_into_libs
9365
9366 # Flag to hardcode \$libdir into a binary during linking.
9367 # This must work even if \$libdir does not exist.
9368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9369
9370 # If ld is used when linking, flag to hardcode \$libdir into
9371 # a binary during linking. This must work even if \$libdir does
9372 # not exist.
9373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9374
9375 # Whether we need a single -rpath flag with a separated argument.
9376 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9377
9378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9379 # resulting binary.
9380 hardcode_direct=$hardcode_direct
9381
9382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9383 # resulting binary.
9384 hardcode_minus_L=$hardcode_minus_L
9385
9386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9387 # the resulting binary.
9388 hardcode_shlibpath_var=$hardcode_shlibpath_var
9389
9390 # Set to yes if building a shared library automatically hardcodes DIR into the library
9391 # and all subsequent libraries and executables linked against it.
9392 hardcode_automatic=$hardcode_automatic
9393
9394 # Variables whose values should be saved in libtool wrapper scripts and
9395 # restored at relink time.
9396 variables_saved_for_relink="$variables_saved_for_relink"
9397
9398 # Whether libtool must link a program against all its dependency libraries.
9399 link_all_deplibs=$link_all_deplibs
9400
9401 # Compile-time system search path for libraries
9402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9403
9404 # Run-time system search path for libraries
9405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9406
9407 # Fix the shell variable \$srcfile for the compiler.
9408 fix_srcfile_path="$fix_srcfile_path"
9409
9410 # Set to yes if exported symbols are required.
9411 always_export_symbols=$always_export_symbols
9412
9413 # The commands to list exported symbols.
9414 export_symbols_cmds=$lt_export_symbols_cmds
9415
9416 # The commands to extract the exported symbol list from a shared archive.
9417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9418
9419 # Symbols that should not be listed in the preloaded symbols.
9420 exclude_expsyms=$lt_exclude_expsyms
9421
9422 # Symbols that must always be exported.
9423 include_expsyms=$lt_include_expsyms
9424
9425 # ### END LIBTOOL CONFIG
9426
9427 __EOF__
9428
9429
9430   case $host_os in
9431   aix3*)
9432     cat <<\EOF >> "$cfgfile"
9433
9434 # AIX sometimes has problems with the GCC collect2 program.  For some
9435 # reason, if we set the COLLECT_NAMES environment variable, the problems
9436 # vanish in a puff of smoke.
9437 if test "X${COLLECT_NAMES+set}" != Xset; then
9438   COLLECT_NAMES=
9439   export COLLECT_NAMES
9440 fi
9441 EOF
9442     ;;
9443   esac
9444
9445   # We use sed instead of cat because bash on DJGPP gets confused if
9446   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9447   # text mode, it properly converts lines to CR/LF.  This bash problem
9448   # is reportedly fixed, but why not run on old versions too?
9449   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9450
9451   mv -f "$cfgfile" "$ofile" || \
9452     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9453   chmod +x "$ofile"
9454
9455 else
9456   # If there is no Makefile yet, we rely on a make rule to execute
9457   # `config.status --recheck' to rerun these tests and create the
9458   # libtool script then.
9459   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9460   if test -f "$ltmain_in"; then
9461     test -f Makefile && make "$ltmain"
9462   fi
9463 fi
9464
9465
9466 ac_ext=c
9467 ac_cpp='$CPP $CPPFLAGS'
9468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9471
9472 CC="$lt_save_CC"
9473
9474
9475 # Check whether --with-tags or --without-tags was given.
9476 if test "${with_tags+set}" = set; then
9477   withval="$with_tags"
9478   tagnames="$withval"
9479 fi;
9480
9481 if test -f "$ltmain" && test -n "$tagnames"; then
9482   if test ! -f "${ofile}"; then
9483     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9484 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9485   fi
9486
9487   if test -z "$LTCC"; then
9488     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9489     if test -z "$LTCC"; then
9490       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9491 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9492     else
9493       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9494 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9495     fi
9496   fi
9497
9498   # Extract list of available tagged configurations in $ofile.
9499   # Note that this assumes the entire list is on one line.
9500   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9501
9502   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9503   for tagname in $tagnames; do
9504     IFS="$lt_save_ifs"
9505     # Check whether tagname contains only valid characters
9506     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9507     "") ;;
9508     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9509 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9510    { (exit 1); exit 1; }; }
9511         ;;
9512     esac
9513
9514     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9515     then
9516       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9517 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9518    { (exit 1); exit 1; }; }
9519     fi
9520
9521     # Update the list of available tags.
9522     if test -n "$tagname"; then
9523       echo appending configuration tag \"$tagname\" to $ofile
9524
9525       case $tagname in
9526       CXX)
9527         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9528           ac_ext=cc
9529 ac_cpp='$CXXCPP $CPPFLAGS'
9530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9533
9534
9535
9536
9537 archive_cmds_need_lc_CXX=no
9538 allow_undefined_flag_CXX=
9539 always_export_symbols_CXX=no
9540 archive_expsym_cmds_CXX=
9541 export_dynamic_flag_spec_CXX=
9542 hardcode_direct_CXX=no
9543 hardcode_libdir_flag_spec_CXX=
9544 hardcode_libdir_flag_spec_ld_CXX=
9545 hardcode_libdir_separator_CXX=
9546 hardcode_minus_L_CXX=no
9547 hardcode_automatic_CXX=no
9548 module_cmds_CXX=
9549 module_expsym_cmds_CXX=
9550 link_all_deplibs_CXX=unknown
9551 old_archive_cmds_CXX=$old_archive_cmds
9552 no_undefined_flag_CXX=
9553 whole_archive_flag_spec_CXX=
9554 enable_shared_with_static_runtimes_CXX=no
9555
9556 # Dependencies to place before and after the object being linked:
9557 predep_objects_CXX=
9558 postdep_objects_CXX=
9559 predeps_CXX=
9560 postdeps_CXX=
9561 compiler_lib_search_path_CXX=
9562
9563 # Source file extension for C++ test sources.
9564 ac_ext=cc
9565
9566 # Object file extension for compiled C++ test sources.
9567 objext=o
9568 objext_CXX=$objext
9569
9570 # Code to be used in simple compile tests
9571 lt_simple_compile_test_code="int some_variable = 0;\n"
9572
9573 # Code to be used in simple link tests
9574 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9575
9576 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9577
9578 # If no C compiler was specified, use CC.
9579 LTCC=${LTCC-"$CC"}
9580
9581 # Allow CC to be a program name with arguments.
9582 compiler=$CC
9583
9584
9585 # Allow CC to be a program name with arguments.
9586 lt_save_CC=$CC
9587 lt_save_LD=$LD
9588 lt_save_GCC=$GCC
9589 GCC=$GXX
9590 lt_save_with_gnu_ld=$with_gnu_ld
9591 lt_save_path_LD=$lt_cv_path_LD
9592 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9593   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9594 else
9595   unset lt_cv_prog_gnu_ld
9596 fi
9597 if test -n "${lt_cv_path_LDCXX+set}"; then
9598   lt_cv_path_LD=$lt_cv_path_LDCXX
9599 else
9600   unset lt_cv_path_LD
9601 fi
9602 test -z "${LDCXX+set}" || LD=$LDCXX
9603 CC=${CXX-"c++"}
9604 compiler=$CC
9605 compiler_CXX=$CC
9606 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9607
9608 # We don't want -fno-exception wen compiling C++ code, so set the
9609 # no_builtin_flag separately
9610 if test "$GXX" = yes; then
9611   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9612 else
9613   lt_prog_compiler_no_builtin_flag_CXX=
9614 fi
9615
9616 if test "$GXX" = yes; then
9617   # Set up default GNU C++ configuration
9618
9619
9620 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9621 if test "${with_gnu_ld+set}" = set; then
9622   withval="$with_gnu_ld"
9623   test "$withval" = no || with_gnu_ld=yes
9624 else
9625   with_gnu_ld=no
9626 fi;
9627 ac_prog=ld
9628 if test "$GCC" = yes; then
9629   # Check if gcc -print-prog-name=ld gives a path.
9630   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9631 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9632   case $host in
9633   *-*-mingw*)
9634     # gcc leaves a trailing carriage return which upsets mingw
9635     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9636   *)
9637     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9638   esac
9639   case $ac_prog in
9640     # Accept absolute paths.
9641     [\\/]* | ?:[\\/]*)
9642       re_direlt='/[^/][^/]*/\.\./'
9643       # Canonicalize the pathname of ld
9644       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9645       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9646         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9647       done
9648       test -z "$LD" && LD="$ac_prog"
9649       ;;
9650   "")
9651     # If it fails, then pretend we aren't using GCC.
9652     ac_prog=ld
9653     ;;
9654   *)
9655     # If it is relative, then search for the first ld in PATH.
9656     with_gnu_ld=unknown
9657     ;;
9658   esac
9659 elif test "$with_gnu_ld" = yes; then
9660   echo "$as_me:$LINENO: checking for GNU ld" >&5
9661 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9662 else
9663   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9664 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9665 fi
9666 if test "${lt_cv_path_LD+set}" = set; then
9667   echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669   if test -z "$LD"; then
9670   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9671   for ac_dir in $PATH; do
9672     IFS="$lt_save_ifs"
9673     test -z "$ac_dir" && ac_dir=.
9674     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9675       lt_cv_path_LD="$ac_dir/$ac_prog"
9676       # Check to see if the program is GNU ld.  I'd rather use --version,
9677       # but apparently some GNU ld's only accept -v.
9678       # Break only if it was the GNU/non-GNU ld that we prefer.
9679       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9680       *GNU* | *'with BFD'*)
9681         test "$with_gnu_ld" != no && break
9682         ;;
9683       *)
9684         test "$with_gnu_ld" != yes && break
9685         ;;
9686       esac
9687     fi
9688   done
9689   IFS="$lt_save_ifs"
9690 else
9691   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9692 fi
9693 fi
9694
9695 LD="$lt_cv_path_LD"
9696 if test -n "$LD"; then
9697   echo "$as_me:$LINENO: result: $LD" >&5
9698 echo "${ECHO_T}$LD" >&6
9699 else
9700   echo "$as_me:$LINENO: result: no" >&5
9701 echo "${ECHO_T}no" >&6
9702 fi
9703 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9704 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9705    { (exit 1); exit 1; }; }
9706 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9707 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9708 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9709   echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9712 case `$LD -v 2>&1 </dev/null` in
9713 *GNU* | *'with BFD'*)
9714   lt_cv_prog_gnu_ld=yes
9715   ;;
9716 *)
9717   lt_cv_prog_gnu_ld=no
9718   ;;
9719 esac
9720 fi
9721 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9722 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9723 with_gnu_ld=$lt_cv_prog_gnu_ld
9724
9725
9726
9727   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9728   # archiving commands below assume that GNU ld is being used.
9729   if test "$with_gnu_ld" = yes; then
9730     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731     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'
9732
9733     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9734     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9735
9736     # If archive_cmds runs LD, not CC, wlarc should be empty
9737     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9738     #     investigate it a little bit more. (MM)
9739     wlarc='${wl}'
9740
9741     # ancient GNU ld didn't support --whole-archive et. al.
9742     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9743         grep 'no-whole-archive' > /dev/null; then
9744       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9745     else
9746       whole_archive_flag_spec_CXX=
9747     fi
9748   else
9749     with_gnu_ld=no
9750     wlarc=
9751
9752     # A generic and very simple default shared library creation
9753     # command for GNU C++ for the case where it uses the native
9754     # linker, instead of GNU ld.  If possible, this setting should
9755     # overridden to take advantage of the native linker features on
9756     # the platform it is being used on.
9757     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9758   fi
9759
9760   # Commands to make compiler produce verbose output that lists
9761   # what "hidden" libraries, object files and flags are used when
9762   # linking a shared library.
9763   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9764
9765 else
9766   GXX=no
9767   with_gnu_ld=no
9768   wlarc=
9769 fi
9770
9771 # PORTME: fill in a description of your system's C++ link characteristics
9772 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9773 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9774 ld_shlibs_CXX=yes
9775 case $host_os in
9776   aix3*)
9777     # FIXME: insert proper C++ library support
9778     ld_shlibs_CXX=no
9779     ;;
9780   aix4* | aix5*)
9781     if test "$host_cpu" = ia64; then
9782       # On IA64, the linker does run time linking by default, so we don't
9783       # have to do anything special.
9784       aix_use_runtimelinking=no
9785       exp_sym_flag='-Bexport'
9786       no_entry_flag=""
9787     else
9788       aix_use_runtimelinking=no
9789
9790       # Test if we are trying to use run time linking or normal
9791       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9792       # need to do runtime linking.
9793       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9794         for ld_flag in $LDFLAGS; do
9795           case $ld_flag in
9796           *-brtl*)
9797             aix_use_runtimelinking=yes
9798             break
9799             ;;
9800           esac
9801         done
9802       esac
9803
9804       exp_sym_flag='-bexport'
9805       no_entry_flag='-bnoentry'
9806     fi
9807
9808     # When large executables or shared objects are built, AIX ld can
9809     # have problems creating the table of contents.  If linking a library
9810     # or program results in "error TOC overflow" add -mminimal-toc to
9811     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9812     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9813
9814     archive_cmds_CXX=''
9815     hardcode_direct_CXX=yes
9816     hardcode_libdir_separator_CXX=':'
9817     link_all_deplibs_CXX=yes
9818
9819     if test "$GXX" = yes; then
9820       case $host_os in aix4.012|aix4.012.*)
9821       # We only want to do this on AIX 4.2 and lower, the check
9822       # below for broken collect2 doesn't work under 4.3+
9823         collect2name=`${CC} -print-prog-name=collect2`
9824         if test -f "$collect2name" && \
9825            strings "$collect2name" | grep resolve_lib_name >/dev/null
9826         then
9827           # We have reworked collect2
9828           hardcode_direct_CXX=yes
9829         else
9830           # We have old collect2
9831           hardcode_direct_CXX=unsupported
9832           # It fails to find uninstalled libraries when the uninstalled
9833           # path is not listed in the libpath.  Setting hardcode_minus_L
9834           # to unsupported forces relinking
9835           hardcode_minus_L_CXX=yes
9836           hardcode_libdir_flag_spec_CXX='-L$libdir'
9837           hardcode_libdir_separator_CXX=
9838         fi
9839       esac
9840       shared_flag='-shared'
9841     else
9842       # not using gcc
9843       if test "$host_cpu" = ia64; then
9844         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9845         # chokes on -Wl,-G. The following line is correct:
9846         shared_flag='-G'
9847       else
9848         if test "$aix_use_runtimelinking" = yes; then
9849           shared_flag='${wl}-G'
9850         else
9851           shared_flag='${wl}-bM:SRE'
9852         fi
9853       fi
9854     fi
9855
9856     # It seems that -bexpall does not export symbols beginning with
9857     # underscore (_), so it is better to generate a list of symbols to export.
9858     always_export_symbols_CXX=yes
9859     if test "$aix_use_runtimelinking" = yes; then
9860       # Warning - without using the other runtime loading flags (-brtl),
9861       # -berok will link without error, but may produce a broken library.
9862       allow_undefined_flag_CXX='-berok'
9863       # Determine the default libpath from the value encoded in an empty executable.
9864       cat >conftest.$ac_ext <<_ACEOF
9865 /* confdefs.h.  */
9866 _ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h.  */
9870
9871 int
9872 main ()
9873 {
9874
9875   ;
9876   return 0;
9877 }
9878 _ACEOF
9879 rm -f conftest.$ac_objext conftest$ac_exeext
9880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9881   (eval $ac_link) 2>conftest.er1
9882   ac_status=$?
9883   grep -v '^ *+' conftest.er1 >conftest.err
9884   rm -f conftest.er1
9885   cat conftest.err >&5
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); } &&
9888          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890   (eval $ac_try) 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); }; } &&
9894          { ac_try='test -s conftest$ac_exeext'
9895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896   (eval $ac_try) 2>&5
9897   ac_status=$?
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); }; }; then
9900
9901 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9902 }'`
9903 # Check for a 64-bit object if we didn't find anything.
9904 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; }
9905 }'`; fi
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910 fi
9911 rm -f conftest.err conftest.$ac_objext \
9912       conftest$ac_exeext conftest.$ac_ext
9913 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9914
9915       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9916
9917       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"
9918      else
9919       if test "$host_cpu" = ia64; then
9920         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9921         allow_undefined_flag_CXX="-z nodefs"
9922         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"
9923       else
9924         # Determine the default libpath from the value encoded in an empty executable.
9925         cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h.  */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h.  */
9931
9932 int
9933 main ()
9934 {
9935
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942   (eval $ac_link) 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951   (eval $ac_try) 2>&5
9952   ac_status=$?
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); }; } &&
9955          { ac_try='test -s conftest$ac_exeext'
9956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957   (eval $ac_try) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; }; then
9961
9962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9963 }'`
9964 # Check for a 64-bit object if we didn't find anything.
9965 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; }
9966 }'`; fi
9967 else
9968   echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971 fi
9972 rm -f conftest.err conftest.$ac_objext \
9973       conftest$ac_exeext conftest.$ac_ext
9974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9975
9976         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9977         # Warning - without using the other run time loading flags,
9978         # -berok will link without error, but may produce a broken library.
9979         no_undefined_flag_CXX=' ${wl}-bernotok'
9980         allow_undefined_flag_CXX=' ${wl}-berok'
9981         # -bexpall does not export symbols beginning with underscore (_)
9982         always_export_symbols_CXX=yes
9983         # Exported symbols can be pulled into shared objects from archives
9984         whole_archive_flag_spec_CXX=' '
9985         archive_cmds_need_lc_CXX=yes
9986         # This is similar to how AIX traditionally builds it's shared libraries.
9987         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'
9988       fi
9989     fi
9990     ;;
9991   chorus*)
9992     case $cc_basename in
9993       *)
9994         # FIXME: insert proper C++ library support
9995         ld_shlibs_CXX=no
9996         ;;
9997     esac
9998     ;;
9999
10000   cygwin* | mingw* | pw32*)
10001     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10002     # as there is no search path for DLLs.
10003     hardcode_libdir_flag_spec_CXX='-L$libdir'
10004     allow_undefined_flag_CXX=unsupported
10005     always_export_symbols_CXX=no
10006     enable_shared_with_static_runtimes_CXX=yes
10007
10008     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10009       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'
10010       # If the export-symbols file already is a .def file (1st line
10011       # is EXPORTS), use it as is; otherwise, prepend...
10012       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10013         cp $export_symbols $output_objdir/$soname.def;
10014       else
10015         echo EXPORTS > $output_objdir/$soname.def;
10016         cat $export_symbols >> $output_objdir/$soname.def;
10017       fi~
10018       $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'
10019     else
10020       ld_shlibs_CXX=no
10021     fi
10022   ;;
10023
10024   darwin* | rhapsody*)
10025   if test "$GXX" = yes; then
10026     archive_cmds_need_lc_CXX=no
10027     case "$host_os" in
10028     rhapsody* | darwin1.[012])
10029       allow_undefined_flag_CXX='-undefined suppress'
10030       ;;
10031     *) # Darwin 1.3 on
10032       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10033         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10034       else
10035         case ${MACOSX_DEPLOYMENT_TARGET} in
10036           10.[012])
10037             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10038             ;;
10039           10.*)
10040             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10041             ;;
10042         esac
10043       fi
10044       ;;
10045     esac
10046     lt_int_apple_cc_single_mod=no
10047     output_verbose_link_cmd='echo'
10048     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10049       lt_int_apple_cc_single_mod=yes
10050     fi
10051     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10052       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10053     else
10054       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'
10055     fi
10056     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10057
10058     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10059     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10060       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}'
10061     else
10062       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}'
10063     fi
10064     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}'
10065     hardcode_direct_CXX=no
10066     hardcode_automatic_CXX=yes
10067     hardcode_shlibpath_var_CXX=unsupported
10068     whole_archive_flag_spec_CXX='-all_load $convenience'
10069     link_all_deplibs_CXX=yes
10070   else
10071     ld_shlibs_CXX=no
10072   fi
10073     ;;
10074
10075   dgux*)
10076     case $cc_basename in
10077       ec++)
10078         # FIXME: insert proper C++ library support
10079         ld_shlibs_CXX=no
10080         ;;
10081       ghcx)
10082         # Green Hills C++ Compiler
10083         # FIXME: insert proper C++ library support
10084         ld_shlibs_CXX=no
10085         ;;
10086       *)
10087         # FIXME: insert proper C++ library support
10088         ld_shlibs_CXX=no
10089         ;;
10090     esac
10091     ;;
10092   freebsd12*)
10093     # C++ shared libraries reported to be fairly broken before switch to ELF
10094     ld_shlibs_CXX=no
10095     ;;
10096   freebsd-elf*)
10097     archive_cmds_need_lc_CXX=no
10098     ;;
10099   freebsd* | kfreebsd*-gnu)
10100     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10101     # conventions
10102     ld_shlibs_CXX=yes
10103     ;;
10104   gnu*)
10105     ;;
10106   hpux9*)
10107     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10108     hardcode_libdir_separator_CXX=:
10109     export_dynamic_flag_spec_CXX='${wl}-E'
10110     hardcode_direct_CXX=yes
10111     hardcode_minus_L_CXX=yes # Not in the search PATH,
10112                                 # but as the default
10113                                 # location of the library.
10114
10115     case $cc_basename in
10116     CC)
10117       # FIXME: insert proper C++ library support
10118       ld_shlibs_CXX=no
10119       ;;
10120     aCC)
10121       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'
10122       # Commands to make compiler produce verbose output that lists
10123       # what "hidden" libraries, object files and flags are used when
10124       # linking a shared library.
10125       #
10126       # There doesn't appear to be a way to prevent this compiler from
10127       # explicitly linking system object files so we need to strip them
10128       # from the output so that they don't get included in the library
10129       # dependencies.
10130       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'
10131       ;;
10132     *)
10133       if test "$GXX" = yes; then
10134         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'
10135       else
10136         # FIXME: insert proper C++ library support
10137         ld_shlibs_CXX=no
10138       fi
10139       ;;
10140     esac
10141     ;;
10142   hpux10*|hpux11*)
10143     if test $with_gnu_ld = no; then
10144       case "$host_cpu" in
10145       hppa*64*)
10146         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10147         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10148         hardcode_libdir_separator_CXX=:
10149         ;;
10150       ia64*)
10151         hardcode_libdir_flag_spec_CXX='-L$libdir'
10152         ;;
10153       *)
10154         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10155         hardcode_libdir_separator_CXX=:
10156         export_dynamic_flag_spec_CXX='${wl}-E'
10157         ;;
10158       esac
10159     fi
10160     case "$host_cpu" in
10161     hppa*64*)
10162       hardcode_direct_CXX=no
10163       hardcode_shlibpath_var_CXX=no
10164       ;;
10165     ia64*)
10166       hardcode_direct_CXX=no
10167       hardcode_shlibpath_var_CXX=no
10168       hardcode_minus_L_CXX=yes # Not in the search PATH,
10169                                               # but as the default
10170                                               # location of the library.
10171       ;;
10172     *)
10173       hardcode_direct_CXX=yes
10174       hardcode_minus_L_CXX=yes # Not in the search PATH,
10175                                               # but as the default
10176                                               # location of the library.
10177       ;;
10178     esac
10179
10180     case $cc_basename in
10181       CC)
10182         # FIXME: insert proper C++ library support
10183         ld_shlibs_CXX=no
10184         ;;
10185       aCC)
10186         case "$host_cpu" in
10187         hppa*64*|ia64*)
10188           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10189           ;;
10190         *)
10191           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10192           ;;
10193         esac
10194         # Commands to make compiler produce verbose output that lists
10195         # what "hidden" libraries, object files and flags are used when
10196         # linking a shared library.
10197         #
10198         # There doesn't appear to be a way to prevent this compiler from
10199         # explicitly linking system object files so we need to strip them
10200         # from the output so that they don't get included in the library
10201         # dependencies.
10202         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'
10203         ;;
10204       *)
10205         if test "$GXX" = yes; then
10206           if test $with_gnu_ld = no; then
10207             case "$host_cpu" in
10208             ia64*|hppa*64*)
10209               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10210               ;;
10211             *)
10212               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'
10213               ;;
10214             esac
10215           fi
10216         else
10217           # FIXME: insert proper C++ library support
10218           ld_shlibs_CXX=no
10219         fi
10220         ;;
10221     esac
10222     ;;
10223   irix5* | irix6*)
10224     case $cc_basename in
10225       CC)
10226         # SGI C++
10227         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'
10228
10229         # Archives containing C++ object files must be created using
10230         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10231         # necessary to make sure instantiated templates are included
10232         # in the archive.
10233         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10234         ;;
10235       *)
10236         if test "$GXX" = yes; then
10237           if test "$with_gnu_ld" = no; then
10238             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'
10239           else
10240             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'
10241           fi
10242         fi
10243         link_all_deplibs_CXX=yes
10244         ;;
10245     esac
10246     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10247     hardcode_libdir_separator_CXX=:
10248     ;;
10249   linux*)
10250     case $cc_basename in
10251       KCC)
10252         # Kuck and Associates, Inc. (KAI) C++ Compiler
10253
10254         # KCC will only create a shared library if the output file
10255         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10256         # to its proper name (with version) after linking.
10257         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'
10258         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'
10259         # Commands to make compiler produce verbose output that lists
10260         # what "hidden" libraries, object files and flags are used when
10261         # linking a shared library.
10262         #
10263         # There doesn't appear to be a way to prevent this compiler from
10264         # explicitly linking system object files so we need to strip them
10265         # from the output so that they don't get included in the library
10266         # dependencies.
10267         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'
10268
10269         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10270         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10271
10272         # Archives containing C++ object files must be created using
10273         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10274         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10275         ;;
10276       icpc)
10277         # Intel C++
10278         with_gnu_ld=yes
10279         archive_cmds_need_lc_CXX=no
10280         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10281         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'
10282         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10283         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10284         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10285         ;;
10286       cxx)
10287         # Compaq C++
10288         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10289         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'
10290
10291         runpath_var=LD_RUN_PATH
10292         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10293         hardcode_libdir_separator_CXX=:
10294
10295         # Commands to make compiler produce verbose output that lists
10296         # what "hidden" libraries, object files and flags are used when
10297         # linking a shared library.
10298         #
10299         # There doesn't appear to be a way to prevent this compiler from
10300         # explicitly linking system object files so we need to strip them
10301         # from the output so that they don't get included in the library
10302         # dependencies.
10303         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'
10304         ;;
10305     esac
10306     ;;
10307   lynxos*)
10308     # FIXME: insert proper C++ library support
10309     ld_shlibs_CXX=no
10310     ;;
10311   m88k*)
10312     # FIXME: insert proper C++ library support
10313     ld_shlibs_CXX=no
10314     ;;
10315   mvs*)
10316     case $cc_basename in
10317       cxx)
10318         # FIXME: insert proper C++ library support
10319         ld_shlibs_CXX=no
10320         ;;
10321       *)
10322         # FIXME: insert proper C++ library support
10323         ld_shlibs_CXX=no
10324         ;;
10325     esac
10326     ;;
10327   netbsd* | knetbsd*-gnu)
10328     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10329       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10330       wlarc=
10331       hardcode_libdir_flag_spec_CXX='-R$libdir'
10332       hardcode_direct_CXX=yes
10333       hardcode_shlibpath_var_CXX=no
10334     fi
10335     # Workaround some broken pre-1.5 toolchains
10336     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10337     ;;
10338   osf3*)
10339     case $cc_basename in
10340       KCC)
10341         # Kuck and Associates, Inc. (KAI) C++ Compiler
10342
10343         # KCC will only create a shared library if the output file
10344         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10345         # to its proper name (with version) after linking.
10346         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'
10347
10348         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10349         hardcode_libdir_separator_CXX=:
10350
10351         # Archives containing C++ object files must be created using
10352         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10353         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10354
10355         ;;
10356       RCC)
10357         # Rational C++ 2.4.1
10358         # FIXME: insert proper C++ library support
10359         ld_shlibs_CXX=no
10360         ;;
10361       cxx)
10362         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10363         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'
10364
10365         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10366         hardcode_libdir_separator_CXX=:
10367
10368         # Commands to make compiler produce verbose output that lists
10369         # what "hidden" libraries, object files and flags are used when
10370         # linking a shared library.
10371         #
10372         # There doesn't appear to be a way to prevent this compiler from
10373         # explicitly linking system object files so we need to strip them
10374         # from the output so that they don't get included in the library
10375         # dependencies.
10376         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'
10377         ;;
10378       *)
10379         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10380           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10381           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'
10382
10383           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10384           hardcode_libdir_separator_CXX=:
10385
10386           # Commands to make compiler produce verbose output that lists
10387           # what "hidden" libraries, object files and flags are used when
10388           # linking a shared library.
10389           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10390
10391         else
10392           # FIXME: insert proper C++ library support
10393           ld_shlibs_CXX=no
10394         fi
10395         ;;
10396     esac
10397     ;;
10398   osf4* | osf5*)
10399     case $cc_basename in
10400       KCC)
10401         # Kuck and Associates, Inc. (KAI) C++ Compiler
10402
10403         # KCC will only create a shared library if the output file
10404         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10405         # to its proper name (with version) after linking.
10406         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'
10407
10408         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10409         hardcode_libdir_separator_CXX=:
10410
10411         # Archives containing C++ object files must be created using
10412         # the KAI C++ compiler.
10413         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10414         ;;
10415       RCC)
10416         # Rational C++ 2.4.1
10417         # FIXME: insert proper C++ library support
10418         ld_shlibs_CXX=no
10419         ;;
10420       cxx)
10421         allow_undefined_flag_CXX=' -expect_unresolved \*'
10422         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'
10423         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10424           echo "-hidden">> $lib.exp~
10425           $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~
10426           $rm $lib.exp'
10427
10428         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10429         hardcode_libdir_separator_CXX=:
10430
10431         # Commands to make compiler produce verbose output that lists
10432         # what "hidden" libraries, object files and flags are used when
10433         # linking a shared library.
10434         #
10435         # There doesn't appear to be a way to prevent this compiler from
10436         # explicitly linking system object files so we need to strip them
10437         # from the output so that they don't get included in the library
10438         # dependencies.
10439         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'
10440         ;;
10441       *)
10442         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10443           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10444          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'
10445
10446           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10447           hardcode_libdir_separator_CXX=:
10448
10449           # Commands to make compiler produce verbose output that lists
10450           # what "hidden" libraries, object files and flags are used when
10451           # linking a shared library.
10452           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10453
10454         else
10455           # FIXME: insert proper C++ library support
10456           ld_shlibs_CXX=no
10457         fi
10458         ;;
10459     esac
10460     ;;
10461   psos*)
10462     # FIXME: insert proper C++ library support
10463     ld_shlibs_CXX=no
10464     ;;
10465   sco*)
10466     archive_cmds_need_lc_CXX=no
10467     case $cc_basename in
10468       CC)
10469         # FIXME: insert proper C++ library support
10470         ld_shlibs_CXX=no
10471         ;;
10472       *)
10473         # FIXME: insert proper C++ library support
10474         ld_shlibs_CXX=no
10475         ;;
10476     esac
10477     ;;
10478   sunos4*)
10479     case $cc_basename in
10480       CC)
10481         # Sun C++ 4.x
10482         # FIXME: insert proper C++ library support
10483         ld_shlibs_CXX=no
10484         ;;
10485       lcc)
10486         # Lucid
10487         # FIXME: insert proper C++ library support
10488         ld_shlibs_CXX=no
10489         ;;
10490       *)
10491         # FIXME: insert proper C++ library support
10492         ld_shlibs_CXX=no
10493         ;;
10494     esac
10495     ;;
10496   solaris*)
10497     case $cc_basename in
10498       CC)
10499         # Sun C++ 4.2, 5.x and Centerline C++
10500         no_undefined_flag_CXX=' -zdefs'
10501         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10502         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10503         $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'
10504
10505         hardcode_libdir_flag_spec_CXX='-R$libdir'
10506         hardcode_shlibpath_var_CXX=no
10507         case $host_os in
10508           solaris2.0-5 | solaris2.0-5.*) ;;
10509           *)
10510             # The C++ compiler is used as linker so we must use $wl
10511             # flag to pass the commands to the underlying system
10512             # linker.
10513             # Supported since Solaris 2.6 (maybe 2.5.1?)
10514             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10515             ;;
10516         esac
10517         link_all_deplibs_CXX=yes
10518
10519         # Commands to make compiler produce verbose output that lists
10520         # what "hidden" libraries, object files and flags are used when
10521         # linking a shared library.
10522         #
10523         # There doesn't appear to be a way to prevent this compiler from
10524         # explicitly linking system object files so we need to strip them
10525         # from the output so that they don't get included in the library
10526         # dependencies.
10527         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'
10528
10529         # Archives containing C++ object files must be created using
10530         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10531         # necessary to make sure instantiated templates are included
10532         # in the archive.
10533         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10534         ;;
10535       gcx)
10536         # Green Hills C++ Compiler
10537         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10538
10539         # The C++ compiler must be used to create the archive.
10540         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10541         ;;
10542       *)
10543         # GNU C++ compiler with Solaris linker
10544         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10545           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10546           if $CC --version | grep -v '^2\.7' > /dev/null; then
10547             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10548             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10549                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10550
10551             # Commands to make compiler produce verbose output that lists
10552             # what "hidden" libraries, object files and flags are used when
10553             # linking a shared library.
10554             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10555           else
10556             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10557             # platform.
10558             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10559             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10560                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10561
10562             # Commands to make compiler produce verbose output that lists
10563             # what "hidden" libraries, object files and flags are used when
10564             # linking a shared library.
10565             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10566           fi
10567
10568           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10569         fi
10570         ;;
10571     esac
10572     ;;
10573   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10574     archive_cmds_need_lc_CXX=no
10575     ;;
10576   tandem*)
10577     case $cc_basename in
10578       NCC)
10579         # NonStop-UX NCC 3.20
10580         # FIXME: insert proper C++ library support
10581         ld_shlibs_CXX=no
10582         ;;
10583       *)
10584         # FIXME: insert proper C++ library support
10585         ld_shlibs_CXX=no
10586         ;;
10587     esac
10588     ;;
10589   vxworks*)
10590     # FIXME: insert proper C++ library support
10591     ld_shlibs_CXX=no
10592     ;;
10593   *)
10594     # FIXME: insert proper C++ library support
10595     ld_shlibs_CXX=no
10596     ;;
10597 esac
10598 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10599 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10600 test "$ld_shlibs_CXX" = no && can_build_shared=no
10601
10602 GCC_CXX="$GXX"
10603 LD_CXX="$LD"
10604
10605
10606 cat > conftest.$ac_ext <<EOF
10607 class Foo
10608 {
10609 public:
10610   Foo (void) { a = 0; }
10611 private:
10612   int a;
10613 };
10614 EOF
10615
10616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617   (eval $ac_compile) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; then
10621   # Parse the compiler output and extract the necessary
10622   # objects, libraries and library flags.
10623
10624   # Sentinel used to keep track of whether or not we are before
10625   # the conftest object file.
10626   pre_test_object_deps_done=no
10627
10628   # The `*' in the case matches for architectures that use `case' in
10629   # $output_verbose_cmd can trigger glob expansion during the loop
10630   # eval without this substitution.
10631   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10632
10633   for p in `eval $output_verbose_link_cmd`; do
10634     case $p in
10635
10636     -L* | -R* | -l*)
10637        # Some compilers place space between "-{L,R}" and the path.
10638        # Remove the space.
10639        if test $p = "-L" \
10640           || test $p = "-R"; then
10641          prev=$p
10642          continue
10643        else
10644          prev=
10645        fi
10646
10647        if test "$pre_test_object_deps_done" = no; then
10648          case $p in
10649          -L* | -R*)
10650            # Internal compiler library paths should come after those
10651            # provided the user.  The postdeps already come after the
10652            # user supplied libs so there is no need to process them.
10653            if test -z "$compiler_lib_search_path_CXX"; then
10654              compiler_lib_search_path_CXX="${prev}${p}"
10655            else
10656              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10657            fi
10658            ;;
10659          # The "-l" case would never come before the object being
10660          # linked, so don't bother handling this case.
10661          esac
10662        else
10663          if test -z "$postdeps_CXX"; then
10664            postdeps_CXX="${prev}${p}"
10665          else
10666            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10667          fi
10668        fi
10669        ;;
10670
10671     *.$objext)
10672        # This assumes that the test object file only shows up
10673        # once in the compiler output.
10674        if test "$p" = "conftest.$objext"; then
10675          pre_test_object_deps_done=yes
10676          continue
10677        fi
10678
10679        if test "$pre_test_object_deps_done" = no; then
10680          if test -z "$predep_objects_CXX"; then
10681            predep_objects_CXX="$p"
10682          else
10683            predep_objects_CXX="$predep_objects_CXX $p"
10684          fi
10685        else
10686          if test -z "$postdep_objects_CXX"; then
10687            postdep_objects_CXX="$p"
10688          else
10689            postdep_objects_CXX="$postdep_objects_CXX $p"
10690          fi
10691        fi
10692        ;;
10693
10694     *) ;; # Ignore the rest.
10695
10696     esac
10697   done
10698
10699   # Clean up.
10700   rm -f a.out a.exe
10701 else
10702   echo "libtool.m4: error: problem compiling CXX test program"
10703 fi
10704
10705 $rm -f confest.$objext
10706
10707 case " $postdeps_CXX " in
10708 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10709 esac
10710
10711 lt_prog_compiler_wl_CXX=
10712 lt_prog_compiler_pic_CXX=
10713 lt_prog_compiler_static_CXX=
10714
10715 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10716 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10717
10718   # C++ specific cases for pic, static, wl, etc.
10719   if test "$GXX" = yes; then
10720     lt_prog_compiler_wl_CXX='-Wl,'
10721     lt_prog_compiler_static_CXX='-static'
10722
10723     case $host_os in
10724     aix*)
10725       # All AIX code is PIC.
10726       if test "$host_cpu" = ia64; then
10727         # AIX 5 now supports IA64 processor
10728         lt_prog_compiler_static_CXX='-Bstatic'
10729       fi
10730       ;;
10731     amigaos*)
10732       # FIXME: we need at least 68020 code to build shared libraries, but
10733       # adding the `-m68020' flag to GCC prevents building anything better,
10734       # like `-m68040'.
10735       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10736       ;;
10737     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10738       # PIC is the default for these OSes.
10739       ;;
10740     mingw* | os2* | pw32*)
10741       # This hack is so that the source file can tell whether it is being
10742       # built for inclusion in a dll (and should export symbols for example).
10743       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10744       ;;
10745     darwin* | rhapsody*)
10746       # PIC is the default on this platform
10747       # Common symbols not allowed in MH_DYLIB files
10748       lt_prog_compiler_pic_CXX='-fno-common'
10749       ;;
10750     *djgpp*)
10751       # DJGPP does not support shared libraries at all
10752       lt_prog_compiler_pic_CXX=
10753       ;;
10754     sysv4*MP*)
10755       if test -d /usr/nec; then
10756         lt_prog_compiler_pic_CXX=-Kconform_pic
10757       fi
10758       ;;
10759     hpux*)
10760       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10761       # not for PA HP-UX.
10762       case "$host_cpu" in
10763       hppa*64*|ia64*)
10764         ;;
10765       *)
10766         lt_prog_compiler_pic_CXX='-fPIC'
10767         ;;
10768       esac
10769       ;;
10770     *)
10771       lt_prog_compiler_pic_CXX='-fPIC'
10772       ;;
10773     esac
10774   else
10775     case $host_os in
10776       aix4* | aix5*)
10777         # All AIX code is PIC.
10778         if test "$host_cpu" = ia64; then
10779           # AIX 5 now supports IA64 processor
10780           lt_prog_compiler_static_CXX='-Bstatic'
10781         else
10782           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10783         fi
10784         ;;
10785       chorus*)
10786         case $cc_basename in
10787         cxch68)
10788           # Green Hills C++ Compiler
10789           # _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"
10790           ;;
10791         esac
10792         ;;
10793       dgux*)
10794         case $cc_basename in
10795           ec++)
10796             lt_prog_compiler_pic_CXX='-KPIC'
10797             ;;
10798           ghcx)
10799             # Green Hills C++ Compiler
10800             lt_prog_compiler_pic_CXX='-pic'
10801             ;;
10802           *)
10803             ;;
10804         esac
10805         ;;
10806       freebsd* | kfreebsd*-gnu)
10807         # FreeBSD uses GNU C++
10808         ;;
10809       hpux9* | hpux10* | hpux11*)
10810         case $cc_basename in
10811           CC)
10812             lt_prog_compiler_wl_CXX='-Wl,'
10813             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10814             if test "$host_cpu" != ia64; then
10815               lt_prog_compiler_pic_CXX='+Z'
10816             fi
10817             ;;
10818           aCC)
10819             lt_prog_compiler_wl_CXX='-Wl,'
10820             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10821             case "$host_cpu" in
10822             hppa*64*|ia64*)
10823               # +Z the default
10824               ;;
10825             *)
10826               lt_prog_compiler_pic_CXX='+Z'
10827               ;;
10828             esac
10829             ;;
10830           *)
10831             ;;
10832         esac
10833         ;;
10834       irix5* | irix6* | nonstopux*)
10835         case $cc_basename in
10836           CC)
10837             lt_prog_compiler_wl_CXX='-Wl,'
10838             lt_prog_compiler_static_CXX='-non_shared'
10839             # CC pic flag -KPIC is the default.
10840             ;;
10841           *)
10842             ;;
10843         esac
10844         ;;
10845       linux*)
10846         case $cc_basename in
10847           KCC)
10848             # KAI C++ Compiler
10849             lt_prog_compiler_wl_CXX='--backend -Wl,'
10850             lt_prog_compiler_pic_CXX='-fPIC'
10851             ;;
10852           icpc)
10853             # Intel C++
10854             lt_prog_compiler_wl_CXX='-Wl,'
10855             lt_prog_compiler_pic_CXX='-KPIC'
10856             lt_prog_compiler_static_CXX='-static'
10857             ;;
10858           cxx)
10859             # Compaq C++
10860             # Make sure the PIC flag is empty.  It appears that all Alpha
10861             # Linux and Compaq Tru64 Unix objects are PIC.
10862             lt_prog_compiler_pic_CXX=
10863             lt_prog_compiler_static_CXX='-non_shared'
10864             ;;
10865           *)
10866             ;;
10867         esac
10868         ;;
10869       lynxos*)
10870         ;;
10871       m88k*)
10872         ;;
10873       mvs*)
10874         case $cc_basename in
10875           cxx)
10876             lt_prog_compiler_pic_CXX='-W c,exportall'
10877             ;;
10878           *)
10879             ;;
10880         esac
10881         ;;
10882       netbsd* | knetbsd*-gnu)
10883         ;;
10884       osf3* | osf4* | osf5*)
10885         case $cc_basename in
10886           KCC)
10887             lt_prog_compiler_wl_CXX='--backend -Wl,'
10888             ;;
10889           RCC)
10890             # Rational C++ 2.4.1
10891             lt_prog_compiler_pic_CXX='-pic'
10892             ;;
10893           cxx)
10894             # Digital/Compaq C++
10895             lt_prog_compiler_wl_CXX='-Wl,'
10896             # Make sure the PIC flag is empty.  It appears that all Alpha
10897             # Linux and Compaq Tru64 Unix objects are PIC.
10898             lt_prog_compiler_pic_CXX=
10899             lt_prog_compiler_static_CXX='-non_shared'
10900             ;;
10901           *)
10902             ;;
10903         esac
10904         ;;
10905       psos*)
10906         ;;
10907       sco*)
10908         case $cc_basename in
10909           CC)
10910             lt_prog_compiler_pic_CXX='-fPIC'
10911             ;;
10912           *)
10913             ;;
10914         esac
10915         ;;
10916       solaris*)
10917         case $cc_basename in
10918           CC)
10919             # Sun C++ 4.2, 5.x and Centerline C++
10920             lt_prog_compiler_pic_CXX='-KPIC'
10921             lt_prog_compiler_static_CXX='-Bstatic'
10922             lt_prog_compiler_wl_CXX='-Qoption ld '
10923             ;;
10924           gcx)
10925             # Green Hills C++ Compiler
10926             lt_prog_compiler_pic_CXX='-PIC'
10927             ;;
10928           *)
10929             ;;
10930         esac
10931         ;;
10932       sunos4*)
10933         case $cc_basename in
10934           CC)
10935             # Sun C++ 4.x
10936             lt_prog_compiler_pic_CXX='-pic'
10937             lt_prog_compiler_static_CXX='-Bstatic'
10938             ;;
10939           lcc)
10940             # Lucid
10941             lt_prog_compiler_pic_CXX='-pic'
10942             ;;
10943           *)
10944             ;;
10945         esac
10946         ;;
10947       tandem*)
10948         case $cc_basename in
10949           NCC)
10950             # NonStop-UX NCC 3.20
10951             lt_prog_compiler_pic_CXX='-KPIC'
10952             ;;
10953           *)
10954             ;;
10955         esac
10956         ;;
10957       unixware*)
10958         ;;
10959       vxworks*)
10960         ;;
10961       *)
10962         lt_prog_compiler_can_build_shared_CXX=no
10963         ;;
10964     esac
10965   fi
10966
10967 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10968 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10969
10970 #
10971 # Check to make sure the PIC flag actually works.
10972 #
10973 if test -n "$lt_prog_compiler_pic_CXX"; then
10974
10975 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10976 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10977 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10978   echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980   lt_prog_compiler_pic_works_CXX=no
10981   ac_outfile=conftest.$ac_objext
10982    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10983    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10984    # Insert the option either (1) after the last *FLAGS variable, or
10985    # (2) before a word containing "conftest.", or (3) at the end.
10986    # Note that $ac_compile itself does not contain backslashes and begins
10987    # with a dollar sign (not a hyphen), so the echo should work correctly.
10988    # The option is referenced via a variable to avoid confusing sed.
10989    lt_compile=`echo "$ac_compile" | $SED \
10990    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10992    -e 's:$: $lt_compiler_flag:'`
10993    (eval echo "\"\$as_me:10993: $lt_compile\"" >&5)
10994    (eval "$lt_compile" 2>conftest.err)
10995    ac_status=$?
10996    cat conftest.err >&5
10997    echo "$as_me:10997: \$? = $ac_status" >&5
10998    if (exit $ac_status) && test -s "$ac_outfile"; then
10999      # The compiler can only warn and ignore the option if not recognized
11000      # So say no if there are warnings
11001      if test ! -s conftest.err; then
11002        lt_prog_compiler_pic_works_CXX=yes
11003      fi
11004    fi
11005    $rm conftest*
11006
11007 fi
11008 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11009 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11010
11011 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11012     case $lt_prog_compiler_pic_CXX in
11013      "" | " "*) ;;
11014      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11015      esac
11016 else
11017     lt_prog_compiler_pic_CXX=
11018      lt_prog_compiler_can_build_shared_CXX=no
11019 fi
11020
11021 fi
11022 case "$host_os" in
11023   # For platforms which do not support PIC, -DPIC is meaningless:
11024   *djgpp*)
11025     lt_prog_compiler_pic_CXX=
11026     ;;
11027   *)
11028     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11029     ;;
11030 esac
11031
11032 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11033 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11034 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037   lt_cv_prog_compiler_c_o_CXX=no
11038    $rm -r conftest 2>/dev/null
11039    mkdir conftest
11040    cd conftest
11041    mkdir out
11042    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11043
11044    lt_compiler_flag="-o out/conftest2.$ac_objext"
11045    # Insert the option either (1) after the last *FLAGS variable, or
11046    # (2) before a word containing "conftest.", or (3) at the end.
11047    # Note that $ac_compile itself does not contain backslashes and begins
11048    # with a dollar sign (not a hyphen), so the echo should work correctly.
11049    lt_compile=`echo "$ac_compile" | $SED \
11050    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11052    -e 's:$: $lt_compiler_flag:'`
11053    (eval echo "\"\$as_me:11053: $lt_compile\"" >&5)
11054    (eval "$lt_compile" 2>out/conftest.err)
11055    ac_status=$?
11056    cat out/conftest.err >&5
11057    echo "$as_me:11057: \$? = $ac_status" >&5
11058    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11059    then
11060      # The compiler can only warn and ignore the option if not recognized
11061      # So say no if there are warnings
11062      if test ! -s out/conftest.err; then
11063        lt_cv_prog_compiler_c_o_CXX=yes
11064      fi
11065    fi
11066    chmod u+w .
11067    $rm conftest*
11068    # SGI C++ compiler will create directory out/ii_files/ for
11069    # template instantiation
11070    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11071    $rm out/* && rmdir out
11072    cd ..
11073    rmdir conftest
11074    $rm conftest*
11075
11076 fi
11077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11079
11080
11081 hard_links="nottested"
11082 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11083   # do not overwrite the value of need_locks provided by the user
11084   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11085 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11086   hard_links=yes
11087   $rm conftest*
11088   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11089   touch conftest.a
11090   ln conftest.a conftest.b 2>&5 || hard_links=no
11091   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11092   echo "$as_me:$LINENO: result: $hard_links" >&5
11093 echo "${ECHO_T}$hard_links" >&6
11094   if test "$hard_links" = no; then
11095     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11096 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11097     need_locks=warn
11098   fi
11099 else
11100   need_locks=no
11101 fi
11102
11103 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11105
11106   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11107   case $host_os in
11108   aix4* | aix5*)
11109     # If we're using GNU nm, then we don't want the "-C" option.
11110     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11111     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11112       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'
11113     else
11114       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'
11115     fi
11116     ;;
11117   pw32*)
11118     export_symbols_cmds_CXX="$ltdll_cmds"
11119   ;;
11120   cygwin* | mingw*)
11121     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11122   ;;
11123   *)
11124     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11125   ;;
11126   esac
11127
11128 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11129 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11130 test "$ld_shlibs_CXX" = no && can_build_shared=no
11131
11132 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11133 if test "$GCC" = yes; then
11134   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11135 fi
11136
11137 #
11138 # Do we need to explicitly link libc?
11139 #
11140 case "x$archive_cmds_need_lc_CXX" in
11141 x|xyes)
11142   # Assume -lc should be added
11143   archive_cmds_need_lc_CXX=yes
11144
11145   if test "$enable_shared" = yes && test "$GCC" = yes; then
11146     case $archive_cmds_CXX in
11147     *'~'*)
11148       # FIXME: we may have to deal with multi-command sequences.
11149       ;;
11150     '$CC '*)
11151       # Test whether the compiler implicitly links with -lc since on some
11152       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11153       # to ld, don't add -lc before -lgcc.
11154       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11155 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11156       $rm conftest*
11157       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11158
11159       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11160   (eval $ac_compile) 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } 2>conftest.err; then
11164         soname=conftest
11165         lib=conftest
11166         libobjs=conftest.$ac_objext
11167         deplibs=
11168         wl=$lt_prog_compiler_wl_CXX
11169         compiler_flags=-v
11170         linker_flags=-v
11171         verstring=
11172         output_objdir=.
11173         libname=conftest
11174         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11175         allow_undefined_flag_CXX=
11176         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11177   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }
11181         then
11182           archive_cmds_need_lc_CXX=no
11183         else
11184           archive_cmds_need_lc_CXX=yes
11185         fi
11186         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11187       else
11188         cat conftest.err 1>&5
11189       fi
11190       $rm conftest*
11191       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11192 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11193       ;;
11194     esac
11195   fi
11196   ;;
11197 esac
11198
11199 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11200 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11201 library_names_spec=
11202 libname_spec='lib$name'
11203 soname_spec=
11204 shrext=".so"
11205 postinstall_cmds=
11206 postuninstall_cmds=
11207 finish_cmds=
11208 finish_eval=
11209 shlibpath_var=
11210 shlibpath_overrides_runpath=unknown
11211 version_type=none
11212 dynamic_linker="$host_os ld.so"
11213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11214 if test "$GCC" = yes; then
11215   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11216   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11217     # if the path contains ";" then we assume it to be the separator
11218     # otherwise default to the standard path separator (i.e. ":") - it is
11219     # assumed that no part of a normal pathname contains ";" but that should
11220     # okay in the real world where ";" in dirpaths is itself problematic.
11221     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11222   else
11223     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11224   fi
11225 else
11226   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11227 fi
11228 need_lib_prefix=unknown
11229 hardcode_into_libs=no
11230
11231 # when you set need_version to no, make sure it does not cause -set_version
11232 # flags to be left without arguments
11233 need_version=unknown
11234
11235 case $host_os in
11236 aix3*)
11237   version_type=linux
11238   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11239   shlibpath_var=LIBPATH
11240
11241   # AIX 3 has no versioning support, so we append a major version to the name.
11242   soname_spec='${libname}${release}${shared_ext}$major'
11243   ;;
11244
11245 aix4* | aix5*)
11246   version_type=linux
11247   need_lib_prefix=no
11248   need_version=no
11249   hardcode_into_libs=yes
11250   if test "$host_cpu" = ia64; then
11251     # AIX 5 supports IA64
11252     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11253     shlibpath_var=LD_LIBRARY_PATH
11254   else
11255     # With GCC up to 2.95.x, collect2 would create an import file
11256     # for dependence libraries.  The import file would start with
11257     # the line `#! .'.  This would cause the generated library to
11258     # depend on `.', always an invalid library.  This was fixed in
11259     # development snapshots of GCC prior to 3.0.
11260     case $host_os in
11261       aix4 | aix4.[01] | aix4.[01].*)
11262       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11263            echo ' yes '
11264            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11265         :
11266       else
11267         can_build_shared=no
11268       fi
11269       ;;
11270     esac
11271     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11272     # soname into executable. Probably we can add versioning support to
11273     # collect2, so additional links can be useful in future.
11274     if test "$aix_use_runtimelinking" = yes; then
11275       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11276       # instead of lib<name>.a to let people know that these are not
11277       # typical AIX shared libraries.
11278       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279     else
11280       # We preserve .a as extension for shared libraries through AIX4.2
11281       # and later when we are not doing run time linking.
11282       library_names_spec='${libname}${release}.a $libname.a'
11283       soname_spec='${libname}${release}${shared_ext}$major'
11284     fi
11285     shlibpath_var=LIBPATH
11286   fi
11287   ;;
11288
11289 amigaos*)
11290   library_names_spec='$libname.ixlibrary $libname.a'
11291   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11292   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'
11293   ;;
11294
11295 beos*)
11296   library_names_spec='${libname}${shared_ext}'
11297   dynamic_linker="$host_os ld.so"
11298   shlibpath_var=LIBRARY_PATH
11299   ;;
11300
11301 bsdi4*)
11302   version_type=linux
11303   need_version=no
11304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305   soname_spec='${libname}${release}${shared_ext}$major'
11306   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11307   shlibpath_var=LD_LIBRARY_PATH
11308   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11309   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11310   # the default ld.so.conf also contains /usr/contrib/lib and
11311   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11312   # libtool to hard-code these into programs
11313   ;;
11314
11315 cygwin* | mingw* | pw32*)
11316   version_type=windows
11317   shrext=".dll"
11318   need_version=no
11319   need_lib_prefix=no
11320
11321   case $GCC,$host_os in
11322   yes,cygwin* | yes,mingw* | yes,pw32*)
11323     library_names_spec='$libname.dll.a'
11324     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11325     postinstall_cmds='base_file=`basename \${file}`~
11326       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11327       dldir=$destdir/`dirname \$dlpath`~
11328       test -d \$dldir || mkdir -p \$dldir~
11329       $install_prog $dir/$dlname \$dldir/$dlname'
11330     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11331       dlpath=$dir/\$dldll~
11332        $rm \$dlpath'
11333     shlibpath_overrides_runpath=yes
11334
11335     case $host_os in
11336     cygwin*)
11337       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11338       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11339       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11340       ;;
11341     mingw*)
11342       # MinGW DLLs use traditional 'lib' prefix
11343       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11344       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11345       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11346         # It is most probably a Windows format PATH printed by
11347         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11348         # path with ; separators, and with drive letters. We can handle the
11349         # drive letters (cygwin fileutils understands them), so leave them,
11350         # especially as we might pass files found there to a mingw objdump,
11351         # which wouldn't understand a cygwinified path. Ahh.
11352         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11353       else
11354         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11355       fi
11356       ;;
11357     pw32*)
11358       # pw32 DLLs use 'pw' prefix rather than 'lib'
11359       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11360       ;;
11361     esac
11362     ;;
11363
11364   *)
11365     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11366     ;;
11367   esac
11368   dynamic_linker='Win32 ld.exe'
11369   # FIXME: first we should search . and the directory the executable is in
11370   shlibpath_var=PATH
11371   ;;
11372
11373 darwin* | rhapsody*)
11374   dynamic_linker="$host_os dyld"
11375   version_type=darwin
11376   need_lib_prefix=no
11377   need_version=no
11378   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11379   soname_spec='${libname}${release}${major}$shared_ext'
11380   shlibpath_overrides_runpath=yes
11381   shlibpath_var=DYLD_LIBRARY_PATH
11382   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11383   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11384   if test "$GCC" = yes; then
11385     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"`
11386   else
11387     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11388   fi
11389   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11390   ;;
11391
11392 dgux*)
11393   version_type=linux
11394   need_lib_prefix=no
11395   need_version=no
11396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11397   soname_spec='${libname}${release}${shared_ext}$major'
11398   shlibpath_var=LD_LIBRARY_PATH
11399   ;;
11400
11401 freebsd1*)
11402   dynamic_linker=no
11403   ;;
11404
11405 kfreebsd*-gnu)
11406   version_type=linux
11407   need_lib_prefix=no
11408   need_version=no
11409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11410   soname_spec='${libname}${release}${shared_ext}$major'
11411   shlibpath_var=LD_LIBRARY_PATH
11412   shlibpath_overrides_runpath=no
11413   hardcode_into_libs=yes
11414   dynamic_linker='GNU ld.so'
11415   ;;
11416
11417 freebsd*)
11418   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11419   version_type=freebsd-$objformat
11420   case $version_type in
11421     freebsd-elf*)
11422       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11423       need_version=no
11424       need_lib_prefix=no
11425       ;;
11426     freebsd-*)
11427       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11428       need_version=yes
11429       ;;
11430   esac
11431   shlibpath_var=LD_LIBRARY_PATH
11432   case $host_os in
11433   freebsd2*)
11434     shlibpath_overrides_runpath=yes
11435     ;;
11436   freebsd3.01* | freebsdelf3.01*)
11437     shlibpath_overrides_runpath=yes
11438     hardcode_into_libs=yes
11439     ;;
11440   *) # from 3.2 on
11441     shlibpath_overrides_runpath=no
11442     hardcode_into_libs=yes
11443     ;;
11444   esac
11445   ;;
11446
11447 gnu*)
11448   version_type=linux
11449   need_lib_prefix=no
11450   need_version=no
11451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11452   soname_spec='${libname}${release}${shared_ext}$major'
11453   shlibpath_var=LD_LIBRARY_PATH
11454   hardcode_into_libs=yes
11455   ;;
11456
11457 hpux9* | hpux10* | hpux11*)
11458   # Give a soname corresponding to the major version so that dld.sl refuses to
11459   # link against other versions.
11460   version_type=sunos
11461   need_lib_prefix=no
11462   need_version=no
11463   case "$host_cpu" in
11464   ia64*)
11465     shrext='.so'
11466     hardcode_into_libs=yes
11467     dynamic_linker="$host_os dld.so"
11468     shlibpath_var=LD_LIBRARY_PATH
11469     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11470     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471     soname_spec='${libname}${release}${shared_ext}$major'
11472     if test "X$HPUX_IA64_MODE" = X32; then
11473       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11474     else
11475       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11476     fi
11477     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11478     ;;
11479    hppa*64*)
11480      shrext='.sl'
11481      hardcode_into_libs=yes
11482      dynamic_linker="$host_os dld.sl"
11483      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11484      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11485      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486      soname_spec='${libname}${release}${shared_ext}$major'
11487      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11488      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11489      ;;
11490    *)
11491     shrext='.sl'
11492     dynamic_linker="$host_os dld.sl"
11493     shlibpath_var=SHLIB_PATH
11494     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496     soname_spec='${libname}${release}${shared_ext}$major'
11497     ;;
11498   esac
11499   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11500   postinstall_cmds='chmod 555 $lib'
11501   ;;
11502
11503 irix5* | irix6* | nonstopux*)
11504   case $host_os in
11505     nonstopux*) version_type=nonstopux ;;
11506     *)
11507         if test "$lt_cv_prog_gnu_ld" = yes; then
11508                 version_type=linux
11509         else
11510                 version_type=irix
11511         fi ;;
11512   esac
11513   need_lib_prefix=no
11514   need_version=no
11515   soname_spec='${libname}${release}${shared_ext}$major'
11516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11517   case $host_os in
11518   irix5* | nonstopux*)
11519     libsuff= shlibsuff=
11520     ;;
11521   *)
11522     case $LD in # libtool.m4 will add one of these switches to LD
11523     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11524       libsuff= shlibsuff= libmagic=32-bit;;
11525     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11526       libsuff=32 shlibsuff=N32 libmagic=N32;;
11527     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11528       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11529     *) libsuff= shlibsuff= libmagic=never-match;;
11530     esac
11531     ;;
11532   esac
11533   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11534   shlibpath_overrides_runpath=no
11535   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11536   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11537   hardcode_into_libs=yes
11538   ;;
11539
11540 # No shared lib support for Linux oldld, aout, or coff.
11541 linux*oldld* | linux*aout* | linux*coff*)
11542   dynamic_linker=no
11543   ;;
11544
11545 # This must be Linux ELF.
11546 linux*)
11547   version_type=linux
11548   need_lib_prefix=no
11549   need_version=no
11550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551   soname_spec='${libname}${release}${shared_ext}$major'
11552   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11553   shlibpath_var=LD_LIBRARY_PATH
11554   shlibpath_overrides_runpath=no
11555   # This implies no fast_install, which is unacceptable.
11556   # Some rework will be needed to allow for fast_install
11557   # before this can be enabled.
11558   hardcode_into_libs=yes
11559
11560   # Append ld.so.conf contents to the search path
11561   if test -f /etc/ld.so.conf; then
11562     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11563     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11564   fi
11565
11566   # We used to test for /lib/ld.so.1 and disable shared libraries on
11567   # powerpc, because MkLinux only supported shared libraries with the
11568   # GNU dynamic linker.  Since this was broken with cross compilers,
11569   # most powerpc-linux boxes support dynamic linking these days and
11570   # people can always --disable-shared, the test was removed, and we
11571   # assume the GNU/Linux dynamic linker is in use.
11572   dynamic_linker='GNU/Linux ld.so'
11573   ;;
11574
11575 knetbsd*-gnu)
11576   version_type=linux
11577   need_lib_prefix=no
11578   need_version=no
11579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11580   soname_spec='${libname}${release}${shared_ext}$major'
11581   shlibpath_var=LD_LIBRARY_PATH
11582   shlibpath_overrides_runpath=no
11583   hardcode_into_libs=yes
11584   dynamic_linker='GNU ld.so'
11585   ;;
11586
11587 netbsd*)
11588   version_type=sunos
11589   need_lib_prefix=no
11590   need_version=no
11591   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11593     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11594     dynamic_linker='NetBSD (a.out) ld.so'
11595   else
11596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11597     soname_spec='${libname}${release}${shared_ext}$major'
11598     dynamic_linker='NetBSD ld.elf_so'
11599   fi
11600   shlibpath_var=LD_LIBRARY_PATH
11601   shlibpath_overrides_runpath=yes
11602   hardcode_into_libs=yes
11603   ;;
11604
11605 newsos6)
11606   version_type=linux
11607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608   shlibpath_var=LD_LIBRARY_PATH
11609   shlibpath_overrides_runpath=yes
11610   ;;
11611
11612 nto-qnx*)
11613   version_type=linux
11614   need_lib_prefix=no
11615   need_version=no
11616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11617   soname_spec='${libname}${release}${shared_ext}$major'
11618   shlibpath_var=LD_LIBRARY_PATH
11619   shlibpath_overrides_runpath=yes
11620   ;;
11621
11622 openbsd*)
11623   version_type=sunos
11624   need_lib_prefix=no
11625   need_version=yes
11626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11627   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11628   shlibpath_var=LD_LIBRARY_PATH
11629   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11630     case $host_os in
11631       openbsd2.[89] | openbsd2.[89].*)
11632         shlibpath_overrides_runpath=no
11633         ;;
11634       *)
11635         shlibpath_overrides_runpath=yes
11636         ;;
11637       esac
11638   else
11639     shlibpath_overrides_runpath=yes
11640   fi
11641   ;;
11642
11643 os2*)
11644   libname_spec='$name'
11645   shrext=".dll"
11646   need_lib_prefix=no
11647   library_names_spec='$libname${shared_ext} $libname.a'
11648   dynamic_linker='OS/2 ld.exe'
11649   shlibpath_var=LIBPATH
11650   ;;
11651
11652 osf3* | osf4* | osf5*)
11653   version_type=osf
11654   need_lib_prefix=no
11655   need_version=no
11656   soname_spec='${libname}${release}${shared_ext}$major'
11657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11658   shlibpath_var=LD_LIBRARY_PATH
11659   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11660   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11661   ;;
11662
11663 sco3.2v5*)
11664   version_type=osf
11665   soname_spec='${libname}${release}${shared_ext}$major'
11666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667   shlibpath_var=LD_LIBRARY_PATH
11668   ;;
11669
11670 solaris*)
11671   version_type=linux
11672   need_lib_prefix=no
11673   need_version=no
11674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   shlibpath_var=LD_LIBRARY_PATH
11677   shlibpath_overrides_runpath=yes
11678   hardcode_into_libs=yes
11679   # ldd complains unless libraries are executable
11680   postinstall_cmds='chmod +x $lib'
11681   ;;
11682
11683 sunos4*)
11684   version_type=sunos
11685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11686   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11687   shlibpath_var=LD_LIBRARY_PATH
11688   shlibpath_overrides_runpath=yes
11689   if test "$with_gnu_ld" = yes; then
11690     need_lib_prefix=no
11691   fi
11692   need_version=yes
11693   ;;
11694
11695 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11696   version_type=linux
11697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698   soname_spec='${libname}${release}${shared_ext}$major'
11699   shlibpath_var=LD_LIBRARY_PATH
11700   case $host_vendor in
11701     sni)
11702       shlibpath_overrides_runpath=no
11703       need_lib_prefix=no
11704       export_dynamic_flag_spec='${wl}-Blargedynsym'
11705       runpath_var=LD_RUN_PATH
11706       ;;
11707     siemens)
11708       need_lib_prefix=no
11709       ;;
11710     motorola)
11711       need_lib_prefix=no
11712       need_version=no
11713       shlibpath_overrides_runpath=no
11714       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11715       ;;
11716   esac
11717   ;;
11718
11719 sysv4*MP*)
11720   if test -d /usr/nec ;then
11721     version_type=linux
11722     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11723     soname_spec='$libname${shared_ext}.$major'
11724     shlibpath_var=LD_LIBRARY_PATH
11725   fi
11726   ;;
11727
11728 uts4*)
11729   version_type=linux
11730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11731   soname_spec='${libname}${release}${shared_ext}$major'
11732   shlibpath_var=LD_LIBRARY_PATH
11733   ;;
11734
11735 *)
11736   dynamic_linker=no
11737   ;;
11738 esac
11739 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11740 echo "${ECHO_T}$dynamic_linker" >&6
11741 test "$dynamic_linker" = no && can_build_shared=no
11742
11743 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11744 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11745 hardcode_action_CXX=
11746 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11747    test -n "$runpath_var CXX" || \
11748    test "X$hardcode_automatic_CXX"="Xyes" ; then
11749
11750   # We can hardcode non-existant directories.
11751   if test "$hardcode_direct_CXX" != no &&
11752      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11753      # have to relink, otherwise we might link with an installed library
11754      # when we should be linking with a yet-to-be-installed one
11755      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11756      test "$hardcode_minus_L_CXX" != no; then
11757     # Linking always hardcodes the temporary library directory.
11758     hardcode_action_CXX=relink
11759   else
11760     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11761     hardcode_action_CXX=immediate
11762   fi
11763 else
11764   # We cannot hardcode anything, or else we can only hardcode existing
11765   # directories.
11766   hardcode_action_CXX=unsupported
11767 fi
11768 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11769 echo "${ECHO_T}$hardcode_action_CXX" >&6
11770
11771 if test "$hardcode_action_CXX" = relink; then
11772   # Fast installation is not supported
11773   enable_fast_install=no
11774 elif test "$shlibpath_overrides_runpath" = yes ||
11775      test "$enable_shared" = no; then
11776   # Fast installation is not necessary
11777   enable_fast_install=needless
11778 fi
11779
11780 striplib=
11781 old_striplib=
11782 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11783 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11784 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11785   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11786   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11787   echo "$as_me:$LINENO: result: yes" >&5
11788 echo "${ECHO_T}yes" >&6
11789 else
11790 # FIXME - insert some real tests, host_os isn't really good enough
11791   case $host_os in
11792    darwin*)
11793        if test -n "$STRIP" ; then
11794          striplib="$STRIP -x"
11795          echo "$as_me:$LINENO: result: yes" >&5
11796 echo "${ECHO_T}yes" >&6
11797        else
11798   echo "$as_me:$LINENO: result: no" >&5
11799 echo "${ECHO_T}no" >&6
11800 fi
11801        ;;
11802    *)
11803   echo "$as_me:$LINENO: result: no" >&5
11804 echo "${ECHO_T}no" >&6
11805     ;;
11806   esac
11807 fi
11808
11809 if test "x$enable_dlopen" != xyes; then
11810   enable_dlopen=unknown
11811   enable_dlopen_self=unknown
11812   enable_dlopen_self_static=unknown
11813 else
11814   lt_cv_dlopen=no
11815   lt_cv_dlopen_libs=
11816
11817   case $host_os in
11818   beos*)
11819     lt_cv_dlopen="load_add_on"
11820     lt_cv_dlopen_libs=
11821     lt_cv_dlopen_self=yes
11822     ;;
11823
11824   mingw* | pw32*)
11825     lt_cv_dlopen="LoadLibrary"
11826     lt_cv_dlopen_libs=
11827    ;;
11828
11829   cygwin*)
11830     lt_cv_dlopen="dlopen"
11831     lt_cv_dlopen_libs=
11832    ;;
11833
11834   darwin*)
11835   # if libdl is installed we need to link against it
11836     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11837 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11838 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11839   echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841   ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-ldl  $LIBS"
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849
11850 /* Override any gcc2 internal prototype to avoid an error.  */
11851 #ifdef __cplusplus
11852 extern "C"
11853 #endif
11854 /* We use char because int might match the return type of a gcc2
11855    builtin and then its argument prototype would still apply.  */
11856 char dlopen ();
11857 int
11858 main ()
11859 {
11860 dlopen ();
11861   ;
11862   return 0;
11863 }
11864 _ACEOF
11865 rm -f conftest.$ac_objext conftest$ac_exeext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11867   (eval $ac_link) 2>conftest.er1
11868   ac_status=$?
11869   grep -v '^ *+' conftest.er1 >conftest.err
11870   rm -f conftest.er1
11871   cat conftest.err >&5
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } &&
11874          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876   (eval $ac_try) 2>&5
11877   ac_status=$?
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); }; } &&
11880          { ac_try='test -s conftest$ac_exeext'
11881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882   (eval $ac_try) 2>&5
11883   ac_status=$?
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); }; }; then
11886   ac_cv_lib_dl_dlopen=yes
11887 else
11888   echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891 ac_cv_lib_dl_dlopen=no
11892 fi
11893 rm -f conftest.err conftest.$ac_objext \
11894       conftest$ac_exeext conftest.$ac_ext
11895 LIBS=$ac_check_lib_save_LIBS
11896 fi
11897 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11898 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11899 if test $ac_cv_lib_dl_dlopen = yes; then
11900   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11901 else
11902
11903     lt_cv_dlopen="dyld"
11904     lt_cv_dlopen_libs=
11905     lt_cv_dlopen_self=yes
11906
11907 fi
11908
11909    ;;
11910
11911   *)
11912     echo "$as_me:$LINENO: checking for shl_load" >&5
11913 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11914 if test "${ac_cv_func_shl_load+set}" = set; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917   cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h.  */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h.  */
11923 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11925 #define shl_load innocuous_shl_load
11926
11927 /* System header to define __stub macros and hopefully few prototypes,
11928     which can conflict with char shl_load (); below.
11929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930     <limits.h> exists even on freestanding compilers.  */
11931
11932 #ifdef __STDC__
11933 # include <limits.h>
11934 #else
11935 # include <assert.h>
11936 #endif
11937
11938 #undef shl_load
11939
11940 /* Override any gcc2 internal prototype to avoid an error.  */
11941 #ifdef __cplusplus
11942 extern "C"
11943 {
11944 #endif
11945 /* We use char because int might match the return type of a gcc2
11946    builtin and then its argument prototype would still apply.  */
11947 char shl_load ();
11948 /* The GNU C library defines this for functions which it implements
11949     to always fail with ENOSYS.  Some functions are actually named
11950     something starting with __ and the normal name is an alias.  */
11951 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11952 choke me
11953 #else
11954 char (*f) () = shl_load;
11955 #endif
11956 #ifdef __cplusplus
11957 }
11958 #endif
11959
11960 int
11961 main ()
11962 {
11963 return f != shl_load;
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970   (eval $ac_link) 2>conftest.er1
11971   ac_status=$?
11972   grep -v '^ *+' conftest.er1 >conftest.err
11973   rm -f conftest.er1
11974   cat conftest.err >&5
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); } &&
11977          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979   (eval $ac_try) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; } &&
11983          { ac_try='test -s conftest$ac_exeext'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   ac_cv_func_shl_load=yes
11990 else
11991   echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 ac_cv_func_shl_load=no
11995 fi
11996 rm -f conftest.err conftest.$ac_objext \
11997       conftest$ac_exeext conftest.$ac_ext
11998 fi
11999 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12000 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12001 if test $ac_cv_func_shl_load = yes; then
12002   lt_cv_dlopen="shl_load"
12003 else
12004   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12005 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12006 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12007   echo $ECHO_N "(cached) $ECHO_C" >&6
12008 else
12009   ac_check_lib_save_LIBS=$LIBS
12010 LIBS="-ldld  $LIBS"
12011 cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017
12018 /* Override any gcc2 internal prototype to avoid an error.  */
12019 #ifdef __cplusplus
12020 extern "C"
12021 #endif
12022 /* We use char because int might match the return type of a gcc2
12023    builtin and then its argument prototype would still apply.  */
12024 char shl_load ();
12025 int
12026 main ()
12027 {
12028 shl_load ();
12029   ;
12030   return 0;
12031 }
12032 _ACEOF
12033 rm -f conftest.$ac_objext conftest$ac_exeext
12034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12035   (eval $ac_link) 2>conftest.er1
12036   ac_status=$?
12037   grep -v '^ *+' conftest.er1 >conftest.err
12038   rm -f conftest.er1
12039   cat conftest.err >&5
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); } &&
12042          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; } &&
12048          { ac_try='test -s conftest$ac_exeext'
12049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050   (eval $ac_try) 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   ac_cv_lib_dld_shl_load=yes
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 ac_cv_lib_dld_shl_load=no
12060 fi
12061 rm -f conftest.err conftest.$ac_objext \
12062       conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12064 fi
12065 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12066 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12067 if test $ac_cv_lib_dld_shl_load = yes; then
12068   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12069 else
12070   echo "$as_me:$LINENO: checking for dlopen" >&5
12071 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12072 if test "${ac_cv_func_dlopen+set}" = set; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   cat >conftest.$ac_ext <<_ACEOF
12076 /* confdefs.h.  */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h.  */
12081 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12083 #define dlopen innocuous_dlopen
12084
12085 /* System header to define __stub macros and hopefully few prototypes,
12086     which can conflict with char dlopen (); below.
12087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12088     <limits.h> exists even on freestanding compilers.  */
12089
12090 #ifdef __STDC__
12091 # include <limits.h>
12092 #else
12093 # include <assert.h>
12094 #endif
12095
12096 #undef dlopen
12097
12098 /* Override any gcc2 internal prototype to avoid an error.  */
12099 #ifdef __cplusplus
12100 extern "C"
12101 {
12102 #endif
12103 /* We use char because int might match the return type of a gcc2
12104    builtin and then its argument prototype would still apply.  */
12105 char dlopen ();
12106 /* The GNU C library defines this for functions which it implements
12107     to always fail with ENOSYS.  Some functions are actually named
12108     something starting with __ and the normal name is an alias.  */
12109 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12110 choke me
12111 #else
12112 char (*f) () = dlopen;
12113 #endif
12114 #ifdef __cplusplus
12115 }
12116 #endif
12117
12118 int
12119 main ()
12120 {
12121 return f != dlopen;
12122   ;
12123   return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128   (eval $ac_link) 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } &&
12135          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; } &&
12141          { ac_try='test -s conftest$ac_exeext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_func_dlopen=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 ac_cv_func_dlopen=no
12153 fi
12154 rm -f conftest.err conftest.$ac_objext \
12155       conftest$ac_exeext conftest.$ac_ext
12156 fi
12157 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12158 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12159 if test $ac_cv_func_dlopen = yes; then
12160   lt_cv_dlopen="dlopen"
12161 else
12162   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12163 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12164 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   ac_check_lib_save_LIBS=$LIBS
12168 LIBS="-ldl  $LIBS"
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175
12176 /* Override any gcc2 internal prototype to avoid an error.  */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 /* We use char because int might match the return type of a gcc2
12181    builtin and then its argument prototype would still apply.  */
12182 char dlopen ();
12183 int
12184 main ()
12185 {
12186 dlopen ();
12187   ;
12188   return 0;
12189 }
12190 _ACEOF
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193   (eval $ac_link) 2>conftest.er1
12194   ac_status=$?
12195   grep -v '^ *+' conftest.er1 >conftest.err
12196   rm -f conftest.er1
12197   cat conftest.err >&5
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } &&
12200          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; } &&
12206          { ac_try='test -s conftest$ac_exeext'
12207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208   (eval $ac_try) 2>&5
12209   ac_status=$?
12210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211   (exit $ac_status); }; }; then
12212   ac_cv_lib_dl_dlopen=yes
12213 else
12214   echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12216
12217 ac_cv_lib_dl_dlopen=no
12218 fi
12219 rm -f conftest.err conftest.$ac_objext \
12220       conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12222 fi
12223 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12224 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12225 if test $ac_cv_lib_dl_dlopen = yes; then
12226   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12227 else
12228   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12229 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12230 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lsvld  $LIBS"
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h.  */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h.  */
12241
12242 /* Override any gcc2 internal prototype to avoid an error.  */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 /* We use char because int might match the return type of a gcc2
12247    builtin and then its argument prototype would still apply.  */
12248 char dlopen ();
12249 int
12250 main ()
12251 {
12252 dlopen ();
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259   (eval $ac_link) 2>conftest.er1
12260   ac_status=$?
12261   grep -v '^ *+' conftest.er1 >conftest.err
12262   rm -f conftest.er1
12263   cat conftest.err >&5
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); } &&
12266          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268   (eval $ac_try) 2>&5
12269   ac_status=$?
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); }; } &&
12272          { ac_try='test -s conftest$ac_exeext'
12273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274   (eval $ac_try) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; }; then
12278   ac_cv_lib_svld_dlopen=yes
12279 else
12280   echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12282
12283 ac_cv_lib_svld_dlopen=no
12284 fi
12285 rm -f conftest.err conftest.$ac_objext \
12286       conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12288 fi
12289 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12290 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12291 if test $ac_cv_lib_svld_dlopen = yes; then
12292   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12293 else
12294   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12295 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12296 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   ac_check_lib_save_LIBS=$LIBS
12300 LIBS="-ldld  $LIBS"
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h.  */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h.  */
12307
12308 /* Override any gcc2 internal prototype to avoid an error.  */
12309 #ifdef __cplusplus
12310 extern "C"
12311 #endif
12312 /* We use char because int might match the return type of a gcc2
12313    builtin and then its argument prototype would still apply.  */
12314 char dld_link ();
12315 int
12316 main ()
12317 {
12318 dld_link ();
12319   ;
12320   return 0;
12321 }
12322 _ACEOF
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12325   (eval $ac_link) 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } &&
12332          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334   (eval $ac_try) 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; } &&
12338          { ac_try='test -s conftest$ac_exeext'
12339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340   (eval $ac_try) 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; }; then
12344   ac_cv_lib_dld_dld_link=yes
12345 else
12346   echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349 ac_cv_lib_dld_dld_link=no
12350 fi
12351 rm -f conftest.err conftest.$ac_objext \
12352       conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12354 fi
12355 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12356 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12357 if test $ac_cv_lib_dld_dld_link = yes; then
12358   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12359 fi
12360
12361
12362 fi
12363
12364
12365 fi
12366
12367
12368 fi
12369
12370
12371 fi
12372
12373
12374 fi
12375
12376     ;;
12377   esac
12378
12379   if test "x$lt_cv_dlopen" != xno; then
12380     enable_dlopen=yes
12381   else
12382     enable_dlopen=no
12383   fi
12384
12385   case $lt_cv_dlopen in
12386   dlopen)
12387     save_CPPFLAGS="$CPPFLAGS"
12388     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12389
12390     save_LDFLAGS="$LDFLAGS"
12391     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12392
12393     save_LIBS="$LIBS"
12394     LIBS="$lt_cv_dlopen_libs $LIBS"
12395
12396     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12397 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12398 if test "${lt_cv_dlopen_self+set}" = set; then
12399   echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401           if test "$cross_compiling" = yes; then :
12402   lt_cv_dlopen_self=cross
12403 else
12404   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12405   lt_status=$lt_dlunknown
12406   cat > conftest.$ac_ext <<EOF
12407 #line 12407 "configure"
12408 #include "confdefs.h"
12409
12410 #if HAVE_DLFCN_H
12411 #include <dlfcn.h>
12412 #endif
12413
12414 #include <stdio.h>
12415
12416 #ifdef RTLD_GLOBAL
12417 #  define LT_DLGLOBAL           RTLD_GLOBAL
12418 #else
12419 #  ifdef DL_GLOBAL
12420 #    define LT_DLGLOBAL         DL_GLOBAL
12421 #  else
12422 #    define LT_DLGLOBAL         0
12423 #  endif
12424 #endif
12425
12426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12427    find out it does not work in some platform. */
12428 #ifndef LT_DLLAZY_OR_NOW
12429 #  ifdef RTLD_LAZY
12430 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12431 #  else
12432 #    ifdef DL_LAZY
12433 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12434 #    else
12435 #      ifdef RTLD_NOW
12436 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12437 #      else
12438 #        ifdef DL_NOW
12439 #          define LT_DLLAZY_OR_NOW      DL_NOW
12440 #        else
12441 #          define LT_DLLAZY_OR_NOW      0
12442 #        endif
12443 #      endif
12444 #    endif
12445 #  endif
12446 #endif
12447
12448 #ifdef __cplusplus
12449 extern "C" void exit (int);
12450 #endif
12451
12452 void fnord() { int i=42;}
12453 int main ()
12454 {
12455   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12456   int status = $lt_dlunknown;
12457
12458   if (self)
12459     {
12460       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12461       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12462       /* dlclose (self); */
12463     }
12464
12465     exit (status);
12466 }
12467 EOF
12468   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469   (eval $ac_link) 2>&5
12470   ac_status=$?
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12473     (./conftest; exit; ) 2>/dev/null
12474     lt_status=$?
12475     case x$lt_status in
12476       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12477       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12478       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12479     esac
12480   else :
12481     # compilation failed
12482     lt_cv_dlopen_self=no
12483   fi
12484 fi
12485 rm -fr conftest*
12486
12487
12488 fi
12489 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12490 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12491
12492     if test "x$lt_cv_dlopen_self" = xyes; then
12493       LDFLAGS="$LDFLAGS $link_static_flag"
12494       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12495 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12496 if test "${lt_cv_dlopen_self_static+set}" = set; then
12497   echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499           if test "$cross_compiling" = yes; then :
12500   lt_cv_dlopen_self_static=cross
12501 else
12502   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12503   lt_status=$lt_dlunknown
12504   cat > conftest.$ac_ext <<EOF
12505 #line 12505 "configure"
12506 #include "confdefs.h"
12507
12508 #if HAVE_DLFCN_H
12509 #include <dlfcn.h>
12510 #endif
12511
12512 #include <stdio.h>
12513
12514 #ifdef RTLD_GLOBAL
12515 #  define LT_DLGLOBAL           RTLD_GLOBAL
12516 #else
12517 #  ifdef DL_GLOBAL
12518 #    define LT_DLGLOBAL         DL_GLOBAL
12519 #  else
12520 #    define LT_DLGLOBAL         0
12521 #  endif
12522 #endif
12523
12524 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12525    find out it does not work in some platform. */
12526 #ifndef LT_DLLAZY_OR_NOW
12527 #  ifdef RTLD_LAZY
12528 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12529 #  else
12530 #    ifdef DL_LAZY
12531 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12532 #    else
12533 #      ifdef RTLD_NOW
12534 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12535 #      else
12536 #        ifdef DL_NOW
12537 #          define LT_DLLAZY_OR_NOW      DL_NOW
12538 #        else
12539 #          define LT_DLLAZY_OR_NOW      0
12540 #        endif
12541 #      endif
12542 #    endif
12543 #  endif
12544 #endif
12545
12546 #ifdef __cplusplus
12547 extern "C" void exit (int);
12548 #endif
12549
12550 void fnord() { int i=42;}
12551 int main ()
12552 {
12553   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12554   int status = $lt_dlunknown;
12555
12556   if (self)
12557     {
12558       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12559       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12560       /* dlclose (self); */
12561     }
12562
12563     exit (status);
12564 }
12565 EOF
12566   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567   (eval $ac_link) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12571     (./conftest; exit; ) 2>/dev/null
12572     lt_status=$?
12573     case x$lt_status in
12574       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12575       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12576       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12577     esac
12578   else :
12579     # compilation failed
12580     lt_cv_dlopen_self_static=no
12581   fi
12582 fi
12583 rm -fr conftest*
12584
12585
12586 fi
12587 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12588 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12589     fi
12590
12591     CPPFLAGS="$save_CPPFLAGS"
12592     LDFLAGS="$save_LDFLAGS"
12593     LIBS="$save_LIBS"
12594     ;;
12595   esac
12596
12597   case $lt_cv_dlopen_self in
12598   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12599   *) enable_dlopen_self=unknown ;;
12600   esac
12601
12602   case $lt_cv_dlopen_self_static in
12603   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12604   *) enable_dlopen_self_static=unknown ;;
12605   esac
12606 fi
12607
12608
12609 # The else clause should only fire when bootstrapping the
12610 # libtool distribution, otherwise you forgot to ship ltmain.sh
12611 # with your package, and you will get complaints that there are
12612 # no rules to generate ltmain.sh.
12613 if test -f "$ltmain"; then
12614   # See if we are running on zsh, and set the options which allow our commands through
12615   # without removal of \ escapes.
12616   if test -n "${ZSH_VERSION+set}" ; then
12617     setopt NO_GLOB_SUBST
12618   fi
12619   # Now quote all the things that may contain metacharacters while being
12620   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12621   # variables and quote the copies for generation of the libtool script.
12622   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12623     SED SHELL STRIP \
12624     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12625     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12626     deplibs_check_method reload_flag reload_cmds need_locks \
12627     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12628     lt_cv_sys_global_symbol_to_c_name_address \
12629     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12630     old_postinstall_cmds old_postuninstall_cmds \
12631     compiler_CXX \
12632     CC_CXX \
12633     LD_CXX \
12634     lt_prog_compiler_wl_CXX \
12635     lt_prog_compiler_pic_CXX \
12636     lt_prog_compiler_static_CXX \
12637     lt_prog_compiler_no_builtin_flag_CXX \
12638     export_dynamic_flag_spec_CXX \
12639     thread_safe_flag_spec_CXX \
12640     whole_archive_flag_spec_CXX \
12641     enable_shared_with_static_runtimes_CXX \
12642     old_archive_cmds_CXX \
12643     old_archive_from_new_cmds_CXX \
12644     predep_objects_CXX \
12645     postdep_objects_CXX \
12646     predeps_CXX \
12647     postdeps_CXX \
12648     compiler_lib_search_path_CXX \
12649     archive_cmds_CXX \
12650     archive_expsym_cmds_CXX \
12651     postinstall_cmds_CXX \
12652     postuninstall_cmds_CXX \
12653     old_archive_from_expsyms_cmds_CXX \
12654     allow_undefined_flag_CXX \
12655     no_undefined_flag_CXX \
12656     export_symbols_cmds_CXX \
12657     hardcode_libdir_flag_spec_CXX \
12658     hardcode_libdir_flag_spec_ld_CXX \
12659     hardcode_libdir_separator_CXX \
12660     hardcode_automatic_CXX \
12661     module_cmds_CXX \
12662     module_expsym_cmds_CXX \
12663     lt_cv_prog_compiler_c_o_CXX \
12664     exclude_expsyms_CXX \
12665     include_expsyms_CXX; do
12666
12667     case $var in
12668     old_archive_cmds_CXX | \
12669     old_archive_from_new_cmds_CXX | \
12670     archive_cmds_CXX | \
12671     archive_expsym_cmds_CXX | \
12672     module_cmds_CXX | \
12673     module_expsym_cmds_CXX | \
12674     old_archive_from_expsyms_cmds_CXX | \
12675     export_symbols_cmds_CXX | \
12676     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12677     postinstall_cmds | postuninstall_cmds | \
12678     old_postinstall_cmds | old_postuninstall_cmds | \
12679     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12680       # Double-quote double-evaled strings.
12681       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12682       ;;
12683     *)
12684       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12685       ;;
12686     esac
12687   done
12688
12689   case $lt_echo in
12690   *'\$0 --fallback-echo"')
12691     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12692     ;;
12693   esac
12694
12695 cfgfile="$ofile"
12696
12697   cat <<__EOF__ >> "$cfgfile"
12698 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12699
12700 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12701
12702 # Shell to use when invoking shell scripts.
12703 SHELL=$lt_SHELL
12704
12705 # Whether or not to build shared libraries.
12706 build_libtool_libs=$enable_shared
12707
12708 # Whether or not to build static libraries.
12709 build_old_libs=$enable_static
12710
12711 # Whether or not to add -lc for building shared libraries.
12712 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12713
12714 # Whether or not to disallow shared libs when runtime libs are static
12715 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12716
12717 # Whether or not to optimize for fast installation.
12718 fast_install=$enable_fast_install
12719
12720 # The host system.
12721 host_alias=$host_alias
12722 host=$host
12723
12724 # An echo program that does not interpret backslashes.
12725 echo=$lt_echo
12726
12727 # The archiver.
12728 AR=$lt_AR
12729 AR_FLAGS=$lt_AR_FLAGS
12730
12731 # A C compiler.
12732 LTCC=$lt_LTCC
12733
12734 # A language-specific compiler.
12735 CC=$lt_compiler_CXX
12736
12737 # Is the compiler the GNU C compiler?
12738 with_gcc=$GCC_CXX
12739
12740 # An ERE matcher.
12741 EGREP=$lt_EGREP
12742
12743 # The linker used to build libraries.
12744 LD=$lt_LD_CXX
12745
12746 # Whether we need hard or soft links.
12747 LN_S=$lt_LN_S
12748
12749 # A BSD-compatible nm program.
12750 NM=$lt_NM
12751
12752 # A symbol stripping program
12753 STRIP=$lt_STRIP
12754
12755 # Used to examine libraries when file_magic_cmd begins "file"
12756 MAGIC_CMD=$MAGIC_CMD
12757
12758 # Used on cygwin: DLL creation program.
12759 DLLTOOL="$DLLTOOL"
12760
12761 # Used on cygwin: object dumper.
12762 OBJDUMP="$OBJDUMP"
12763
12764 # Used on cygwin: assembler.
12765 AS="$AS"
12766
12767 # The name of the directory that contains temporary libtool files.
12768 objdir=$objdir
12769
12770 # How to create reloadable object files.
12771 reload_flag=$lt_reload_flag
12772 reload_cmds=$lt_reload_cmds
12773
12774 # How to pass a linker flag through the compiler.
12775 wl=$lt_lt_prog_compiler_wl_CXX
12776
12777 # Object file suffix (normally "o").
12778 objext="$ac_objext"
12779
12780 # Old archive suffix (normally "a").
12781 libext="$libext"
12782
12783 # Shared library suffix (normally ".so").
12784 shrext='$shrext'
12785
12786 # Executable file suffix (normally "").
12787 exeext="$exeext"
12788
12789 # Additional compiler flags for building library objects.
12790 pic_flag=$lt_lt_prog_compiler_pic_CXX
12791 pic_mode=$pic_mode
12792
12793 # What is the maximum length of a command?
12794 max_cmd_len=$lt_cv_sys_max_cmd_len
12795
12796 # Does compiler simultaneously support -c and -o options?
12797 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12798
12799 # Must we lock files when doing compilation ?
12800 need_locks=$lt_need_locks
12801
12802 # Do we need the lib prefix for modules?
12803 need_lib_prefix=$need_lib_prefix
12804
12805 # Do we need a version for libraries?
12806 need_version=$need_version
12807
12808 # Whether dlopen is supported.
12809 dlopen_support=$enable_dlopen
12810
12811 # Whether dlopen of programs is supported.
12812 dlopen_self=$enable_dlopen_self
12813
12814 # Whether dlopen of statically linked programs is supported.
12815 dlopen_self_static=$enable_dlopen_self_static
12816
12817 # Compiler flag to prevent dynamic linking.
12818 link_static_flag=$lt_lt_prog_compiler_static_CXX
12819
12820 # Compiler flag to turn off builtin functions.
12821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12822
12823 # Compiler flag to allow reflexive dlopens.
12824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12825
12826 # Compiler flag to generate shared objects directly from archives.
12827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12828
12829 # Compiler flag to generate thread-safe objects.
12830 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12831
12832 # Library versioning type.
12833 version_type=$version_type
12834
12835 # Format of library name prefix.
12836 libname_spec=$lt_libname_spec
12837
12838 # List of archive names.  First name is the real one, the rest are links.
12839 # The last name is the one that the linker finds with -lNAME.
12840 library_names_spec=$lt_library_names_spec
12841
12842 # The coded name of the library, if different from the real name.
12843 soname_spec=$lt_soname_spec
12844
12845 # Commands used to build and install an old-style archive.
12846 RANLIB=$lt_RANLIB
12847 old_archive_cmds=$lt_old_archive_cmds_CXX
12848 old_postinstall_cmds=$lt_old_postinstall_cmds
12849 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12850
12851 # Create an old-style archive from a shared archive.
12852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12853
12854 # Create a temporary old-style archive to link instead of a shared archive.
12855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12856
12857 # Commands used to build and install a shared archive.
12858 archive_cmds=$lt_archive_cmds_CXX
12859 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12860 postinstall_cmds=$lt_postinstall_cmds
12861 postuninstall_cmds=$lt_postuninstall_cmds
12862
12863 # Commands used to build a loadable module (assumed same as above if empty)
12864 module_cmds=$lt_module_cmds_CXX
12865 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12866
12867 # Commands to strip libraries.
12868 old_striplib=$lt_old_striplib
12869 striplib=$lt_striplib
12870
12871 # Dependencies to place before the objects being linked to create a
12872 # shared library.
12873 predep_objects=$lt_predep_objects_CXX
12874
12875 # Dependencies to place after the objects being linked to create a
12876 # shared library.
12877 postdep_objects=$lt_postdep_objects_CXX
12878
12879 # Dependencies to place before the objects being linked to create a
12880 # shared library.
12881 predeps=$lt_predeps_CXX
12882
12883 # Dependencies to place after the objects being linked to create a
12884 # shared library.
12885 postdeps=$lt_postdeps_CXX
12886
12887 # The library search path used internally by the compiler when linking
12888 # a shared library.
12889 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12890
12891 # Method to check whether dependent libraries are shared objects.
12892 deplibs_check_method=$lt_deplibs_check_method
12893
12894 # Command to use when deplibs_check_method == file_magic.
12895 file_magic_cmd=$lt_file_magic_cmd
12896
12897 # Flag that allows shared libraries with undefined symbols to be built.
12898 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12899
12900 # Flag that forces no undefined symbols.
12901 no_undefined_flag=$lt_no_undefined_flag_CXX
12902
12903 # Commands used to finish a libtool library installation in a directory.
12904 finish_cmds=$lt_finish_cmds
12905
12906 # Same as above, but a single script fragment to be evaled but not shown.
12907 finish_eval=$lt_finish_eval
12908
12909 # Take the output of nm and produce a listing of raw symbols and C names.
12910 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12911
12912 # Transform the output of nm in a proper C declaration
12913 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12914
12915 # Transform the output of nm in a C name address pair
12916 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12917
12918 # This is the shared library runtime path variable.
12919 runpath_var=$runpath_var
12920
12921 # This is the shared library path variable.
12922 shlibpath_var=$shlibpath_var
12923
12924 # Is shlibpath searched before the hard-coded library search path?
12925 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12926
12927 # How to hardcode a shared library path into an executable.
12928 hardcode_action=$hardcode_action_CXX
12929
12930 # Whether we should hardcode library paths into libraries.
12931 hardcode_into_libs=$hardcode_into_libs
12932
12933 # Flag to hardcode \$libdir into a binary during linking.
12934 # This must work even if \$libdir does not exist.
12935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12936
12937 # If ld is used when linking, flag to hardcode \$libdir into
12938 # a binary during linking. This must work even if \$libdir does
12939 # not exist.
12940 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12941
12942 # Whether we need a single -rpath flag with a separated argument.
12943 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12944
12945 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12946 # resulting binary.
12947 hardcode_direct=$hardcode_direct_CXX
12948
12949 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12950 # resulting binary.
12951 hardcode_minus_L=$hardcode_minus_L_CXX
12952
12953 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12954 # the resulting binary.
12955 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12956
12957 # Set to yes if building a shared library automatically hardcodes DIR into the library
12958 # and all subsequent libraries and executables linked against it.
12959 hardcode_automatic=$hardcode_automatic_CXX
12960
12961 # Variables whose values should be saved in libtool wrapper scripts and
12962 # restored at relink time.
12963 variables_saved_for_relink="$variables_saved_for_relink"
12964
12965 # Whether libtool must link a program against all its dependency libraries.
12966 link_all_deplibs=$link_all_deplibs_CXX
12967
12968 # Compile-time system search path for libraries
12969 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12970
12971 # Run-time system search path for libraries
12972 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12973
12974 # Fix the shell variable \$srcfile for the compiler.
12975 fix_srcfile_path="$fix_srcfile_path_CXX"
12976
12977 # Set to yes if exported symbols are required.
12978 always_export_symbols=$always_export_symbols_CXX
12979
12980 # The commands to list exported symbols.
12981 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12982
12983 # The commands to extract the exported symbol list from a shared archive.
12984 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12985
12986 # Symbols that should not be listed in the preloaded symbols.
12987 exclude_expsyms=$lt_exclude_expsyms_CXX
12988
12989 # Symbols that must always be exported.
12990 include_expsyms=$lt_include_expsyms_CXX
12991
12992 # ### END LIBTOOL TAG CONFIG: $tagname
12993
12994 __EOF__
12995
12996
12997 else
12998   # If there is no Makefile yet, we rely on a make rule to execute
12999   # `config.status --recheck' to rerun these tests and create the
13000   # libtool script then.
13001   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13002   if test -f "$ltmain_in"; then
13003     test -f Makefile && make "$ltmain"
13004   fi
13005 fi
13006
13007
13008 ac_ext=c
13009 ac_cpp='$CPP $CPPFLAGS'
13010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13013
13014 CC=$lt_save_CC
13015 LDCXX=$LD
13016 LD=$lt_save_LD
13017 GCC=$lt_save_GCC
13018 with_gnu_ldcxx=$with_gnu_ld
13019 with_gnu_ld=$lt_save_with_gnu_ld
13020 lt_cv_path_LDCXX=$lt_cv_path_LD
13021 lt_cv_path_LD=$lt_save_path_LD
13022 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13023 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13024
13025         else
13026           tagname=""
13027         fi
13028         ;;
13029
13030       F77)
13031         if test -n "$F77" && test "X$F77" != "Xno"; then
13032
13033 ac_ext=f
13034 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13035 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13036 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13037
13038
13039 archive_cmds_need_lc_F77=no
13040 allow_undefined_flag_F77=
13041 always_export_symbols_F77=no
13042 archive_expsym_cmds_F77=
13043 export_dynamic_flag_spec_F77=
13044 hardcode_direct_F77=no
13045 hardcode_libdir_flag_spec_F77=
13046 hardcode_libdir_flag_spec_ld_F77=
13047 hardcode_libdir_separator_F77=
13048 hardcode_minus_L_F77=no
13049 hardcode_automatic_F77=no
13050 module_cmds_F77=
13051 module_expsym_cmds_F77=
13052 link_all_deplibs_F77=unknown
13053 old_archive_cmds_F77=$old_archive_cmds
13054 no_undefined_flag_F77=
13055 whole_archive_flag_spec_F77=
13056 enable_shared_with_static_runtimes_F77=no
13057
13058 # Source file extension for f77 test sources.
13059 ac_ext=f
13060
13061 # Object file extension for compiled f77 test sources.
13062 objext=o
13063 objext_F77=$objext
13064
13065 # Code to be used in simple compile tests
13066 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13067
13068 # Code to be used in simple link tests
13069 lt_simple_link_test_code="      program t\n      end\n"
13070
13071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13072
13073 # If no C compiler was specified, use CC.
13074 LTCC=${LTCC-"$CC"}
13075
13076 # Allow CC to be a program name with arguments.
13077 compiler=$CC
13078
13079
13080 # Allow CC to be a program name with arguments.
13081 lt_save_CC="$CC"
13082 CC=${F77-"f77"}
13083 compiler=$CC
13084 compiler_F77=$CC
13085 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13086
13087 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13088 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13089 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13090 echo "${ECHO_T}$can_build_shared" >&6
13091
13092 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13093 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13094 test "$can_build_shared" = "no" && enable_shared=no
13095
13096 # On AIX, shared libraries and static libraries use the same namespace, and
13097 # are all built from PIC.
13098 case "$host_os" in
13099 aix3*)
13100   test "$enable_shared" = yes && enable_static=no
13101   if test -n "$RANLIB"; then
13102     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13103     postinstall_cmds='$RANLIB $lib'
13104   fi
13105   ;;
13106 aix4*)
13107   test "$enable_shared" = yes && enable_static=no
13108   ;;
13109 esac
13110 echo "$as_me:$LINENO: result: $enable_shared" >&5
13111 echo "${ECHO_T}$enable_shared" >&6
13112
13113 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13114 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13115 # Make sure either enable_shared or enable_static is yes.
13116 test "$enable_shared" = yes || enable_static=yes
13117 echo "$as_me:$LINENO: result: $enable_static" >&5
13118 echo "${ECHO_T}$enable_static" >&6
13119
13120 test "$ld_shlibs_F77" = no && can_build_shared=no
13121
13122 GCC_F77="$G77"
13123 LD_F77="$LD"
13124
13125 lt_prog_compiler_wl_F77=
13126 lt_prog_compiler_pic_F77=
13127 lt_prog_compiler_static_F77=
13128
13129 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13130 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13131
13132   if test "$GCC" = yes; then
13133     lt_prog_compiler_wl_F77='-Wl,'
13134     lt_prog_compiler_static_F77='-static'
13135
13136     case $host_os in
13137       aix*)
13138       # All AIX code is PIC.
13139       if test "$host_cpu" = ia64; then
13140         # AIX 5 now supports IA64 processor
13141         lt_prog_compiler_static_F77='-Bstatic'
13142       fi
13143       ;;
13144
13145     amigaos*)
13146       # FIXME: we need at least 68020 code to build shared libraries, but
13147       # adding the `-m68020' flag to GCC prevents building anything better,
13148       # like `-m68040'.
13149       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13150       ;;
13151
13152     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13153       # PIC is the default for these OSes.
13154       ;;
13155
13156     mingw* | pw32* | os2*)
13157       # This hack is so that the source file can tell whether it is being
13158       # built for inclusion in a dll (and should export symbols for example).
13159       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13160       ;;
13161
13162     darwin* | rhapsody*)
13163       # PIC is the default on this platform
13164       # Common symbols not allowed in MH_DYLIB files
13165       lt_prog_compiler_pic_F77='-fno-common'
13166       ;;
13167
13168     msdosdjgpp*)
13169       # Just because we use GCC doesn't mean we suddenly get shared libraries
13170       # on systems that don't support them.
13171       lt_prog_compiler_can_build_shared_F77=no
13172       enable_shared=no
13173       ;;
13174
13175     sysv4*MP*)
13176       if test -d /usr/nec; then
13177         lt_prog_compiler_pic_F77=-Kconform_pic
13178       fi
13179       ;;
13180
13181     hpux*)
13182       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13183       # not for PA HP-UX.
13184       case "$host_cpu" in
13185       hppa*64*|ia64*)
13186         # +Z the default
13187         ;;
13188       *)
13189         lt_prog_compiler_pic_F77='-fPIC'
13190         ;;
13191       esac
13192       ;;
13193
13194     *)
13195       lt_prog_compiler_pic_F77='-fPIC'
13196       ;;
13197     esac
13198   else
13199     # PORTME Check for flag to pass linker flags through the system compiler.
13200     case $host_os in
13201     aix*)
13202       lt_prog_compiler_wl_F77='-Wl,'
13203       if test "$host_cpu" = ia64; then
13204         # AIX 5 now supports IA64 processor
13205         lt_prog_compiler_static_F77='-Bstatic'
13206       else
13207         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13208       fi
13209       ;;
13210
13211     mingw* | pw32* | os2*)
13212       # This hack is so that the source file can tell whether it is being
13213       # built for inclusion in a dll (and should export symbols for example).
13214       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13215       ;;
13216
13217     hpux9* | hpux10* | hpux11*)
13218       lt_prog_compiler_wl_F77='-Wl,'
13219       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13220       # not for PA HP-UX.
13221       case "$host_cpu" in
13222       hppa*64*|ia64*)
13223         # +Z the default
13224         ;;
13225       *)
13226         lt_prog_compiler_pic_F77='+Z'
13227         ;;
13228       esac
13229       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13230       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13231       ;;
13232
13233     irix5* | irix6* | nonstopux*)
13234       lt_prog_compiler_wl_F77='-Wl,'
13235       # PIC (with -KPIC) is the default.
13236       lt_prog_compiler_static_F77='-non_shared'
13237       ;;
13238
13239     newsos6)
13240       lt_prog_compiler_pic_F77='-KPIC'
13241       lt_prog_compiler_static_F77='-Bstatic'
13242       ;;
13243
13244     linux*)
13245       case $CC in
13246       icc* | ecc*)
13247         lt_prog_compiler_wl_F77='-Wl,'
13248         lt_prog_compiler_pic_F77='-KPIC'
13249         lt_prog_compiler_static_F77='-static'
13250         ;;
13251       ccc*)
13252         lt_prog_compiler_wl_F77='-Wl,'
13253         # All Alpha code is PIC.
13254         lt_prog_compiler_static_F77='-non_shared'
13255         ;;
13256       esac
13257       ;;
13258
13259     osf3* | osf4* | osf5*)
13260       lt_prog_compiler_wl_F77='-Wl,'
13261       # All OSF/1 code is PIC.
13262       lt_prog_compiler_static_F77='-non_shared'
13263       ;;
13264
13265     sco3.2v5*)
13266       lt_prog_compiler_pic_F77='-Kpic'
13267       lt_prog_compiler_static_F77='-dn'
13268       ;;
13269
13270     solaris*)
13271       lt_prog_compiler_wl_F77='-Wl,'
13272       lt_prog_compiler_pic_F77='-KPIC'
13273       lt_prog_compiler_static_F77='-Bstatic'
13274       ;;
13275
13276     sunos4*)
13277       lt_prog_compiler_wl_F77='-Qoption ld '
13278       lt_prog_compiler_pic_F77='-PIC'
13279       lt_prog_compiler_static_F77='-Bstatic'
13280       ;;
13281
13282     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13283       lt_prog_compiler_wl_F77='-Wl,'
13284       lt_prog_compiler_pic_F77='-KPIC'
13285       lt_prog_compiler_static_F77='-Bstatic'
13286       ;;
13287
13288     sysv4*MP*)
13289       if test -d /usr/nec ;then
13290         lt_prog_compiler_pic_F77='-Kconform_pic'
13291         lt_prog_compiler_static_F77='-Bstatic'
13292       fi
13293       ;;
13294
13295     uts4*)
13296       lt_prog_compiler_pic_F77='-pic'
13297       lt_prog_compiler_static_F77='-Bstatic'
13298       ;;
13299
13300     *)
13301       lt_prog_compiler_can_build_shared_F77=no
13302       ;;
13303     esac
13304   fi
13305
13306 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13307 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13308
13309 #
13310 # Check to make sure the PIC flag actually works.
13311 #
13312 if test -n "$lt_prog_compiler_pic_F77"; then
13313
13314 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13315 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13316 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13317   echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319   lt_prog_compiler_pic_works_F77=no
13320   ac_outfile=conftest.$ac_objext
13321    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13322    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13323    # Insert the option either (1) after the last *FLAGS variable, or
13324    # (2) before a word containing "conftest.", or (3) at the end.
13325    # Note that $ac_compile itself does not contain backslashes and begins
13326    # with a dollar sign (not a hyphen), so the echo should work correctly.
13327    # The option is referenced via a variable to avoid confusing sed.
13328    lt_compile=`echo "$ac_compile" | $SED \
13329    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13330    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13331    -e 's:$: $lt_compiler_flag:'`
13332    (eval echo "\"\$as_me:13332: $lt_compile\"" >&5)
13333    (eval "$lt_compile" 2>conftest.err)
13334    ac_status=$?
13335    cat conftest.err >&5
13336    echo "$as_me:13336: \$? = $ac_status" >&5
13337    if (exit $ac_status) && test -s "$ac_outfile"; then
13338      # The compiler can only warn and ignore the option if not recognized
13339      # So say no if there are warnings
13340      if test ! -s conftest.err; then
13341        lt_prog_compiler_pic_works_F77=yes
13342      fi
13343    fi
13344    $rm conftest*
13345
13346 fi
13347 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13348 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13349
13350 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13351     case $lt_prog_compiler_pic_F77 in
13352      "" | " "*) ;;
13353      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13354      esac
13355 else
13356     lt_prog_compiler_pic_F77=
13357      lt_prog_compiler_can_build_shared_F77=no
13358 fi
13359
13360 fi
13361 case "$host_os" in
13362   # For platforms which do not support PIC, -DPIC is meaningless:
13363   *djgpp*)
13364     lt_prog_compiler_pic_F77=
13365     ;;
13366   *)
13367     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13368     ;;
13369 esac
13370
13371 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13372 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13373 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13374   echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376   lt_cv_prog_compiler_c_o_F77=no
13377    $rm -r conftest 2>/dev/null
13378    mkdir conftest
13379    cd conftest
13380    mkdir out
13381    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13382
13383    lt_compiler_flag="-o out/conftest2.$ac_objext"
13384    # Insert the option either (1) after the last *FLAGS variable, or
13385    # (2) before a word containing "conftest.", or (3) at the end.
13386    # Note that $ac_compile itself does not contain backslashes and begins
13387    # with a dollar sign (not a hyphen), so the echo should work correctly.
13388    lt_compile=`echo "$ac_compile" | $SED \
13389    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13390    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13391    -e 's:$: $lt_compiler_flag:'`
13392    (eval echo "\"\$as_me:13392: $lt_compile\"" >&5)
13393    (eval "$lt_compile" 2>out/conftest.err)
13394    ac_status=$?
13395    cat out/conftest.err >&5
13396    echo "$as_me:13396: \$? = $ac_status" >&5
13397    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13398    then
13399      # The compiler can only warn and ignore the option if not recognized
13400      # So say no if there are warnings
13401      if test ! -s out/conftest.err; then
13402        lt_cv_prog_compiler_c_o_F77=yes
13403      fi
13404    fi
13405    chmod u+w .
13406    $rm conftest*
13407    # SGI C++ compiler will create directory out/ii_files/ for
13408    # template instantiation
13409    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13410    $rm out/* && rmdir out
13411    cd ..
13412    rmdir conftest
13413    $rm conftest*
13414
13415 fi
13416 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13417 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13418
13419
13420 hard_links="nottested"
13421 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13422   # do not overwrite the value of need_locks provided by the user
13423   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13424 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13425   hard_links=yes
13426   $rm conftest*
13427   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13428   touch conftest.a
13429   ln conftest.a conftest.b 2>&5 || hard_links=no
13430   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13431   echo "$as_me:$LINENO: result: $hard_links" >&5
13432 echo "${ECHO_T}$hard_links" >&6
13433   if test "$hard_links" = no; then
13434     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13435 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13436     need_locks=warn
13437   fi
13438 else
13439   need_locks=no
13440 fi
13441
13442 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13443 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13444
13445   runpath_var=
13446   allow_undefined_flag_F77=
13447   enable_shared_with_static_runtimes_F77=no
13448   archive_cmds_F77=
13449   archive_expsym_cmds_F77=
13450   old_archive_From_new_cmds_F77=
13451   old_archive_from_expsyms_cmds_F77=
13452   export_dynamic_flag_spec_F77=
13453   whole_archive_flag_spec_F77=
13454   thread_safe_flag_spec_F77=
13455   hardcode_libdir_flag_spec_F77=
13456   hardcode_libdir_flag_spec_ld_F77=
13457   hardcode_libdir_separator_F77=
13458   hardcode_direct_F77=no
13459   hardcode_minus_L_F77=no
13460   hardcode_shlibpath_var_F77=unsupported
13461   link_all_deplibs_F77=unknown
13462   hardcode_automatic_F77=no
13463   module_cmds_F77=
13464   module_expsym_cmds_F77=
13465   always_export_symbols_F77=no
13466   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13467   # include_expsyms should be a list of space-separated symbols to be *always*
13468   # included in the symbol list
13469   include_expsyms_F77=
13470   # exclude_expsyms can be an extended regexp of symbols to exclude
13471   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13472   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13473   # as well as any symbol that contains `d'.
13474   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13475   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13476   # platforms (ab)use it in PIC code, but their linkers get confused if
13477   # the symbol is explicitly referenced.  Since portable code cannot
13478   # rely on this symbol name, it's probably fine to never include it in
13479   # preloaded symbol tables.
13480   extract_expsyms_cmds=
13481
13482   case $host_os in
13483   cygwin* | mingw* | pw32*)
13484     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13485     # When not using gcc, we currently assume that we are using
13486     # Microsoft Visual C++.
13487     if test "$GCC" != yes; then
13488       with_gnu_ld=no
13489     fi
13490     ;;
13491   openbsd*)
13492     with_gnu_ld=no
13493     ;;
13494   esac
13495
13496   ld_shlibs_F77=yes
13497   if test "$with_gnu_ld" = yes; then
13498     # If archive_cmds runs LD, not CC, wlarc should be empty
13499     wlarc='${wl}'
13500
13501     # See if GNU ld supports shared libraries.
13502     case $host_os in
13503     aix3* | aix4* | aix5*)
13504       # On AIX/PPC, the GNU linker is very broken
13505       if test "$host_cpu" != ia64; then
13506         ld_shlibs_F77=no
13507         cat <<EOF 1>&2
13508
13509 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13510 *** to be unable to reliably create shared libraries on AIX.
13511 *** Therefore, libtool is disabling shared libraries support.  If you
13512 *** really care for shared libraries, you may want to modify your PATH
13513 *** so that a non-GNU linker is found, and then restart.
13514
13515 EOF
13516       fi
13517       ;;
13518
13519     amigaos*)
13520       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)'
13521       hardcode_libdir_flag_spec_F77='-L$libdir'
13522       hardcode_minus_L_F77=yes
13523
13524       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13525       # that the semantics of dynamic libraries on AmigaOS, at least up
13526       # to version 4, is to share data among multiple programs linked
13527       # with the same dynamic library.  Since this doesn't match the
13528       # behavior of shared libraries on other platforms, we can't use
13529       # them.
13530       ld_shlibs_F77=no
13531       ;;
13532
13533     beos*)
13534       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13535         allow_undefined_flag_F77=unsupported
13536         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13537         # support --undefined.  This deserves some investigation.  FIXME
13538         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13539       else
13540         ld_shlibs_F77=no
13541       fi
13542       ;;
13543
13544     cygwin* | mingw* | pw32*)
13545       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13546       # as there is no search path for DLLs.
13547       hardcode_libdir_flag_spec_F77='-L$libdir'
13548       allow_undefined_flag_F77=unsupported
13549       always_export_symbols_F77=no
13550       enable_shared_with_static_runtimes_F77=yes
13551       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13552
13553       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13554         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13555         # If the export-symbols file already is a .def file (1st line
13556         # is EXPORTS), use it as is; otherwise, prepend...
13557         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13558           cp $export_symbols $output_objdir/$soname.def;
13559         else
13560           echo EXPORTS > $output_objdir/$soname.def;
13561           cat $export_symbols >> $output_objdir/$soname.def;
13562         fi~
13563         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13564       else
13565         ld_shlibs=no
13566       fi
13567       ;;
13568
13569     netbsd* | knetbsd*-gnu)
13570       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13571         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13572         wlarc=
13573       else
13574         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13576       fi
13577       ;;
13578
13579     solaris* | sysv5*)
13580       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13581         ld_shlibs_F77=no
13582         cat <<EOF 1>&2
13583
13584 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13585 *** create shared libraries on Solaris systems.  Therefore, libtool
13586 *** is disabling shared libraries support.  We urge you to upgrade GNU
13587 *** binutils to release 2.9.1 or newer.  Another option is to modify
13588 *** your PATH or compiler configuration so that the native linker is
13589 *** used, and then restart.
13590
13591 EOF
13592       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13593         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13594         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13595       else
13596         ld_shlibs_F77=no
13597       fi
13598       ;;
13599
13600     sunos4*)
13601       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13602       wlarc=
13603       hardcode_direct_F77=yes
13604       hardcode_shlibpath_var_F77=no
13605       ;;
13606
13607   linux*)
13608     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13609         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13610         archive_cmds_F77="$tmp_archive_cmds"
13611       supports_anon_versioning=no
13612       case `$LD -v 2>/dev/null` in
13613         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13614         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13615         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13616         *\ 2.11.*) ;; # other 2.11 versions
13617         *) supports_anon_versioning=yes ;;
13618       esac
13619       if test $supports_anon_versioning = yes; then
13620         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13622 $echo "local: *; };" >> $output_objdir/$libname.ver~
13623         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13624       else
13625         archive_expsym_cmds_F77="$tmp_archive_cmds"
13626       fi
13627     else
13628       ld_shlibs_F77=no
13629     fi
13630     ;;
13631
13632     *)
13633       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13634         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13636       else
13637         ld_shlibs_F77=no
13638       fi
13639       ;;
13640     esac
13641
13642     if test "$ld_shlibs_F77" = yes; then
13643       runpath_var=LD_RUN_PATH
13644       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13645       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13646       # ancient GNU ld didn't support --whole-archive et. al.
13647       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13648         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13649       else
13650         whole_archive_flag_spec_F77=
13651       fi
13652     fi
13653   else
13654     # PORTME fill in a description of your system's linker (not GNU ld)
13655     case $host_os in
13656     aix3*)
13657       allow_undefined_flag_F77=unsupported
13658       always_export_symbols_F77=yes
13659       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'
13660       # Note: this linker hardcodes the directories in LIBPATH if there
13661       # are no directories specified by -L.
13662       hardcode_minus_L_F77=yes
13663       if test "$GCC" = yes && test -z "$link_static_flag"; then
13664         # Neither direct hardcoding nor static linking is supported with a
13665         # broken collect2.
13666         hardcode_direct_F77=unsupported
13667       fi
13668       ;;
13669
13670     aix4* | aix5*)
13671       if test "$host_cpu" = ia64; then
13672         # On IA64, the linker does run time linking by default, so we don't
13673         # have to do anything special.
13674         aix_use_runtimelinking=no
13675         exp_sym_flag='-Bexport'
13676         no_entry_flag=""
13677       else
13678         # If we're using GNU nm, then we don't want the "-C" option.
13679         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13680         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13681           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'
13682         else
13683           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'
13684         fi
13685         aix_use_runtimelinking=no
13686
13687         # Test if we are trying to use run time linking or normal
13688         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13689         # need to do runtime linking.
13690         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13691           for ld_flag in $LDFLAGS; do
13692           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13693             aix_use_runtimelinking=yes
13694             break
13695           fi
13696           done
13697         esac
13698
13699         exp_sym_flag='-bexport'
13700         no_entry_flag='-bnoentry'
13701       fi
13702
13703       # When large executables or shared objects are built, AIX ld can
13704       # have problems creating the table of contents.  If linking a library
13705       # or program results in "error TOC overflow" add -mminimal-toc to
13706       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13707       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13708
13709       archive_cmds_F77=''
13710       hardcode_direct_F77=yes
13711       hardcode_libdir_separator_F77=':'
13712       link_all_deplibs_F77=yes
13713
13714       if test "$GCC" = yes; then
13715         case $host_os in aix4.012|aix4.012.*)
13716         # We only want to do this on AIX 4.2 and lower, the check
13717         # below for broken collect2 doesn't work under 4.3+
13718           collect2name=`${CC} -print-prog-name=collect2`
13719           if test -f "$collect2name" && \
13720            strings "$collect2name" | grep resolve_lib_name >/dev/null
13721           then
13722           # We have reworked collect2
13723           hardcode_direct_F77=yes
13724           else
13725           # We have old collect2
13726           hardcode_direct_F77=unsupported
13727           # It fails to find uninstalled libraries when the uninstalled
13728           # path is not listed in the libpath.  Setting hardcode_minus_L
13729           # to unsupported forces relinking
13730           hardcode_minus_L_F77=yes
13731           hardcode_libdir_flag_spec_F77='-L$libdir'
13732           hardcode_libdir_separator_F77=
13733           fi
13734         esac
13735         shared_flag='-shared'
13736       else
13737         # not using gcc
13738         if test "$host_cpu" = ia64; then
13739         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13740         # chokes on -Wl,-G. The following line is correct:
13741           shared_flag='-G'
13742         else
13743         if test "$aix_use_runtimelinking" = yes; then
13744             shared_flag='${wl}-G'
13745           else
13746             shared_flag='${wl}-bM:SRE'
13747         fi
13748         fi
13749       fi
13750
13751       # It seems that -bexpall does not export symbols beginning with
13752       # underscore (_), so it is better to generate a list of symbols to export.
13753       always_export_symbols_F77=yes
13754       if test "$aix_use_runtimelinking" = yes; then
13755         # Warning - without using the other runtime loading flags (-brtl),
13756         # -berok will link without error, but may produce a broken library.
13757         allow_undefined_flag_F77='-berok'
13758        # Determine the default libpath from the value encoded in an empty executable.
13759        cat >conftest.$ac_ext <<_ACEOF
13760       program main
13761
13762       end
13763 _ACEOF
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766   (eval $ac_link) 2>conftest.er1
13767   ac_status=$?
13768   grep -v '^ *+' conftest.er1 >conftest.err
13769   rm -f conftest.er1
13770   cat conftest.err >&5
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); } &&
13773          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775   (eval $ac_try) 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); }; } &&
13779          { ac_try='test -s conftest$ac_exeext'
13780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781   (eval $ac_try) 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); }; }; then
13785
13786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13787 }'`
13788 # Check for a 64-bit object if we didn't find anything.
13789 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; }
13790 }'`; fi
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795 fi
13796 rm -f conftest.err conftest.$ac_objext \
13797       conftest$ac_exeext conftest.$ac_ext
13798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13799
13800        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13801         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"
13802        else
13803         if test "$host_cpu" = ia64; then
13804           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13805           allow_undefined_flag_F77="-z nodefs"
13806           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"
13807         else
13808          # Determine the default libpath from the value encoded in an empty executable.
13809          cat >conftest.$ac_ext <<_ACEOF
13810       program main
13811
13812       end
13813 _ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816   (eval $ac_link) 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } &&
13823          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825   (eval $ac_try) 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); }; } &&
13829          { ac_try='test -s conftest$ac_exeext'
13830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831   (eval $ac_try) 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; }; then
13835
13836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13837 }'`
13838 # Check for a 64-bit object if we didn't find anything.
13839 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; }
13840 }'`; fi
13841 else
13842   echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845 fi
13846 rm -f conftest.err conftest.$ac_objext \
13847       conftest$ac_exeext conftest.$ac_ext
13848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13849
13850          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13851           # Warning - without using the other run time loading flags,
13852           # -berok will link without error, but may produce a broken library.
13853           no_undefined_flag_F77=' ${wl}-bernotok'
13854           allow_undefined_flag_F77=' ${wl}-berok'
13855           # -bexpall does not export symbols beginning with underscore (_)
13856           always_export_symbols_F77=yes
13857           # Exported symbols can be pulled into shared objects from archives
13858           whole_archive_flag_spec_F77=' '
13859           archive_cmds_need_lc_F77=yes
13860           # This is similar to how AIX traditionally builds it's shared libraries.
13861           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'
13862         fi
13863       fi
13864       ;;
13865
13866     amigaos*)
13867       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)'
13868       hardcode_libdir_flag_spec_F77='-L$libdir'
13869       hardcode_minus_L_F77=yes
13870       # see comment about different semantics on the GNU ld section
13871       ld_shlibs_F77=no
13872       ;;
13873
13874     bsdi4*)
13875       export_dynamic_flag_spec_F77=-rdynamic
13876       ;;
13877
13878     cygwin* | mingw* | pw32*)
13879       # When not using gcc, we currently assume that we are using
13880       # Microsoft Visual C++.
13881       # hardcode_libdir_flag_spec is actually meaningless, as there is
13882       # no search path for DLLs.
13883       hardcode_libdir_flag_spec_F77=' '
13884       allow_undefined_flag_F77=unsupported
13885       # Tell ltmain to make .lib files, not .a files.
13886       libext=lib
13887       # Tell ltmain to make .dll files, not .so files.
13888       shrext=".dll"
13889       # FIXME: Setting linknames here is a bad hack.
13890       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13891       # The linker will automatically build a .lib file if we build a DLL.
13892       old_archive_From_new_cmds_F77='true'
13893       # FIXME: Should let the user specify the lib program.
13894       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13895       fix_srcfile_path='`cygpath -w "$srcfile"`'
13896       enable_shared_with_static_runtimes_F77=yes
13897       ;;
13898
13899     darwin* | rhapsody*)
13900     if test "$GXX" = yes ; then
13901       archive_cmds_need_lc_F77=no
13902       case "$host_os" in
13903       rhapsody* | darwin1.[012])
13904         allow_undefined_flag_F77='-undefined suppress'
13905         ;;
13906       *) # Darwin 1.3 on
13907       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13908         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13909       else
13910         case ${MACOSX_DEPLOYMENT_TARGET} in
13911           10.[012])
13912             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13913             ;;
13914           10.*)
13915             allow_undefined_flag_F77='-undefined dynamic_lookup'
13916             ;;
13917         esac
13918       fi
13919         ;;
13920       esac
13921         lt_int_apple_cc_single_mod=no
13922         output_verbose_link_cmd='echo'
13923         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13924           lt_int_apple_cc_single_mod=yes
13925         fi
13926         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13927           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13928         else
13929         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'
13930       fi
13931       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13932       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13933         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13934           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}'
13935         else
13936           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}'
13937         fi
13938           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}'
13939       hardcode_direct_F77=no
13940       hardcode_automatic_F77=yes
13941       hardcode_shlibpath_var_F77=unsupported
13942       whole_archive_flag_spec_F77='-all_load $convenience'
13943       link_all_deplibs_F77=yes
13944     else
13945       ld_shlibs_F77=no
13946     fi
13947       ;;
13948
13949     dgux*)
13950       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13951       hardcode_libdir_flag_spec_F77='-L$libdir'
13952       hardcode_shlibpath_var_F77=no
13953       ;;
13954
13955     freebsd1*)
13956       ld_shlibs_F77=no
13957       ;;
13958
13959     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13960     # support.  Future versions do this automatically, but an explicit c++rt0.o
13961     # does not break anything, and helps significantly (at the cost of a little
13962     # extra space).
13963     freebsd2.2*)
13964       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13965       hardcode_libdir_flag_spec_F77='-R$libdir'
13966       hardcode_direct_F77=yes
13967       hardcode_shlibpath_var_F77=no
13968       ;;
13969
13970     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13971     freebsd2*)
13972       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13973       hardcode_direct_F77=yes
13974       hardcode_minus_L_F77=yes
13975       hardcode_shlibpath_var_F77=no
13976       ;;
13977
13978     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13979     freebsd* | kfreebsd*-gnu)
13980       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13981       hardcode_libdir_flag_spec_F77='-R$libdir'
13982       hardcode_direct_F77=yes
13983       hardcode_shlibpath_var_F77=no
13984       ;;
13985
13986     hpux9*)
13987       if test "$GCC" = yes; then
13988         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'
13989       else
13990         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'
13991       fi
13992       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13993       hardcode_libdir_separator_F77=:
13994       hardcode_direct_F77=yes
13995
13996       # hardcode_minus_L: Not really in the search PATH,
13997       # but as the default location of the library.
13998       hardcode_minus_L_F77=yes
13999       export_dynamic_flag_spec_F77='${wl}-E'
14000       ;;
14001
14002     hpux10* | hpux11*)
14003       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14004         case "$host_cpu" in
14005         hppa*64*|ia64*)
14006           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14007           ;;
14008         *)
14009           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14010           ;;
14011         esac
14012       else
14013         case "$host_cpu" in
14014         hppa*64*|ia64*)
14015           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14016           ;;
14017         *)
14018           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14019           ;;
14020         esac
14021       fi
14022       if test "$with_gnu_ld" = no; then
14023         case "$host_cpu" in
14024         hppa*64*)
14025           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14026           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14027           hardcode_libdir_separator_F77=:
14028           hardcode_direct_F77=no
14029           hardcode_shlibpath_var_F77=no
14030           ;;
14031         ia64*)
14032           hardcode_libdir_flag_spec_F77='-L$libdir'
14033           hardcode_direct_F77=no
14034           hardcode_shlibpath_var_F77=no
14035
14036           # hardcode_minus_L: Not really in the search PATH,
14037           # but as the default location of the library.
14038           hardcode_minus_L_F77=yes
14039           ;;
14040         *)
14041           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14042           hardcode_libdir_separator_F77=:
14043           hardcode_direct_F77=yes
14044           export_dynamic_flag_spec_F77='${wl}-E'
14045
14046           # hardcode_minus_L: Not really in the search PATH,
14047           # but as the default location of the library.
14048           hardcode_minus_L_F77=yes
14049           ;;
14050         esac
14051       fi
14052       ;;
14053
14054     irix5* | irix6* | nonstopux*)
14055       if test "$GCC" = yes; then
14056         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'
14057       else
14058         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'
14059         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14060       fi
14061       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14062       hardcode_libdir_separator_F77=:
14063       link_all_deplibs_F77=yes
14064       ;;
14065
14066     netbsd* | knetbsd*-gnu)
14067       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14068         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14069       else
14070         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14071       fi
14072       hardcode_libdir_flag_spec_F77='-R$libdir'
14073       hardcode_direct_F77=yes
14074       hardcode_shlibpath_var_F77=no
14075       ;;
14076
14077     newsos6)
14078       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14079       hardcode_direct_F77=yes
14080       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14081       hardcode_libdir_separator_F77=:
14082       hardcode_shlibpath_var_F77=no
14083       ;;
14084
14085     openbsd*)
14086       hardcode_direct_F77=yes
14087       hardcode_shlibpath_var_F77=no
14088       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14089         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14090         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14091         export_dynamic_flag_spec_F77='${wl}-E'
14092       else
14093        case $host_os in
14094          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14095            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14096            hardcode_libdir_flag_spec_F77='-R$libdir'
14097            ;;
14098          *)
14099            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14100            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14101            ;;
14102        esac
14103       fi
14104       ;;
14105
14106     os2*)
14107       hardcode_libdir_flag_spec_F77='-L$libdir'
14108       hardcode_minus_L_F77=yes
14109       allow_undefined_flag_F77=unsupported
14110       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'
14111       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14112       ;;
14113
14114     osf3*)
14115       if test "$GCC" = yes; then
14116         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14117         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'
14118       else
14119         allow_undefined_flag_F77=' -expect_unresolved \*'
14120         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'
14121       fi
14122       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14123       hardcode_libdir_separator_F77=:
14124       ;;
14125
14126     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14127       if test "$GCC" = yes; then
14128         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14129         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'
14130         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14131       else
14132         allow_undefined_flag_F77=' -expect_unresolved \*'
14133         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'
14134         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~
14135         $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'
14136
14137         # Both c and cxx compiler support -rpath directly
14138         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14139       fi
14140       hardcode_libdir_separator_F77=:
14141       ;;
14142
14143     sco3.2v5*)
14144       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145       hardcode_shlibpath_var_F77=no
14146       export_dynamic_flag_spec_F77='${wl}-Bexport'
14147       runpath_var=LD_RUN_PATH
14148       hardcode_runpath_var=yes
14149       ;;
14150
14151     solaris*)
14152       no_undefined_flag_F77=' -z text'
14153       if test "$GCC" = yes; then
14154         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14155         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14156           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14157       else
14158         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14160         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14161       fi
14162       hardcode_libdir_flag_spec_F77='-R$libdir'
14163       hardcode_shlibpath_var_F77=no
14164       case $host_os in
14165       solaris2.[0-5] | solaris2.[0-5].*) ;;
14166       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14167         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14168       esac
14169       link_all_deplibs_F77=yes
14170       ;;
14171
14172     sunos4*)
14173       if test "x$host_vendor" = xsequent; then
14174         # Use $CC to link under sequent, because it throws in some extra .o
14175         # files that make .init and .fini sections work.
14176         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14177       else
14178         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14179       fi
14180       hardcode_libdir_flag_spec_F77='-L$libdir'
14181       hardcode_direct_F77=yes
14182       hardcode_minus_L_F77=yes
14183       hardcode_shlibpath_var_F77=no
14184       ;;
14185
14186     sysv4)
14187       case $host_vendor in
14188         sni)
14189           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14190           hardcode_direct_F77=yes # is this really true???
14191         ;;
14192         siemens)
14193           ## LD is ld it makes a PLAMLIB
14194           ## CC just makes a GrossModule.
14195           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14196           reload_cmds_F77='$CC -r -o $output$reload_objs'
14197           hardcode_direct_F77=no
14198         ;;
14199         motorola)
14200           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14201           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14202         ;;
14203       esac
14204       runpath_var='LD_RUN_PATH'
14205       hardcode_shlibpath_var_F77=no
14206       ;;
14207
14208     sysv4.3*)
14209       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14210       hardcode_shlibpath_var_F77=no
14211       export_dynamic_flag_spec_F77='-Bexport'
14212       ;;
14213
14214     sysv4*MP*)
14215       if test -d /usr/nec; then
14216         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14217         hardcode_shlibpath_var_F77=no
14218         runpath_var=LD_RUN_PATH
14219         hardcode_runpath_var=yes
14220         ld_shlibs_F77=yes
14221       fi
14222       ;;
14223
14224     sysv4.2uw2*)
14225       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14226       hardcode_direct_F77=yes
14227       hardcode_minus_L_F77=no
14228       hardcode_shlibpath_var_F77=no
14229       hardcode_runpath_var=yes
14230       runpath_var=LD_RUN_PATH
14231       ;;
14232
14233    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14234       no_undefined_flag_F77='${wl}-z ${wl}text'
14235       if test "$GCC" = yes; then
14236         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14237       else
14238         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14239       fi
14240       runpath_var='LD_RUN_PATH'
14241       hardcode_shlibpath_var_F77=no
14242       ;;
14243
14244     sysv5*)
14245       no_undefined_flag_F77=' -z text'
14246       # $CC -shared without GNU ld will not create a library from C++
14247       # object files and a static libstdc++, better avoid it by now
14248       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14249       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14250                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14251       hardcode_libdir_flag_spec_F77=
14252       hardcode_shlibpath_var_F77=no
14253       runpath_var='LD_RUN_PATH'
14254       ;;
14255
14256     uts4*)
14257       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14258       hardcode_libdir_flag_spec_F77='-L$libdir'
14259       hardcode_shlibpath_var_F77=no
14260       ;;
14261
14262     *)
14263       ld_shlibs_F77=no
14264       ;;
14265     esac
14266   fi
14267
14268 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14269 echo "${ECHO_T}$ld_shlibs_F77" >&6
14270 test "$ld_shlibs_F77" = no && can_build_shared=no
14271
14272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14273 if test "$GCC" = yes; then
14274   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14275 fi
14276
14277 #
14278 # Do we need to explicitly link libc?
14279 #
14280 case "x$archive_cmds_need_lc_F77" in
14281 x|xyes)
14282   # Assume -lc should be added
14283   archive_cmds_need_lc_F77=yes
14284
14285   if test "$enable_shared" = yes && test "$GCC" = yes; then
14286     case $archive_cmds_F77 in
14287     *'~'*)
14288       # FIXME: we may have to deal with multi-command sequences.
14289       ;;
14290     '$CC '*)
14291       # Test whether the compiler implicitly links with -lc since on some
14292       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14293       # to ld, don't add -lc before -lgcc.
14294       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14295 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14296       $rm conftest*
14297       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14298
14299       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300   (eval $ac_compile) 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); } 2>conftest.err; then
14304         soname=conftest
14305         lib=conftest
14306         libobjs=conftest.$ac_objext
14307         deplibs=
14308         wl=$lt_prog_compiler_wl_F77
14309         compiler_flags=-v
14310         linker_flags=-v
14311         verstring=
14312         output_objdir=.
14313         libname=conftest
14314         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14315         allow_undefined_flag_F77=
14316         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14317   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }
14321         then
14322           archive_cmds_need_lc_F77=no
14323         else
14324           archive_cmds_need_lc_F77=yes
14325         fi
14326         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14327       else
14328         cat conftest.err 1>&5
14329       fi
14330       $rm conftest*
14331       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14332 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14333       ;;
14334     esac
14335   fi
14336   ;;
14337 esac
14338
14339 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14340 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14341 library_names_spec=
14342 libname_spec='lib$name'
14343 soname_spec=
14344 shrext=".so"
14345 postinstall_cmds=
14346 postuninstall_cmds=
14347 finish_cmds=
14348 finish_eval=
14349 shlibpath_var=
14350 shlibpath_overrides_runpath=unknown
14351 version_type=none
14352 dynamic_linker="$host_os ld.so"
14353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14354 if test "$GCC" = yes; then
14355   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14356   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14357     # if the path contains ";" then we assume it to be the separator
14358     # otherwise default to the standard path separator (i.e. ":") - it is
14359     # assumed that no part of a normal pathname contains ";" but that should
14360     # okay in the real world where ";" in dirpaths is itself problematic.
14361     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14362   else
14363     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14364   fi
14365 else
14366   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14367 fi
14368 need_lib_prefix=unknown
14369 hardcode_into_libs=no
14370
14371 # when you set need_version to no, make sure it does not cause -set_version
14372 # flags to be left without arguments
14373 need_version=unknown
14374
14375 case $host_os in
14376 aix3*)
14377   version_type=linux
14378   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14379   shlibpath_var=LIBPATH
14380
14381   # AIX 3 has no versioning support, so we append a major version to the name.
14382   soname_spec='${libname}${release}${shared_ext}$major'
14383   ;;
14384
14385 aix4* | aix5*)
14386   version_type=linux
14387   need_lib_prefix=no
14388   need_version=no
14389   hardcode_into_libs=yes
14390   if test "$host_cpu" = ia64; then
14391     # AIX 5 supports IA64
14392     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14393     shlibpath_var=LD_LIBRARY_PATH
14394   else
14395     # With GCC up to 2.95.x, collect2 would create an import file
14396     # for dependence libraries.  The import file would start with
14397     # the line `#! .'.  This would cause the generated library to
14398     # depend on `.', always an invalid library.  This was fixed in
14399     # development snapshots of GCC prior to 3.0.
14400     case $host_os in
14401       aix4 | aix4.[01] | aix4.[01].*)
14402       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14403            echo ' yes '
14404            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14405         :
14406       else
14407         can_build_shared=no
14408       fi
14409       ;;
14410     esac
14411     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14412     # soname into executable. Probably we can add versioning support to
14413     # collect2, so additional links can be useful in future.
14414     if test "$aix_use_runtimelinking" = yes; then
14415       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14416       # instead of lib<name>.a to let people know that these are not
14417       # typical AIX shared libraries.
14418       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419     else
14420       # We preserve .a as extension for shared libraries through AIX4.2
14421       # and later when we are not doing run time linking.
14422       library_names_spec='${libname}${release}.a $libname.a'
14423       soname_spec='${libname}${release}${shared_ext}$major'
14424     fi
14425     shlibpath_var=LIBPATH
14426   fi
14427   ;;
14428
14429 amigaos*)
14430   library_names_spec='$libname.ixlibrary $libname.a'
14431   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14432   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'
14433   ;;
14434
14435 beos*)
14436   library_names_spec='${libname}${shared_ext}'
14437   dynamic_linker="$host_os ld.so"
14438   shlibpath_var=LIBRARY_PATH
14439   ;;
14440
14441 bsdi4*)
14442   version_type=linux
14443   need_version=no
14444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445   soname_spec='${libname}${release}${shared_ext}$major'
14446   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14447   shlibpath_var=LD_LIBRARY_PATH
14448   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14449   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14450   # the default ld.so.conf also contains /usr/contrib/lib and
14451   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14452   # libtool to hard-code these into programs
14453   ;;
14454
14455 cygwin* | mingw* | pw32*)
14456   version_type=windows
14457   shrext=".dll"
14458   need_version=no
14459   need_lib_prefix=no
14460
14461   case $GCC,$host_os in
14462   yes,cygwin* | yes,mingw* | yes,pw32*)
14463     library_names_spec='$libname.dll.a'
14464     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14465     postinstall_cmds='base_file=`basename \${file}`~
14466       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14467       dldir=$destdir/`dirname \$dlpath`~
14468       test -d \$dldir || mkdir -p \$dldir~
14469       $install_prog $dir/$dlname \$dldir/$dlname'
14470     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14471       dlpath=$dir/\$dldll~
14472        $rm \$dlpath'
14473     shlibpath_overrides_runpath=yes
14474
14475     case $host_os in
14476     cygwin*)
14477       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14478       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14479       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14480       ;;
14481     mingw*)
14482       # MinGW DLLs use traditional 'lib' prefix
14483       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14485       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14486         # It is most probably a Windows format PATH printed by
14487         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14488         # path with ; separators, and with drive letters. We can handle the
14489         # drive letters (cygwin fileutils understands them), so leave them,
14490         # especially as we might pass files found there to a mingw objdump,
14491         # which wouldn't understand a cygwinified path. Ahh.
14492         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14493       else
14494         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14495       fi
14496       ;;
14497     pw32*)
14498       # pw32 DLLs use 'pw' prefix rather than 'lib'
14499       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14500       ;;
14501     esac
14502     ;;
14503
14504   *)
14505     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14506     ;;
14507   esac
14508   dynamic_linker='Win32 ld.exe'
14509   # FIXME: first we should search . and the directory the executable is in
14510   shlibpath_var=PATH
14511   ;;
14512
14513 darwin* | rhapsody*)
14514   dynamic_linker="$host_os dyld"
14515   version_type=darwin
14516   need_lib_prefix=no
14517   need_version=no
14518   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14519   soname_spec='${libname}${release}${major}$shared_ext'
14520   shlibpath_overrides_runpath=yes
14521   shlibpath_var=DYLD_LIBRARY_PATH
14522   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14523   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14524   if test "$GCC" = yes; then
14525     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"`
14526   else
14527     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14528   fi
14529   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14530   ;;
14531
14532 dgux*)
14533   version_type=linux
14534   need_lib_prefix=no
14535   need_version=no
14536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14537   soname_spec='${libname}${release}${shared_ext}$major'
14538   shlibpath_var=LD_LIBRARY_PATH
14539   ;;
14540
14541 freebsd1*)
14542   dynamic_linker=no
14543   ;;
14544
14545 kfreebsd*-gnu)
14546   version_type=linux
14547   need_lib_prefix=no
14548   need_version=no
14549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14550   soname_spec='${libname}${release}${shared_ext}$major'
14551   shlibpath_var=LD_LIBRARY_PATH
14552   shlibpath_overrides_runpath=no
14553   hardcode_into_libs=yes
14554   dynamic_linker='GNU ld.so'
14555   ;;
14556
14557 freebsd*)
14558   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14559   version_type=freebsd-$objformat
14560   case $version_type in
14561     freebsd-elf*)
14562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14563       need_version=no
14564       need_lib_prefix=no
14565       ;;
14566     freebsd-*)
14567       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14568       need_version=yes
14569       ;;
14570   esac
14571   shlibpath_var=LD_LIBRARY_PATH
14572   case $host_os in
14573   freebsd2*)
14574     shlibpath_overrides_runpath=yes
14575     ;;
14576   freebsd3.01* | freebsdelf3.01*)
14577     shlibpath_overrides_runpath=yes
14578     hardcode_into_libs=yes
14579     ;;
14580   *) # from 3.2 on
14581     shlibpath_overrides_runpath=no
14582     hardcode_into_libs=yes
14583     ;;
14584   esac
14585   ;;
14586
14587 gnu*)
14588   version_type=linux
14589   need_lib_prefix=no
14590   need_version=no
14591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14592   soname_spec='${libname}${release}${shared_ext}$major'
14593   shlibpath_var=LD_LIBRARY_PATH
14594   hardcode_into_libs=yes
14595   ;;
14596
14597 hpux9* | hpux10* | hpux11*)
14598   # Give a soname corresponding to the major version so that dld.sl refuses to
14599   # link against other versions.
14600   version_type=sunos
14601   need_lib_prefix=no
14602   need_version=no
14603   case "$host_cpu" in
14604   ia64*)
14605     shrext='.so'
14606     hardcode_into_libs=yes
14607     dynamic_linker="$host_os dld.so"
14608     shlibpath_var=LD_LIBRARY_PATH
14609     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14610     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611     soname_spec='${libname}${release}${shared_ext}$major'
14612     if test "X$HPUX_IA64_MODE" = X32; then
14613       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14614     else
14615       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14616     fi
14617     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14618     ;;
14619    hppa*64*)
14620      shrext='.sl'
14621      hardcode_into_libs=yes
14622      dynamic_linker="$host_os dld.sl"
14623      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14624      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14625      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626      soname_spec='${libname}${release}${shared_ext}$major'
14627      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14628      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14629      ;;
14630    *)
14631     shrext='.sl'
14632     dynamic_linker="$host_os dld.sl"
14633     shlibpath_var=SHLIB_PATH
14634     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636     soname_spec='${libname}${release}${shared_ext}$major'
14637     ;;
14638   esac
14639   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14640   postinstall_cmds='chmod 555 $lib'
14641   ;;
14642
14643 irix5* | irix6* | nonstopux*)
14644   case $host_os in
14645     nonstopux*) version_type=nonstopux ;;
14646     *)
14647         if test "$lt_cv_prog_gnu_ld" = yes; then
14648                 version_type=linux
14649         else
14650                 version_type=irix
14651         fi ;;
14652   esac
14653   need_lib_prefix=no
14654   need_version=no
14655   soname_spec='${libname}${release}${shared_ext}$major'
14656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14657   case $host_os in
14658   irix5* | nonstopux*)
14659     libsuff= shlibsuff=
14660     ;;
14661   *)
14662     case $LD in # libtool.m4 will add one of these switches to LD
14663     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14664       libsuff= shlibsuff= libmagic=32-bit;;
14665     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14666       libsuff=32 shlibsuff=N32 libmagic=N32;;
14667     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14668       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14669     *) libsuff= shlibsuff= libmagic=never-match;;
14670     esac
14671     ;;
14672   esac
14673   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14674   shlibpath_overrides_runpath=no
14675   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14676   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14677   hardcode_into_libs=yes
14678   ;;
14679
14680 # No shared lib support for Linux oldld, aout, or coff.
14681 linux*oldld* | linux*aout* | linux*coff*)
14682   dynamic_linker=no
14683   ;;
14684
14685 # This must be Linux ELF.
14686 linux*)
14687   version_type=linux
14688   need_lib_prefix=no
14689   need_version=no
14690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691   soname_spec='${libname}${release}${shared_ext}$major'
14692   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14693   shlibpath_var=LD_LIBRARY_PATH
14694   shlibpath_overrides_runpath=no
14695   # This implies no fast_install, which is unacceptable.
14696   # Some rework will be needed to allow for fast_install
14697   # before this can be enabled.
14698   hardcode_into_libs=yes
14699
14700   # Append ld.so.conf contents to the search path
14701   if test -f /etc/ld.so.conf; then
14702     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14703     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14704   fi
14705
14706   # We used to test for /lib/ld.so.1 and disable shared libraries on
14707   # powerpc, because MkLinux only supported shared libraries with the
14708   # GNU dynamic linker.  Since this was broken with cross compilers,
14709   # most powerpc-linux boxes support dynamic linking these days and
14710   # people can always --disable-shared, the test was removed, and we
14711   # assume the GNU/Linux dynamic linker is in use.
14712   dynamic_linker='GNU/Linux ld.so'
14713   ;;
14714
14715 knetbsd*-gnu)
14716   version_type=linux
14717   need_lib_prefix=no
14718   need_version=no
14719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14720   soname_spec='${libname}${release}${shared_ext}$major'
14721   shlibpath_var=LD_LIBRARY_PATH
14722   shlibpath_overrides_runpath=no
14723   hardcode_into_libs=yes
14724   dynamic_linker='GNU ld.so'
14725   ;;
14726
14727 netbsd*)
14728   version_type=sunos
14729   need_lib_prefix=no
14730   need_version=no
14731   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14733     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14734     dynamic_linker='NetBSD (a.out) ld.so'
14735   else
14736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14737     soname_spec='${libname}${release}${shared_ext}$major'
14738     dynamic_linker='NetBSD ld.elf_so'
14739   fi
14740   shlibpath_var=LD_LIBRARY_PATH
14741   shlibpath_overrides_runpath=yes
14742   hardcode_into_libs=yes
14743   ;;
14744
14745 newsos6)
14746   version_type=linux
14747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14748   shlibpath_var=LD_LIBRARY_PATH
14749   shlibpath_overrides_runpath=yes
14750   ;;
14751
14752 nto-qnx*)
14753   version_type=linux
14754   need_lib_prefix=no
14755   need_version=no
14756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757   soname_spec='${libname}${release}${shared_ext}$major'
14758   shlibpath_var=LD_LIBRARY_PATH
14759   shlibpath_overrides_runpath=yes
14760   ;;
14761
14762 openbsd*)
14763   version_type=sunos
14764   need_lib_prefix=no
14765   need_version=yes
14766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14767   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14768   shlibpath_var=LD_LIBRARY_PATH
14769   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14770     case $host_os in
14771       openbsd2.[89] | openbsd2.[89].*)
14772         shlibpath_overrides_runpath=no
14773         ;;
14774       *)
14775         shlibpath_overrides_runpath=yes
14776         ;;
14777       esac
14778   else
14779     shlibpath_overrides_runpath=yes
14780   fi
14781   ;;
14782
14783 os2*)
14784   libname_spec='$name'
14785   shrext=".dll"
14786   need_lib_prefix=no
14787   library_names_spec='$libname${shared_ext} $libname.a'
14788   dynamic_linker='OS/2 ld.exe'
14789   shlibpath_var=LIBPATH
14790   ;;
14791
14792 osf3* | osf4* | osf5*)
14793   version_type=osf
14794   need_lib_prefix=no
14795   need_version=no
14796   soname_spec='${libname}${release}${shared_ext}$major'
14797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798   shlibpath_var=LD_LIBRARY_PATH
14799   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14800   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14801   ;;
14802
14803 sco3.2v5*)
14804   version_type=osf
14805   soname_spec='${libname}${release}${shared_ext}$major'
14806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807   shlibpath_var=LD_LIBRARY_PATH
14808   ;;
14809
14810 solaris*)
14811   version_type=linux
14812   need_lib_prefix=no
14813   need_version=no
14814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815   soname_spec='${libname}${release}${shared_ext}$major'
14816   shlibpath_var=LD_LIBRARY_PATH
14817   shlibpath_overrides_runpath=yes
14818   hardcode_into_libs=yes
14819   # ldd complains unless libraries are executable
14820   postinstall_cmds='chmod +x $lib'
14821   ;;
14822
14823 sunos4*)
14824   version_type=sunos
14825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14826   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14827   shlibpath_var=LD_LIBRARY_PATH
14828   shlibpath_overrides_runpath=yes
14829   if test "$with_gnu_ld" = yes; then
14830     need_lib_prefix=no
14831   fi
14832   need_version=yes
14833   ;;
14834
14835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14836   version_type=linux
14837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14838   soname_spec='${libname}${release}${shared_ext}$major'
14839   shlibpath_var=LD_LIBRARY_PATH
14840   case $host_vendor in
14841     sni)
14842       shlibpath_overrides_runpath=no
14843       need_lib_prefix=no
14844       export_dynamic_flag_spec='${wl}-Blargedynsym'
14845       runpath_var=LD_RUN_PATH
14846       ;;
14847     siemens)
14848       need_lib_prefix=no
14849       ;;
14850     motorola)
14851       need_lib_prefix=no
14852       need_version=no
14853       shlibpath_overrides_runpath=no
14854       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14855       ;;
14856   esac
14857   ;;
14858
14859 sysv4*MP*)
14860   if test -d /usr/nec ;then
14861     version_type=linux
14862     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14863     soname_spec='$libname${shared_ext}.$major'
14864     shlibpath_var=LD_LIBRARY_PATH
14865   fi
14866   ;;
14867
14868 uts4*)
14869   version_type=linux
14870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871   soname_spec='${libname}${release}${shared_ext}$major'
14872   shlibpath_var=LD_LIBRARY_PATH
14873   ;;
14874
14875 *)
14876   dynamic_linker=no
14877   ;;
14878 esac
14879 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14880 echo "${ECHO_T}$dynamic_linker" >&6
14881 test "$dynamic_linker" = no && can_build_shared=no
14882
14883 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14885 hardcode_action_F77=
14886 if test -n "$hardcode_libdir_flag_spec_F77" || \
14887    test -n "$runpath_var F77" || \
14888    test "X$hardcode_automatic_F77"="Xyes" ; then
14889
14890   # We can hardcode non-existant directories.
14891   if test "$hardcode_direct_F77" != no &&
14892      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14893      # have to relink, otherwise we might link with an installed library
14894      # when we should be linking with a yet-to-be-installed one
14895      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14896      test "$hardcode_minus_L_F77" != no; then
14897     # Linking always hardcodes the temporary library directory.
14898     hardcode_action_F77=relink
14899   else
14900     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14901     hardcode_action_F77=immediate
14902   fi
14903 else
14904   # We cannot hardcode anything, or else we can only hardcode existing
14905   # directories.
14906   hardcode_action_F77=unsupported
14907 fi
14908 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14909 echo "${ECHO_T}$hardcode_action_F77" >&6
14910
14911 if test "$hardcode_action_F77" = relink; then
14912   # Fast installation is not supported
14913   enable_fast_install=no
14914 elif test "$shlibpath_overrides_runpath" = yes ||
14915      test "$enable_shared" = no; then
14916   # Fast installation is not necessary
14917   enable_fast_install=needless
14918 fi
14919
14920 striplib=
14921 old_striplib=
14922 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14923 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14924 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14925   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14926   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14927   echo "$as_me:$LINENO: result: yes" >&5
14928 echo "${ECHO_T}yes" >&6
14929 else
14930 # FIXME - insert some real tests, host_os isn't really good enough
14931   case $host_os in
14932    darwin*)
14933        if test -n "$STRIP" ; then
14934          striplib="$STRIP -x"
14935          echo "$as_me:$LINENO: result: yes" >&5
14936 echo "${ECHO_T}yes" >&6
14937        else
14938   echo "$as_me:$LINENO: result: no" >&5
14939 echo "${ECHO_T}no" >&6
14940 fi
14941        ;;
14942    *)
14943   echo "$as_me:$LINENO: result: no" >&5
14944 echo "${ECHO_T}no" >&6
14945     ;;
14946   esac
14947 fi
14948
14949
14950
14951 # The else clause should only fire when bootstrapping the
14952 # libtool distribution, otherwise you forgot to ship ltmain.sh
14953 # with your package, and you will get complaints that there are
14954 # no rules to generate ltmain.sh.
14955 if test -f "$ltmain"; then
14956   # See if we are running on zsh, and set the options which allow our commands through
14957   # without removal of \ escapes.
14958   if test -n "${ZSH_VERSION+set}" ; then
14959     setopt NO_GLOB_SUBST
14960   fi
14961   # Now quote all the things that may contain metacharacters while being
14962   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14963   # variables and quote the copies for generation of the libtool script.
14964   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14965     SED SHELL STRIP \
14966     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14967     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14968     deplibs_check_method reload_flag reload_cmds need_locks \
14969     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14970     lt_cv_sys_global_symbol_to_c_name_address \
14971     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14972     old_postinstall_cmds old_postuninstall_cmds \
14973     compiler_F77 \
14974     CC_F77 \
14975     LD_F77 \
14976     lt_prog_compiler_wl_F77 \
14977     lt_prog_compiler_pic_F77 \
14978     lt_prog_compiler_static_F77 \
14979     lt_prog_compiler_no_builtin_flag_F77 \
14980     export_dynamic_flag_spec_F77 \
14981     thread_safe_flag_spec_F77 \
14982     whole_archive_flag_spec_F77 \
14983     enable_shared_with_static_runtimes_F77 \
14984     old_archive_cmds_F77 \
14985     old_archive_from_new_cmds_F77 \
14986     predep_objects_F77 \
14987     postdep_objects_F77 \
14988     predeps_F77 \
14989     postdeps_F77 \
14990     compiler_lib_search_path_F77 \
14991     archive_cmds_F77 \
14992     archive_expsym_cmds_F77 \
14993     postinstall_cmds_F77 \
14994     postuninstall_cmds_F77 \
14995     old_archive_from_expsyms_cmds_F77 \
14996     allow_undefined_flag_F77 \
14997     no_undefined_flag_F77 \
14998     export_symbols_cmds_F77 \
14999     hardcode_libdir_flag_spec_F77 \
15000     hardcode_libdir_flag_spec_ld_F77 \
15001     hardcode_libdir_separator_F77 \
15002     hardcode_automatic_F77 \
15003     module_cmds_F77 \
15004     module_expsym_cmds_F77 \
15005     lt_cv_prog_compiler_c_o_F77 \
15006     exclude_expsyms_F77 \
15007     include_expsyms_F77; do
15008
15009     case $var in
15010     old_archive_cmds_F77 | \
15011     old_archive_from_new_cmds_F77 | \
15012     archive_cmds_F77 | \
15013     archive_expsym_cmds_F77 | \
15014     module_cmds_F77 | \
15015     module_expsym_cmds_F77 | \
15016     old_archive_from_expsyms_cmds_F77 | \
15017     export_symbols_cmds_F77 | \
15018     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15019     postinstall_cmds | postuninstall_cmds | \
15020     old_postinstall_cmds | old_postuninstall_cmds | \
15021     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15022       # Double-quote double-evaled strings.
15023       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15024       ;;
15025     *)
15026       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15027       ;;
15028     esac
15029   done
15030
15031   case $lt_echo in
15032   *'\$0 --fallback-echo"')
15033     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15034     ;;
15035   esac
15036
15037 cfgfile="$ofile"
15038
15039   cat <<__EOF__ >> "$cfgfile"
15040 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15041
15042 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15043
15044 # Shell to use when invoking shell scripts.
15045 SHELL=$lt_SHELL
15046
15047 # Whether or not to build shared libraries.
15048 build_libtool_libs=$enable_shared
15049
15050 # Whether or not to build static libraries.
15051 build_old_libs=$enable_static
15052
15053 # Whether or not to add -lc for building shared libraries.
15054 build_libtool_need_lc=$archive_cmds_need_lc_F77
15055
15056 # Whether or not to disallow shared libs when runtime libs are static
15057 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15058
15059 # Whether or not to optimize for fast installation.
15060 fast_install=$enable_fast_install
15061
15062 # The host system.
15063 host_alias=$host_alias
15064 host=$host
15065
15066 # An echo program that does not interpret backslashes.
15067 echo=$lt_echo
15068
15069 # The archiver.
15070 AR=$lt_AR
15071 AR_FLAGS=$lt_AR_FLAGS
15072
15073 # A C compiler.
15074 LTCC=$lt_LTCC
15075
15076 # A language-specific compiler.
15077 CC=$lt_compiler_F77
15078
15079 # Is the compiler the GNU C compiler?
15080 with_gcc=$GCC_F77
15081
15082 # An ERE matcher.
15083 EGREP=$lt_EGREP
15084
15085 # The linker used to build libraries.
15086 LD=$lt_LD_F77
15087
15088 # Whether we need hard or soft links.
15089 LN_S=$lt_LN_S
15090
15091 # A BSD-compatible nm program.
15092 NM=$lt_NM
15093
15094 # A symbol stripping program
15095 STRIP=$lt_STRIP
15096
15097 # Used to examine libraries when file_magic_cmd begins "file"
15098 MAGIC_CMD=$MAGIC_CMD
15099
15100 # Used on cygwin: DLL creation program.
15101 DLLTOOL="$DLLTOOL"
15102
15103 # Used on cygwin: object dumper.
15104 OBJDUMP="$OBJDUMP"
15105
15106 # Used on cygwin: assembler.
15107 AS="$AS"
15108
15109 # The name of the directory that contains temporary libtool files.
15110 objdir=$objdir
15111
15112 # How to create reloadable object files.
15113 reload_flag=$lt_reload_flag
15114 reload_cmds=$lt_reload_cmds
15115
15116 # How to pass a linker flag through the compiler.
15117 wl=$lt_lt_prog_compiler_wl_F77
15118
15119 # Object file suffix (normally "o").
15120 objext="$ac_objext"
15121
15122 # Old archive suffix (normally "a").
15123 libext="$libext"
15124
15125 # Shared library suffix (normally ".so").
15126 shrext='$shrext'
15127
15128 # Executable file suffix (normally "").
15129 exeext="$exeext"
15130
15131 # Additional compiler flags for building library objects.
15132 pic_flag=$lt_lt_prog_compiler_pic_F77
15133 pic_mode=$pic_mode
15134
15135 # What is the maximum length of a command?
15136 max_cmd_len=$lt_cv_sys_max_cmd_len
15137
15138 # Does compiler simultaneously support -c and -o options?
15139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15140
15141 # Must we lock files when doing compilation ?
15142 need_locks=$lt_need_locks
15143
15144 # Do we need the lib prefix for modules?
15145 need_lib_prefix=$need_lib_prefix
15146
15147 # Do we need a version for libraries?
15148 need_version=$need_version
15149
15150 # Whether dlopen is supported.
15151 dlopen_support=$enable_dlopen
15152
15153 # Whether dlopen of programs is supported.
15154 dlopen_self=$enable_dlopen_self
15155
15156 # Whether dlopen of statically linked programs is supported.
15157 dlopen_self_static=$enable_dlopen_self_static
15158
15159 # Compiler flag to prevent dynamic linking.
15160 link_static_flag=$lt_lt_prog_compiler_static_F77
15161
15162 # Compiler flag to turn off builtin functions.
15163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15164
15165 # Compiler flag to allow reflexive dlopens.
15166 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15167
15168 # Compiler flag to generate shared objects directly from archives.
15169 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15170
15171 # Compiler flag to generate thread-safe objects.
15172 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15173
15174 # Library versioning type.
15175 version_type=$version_type
15176
15177 # Format of library name prefix.
15178 libname_spec=$lt_libname_spec
15179
15180 # List of archive names.  First name is the real one, the rest are links.
15181 # The last name is the one that the linker finds with -lNAME.
15182 library_names_spec=$lt_library_names_spec
15183
15184 # The coded name of the library, if different from the real name.
15185 soname_spec=$lt_soname_spec
15186
15187 # Commands used to build and install an old-style archive.
15188 RANLIB=$lt_RANLIB
15189 old_archive_cmds=$lt_old_archive_cmds_F77
15190 old_postinstall_cmds=$lt_old_postinstall_cmds
15191 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15192
15193 # Create an old-style archive from a shared archive.
15194 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15195
15196 # Create a temporary old-style archive to link instead of a shared archive.
15197 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15198
15199 # Commands used to build and install a shared archive.
15200 archive_cmds=$lt_archive_cmds_F77
15201 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15202 postinstall_cmds=$lt_postinstall_cmds
15203 postuninstall_cmds=$lt_postuninstall_cmds
15204
15205 # Commands used to build a loadable module (assumed same as above if empty)
15206 module_cmds=$lt_module_cmds_F77
15207 module_expsym_cmds=$lt_module_expsym_cmds_F77
15208
15209 # Commands to strip libraries.
15210 old_striplib=$lt_old_striplib
15211 striplib=$lt_striplib
15212
15213 # Dependencies to place before the objects being linked to create a
15214 # shared library.
15215 predep_objects=$lt_predep_objects_F77
15216
15217 # Dependencies to place after the objects being linked to create a
15218 # shared library.
15219 postdep_objects=$lt_postdep_objects_F77
15220
15221 # Dependencies to place before the objects being linked to create a
15222 # shared library.
15223 predeps=$lt_predeps_F77
15224
15225 # Dependencies to place after the objects being linked to create a
15226 # shared library.
15227 postdeps=$lt_postdeps_F77
15228
15229 # The library search path used internally by the compiler when linking
15230 # a shared library.
15231 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15232
15233 # Method to check whether dependent libraries are shared objects.
15234 deplibs_check_method=$lt_deplibs_check_method
15235
15236 # Command to use when deplibs_check_method == file_magic.
15237 file_magic_cmd=$lt_file_magic_cmd
15238
15239 # Flag that allows shared libraries with undefined symbols to be built.
15240 allow_undefined_flag=$lt_allow_undefined_flag_F77
15241
15242 # Flag that forces no undefined symbols.
15243 no_undefined_flag=$lt_no_undefined_flag_F77
15244
15245 # Commands used to finish a libtool library installation in a directory.
15246 finish_cmds=$lt_finish_cmds
15247
15248 # Same as above, but a single script fragment to be evaled but not shown.
15249 finish_eval=$lt_finish_eval
15250
15251 # Take the output of nm and produce a listing of raw symbols and C names.
15252 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15253
15254 # Transform the output of nm in a proper C declaration
15255 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15256
15257 # Transform the output of nm in a C name address pair
15258 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15259
15260 # This is the shared library runtime path variable.
15261 runpath_var=$runpath_var
15262
15263 # This is the shared library path variable.
15264 shlibpath_var=$shlibpath_var
15265
15266 # Is shlibpath searched before the hard-coded library search path?
15267 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15268
15269 # How to hardcode a shared library path into an executable.
15270 hardcode_action=$hardcode_action_F77
15271
15272 # Whether we should hardcode library paths into libraries.
15273 hardcode_into_libs=$hardcode_into_libs
15274
15275 # Flag to hardcode \$libdir into a binary during linking.
15276 # This must work even if \$libdir does not exist.
15277 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15278
15279 # If ld is used when linking, flag to hardcode \$libdir into
15280 # a binary during linking. This must work even if \$libdir does
15281 # not exist.
15282 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15283
15284 # Whether we need a single -rpath flag with a separated argument.
15285 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15286
15287 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15288 # resulting binary.
15289 hardcode_direct=$hardcode_direct_F77
15290
15291 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15292 # resulting binary.
15293 hardcode_minus_L=$hardcode_minus_L_F77
15294
15295 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15296 # the resulting binary.
15297 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15298
15299 # Set to yes if building a shared library automatically hardcodes DIR into the library
15300 # and all subsequent libraries and executables linked against it.
15301 hardcode_automatic=$hardcode_automatic_F77
15302
15303 # Variables whose values should be saved in libtool wrapper scripts and
15304 # restored at relink time.
15305 variables_saved_for_relink="$variables_saved_for_relink"
15306
15307 # Whether libtool must link a program against all its dependency libraries.
15308 link_all_deplibs=$link_all_deplibs_F77
15309
15310 # Compile-time system search path for libraries
15311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15312
15313 # Run-time system search path for libraries
15314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15315
15316 # Fix the shell variable \$srcfile for the compiler.
15317 fix_srcfile_path="$fix_srcfile_path_F77"
15318
15319 # Set to yes if exported symbols are required.
15320 always_export_symbols=$always_export_symbols_F77
15321
15322 # The commands to list exported symbols.
15323 export_symbols_cmds=$lt_export_symbols_cmds_F77
15324
15325 # The commands to extract the exported symbol list from a shared archive.
15326 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15327
15328 # Symbols that should not be listed in the preloaded symbols.
15329 exclude_expsyms=$lt_exclude_expsyms_F77
15330
15331 # Symbols that must always be exported.
15332 include_expsyms=$lt_include_expsyms_F77
15333
15334 # ### END LIBTOOL TAG CONFIG: $tagname
15335
15336 __EOF__
15337
15338
15339 else
15340   # If there is no Makefile yet, we rely on a make rule to execute
15341   # `config.status --recheck' to rerun these tests and create the
15342   # libtool script then.
15343   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15344   if test -f "$ltmain_in"; then
15345     test -f Makefile && make "$ltmain"
15346   fi
15347 fi
15348
15349
15350 ac_ext=c
15351 ac_cpp='$CPP $CPPFLAGS'
15352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15355
15356 CC="$lt_save_CC"
15357
15358         else
15359           tagname=""
15360         fi
15361         ;;
15362
15363       GCJ)
15364         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15365
15366
15367
15368 # Source file extension for Java test sources.
15369 ac_ext=java
15370
15371 # Object file extension for compiled Java test sources.
15372 objext=o
15373 objext_GCJ=$objext
15374
15375 # Code to be used in simple compile tests
15376 lt_simple_compile_test_code="class foo {}\n"
15377
15378 # Code to be used in simple link tests
15379 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15380
15381 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15382
15383 # If no C compiler was specified, use CC.
15384 LTCC=${LTCC-"$CC"}
15385
15386 # Allow CC to be a program name with arguments.
15387 compiler=$CC
15388
15389
15390 # Allow CC to be a program name with arguments.
15391 lt_save_CC="$CC"
15392 CC=${GCJ-"gcj"}
15393 compiler=$CC
15394 compiler_GCJ=$CC
15395
15396 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15397 archive_cmds_need_lc_GCJ=no
15398
15399
15400 lt_prog_compiler_no_builtin_flag_GCJ=
15401
15402 if test "$GCC" = yes; then
15403   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15404
15405
15406 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15407 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15409   echo $ECHO_N "(cached) $ECHO_C" >&6
15410 else
15411   lt_cv_prog_compiler_rtti_exceptions=no
15412   ac_outfile=conftest.$ac_objext
15413    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15414    lt_compiler_flag="-fno-rtti -fno-exceptions"
15415    # Insert the option either (1) after the last *FLAGS variable, or
15416    # (2) before a word containing "conftest.", or (3) at the end.
15417    # Note that $ac_compile itself does not contain backslashes and begins
15418    # with a dollar sign (not a hyphen), so the echo should work correctly.
15419    # The option is referenced via a variable to avoid confusing sed.
15420    lt_compile=`echo "$ac_compile" | $SED \
15421    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15423    -e 's:$: $lt_compiler_flag:'`
15424    (eval echo "\"\$as_me:15424: $lt_compile\"" >&5)
15425    (eval "$lt_compile" 2>conftest.err)
15426    ac_status=$?
15427    cat conftest.err >&5
15428    echo "$as_me:15428: \$? = $ac_status" >&5
15429    if (exit $ac_status) && test -s "$ac_outfile"; then
15430      # The compiler can only warn and ignore the option if not recognized
15431      # So say no if there are warnings
15432      if test ! -s conftest.err; then
15433        lt_cv_prog_compiler_rtti_exceptions=yes
15434      fi
15435    fi
15436    $rm conftest*
15437
15438 fi
15439 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15440 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15441
15442 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15443     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15444 else
15445     :
15446 fi
15447
15448 fi
15449
15450 lt_prog_compiler_wl_GCJ=
15451 lt_prog_compiler_pic_GCJ=
15452 lt_prog_compiler_static_GCJ=
15453
15454 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15455 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15456
15457   if test "$GCC" = yes; then
15458     lt_prog_compiler_wl_GCJ='-Wl,'
15459     lt_prog_compiler_static_GCJ='-static'
15460
15461     case $host_os in
15462       aix*)
15463       # All AIX code is PIC.
15464       if test "$host_cpu" = ia64; then
15465         # AIX 5 now supports IA64 processor
15466         lt_prog_compiler_static_GCJ='-Bstatic'
15467       fi
15468       ;;
15469
15470     amigaos*)
15471       # FIXME: we need at least 68020 code to build shared libraries, but
15472       # adding the `-m68020' flag to GCC prevents building anything better,
15473       # like `-m68040'.
15474       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15475       ;;
15476
15477     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15478       # PIC is the default for these OSes.
15479       ;;
15480
15481     mingw* | pw32* | os2*)
15482       # This hack is so that the source file can tell whether it is being
15483       # built for inclusion in a dll (and should export symbols for example).
15484       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15485       ;;
15486
15487     darwin* | rhapsody*)
15488       # PIC is the default on this platform
15489       # Common symbols not allowed in MH_DYLIB files
15490       lt_prog_compiler_pic_GCJ='-fno-common'
15491       ;;
15492
15493     msdosdjgpp*)
15494       # Just because we use GCC doesn't mean we suddenly get shared libraries
15495       # on systems that don't support them.
15496       lt_prog_compiler_can_build_shared_GCJ=no
15497       enable_shared=no
15498       ;;
15499
15500     sysv4*MP*)
15501       if test -d /usr/nec; then
15502         lt_prog_compiler_pic_GCJ=-Kconform_pic
15503       fi
15504       ;;
15505
15506     hpux*)
15507       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15508       # not for PA HP-UX.
15509       case "$host_cpu" in
15510       hppa*64*|ia64*)
15511         # +Z the default
15512         ;;
15513       *)
15514         lt_prog_compiler_pic_GCJ='-fPIC'
15515         ;;
15516       esac
15517       ;;
15518
15519     *)
15520       lt_prog_compiler_pic_GCJ='-fPIC'
15521       ;;
15522     esac
15523   else
15524     # PORTME Check for flag to pass linker flags through the system compiler.
15525     case $host_os in
15526     aix*)
15527       lt_prog_compiler_wl_GCJ='-Wl,'
15528       if test "$host_cpu" = ia64; then
15529         # AIX 5 now supports IA64 processor
15530         lt_prog_compiler_static_GCJ='-Bstatic'
15531       else
15532         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15533       fi
15534       ;;
15535
15536     mingw* | pw32* | os2*)
15537       # This hack is so that the source file can tell whether it is being
15538       # built for inclusion in a dll (and should export symbols for example).
15539       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15540       ;;
15541
15542     hpux9* | hpux10* | hpux11*)
15543       lt_prog_compiler_wl_GCJ='-Wl,'
15544       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15545       # not for PA HP-UX.
15546       case "$host_cpu" in
15547       hppa*64*|ia64*)
15548         # +Z the default
15549         ;;
15550       *)
15551         lt_prog_compiler_pic_GCJ='+Z'
15552         ;;
15553       esac
15554       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15555       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15556       ;;
15557
15558     irix5* | irix6* | nonstopux*)
15559       lt_prog_compiler_wl_GCJ='-Wl,'
15560       # PIC (with -KPIC) is the default.
15561       lt_prog_compiler_static_GCJ='-non_shared'
15562       ;;
15563
15564     newsos6)
15565       lt_prog_compiler_pic_GCJ='-KPIC'
15566       lt_prog_compiler_static_GCJ='-Bstatic'
15567       ;;
15568
15569     linux*)
15570       case $CC in
15571       icc* | ecc*)
15572         lt_prog_compiler_wl_GCJ='-Wl,'
15573         lt_prog_compiler_pic_GCJ='-KPIC'
15574         lt_prog_compiler_static_GCJ='-static'
15575         ;;
15576       ccc*)
15577         lt_prog_compiler_wl_GCJ='-Wl,'
15578         # All Alpha code is PIC.
15579         lt_prog_compiler_static_GCJ='-non_shared'
15580         ;;
15581       esac
15582       ;;
15583
15584     osf3* | osf4* | osf5*)
15585       lt_prog_compiler_wl_GCJ='-Wl,'
15586       # All OSF/1 code is PIC.
15587       lt_prog_compiler_static_GCJ='-non_shared'
15588       ;;
15589
15590     sco3.2v5*)
15591       lt_prog_compiler_pic_GCJ='-Kpic'
15592       lt_prog_compiler_static_GCJ='-dn'
15593       ;;
15594
15595     solaris*)
15596       lt_prog_compiler_wl_GCJ='-Wl,'
15597       lt_prog_compiler_pic_GCJ='-KPIC'
15598       lt_prog_compiler_static_GCJ='-Bstatic'
15599       ;;
15600
15601     sunos4*)
15602       lt_prog_compiler_wl_GCJ='-Qoption ld '
15603       lt_prog_compiler_pic_GCJ='-PIC'
15604       lt_prog_compiler_static_GCJ='-Bstatic'
15605       ;;
15606
15607     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15608       lt_prog_compiler_wl_GCJ='-Wl,'
15609       lt_prog_compiler_pic_GCJ='-KPIC'
15610       lt_prog_compiler_static_GCJ='-Bstatic'
15611       ;;
15612
15613     sysv4*MP*)
15614       if test -d /usr/nec ;then
15615         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15616         lt_prog_compiler_static_GCJ='-Bstatic'
15617       fi
15618       ;;
15619
15620     uts4*)
15621       lt_prog_compiler_pic_GCJ='-pic'
15622       lt_prog_compiler_static_GCJ='-Bstatic'
15623       ;;
15624
15625     *)
15626       lt_prog_compiler_can_build_shared_GCJ=no
15627       ;;
15628     esac
15629   fi
15630
15631 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15632 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15633
15634 #
15635 # Check to make sure the PIC flag actually works.
15636 #
15637 if test -n "$lt_prog_compiler_pic_GCJ"; then
15638
15639 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15640 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15641 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15642   echo $ECHO_N "(cached) $ECHO_C" >&6
15643 else
15644   lt_prog_compiler_pic_works_GCJ=no
15645   ac_outfile=conftest.$ac_objext
15646    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15647    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15648    # Insert the option either (1) after the last *FLAGS variable, or
15649    # (2) before a word containing "conftest.", or (3) at the end.
15650    # Note that $ac_compile itself does not contain backslashes and begins
15651    # with a dollar sign (not a hyphen), so the echo should work correctly.
15652    # The option is referenced via a variable to avoid confusing sed.
15653    lt_compile=`echo "$ac_compile" | $SED \
15654    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15655    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15656    -e 's:$: $lt_compiler_flag:'`
15657    (eval echo "\"\$as_me:15657: $lt_compile\"" >&5)
15658    (eval "$lt_compile" 2>conftest.err)
15659    ac_status=$?
15660    cat conftest.err >&5
15661    echo "$as_me:15661: \$? = $ac_status" >&5
15662    if (exit $ac_status) && test -s "$ac_outfile"; then
15663      # The compiler can only warn and ignore the option if not recognized
15664      # So say no if there are warnings
15665      if test ! -s conftest.err; then
15666        lt_prog_compiler_pic_works_GCJ=yes
15667      fi
15668    fi
15669    $rm conftest*
15670
15671 fi
15672 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15673 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15674
15675 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15676     case $lt_prog_compiler_pic_GCJ in
15677      "" | " "*) ;;
15678      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15679      esac
15680 else
15681     lt_prog_compiler_pic_GCJ=
15682      lt_prog_compiler_can_build_shared_GCJ=no
15683 fi
15684
15685 fi
15686 case "$host_os" in
15687   # For platforms which do not support PIC, -DPIC is meaningless:
15688   *djgpp*)
15689     lt_prog_compiler_pic_GCJ=
15690     ;;
15691   *)
15692     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15693     ;;
15694 esac
15695
15696 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15697 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15698 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701   lt_cv_prog_compiler_c_o_GCJ=no
15702    $rm -r conftest 2>/dev/null
15703    mkdir conftest
15704    cd conftest
15705    mkdir out
15706    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15707
15708    lt_compiler_flag="-o out/conftest2.$ac_objext"
15709    # Insert the option either (1) after the last *FLAGS variable, or
15710    # (2) before a word containing "conftest.", or (3) at the end.
15711    # Note that $ac_compile itself does not contain backslashes and begins
15712    # with a dollar sign (not a hyphen), so the echo should work correctly.
15713    lt_compile=`echo "$ac_compile" | $SED \
15714    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15715    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15716    -e 's:$: $lt_compiler_flag:'`
15717    (eval echo "\"\$as_me:15717: $lt_compile\"" >&5)
15718    (eval "$lt_compile" 2>out/conftest.err)
15719    ac_status=$?
15720    cat out/conftest.err >&5
15721    echo "$as_me:15721: \$? = $ac_status" >&5
15722    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15723    then
15724      # The compiler can only warn and ignore the option if not recognized
15725      # So say no if there are warnings
15726      if test ! -s out/conftest.err; then
15727        lt_cv_prog_compiler_c_o_GCJ=yes
15728      fi
15729    fi
15730    chmod u+w .
15731    $rm conftest*
15732    # SGI C++ compiler will create directory out/ii_files/ for
15733    # template instantiation
15734    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15735    $rm out/* && rmdir out
15736    cd ..
15737    rmdir conftest
15738    $rm conftest*
15739
15740 fi
15741 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15742 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15743
15744
15745 hard_links="nottested"
15746 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15747   # do not overwrite the value of need_locks provided by the user
15748   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15749 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15750   hard_links=yes
15751   $rm conftest*
15752   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15753   touch conftest.a
15754   ln conftest.a conftest.b 2>&5 || hard_links=no
15755   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15756   echo "$as_me:$LINENO: result: $hard_links" >&5
15757 echo "${ECHO_T}$hard_links" >&6
15758   if test "$hard_links" = no; then
15759     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15760 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15761     need_locks=warn
15762   fi
15763 else
15764   need_locks=no
15765 fi
15766
15767 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15768 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15769
15770   runpath_var=
15771   allow_undefined_flag_GCJ=
15772   enable_shared_with_static_runtimes_GCJ=no
15773   archive_cmds_GCJ=
15774   archive_expsym_cmds_GCJ=
15775   old_archive_From_new_cmds_GCJ=
15776   old_archive_from_expsyms_cmds_GCJ=
15777   export_dynamic_flag_spec_GCJ=
15778   whole_archive_flag_spec_GCJ=
15779   thread_safe_flag_spec_GCJ=
15780   hardcode_libdir_flag_spec_GCJ=
15781   hardcode_libdir_flag_spec_ld_GCJ=
15782   hardcode_libdir_separator_GCJ=
15783   hardcode_direct_GCJ=no
15784   hardcode_minus_L_GCJ=no
15785   hardcode_shlibpath_var_GCJ=unsupported
15786   link_all_deplibs_GCJ=unknown
15787   hardcode_automatic_GCJ=no
15788   module_cmds_GCJ=
15789   module_expsym_cmds_GCJ=
15790   always_export_symbols_GCJ=no
15791   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15792   # include_expsyms should be a list of space-separated symbols to be *always*
15793   # included in the symbol list
15794   include_expsyms_GCJ=
15795   # exclude_expsyms can be an extended regexp of symbols to exclude
15796   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15797   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15798   # as well as any symbol that contains `d'.
15799   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15800   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15801   # platforms (ab)use it in PIC code, but their linkers get confused if
15802   # the symbol is explicitly referenced.  Since portable code cannot
15803   # rely on this symbol name, it's probably fine to never include it in
15804   # preloaded symbol tables.
15805   extract_expsyms_cmds=
15806
15807   case $host_os in
15808   cygwin* | mingw* | pw32*)
15809     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15810     # When not using gcc, we currently assume that we are using
15811     # Microsoft Visual C++.
15812     if test "$GCC" != yes; then
15813       with_gnu_ld=no
15814     fi
15815     ;;
15816   openbsd*)
15817     with_gnu_ld=no
15818     ;;
15819   esac
15820
15821   ld_shlibs_GCJ=yes
15822   if test "$with_gnu_ld" = yes; then
15823     # If archive_cmds runs LD, not CC, wlarc should be empty
15824     wlarc='${wl}'
15825
15826     # See if GNU ld supports shared libraries.
15827     case $host_os in
15828     aix3* | aix4* | aix5*)
15829       # On AIX/PPC, the GNU linker is very broken
15830       if test "$host_cpu" != ia64; then
15831         ld_shlibs_GCJ=no
15832         cat <<EOF 1>&2
15833
15834 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15835 *** to be unable to reliably create shared libraries on AIX.
15836 *** Therefore, libtool is disabling shared libraries support.  If you
15837 *** really care for shared libraries, you may want to modify your PATH
15838 *** so that a non-GNU linker is found, and then restart.
15839
15840 EOF
15841       fi
15842       ;;
15843
15844     amigaos*)
15845       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)'
15846       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15847       hardcode_minus_L_GCJ=yes
15848
15849       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15850       # that the semantics of dynamic libraries on AmigaOS, at least up
15851       # to version 4, is to share data among multiple programs linked
15852       # with the same dynamic library.  Since this doesn't match the
15853       # behavior of shared libraries on other platforms, we can't use
15854       # them.
15855       ld_shlibs_GCJ=no
15856       ;;
15857
15858     beos*)
15859       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15860         allow_undefined_flag_GCJ=unsupported
15861         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15862         # support --undefined.  This deserves some investigation.  FIXME
15863         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15864       else
15865         ld_shlibs_GCJ=no
15866       fi
15867       ;;
15868
15869     cygwin* | mingw* | pw32*)
15870       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15871       # as there is no search path for DLLs.
15872       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15873       allow_undefined_flag_GCJ=unsupported
15874       always_export_symbols_GCJ=no
15875       enable_shared_with_static_runtimes_GCJ=yes
15876       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15877
15878       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15879         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15880         # If the export-symbols file already is a .def file (1st line
15881         # is EXPORTS), use it as is; otherwise, prepend...
15882         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15883           cp $export_symbols $output_objdir/$soname.def;
15884         else
15885           echo EXPORTS > $output_objdir/$soname.def;
15886           cat $export_symbols >> $output_objdir/$soname.def;
15887         fi~
15888         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15889       else
15890         ld_shlibs=no
15891       fi
15892       ;;
15893
15894     netbsd* | knetbsd*-gnu)
15895       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15896         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15897         wlarc=
15898       else
15899         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15900         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15901       fi
15902       ;;
15903
15904     solaris* | sysv5*)
15905       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15906         ld_shlibs_GCJ=no
15907         cat <<EOF 1>&2
15908
15909 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15910 *** create shared libraries on Solaris systems.  Therefore, libtool
15911 *** is disabling shared libraries support.  We urge you to upgrade GNU
15912 *** binutils to release 2.9.1 or newer.  Another option is to modify
15913 *** your PATH or compiler configuration so that the native linker is
15914 *** used, and then restart.
15915
15916 EOF
15917       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15918         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15919         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15920       else
15921         ld_shlibs_GCJ=no
15922       fi
15923       ;;
15924
15925     sunos4*)
15926       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15927       wlarc=
15928       hardcode_direct_GCJ=yes
15929       hardcode_shlibpath_var_GCJ=no
15930       ;;
15931
15932   linux*)
15933     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15934         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15935         archive_cmds_GCJ="$tmp_archive_cmds"
15936       supports_anon_versioning=no
15937       case `$LD -v 2>/dev/null` in
15938         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15939         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15940         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15941         *\ 2.11.*) ;; # other 2.11 versions
15942         *) supports_anon_versioning=yes ;;
15943       esac
15944       if test $supports_anon_versioning = yes; then
15945         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15947 $echo "local: *; };" >> $output_objdir/$libname.ver~
15948         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15949       else
15950         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15951       fi
15952     else
15953       ld_shlibs_GCJ=no
15954     fi
15955     ;;
15956
15957     *)
15958       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15959         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15960         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15961       else
15962         ld_shlibs_GCJ=no
15963       fi
15964       ;;
15965     esac
15966
15967     if test "$ld_shlibs_GCJ" = yes; then
15968       runpath_var=LD_RUN_PATH
15969       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15970       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15971       # ancient GNU ld didn't support --whole-archive et. al.
15972       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15973         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15974       else
15975         whole_archive_flag_spec_GCJ=
15976       fi
15977     fi
15978   else
15979     # PORTME fill in a description of your system's linker (not GNU ld)
15980     case $host_os in
15981     aix3*)
15982       allow_undefined_flag_GCJ=unsupported
15983       always_export_symbols_GCJ=yes
15984       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'
15985       # Note: this linker hardcodes the directories in LIBPATH if there
15986       # are no directories specified by -L.
15987       hardcode_minus_L_GCJ=yes
15988       if test "$GCC" = yes && test -z "$link_static_flag"; then
15989         # Neither direct hardcoding nor static linking is supported with a
15990         # broken collect2.
15991         hardcode_direct_GCJ=unsupported
15992       fi
15993       ;;
15994
15995     aix4* | aix5*)
15996       if test "$host_cpu" = ia64; then
15997         # On IA64, the linker does run time linking by default, so we don't
15998         # have to do anything special.
15999         aix_use_runtimelinking=no
16000         exp_sym_flag='-Bexport'
16001         no_entry_flag=""
16002       else
16003         # If we're using GNU nm, then we don't want the "-C" option.
16004         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16005         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16006           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'
16007         else
16008           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'
16009         fi
16010         aix_use_runtimelinking=no
16011
16012         # Test if we are trying to use run time linking or normal
16013         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16014         # need to do runtime linking.
16015         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16016           for ld_flag in $LDFLAGS; do
16017           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16018             aix_use_runtimelinking=yes
16019             break
16020           fi
16021           done
16022         esac
16023
16024         exp_sym_flag='-bexport'
16025         no_entry_flag='-bnoentry'
16026       fi
16027
16028       # When large executables or shared objects are built, AIX ld can
16029       # have problems creating the table of contents.  If linking a library
16030       # or program results in "error TOC overflow" add -mminimal-toc to
16031       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16032       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16033
16034       archive_cmds_GCJ=''
16035       hardcode_direct_GCJ=yes
16036       hardcode_libdir_separator_GCJ=':'
16037       link_all_deplibs_GCJ=yes
16038
16039       if test "$GCC" = yes; then
16040         case $host_os in aix4.012|aix4.012.*)
16041         # We only want to do this on AIX 4.2 and lower, the check
16042         # below for broken collect2 doesn't work under 4.3+
16043           collect2name=`${CC} -print-prog-name=collect2`
16044           if test -f "$collect2name" && \
16045            strings "$collect2name" | grep resolve_lib_name >/dev/null
16046           then
16047           # We have reworked collect2
16048           hardcode_direct_GCJ=yes
16049           else
16050           # We have old collect2
16051           hardcode_direct_GCJ=unsupported
16052           # It fails to find uninstalled libraries when the uninstalled
16053           # path is not listed in the libpath.  Setting hardcode_minus_L
16054           # to unsupported forces relinking
16055           hardcode_minus_L_GCJ=yes
16056           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16057           hardcode_libdir_separator_GCJ=
16058           fi
16059         esac
16060         shared_flag='-shared'
16061       else
16062         # not using gcc
16063         if test "$host_cpu" = ia64; then
16064         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16065         # chokes on -Wl,-G. The following line is correct:
16066           shared_flag='-G'
16067         else
16068         if test "$aix_use_runtimelinking" = yes; then
16069             shared_flag='${wl}-G'
16070           else
16071             shared_flag='${wl}-bM:SRE'
16072         fi
16073         fi
16074       fi
16075
16076       # It seems that -bexpall does not export symbols beginning with
16077       # underscore (_), so it is better to generate a list of symbols to export.
16078       always_export_symbols_GCJ=yes
16079       if test "$aix_use_runtimelinking" = yes; then
16080         # Warning - without using the other runtime loading flags (-brtl),
16081         # -berok will link without error, but may produce a broken library.
16082         allow_undefined_flag_GCJ='-berok'
16083        # Determine the default libpath from the value encoded in an empty executable.
16084        cat >conftest.$ac_ext <<_ACEOF
16085 /* confdefs.h.  */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h.  */
16090
16091 int
16092 main ()
16093 {
16094
16095   ;
16096   return 0;
16097 }
16098 _ACEOF
16099 rm -f conftest.$ac_objext conftest$ac_exeext
16100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16101   (eval $ac_link) 2>conftest.er1
16102   ac_status=$?
16103   grep -v '^ *+' conftest.er1 >conftest.err
16104   rm -f conftest.er1
16105   cat conftest.err >&5
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); } &&
16108          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110   (eval $ac_try) 2>&5
16111   ac_status=$?
16112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113   (exit $ac_status); }; } &&
16114          { ac_try='test -s conftest$ac_exeext'
16115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116   (eval $ac_try) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; }; then
16120
16121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16122 }'`
16123 # Check for a 64-bit object if we didn't find anything.
16124 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; }
16125 }'`; fi
16126 else
16127   echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16129
16130 fi
16131 rm -f conftest.err conftest.$ac_objext \
16132       conftest$ac_exeext conftest.$ac_ext
16133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16134
16135        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16136         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"
16137        else
16138         if test "$host_cpu" = ia64; then
16139           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16140           allow_undefined_flag_GCJ="-z nodefs"
16141           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"
16142         else
16143          # Determine the default libpath from the value encoded in an empty executable.
16144          cat >conftest.$ac_ext <<_ACEOF
16145 /* confdefs.h.  */
16146 _ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h.  */
16150
16151 int
16152 main ()
16153 {
16154
16155   ;
16156   return 0;
16157 }
16158 _ACEOF
16159 rm -f conftest.$ac_objext conftest$ac_exeext
16160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16161   (eval $ac_link) 2>conftest.er1
16162   ac_status=$?
16163   grep -v '^ *+' conftest.er1 >conftest.err
16164   rm -f conftest.er1
16165   cat conftest.err >&5
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } &&
16168          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170   (eval $ac_try) 2>&5
16171   ac_status=$?
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); }; } &&
16174          { ac_try='test -s conftest$ac_exeext'
16175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176   (eval $ac_try) 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); }; }; then
16180
16181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16182 }'`
16183 # Check for a 64-bit object if we didn't find anything.
16184 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; }
16185 }'`; fi
16186 else
16187   echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16189
16190 fi
16191 rm -f conftest.err conftest.$ac_objext \
16192       conftest$ac_exeext conftest.$ac_ext
16193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16194
16195          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16196           # Warning - without using the other run time loading flags,
16197           # -berok will link without error, but may produce a broken library.
16198           no_undefined_flag_GCJ=' ${wl}-bernotok'
16199           allow_undefined_flag_GCJ=' ${wl}-berok'
16200           # -bexpall does not export symbols beginning with underscore (_)
16201           always_export_symbols_GCJ=yes
16202           # Exported symbols can be pulled into shared objects from archives
16203           whole_archive_flag_spec_GCJ=' '
16204           archive_cmds_need_lc_GCJ=yes
16205           # This is similar to how AIX traditionally builds it's shared libraries.
16206           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'
16207         fi
16208       fi
16209       ;;
16210
16211     amigaos*)
16212       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)'
16213       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16214       hardcode_minus_L_GCJ=yes
16215       # see comment about different semantics on the GNU ld section
16216       ld_shlibs_GCJ=no
16217       ;;
16218
16219     bsdi4*)
16220       export_dynamic_flag_spec_GCJ=-rdynamic
16221       ;;
16222
16223     cygwin* | mingw* | pw32*)
16224       # When not using gcc, we currently assume that we are using
16225       # Microsoft Visual C++.
16226       # hardcode_libdir_flag_spec is actually meaningless, as there is
16227       # no search path for DLLs.
16228       hardcode_libdir_flag_spec_GCJ=' '
16229       allow_undefined_flag_GCJ=unsupported
16230       # Tell ltmain to make .lib files, not .a files.
16231       libext=lib
16232       # Tell ltmain to make .dll files, not .so files.
16233       shrext=".dll"
16234       # FIXME: Setting linknames here is a bad hack.
16235       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16236       # The linker will automatically build a .lib file if we build a DLL.
16237       old_archive_From_new_cmds_GCJ='true'
16238       # FIXME: Should let the user specify the lib program.
16239       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16240       fix_srcfile_path='`cygpath -w "$srcfile"`'
16241       enable_shared_with_static_runtimes_GCJ=yes
16242       ;;
16243
16244     darwin* | rhapsody*)
16245     if test "$GXX" = yes ; then
16246       archive_cmds_need_lc_GCJ=no
16247       case "$host_os" in
16248       rhapsody* | darwin1.[012])
16249         allow_undefined_flag_GCJ='-undefined suppress'
16250         ;;
16251       *) # Darwin 1.3 on
16252       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16253         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16254       else
16255         case ${MACOSX_DEPLOYMENT_TARGET} in
16256           10.[012])
16257             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16258             ;;
16259           10.*)
16260             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16261             ;;
16262         esac
16263       fi
16264         ;;
16265       esac
16266         lt_int_apple_cc_single_mod=no
16267         output_verbose_link_cmd='echo'
16268         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16269           lt_int_apple_cc_single_mod=yes
16270         fi
16271         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16272           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16273         else
16274         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'
16275       fi
16276       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16277       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16278         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16279           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}'
16280         else
16281           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}'
16282         fi
16283           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}'
16284       hardcode_direct_GCJ=no
16285       hardcode_automatic_GCJ=yes
16286       hardcode_shlibpath_var_GCJ=unsupported
16287       whole_archive_flag_spec_GCJ='-all_load $convenience'
16288       link_all_deplibs_GCJ=yes
16289     else
16290       ld_shlibs_GCJ=no
16291     fi
16292       ;;
16293
16294     dgux*)
16295       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16296       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16297       hardcode_shlibpath_var_GCJ=no
16298       ;;
16299
16300     freebsd1*)
16301       ld_shlibs_GCJ=no
16302       ;;
16303
16304     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16305     # support.  Future versions do this automatically, but an explicit c++rt0.o
16306     # does not break anything, and helps significantly (at the cost of a little
16307     # extra space).
16308     freebsd2.2*)
16309       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16310       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16311       hardcode_direct_GCJ=yes
16312       hardcode_shlibpath_var_GCJ=no
16313       ;;
16314
16315     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16316     freebsd2*)
16317       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16318       hardcode_direct_GCJ=yes
16319       hardcode_minus_L_GCJ=yes
16320       hardcode_shlibpath_var_GCJ=no
16321       ;;
16322
16323     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16324     freebsd* | kfreebsd*-gnu)
16325       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16326       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16327       hardcode_direct_GCJ=yes
16328       hardcode_shlibpath_var_GCJ=no
16329       ;;
16330
16331     hpux9*)
16332       if test "$GCC" = yes; then
16333         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'
16334       else
16335         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'
16336       fi
16337       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16338       hardcode_libdir_separator_GCJ=:
16339       hardcode_direct_GCJ=yes
16340
16341       # hardcode_minus_L: Not really in the search PATH,
16342       # but as the default location of the library.
16343       hardcode_minus_L_GCJ=yes
16344       export_dynamic_flag_spec_GCJ='${wl}-E'
16345       ;;
16346
16347     hpux10* | hpux11*)
16348       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16349         case "$host_cpu" in
16350         hppa*64*|ia64*)
16351           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16352           ;;
16353         *)
16354           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16355           ;;
16356         esac
16357       else
16358         case "$host_cpu" in
16359         hppa*64*|ia64*)
16360           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16361           ;;
16362         *)
16363           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16364           ;;
16365         esac
16366       fi
16367       if test "$with_gnu_ld" = no; then
16368         case "$host_cpu" in
16369         hppa*64*)
16370           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16371           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16372           hardcode_libdir_separator_GCJ=:
16373           hardcode_direct_GCJ=no
16374           hardcode_shlibpath_var_GCJ=no
16375           ;;
16376         ia64*)
16377           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16378           hardcode_direct_GCJ=no
16379           hardcode_shlibpath_var_GCJ=no
16380
16381           # hardcode_minus_L: Not really in the search PATH,
16382           # but as the default location of the library.
16383           hardcode_minus_L_GCJ=yes
16384           ;;
16385         *)
16386           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16387           hardcode_libdir_separator_GCJ=:
16388           hardcode_direct_GCJ=yes
16389           export_dynamic_flag_spec_GCJ='${wl}-E'
16390
16391           # hardcode_minus_L: Not really in the search PATH,
16392           # but as the default location of the library.
16393           hardcode_minus_L_GCJ=yes
16394           ;;
16395         esac
16396       fi
16397       ;;
16398
16399     irix5* | irix6* | nonstopux*)
16400       if test "$GCC" = yes; then
16401         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'
16402       else
16403         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'
16404         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16405       fi
16406       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16407       hardcode_libdir_separator_GCJ=:
16408       link_all_deplibs_GCJ=yes
16409       ;;
16410
16411     netbsd* | knetbsd*-gnu)
16412       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16413         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16414       else
16415         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16416       fi
16417       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16418       hardcode_direct_GCJ=yes
16419       hardcode_shlibpath_var_GCJ=no
16420       ;;
16421
16422     newsos6)
16423       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16424       hardcode_direct_GCJ=yes
16425       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16426       hardcode_libdir_separator_GCJ=:
16427       hardcode_shlibpath_var_GCJ=no
16428       ;;
16429
16430     openbsd*)
16431       hardcode_direct_GCJ=yes
16432       hardcode_shlibpath_var_GCJ=no
16433       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16434         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16435         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16436         export_dynamic_flag_spec_GCJ='${wl}-E'
16437       else
16438        case $host_os in
16439          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16440            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16441            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16442            ;;
16443          *)
16444            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16445            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16446            ;;
16447        esac
16448       fi
16449       ;;
16450
16451     os2*)
16452       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16453       hardcode_minus_L_GCJ=yes
16454       allow_undefined_flag_GCJ=unsupported
16455       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'
16456       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16457       ;;
16458
16459     osf3*)
16460       if test "$GCC" = yes; then
16461         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16462         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'
16463       else
16464         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16465         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'
16466       fi
16467       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16468       hardcode_libdir_separator_GCJ=:
16469       ;;
16470
16471     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16472       if test "$GCC" = yes; then
16473         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16474         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'
16475         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16476       else
16477         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16478         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'
16479         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~
16480         $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'
16481
16482         # Both c and cxx compiler support -rpath directly
16483         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16484       fi
16485       hardcode_libdir_separator_GCJ=:
16486       ;;
16487
16488     sco3.2v5*)
16489       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16490       hardcode_shlibpath_var_GCJ=no
16491       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16492       runpath_var=LD_RUN_PATH
16493       hardcode_runpath_var=yes
16494       ;;
16495
16496     solaris*)
16497       no_undefined_flag_GCJ=' -z text'
16498       if test "$GCC" = yes; then
16499         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16500         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16501           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16502       else
16503         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16505         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16506       fi
16507       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16508       hardcode_shlibpath_var_GCJ=no
16509       case $host_os in
16510       solaris2.[0-5] | solaris2.[0-5].*) ;;
16511       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16512         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16513       esac
16514       link_all_deplibs_GCJ=yes
16515       ;;
16516
16517     sunos4*)
16518       if test "x$host_vendor" = xsequent; then
16519         # Use $CC to link under sequent, because it throws in some extra .o
16520         # files that make .init and .fini sections work.
16521         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16522       else
16523         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16524       fi
16525       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16526       hardcode_direct_GCJ=yes
16527       hardcode_minus_L_GCJ=yes
16528       hardcode_shlibpath_var_GCJ=no
16529       ;;
16530
16531     sysv4)
16532       case $host_vendor in
16533         sni)
16534           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535           hardcode_direct_GCJ=yes # is this really true???
16536         ;;
16537         siemens)
16538           ## LD is ld it makes a PLAMLIB
16539           ## CC just makes a GrossModule.
16540           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16541           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16542           hardcode_direct_GCJ=no
16543         ;;
16544         motorola)
16545           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16546           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16547         ;;
16548       esac
16549       runpath_var='LD_RUN_PATH'
16550       hardcode_shlibpath_var_GCJ=no
16551       ;;
16552
16553     sysv4.3*)
16554       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16555       hardcode_shlibpath_var_GCJ=no
16556       export_dynamic_flag_spec_GCJ='-Bexport'
16557       ;;
16558
16559     sysv4*MP*)
16560       if test -d /usr/nec; then
16561         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16562         hardcode_shlibpath_var_GCJ=no
16563         runpath_var=LD_RUN_PATH
16564         hardcode_runpath_var=yes
16565         ld_shlibs_GCJ=yes
16566       fi
16567       ;;
16568
16569     sysv4.2uw2*)
16570       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16571       hardcode_direct_GCJ=yes
16572       hardcode_minus_L_GCJ=no
16573       hardcode_shlibpath_var_GCJ=no
16574       hardcode_runpath_var=yes
16575       runpath_var=LD_RUN_PATH
16576       ;;
16577
16578    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16579       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16580       if test "$GCC" = yes; then
16581         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16582       else
16583         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16584       fi
16585       runpath_var='LD_RUN_PATH'
16586       hardcode_shlibpath_var_GCJ=no
16587       ;;
16588
16589     sysv5*)
16590       no_undefined_flag_GCJ=' -z text'
16591       # $CC -shared without GNU ld will not create a library from C++
16592       # object files and a static libstdc++, better avoid it by now
16593       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16594       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16595                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16596       hardcode_libdir_flag_spec_GCJ=
16597       hardcode_shlibpath_var_GCJ=no
16598       runpath_var='LD_RUN_PATH'
16599       ;;
16600
16601     uts4*)
16602       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16603       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16604       hardcode_shlibpath_var_GCJ=no
16605       ;;
16606
16607     *)
16608       ld_shlibs_GCJ=no
16609       ;;
16610     esac
16611   fi
16612
16613 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16614 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16615 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16616
16617 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16618 if test "$GCC" = yes; then
16619   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16620 fi
16621
16622 #
16623 # Do we need to explicitly link libc?
16624 #
16625 case "x$archive_cmds_need_lc_GCJ" in
16626 x|xyes)
16627   # Assume -lc should be added
16628   archive_cmds_need_lc_GCJ=yes
16629
16630   if test "$enable_shared" = yes && test "$GCC" = yes; then
16631     case $archive_cmds_GCJ in
16632     *'~'*)
16633       # FIXME: we may have to deal with multi-command sequences.
16634       ;;
16635     '$CC '*)
16636       # Test whether the compiler implicitly links with -lc since on some
16637       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16638       # to ld, don't add -lc before -lgcc.
16639       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16640 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16641       $rm conftest*
16642       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16643
16644       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16645   (eval $ac_compile) 2>&5
16646   ac_status=$?
16647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648   (exit $ac_status); } 2>conftest.err; then
16649         soname=conftest
16650         lib=conftest
16651         libobjs=conftest.$ac_objext
16652         deplibs=
16653         wl=$lt_prog_compiler_wl_GCJ
16654         compiler_flags=-v
16655         linker_flags=-v
16656         verstring=
16657         output_objdir=.
16658         libname=conftest
16659         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16660         allow_undefined_flag_GCJ=
16661         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16662   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); }
16666         then
16667           archive_cmds_need_lc_GCJ=no
16668         else
16669           archive_cmds_need_lc_GCJ=yes
16670         fi
16671         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16672       else
16673         cat conftest.err 1>&5
16674       fi
16675       $rm conftest*
16676       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16677 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16678       ;;
16679     esac
16680   fi
16681   ;;
16682 esac
16683
16684 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16685 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16686 library_names_spec=
16687 libname_spec='lib$name'
16688 soname_spec=
16689 shrext=".so"
16690 postinstall_cmds=
16691 postuninstall_cmds=
16692 finish_cmds=
16693 finish_eval=
16694 shlibpath_var=
16695 shlibpath_overrides_runpath=unknown
16696 version_type=none
16697 dynamic_linker="$host_os ld.so"
16698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16699 if test "$GCC" = yes; then
16700   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16701   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16702     # if the path contains ";" then we assume it to be the separator
16703     # otherwise default to the standard path separator (i.e. ":") - it is
16704     # assumed that no part of a normal pathname contains ";" but that should
16705     # okay in the real world where ";" in dirpaths is itself problematic.
16706     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16707   else
16708     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16709   fi
16710 else
16711   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16712 fi
16713 need_lib_prefix=unknown
16714 hardcode_into_libs=no
16715
16716 # when you set need_version to no, make sure it does not cause -set_version
16717 # flags to be left without arguments
16718 need_version=unknown
16719
16720 case $host_os in
16721 aix3*)
16722   version_type=linux
16723   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16724   shlibpath_var=LIBPATH
16725
16726   # AIX 3 has no versioning support, so we append a major version to the name.
16727   soname_spec='${libname}${release}${shared_ext}$major'
16728   ;;
16729
16730 aix4* | aix5*)
16731   version_type=linux
16732   need_lib_prefix=no
16733   need_version=no
16734   hardcode_into_libs=yes
16735   if test "$host_cpu" = ia64; then
16736     # AIX 5 supports IA64
16737     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16738     shlibpath_var=LD_LIBRARY_PATH
16739   else
16740     # With GCC up to 2.95.x, collect2 would create an import file
16741     # for dependence libraries.  The import file would start with
16742     # the line `#! .'.  This would cause the generated library to
16743     # depend on `.', always an invalid library.  This was fixed in
16744     # development snapshots of GCC prior to 3.0.
16745     case $host_os in
16746       aix4 | aix4.[01] | aix4.[01].*)
16747       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16748            echo ' yes '
16749            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16750         :
16751       else
16752         can_build_shared=no
16753       fi
16754       ;;
16755     esac
16756     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16757     # soname into executable. Probably we can add versioning support to
16758     # collect2, so additional links can be useful in future.
16759     if test "$aix_use_runtimelinking" = yes; then
16760       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16761       # instead of lib<name>.a to let people know that these are not
16762       # typical AIX shared libraries.
16763       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764     else
16765       # We preserve .a as extension for shared libraries through AIX4.2
16766       # and later when we are not doing run time linking.
16767       library_names_spec='${libname}${release}.a $libname.a'
16768       soname_spec='${libname}${release}${shared_ext}$major'
16769     fi
16770     shlibpath_var=LIBPATH
16771   fi
16772   ;;
16773
16774 amigaos*)
16775   library_names_spec='$libname.ixlibrary $libname.a'
16776   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16777   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'
16778   ;;
16779
16780 beos*)
16781   library_names_spec='${libname}${shared_ext}'
16782   dynamic_linker="$host_os ld.so"
16783   shlibpath_var=LIBRARY_PATH
16784   ;;
16785
16786 bsdi4*)
16787   version_type=linux
16788   need_version=no
16789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16790   soname_spec='${libname}${release}${shared_ext}$major'
16791   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16792   shlibpath_var=LD_LIBRARY_PATH
16793   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16794   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16795   # the default ld.so.conf also contains /usr/contrib/lib and
16796   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16797   # libtool to hard-code these into programs
16798   ;;
16799
16800 cygwin* | mingw* | pw32*)
16801   version_type=windows
16802   shrext=".dll"
16803   need_version=no
16804   need_lib_prefix=no
16805
16806   case $GCC,$host_os in
16807   yes,cygwin* | yes,mingw* | yes,pw32*)
16808     library_names_spec='$libname.dll.a'
16809     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16810     postinstall_cmds='base_file=`basename \${file}`~
16811       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16812       dldir=$destdir/`dirname \$dlpath`~
16813       test -d \$dldir || mkdir -p \$dldir~
16814       $install_prog $dir/$dlname \$dldir/$dlname'
16815     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16816       dlpath=$dir/\$dldll~
16817        $rm \$dlpath'
16818     shlibpath_overrides_runpath=yes
16819
16820     case $host_os in
16821     cygwin*)
16822       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16823       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16824       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16825       ;;
16826     mingw*)
16827       # MinGW DLLs use traditional 'lib' prefix
16828       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16829       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16830       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16831         # It is most probably a Windows format PATH printed by
16832         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16833         # path with ; separators, and with drive letters. We can handle the
16834         # drive letters (cygwin fileutils understands them), so leave them,
16835         # especially as we might pass files found there to a mingw objdump,
16836         # which wouldn't understand a cygwinified path. Ahh.
16837         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16838       else
16839         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16840       fi
16841       ;;
16842     pw32*)
16843       # pw32 DLLs use 'pw' prefix rather than 'lib'
16844       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16845       ;;
16846     esac
16847     ;;
16848
16849   *)
16850     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16851     ;;
16852   esac
16853   dynamic_linker='Win32 ld.exe'
16854   # FIXME: first we should search . and the directory the executable is in
16855   shlibpath_var=PATH
16856   ;;
16857
16858 darwin* | rhapsody*)
16859   dynamic_linker="$host_os dyld"
16860   version_type=darwin
16861   need_lib_prefix=no
16862   need_version=no
16863   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16864   soname_spec='${libname}${release}${major}$shared_ext'
16865   shlibpath_overrides_runpath=yes
16866   shlibpath_var=DYLD_LIBRARY_PATH
16867   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16868   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16869   if test "$GCC" = yes; then
16870     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"`
16871   else
16872     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16873   fi
16874   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16875   ;;
16876
16877 dgux*)
16878   version_type=linux
16879   need_lib_prefix=no
16880   need_version=no
16881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16882   soname_spec='${libname}${release}${shared_ext}$major'
16883   shlibpath_var=LD_LIBRARY_PATH
16884   ;;
16885
16886 freebsd1*)
16887   dynamic_linker=no
16888   ;;
16889
16890 kfreebsd*-gnu)
16891   version_type=linux
16892   need_lib_prefix=no
16893   need_version=no
16894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16895   soname_spec='${libname}${release}${shared_ext}$major'
16896   shlibpath_var=LD_LIBRARY_PATH
16897   shlibpath_overrides_runpath=no
16898   hardcode_into_libs=yes
16899   dynamic_linker='GNU ld.so'
16900   ;;
16901
16902 freebsd*)
16903   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16904   version_type=freebsd-$objformat
16905   case $version_type in
16906     freebsd-elf*)
16907       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16908       need_version=no
16909       need_lib_prefix=no
16910       ;;
16911     freebsd-*)
16912       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16913       need_version=yes
16914       ;;
16915   esac
16916   shlibpath_var=LD_LIBRARY_PATH
16917   case $host_os in
16918   freebsd2*)
16919     shlibpath_overrides_runpath=yes
16920     ;;
16921   freebsd3.01* | freebsdelf3.01*)
16922     shlibpath_overrides_runpath=yes
16923     hardcode_into_libs=yes
16924     ;;
16925   *) # from 3.2 on
16926     shlibpath_overrides_runpath=no
16927     hardcode_into_libs=yes
16928     ;;
16929   esac
16930   ;;
16931
16932 gnu*)
16933   version_type=linux
16934   need_lib_prefix=no
16935   need_version=no
16936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16937   soname_spec='${libname}${release}${shared_ext}$major'
16938   shlibpath_var=LD_LIBRARY_PATH
16939   hardcode_into_libs=yes
16940   ;;
16941
16942 hpux9* | hpux10* | hpux11*)
16943   # Give a soname corresponding to the major version so that dld.sl refuses to
16944   # link against other versions.
16945   version_type=sunos
16946   need_lib_prefix=no
16947   need_version=no
16948   case "$host_cpu" in
16949   ia64*)
16950     shrext='.so'
16951     hardcode_into_libs=yes
16952     dynamic_linker="$host_os dld.so"
16953     shlibpath_var=LD_LIBRARY_PATH
16954     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956     soname_spec='${libname}${release}${shared_ext}$major'
16957     if test "X$HPUX_IA64_MODE" = X32; then
16958       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16959     else
16960       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16961     fi
16962     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16963     ;;
16964    hppa*64*)
16965      shrext='.sl'
16966      hardcode_into_libs=yes
16967      dynamic_linker="$host_os dld.sl"
16968      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16969      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16970      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971      soname_spec='${libname}${release}${shared_ext}$major'
16972      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16973      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16974      ;;
16975    *)
16976     shrext='.sl'
16977     dynamic_linker="$host_os dld.sl"
16978     shlibpath_var=SHLIB_PATH
16979     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16981     soname_spec='${libname}${release}${shared_ext}$major'
16982     ;;
16983   esac
16984   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16985   postinstall_cmds='chmod 555 $lib'
16986   ;;
16987
16988 irix5* | irix6* | nonstopux*)
16989   case $host_os in
16990     nonstopux*) version_type=nonstopux ;;
16991     *)
16992         if test "$lt_cv_prog_gnu_ld" = yes; then
16993                 version_type=linux
16994         else
16995                 version_type=irix
16996         fi ;;
16997   esac
16998   need_lib_prefix=no
16999   need_version=no
17000   soname_spec='${libname}${release}${shared_ext}$major'
17001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17002   case $host_os in
17003   irix5* | nonstopux*)
17004     libsuff= shlibsuff=
17005     ;;
17006   *)
17007     case $LD in # libtool.m4 will add one of these switches to LD
17008     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17009       libsuff= shlibsuff= libmagic=32-bit;;
17010     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17011       libsuff=32 shlibsuff=N32 libmagic=N32;;
17012     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17013       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17014     *) libsuff= shlibsuff= libmagic=never-match;;
17015     esac
17016     ;;
17017   esac
17018   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17019   shlibpath_overrides_runpath=no
17020   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17021   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17022   hardcode_into_libs=yes
17023   ;;
17024
17025 # No shared lib support for Linux oldld, aout, or coff.
17026 linux*oldld* | linux*aout* | linux*coff*)
17027   dynamic_linker=no
17028   ;;
17029
17030 # This must be Linux ELF.
17031 linux*)
17032   version_type=linux
17033   need_lib_prefix=no
17034   need_version=no
17035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036   soname_spec='${libname}${release}${shared_ext}$major'
17037   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17038   shlibpath_var=LD_LIBRARY_PATH
17039   shlibpath_overrides_runpath=no
17040   # This implies no fast_install, which is unacceptable.
17041   # Some rework will be needed to allow for fast_install
17042   # before this can be enabled.
17043   hardcode_into_libs=yes
17044
17045   # Append ld.so.conf contents to the search path
17046   if test -f /etc/ld.so.conf; then
17047     ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17048     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17049   fi
17050
17051   # We used to test for /lib/ld.so.1 and disable shared libraries on
17052   # powerpc, because MkLinux only supported shared libraries with the
17053   # GNU dynamic linker.  Since this was broken with cross compilers,
17054   # most powerpc-linux boxes support dynamic linking these days and
17055   # people can always --disable-shared, the test was removed, and we
17056   # assume the GNU/Linux dynamic linker is in use.
17057   dynamic_linker='GNU/Linux ld.so'
17058   ;;
17059
17060 knetbsd*-gnu)
17061   version_type=linux
17062   need_lib_prefix=no
17063   need_version=no
17064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17065   soname_spec='${libname}${release}${shared_ext}$major'
17066   shlibpath_var=LD_LIBRARY_PATH
17067   shlibpath_overrides_runpath=no
17068   hardcode_into_libs=yes
17069   dynamic_linker='GNU ld.so'
17070   ;;
17071
17072 netbsd*)
17073   version_type=sunos
17074   need_lib_prefix=no
17075   need_version=no
17076   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17078     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17079     dynamic_linker='NetBSD (a.out) ld.so'
17080   else
17081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17082     soname_spec='${libname}${release}${shared_ext}$major'
17083     dynamic_linker='NetBSD ld.elf_so'
17084   fi
17085   shlibpath_var=LD_LIBRARY_PATH
17086   shlibpath_overrides_runpath=yes
17087   hardcode_into_libs=yes
17088   ;;
17089
17090 newsos6)
17091   version_type=linux
17092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093   shlibpath_var=LD_LIBRARY_PATH
17094   shlibpath_overrides_runpath=yes
17095   ;;
17096
17097 nto-qnx*)
17098   version_type=linux
17099   need_lib_prefix=no
17100   need_version=no
17101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17102   soname_spec='${libname}${release}${shared_ext}$major'
17103   shlibpath_var=LD_LIBRARY_PATH
17104   shlibpath_overrides_runpath=yes
17105   ;;
17106
17107 openbsd*)
17108   version_type=sunos
17109   need_lib_prefix=no
17110   need_version=yes
17111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17112   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17113   shlibpath_var=LD_LIBRARY_PATH
17114   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17115     case $host_os in
17116       openbsd2.[89] | openbsd2.[89].*)
17117         shlibpath_overrides_runpath=no
17118         ;;
17119       *)
17120         shlibpath_overrides_runpath=yes
17121         ;;
17122       esac
17123   else
17124     shlibpath_overrides_runpath=yes
17125   fi
17126   ;;
17127
17128 os2*)
17129   libname_spec='$name'
17130   shrext=".dll"
17131   need_lib_prefix=no
17132   library_names_spec='$libname${shared_ext} $libname.a'
17133   dynamic_linker='OS/2 ld.exe'
17134   shlibpath_var=LIBPATH
17135   ;;
17136
17137 osf3* | osf4* | osf5*)
17138   version_type=osf
17139   need_lib_prefix=no
17140   need_version=no
17141   soname_spec='${libname}${release}${shared_ext}$major'
17142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143   shlibpath_var=LD_LIBRARY_PATH
17144   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17145   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17146   ;;
17147
17148 sco3.2v5*)
17149   version_type=osf
17150   soname_spec='${libname}${release}${shared_ext}$major'
17151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152   shlibpath_var=LD_LIBRARY_PATH
17153   ;;
17154
17155 solaris*)
17156   version_type=linux
17157   need_lib_prefix=no
17158   need_version=no
17159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17160   soname_spec='${libname}${release}${shared_ext}$major'
17161   shlibpath_var=LD_LIBRARY_PATH
17162   shlibpath_overrides_runpath=yes
17163   hardcode_into_libs=yes
17164   # ldd complains unless libraries are executable
17165   postinstall_cmds='chmod +x $lib'
17166   ;;
17167
17168 sunos4*)
17169   version_type=sunos
17170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17171   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17172   shlibpath_var=LD_LIBRARY_PATH
17173   shlibpath_overrides_runpath=yes
17174   if test "$with_gnu_ld" = yes; then
17175     need_lib_prefix=no
17176   fi
17177   need_version=yes
17178   ;;
17179
17180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17181   version_type=linux
17182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17183   soname_spec='${libname}${release}${shared_ext}$major'
17184   shlibpath_var=LD_LIBRARY_PATH
17185   case $host_vendor in
17186     sni)
17187       shlibpath_overrides_runpath=no
17188       need_lib_prefix=no
17189       export_dynamic_flag_spec='${wl}-Blargedynsym'
17190       runpath_var=LD_RUN_PATH
17191       ;;
17192     siemens)
17193       need_lib_prefix=no
17194       ;;
17195     motorola)
17196       need_lib_prefix=no
17197       need_version=no
17198       shlibpath_overrides_runpath=no
17199       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17200       ;;
17201   esac
17202   ;;
17203
17204 sysv4*MP*)
17205   if test -d /usr/nec ;then
17206     version_type=linux
17207     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17208     soname_spec='$libname${shared_ext}.$major'
17209     shlibpath_var=LD_LIBRARY_PATH
17210   fi
17211   ;;
17212
17213 uts4*)
17214   version_type=linux
17215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17216   soname_spec='${libname}${release}${shared_ext}$major'
17217   shlibpath_var=LD_LIBRARY_PATH
17218   ;;
17219
17220 *)
17221   dynamic_linker=no
17222   ;;
17223 esac
17224 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17225 echo "${ECHO_T}$dynamic_linker" >&6
17226 test "$dynamic_linker" = no && can_build_shared=no
17227
17228 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17229 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17230 hardcode_action_GCJ=
17231 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17232    test -n "$runpath_var GCJ" || \
17233    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17234
17235   # We can hardcode non-existant directories.
17236   if test "$hardcode_direct_GCJ" != no &&
17237      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17238      # have to relink, otherwise we might link with an installed library
17239      # when we should be linking with a yet-to-be-installed one
17240      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17241      test "$hardcode_minus_L_GCJ" != no; then
17242     # Linking always hardcodes the temporary library directory.
17243     hardcode_action_GCJ=relink
17244   else
17245     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17246     hardcode_action_GCJ=immediate
17247   fi
17248 else
17249   # We cannot hardcode anything, or else we can only hardcode existing
17250   # directories.
17251   hardcode_action_GCJ=unsupported
17252 fi
17253 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17254 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17255
17256 if test "$hardcode_action_GCJ" = relink; then
17257   # Fast installation is not supported
17258   enable_fast_install=no
17259 elif test "$shlibpath_overrides_runpath" = yes ||
17260      test "$enable_shared" = no; then
17261   # Fast installation is not necessary
17262   enable_fast_install=needless
17263 fi
17264
17265 striplib=
17266 old_striplib=
17267 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17268 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17269 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17270   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17271   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17272   echo "$as_me:$LINENO: result: yes" >&5
17273 echo "${ECHO_T}yes" >&6
17274 else
17275 # FIXME - insert some real tests, host_os isn't really good enough
17276   case $host_os in
17277    darwin*)
17278        if test -n "$STRIP" ; then
17279          striplib="$STRIP -x"
17280          echo "$as_me:$LINENO: result: yes" >&5
17281 echo "${ECHO_T}yes" >&6
17282        else
17283   echo "$as_me:$LINENO: result: no" >&5
17284 echo "${ECHO_T}no" >&6
17285 fi
17286        ;;
17287    *)
17288   echo "$as_me:$LINENO: result: no" >&5
17289 echo "${ECHO_T}no" >&6
17290     ;;
17291   esac
17292 fi
17293
17294 if test "x$enable_dlopen" != xyes; then
17295   enable_dlopen=unknown
17296   enable_dlopen_self=unknown
17297   enable_dlopen_self_static=unknown
17298 else
17299   lt_cv_dlopen=no
17300   lt_cv_dlopen_libs=
17301
17302   case $host_os in
17303   beos*)
17304     lt_cv_dlopen="load_add_on"
17305     lt_cv_dlopen_libs=
17306     lt_cv_dlopen_self=yes
17307     ;;
17308
17309   mingw* | pw32*)
17310     lt_cv_dlopen="LoadLibrary"
17311     lt_cv_dlopen_libs=
17312    ;;
17313
17314   cygwin*)
17315     lt_cv_dlopen="dlopen"
17316     lt_cv_dlopen_libs=
17317    ;;
17318
17319   darwin*)
17320   # if libdl is installed we need to link against it
17321     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17322 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17323 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326   ac_check_lib_save_LIBS=$LIBS
17327 LIBS="-ldl  $LIBS"
17328 cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h.  */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h.  */
17334
17335 /* Override any gcc2 internal prototype to avoid an error.  */
17336 #ifdef __cplusplus
17337 extern "C"
17338 #endif
17339 /* We use char because int might match the return type of a gcc2
17340    builtin and then its argument prototype would still apply.  */
17341 char dlopen ();
17342 int
17343 main ()
17344 {
17345 dlopen ();
17346   ;
17347   return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext conftest$ac_exeext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17352   (eval $ac_link) 2>conftest.er1
17353   ac_status=$?
17354   grep -v '^ *+' conftest.er1 >conftest.err
17355   rm -f conftest.er1
17356   cat conftest.err >&5
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); } &&
17359          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361   (eval $ac_try) 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); }; } &&
17365          { ac_try='test -s conftest$ac_exeext'
17366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367   (eval $ac_try) 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; }; then
17371   ac_cv_lib_dl_dlopen=yes
17372 else
17373   echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17375
17376 ac_cv_lib_dl_dlopen=no
17377 fi
17378 rm -f conftest.err conftest.$ac_objext \
17379       conftest$ac_exeext conftest.$ac_ext
17380 LIBS=$ac_check_lib_save_LIBS
17381 fi
17382 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17383 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17384 if test $ac_cv_lib_dl_dlopen = yes; then
17385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17386 else
17387
17388     lt_cv_dlopen="dyld"
17389     lt_cv_dlopen_libs=
17390     lt_cv_dlopen_self=yes
17391
17392 fi
17393
17394    ;;
17395
17396   *)
17397     echo "$as_me:$LINENO: checking for shl_load" >&5
17398 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17399 if test "${ac_cv_func_shl_load+set}" = set; then
17400   echo $ECHO_N "(cached) $ECHO_C" >&6
17401 else
17402   cat >conftest.$ac_ext <<_ACEOF
17403 /* confdefs.h.  */
17404 _ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h.  */
17408 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17410 #define shl_load innocuous_shl_load
17411
17412 /* System header to define __stub macros and hopefully few prototypes,
17413     which can conflict with char shl_load (); below.
17414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17415     <limits.h> exists even on freestanding compilers.  */
17416
17417 #ifdef __STDC__
17418 # include <limits.h>
17419 #else
17420 # include <assert.h>
17421 #endif
17422
17423 #undef shl_load
17424
17425 /* Override any gcc2 internal prototype to avoid an error.  */
17426 #ifdef __cplusplus
17427 extern "C"
17428 {
17429 #endif
17430 /* We use char because int might match the return type of a gcc2
17431    builtin and then its argument prototype would still apply.  */
17432 char shl_load ();
17433 /* The GNU C library defines this for functions which it implements
17434     to always fail with ENOSYS.  Some functions are actually named
17435     something starting with __ and the normal name is an alias.  */
17436 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17437 choke me
17438 #else
17439 char (*f) () = shl_load;
17440 #endif
17441 #ifdef __cplusplus
17442 }
17443 #endif
17444
17445 int
17446 main ()
17447 {
17448 return f != shl_load;
17449   ;
17450   return 0;
17451 }
17452 _ACEOF
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17455   (eval $ac_link) 2>conftest.er1
17456   ac_status=$?
17457   grep -v '^ *+' conftest.er1 >conftest.err
17458   rm -f conftest.er1
17459   cat conftest.err >&5
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); } &&
17462          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464   (eval $ac_try) 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); }; } &&
17468          { ac_try='test -s conftest$ac_exeext'
17469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470   (eval $ac_try) 2>&5
17471   ac_status=$?
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); }; }; then
17474   ac_cv_func_shl_load=yes
17475 else
17476   echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17478
17479 ac_cv_func_shl_load=no
17480 fi
17481 rm -f conftest.err conftest.$ac_objext \
17482       conftest$ac_exeext conftest.$ac_ext
17483 fi
17484 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17485 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17486 if test $ac_cv_func_shl_load = yes; then
17487   lt_cv_dlopen="shl_load"
17488 else
17489   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17490 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17491 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17492   echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494   ac_check_lib_save_LIBS=$LIBS
17495 LIBS="-ldld  $LIBS"
17496 cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h.  */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h.  */
17502
17503 /* Override any gcc2 internal prototype to avoid an error.  */
17504 #ifdef __cplusplus
17505 extern "C"
17506 #endif
17507 /* We use char because int might match the return type of a gcc2
17508    builtin and then its argument prototype would still apply.  */
17509 char shl_load ();
17510 int
17511 main ()
17512 {
17513 shl_load ();
17514   ;
17515   return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17520   (eval $ac_link) 2>conftest.er1
17521   ac_status=$?
17522   grep -v '^ *+' conftest.er1 >conftest.err
17523   rm -f conftest.er1
17524   cat conftest.err >&5
17525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526   (exit $ac_status); } &&
17527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529   (eval $ac_try) 2>&5
17530   ac_status=$?
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); }; } &&
17533          { ac_try='test -s conftest$ac_exeext'
17534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535   (eval $ac_try) 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; }; then
17539   ac_cv_lib_dld_shl_load=yes
17540 else
17541   echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17543
17544 ac_cv_lib_dld_shl_load=no
17545 fi
17546 rm -f conftest.err conftest.$ac_objext \
17547       conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17549 fi
17550 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17551 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17552 if test $ac_cv_lib_dld_shl_load = yes; then
17553   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17554 else
17555   echo "$as_me:$LINENO: checking for dlopen" >&5
17556 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17557 if test "${ac_cv_func_dlopen+set}" = set; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560   cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h.  */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h.  */
17566 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17568 #define dlopen innocuous_dlopen
17569
17570 /* System header to define __stub macros and hopefully few prototypes,
17571     which can conflict with char dlopen (); below.
17572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573     <limits.h> exists even on freestanding compilers.  */
17574
17575 #ifdef __STDC__
17576 # include <limits.h>
17577 #else
17578 # include <assert.h>
17579 #endif
17580
17581 #undef dlopen
17582
17583 /* Override any gcc2 internal prototype to avoid an error.  */
17584 #ifdef __cplusplus
17585 extern "C"
17586 {
17587 #endif
17588 /* We use char because int might match the return type of a gcc2
17589    builtin and then its argument prototype would still apply.  */
17590 char dlopen ();
17591 /* The GNU C library defines this for functions which it implements
17592     to always fail with ENOSYS.  Some functions are actually named
17593     something starting with __ and the normal name is an alias.  */
17594 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17595 choke me
17596 #else
17597 char (*f) () = dlopen;
17598 #endif
17599 #ifdef __cplusplus
17600 }
17601 #endif
17602
17603 int
17604 main ()
17605 {
17606 return f != dlopen;
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17613   (eval $ac_link) 2>conftest.er1
17614   ac_status=$?
17615   grep -v '^ *+' conftest.er1 >conftest.err
17616   rm -f conftest.er1
17617   cat conftest.err >&5
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } &&
17620          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622   (eval $ac_try) 2>&5
17623   ac_status=$?
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); }; } &&
17626          { ac_try='test -s conftest$ac_exeext'
17627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628   (eval $ac_try) 2>&5
17629   ac_status=$?
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); }; }; then
17632   ac_cv_func_dlopen=yes
17633 else
17634   echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637 ac_cv_func_dlopen=no
17638 fi
17639 rm -f conftest.err conftest.$ac_objext \
17640       conftest$ac_exeext conftest.$ac_ext
17641 fi
17642 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17643 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17644 if test $ac_cv_func_dlopen = yes; then
17645   lt_cv_dlopen="dlopen"
17646 else
17647   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17648 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17649 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17650   echo $ECHO_N "(cached) $ECHO_C" >&6
17651 else
17652   ac_check_lib_save_LIBS=$LIBS
17653 LIBS="-ldl  $LIBS"
17654 cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h.  */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h.  */
17660
17661 /* Override any gcc2 internal prototype to avoid an error.  */
17662 #ifdef __cplusplus
17663 extern "C"
17664 #endif
17665 /* We use char because int might match the return type of a gcc2
17666    builtin and then its argument prototype would still apply.  */
17667 char dlopen ();
17668 int
17669 main ()
17670 {
17671 dlopen ();
17672   ;
17673   return 0;
17674 }
17675 _ACEOF
17676 rm -f conftest.$ac_objext conftest$ac_exeext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17678   (eval $ac_link) 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } &&
17685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687   (eval $ac_try) 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; } &&
17691          { ac_try='test -s conftest$ac_exeext'
17692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693   (eval $ac_try) 2>&5
17694   ac_status=$?
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); }; }; then
17697   ac_cv_lib_dl_dlopen=yes
17698 else
17699   echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 ac_cv_lib_dl_dlopen=no
17703 fi
17704 rm -f conftest.err conftest.$ac_objext \
17705       conftest$ac_exeext conftest.$ac_ext
17706 LIBS=$ac_check_lib_save_LIBS
17707 fi
17708 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17709 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17710 if test $ac_cv_lib_dl_dlopen = yes; then
17711   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17712 else
17713   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17714 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17715 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17716   echo $ECHO_N "(cached) $ECHO_C" >&6
17717 else
17718   ac_check_lib_save_LIBS=$LIBS
17719 LIBS="-lsvld  $LIBS"
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h.  */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h.  */
17726
17727 /* Override any gcc2 internal prototype to avoid an error.  */
17728 #ifdef __cplusplus
17729 extern "C"
17730 #endif
17731 /* We use char because int might match the return type of a gcc2
17732    builtin and then its argument prototype would still apply.  */
17733 char dlopen ();
17734 int
17735 main ()
17736 {
17737 dlopen ();
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744   (eval $ac_link) 2>conftest.er1
17745   ac_status=$?
17746   grep -v '^ *+' conftest.er1 >conftest.err
17747   rm -f conftest.er1
17748   cat conftest.err >&5
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); } &&
17751          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753   (eval $ac_try) 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); }; } &&
17757          { ac_try='test -s conftest$ac_exeext'
17758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759   (eval $ac_try) 2>&5
17760   ac_status=$?
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); }; }; then
17763   ac_cv_lib_svld_dlopen=yes
17764 else
17765   echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17767
17768 ac_cv_lib_svld_dlopen=no
17769 fi
17770 rm -f conftest.err conftest.$ac_objext \
17771       conftest$ac_exeext conftest.$ac_ext
17772 LIBS=$ac_check_lib_save_LIBS
17773 fi
17774 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17775 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17776 if test $ac_cv_lib_svld_dlopen = yes; then
17777   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17778 else
17779   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17780 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17781 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17782   echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784   ac_check_lib_save_LIBS=$LIBS
17785 LIBS="-ldld  $LIBS"
17786 cat >conftest.$ac_ext <<_ACEOF
17787 /* confdefs.h.  */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h.  */
17792
17793 /* Override any gcc2 internal prototype to avoid an error.  */
17794 #ifdef __cplusplus
17795 extern "C"
17796 #endif
17797 /* We use char because int might match the return type of a gcc2
17798    builtin and then its argument prototype would still apply.  */
17799 char dld_link ();
17800 int
17801 main ()
17802 {
17803 dld_link ();
17804   ;
17805   return 0;
17806 }
17807 _ACEOF
17808 rm -f conftest.$ac_objext conftest$ac_exeext
17809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17810   (eval $ac_link) 2>conftest.er1
17811   ac_status=$?
17812   grep -v '^ *+' conftest.er1 >conftest.err
17813   rm -f conftest.er1
17814   cat conftest.err >&5
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); } &&
17817          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819   (eval $ac_try) 2>&5
17820   ac_status=$?
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); }; } &&
17823          { ac_try='test -s conftest$ac_exeext'
17824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825   (eval $ac_try) 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); }; }; then
17829   ac_cv_lib_dld_dld_link=yes
17830 else
17831   echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17833
17834 ac_cv_lib_dld_dld_link=no
17835 fi
17836 rm -f conftest.err conftest.$ac_objext \
17837       conftest$ac_exeext conftest.$ac_ext
17838 LIBS=$ac_check_lib_save_LIBS
17839 fi
17840 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17841 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17842 if test $ac_cv_lib_dld_dld_link = yes; then
17843   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17844 fi
17845
17846
17847 fi
17848
17849
17850 fi
17851
17852
17853 fi
17854
17855
17856 fi
17857
17858
17859 fi
17860
17861     ;;
17862   esac
17863
17864   if test "x$lt_cv_dlopen" != xno; then
17865     enable_dlopen=yes
17866   else
17867     enable_dlopen=no
17868   fi
17869
17870   case $lt_cv_dlopen in
17871   dlopen)
17872     save_CPPFLAGS="$CPPFLAGS"
17873     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17874
17875     save_LDFLAGS="$LDFLAGS"
17876     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17877
17878     save_LIBS="$LIBS"
17879     LIBS="$lt_cv_dlopen_libs $LIBS"
17880
17881     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17882 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17883 if test "${lt_cv_dlopen_self+set}" = set; then
17884   echo $ECHO_N "(cached) $ECHO_C" >&6
17885 else
17886           if test "$cross_compiling" = yes; then :
17887   lt_cv_dlopen_self=cross
17888 else
17889   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17890   lt_status=$lt_dlunknown
17891   cat > conftest.$ac_ext <<EOF
17892 #line 17892 "configure"
17893 #include "confdefs.h"
17894
17895 #if HAVE_DLFCN_H
17896 #include <dlfcn.h>
17897 #endif
17898
17899 #include <stdio.h>
17900
17901 #ifdef RTLD_GLOBAL
17902 #  define LT_DLGLOBAL           RTLD_GLOBAL
17903 #else
17904 #  ifdef DL_GLOBAL
17905 #    define LT_DLGLOBAL         DL_GLOBAL
17906 #  else
17907 #    define LT_DLGLOBAL         0
17908 #  endif
17909 #endif
17910
17911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17912    find out it does not work in some platform. */
17913 #ifndef LT_DLLAZY_OR_NOW
17914 #  ifdef RTLD_LAZY
17915 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17916 #  else
17917 #    ifdef DL_LAZY
17918 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17919 #    else
17920 #      ifdef RTLD_NOW
17921 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17922 #      else
17923 #        ifdef DL_NOW
17924 #          define LT_DLLAZY_OR_NOW      DL_NOW
17925 #        else
17926 #          define LT_DLLAZY_OR_NOW      0
17927 #        endif
17928 #      endif
17929 #    endif
17930 #  endif
17931 #endif
17932
17933 #ifdef __cplusplus
17934 extern "C" void exit (int);
17935 #endif
17936
17937 void fnord() { int i=42;}
17938 int main ()
17939 {
17940   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17941   int status = $lt_dlunknown;
17942
17943   if (self)
17944     {
17945       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17946       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17947       /* dlclose (self); */
17948     }
17949
17950     exit (status);
17951 }
17952 EOF
17953   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17954   (eval $ac_link) 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17958     (./conftest; exit; ) 2>/dev/null
17959     lt_status=$?
17960     case x$lt_status in
17961       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17962       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17963       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17964     esac
17965   else :
17966     # compilation failed
17967     lt_cv_dlopen_self=no
17968   fi
17969 fi
17970 rm -fr conftest*
17971
17972
17973 fi
17974 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17975 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17976
17977     if test "x$lt_cv_dlopen_self" = xyes; then
17978       LDFLAGS="$LDFLAGS $link_static_flag"
17979       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17980 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17981 if test "${lt_cv_dlopen_self_static+set}" = set; then
17982   echo $ECHO_N "(cached) $ECHO_C" >&6
17983 else
17984           if test "$cross_compiling" = yes; then :
17985   lt_cv_dlopen_self_static=cross
17986 else
17987   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17988   lt_status=$lt_dlunknown
17989   cat > conftest.$ac_ext <<EOF
17990 #line 17990 "configure"
17991 #include "confdefs.h"
17992
17993 #if HAVE_DLFCN_H
17994 #include <dlfcn.h>
17995 #endif
17996
17997 #include <stdio.h>
17998
17999 #ifdef RTLD_GLOBAL
18000 #  define LT_DLGLOBAL           RTLD_GLOBAL
18001 #else
18002 #  ifdef DL_GLOBAL
18003 #    define LT_DLGLOBAL         DL_GLOBAL
18004 #  else
18005 #    define LT_DLGLOBAL         0
18006 #  endif
18007 #endif
18008
18009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18010    find out it does not work in some platform. */
18011 #ifndef LT_DLLAZY_OR_NOW
18012 #  ifdef RTLD_LAZY
18013 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18014 #  else
18015 #    ifdef DL_LAZY
18016 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18017 #    else
18018 #      ifdef RTLD_NOW
18019 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18020 #      else
18021 #        ifdef DL_NOW
18022 #          define LT_DLLAZY_OR_NOW      DL_NOW
18023 #        else
18024 #          define LT_DLLAZY_OR_NOW      0
18025 #        endif
18026 #      endif
18027 #    endif
18028 #  endif
18029 #endif
18030
18031 #ifdef __cplusplus
18032 extern "C" void exit (int);
18033 #endif
18034
18035 void fnord() { int i=42;}
18036 int main ()
18037 {
18038   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18039   int status = $lt_dlunknown;
18040
18041   if (self)
18042     {
18043       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18044       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18045       /* dlclose (self); */
18046     }
18047
18048     exit (status);
18049 }
18050 EOF
18051   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052   (eval $ac_link) 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18056     (./conftest; exit; ) 2>/dev/null
18057     lt_status=$?
18058     case x$lt_status in
18059       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18060       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18061       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18062     esac
18063   else :
18064     # compilation failed
18065     lt_cv_dlopen_self_static=no
18066   fi
18067 fi
18068 rm -fr conftest*
18069
18070
18071 fi
18072 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18073 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18074     fi
18075
18076     CPPFLAGS="$save_CPPFLAGS"
18077     LDFLAGS="$save_LDFLAGS"
18078     LIBS="$save_LIBS"
18079     ;;
18080   esac
18081
18082   case $lt_cv_dlopen_self in
18083   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18084   *) enable_dlopen_self=unknown ;;
18085   esac
18086
18087   case $lt_cv_dlopen_self_static in
18088   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18089   *) enable_dlopen_self_static=unknown ;;
18090   esac
18091 fi
18092
18093
18094 # The else clause should only fire when bootstrapping the
18095 # libtool distribution, otherwise you forgot to ship ltmain.sh
18096 # with your package, and you will get complaints that there are
18097 # no rules to generate ltmain.sh.
18098 if test -f "$ltmain"; then
18099   # See if we are running on zsh, and set the options which allow our commands through
18100   # without removal of \ escapes.
18101   if test -n "${ZSH_VERSION+set}" ; then
18102     setopt NO_GLOB_SUBST
18103   fi
18104   # Now quote all the things that may contain metacharacters while being
18105   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18106   # variables and quote the copies for generation of the libtool script.
18107   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18108     SED SHELL STRIP \
18109     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18110     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18111     deplibs_check_method reload_flag reload_cmds need_locks \
18112     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18113     lt_cv_sys_global_symbol_to_c_name_address \
18114     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18115     old_postinstall_cmds old_postuninstall_cmds \
18116     compiler_GCJ \
18117     CC_GCJ \
18118     LD_GCJ \
18119     lt_prog_compiler_wl_GCJ \
18120     lt_prog_compiler_pic_GCJ \
18121     lt_prog_compiler_static_GCJ \
18122     lt_prog_compiler_no_builtin_flag_GCJ \
18123     export_dynamic_flag_spec_GCJ \
18124     thread_safe_flag_spec_GCJ \
18125     whole_archive_flag_spec_GCJ \
18126     enable_shared_with_static_runtimes_GCJ \
18127     old_archive_cmds_GCJ \
18128     old_archive_from_new_cmds_GCJ \
18129     predep_objects_GCJ \
18130     postdep_objects_GCJ \
18131     predeps_GCJ \
18132     postdeps_GCJ \
18133     compiler_lib_search_path_GCJ \
18134     archive_cmds_GCJ \
18135     archive_expsym_cmds_GCJ \
18136     postinstall_cmds_GCJ \
18137     postuninstall_cmds_GCJ \
18138     old_archive_from_expsyms_cmds_GCJ \
18139     allow_undefined_flag_GCJ \
18140     no_undefined_flag_GCJ \
18141     export_symbols_cmds_GCJ \
18142     hardcode_libdir_flag_spec_GCJ \
18143     hardcode_libdir_flag_spec_ld_GCJ \
18144     hardcode_libdir_separator_GCJ \
18145     hardcode_automatic_GCJ \
18146     module_cmds_GCJ \
18147     module_expsym_cmds_GCJ \
18148     lt_cv_prog_compiler_c_o_GCJ \
18149     exclude_expsyms_GCJ \
18150     include_expsyms_GCJ; do
18151
18152     case $var in
18153     old_archive_cmds_GCJ | \
18154     old_archive_from_new_cmds_GCJ | \
18155     archive_cmds_GCJ | \
18156     archive_expsym_cmds_GCJ | \
18157     module_cmds_GCJ | \
18158     module_expsym_cmds_GCJ | \
18159     old_archive_from_expsyms_cmds_GCJ | \
18160     export_symbols_cmds_GCJ | \
18161     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18162     postinstall_cmds | postuninstall_cmds | \
18163     old_postinstall_cmds | old_postuninstall_cmds | \
18164     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18165       # Double-quote double-evaled strings.
18166       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18167       ;;
18168     *)
18169       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18170       ;;
18171     esac
18172   done
18173
18174   case $lt_echo in
18175   *'\$0 --fallback-echo"')
18176     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18177     ;;
18178   esac
18179
18180 cfgfile="$ofile"
18181
18182   cat <<__EOF__ >> "$cfgfile"
18183 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18184
18185 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18186
18187 # Shell to use when invoking shell scripts.
18188 SHELL=$lt_SHELL
18189
18190 # Whether or not to build shared libraries.
18191 build_libtool_libs=$enable_shared
18192
18193 # Whether or not to build static libraries.
18194 build_old_libs=$enable_static
18195
18196 # Whether or not to add -lc for building shared libraries.
18197 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18198
18199 # Whether or not to disallow shared libs when runtime libs are static
18200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18201
18202 # Whether or not to optimize for fast installation.
18203 fast_install=$enable_fast_install
18204
18205 # The host system.
18206 host_alias=$host_alias
18207 host=$host
18208
18209 # An echo program that does not interpret backslashes.
18210 echo=$lt_echo
18211
18212 # The archiver.
18213 AR=$lt_AR
18214 AR_FLAGS=$lt_AR_FLAGS
18215
18216 # A C compiler.
18217 LTCC=$lt_LTCC
18218
18219 # A language-specific compiler.
18220 CC=$lt_compiler_GCJ
18221
18222 # Is the compiler the GNU C compiler?
18223 with_gcc=$GCC_GCJ
18224
18225 # An ERE matcher.
18226 EGREP=$lt_EGREP
18227
18228 # The linker used to build libraries.
18229 LD=$lt_LD_GCJ
18230
18231 # Whether we need hard or soft links.
18232 LN_S=$lt_LN_S
18233
18234 # A BSD-compatible nm program.
18235 NM=$lt_NM
18236
18237 # A symbol stripping program
18238 STRIP=$lt_STRIP
18239
18240 # Used to examine libraries when file_magic_cmd begins "file"
18241 MAGIC_CMD=$MAGIC_CMD
18242
18243 # Used on cygwin: DLL creation program.
18244 DLLTOOL="$DLLTOOL"
18245
18246 # Used on cygwin: object dumper.
18247 OBJDUMP="$OBJDUMP"
18248
18249 # Used on cygwin: assembler.
18250 AS="$AS"
18251
18252 # The name of the directory that contains temporary libtool files.
18253 objdir=$objdir
18254
18255 # How to create reloadable object files.
18256 reload_flag=$lt_reload_flag
18257 reload_cmds=$lt_reload_cmds
18258
18259 # How to pass a linker flag through the compiler.
18260 wl=$lt_lt_prog_compiler_wl_GCJ
18261
18262 # Object file suffix (normally "o").
18263 objext="$ac_objext"
18264
18265 # Old archive suffix (normally "a").
18266 libext="$libext"
18267
18268 # Shared library suffix (normally ".so").
18269 shrext='$shrext'
18270
18271 # Executable file suffix (normally "").
18272 exeext="$exeext"
18273
18274 # Additional compiler flags for building library objects.
18275 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18276 pic_mode=$pic_mode
18277
18278 # What is the maximum length of a command?
18279 max_cmd_len=$lt_cv_sys_max_cmd_len
18280
18281 # Does compiler simultaneously support -c and -o options?
18282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18283
18284 # Must we lock files when doing compilation ?
18285 need_locks=$lt_need_locks
18286
18287 # Do we need the lib prefix for modules?
18288 need_lib_prefix=$need_lib_prefix
18289
18290 # Do we need a version for libraries?
18291 need_version=$need_version
18292
18293 # Whether dlopen is supported.
18294 dlopen_support=$enable_dlopen
18295
18296 # Whether dlopen of programs is supported.
18297 dlopen_self=$enable_dlopen_self
18298
18299 # Whether dlopen of statically linked programs is supported.
18300 dlopen_self_static=$enable_dlopen_self_static
18301
18302 # Compiler flag to prevent dynamic linking.
18303 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18304
18305 # Compiler flag to turn off builtin functions.
18306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18307
18308 # Compiler flag to allow reflexive dlopens.
18309 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18310
18311 # Compiler flag to generate shared objects directly from archives.
18312 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18313
18314 # Compiler flag to generate thread-safe objects.
18315 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18316
18317 # Library versioning type.
18318 version_type=$version_type
18319
18320 # Format of library name prefix.
18321 libname_spec=$lt_libname_spec
18322
18323 # List of archive names.  First name is the real one, the rest are links.
18324 # The last name is the one that the linker finds with -lNAME.
18325 library_names_spec=$lt_library_names_spec
18326
18327 # The coded name of the library, if different from the real name.
18328 soname_spec=$lt_soname_spec
18329
18330 # Commands used to build and install an old-style archive.
18331 RANLIB=$lt_RANLIB
18332 old_archive_cmds=$lt_old_archive_cmds_GCJ
18333 old_postinstall_cmds=$lt_old_postinstall_cmds
18334 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18335
18336 # Create an old-style archive from a shared archive.
18337 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18338
18339 # Create a temporary old-style archive to link instead of a shared archive.
18340 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18341
18342 # Commands used to build and install a shared archive.
18343 archive_cmds=$lt_archive_cmds_GCJ
18344 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18345 postinstall_cmds=$lt_postinstall_cmds
18346 postuninstall_cmds=$lt_postuninstall_cmds
18347
18348 # Commands used to build a loadable module (assumed same as above if empty)
18349 module_cmds=$lt_module_cmds_GCJ
18350 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18351
18352 # Commands to strip libraries.
18353 old_striplib=$lt_old_striplib
18354 striplib=$lt_striplib
18355
18356 # Dependencies to place before the objects being linked to create a
18357 # shared library.
18358 predep_objects=$lt_predep_objects_GCJ
18359
18360 # Dependencies to place after the objects being linked to create a
18361 # shared library.
18362 postdep_objects=$lt_postdep_objects_GCJ
18363
18364 # Dependencies to place before the objects being linked to create a
18365 # shared library.
18366 predeps=$lt_predeps_GCJ
18367
18368 # Dependencies to place after the objects being linked to create a
18369 # shared library.
18370 postdeps=$lt_postdeps_GCJ
18371
18372 # The library search path used internally by the compiler when linking
18373 # a shared library.
18374 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18375
18376 # Method to check whether dependent libraries are shared objects.
18377 deplibs_check_method=$lt_deplibs_check_method
18378
18379 # Command to use when deplibs_check_method == file_magic.
18380 file_magic_cmd=$lt_file_magic_cmd
18381
18382 # Flag that allows shared libraries with undefined symbols to be built.
18383 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18384
18385 # Flag that forces no undefined symbols.
18386 no_undefined_flag=$lt_no_undefined_flag_GCJ
18387
18388 # Commands used to finish a libtool library installation in a directory.
18389 finish_cmds=$lt_finish_cmds
18390
18391 # Same as above, but a single script fragment to be evaled but not shown.
18392 finish_eval=$lt_finish_eval
18393
18394 # Take the output of nm and produce a listing of raw symbols and C names.
18395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18396
18397 # Transform the output of nm in a proper C declaration
18398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18399
18400 # Transform the output of nm in a C name address pair
18401 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18402
18403 # This is the shared library runtime path variable.
18404 runpath_var=$runpath_var
18405
18406 # This is the shared library path variable.
18407 shlibpath_var=$shlibpath_var
18408
18409 # Is shlibpath searched before the hard-coded library search path?
18410 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18411
18412 # How to hardcode a shared library path into an executable.
18413 hardcode_action=$hardcode_action_GCJ
18414
18415 # Whether we should hardcode library paths into libraries.
18416 hardcode_into_libs=$hardcode_into_libs
18417
18418 # Flag to hardcode \$libdir into a binary during linking.
18419 # This must work even if \$libdir does not exist.
18420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18421
18422 # If ld is used when linking, flag to hardcode \$libdir into
18423 # a binary during linking. This must work even if \$libdir does
18424 # not exist.
18425 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18426
18427 # Whether we need a single -rpath flag with a separated argument.
18428 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18429
18430 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18431 # resulting binary.
18432 hardcode_direct=$hardcode_direct_GCJ
18433
18434 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18435 # resulting binary.
18436 hardcode_minus_L=$hardcode_minus_L_GCJ
18437
18438 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18439 # the resulting binary.
18440 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18441
18442 # Set to yes if building a shared library automatically hardcodes DIR into the library
18443 # and all subsequent libraries and executables linked against it.
18444 hardcode_automatic=$hardcode_automatic_GCJ
18445
18446 # Variables whose values should be saved in libtool wrapper scripts and
18447 # restored at relink time.
18448 variables_saved_for_relink="$variables_saved_for_relink"
18449
18450 # Whether libtool must link a program against all its dependency libraries.
18451 link_all_deplibs=$link_all_deplibs_GCJ
18452
18453 # Compile-time system search path for libraries
18454 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18455
18456 # Run-time system search path for libraries
18457 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18458
18459 # Fix the shell variable \$srcfile for the compiler.
18460 fix_srcfile_path="$fix_srcfile_path_GCJ"
18461
18462 # Set to yes if exported symbols are required.
18463 always_export_symbols=$always_export_symbols_GCJ
18464
18465 # The commands to list exported symbols.
18466 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18467
18468 # The commands to extract the exported symbol list from a shared archive.
18469 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18470
18471 # Symbols that should not be listed in the preloaded symbols.
18472 exclude_expsyms=$lt_exclude_expsyms_GCJ
18473
18474 # Symbols that must always be exported.
18475 include_expsyms=$lt_include_expsyms_GCJ
18476
18477 # ### END LIBTOOL TAG CONFIG: $tagname
18478
18479 __EOF__
18480
18481
18482 else
18483   # If there is no Makefile yet, we rely on a make rule to execute
18484   # `config.status --recheck' to rerun these tests and create the
18485   # libtool script then.
18486   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18487   if test -f "$ltmain_in"; then
18488     test -f Makefile && make "$ltmain"
18489   fi
18490 fi
18491
18492
18493 ac_ext=c
18494 ac_cpp='$CPP $CPPFLAGS'
18495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18498
18499 CC="$lt_save_CC"
18500
18501         else
18502           tagname=""
18503         fi
18504         ;;
18505
18506       RC)
18507
18508
18509
18510 # Source file extension for RC test sources.
18511 ac_ext=rc
18512
18513 # Object file extension for compiled RC test sources.
18514 objext=o
18515 objext_RC=$objext
18516
18517 # Code to be used in simple compile tests
18518 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18519
18520 # Code to be used in simple link tests
18521 lt_simple_link_test_code="$lt_simple_compile_test_code"
18522
18523 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18524
18525 # If no C compiler was specified, use CC.
18526 LTCC=${LTCC-"$CC"}
18527
18528 # Allow CC to be a program name with arguments.
18529 compiler=$CC
18530
18531
18532 # Allow CC to be a program name with arguments.
18533 lt_save_CC="$CC"
18534 CC=${RC-"windres"}
18535 compiler=$CC
18536 compiler_RC=$CC
18537 lt_cv_prog_compiler_c_o_RC=yes
18538
18539 # The else clause should only fire when bootstrapping the
18540 # libtool distribution, otherwise you forgot to ship ltmain.sh
18541 # with your package, and you will get complaints that there are
18542 # no rules to generate ltmain.sh.
18543 if test -f "$ltmain"; then
18544   # See if we are running on zsh, and set the options which allow our commands through
18545   # without removal of \ escapes.
18546   if test -n "${ZSH_VERSION+set}" ; then
18547     setopt NO_GLOB_SUBST
18548   fi
18549   # Now quote all the things that may contain metacharacters while being
18550   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18551   # variables and quote the copies for generation of the libtool script.
18552   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18553     SED SHELL STRIP \
18554     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18555     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18556     deplibs_check_method reload_flag reload_cmds need_locks \
18557     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18558     lt_cv_sys_global_symbol_to_c_name_address \
18559     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18560     old_postinstall_cmds old_postuninstall_cmds \
18561     compiler_RC \
18562     CC_RC \
18563     LD_RC \
18564     lt_prog_compiler_wl_RC \
18565     lt_prog_compiler_pic_RC \
18566     lt_prog_compiler_static_RC \
18567     lt_prog_compiler_no_builtin_flag_RC \
18568     export_dynamic_flag_spec_RC \
18569     thread_safe_flag_spec_RC \
18570     whole_archive_flag_spec_RC \
18571     enable_shared_with_static_runtimes_RC \
18572     old_archive_cmds_RC \
18573     old_archive_from_new_cmds_RC \
18574     predep_objects_RC \
18575     postdep_objects_RC \
18576     predeps_RC \
18577     postdeps_RC \
18578     compiler_lib_search_path_RC \
18579     archive_cmds_RC \
18580     archive_expsym_cmds_RC \
18581     postinstall_cmds_RC \
18582     postuninstall_cmds_RC \
18583     old_archive_from_expsyms_cmds_RC \
18584     allow_undefined_flag_RC \
18585     no_undefined_flag_RC \
18586     export_symbols_cmds_RC \
18587     hardcode_libdir_flag_spec_RC \
18588     hardcode_libdir_flag_spec_ld_RC \
18589     hardcode_libdir_separator_RC \
18590     hardcode_automatic_RC \
18591     module_cmds_RC \
18592     module_expsym_cmds_RC \
18593     lt_cv_prog_compiler_c_o_RC \
18594     exclude_expsyms_RC \
18595     include_expsyms_RC; do
18596
18597     case $var in
18598     old_archive_cmds_RC | \
18599     old_archive_from_new_cmds_RC | \
18600     archive_cmds_RC | \
18601     archive_expsym_cmds_RC | \
18602     module_cmds_RC | \
18603     module_expsym_cmds_RC | \
18604     old_archive_from_expsyms_cmds_RC | \
18605     export_symbols_cmds_RC | \
18606     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18607     postinstall_cmds | postuninstall_cmds | \
18608     old_postinstall_cmds | old_postuninstall_cmds | \
18609     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18610       # Double-quote double-evaled strings.
18611       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18612       ;;
18613     *)
18614       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18615       ;;
18616     esac
18617   done
18618
18619   case $lt_echo in
18620   *'\$0 --fallback-echo"')
18621     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18622     ;;
18623   esac
18624
18625 cfgfile="$ofile"
18626
18627   cat <<__EOF__ >> "$cfgfile"
18628 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18629
18630 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18631
18632 # Shell to use when invoking shell scripts.
18633 SHELL=$lt_SHELL
18634
18635 # Whether or not to build shared libraries.
18636 build_libtool_libs=$enable_shared
18637
18638 # Whether or not to build static libraries.
18639 build_old_libs=$enable_static
18640
18641 # Whether or not to add -lc for building shared libraries.
18642 build_libtool_need_lc=$archive_cmds_need_lc_RC
18643
18644 # Whether or not to disallow shared libs when runtime libs are static
18645 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18646
18647 # Whether or not to optimize for fast installation.
18648 fast_install=$enable_fast_install
18649
18650 # The host system.
18651 host_alias=$host_alias
18652 host=$host
18653
18654 # An echo program that does not interpret backslashes.
18655 echo=$lt_echo
18656
18657 # The archiver.
18658 AR=$lt_AR
18659 AR_FLAGS=$lt_AR_FLAGS
18660
18661 # A C compiler.
18662 LTCC=$lt_LTCC
18663
18664 # A language-specific compiler.
18665 CC=$lt_compiler_RC
18666
18667 # Is the compiler the GNU C compiler?
18668 with_gcc=$GCC_RC
18669
18670 # An ERE matcher.
18671 EGREP=$lt_EGREP
18672
18673 # The linker used to build libraries.
18674 LD=$lt_LD_RC
18675
18676 # Whether we need hard or soft links.
18677 LN_S=$lt_LN_S
18678
18679 # A BSD-compatible nm program.
18680 NM=$lt_NM
18681
18682 # A symbol stripping program
18683 STRIP=$lt_STRIP
18684
18685 # Used to examine libraries when file_magic_cmd begins "file"
18686 MAGIC_CMD=$MAGIC_CMD
18687
18688 # Used on cygwin: DLL creation program.
18689 DLLTOOL="$DLLTOOL"
18690
18691 # Used on cygwin: object dumper.
18692 OBJDUMP="$OBJDUMP"
18693
18694 # Used on cygwin: assembler.
18695 AS="$AS"
18696
18697 # The name of the directory that contains temporary libtool files.
18698 objdir=$objdir
18699
18700 # How to create reloadable object files.
18701 reload_flag=$lt_reload_flag
18702 reload_cmds=$lt_reload_cmds
18703
18704 # How to pass a linker flag through the compiler.
18705 wl=$lt_lt_prog_compiler_wl_RC
18706
18707 # Object file suffix (normally "o").
18708 objext="$ac_objext"
18709
18710 # Old archive suffix (normally "a").
18711 libext="$libext"
18712
18713 # Shared library suffix (normally ".so").
18714 shrext='$shrext'
18715
18716 # Executable file suffix (normally "").
18717 exeext="$exeext"
18718
18719 # Additional compiler flags for building library objects.
18720 pic_flag=$lt_lt_prog_compiler_pic_RC
18721 pic_mode=$pic_mode
18722
18723 # What is the maximum length of a command?
18724 max_cmd_len=$lt_cv_sys_max_cmd_len
18725
18726 # Does compiler simultaneously support -c and -o options?
18727 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18728
18729 # Must we lock files when doing compilation ?
18730 need_locks=$lt_need_locks
18731
18732 # Do we need the lib prefix for modules?
18733 need_lib_prefix=$need_lib_prefix
18734
18735 # Do we need a version for libraries?
18736 need_version=$need_version
18737
18738 # Whether dlopen is supported.
18739 dlopen_support=$enable_dlopen
18740
18741 # Whether dlopen of programs is supported.
18742 dlopen_self=$enable_dlopen_self
18743
18744 # Whether dlopen of statically linked programs is supported.
18745 dlopen_self_static=$enable_dlopen_self_static
18746
18747 # Compiler flag to prevent dynamic linking.
18748 link_static_flag=$lt_lt_prog_compiler_static_RC
18749
18750 # Compiler flag to turn off builtin functions.
18751 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18752
18753 # Compiler flag to allow reflexive dlopens.
18754 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18755
18756 # Compiler flag to generate shared objects directly from archives.
18757 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18758
18759 # Compiler flag to generate thread-safe objects.
18760 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18761
18762 # Library versioning type.
18763 version_type=$version_type
18764
18765 # Format of library name prefix.
18766 libname_spec=$lt_libname_spec
18767
18768 # List of archive names.  First name is the real one, the rest are links.
18769 # The last name is the one that the linker finds with -lNAME.
18770 library_names_spec=$lt_library_names_spec
18771
18772 # The coded name of the library, if different from the real name.
18773 soname_spec=$lt_soname_spec
18774
18775 # Commands used to build and install an old-style archive.
18776 RANLIB=$lt_RANLIB
18777 old_archive_cmds=$lt_old_archive_cmds_RC
18778 old_postinstall_cmds=$lt_old_postinstall_cmds
18779 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18780
18781 # Create an old-style archive from a shared archive.
18782 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18783
18784 # Create a temporary old-style archive to link instead of a shared archive.
18785 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18786
18787 # Commands used to build and install a shared archive.
18788 archive_cmds=$lt_archive_cmds_RC
18789 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18790 postinstall_cmds=$lt_postinstall_cmds
18791 postuninstall_cmds=$lt_postuninstall_cmds
18792
18793 # Commands used to build a loadable module (assumed same as above if empty)
18794 module_cmds=$lt_module_cmds_RC
18795 module_expsym_cmds=$lt_module_expsym_cmds_RC
18796
18797 # Commands to strip libraries.
18798 old_striplib=$lt_old_striplib
18799 striplib=$lt_striplib
18800
18801 # Dependencies to place before the objects being linked to create a
18802 # shared library.
18803 predep_objects=$lt_predep_objects_RC
18804
18805 # Dependencies to place after the objects being linked to create a
18806 # shared library.
18807 postdep_objects=$lt_postdep_objects_RC
18808
18809 # Dependencies to place before the objects being linked to create a
18810 # shared library.
18811 predeps=$lt_predeps_RC
18812
18813 # Dependencies to place after the objects being linked to create a
18814 # shared library.
18815 postdeps=$lt_postdeps_RC
18816
18817 # The library search path used internally by the compiler when linking
18818 # a shared library.
18819 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18820
18821 # Method to check whether dependent libraries are shared objects.
18822 deplibs_check_method=$lt_deplibs_check_method
18823
18824 # Command to use when deplibs_check_method == file_magic.
18825 file_magic_cmd=$lt_file_magic_cmd
18826
18827 # Flag that allows shared libraries with undefined symbols to be built.
18828 allow_undefined_flag=$lt_allow_undefined_flag_RC
18829
18830 # Flag that forces no undefined symbols.
18831 no_undefined_flag=$lt_no_undefined_flag_RC
18832
18833 # Commands used to finish a libtool library installation in a directory.
18834 finish_cmds=$lt_finish_cmds
18835
18836 # Same as above, but a single script fragment to be evaled but not shown.
18837 finish_eval=$lt_finish_eval
18838
18839 # Take the output of nm and produce a listing of raw symbols and C names.
18840 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18841
18842 # Transform the output of nm in a proper C declaration
18843 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18844
18845 # Transform the output of nm in a C name address pair
18846 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18847
18848 # This is the shared library runtime path variable.
18849 runpath_var=$runpath_var
18850
18851 # This is the shared library path variable.
18852 shlibpath_var=$shlibpath_var
18853
18854 # Is shlibpath searched before the hard-coded library search path?
18855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18856
18857 # How to hardcode a shared library path into an executable.
18858 hardcode_action=$hardcode_action_RC
18859
18860 # Whether we should hardcode library paths into libraries.
18861 hardcode_into_libs=$hardcode_into_libs
18862
18863 # Flag to hardcode \$libdir into a binary during linking.
18864 # This must work even if \$libdir does not exist.
18865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18866
18867 # If ld is used when linking, flag to hardcode \$libdir into
18868 # a binary during linking. This must work even if \$libdir does
18869 # not exist.
18870 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18871
18872 # Whether we need a single -rpath flag with a separated argument.
18873 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18874
18875 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18876 # resulting binary.
18877 hardcode_direct=$hardcode_direct_RC
18878
18879 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18880 # resulting binary.
18881 hardcode_minus_L=$hardcode_minus_L_RC
18882
18883 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18884 # the resulting binary.
18885 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18886
18887 # Set to yes if building a shared library automatically hardcodes DIR into the library
18888 # and all subsequent libraries and executables linked against it.
18889 hardcode_automatic=$hardcode_automatic_RC
18890
18891 # Variables whose values should be saved in libtool wrapper scripts and
18892 # restored at relink time.
18893 variables_saved_for_relink="$variables_saved_for_relink"
18894
18895 # Whether libtool must link a program against all its dependency libraries.
18896 link_all_deplibs=$link_all_deplibs_RC
18897
18898 # Compile-time system search path for libraries
18899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18900
18901 # Run-time system search path for libraries
18902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18903
18904 # Fix the shell variable \$srcfile for the compiler.
18905 fix_srcfile_path="$fix_srcfile_path_RC"
18906
18907 # Set to yes if exported symbols are required.
18908 always_export_symbols=$always_export_symbols_RC
18909
18910 # The commands to list exported symbols.
18911 export_symbols_cmds=$lt_export_symbols_cmds_RC
18912
18913 # The commands to extract the exported symbol list from a shared archive.
18914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18915
18916 # Symbols that should not be listed in the preloaded symbols.
18917 exclude_expsyms=$lt_exclude_expsyms_RC
18918
18919 # Symbols that must always be exported.
18920 include_expsyms=$lt_include_expsyms_RC
18921
18922 # ### END LIBTOOL TAG CONFIG: $tagname
18923
18924 __EOF__
18925
18926
18927 else
18928   # If there is no Makefile yet, we rely on a make rule to execute
18929   # `config.status --recheck' to rerun these tests and create the
18930   # libtool script then.
18931   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18932   if test -f "$ltmain_in"; then
18933     test -f Makefile && make "$ltmain"
18934   fi
18935 fi
18936
18937
18938 ac_ext=c
18939 ac_cpp='$CPP $CPPFLAGS'
18940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18943
18944 CC="$lt_save_CC"
18945
18946         ;;
18947
18948       *)
18949         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18950 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18951    { (exit 1); exit 1; }; }
18952         ;;
18953       esac
18954
18955       # Append the new tag name to the list of available tags.
18956       if test -n "$tagname" ; then
18957       available_tags="$available_tags $tagname"
18958     fi
18959     fi
18960   done
18961   IFS="$lt_save_ifs"
18962
18963   # Now substitute the updated list of available tags.
18964   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18965     mv "${ofile}T" "$ofile"
18966     chmod +x "$ofile"
18967   else
18968     rm -f "${ofile}T"
18969     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18970 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18971    { (exit 1); exit 1; }; }
18972   fi
18973 fi
18974
18975
18976
18977 # This can be used to rebuild libtool when needed
18978 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18979
18980 # Always use our own libtool.
18981 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18982
18983 # Prevent multiple expansion
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005 # declare the modules (no optional module)
19006
19007 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19008 ACLOCAL="$ACLOCAL -I acmacro"
19009
19010
19011 ac_ext=c
19012 ac_cpp='$CPP $CPPFLAGS'
19013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19016 if test -n "$ac_tool_prefix"; then
19017   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19019 echo "$as_me:$LINENO: checking for $ac_word" >&5
19020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19021 if test "${ac_cv_prog_CC+set}" = set; then
19022   echo $ECHO_N "(cached) $ECHO_C" >&6
19023 else
19024   if test -n "$CC"; then
19025   ac_cv_prog_CC="$CC" # Let the user override the test.
19026 else
19027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19028 for as_dir in $PATH
19029 do
19030   IFS=$as_save_IFS
19031   test -z "$as_dir" && as_dir=.
19032   for ac_exec_ext in '' $ac_executable_extensions; do
19033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19034     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19036     break 2
19037   fi
19038 done
19039 done
19040
19041 fi
19042 fi
19043 CC=$ac_cv_prog_CC
19044 if test -n "$CC"; then
19045   echo "$as_me:$LINENO: result: $CC" >&5
19046 echo "${ECHO_T}$CC" >&6
19047 else
19048   echo "$as_me:$LINENO: result: no" >&5
19049 echo "${ECHO_T}no" >&6
19050 fi
19051
19052 fi
19053 if test -z "$ac_cv_prog_CC"; then
19054   ac_ct_CC=$CC
19055   # Extract the first word of "gcc", so it can be a program name with args.
19056 set dummy gcc; ac_word=$2
19057 echo "$as_me:$LINENO: checking for $ac_word" >&5
19058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   if test -n "$ac_ct_CC"; then
19063   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19064 else
19065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19066 for as_dir in $PATH
19067 do
19068   IFS=$as_save_IFS
19069   test -z "$as_dir" && as_dir=.
19070   for ac_exec_ext in '' $ac_executable_extensions; do
19071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19072     ac_cv_prog_ac_ct_CC="gcc"
19073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19074     break 2
19075   fi
19076 done
19077 done
19078
19079 fi
19080 fi
19081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19082 if test -n "$ac_ct_CC"; then
19083   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19084 echo "${ECHO_T}$ac_ct_CC" >&6
19085 else
19086   echo "$as_me:$LINENO: result: no" >&5
19087 echo "${ECHO_T}no" >&6
19088 fi
19089
19090   CC=$ac_ct_CC
19091 else
19092   CC="$ac_cv_prog_CC"
19093 fi
19094
19095 if test -z "$CC"; then
19096   if test -n "$ac_tool_prefix"; then
19097   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19098 set dummy ${ac_tool_prefix}cc; ac_word=$2
19099 echo "$as_me:$LINENO: checking for $ac_word" >&5
19100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19101 if test "${ac_cv_prog_CC+set}" = set; then
19102   echo $ECHO_N "(cached) $ECHO_C" >&6
19103 else
19104   if test -n "$CC"; then
19105   ac_cv_prog_CC="$CC" # Let the user override the test.
19106 else
19107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19108 for as_dir in $PATH
19109 do
19110   IFS=$as_save_IFS
19111   test -z "$as_dir" && as_dir=.
19112   for ac_exec_ext in '' $ac_executable_extensions; do
19113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19114     ac_cv_prog_CC="${ac_tool_prefix}cc"
19115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19116     break 2
19117   fi
19118 done
19119 done
19120
19121 fi
19122 fi
19123 CC=$ac_cv_prog_CC
19124 if test -n "$CC"; then
19125   echo "$as_me:$LINENO: result: $CC" >&5
19126 echo "${ECHO_T}$CC" >&6
19127 else
19128   echo "$as_me:$LINENO: result: no" >&5
19129 echo "${ECHO_T}no" >&6
19130 fi
19131
19132 fi
19133 if test -z "$ac_cv_prog_CC"; then
19134   ac_ct_CC=$CC
19135   # Extract the first word of "cc", so it can be a program name with args.
19136 set dummy cc; ac_word=$2
19137 echo "$as_me:$LINENO: checking for $ac_word" >&5
19138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19140   echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142   if test -n "$ac_ct_CC"; then
19143   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19144 else
19145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146 for as_dir in $PATH
19147 do
19148   IFS=$as_save_IFS
19149   test -z "$as_dir" && as_dir=.
19150   for ac_exec_ext in '' $ac_executable_extensions; do
19151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19152     ac_cv_prog_ac_ct_CC="cc"
19153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19154     break 2
19155   fi
19156 done
19157 done
19158
19159 fi
19160 fi
19161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19162 if test -n "$ac_ct_CC"; then
19163   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19164 echo "${ECHO_T}$ac_ct_CC" >&6
19165 else
19166   echo "$as_me:$LINENO: result: no" >&5
19167 echo "${ECHO_T}no" >&6
19168 fi
19169
19170   CC=$ac_ct_CC
19171 else
19172   CC="$ac_cv_prog_CC"
19173 fi
19174
19175 fi
19176 if test -z "$CC"; then
19177   # Extract the first word of "cc", so it can be a program name with args.
19178 set dummy cc; ac_word=$2
19179 echo "$as_me:$LINENO: checking for $ac_word" >&5
19180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19181 if test "${ac_cv_prog_CC+set}" = set; then
19182   echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184   if test -n "$CC"; then
19185   ac_cv_prog_CC="$CC" # Let the user override the test.
19186 else
19187   ac_prog_rejected=no
19188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19189 for as_dir in $PATH
19190 do
19191   IFS=$as_save_IFS
19192   test -z "$as_dir" && as_dir=.
19193   for ac_exec_ext in '' $ac_executable_extensions; do
19194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19195     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19196        ac_prog_rejected=yes
19197        continue
19198      fi
19199     ac_cv_prog_CC="cc"
19200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19201     break 2
19202   fi
19203 done
19204 done
19205
19206 if test $ac_prog_rejected = yes; then
19207   # We found a bogon in the path, so make sure we never use it.
19208   set dummy $ac_cv_prog_CC
19209   shift
19210   if test $# != 0; then
19211     # We chose a different compiler from the bogus one.
19212     # However, it has the same basename, so the bogon will be chosen
19213     # first if we set CC to just the basename; use the full file name.
19214     shift
19215     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19216   fi
19217 fi
19218 fi
19219 fi
19220 CC=$ac_cv_prog_CC
19221 if test -n "$CC"; then
19222   echo "$as_me:$LINENO: result: $CC" >&5
19223 echo "${ECHO_T}$CC" >&6
19224 else
19225   echo "$as_me:$LINENO: result: no" >&5
19226 echo "${ECHO_T}no" >&6
19227 fi
19228
19229 fi
19230 if test -z "$CC"; then
19231   if test -n "$ac_tool_prefix"; then
19232   for ac_prog in cl
19233   do
19234     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19236 echo "$as_me:$LINENO: checking for $ac_word" >&5
19237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19238 if test "${ac_cv_prog_CC+set}" = set; then
19239   echo $ECHO_N "(cached) $ECHO_C" >&6
19240 else
19241   if test -n "$CC"; then
19242   ac_cv_prog_CC="$CC" # Let the user override the test.
19243 else
19244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19245 for as_dir in $PATH
19246 do
19247   IFS=$as_save_IFS
19248   test -z "$as_dir" && as_dir=.
19249   for ac_exec_ext in '' $ac_executable_extensions; do
19250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19251     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19253     break 2
19254   fi
19255 done
19256 done
19257
19258 fi
19259 fi
19260 CC=$ac_cv_prog_CC
19261 if test -n "$CC"; then
19262   echo "$as_me:$LINENO: result: $CC" >&5
19263 echo "${ECHO_T}$CC" >&6
19264 else
19265   echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6
19267 fi
19268
19269     test -n "$CC" && break
19270   done
19271 fi
19272 if test -z "$CC"; then
19273   ac_ct_CC=$CC
19274   for ac_prog in cl
19275 do
19276   # Extract the first word of "$ac_prog", so it can be a program name with args.
19277 set dummy $ac_prog; ac_word=$2
19278 echo "$as_me:$LINENO: checking for $ac_word" >&5
19279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19281   echo $ECHO_N "(cached) $ECHO_C" >&6
19282 else
19283   if test -n "$ac_ct_CC"; then
19284   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19285 else
19286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19287 for as_dir in $PATH
19288 do
19289   IFS=$as_save_IFS
19290   test -z "$as_dir" && as_dir=.
19291   for ac_exec_ext in '' $ac_executable_extensions; do
19292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19293     ac_cv_prog_ac_ct_CC="$ac_prog"
19294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19295     break 2
19296   fi
19297 done
19298 done
19299
19300 fi
19301 fi
19302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19303 if test -n "$ac_ct_CC"; then
19304   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19305 echo "${ECHO_T}$ac_ct_CC" >&6
19306 else
19307   echo "$as_me:$LINENO: result: no" >&5
19308 echo "${ECHO_T}no" >&6
19309 fi
19310
19311   test -n "$ac_ct_CC" && break
19312 done
19313
19314   CC=$ac_ct_CC
19315 fi
19316
19317 fi
19318
19319
19320 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19321 See \`config.log' for more details." >&5
19322 echo "$as_me: error: no acceptable C compiler found in \$PATH
19323 See \`config.log' for more details." >&2;}
19324    { (exit 1); exit 1; }; }
19325
19326 # Provide some information about the compiler.
19327 echo "$as_me:$LINENO:" \
19328      "checking for C compiler version" >&5
19329 ac_compiler=`set X $ac_compile; echo $2`
19330 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19331   (eval $ac_compiler --version </dev/null >&5) 2>&5
19332   ac_status=$?
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); }
19335 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19336   (eval $ac_compiler -v </dev/null >&5) 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }
19340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19341   (eval $ac_compiler -V </dev/null >&5) 2>&5
19342   ac_status=$?
19343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344   (exit $ac_status); }
19345
19346 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19349   echo $ECHO_N "(cached) $ECHO_C" >&6
19350 else
19351   cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h.  */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h.  */
19357
19358 int
19359 main ()
19360 {
19361 #ifndef __GNUC__
19362        choke me
19363 #endif
19364
19365   ;
19366   return 0;
19367 }
19368 _ACEOF
19369 rm -f conftest.$ac_objext
19370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19371   (eval $ac_compile) 2>conftest.er1
19372   ac_status=$?
19373   grep -v '^ *+' conftest.er1 >conftest.err
19374   rm -f conftest.er1
19375   cat conftest.err >&5
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); } &&
19378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380   (eval $ac_try) 2>&5
19381   ac_status=$?
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); }; } &&
19384          { ac_try='test -s conftest.$ac_objext'
19385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386   (eval $ac_try) 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; }; then
19390   ac_compiler_gnu=yes
19391 else
19392   echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395 ac_compiler_gnu=no
19396 fi
19397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19398 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19399
19400 fi
19401 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19402 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19403 GCC=`test $ac_compiler_gnu = yes && echo yes`
19404 ac_test_CFLAGS=${CFLAGS+set}
19405 ac_save_CFLAGS=$CFLAGS
19406 CFLAGS="-g"
19407 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19409 if test "${ac_cv_prog_cc_g+set}" = set; then
19410   echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412   cat >conftest.$ac_ext <<_ACEOF
19413 /* confdefs.h.  */
19414 _ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h.  */
19418
19419 int
19420 main ()
19421 {
19422
19423   ;
19424   return 0;
19425 }
19426 _ACEOF
19427 rm -f conftest.$ac_objext
19428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19429   (eval $ac_compile) 2>conftest.er1
19430   ac_status=$?
19431   grep -v '^ *+' conftest.er1 >conftest.err
19432   rm -f conftest.er1
19433   cat conftest.err >&5
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); } &&
19436          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438   (eval $ac_try) 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); }; } &&
19442          { ac_try='test -s conftest.$ac_objext'
19443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444   (eval $ac_try) 2>&5
19445   ac_status=$?
19446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447   (exit $ac_status); }; }; then
19448   ac_cv_prog_cc_g=yes
19449 else
19450   echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453 ac_cv_prog_cc_g=no
19454 fi
19455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19456 fi
19457 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19459 if test "$ac_test_CFLAGS" = set; then
19460   CFLAGS=$ac_save_CFLAGS
19461 elif test $ac_cv_prog_cc_g = yes; then
19462   if test "$GCC" = yes; then
19463     CFLAGS="-g -O2"
19464   else
19465     CFLAGS="-g"
19466   fi
19467 else
19468   if test "$GCC" = yes; then
19469     CFLAGS="-O2"
19470   else
19471     CFLAGS=
19472   fi
19473 fi
19474 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19477   echo $ECHO_N "(cached) $ECHO_C" >&6
19478 else
19479   ac_cv_prog_cc_stdc=no
19480 ac_save_CC=$CC
19481 cat >conftest.$ac_ext <<_ACEOF
19482 /* confdefs.h.  */
19483 _ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h.  */
19487 #include <stdarg.h>
19488 #include <stdio.h>
19489 #include <sys/types.h>
19490 #include <sys/stat.h>
19491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19492 struct buf { int x; };
19493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19494 static char *e (p, i)
19495      char **p;
19496      int i;
19497 {
19498   return p[i];
19499 }
19500 static char *f (char * (*g) (char **, int), char **p, ...)
19501 {
19502   char *s;
19503   va_list v;
19504   va_start (v,p);
19505   s = g (p, va_arg (v,int));
19506   va_end (v);
19507   return s;
19508 }
19509
19510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19511    function prototypes and stuff, but not '\xHH' hex character constants.
19512    These don't provoke an error unfortunately, instead are silently treated
19513    as 'x'.  The following induces an error, until -std1 is added to get
19514    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19515    array size at least.  It's necessary to write '\x00'==0 to get something
19516    that's true only with -std1.  */
19517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19518
19519 int test (int i, double x);
19520 struct s1 {int (*f) (int a);};
19521 struct s2 {int (*f) (double a);};
19522 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19523 int argc;
19524 char **argv;
19525 int
19526 main ()
19527 {
19528 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 # Don't try gcc -ansi; that turns off useful extensions and
19534 # breaks some systems' header files.
19535 # AIX                   -qlanglvl=ansi
19536 # Ultrix and OSF/1      -std1
19537 # HP-UX 10.20 and later -Ae
19538 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19539 # SVR4                  -Xc -D__EXTENSIONS__
19540 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19541 do
19542   CC="$ac_save_CC $ac_arg"
19543   rm -f conftest.$ac_objext
19544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19545   (eval $ac_compile) 2>conftest.er1
19546   ac_status=$?
19547   grep -v '^ *+' conftest.er1 >conftest.err
19548   rm -f conftest.er1
19549   cat conftest.err >&5
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); } &&
19552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554   (eval $ac_try) 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; } &&
19558          { ac_try='test -s conftest.$ac_objext'
19559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560   (eval $ac_try) 2>&5
19561   ac_status=$?
19562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563   (exit $ac_status); }; }; then
19564   ac_cv_prog_cc_stdc=$ac_arg
19565 break
19566 else
19567   echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570 fi
19571 rm -f conftest.err conftest.$ac_objext
19572 done
19573 rm -f conftest.$ac_ext conftest.$ac_objext
19574 CC=$ac_save_CC
19575
19576 fi
19577
19578 case "x$ac_cv_prog_cc_stdc" in
19579   x|xno)
19580     echo "$as_me:$LINENO: result: none needed" >&5
19581 echo "${ECHO_T}none needed" >&6 ;;
19582   *)
19583     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19584 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19585     CC="$CC $ac_cv_prog_cc_stdc" ;;
19586 esac
19587
19588 # Some people use a C++ compiler to compile C.  Since we use `exit',
19589 # in C++ we need to declare it.  In case someone uses the same compiler
19590 # for both compiling C and C++ we need to have the C++ compiler decide
19591 # the declaration of exit, since it's the most demanding environment.
19592 cat >conftest.$ac_ext <<_ACEOF
19593 #ifndef __cplusplus
19594   choke me
19595 #endif
19596 _ACEOF
19597 rm -f conftest.$ac_objext
19598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19599   (eval $ac_compile) 2>conftest.er1
19600   ac_status=$?
19601   grep -v '^ *+' conftest.er1 >conftest.err
19602   rm -f conftest.er1
19603   cat conftest.err >&5
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); } &&
19606          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608   (eval $ac_try) 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; } &&
19612          { ac_try='test -s conftest.$ac_objext'
19613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614   (eval $ac_try) 2>&5
19615   ac_status=$?
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); }; }; then
19618   for ac_declaration in \
19619    '' \
19620    'extern "C" void std::exit (int) throw (); using std::exit;' \
19621    'extern "C" void std::exit (int); using std::exit;' \
19622    'extern "C" void exit (int) throw ();' \
19623    'extern "C" void exit (int);' \
19624    'void exit (int);'
19625 do
19626   cat >conftest.$ac_ext <<_ACEOF
19627 /* confdefs.h.  */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h.  */
19632 $ac_declaration
19633 #include <stdlib.h>
19634 int
19635 main ()
19636 {
19637 exit (42);
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext
19643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644   (eval $ac_compile) 2>conftest.er1
19645   ac_status=$?
19646   grep -v '^ *+' conftest.er1 >conftest.err
19647   rm -f conftest.er1
19648   cat conftest.err >&5
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); } &&
19651          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653   (eval $ac_try) 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }; } &&
19657          { ac_try='test -s conftest.$ac_objext'
19658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659   (eval $ac_try) 2>&5
19660   ac_status=$?
19661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662   (exit $ac_status); }; }; then
19663   :
19664 else
19665   echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19667
19668 continue
19669 fi
19670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19671   cat >conftest.$ac_ext <<_ACEOF
19672 /* confdefs.h.  */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h.  */
19677 $ac_declaration
19678 int
19679 main ()
19680 {
19681 exit (42);
19682   ;
19683   return 0;
19684 }
19685 _ACEOF
19686 rm -f conftest.$ac_objext
19687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19688   (eval $ac_compile) 2>conftest.er1
19689   ac_status=$?
19690   grep -v '^ *+' conftest.er1 >conftest.err
19691   rm -f conftest.er1
19692   cat conftest.err >&5
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); } &&
19695          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697   (eval $ac_try) 2>&5
19698   ac_status=$?
19699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700   (exit $ac_status); }; } &&
19701          { ac_try='test -s conftest.$ac_objext'
19702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703   (eval $ac_try) 2>&5
19704   ac_status=$?
19705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706   (exit $ac_status); }; }; then
19707   break
19708 else
19709   echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19711
19712 fi
19713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714 done
19715 rm -f conftest*
19716 if test -n "$ac_declaration"; then
19717   echo '#ifdef __cplusplus' >>confdefs.h
19718   echo $ac_declaration      >>confdefs.h
19719   echo '#endif'             >>confdefs.h
19720 fi
19721
19722 else
19723   echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726 fi
19727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19728 ac_ext=c
19729 ac_cpp='$CPP $CPPFLAGS'
19730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19733
19734 depcc="$CC"   am_compiler_list=
19735
19736 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19737 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19738 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19739   echo $ECHO_N "(cached) $ECHO_C" >&6
19740 else
19741   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19742   # We make a subdir and do the tests there.  Otherwise we can end up
19743   # making bogus files that we don't know about and never remove.  For
19744   # instance it was reported that on HP-UX the gcc test will end up
19745   # making a dummy file named `D' -- because `-MD' means `put the output
19746   # in D'.
19747   mkdir conftest.dir
19748   # Copy depcomp to subdir because otherwise we won't find it if we're
19749   # using a relative directory.
19750   cp "$am_depcomp" conftest.dir
19751   cd conftest.dir
19752   # We will build objects and dependencies in a subdirectory because
19753   # it helps to detect inapplicable dependency modes.  For instance
19754   # both Tru64's cc and ICC support -MD to output dependencies as a
19755   # side effect of compilation, but ICC will put the dependencies in
19756   # the current directory while Tru64 will put them in the object
19757   # directory.
19758   mkdir sub
19759
19760   am_cv_CC_dependencies_compiler_type=none
19761   if test "$am_compiler_list" = ""; then
19762      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19763   fi
19764   for depmode in $am_compiler_list; do
19765     # Setup a source with many dependencies, because some compilers
19766     # like to wrap large dependency lists on column 80 (with \), and
19767     # we should not choose a depcomp mode which is confused by this.
19768     #
19769     # We need to recreate these files for each test, as the compiler may
19770     # overwrite some of them when testing with obscure command lines.
19771     # This happens at least with the AIX C compiler.
19772     : > sub/conftest.c
19773     for i in 1 2 3 4 5 6; do
19774       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19775       : > sub/conftst$i.h
19776     done
19777     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19778
19779     case $depmode in
19780     nosideeffect)
19781       # after this tag, mechanisms are not by side-effect, so they'll
19782       # only be used when explicitly requested
19783       if test "x$enable_dependency_tracking" = xyes; then
19784         continue
19785       else
19786         break
19787       fi
19788       ;;
19789     none) break ;;
19790     esac
19791     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19792     # mode.  It turns out that the SunPro C++ compiler does not properly
19793     # handle `-M -o', and we need to detect this.
19794     if depmode=$depmode \
19795        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19796        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19797        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19798          >/dev/null 2>conftest.err &&
19799        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19800        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19801        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19802       # icc doesn't choke on unknown options, it will just issue warnings
19803       # (even with -Werror).  So we grep stderr for any message
19804       # that says an option was ignored.
19805       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19806         am_cv_CC_dependencies_compiler_type=$depmode
19807         break
19808       fi
19809     fi
19810   done
19811
19812   cd ..
19813   rm -rf conftest.dir
19814 else
19815   am_cv_CC_dependencies_compiler_type=none
19816 fi
19817
19818 fi
19819 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19820 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19821 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19822
19823
19824
19825 if
19826   test "x$enable_dependency_tracking" != xno \
19827   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19828   am__fastdepCC_TRUE=
19829   am__fastdepCC_FALSE='#'
19830 else
19831   am__fastdepCC_TRUE='#'
19832   am__fastdepCC_FALSE=
19833 fi
19834
19835
19836 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19837 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19838 # Just in case
19839 sleep 1
19840 echo timestamp > conftest.file
19841 # Do `set' in a subshell so we don't clobber the current shell's
19842 # arguments.  Must try -L first in case configure is actually a
19843 # symlink; some systems play weird games with the mod time of symlinks
19844 # (eg FreeBSD returns the mod time of the symlink's containing
19845 # directory).
19846 if (
19847    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19848    if test "$*" = "X"; then
19849       # -L didn't work.
19850       set X `ls -t $srcdir/configure conftest.file`
19851    fi
19852    rm -f conftest.file
19853    if test "$*" != "X $srcdir/configure conftest.file" \
19854       && test "$*" != "X conftest.file $srcdir/configure"; then
19855
19856       # If neither matched, then we have a broken ls.  This can happen
19857       # if, for instance, CONFIG_SHELL is bash and it inherits a
19858       # broken ls alias from the environment.  This has actually
19859       # happened.  Such a system could not be considered "sane".
19860       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19861 alias in your environment" >&5
19862 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19863 alias in your environment" >&2;}
19864    { (exit 1); exit 1; }; }
19865    fi
19866
19867    test "$2" = conftest.file
19868    )
19869 then
19870    # Ok.
19871    :
19872 else
19873    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19874 Check your system clock" >&5
19875 echo "$as_me: error: newly created file is older than distributed files!
19876 Check your system clock" >&2;}
19877    { (exit 1); exit 1; }; }
19878 fi
19879 echo "$as_me:$LINENO: result: yes" >&5
19880 echo "${ECHO_T}yes" >&6
19881 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19882 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19883 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19884 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19885   echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887   cat >conftest.make <<\_ACEOF
19888 all:
19889         @echo 'ac_maketemp="$(MAKE)"'
19890 _ACEOF
19891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19892 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19893 if test -n "$ac_maketemp"; then
19894   eval ac_cv_prog_make_${ac_make}_set=yes
19895 else
19896   eval ac_cv_prog_make_${ac_make}_set=no
19897 fi
19898 rm -f conftest.make
19899 fi
19900 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19901   echo "$as_me:$LINENO: result: yes" >&5
19902 echo "${ECHO_T}yes" >&6
19903   SET_MAKE=
19904 else
19905   echo "$as_me:$LINENO: result: no" >&5
19906 echo "${ECHO_T}no" >&6
19907   SET_MAKE="MAKE=${MAKE-make}"
19908 fi
19909
19910
19911 # Check architecture signature
19912
19913 # Check for the architecture
19914 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19915 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19916 if test "${ac_cv_c_bigendian+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   # See if sys/param.h defines the BYTE_ORDER macro.
19920 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h.  */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h.  */
19926 #include <sys/types.h>
19927 #include <sys/param.h>
19928
19929 int
19930 main ()
19931 {
19932 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19933  bogus endian macros
19934 #endif
19935
19936   ;
19937   return 0;
19938 }
19939 _ACEOF
19940 rm -f conftest.$ac_objext
19941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19942   (eval $ac_compile) 2>conftest.er1
19943   ac_status=$?
19944   grep -v '^ *+' conftest.er1 >conftest.err
19945   rm -f conftest.er1
19946   cat conftest.err >&5
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } &&
19949          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951   (eval $ac_try) 2>&5
19952   ac_status=$?
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); }; } &&
19955          { ac_try='test -s conftest.$ac_objext'
19956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19957   (eval $ac_try) 2>&5
19958   ac_status=$?
19959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); }; }; then
19961   # It does; now see whether it defined to BIG_ENDIAN or not.
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 #include <sys/types.h>
19969 #include <sys/param.h>
19970
19971 int
19972 main ()
19973 {
19974 #if BYTE_ORDER != BIG_ENDIAN
19975  not big endian
19976 #endif
19977
19978   ;
19979   return 0;
19980 }
19981 _ACEOF
19982 rm -f conftest.$ac_objext
19983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984   (eval $ac_compile) 2>conftest.er1
19985   ac_status=$?
19986   grep -v '^ *+' conftest.er1 >conftest.err
19987   rm -f conftest.er1
19988   cat conftest.err >&5
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); } &&
19991          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993   (eval $ac_try) 2>&5
19994   ac_status=$?
19995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996   (exit $ac_status); }; } &&
19997          { ac_try='test -s conftest.$ac_objext'
19998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999   (eval $ac_try) 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; }; then
20003   ac_cv_c_bigendian=yes
20004 else
20005   echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008 ac_cv_c_bigendian=no
20009 fi
20010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 # It does not; compile a test program.
20016 if test "$cross_compiling" = yes; then
20017   # try to guess the endianness by grepping values into an object file
20018   ac_cv_c_bigendian=unknown
20019   cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h.  */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h.  */
20025 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20026 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20027 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20028 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20029 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20030 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20031 int
20032 main ()
20033 {
20034  _ascii (); _ebcdic ();
20035   ;
20036   return 0;
20037 }
20038 _ACEOF
20039 rm -f conftest.$ac_objext
20040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20041   (eval $ac_compile) 2>conftest.er1
20042   ac_status=$?
20043   grep -v '^ *+' conftest.er1 >conftest.err
20044   rm -f conftest.er1
20045   cat conftest.err >&5
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } &&
20048          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050   (eval $ac_try) 2>&5
20051   ac_status=$?
20052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053   (exit $ac_status); }; } &&
20054          { ac_try='test -s conftest.$ac_objext'
20055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056   (eval $ac_try) 2>&5
20057   ac_status=$?
20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059   (exit $ac_status); }; }; then
20060   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20061   ac_cv_c_bigendian=yes
20062 fi
20063 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20064   if test "$ac_cv_c_bigendian" = unknown; then
20065     ac_cv_c_bigendian=no
20066   else
20067     # finding both strings is unlikely to happen, but who knows?
20068     ac_cv_c_bigendian=unknown
20069   fi
20070 fi
20071 else
20072   echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20074
20075 fi
20076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20077 else
20078   cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h.  */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h.  */
20084 int
20085 main ()
20086 {
20087   /* Are we little or big endian?  From Harbison&Steele.  */
20088   union
20089   {
20090     long l;
20091     char c[sizeof (long)];
20092   } u;
20093   u.l = 1;
20094   exit (u.c[sizeof (long) - 1] == 1);
20095 }
20096 _ACEOF
20097 rm -f conftest$ac_exeext
20098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20099   (eval $ac_link) 2>&5
20100   ac_status=$?
20101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104   (eval $ac_try) 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); }; }; then
20108   ac_cv_c_bigendian=no
20109 else
20110   echo "$as_me: program exited with status $ac_status" >&5
20111 echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20113
20114 ( exit $ac_status )
20115 ac_cv_c_bigendian=yes
20116 fi
20117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20118 fi
20119 fi
20120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20121 fi
20122 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20123 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20124 case $ac_cv_c_bigendian in
20125   yes)
20126     endian=1 ;;
20127   no)
20128     endian=0 ;;
20129   *)
20130     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20131 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20132    { (exit 1); exit 1; }; } ;;
20133 esac
20134
20135
20136 cat >>confdefs.h <<_ACEOF
20137 #define GRAS_BIGENDIAN $endian
20138 _ACEOF
20139
20140
20141 echo "$as_me:$LINENO: checking size of char" >&5
20142 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20143     if test "${ac_cv_sizeof_char+set}" = set; then
20144   echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20147    cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h.  */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h.  */
20153 #include "confdefs.h"
20154    #include <sys/types.h>
20155
20156
20157 int
20158 main ()
20159 {
20160 switch (0) case 0: case (sizeof (char) == $ac_size):;
20161   ;
20162   return 0;
20163 }
20164 _ACEOF
20165 rm -f conftest.$ac_objext
20166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20167   (eval $ac_compile) 2>conftest.er1
20168   ac_status=$?
20169   grep -v '^ *+' conftest.er1 >conftest.err
20170   rm -f conftest.er1
20171   cat conftest.err >&5
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); } &&
20174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176   (eval $ac_try) 2>&5
20177   ac_status=$?
20178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179   (exit $ac_status); }; } &&
20180          { ac_try='test -s conftest.$ac_objext'
20181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182   (eval $ac_try) 2>&5
20183   ac_status=$?
20184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185   (exit $ac_status); }; }; then
20186   ac_cv_sizeof_char=$ac_size
20187 else
20188   echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20190
20191 fi
20192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20193    if test x$ac_cv_sizeof_char != x ; then break; fi
20194   done
20195
20196 fi
20197
20198
20199 unspecif=$ac_cv_sizeof_char
20200 if test x$unspecif = x ; then
20201   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20202 echo "$as_me: error: cannot determine a size for char" >&2;}
20203    { (exit 1); exit 1; }; }
20204 fi
20205
20206     if test "${ac_cv_sizeof_signed_char+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20210    cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h.  */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h.  */
20216 #include "confdefs.h"
20217    #include <sys/types.h>
20218
20219
20220 int
20221 main ()
20222 {
20223 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20224   ;
20225   return 0;
20226 }
20227 _ACEOF
20228 rm -f conftest.$ac_objext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20230   (eval $ac_compile) 2>conftest.er1
20231   ac_status=$?
20232   grep -v '^ *+' conftest.er1 >conftest.err
20233   rm -f conftest.er1
20234   cat conftest.err >&5
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } &&
20237          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; } &&
20243          { ac_try='test -s conftest.$ac_objext'
20244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245   (eval $ac_try) 2>&5
20246   ac_status=$?
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); }; }; then
20249   ac_cv_sizeof_signed_char=$ac_size
20250 else
20251   echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254 fi
20255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20256    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20257   done
20258
20259 fi
20260
20261
20262 signed=$ac_cv_sizeof_signed_char
20263 if test x$signed = x ; then
20264   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20265 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20266    { (exit 1); exit 1; }; }
20267 fi
20268 if test x$unspecif != x$signed ; then
20269   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20270 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20271    { (exit 1); exit 1; }; }
20272 fi
20273
20274     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20275   echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20278    cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h.  */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h.  */
20284 #include "confdefs.h"
20285    #include <sys/types.h>
20286
20287
20288 int
20289 main ()
20290 {
20291 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20292   ;
20293   return 0;
20294 }
20295 _ACEOF
20296 rm -f conftest.$ac_objext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298   (eval $ac_compile) 2>conftest.er1
20299   ac_status=$?
20300   grep -v '^ *+' conftest.er1 >conftest.err
20301   rm -f conftest.er1
20302   cat conftest.err >&5
20303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304   (exit $ac_status); } &&
20305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307   (eval $ac_try) 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); }; } &&
20311          { ac_try='test -s conftest.$ac_objext'
20312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313   (eval $ac_try) 2>&5
20314   ac_status=$?
20315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316   (exit $ac_status); }; }; then
20317   ac_cv_sizeof_unsigned_char=$ac_size
20318 else
20319   echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.$ac_ext >&5
20321
20322 fi
20323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20324    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20325   done
20326
20327 fi
20328
20329
20330 unsigned=$ac_cv_sizeof_unsigned_char
20331 if test x$unsigned = x ; then
20332   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20333 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20334    { (exit 1); exit 1; }; }
20335 fi
20336 if test x$unsigned != x$signed ; then
20337   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20338 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20339    { (exit 1); exit 1; }; }
20340 fi
20341
20342 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20343 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20344
20345 cat >>confdefs.h <<_ACEOF
20346 #define SIZEOF_CHAR $ac_cv_sizeof_unsigned_char
20347 _ACEOF
20348
20349
20350 echo "$as_me:$LINENO: checking size of short int" >&5
20351 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20352     if test "${ac_cv_sizeof_short_int+set}" = set; then
20353   echo $ECHO_N "(cached) $ECHO_C" >&6
20354 else
20355   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20356    cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h.  */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h.  */
20362 #include "confdefs.h"
20363    #include <sys/types.h>
20364
20365
20366 int
20367 main ()
20368 {
20369 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20370   ;
20371   return 0;
20372 }
20373 _ACEOF
20374 rm -f conftest.$ac_objext
20375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20376   (eval $ac_compile) 2>conftest.er1
20377   ac_status=$?
20378   grep -v '^ *+' conftest.er1 >conftest.err
20379   rm -f conftest.er1
20380   cat conftest.err >&5
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); } &&
20383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385   (eval $ac_try) 2>&5
20386   ac_status=$?
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); }; } &&
20389          { ac_try='test -s conftest.$ac_objext'
20390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391   (eval $ac_try) 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); }; }; then
20395   ac_cv_sizeof_short_int=$ac_size
20396 else
20397   echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20399
20400 fi
20401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20402    if test x$ac_cv_sizeof_short_int != x ; then break; fi
20403   done
20404
20405 fi
20406
20407
20408 unspecif=$ac_cv_sizeof_short_int
20409 if test x$unspecif = x ; then
20410   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20411 echo "$as_me: error: cannot determine a size for short int" >&2;}
20412    { (exit 1); exit 1; }; }
20413 fi
20414
20415     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20416   echo $ECHO_N "(cached) $ECHO_C" >&6
20417 else
20418   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20419    cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h.  */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h.  */
20425 #include "confdefs.h"
20426    #include <sys/types.h>
20427
20428
20429 int
20430 main ()
20431 {
20432 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20433   ;
20434   return 0;
20435 }
20436 _ACEOF
20437 rm -f conftest.$ac_objext
20438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20439   (eval $ac_compile) 2>conftest.er1
20440   ac_status=$?
20441   grep -v '^ *+' conftest.er1 >conftest.err
20442   rm -f conftest.er1
20443   cat conftest.err >&5
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); } &&
20446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448   (eval $ac_try) 2>&5
20449   ac_status=$?
20450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451   (exit $ac_status); }; } &&
20452          { ac_try='test -s conftest.$ac_objext'
20453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454   (eval $ac_try) 2>&5
20455   ac_status=$?
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); }; }; then
20458   ac_cv_sizeof_signed_short_int=$ac_size
20459 else
20460   echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20462
20463 fi
20464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20465    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20466   done
20467
20468 fi
20469
20470
20471 signed=$ac_cv_sizeof_signed_short_int
20472 if test x$signed = x ; then
20473   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20474 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20475    { (exit 1); exit 1; }; }
20476 fi
20477 if test x$unspecif != x$signed ; then
20478   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20479 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20480    { (exit 1); exit 1; }; }
20481 fi
20482
20483     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20484   echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20487    cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h.  */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h.  */
20493 #include "confdefs.h"
20494    #include <sys/types.h>
20495
20496
20497 int
20498 main ()
20499 {
20500 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20501   ;
20502   return 0;
20503 }
20504 _ACEOF
20505 rm -f conftest.$ac_objext
20506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20507   (eval $ac_compile) 2>conftest.er1
20508   ac_status=$?
20509   grep -v '^ *+' conftest.er1 >conftest.err
20510   rm -f conftest.er1
20511   cat conftest.err >&5
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); } &&
20514          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516   (eval $ac_try) 2>&5
20517   ac_status=$?
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); }; } &&
20520          { ac_try='test -s conftest.$ac_objext'
20521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522   (eval $ac_try) 2>&5
20523   ac_status=$?
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); }; }; then
20526   ac_cv_sizeof_unsigned_short_int=$ac_size
20527 else
20528   echo "$as_me: failed program was:" >&5
20529 sed 's/^/| /' conftest.$ac_ext >&5
20530
20531 fi
20532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20533    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20534   done
20535
20536 fi
20537
20538
20539 unsigned=$ac_cv_sizeof_unsigned_short_int
20540 if test x$unsigned = x ; then
20541   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20542 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20543    { (exit 1); exit 1; }; }
20544 fi
20545 if test x$unsigned != x$signed ; then
20546   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20547 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20548    { (exit 1); exit 1; }; }
20549 fi
20550
20551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20552 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20553
20554 cat >>confdefs.h <<_ACEOF
20555 #define SIZEOF_SHORT_INT $ac_cv_sizeof_unsigned_short_int
20556 _ACEOF
20557
20558
20559 echo "$as_me:$LINENO: checking size of int" >&5
20560 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20561     if test "${ac_cv_sizeof_int+set}" = set; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20565    cat >conftest.$ac_ext <<_ACEOF
20566 /* confdefs.h.  */
20567 _ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h.  */
20571 #include "confdefs.h"
20572    #include <sys/types.h>
20573
20574
20575 int
20576 main ()
20577 {
20578 switch (0) case 0: case (sizeof (int) == $ac_size):;
20579   ;
20580   return 0;
20581 }
20582 _ACEOF
20583 rm -f conftest.$ac_objext
20584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20585   (eval $ac_compile) 2>conftest.er1
20586   ac_status=$?
20587   grep -v '^ *+' conftest.er1 >conftest.err
20588   rm -f conftest.er1
20589   cat conftest.err >&5
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); } &&
20592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594   (eval $ac_try) 2>&5
20595   ac_status=$?
20596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597   (exit $ac_status); }; } &&
20598          { ac_try='test -s conftest.$ac_objext'
20599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600   (eval $ac_try) 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; }; then
20604   ac_cv_sizeof_int=$ac_size
20605 else
20606   echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20608
20609 fi
20610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20611    if test x$ac_cv_sizeof_int != x ; then break; fi
20612   done
20613
20614 fi
20615
20616
20617 unspecif=$ac_cv_sizeof_int
20618 if test x$unspecif = x ; then
20619   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20620 echo "$as_me: error: cannot determine a size for int" >&2;}
20621    { (exit 1); exit 1; }; }
20622 fi
20623
20624     if test "${ac_cv_sizeof_signed_int+set}" = set; then
20625   echo $ECHO_N "(cached) $ECHO_C" >&6
20626 else
20627   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20628    cat >conftest.$ac_ext <<_ACEOF
20629 /* confdefs.h.  */
20630 _ACEOF
20631 cat confdefs.h >>conftest.$ac_ext
20632 cat >>conftest.$ac_ext <<_ACEOF
20633 /* end confdefs.h.  */
20634 #include "confdefs.h"
20635    #include <sys/types.h>
20636
20637
20638 int
20639 main ()
20640 {
20641 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20642   ;
20643   return 0;
20644 }
20645 _ACEOF
20646 rm -f conftest.$ac_objext
20647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20648   (eval $ac_compile) 2>conftest.er1
20649   ac_status=$?
20650   grep -v '^ *+' conftest.er1 >conftest.err
20651   rm -f conftest.er1
20652   cat conftest.err >&5
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); } &&
20655          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20657   (eval $ac_try) 2>&5
20658   ac_status=$?
20659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660   (exit $ac_status); }; } &&
20661          { ac_try='test -s conftest.$ac_objext'
20662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663   (eval $ac_try) 2>&5
20664   ac_status=$?
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); }; }; then
20667   ac_cv_sizeof_signed_int=$ac_size
20668 else
20669   echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672 fi
20673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20674    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20675   done
20676
20677 fi
20678
20679
20680 signed=$ac_cv_sizeof_signed_int
20681 if test x$signed = x ; then
20682   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20683 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20684    { (exit 1); exit 1; }; }
20685 fi
20686 if test x$unspecif != x$signed ; then
20687   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20688 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20689    { (exit 1); exit 1; }; }
20690 fi
20691
20692     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20693   echo $ECHO_N "(cached) $ECHO_C" >&6
20694 else
20695   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20696    cat >conftest.$ac_ext <<_ACEOF
20697 /* confdefs.h.  */
20698 _ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h.  */
20702 #include "confdefs.h"
20703    #include <sys/types.h>
20704
20705
20706 int
20707 main ()
20708 {
20709 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
20710   ;
20711   return 0;
20712 }
20713 _ACEOF
20714 rm -f conftest.$ac_objext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20716   (eval $ac_compile) 2>conftest.er1
20717   ac_status=$?
20718   grep -v '^ *+' conftest.er1 >conftest.err
20719   rm -f conftest.er1
20720   cat conftest.err >&5
20721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722   (exit $ac_status); } &&
20723          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725   (eval $ac_try) 2>&5
20726   ac_status=$?
20727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728   (exit $ac_status); }; } &&
20729          { ac_try='test -s conftest.$ac_objext'
20730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731   (eval $ac_try) 2>&5
20732   ac_status=$?
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); }; }; then
20735   ac_cv_sizeof_unsigned_int=$ac_size
20736 else
20737   echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20739
20740 fi
20741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20742    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
20743   done
20744
20745 fi
20746
20747
20748 unsigned=$ac_cv_sizeof_unsigned_int
20749 if test x$unsigned = x ; then
20750   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
20751 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
20752    { (exit 1); exit 1; }; }
20753 fi
20754 if test x$unsigned != x$signed ; then
20755   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
20756 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
20757    { (exit 1); exit 1; }; }
20758 fi
20759
20760 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
20761 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
20762
20763 cat >>confdefs.h <<_ACEOF
20764 #define SIZEOF_INT $ac_cv_sizeof_unsigned_int
20765 _ACEOF
20766
20767
20768 echo "$as_me:$LINENO: checking size of long int" >&5
20769 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
20770     if test "${ac_cv_sizeof_long_int+set}" = set; then
20771   echo $ECHO_N "(cached) $ECHO_C" >&6
20772 else
20773   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20774    cat >conftest.$ac_ext <<_ACEOF
20775 /* confdefs.h.  */
20776 _ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h.  */
20780 #include "confdefs.h"
20781    #include <sys/types.h>
20782
20783
20784 int
20785 main ()
20786 {
20787 switch (0) case 0: case (sizeof (long int) == $ac_size):;
20788   ;
20789   return 0;
20790 }
20791 _ACEOF
20792 rm -f conftest.$ac_objext
20793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20794   (eval $ac_compile) 2>conftest.er1
20795   ac_status=$?
20796   grep -v '^ *+' conftest.er1 >conftest.err
20797   rm -f conftest.er1
20798   cat conftest.err >&5
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); } &&
20801          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803   (eval $ac_try) 2>&5
20804   ac_status=$?
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); }; } &&
20807          { ac_try='test -s conftest.$ac_objext'
20808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809   (eval $ac_try) 2>&5
20810   ac_status=$?
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); }; }; then
20813   ac_cv_sizeof_long_int=$ac_size
20814 else
20815   echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20817
20818 fi
20819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20820    if test x$ac_cv_sizeof_long_int != x ; then break; fi
20821   done
20822
20823 fi
20824
20825
20826 unspecif=$ac_cv_sizeof_long_int
20827 if test x$unspecif = x ; then
20828   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
20829 echo "$as_me: error: cannot determine a size for long int" >&2;}
20830    { (exit 1); exit 1; }; }
20831 fi
20832
20833     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
20834   echo $ECHO_N "(cached) $ECHO_C" >&6
20835 else
20836   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20837    cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843 #include "confdefs.h"
20844    #include <sys/types.h>
20845
20846
20847 int
20848 main ()
20849 {
20850 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
20851   ;
20852   return 0;
20853 }
20854 _ACEOF
20855 rm -f conftest.$ac_objext
20856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20857   (eval $ac_compile) 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } &&
20864          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866   (eval $ac_try) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; } &&
20870          { ac_try='test -s conftest.$ac_objext'
20871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872   (eval $ac_try) 2>&5
20873   ac_status=$?
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); }; }; then
20876   ac_cv_sizeof_signed_long_int=$ac_size
20877 else
20878   echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20880
20881 fi
20882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20883    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
20884   done
20885
20886 fi
20887
20888
20889 signed=$ac_cv_sizeof_signed_long_int
20890 if test x$signed = x ; then
20891   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
20892 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
20893    { (exit 1); exit 1; }; }
20894 fi
20895 if test x$unspecif != x$signed ; then
20896   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
20897 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
20898    { (exit 1); exit 1; }; }
20899 fi
20900
20901     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
20902   echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20905    cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h.  */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h.  */
20911 #include "confdefs.h"
20912    #include <sys/types.h>
20913
20914
20915 int
20916 main ()
20917 {
20918 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
20919   ;
20920   return 0;
20921 }
20922 _ACEOF
20923 rm -f conftest.$ac_objext
20924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20925   (eval $ac_compile) 2>conftest.er1
20926   ac_status=$?
20927   grep -v '^ *+' conftest.er1 >conftest.err
20928   rm -f conftest.er1
20929   cat conftest.err >&5
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); } &&
20932          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934   (eval $ac_try) 2>&5
20935   ac_status=$?
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); }; } &&
20938          { ac_try='test -s conftest.$ac_objext'
20939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940   (eval $ac_try) 2>&5
20941   ac_status=$?
20942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943   (exit $ac_status); }; }; then
20944   ac_cv_sizeof_unsigned_long_int=$ac_size
20945 else
20946   echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949 fi
20950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20951    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
20952   done
20953
20954 fi
20955
20956
20957 unsigned=$ac_cv_sizeof_unsigned_long_int
20958 if test x$unsigned = x ; then
20959   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
20960 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
20961    { (exit 1); exit 1; }; }
20962 fi
20963 if test x$unsigned != x$signed ; then
20964   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
20965 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
20966    { (exit 1); exit 1; }; }
20967 fi
20968
20969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
20970 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
20971
20972 cat >>confdefs.h <<_ACEOF
20973 #define SIZEOF_LONG_INT $ac_cv_sizeof_unsigned_long_int
20974 _ACEOF
20975
20976
20977 echo "$as_me:$LINENO: checking size of long long int" >&5
20978 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
20979     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
20980   echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20983    cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h.  */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h.  */
20989 #include "confdefs.h"
20990    #include <sys/types.h>
20991
20992
20993 int
20994 main ()
20995 {
20996 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
20997   ;
20998   return 0;
20999 }
21000 _ACEOF
21001 rm -f conftest.$ac_objext
21002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21003   (eval $ac_compile) 2>conftest.er1
21004   ac_status=$?
21005   grep -v '^ *+' conftest.er1 >conftest.err
21006   rm -f conftest.er1
21007   cat conftest.err >&5
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); } &&
21010          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012   (eval $ac_try) 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); }; } &&
21016          { ac_try='test -s conftest.$ac_objext'
21017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018   (eval $ac_try) 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); }; }; then
21022   ac_cv_sizeof_long_long_int=$ac_size
21023 else
21024   echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21026
21027 fi
21028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21029    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21030   done
21031
21032 fi
21033
21034
21035 unspecif=$ac_cv_sizeof_long_long_int
21036 if test x$unspecif = x ; then
21037   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21038 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21039    { (exit 1); exit 1; }; }
21040 fi
21041
21042     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21043   echo $ECHO_N "(cached) $ECHO_C" >&6
21044 else
21045   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21046    cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052 #include "confdefs.h"
21053    #include <sys/types.h>
21054
21055
21056 int
21057 main ()
21058 {
21059 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21060   ;
21061   return 0;
21062 }
21063 _ACEOF
21064 rm -f conftest.$ac_objext
21065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21066   (eval $ac_compile) 2>conftest.er1
21067   ac_status=$?
21068   grep -v '^ *+' conftest.er1 >conftest.err
21069   rm -f conftest.er1
21070   cat conftest.err >&5
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); } &&
21073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075   (eval $ac_try) 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; } &&
21079          { ac_try='test -s conftest.$ac_objext'
21080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081   (eval $ac_try) 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; }; then
21085   ac_cv_sizeof_signed_long_long_int=$ac_size
21086 else
21087   echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 fi
21091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21092    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21093   done
21094
21095 fi
21096
21097
21098 signed=$ac_cv_sizeof_signed_long_long_int
21099 if test x$signed = x ; then
21100   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21101 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21102    { (exit 1); exit 1; }; }
21103 fi
21104 if test x$unspecif != x$signed ; then
21105   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21106 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21107    { (exit 1); exit 1; }; }
21108 fi
21109
21110     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21111   echo $ECHO_N "(cached) $ECHO_C" >&6
21112 else
21113   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21114    cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h.  */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h.  */
21120 #include "confdefs.h"
21121    #include <sys/types.h>
21122
21123
21124 int
21125 main ()
21126 {
21127 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext
21133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21134   (eval $ac_compile) 2>conftest.er1
21135   ac_status=$?
21136   grep -v '^ *+' conftest.er1 >conftest.err
21137   rm -f conftest.er1
21138   cat conftest.err >&5
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); } &&
21141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143   (eval $ac_try) 2>&5
21144   ac_status=$?
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); }; } &&
21147          { ac_try='test -s conftest.$ac_objext'
21148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149   (eval $ac_try) 2>&5
21150   ac_status=$?
21151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152   (exit $ac_status); }; }; then
21153   ac_cv_sizeof_unsigned_long_long_int=$ac_size
21154 else
21155   echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21157
21158 fi
21159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21160    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21161   done
21162
21163 fi
21164
21165
21166 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21167 if test x$unsigned = x ; then
21168   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21169 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21170    { (exit 1); exit 1; }; }
21171 fi
21172 if test x$unsigned != x$signed ; then
21173   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21174 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21175    { (exit 1); exit 1; }; }
21176 fi
21177
21178 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21179 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21180
21181 cat >>confdefs.h <<_ACEOF
21182 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
21183 _ACEOF
21184
21185
21186
21187
21188 echo "$as_me:$LINENO: checking size of void *" >&5
21189 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21190     if test "${ac_cv_sizeof_void_p+set}" = set; then
21191   echo $ECHO_N "(cached) $ECHO_C" >&6
21192 else
21193   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21194    cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h.  */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h.  */
21200 #include "confdefs.h"
21201    #include <sys/types.h>
21202
21203
21204 int
21205 main ()
21206 {
21207 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21208   ;
21209   return 0;
21210 }
21211 _ACEOF
21212 rm -f conftest.$ac_objext
21213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21214   (eval $ac_compile) 2>conftest.er1
21215   ac_status=$?
21216   grep -v '^ *+' conftest.er1 >conftest.err
21217   rm -f conftest.er1
21218   cat conftest.err >&5
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); } &&
21221          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223   (eval $ac_try) 2>&5
21224   ac_status=$?
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); }; } &&
21227          { ac_try='test -s conftest.$ac_objext'
21228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229   (eval $ac_try) 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); }; }; then
21233   ac_cv_sizeof_void_p=$ac_size
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238 fi
21239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21240    if test x$ac_cv_sizeof_void_p != x ; then break; fi
21241   done
21242
21243 fi
21244
21245
21246 if test x$ac_cv_sizeof_void_p = x ; then
21247   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21248 echo "$as_me: error: cannot determine a size for void *" >&2;}
21249    { (exit 1); exit 1; }; }
21250 fi
21251 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21252 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21253
21254 cat >>confdefs.h <<_ACEOF
21255 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21256 _ACEOF
21257
21258
21259 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21260 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21261     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21262   echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21265    cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h.  */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h.  */
21271 #include "confdefs.h"
21272    #include <sys/types.h>
21273
21274
21275 int
21276 main ()
21277 {
21278 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext
21284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21285   (eval $ac_compile) 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } &&
21292          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294   (eval $ac_try) 2>&5
21295   ac_status=$?
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); }; } &&
21298          { ac_try='test -s conftest.$ac_objext'
21299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300   (eval $ac_try) 2>&5
21301   ac_status=$?
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); }; }; then
21304   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21305 else
21306   echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21308
21309 fi
21310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21311    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21312   done
21313
21314 fi
21315
21316
21317 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21318   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21319 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21320    { (exit 1); exit 1; }; }
21321 fi
21322 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21323 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21324
21325 cat >>confdefs.h <<_ACEOF
21326 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
21327 _ACEOF
21328
21329
21330
21331 echo "$as_me:$LINENO: checking size of float" >&5
21332 echo $ECHO_N "checking size of float... $ECHO_C" >&6
21333     if test "${ac_cv_sizeof_float+set}" = set; then
21334   echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21337    cat >conftest.$ac_ext <<_ACEOF
21338 /* confdefs.h.  */
21339 _ACEOF
21340 cat confdefs.h >>conftest.$ac_ext
21341 cat >>conftest.$ac_ext <<_ACEOF
21342 /* end confdefs.h.  */
21343 #include "confdefs.h"
21344    #include <sys/types.h>
21345
21346
21347 int
21348 main ()
21349 {
21350 switch (0) case 0: case (sizeof (float) == $ac_size):;
21351   ;
21352   return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357   (eval $ac_compile) 2>conftest.er1
21358   ac_status=$?
21359   grep -v '^ *+' conftest.er1 >conftest.err
21360   rm -f conftest.er1
21361   cat conftest.err >&5
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } &&
21364          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366   (eval $ac_try) 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; } &&
21370          { ac_try='test -s conftest.$ac_objext'
21371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372   (eval $ac_try) 2>&5
21373   ac_status=$?
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); }; }; then
21376   ac_cv_sizeof_float=$ac_size
21377 else
21378   echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21380
21381 fi
21382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21383    if test x$ac_cv_sizeof_float != x ; then break; fi
21384   done
21385
21386 fi
21387
21388
21389 if test x$ac_cv_sizeof_float = x ; then
21390   { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
21391 echo "$as_me: error: cannot determine a size for float" >&2;}
21392    { (exit 1); exit 1; }; }
21393 fi
21394 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
21395 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
21396
21397 cat >>confdefs.h <<_ACEOF
21398 #define SIZEOF_FLOAT $ac_cv_sizeof_float
21399 _ACEOF
21400
21401
21402 echo "$as_me:$LINENO: checking size of double" >&5
21403 echo $ECHO_N "checking size of double... $ECHO_C" >&6
21404     if test "${ac_cv_sizeof_double+set}" = set; then
21405   echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21408    cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h.  */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h.  */
21414 #include "confdefs.h"
21415    #include <sys/types.h>
21416
21417
21418 int
21419 main ()
21420 {
21421 switch (0) case 0: case (sizeof (double) == $ac_size):;
21422   ;
21423   return 0;
21424 }
21425 _ACEOF
21426 rm -f conftest.$ac_objext
21427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21428   (eval $ac_compile) 2>conftest.er1
21429   ac_status=$?
21430   grep -v '^ *+' conftest.er1 >conftest.err
21431   rm -f conftest.er1
21432   cat conftest.err >&5
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); } &&
21435          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437   (eval $ac_try) 2>&5
21438   ac_status=$?
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); }; } &&
21441          { ac_try='test -s conftest.$ac_objext'
21442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21443   (eval $ac_try) 2>&5
21444   ac_status=$?
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); }; }; then
21447   ac_cv_sizeof_double=$ac_size
21448 else
21449   echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21451
21452 fi
21453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21454    if test x$ac_cv_sizeof_double != x ; then break; fi
21455   done
21456
21457 fi
21458
21459
21460 if test x$ac_cv_sizeof_double = x ; then
21461   { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
21462 echo "$as_me: error: cannot determine a size for double" >&2;}
21463    { (exit 1); exit 1; }; }
21464 fi
21465 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21466 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
21467
21468 cat >>confdefs.h <<_ACEOF
21469 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21470 _ACEOF
21471
21472
21473 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
21474 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
21475 cat >conftest.$ac_ext <<_ACEOF
21476 /* confdefs.h.  */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h.  */
21481 #include "confdefs.h"
21482 union {
21483         double testFP;
21484         unsigned char bytes[sizeof(double)];
21485 } doubleTester;
21486 union {
21487         float testFP;
21488         unsigned char bytes[sizeof(float)];
21489 } floatTester;
21490
21491 int
21492 main ()
21493 {
21494
21495 memset(&doubleTester, 0, sizeof(doubleTester));
21496 memset(&floatTester, 0, sizeof(floatTester));
21497
21498 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
21499 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
21500   (sizeof(double) == 4)  ? 128 :
21501   (sizeof(double) == 8)  ? 16 :
21502   (sizeof(double) == 16) ? 1 : 0;
21503 if (doubleTester.testFP != -4.0) return 1;
21504
21505 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
21506 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
21507   (sizeof(float) == 4)  ? 128 :
21508   (sizeof(float) == 8)  ? 16 :
21509   (sizeof(float) == 16) ? 1 : 0;
21510 if (floatTester.testFP != -4.0) return 1;
21511
21512 return 0;
21513   ;
21514   return 0;
21515 }
21516 _ACEOF
21517 rm -f conftest.$ac_objext
21518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21519   (eval $ac_compile) 2>conftest.er1
21520   ac_status=$?
21521   grep -v '^ *+' conftest.er1 >conftest.err
21522   rm -f conftest.er1
21523   cat conftest.err >&5
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); } &&
21526          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528   (eval $ac_try) 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; } &&
21532          { ac_try='test -s conftest.$ac_objext'
21533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }; then
21538   IEEE_FP=yes
21539
21540 cat >>confdefs.h <<\_ACEOF
21541 #define IEEE_FP 1
21542 _ACEOF
21543
21544
21545 else
21546   echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21548
21549 IEEE_FP=no
21550    { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21551 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21552    { (exit 1); exit 1; }; }
21553 fi
21554 rm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
21555 echo "${ECHO_T}$IEEE_FP" >&6
21556
21557
21558 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21559 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21560 if test x$endian = x1 ; then
21561   trace_endian=B
21562 else
21563   trace_endian=l
21564 fi
21565 gras_arch=unknown
21566 trace="$trace_endian"
21567 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}"
21568 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
21569 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
21570 case $trace in
21571   l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=i386;;
21572 esac
21573 if test x$gras_arch = xunknown ; then
21574   echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21575 echo "${ECHO_T}damnit ($trace)" >&6
21576   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21577 Please report this architecture trace ($trace) and what it corresponds to." >&5
21578 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21579 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21580    { (exit 1); exit 1; }; }
21581 fi
21582 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
21583
21584 cat >>confdefs.h <<_ACEOF
21585 #define GRAS_THISARCH_NAME "$gras_arch_name"
21586 _ACEOF
21587
21588
21589 cat >>confdefs.h <<_ACEOF
21590 #define GRAS_THISARCH $gras_arch
21591 _ACEOF
21592
21593 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
21594 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
21595
21596
21597 # Checks for header files.
21598 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21599 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21600 if test "${ac_cv_header_stdc+set}" = set; then
21601   echo $ECHO_N "(cached) $ECHO_C" >&6
21602 else
21603   cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h.  */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h.  */
21609 #include <stdlib.h>
21610 #include <stdarg.h>
21611 #include <string.h>
21612 #include <float.h>
21613
21614 int
21615 main ()
21616 {
21617
21618   ;
21619   return 0;
21620 }
21621 _ACEOF
21622 rm -f conftest.$ac_objext
21623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21624   (eval $ac_compile) 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } &&
21631          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21633   (eval $ac_try) 2>&5
21634   ac_status=$?
21635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636   (exit $ac_status); }; } &&
21637          { ac_try='test -s conftest.$ac_objext'
21638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639   (eval $ac_try) 2>&5
21640   ac_status=$?
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); }; }; then
21643   ac_cv_header_stdc=yes
21644 else
21645   echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21647
21648 ac_cv_header_stdc=no
21649 fi
21650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21651
21652 if test $ac_cv_header_stdc = yes; then
21653   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21654   cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660 #include <string.h>
21661
21662 _ACEOF
21663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21664   $EGREP "memchr" >/dev/null 2>&1; then
21665   :
21666 else
21667   ac_cv_header_stdc=no
21668 fi
21669 rm -f conftest*
21670
21671 fi
21672
21673 if test $ac_cv_header_stdc = yes; then
21674   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21675   cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h.  */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h.  */
21681 #include <stdlib.h>
21682
21683 _ACEOF
21684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21685   $EGREP "free" >/dev/null 2>&1; then
21686   :
21687 else
21688   ac_cv_header_stdc=no
21689 fi
21690 rm -f conftest*
21691
21692 fi
21693
21694 if test $ac_cv_header_stdc = yes; then
21695   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21696   if test "$cross_compiling" = yes; then
21697   :
21698 else
21699   cat >conftest.$ac_ext <<_ACEOF
21700 /* confdefs.h.  */
21701 _ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h.  */
21705 #include <ctype.h>
21706 #if ((' ' & 0x0FF) == 0x020)
21707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21709 #else
21710 # define ISLOWER(c) \
21711                    (('a' <= (c) && (c) <= 'i') \
21712                      || ('j' <= (c) && (c) <= 'r') \
21713                      || ('s' <= (c) && (c) <= 'z'))
21714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21715 #endif
21716
21717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21718 int
21719 main ()
21720 {
21721   int i;
21722   for (i = 0; i < 256; i++)
21723     if (XOR (islower (i), ISLOWER (i))
21724         || toupper (i) != TOUPPER (i))
21725       exit(2);
21726   exit (0);
21727 }
21728 _ACEOF
21729 rm -f conftest$ac_exeext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731   (eval $ac_link) 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736   (eval $ac_try) 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); }; }; then
21740   :
21741 else
21742   echo "$as_me: program exited with status $ac_status" >&5
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 ( exit $ac_status )
21747 ac_cv_header_stdc=no
21748 fi
21749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21750 fi
21751 fi
21752 fi
21753 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21754 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21755 if test $ac_cv_header_stdc = yes; then
21756
21757 cat >>confdefs.h <<\_ACEOF
21758 #define STDC_HEADERS 1
21759 _ACEOF
21760
21761 fi
21762
21763
21764
21765
21766
21767 for ac_header in stddef.h stdlib.h string.h unistd.h
21768 do
21769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21771   echo "$as_me:$LINENO: checking for $ac_header" >&5
21772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21774   echo $ECHO_N "(cached) $ECHO_C" >&6
21775 fi
21776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21778 else
21779   # Is the header compilable?
21780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21782 cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h.  */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h.  */
21788 $ac_includes_default
21789 #include <$ac_header>
21790 _ACEOF
21791 rm -f conftest.$ac_objext
21792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21793   (eval $ac_compile) 2>conftest.er1
21794   ac_status=$?
21795   grep -v '^ *+' conftest.er1 >conftest.err
21796   rm -f conftest.er1
21797   cat conftest.err >&5
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); } &&
21800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802   (eval $ac_try) 2>&5
21803   ac_status=$?
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); }; } &&
21806          { ac_try='test -s conftest.$ac_objext'
21807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808   (eval $ac_try) 2>&5
21809   ac_status=$?
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); }; }; then
21812   ac_header_compiler=yes
21813 else
21814   echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21816
21817 ac_header_compiler=no
21818 fi
21819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21821 echo "${ECHO_T}$ac_header_compiler" >&6
21822
21823 # Is the header present?
21824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21826 cat >conftest.$ac_ext <<_ACEOF
21827 /* confdefs.h.  */
21828 _ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h.  */
21832 #include <$ac_header>
21833 _ACEOF
21834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21835   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21836   ac_status=$?
21837   grep -v '^ *+' conftest.er1 >conftest.err
21838   rm -f conftest.er1
21839   cat conftest.err >&5
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); } >/dev/null; then
21842   if test -s conftest.err; then
21843     ac_cpp_err=$ac_c_preproc_warn_flag
21844     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21845   else
21846     ac_cpp_err=
21847   fi
21848 else
21849   ac_cpp_err=yes
21850 fi
21851 if test -z "$ac_cpp_err"; then
21852   ac_header_preproc=yes
21853 else
21854   echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21856
21857   ac_header_preproc=no
21858 fi
21859 rm -f conftest.err conftest.$ac_ext
21860 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21861 echo "${ECHO_T}$ac_header_preproc" >&6
21862
21863 # So?  What about this header?
21864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21865   yes:no: )
21866     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21870     ac_header_preproc=yes
21871     ;;
21872   no:yes:* )
21873     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21875     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21876 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21877     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21879     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21880 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21883     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21885     (
21886       cat <<\_ASBOX
21887 ## ----------------------------------------- ##
21888 ## Report this to martin.quinson@ens-lyon.fr ##
21889 ## ----------------------------------------- ##
21890 _ASBOX
21891     ) |
21892       sed "s/^/$as_me: WARNING:     /" >&2
21893     ;;
21894 esac
21895 echo "$as_me:$LINENO: checking for $ac_header" >&5
21896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21898   echo $ECHO_N "(cached) $ECHO_C" >&6
21899 else
21900   eval "$as_ac_Header=\$ac_header_preproc"
21901 fi
21902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21904
21905 fi
21906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21907   cat >>confdefs.h <<_ACEOF
21908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21909 _ACEOF
21910
21911 fi
21912
21913 done
21914
21915
21916 # Checks for typedefs, structures, and compiler characteristics.
21917 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21918 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21919 if test "${ac_cv_c_const+set}" = set; then
21920   echo $ECHO_N "(cached) $ECHO_C" >&6
21921 else
21922   cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h.  */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h.  */
21928
21929 int
21930 main ()
21931 {
21932 /* FIXME: Include the comments suggested by Paul. */
21933 #ifndef __cplusplus
21934   /* Ultrix mips cc rejects this.  */
21935   typedef int charset[2];
21936   const charset x;
21937   /* SunOS 4.1.1 cc rejects this.  */
21938   char const *const *ccp;
21939   char **p;
21940   /* NEC SVR4.0.2 mips cc rejects this.  */
21941   struct point {int x, y;};
21942   static struct point const zero = {0,0};
21943   /* AIX XL C 1.02.0.0 rejects this.
21944      It does not let you subtract one const X* pointer from another in
21945      an arm of an if-expression whose if-part is not a constant
21946      expression */
21947   const char *g = "string";
21948   ccp = &g + (g ? g-g : 0);
21949   /* HPUX 7.0 cc rejects these. */
21950   ++ccp;
21951   p = (char**) ccp;
21952   ccp = (char const *const *) p;
21953   { /* SCO 3.2v4 cc rejects this.  */
21954     char *t;
21955     char const *s = 0 ? (char *) 0 : (char const *) 0;
21956
21957     *t++ = 0;
21958   }
21959   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21960     int x[] = {25, 17};
21961     const int *foo = &x[0];
21962     ++foo;
21963   }
21964   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21965     typedef const int *iptr;
21966     iptr p = 0;
21967     ++p;
21968   }
21969   { /* AIX XL C 1.02.0.0 rejects this saying
21970        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21971     struct s { int j; const int *ap[3]; };
21972     struct s *b; b->j = 5;
21973   }
21974   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21975     const int foo = 10;
21976   }
21977 #endif
21978
21979   ;
21980   return 0;
21981 }
21982 _ACEOF
21983 rm -f conftest.$ac_objext
21984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21985   (eval $ac_compile) 2>conftest.er1
21986   ac_status=$?
21987   grep -v '^ *+' conftest.er1 >conftest.err
21988   rm -f conftest.er1
21989   cat conftest.err >&5
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); } &&
21992          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994   (eval $ac_try) 2>&5
21995   ac_status=$?
21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); }; } &&
21998          { ac_try='test -s conftest.$ac_objext'
21999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000   (eval $ac_try) 2>&5
22001   ac_status=$?
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); }; }; then
22004   ac_cv_c_const=yes
22005 else
22006   echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22008
22009 ac_cv_c_const=no
22010 fi
22011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22012 fi
22013 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22014 echo "${ECHO_T}$ac_cv_c_const" >&6
22015 if test $ac_cv_c_const = no; then
22016
22017 cat >>confdefs.h <<\_ACEOF
22018 #define const
22019 _ACEOF
22020
22021 fi
22022
22023 echo "$as_me:$LINENO: checking for inline" >&5
22024 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22025 if test "${ac_cv_c_inline+set}" = set; then
22026   echo $ECHO_N "(cached) $ECHO_C" >&6
22027 else
22028   ac_cv_c_inline=no
22029 for ac_kw in inline __inline__ __inline; do
22030   cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h.  */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h.  */
22036 #ifndef __cplusplus
22037 typedef int foo_t;
22038 static $ac_kw foo_t static_foo () {return 0; }
22039 $ac_kw foo_t foo () {return 0; }
22040 #endif
22041
22042 _ACEOF
22043 rm -f conftest.$ac_objext
22044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22045   (eval $ac_compile) 2>conftest.er1
22046   ac_status=$?
22047   grep -v '^ *+' conftest.er1 >conftest.err
22048   rm -f conftest.er1
22049   cat conftest.err >&5
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); } &&
22052          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054   (eval $ac_try) 2>&5
22055   ac_status=$?
22056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); }; } &&
22058          { ac_try='test -s conftest.$ac_objext'
22059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060   (eval $ac_try) 2>&5
22061   ac_status=$?
22062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063   (exit $ac_status); }; }; then
22064   ac_cv_c_inline=$ac_kw; break
22065 else
22066   echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22068
22069 fi
22070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22071 done
22072
22073 fi
22074 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22075 echo "${ECHO_T}$ac_cv_c_inline" >&6
22076
22077
22078 case $ac_cv_c_inline in
22079   inline | yes) ;;
22080   *)
22081     case $ac_cv_c_inline in
22082       no) ac_val=;;
22083       *) ac_val=$ac_cv_c_inline;;
22084     esac
22085     cat >>confdefs.h <<_ACEOF
22086 #ifndef __cplusplus
22087 #define inline $ac_val
22088 #endif
22089 _ACEOF
22090     ;;
22091 esac
22092
22093 echo "$as_me:$LINENO: checking for size_t" >&5
22094 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22095 if test "${ac_cv_type_size_t+set}" = set; then
22096   echo $ECHO_N "(cached) $ECHO_C" >&6
22097 else
22098   cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h.  */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h.  */
22104 $ac_includes_default
22105 int
22106 main ()
22107 {
22108 if ((size_t *) 0)
22109   return 0;
22110 if (sizeof (size_t))
22111   return 0;
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext
22117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22118   (eval $ac_compile) 2>conftest.er1
22119   ac_status=$?
22120   grep -v '^ *+' conftest.er1 >conftest.err
22121   rm -f conftest.er1
22122   cat conftest.err >&5
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); } &&
22125          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22127   (eval $ac_try) 2>&5
22128   ac_status=$?
22129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); }; } &&
22131          { ac_try='test -s conftest.$ac_objext'
22132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133   (eval $ac_try) 2>&5
22134   ac_status=$?
22135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136   (exit $ac_status); }; }; then
22137   ac_cv_type_size_t=yes
22138 else
22139   echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22141
22142 ac_cv_type_size_t=no
22143 fi
22144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22145 fi
22146 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22147 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22148 if test $ac_cv_type_size_t = yes; then
22149   :
22150 else
22151
22152 cat >>confdefs.h <<_ACEOF
22153 #define size_t unsigned
22154 _ACEOF
22155
22156 fi
22157
22158
22159 # Checks for library functions.
22160
22161 for ac_header in stdlib.h
22162 do
22163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22165   echo "$as_me:$LINENO: checking for $ac_header" >&5
22166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22168   echo $ECHO_N "(cached) $ECHO_C" >&6
22169 fi
22170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22172 else
22173   # Is the header compilable?
22174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22176 cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h.  */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h.  */
22182 $ac_includes_default
22183 #include <$ac_header>
22184 _ACEOF
22185 rm -f conftest.$ac_objext
22186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22187   (eval $ac_compile) 2>conftest.er1
22188   ac_status=$?
22189   grep -v '^ *+' conftest.er1 >conftest.err
22190   rm -f conftest.er1
22191   cat conftest.err >&5
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } &&
22194          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; } &&
22200          { ac_try='test -s conftest.$ac_objext'
22201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202   (eval $ac_try) 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); }; }; then
22206   ac_header_compiler=yes
22207 else
22208   echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 ac_header_compiler=no
22212 fi
22213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22215 echo "${ECHO_T}$ac_header_compiler" >&6
22216
22217 # Is the header present?
22218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22220 cat >conftest.$ac_ext <<_ACEOF
22221 /* confdefs.h.  */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h.  */
22226 #include <$ac_header>
22227 _ACEOF
22228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22229   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22230   ac_status=$?
22231   grep -v '^ *+' conftest.er1 >conftest.err
22232   rm -f conftest.er1
22233   cat conftest.err >&5
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); } >/dev/null; then
22236   if test -s conftest.err; then
22237     ac_cpp_err=$ac_c_preproc_warn_flag
22238     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22239   else
22240     ac_cpp_err=
22241   fi
22242 else
22243   ac_cpp_err=yes
22244 fi
22245 if test -z "$ac_cpp_err"; then
22246   ac_header_preproc=yes
22247 else
22248   echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251   ac_header_preproc=no
22252 fi
22253 rm -f conftest.err conftest.$ac_ext
22254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22255 echo "${ECHO_T}$ac_header_preproc" >&6
22256
22257 # So?  What about this header?
22258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22259   yes:no: )
22260     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22264     ac_header_preproc=yes
22265     ;;
22266   no:yes:* )
22267     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22269     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22270 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22271     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22273     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22274 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22277     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22279     (
22280       cat <<\_ASBOX
22281 ## ----------------------------------------- ##
22282 ## Report this to martin.quinson@ens-lyon.fr ##
22283 ## ----------------------------------------- ##
22284 _ASBOX
22285     ) |
22286       sed "s/^/$as_me: WARNING:     /" >&2
22287     ;;
22288 esac
22289 echo "$as_me:$LINENO: checking for $ac_header" >&5
22290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22292   echo $ECHO_N "(cached) $ECHO_C" >&6
22293 else
22294   eval "$as_ac_Header=\$ac_header_preproc"
22295 fi
22296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22298
22299 fi
22300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22301   cat >>confdefs.h <<_ACEOF
22302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22303 _ACEOF
22304
22305 fi
22306
22307 done
22308
22309 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22310 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22311 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314   if test "$cross_compiling" = yes; then
22315   ac_cv_func_malloc_0_nonnull=no
22316 else
22317   cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323 #if STDC_HEADERS || HAVE_STDLIB_H
22324 # include <stdlib.h>
22325 #else
22326 char *malloc ();
22327 #endif
22328
22329 int
22330 main ()
22331 {
22332 exit (malloc (0) ? 0 : 1);
22333   ;
22334   return 0;
22335 }
22336 _ACEOF
22337 rm -f conftest$ac_exeext
22338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22339   (eval $ac_link) 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22344   (eval $ac_try) 2>&5
22345   ac_status=$?
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); }; }; then
22348   ac_cv_func_malloc_0_nonnull=yes
22349 else
22350   echo "$as_me: program exited with status $ac_status" >&5
22351 echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22353
22354 ( exit $ac_status )
22355 ac_cv_func_malloc_0_nonnull=no
22356 fi
22357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22358 fi
22359 fi
22360 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22361 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22362 if test $ac_cv_func_malloc_0_nonnull = yes; then
22363
22364 cat >>confdefs.h <<\_ACEOF
22365 #define HAVE_MALLOC 1
22366 _ACEOF
22367
22368 else
22369   cat >>confdefs.h <<\_ACEOF
22370 #define HAVE_MALLOC 0
22371 _ACEOF
22372
22373    case $LIBOBJS in
22374     "malloc.$ac_objext"   | \
22375   *" malloc.$ac_objext"   | \
22376     "malloc.$ac_objext "* | \
22377   *" malloc.$ac_objext "* ) ;;
22378   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22379 esac
22380
22381
22382 cat >>confdefs.h <<\_ACEOF
22383 #define malloc rpl_malloc
22384 _ACEOF
22385
22386 fi
22387
22388
22389
22390 echo "$as_me:$LINENO: checking for working memcmp" >&5
22391 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22392 if test "${ac_cv_func_memcmp_working+set}" = set; then
22393   echo $ECHO_N "(cached) $ECHO_C" >&6
22394 else
22395   if test "$cross_compiling" = yes; then
22396   ac_cv_func_memcmp_working=no
22397 else
22398   cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h.  */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h.  */
22404 $ac_includes_default
22405 int
22406 main ()
22407 {
22408
22409   /* Some versions of memcmp are not 8-bit clean.  */
22410   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22411   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22412     exit (1);
22413
22414   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22415      or more and with at least one buffer not starting on a 4-byte boundary.
22416      William Lewis provided this test program.   */
22417   {
22418     char foo[21];
22419     char bar[21];
22420     int i;
22421     for (i = 0; i < 4; i++)
22422       {
22423         char *a = foo + i;
22424         char *b = bar + i;
22425         strcpy (a, "--------01111111");
22426         strcpy (b, "--------10000000");
22427         if (memcmp (a, b, 16) >= 0)
22428           exit (1);
22429       }
22430     exit (0);
22431   }
22432
22433   ;
22434   return 0;
22435 }
22436 _ACEOF
22437 rm -f conftest$ac_exeext
22438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22439   (eval $ac_link) 2>&5
22440   ac_status=$?
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444   (eval $ac_try) 2>&5
22445   ac_status=$?
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); }; }; then
22448   ac_cv_func_memcmp_working=yes
22449 else
22450   echo "$as_me: program exited with status $ac_status" >&5
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22453
22454 ( exit $ac_status )
22455 ac_cv_func_memcmp_working=no
22456 fi
22457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22458 fi
22459 fi
22460 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22461 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22462 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22463     "memcmp.$ac_objext"   | \
22464   *" memcmp.$ac_objext"   | \
22465     "memcmp.$ac_objext "* | \
22466   *" memcmp.$ac_objext "* ) ;;
22467   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22468 esac
22469
22470
22471
22472
22473
22474
22475 for ac_func in memset strchr strerror usleep
22476 do
22477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22478 echo "$as_me:$LINENO: checking for $ac_func" >&5
22479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22480 if eval "test \"\${$as_ac_var+set}\" = set"; then
22481   echo $ECHO_N "(cached) $ECHO_C" >&6
22482 else
22483   cat >conftest.$ac_ext <<_ACEOF
22484 /* confdefs.h.  */
22485 _ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h.  */
22489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22491 #define $ac_func innocuous_$ac_func
22492
22493 /* System header to define __stub macros and hopefully few prototypes,
22494     which can conflict with char $ac_func (); below.
22495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22496     <limits.h> exists even on freestanding compilers.  */
22497
22498 #ifdef __STDC__
22499 # include <limits.h>
22500 #else
22501 # include <assert.h>
22502 #endif
22503
22504 #undef $ac_func
22505
22506 /* Override any gcc2 internal prototype to avoid an error.  */
22507 #ifdef __cplusplus
22508 extern "C"
22509 {
22510 #endif
22511 /* We use char because int might match the return type of a gcc2
22512    builtin and then its argument prototype would still apply.  */
22513 char $ac_func ();
22514 /* The GNU C library defines this for functions which it implements
22515     to always fail with ENOSYS.  Some functions are actually named
22516     something starting with __ and the normal name is an alias.  */
22517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22518 choke me
22519 #else
22520 char (*f) () = $ac_func;
22521 #endif
22522 #ifdef __cplusplus
22523 }
22524 #endif
22525
22526 int
22527 main ()
22528 {
22529 return f != $ac_func;
22530   ;
22531   return 0;
22532 }
22533 _ACEOF
22534 rm -f conftest.$ac_objext conftest$ac_exeext
22535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22536   (eval $ac_link) 2>conftest.er1
22537   ac_status=$?
22538   grep -v '^ *+' conftest.er1 >conftest.err
22539   rm -f conftest.er1
22540   cat conftest.err >&5
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); } &&
22543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545   (eval $ac_try) 2>&5
22546   ac_status=$?
22547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548   (exit $ac_status); }; } &&
22549          { ac_try='test -s conftest$ac_exeext'
22550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551   (eval $ac_try) 2>&5
22552   ac_status=$?
22553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554   (exit $ac_status); }; }; then
22555   eval "$as_ac_var=yes"
22556 else
22557   echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22559
22560 eval "$as_ac_var=no"
22561 fi
22562 rm -f conftest.err conftest.$ac_objext \
22563       conftest$ac_exeext conftest.$ac_ext
22564 fi
22565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22567 if test `eval echo '${'$as_ac_var'}'` = yes; then
22568   cat >>confdefs.h <<_ACEOF
22569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22570 _ACEOF
22571
22572 fi
22573 done
22574
22575
22576 # Can we rebuild the documentation?
22577
22578
22579 # Check whether --with-html-dir or --without-html-dir was given.
22580 if test "${with_html_dir+set}" = set; then
22581   withval="$with_html_dir"
22582
22583 else
22584   with_html_dir='${datadir}/gtk-doc/html'
22585 fi;
22586   HTML_DIR="$with_html_dir"
22587
22588
22589     # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
22590 if test "${enable_gtk_doc+set}" = set; then
22591   enableval="$enable_gtk_doc"
22592
22593 else
22594   enable_gtk_doc=no
22595 fi;
22596
22597   have_gtk_doc=no
22598   if test -z "$PKG_CONFIG"; then
22599     # Extract the first word of "pkg-config", so it can be a program name with args.
22600 set dummy pkg-config; ac_word=$2
22601 echo "$as_me:$LINENO: checking for $ac_word" >&5
22602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22603 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22604   echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606   case $PKG_CONFIG in
22607   [\\/]* | ?:[\\/]*)
22608   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22609   ;;
22610   *)
22611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22612 for as_dir in $PATH
22613 do
22614   IFS=$as_save_IFS
22615   test -z "$as_dir" && as_dir=.
22616   for ac_exec_ext in '' $ac_executable_extensions; do
22617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22618     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22620     break 2
22621   fi
22622 done
22623 done
22624
22625   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22626   ;;
22627 esac
22628 fi
22629 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22630
22631 if test -n "$PKG_CONFIG"; then
22632   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22633 echo "${ECHO_T}$PKG_CONFIG" >&6
22634 else
22635   echo "$as_me:$LINENO: result: no" >&5
22636 echo "${ECHO_T}no" >&6
22637 fi
22638
22639   fi
22640   if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
22641     have_gtk_doc=yes
22642   fi
22643
22644
22645   if test x$enable_gtk_doc = xyes; then
22646     if test "$have_gtk_doc" != yes; then
22647       enable_gtk_doc=no
22648     fi
22649   fi
22650
22651
22652
22653 if test x$enable_gtk_doc = xyes; then
22654   ENABLE_GTK_DOC_TRUE=
22655   ENABLE_GTK_DOC_FALSE='#'
22656 else
22657   ENABLE_GTK_DOC_TRUE='#'
22658   ENABLE_GTK_DOC_FALSE=
22659 fi
22660
22661
22662
22663 if test -n "$LIBTOOL"; then
22664   GTK_DOC_USE_LIBTOOL_TRUE=
22665   GTK_DOC_USE_LIBTOOL_FALSE='#'
22666 else
22667   GTK_DOC_USE_LIBTOOL_TRUE='#'
22668   GTK_DOC_USE_LIBTOOL_FALSE=
22669 fi
22670
22671
22672
22673
22674   echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
22675   # Extract the first word of "xml2-config", so it can be a program name with args.
22676 set dummy xml2-config; ac_word=$2
22677 echo "$as_me:$LINENO: checking for $ac_word" >&5
22678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22679 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
22680   echo $ECHO_N "(cached) $ECHO_C" >&6
22681 else
22682   case $ACI_CACHE_PROG in
22683   [\\/]* | ?:[\\/]*)
22684   ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
22685   ;;
22686   *)
22687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22688 for as_dir in $PATH
22689 do
22690   IFS=$as_save_IFS
22691   test -z "$as_dir" && as_dir=.
22692   for ac_exec_ext in '' $ac_executable_extensions; do
22693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22694     ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
22695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22696     break 2
22697   fi
22698 done
22699 done
22700
22701   test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
22702   ;;
22703 esac
22704 fi
22705 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
22706
22707 if test -n "$ACI_CACHE_PROG"; then
22708   echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
22709 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
22710 else
22711   echo "$as_me:$LINENO: result: no" >&5
22712 echo "${ECHO_T}no" >&6
22713 fi
22714
22715   aci_module_desc_XML="XML library (version XML2)"
22716     aci_pkg_config_XML=xml2-config
22717     aci_packages="$aci_packages XML"
22718   if test x$ACI_CACHE_PROG = xno; then
22719     HAVE_XML=no
22720     CFLAGS_XML=""
22721     LIBS_XML=""
22722     :
22723   else
22724     HAVE_XML=yes
22725     CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
22726     LIBS_XML=`$ACI_CACHE_PROG --libs `
22727     echo >/dev/null
22728   fi
22729           echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740         aci_nameok=`echo SimGrid|sed 'y/-/./'`
22741         if test "xSimGrid" != "x$aci_nameok" ; then
22742           { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
22743 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
22744    { (exit 1); exit 1; }; }
22745         fi
22746         echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
22747         aci_module_desc_SimGrid="the SimGrid simulator"
22748                 aci_packages="$aci_packages SimGrid"
22749
22750
22751 # Check whether --with-SimGrid or --without-SimGrid was given.
22752 if test "${with_SimGrid+set}" = set; then
22753   withval="$with_SimGrid"
22754   with_SimGrid=$withval
22755            good=yes
22756            if test "$withval" = yes ; then good=no; fi
22757            if test "$withval" = no ; then good=no; fi
22758            if test $good = no ; then
22759              { { 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
22760 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;}
22761    { (exit 1); exit 1; }; }
22762            fi
22763            aci_pkg_prefix_SimGrid="$withval"
22764            CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
22765            LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
22766
22767 fi;
22768
22769
22770 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
22771 if test "${with_SimGrid_includes+set}" = set; then
22772   withval="$with_SimGrid_includes"
22773   CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
22774            aci_pkg_inc_SimGrid="$withval"
22775
22776 fi;
22777
22778
22779 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
22780 if test "${with_SimGrid_libraries+set}" = set; then
22781   withval="$with_SimGrid_libraries"
22782   LIBS_SimGrid="-L$withval $LIBS_SimGrid"
22783              aci_pkg_lib_SimGrid="$withval"
22784 fi;
22785
22786
22787 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
22788 if test "${with_SimGrid_extra+set}" = set; then
22789   withval="$with_SimGrid_extra"
22790   LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
22791              aci_pkg_extra_SimGrid="$withval"
22792 fi;
22793
22794
22795                                 OLD_LDFLAGS=$LDFLAGS
22796         OLD_CFLAGS=$CFLAGS
22797         OLD_CPPFLAGS=$CPPFLAGS
22798
22799                 i=`echo -lsimgrid|wc -l`
22800         if test $i != 1 && test $i != 0 ; then
22801           { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
22802             please no newline and no tab." >&5
22803 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
22804             please no newline and no tab." >&2;}
22805    { (exit 1); exit 1; }; }
22806         fi
22807
22808         ac_func_search_save_LIBS="$LIBS"
22809         ac_func_search_save_this_LIBS="$LIBS_SimGrid"
22810         aci_found="no"
22811         echo "----------------------------------------" >&5
22812         echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
22813 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
22814         cat >conftest.$ac_ext <<_ACEOF
22815 /* confdefs.h.  */
22816 _ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h.  */
22820
22821 /* Override any gcc2 internal prototype to avoid an error.  */
22822 #ifdef __cplusplus
22823 extern "C"
22824 #endif
22825 /* We use char because int might match the return type of a gcc2
22826    builtin and then its argument prototype would still apply.  */
22827 char SG_init ();
22828 int
22829 main ()
22830 {
22831 SG_init ();
22832   ;
22833   return 0;
22834 }
22835 _ACEOF
22836 rm -f conftest.$ac_objext conftest$ac_exeext
22837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22838   (eval $ac_link) 2>conftest.er1
22839   ac_status=$?
22840   grep -v '^ *+' conftest.er1 >conftest.err
22841   rm -f conftest.er1
22842   cat conftest.err >&5
22843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844   (exit $ac_status); } &&
22845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22847   (eval $ac_try) 2>&5
22848   ac_status=$?
22849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); }; } &&
22851          { ac_try='test -s conftest$ac_exeext'
22852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853   (eval $ac_try) 2>&5
22854   ac_status=$?
22855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856   (exit $ac_status); }; }; then
22857   echo "$as_me:$LINENO: result: yes" >&5
22858 echo "${ECHO_T}yes" >&6 aci_found="yes"
22859 else
22860   echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863 echo "$as_me:$LINENO: result: no" >&5
22864 echo "${ECHO_T}no" >&6
22865 fi
22866 rm -f conftest.err conftest.$ac_objext \
22867       conftest$ac_exeext conftest.$ac_ext
22868         if test "$aci_found" = "no"; then
22869           if test -n "$LIBS_SimGrid" ; then
22870             LIBS="$LIBS_SimGrid"
22871             echo "----------------------------------------" >&5
22872             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
22873 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
22874             cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h.  */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h.  */
22880
22881 /* Override any gcc2 internal prototype to avoid an error.  */
22882 #ifdef __cplusplus
22883 extern "C"
22884 #endif
22885 /* We use char because int might match the return type of a gcc2
22886    builtin and then its argument prototype would still apply.  */
22887 char SG_init ();
22888 int
22889 main ()
22890 {
22891 SG_init ();
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22898   (eval $ac_link) 2>conftest.er1
22899   ac_status=$?
22900   grep -v '^ *+' conftest.er1 >conftest.err
22901   rm -f conftest.er1
22902   cat conftest.err >&5
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } &&
22905          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907   (eval $ac_try) 2>&5
22908   ac_status=$?
22909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910   (exit $ac_status); }; } &&
22911          { ac_try='test -s conftest$ac_exeext'
22912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22913   (eval $ac_try) 2>&5
22914   ac_status=$?
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); }; }; then
22917   aci_found="yes"
22918 else
22919   echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22921
22922 aci_found="no"
22923 fi
22924 rm -f conftest.err conftest.$ac_objext \
22925       conftest$ac_exeext conftest.$ac_ext
22926             echo "$as_me:$LINENO: result: $aci_found" >&5
22927 echo "${ECHO_T}$aci_found" >&6
22928           fi
22929         fi
22930         for i in -lsimgrid
22931         do
22932           if test "x$aci_found" = "xno"; then
22933             LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
22934             LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
22935             echo "----------------------------------------" >&5
22936             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
22937 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
22938             cat >conftest.$ac_ext <<_ACEOF
22939 /* confdefs.h.  */
22940 _ACEOF
22941 cat confdefs.h >>conftest.$ac_ext
22942 cat >>conftest.$ac_ext <<_ACEOF
22943 /* end confdefs.h.  */
22944
22945 /* Override any gcc2 internal prototype to avoid an error.  */
22946 #ifdef __cplusplus
22947 extern "C"
22948 #endif
22949 /* We use char because int might match the return type of a gcc2
22950    builtin and then its argument prototype would still apply.  */
22951 char SG_init ();
22952 int
22953 main ()
22954 {
22955 SG_init ();
22956   ;
22957   return 0;
22958 }
22959 _ACEOF
22960 rm -f conftest.$ac_objext conftest$ac_exeext
22961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22962   (eval $ac_link) 2>conftest.er1
22963   ac_status=$?
22964   grep -v '^ *+' conftest.er1 >conftest.err
22965   rm -f conftest.er1
22966   cat conftest.err >&5
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); } &&
22969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22971   (eval $ac_try) 2>&5
22972   ac_status=$?
22973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974   (exit $ac_status); }; } &&
22975          { ac_try='test -s conftest$ac_exeext'
22976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22977   (eval $ac_try) 2>&5
22978   ac_status=$?
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); }; }; then
22981   aci_found="yes"
22982 else
22983   echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22985
22986 aci_found="no"
22987 fi
22988 rm -f conftest.err conftest.$ac_objext \
22989       conftest$ac_exeext conftest.$ac_ext
22990             echo "$as_me:$LINENO: result: $aci_found" >&5
22991 echo "${ECHO_T}$aci_found" >&6
22992           fi
22993         done
22994         LIBS="$ac_func_search_save_LIBS"
22995
22996                                 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
22997           CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
22998           echo "CPPFLAGS=$CPPFLAGS">&5;
22999           if test "${ac_cv_header_simgrid_h+set}" = set; then
23000   echo "$as_me:$LINENO: checking for simgrid.h" >&5
23001 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23002 if test "${ac_cv_header_simgrid_h+set}" = set; then
23003   echo $ECHO_N "(cached) $ECHO_C" >&6
23004 fi
23005 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23006 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23007 else
23008   # Is the header compilable?
23009 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23010 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
23011 cat >conftest.$ac_ext <<_ACEOF
23012 /* confdefs.h.  */
23013 _ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h.  */
23017 $ac_includes_default
23018 #include <simgrid.h>
23019 _ACEOF
23020 rm -f conftest.$ac_objext
23021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23022   (eval $ac_compile) 2>conftest.er1
23023   ac_status=$?
23024   grep -v '^ *+' conftest.er1 >conftest.err
23025   rm -f conftest.er1
23026   cat conftest.err >&5
23027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028   (exit $ac_status); } &&
23029          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031   (eval $ac_try) 2>&5
23032   ac_status=$?
23033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); }; } &&
23035          { ac_try='test -s conftest.$ac_objext'
23036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037   (eval $ac_try) 2>&5
23038   ac_status=$?
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); }; }; then
23041   ac_header_compiler=yes
23042 else
23043   echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23045
23046 ac_header_compiler=no
23047 fi
23048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23050 echo "${ECHO_T}$ac_header_compiler" >&6
23051
23052 # Is the header present?
23053 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23054 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23055 cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h.  */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h.  */
23061 #include <simgrid.h>
23062 _ACEOF
23063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23065   ac_status=$?
23066   grep -v '^ *+' conftest.er1 >conftest.err
23067   rm -f conftest.er1
23068   cat conftest.err >&5
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); } >/dev/null; then
23071   if test -s conftest.err; then
23072     ac_cpp_err=$ac_c_preproc_warn_flag
23073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23074   else
23075     ac_cpp_err=
23076   fi
23077 else
23078   ac_cpp_err=yes
23079 fi
23080 if test -z "$ac_cpp_err"; then
23081   ac_header_preproc=yes
23082 else
23083   echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086   ac_header_preproc=no
23087 fi
23088 rm -f conftest.err conftest.$ac_ext
23089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23090 echo "${ECHO_T}$ac_header_preproc" >&6
23091
23092 # So?  What about this header?
23093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23094   yes:no: )
23095     { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23096 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23097     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23098 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23099     ac_header_preproc=yes
23100     ;;
23101   no:yes:* )
23102     { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23103 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23104     { echo "$as_me:$LINENO: WARNING: simgrid.h:     check for missing prerequisite headers?" >&5
23105 echo "$as_me: WARNING: simgrid.h:     check for missing prerequisite headers?" >&2;}
23106     { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23107 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23108     { echo "$as_me:$LINENO: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&5
23109 echo "$as_me: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23110     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23111 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23112     { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23113 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23114     (
23115       cat <<\_ASBOX
23116 ## ----------------------------------------- ##
23117 ## Report this to martin.quinson@ens-lyon.fr ##
23118 ## ----------------------------------------- ##
23119 _ASBOX
23120     ) |
23121       sed "s/^/$as_me: WARNING:     /" >&2
23122     ;;
23123 esac
23124 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23125 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23126 if test "${ac_cv_header_simgrid_h+set}" = set; then
23127   echo $ECHO_N "(cached) $ECHO_C" >&6
23128 else
23129   ac_cv_header_simgrid_h=$ac_header_preproc
23130 fi
23131 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23132 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23133
23134 fi
23135 if test $ac_cv_header_simgrid_h = yes; then
23136   good=yes
23137 else
23138   good=no
23139 fi
23140
23141
23142         fi
23143         if test "x$aci_found" = "xno" ; then
23144                                    { { 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
23145 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;}
23146    { (exit 1); exit 1; }; }
23147         else
23148                         HAVE_SimGrid="yes"
23149                 echo >/dev/null
23150         fi
23151         if test "x$HAVE_SimGrid" != "xyes" ; then
23152           CFLAGS_SimGrid=""
23153           LIBS_SimGrid=""
23154         fi
23155
23156
23157
23158
23159         echo "END OF ACI-PACKAGE(SimGrid)">&5;
23160                 LDFLAGS=$OLDLDFLAGS
23161         CPPFLAGS=$OLDCPPFLAGS
23162         CFLAGS=$OLDCFLAGS
23163
23164
23165
23166 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23167 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23168     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23169 if test "${enable_maintainer_mode+set}" = set; then
23170   enableval="$enable_maintainer_mode"
23171   USE_MAINTAINER_MODE=$enableval
23172 else
23173   USE_MAINTAINER_MODE=no
23174 fi;
23175   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
23176 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
23177
23178
23179 if test $USE_MAINTAINER_MODE = yes; then
23180   MAINTAINER_MODE_TRUE=
23181   MAINTAINER_MODE_FALSE='#'
23182 else
23183   MAINTAINER_MODE_TRUE='#'
23184   MAINTAINER_MODE_FALSE=
23185 fi
23186
23187   MAINT=$MAINTAINER_MODE_TRUE
23188
23189
23190 if test x$USE_MAINTAINER_MODE = xyes
23191 then
23192
23193   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
23194 if test "${enable_compile_warnings+set}" = set; then
23195   enableval="$enable_compile_warnings"
23196
23197 else
23198   enable_compile_warnings=yes
23199 fi;
23200
23201   echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
23202 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
23203   warnCFLAGS=
23204   if test "x$GCC" != xyes; then
23205     enable_compile_warnings=no
23206   fi
23207
23208   if test "x$enable_compile_warnings" != "xno"; then
23209     if test "x$GCC" = "xyes"; then
23210       case " $CFLAGS " in
23211       *-Wall*) ;;
23212       *) warnCFLAGS="-g -Wall -Wunused" ;;
23213       esac
23214
23215       ## -W is not all that useful.  And it cannot be controlled
23216       ## with individual -Wno-xxx flags, unlike -Wall
23217       if test "x$enable_compile_warnings" = "xyes"; then
23218         warnCFLAGS="$warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations\
23219                     -finline-functions  -Wshadow -Wpointer-arith \
23220                     -Wwrite-strings -Wno-unused-function -Werror"
23221       fi
23222     fi
23223   fi
23224   echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
23225 echo "${ECHO_T}$warnCFLAGS" >&6
23226
23227   # Check whether --enable-iso-c or --disable-iso-c was given.
23228 if test "${enable_iso_c+set}" = set; then
23229   enableval="$enable_iso_c"
23230
23231 else
23232   enable_iso_c=no
23233 fi;
23234
23235   echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
23236 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
23237   complCFLAGS=
23238   if test "x$enable_iso_c" != "xno"; then
23239     if test "x$GCC" = "xyes"; then
23240       case " $CFLAGS " in
23241       *-ansi*) ;;
23242       *) complCFLAGS="$complCFLAGS -ansi" ;;
23243       esac
23244
23245       case " $CFLAGS " in
23246       *-pedantic*) ;;
23247       *) complCFLAGS="$complCFLAGS -pedantic" ;;
23248       esac
23249     fi
23250   fi
23251   echo "$as_me:$LINENO: result: $complCFLAGS" >&5
23252 echo "${ECHO_T}$complCFLAGS" >&6
23253   if test "x$cflags_set" != "xyes"; then
23254     CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
23255     cflags_set=yes
23256
23257   fi
23258
23259 fi
23260
23261
23262
23263
23264
23265 # Extract the first word of "bash", so it can be a program name with args.
23266 set dummy bash; ac_word=$2
23267 echo "$as_me:$LINENO: checking for $ac_word" >&5
23268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23269 if test "${ac_cv_prog_BASH+set}" = set; then
23270   echo $ECHO_N "(cached) $ECHO_C" >&6
23271 else
23272   if test -n "$BASH"; then
23273   ac_cv_prog_BASH="$BASH" # Let the user override the test.
23274 else
23275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23276 for as_dir in $PATH
23277 do
23278   IFS=$as_save_IFS
23279   test -z "$as_dir" && as_dir=.
23280   for ac_exec_ext in '' $ac_executable_extensions; do
23281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23282     ac_cv_prog_BASH="`which bash`"
23283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23284     break 2
23285   fi
23286 done
23287 done
23288
23289   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
23290 fi
23291 fi
23292 BASH=$ac_cv_prog_BASH
23293 if test -n "$BASH"; then
23294   echo "$as_me:$LINENO: result: $BASH" >&5
23295 echo "${ECHO_T}$BASH" >&6
23296 else
23297   echo "$as_me:$LINENO: result: no" >&5
23298 echo "${ECHO_T}no" >&6
23299 fi
23300
23301 WARNING="This file is generated, do not edit"
23302
23303
23304                                                                                                                                                       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/gs_example src/base/Tests/run_tests src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
23305
23306
23307 cat >confcache <<\_ACEOF
23308 # This file is a shell script that caches the results of configure
23309 # tests run on this system so they can be shared between configure
23310 # scripts and configure runs, see configure's option --config-cache.
23311 # It is not useful on other systems.  If it contains results you don't
23312 # want to keep, you may remove or edit it.
23313 #
23314 # config.status only pays attention to the cache file if you give it
23315 # the --recheck option to rerun configure.
23316 #
23317 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23318 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23319 # following values.
23320
23321 _ACEOF
23322
23323 # The following way of writing the cache mishandles newlines in values,
23324 # but we know of no workaround that is simple, portable, and efficient.
23325 # So, don't put newlines in cache variables' values.
23326 # Ultrix sh set writes to stderr and can't be redirected directly,
23327 # and sets the high bit in the cache file unless we assign to the vars.
23328 {
23329   (set) 2>&1 |
23330     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23331     *ac_space=\ *)
23332       # `set' does not quote correctly, so add quotes (double-quote
23333       # substitution turns \\\\ into \\, and sed turns \\ into \).
23334       sed -n \
23335         "s/'/'\\\\''/g;
23336           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23337       ;;
23338     *)
23339       # `set' quotes correctly as required by POSIX, so do not add quotes.
23340       sed -n \
23341         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23342       ;;
23343     esac;
23344 } |
23345   sed '
23346      t clear
23347      : clear
23348      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23349      t end
23350      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23351      : end' >>confcache
23352 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23353   if test -w $cache_file; then
23354     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23355     cat confcache >$cache_file
23356   else
23357     echo "not updating unwritable cache $cache_file"
23358   fi
23359 fi
23360 rm -f confcache
23361
23362 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23363 # Let make expand exec_prefix.
23364 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23365
23366 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23367 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23368 # trailing colons and then remove the whole line if VPATH becomes empty
23369 # (actually we leave an empty line to preserve line numbers).
23370 if test "x$srcdir" = x.; then
23371   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23372 s/:*\$(srcdir):*/:/;
23373 s/:*\${srcdir}:*/:/;
23374 s/:*@srcdir@:*/:/;
23375 s/^\([^=]*=[     ]*\):*/\1/;
23376 s/:*$//;
23377 s/^[^=]*=[       ]*$//;
23378 }'
23379 fi
23380
23381 DEFS=-DHAVE_CONFIG_H
23382
23383 ac_libobjs=
23384 ac_ltlibobjs=
23385 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23386   # 1. Remove the extension, and $U if already installed.
23387   ac_i=`echo "$ac_i" |
23388          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23389   # 2. Add them.
23390   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23391   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23392 done
23393 LIBOBJS=$ac_libobjs
23394
23395 LTLIBOBJS=$ac_ltlibobjs
23396
23397
23398 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23399   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23400 Usually this means the macro was only invoked conditionally." >&5
23401 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23402 Usually this means the macro was only invoked conditionally." >&2;}
23403    { (exit 1); exit 1; }; }
23404 fi
23405 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23406   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23407 Usually this means the macro was only invoked conditionally." >&5
23408 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23409 Usually this means the macro was only invoked conditionally." >&2;}
23410    { (exit 1); exit 1; }; }
23411 fi
23412 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23413   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23414 Usually this means the macro was only invoked conditionally." >&5
23415 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23416 Usually this means the macro was only invoked conditionally." >&2;}
23417    { (exit 1); exit 1; }; }
23418 fi
23419 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23420   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23421 Usually this means the macro was only invoked conditionally." >&5
23422 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23423 Usually this means the macro was only invoked conditionally." >&2;}
23424    { (exit 1); exit 1; }; }
23425 fi
23426 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23427   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23428 Usually this means the macro was only invoked conditionally." >&5
23429 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23430 Usually this means the macro was only invoked conditionally." >&2;}
23431    { (exit 1); exit 1; }; }
23432 fi
23433 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23434   { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23435 Usually this means the macro was only invoked conditionally." >&5
23436 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23437 Usually this means the macro was only invoked conditionally." >&2;}
23438    { (exit 1); exit 1; }; }
23439 fi
23440 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23441   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23442 Usually this means the macro was only invoked conditionally." >&5
23443 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23444 Usually this means the macro was only invoked conditionally." >&2;}
23445    { (exit 1); exit 1; }; }
23446 fi
23447
23448 : ${CONFIG_STATUS=./config.status}
23449 ac_clean_files_save=$ac_clean_files
23450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23451 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23452 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23453 cat >$CONFIG_STATUS <<_ACEOF
23454 #! $SHELL
23455 # Generated by $as_me.
23456 # Run this file to recreate the current configuration.
23457 # Compiler output produced by configure, useful for debugging
23458 # configure, is in config.log if it exists.
23459
23460 debug=false
23461 ac_cs_recheck=false
23462 ac_cs_silent=false
23463 SHELL=\${CONFIG_SHELL-$SHELL}
23464 _ACEOF
23465
23466 cat >>$CONFIG_STATUS <<\_ACEOF
23467 ## --------------------- ##
23468 ## M4sh Initialization.  ##
23469 ## --------------------- ##
23470
23471 # Be Bourne compatible
23472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23473   emulate sh
23474   NULLCMD=:
23475   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23476   # is contrary to our usage.  Disable this feature.
23477   alias -g '${1+"$@"}'='"$@"'
23478 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23479   set -o posix
23480 fi
23481 DUALCASE=1; export DUALCASE # for MKS sh
23482
23483 # Support unset when possible.
23484 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23485   as_unset=unset
23486 else
23487   as_unset=false
23488 fi
23489
23490
23491 # Work around bugs in pre-3.0 UWIN ksh.
23492 $as_unset ENV MAIL MAILPATH
23493 PS1='$ '
23494 PS2='> '
23495 PS4='+ '
23496
23497 # NLS nuisances.
23498 for as_var in \
23499   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23500   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23501   LC_TELEPHONE LC_TIME
23502 do
23503   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23504     eval $as_var=C; export $as_var
23505   else
23506     $as_unset $as_var
23507   fi
23508 done
23509
23510 # Required to use basename.
23511 if expr a : '\(a\)' >/dev/null 2>&1; then
23512   as_expr=expr
23513 else
23514   as_expr=false
23515 fi
23516
23517 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23518   as_basename=basename
23519 else
23520   as_basename=false
23521 fi
23522
23523
23524 # Name of the executable.
23525 as_me=`$as_basename "$0" ||
23526 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23527          X"$0" : 'X\(//\)$' \| \
23528          X"$0" : 'X\(/\)$' \| \
23529          .     : '\(.\)' 2>/dev/null ||
23530 echo X/"$0" |
23531     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23532           /^X\/\(\/\/\)$/{ s//\1/; q; }
23533           /^X\/\(\/\).*/{ s//\1/; q; }
23534           s/.*/./; q'`
23535
23536
23537 # PATH needs CR, and LINENO needs CR and PATH.
23538 # Avoid depending upon Character Ranges.
23539 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23540 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23541 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23542 as_cr_digits='0123456789'
23543 as_cr_alnum=$as_cr_Letters$as_cr_digits
23544
23545 # The user is always right.
23546 if test "${PATH_SEPARATOR+set}" != set; then
23547   echo "#! /bin/sh" >conf$$.sh
23548   echo  "exit 0"   >>conf$$.sh
23549   chmod +x conf$$.sh
23550   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23551     PATH_SEPARATOR=';'
23552   else
23553     PATH_SEPARATOR=:
23554   fi
23555   rm -f conf$$.sh
23556 fi
23557
23558
23559   as_lineno_1=$LINENO
23560   as_lineno_2=$LINENO
23561   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23562   test "x$as_lineno_1" != "x$as_lineno_2" &&
23563   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23564   # Find who we are.  Look in the path if we contain no path at all
23565   # relative or not.
23566   case $0 in
23567     *[\\/]* ) as_myself=$0 ;;
23568     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23569 for as_dir in $PATH
23570 do
23571   IFS=$as_save_IFS
23572   test -z "$as_dir" && as_dir=.
23573   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23574 done
23575
23576        ;;
23577   esac
23578   # We did not find ourselves, most probably we were run as `sh COMMAND'
23579   # in which case we are not to be found in the path.
23580   if test "x$as_myself" = x; then
23581     as_myself=$0
23582   fi
23583   if test ! -f "$as_myself"; then
23584     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23585 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23586    { (exit 1); exit 1; }; }
23587   fi
23588   case $CONFIG_SHELL in
23589   '')
23590     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23591 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23592 do
23593   IFS=$as_save_IFS
23594   test -z "$as_dir" && as_dir=.
23595   for as_base in sh bash ksh sh5; do
23596          case $as_dir in
23597          /*)
23598            if ("$as_dir/$as_base" -c '
23599   as_lineno_1=$LINENO
23600   as_lineno_2=$LINENO
23601   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23602   test "x$as_lineno_1" != "x$as_lineno_2" &&
23603   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23604              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23605              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23606              CONFIG_SHELL=$as_dir/$as_base
23607              export CONFIG_SHELL
23608              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23609            fi;;
23610          esac
23611        done
23612 done
23613 ;;
23614   esac
23615
23616   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23617   # uniformly replaced by the line number.  The first 'sed' inserts a
23618   # line-number line before each line; the second 'sed' does the real
23619   # work.  The second script uses 'N' to pair each line-number line
23620   # with the numbered line, and appends trailing '-' during
23621   # substitution so that $LINENO is not a special case at line end.
23622   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23623   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23624   sed '=' <$as_myself |
23625     sed '
23626       N
23627       s,$,-,
23628       : loop
23629       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23630       t loop
23631       s,-$,,
23632       s,^['$as_cr_digits']*\n,,
23633     ' >$as_me.lineno &&
23634   chmod +x $as_me.lineno ||
23635     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23636 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23637    { (exit 1); exit 1; }; }
23638
23639   # Don't try to exec as it changes $[0], causing all sort of problems
23640   # (the dirname of $[0] is not the place where we might find the
23641   # original and so on.  Autoconf is especially sensible to this).
23642   . ./$as_me.lineno
23643   # Exit status is that of the last command.
23644   exit
23645 }
23646
23647
23648 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23649   *c*,-n*) ECHO_N= ECHO_C='
23650 ' ECHO_T='      ' ;;
23651   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23652   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23653 esac
23654
23655 if expr a : '\(a\)' >/dev/null 2>&1; then
23656   as_expr=expr
23657 else
23658   as_expr=false
23659 fi
23660
23661 rm -f conf$$ conf$$.exe conf$$.file
23662 echo >conf$$.file
23663 if ln -s conf$$.file conf$$ 2>/dev/null; then
23664   # We could just check for DJGPP; but this test a) works b) is more generic
23665   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23666   if test -f conf$$.exe; then
23667     # Don't use ln at all; we don't have any links
23668     as_ln_s='cp -p'
23669   else
23670     as_ln_s='ln -s'
23671   fi
23672 elif ln conf$$.file conf$$ 2>/dev/null; then
23673   as_ln_s=ln
23674 else
23675   as_ln_s='cp -p'
23676 fi
23677 rm -f conf$$ conf$$.exe conf$$.file
23678
23679 if mkdir -p . 2>/dev/null; then
23680   as_mkdir_p=:
23681 else
23682   test -d ./-p && rmdir ./-p
23683   as_mkdir_p=false
23684 fi
23685
23686 as_executable_p="test -f"
23687
23688 # Sed expression to map a string onto a valid CPP name.
23689 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23690
23691 # Sed expression to map a string onto a valid variable name.
23692 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23693
23694
23695 # IFS
23696 # We need space, tab and new line, in precisely that order.
23697 as_nl='
23698 '
23699 IFS="   $as_nl"
23700
23701 # CDPATH.
23702 $as_unset CDPATH
23703
23704 exec 6>&1
23705
23706 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23707 # report actual input values of CONFIG_FILES etc. instead of their
23708 # values after options handling.  Logging --version etc. is OK.
23709 exec 5>>config.log
23710 {
23711   echo
23712   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23713 ## Running $as_me. ##
23714 _ASBOX
23715 } >&5
23716 cat >&5 <<_CSEOF
23717
23718 This file was extended by GRAS $as_me 0.0.040304, which was
23719 generated by GNU Autoconf 2.59.  Invocation command line was
23720
23721   CONFIG_FILES    = $CONFIG_FILES
23722   CONFIG_HEADERS  = $CONFIG_HEADERS
23723   CONFIG_LINKS    = $CONFIG_LINKS
23724   CONFIG_COMMANDS = $CONFIG_COMMANDS
23725   $ $0 $@
23726
23727 _CSEOF
23728 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23729 echo >&5
23730 _ACEOF
23731
23732 # Files that config.status was made for.
23733 if test -n "$ac_config_files"; then
23734   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23735 fi
23736
23737 if test -n "$ac_config_headers"; then
23738   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23739 fi
23740
23741 if test -n "$ac_config_links"; then
23742   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23743 fi
23744
23745 if test -n "$ac_config_commands"; then
23746   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23747 fi
23748
23749 cat >>$CONFIG_STATUS <<\_ACEOF
23750
23751 ac_cs_usage="\
23752 \`$as_me' instantiates files from templates according to the
23753 current configuration.
23754
23755 Usage: $0 [OPTIONS] [FILE]...
23756
23757   -h, --help       print this help, then exit
23758   -V, --version    print version number, then exit
23759   -q, --quiet      do not print progress messages
23760   -d, --debug      don't remove temporary files
23761       --recheck    update $as_me by reconfiguring in the same conditions
23762   --file=FILE[:TEMPLATE]
23763                    instantiate the configuration file FILE
23764   --header=FILE[:TEMPLATE]
23765                    instantiate the configuration header FILE
23766
23767 Configuration files:
23768 $config_files
23769
23770 Configuration headers:
23771 $config_headers
23772
23773 Configuration commands:
23774 $config_commands
23775
23776 Report bugs to <bug-autoconf@gnu.org>."
23777 _ACEOF
23778
23779 cat >>$CONFIG_STATUS <<_ACEOF
23780 ac_cs_version="\\
23781 GRAS config.status 0.0.040304
23782 configured by $0, generated by GNU Autoconf 2.59,
23783   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23784
23785 Copyright (C) 2003 Free Software Foundation, Inc.
23786 This config.status script is free software; the Free Software Foundation
23787 gives unlimited permission to copy, distribute and modify it."
23788 srcdir=$srcdir
23789 INSTALL="$INSTALL"
23790 _ACEOF
23791
23792 cat >>$CONFIG_STATUS <<\_ACEOF
23793 # If no file are specified by the user, then we need to provide default
23794 # value.  By we need to know if files were specified by the user.
23795 ac_need_defaults=:
23796 while test $# != 0
23797 do
23798   case $1 in
23799   --*=*)
23800     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23801     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23802     ac_shift=:
23803     ;;
23804   -*)
23805     ac_option=$1
23806     ac_optarg=$2
23807     ac_shift=shift
23808     ;;
23809   *) # This is not an option, so the user has probably given explicit
23810      # arguments.
23811      ac_option=$1
23812      ac_need_defaults=false;;
23813   esac
23814
23815   case $ac_option in
23816   # Handling of the options.
23817 _ACEOF
23818 cat >>$CONFIG_STATUS <<\_ACEOF
23819   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23820     ac_cs_recheck=: ;;
23821   --version | --vers* | -V )
23822     echo "$ac_cs_version"; exit 0 ;;
23823   --he | --h)
23824     # Conflict between --help and --header
23825     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23826 Try \`$0 --help' for more information." >&5
23827 echo "$as_me: error: ambiguous option: $1
23828 Try \`$0 --help' for more information." >&2;}
23829    { (exit 1); exit 1; }; };;
23830   --help | --hel | -h )
23831     echo "$ac_cs_usage"; exit 0 ;;
23832   --debug | --d* | -d )
23833     debug=: ;;
23834   --file | --fil | --fi | --f )
23835     $ac_shift
23836     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23837     ac_need_defaults=false;;
23838   --header | --heade | --head | --hea )
23839     $ac_shift
23840     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23841     ac_need_defaults=false;;
23842   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23843   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23844     ac_cs_silent=: ;;
23845
23846   # This is an error.
23847   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23848 Try \`$0 --help' for more information." >&5
23849 echo "$as_me: error: unrecognized option: $1
23850 Try \`$0 --help' for more information." >&2;}
23851    { (exit 1); exit 1; }; } ;;
23852
23853   *) ac_config_targets="$ac_config_targets $1" ;;
23854
23855   esac
23856   shift
23857 done
23858
23859 ac_configure_extra_args=
23860
23861 if $ac_cs_silent; then
23862   exec 6>/dev/null
23863   ac_configure_extra_args="$ac_configure_extra_args --silent"
23864 fi
23865
23866 _ACEOF
23867 cat >>$CONFIG_STATUS <<_ACEOF
23868 if \$ac_cs_recheck; then
23869   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23870   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23871 fi
23872
23873 _ACEOF
23874
23875 cat >>$CONFIG_STATUS <<_ACEOF
23876 #
23877 # INIT-COMMANDS section.
23878 #
23879
23880 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23881
23882 _ACEOF
23883
23884
23885
23886 cat >>$CONFIG_STATUS <<\_ACEOF
23887 for ac_config_target in $ac_config_targets
23888 do
23889   case "$ac_config_target" in
23890   # Handling of arguments.
23891   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23892   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23893   "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
23894   "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
23895   "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
23896   "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
23897   "src/base/Tests/gs_example" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/gs_example" ;;
23898   "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
23899   "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
23900   "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
23901   "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
23902   "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
23903   "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
23904   "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
23905   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23906   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23907   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
23908   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23909 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23910    { (exit 1); exit 1; }; };;
23911   esac
23912 done
23913
23914 # If the user did not use the arguments to specify the items to instantiate,
23915 # then the envvar interface is used.  Set only those that are not.
23916 # We use the long form for the default assignment because of an extremely
23917 # bizarre bug on SunOS 4.1.3.
23918 if $ac_need_defaults; then
23919   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23920   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23921   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23922 fi
23923
23924 # Have a temporary directory for convenience.  Make it in the build tree
23925 # simply because there is no reason to put it here, and in addition,
23926 # creating and moving files from /tmp can sometimes cause problems.
23927 # Create a temporary directory, and hook for its removal unless debugging.
23928 $debug ||
23929 {
23930   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23931   trap '{ (exit 1); exit 1; }' 1 2 13 15
23932 }
23933
23934 # Create a (secure) tmp directory for tmp files.
23935
23936 {
23937   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23938   test -n "$tmp" && test -d "$tmp"
23939 }  ||
23940 {
23941   tmp=./confstat$$-$RANDOM
23942   (umask 077 && mkdir $tmp)
23943 } ||
23944 {
23945    echo "$me: cannot create a temporary directory in ." >&2
23946    { (exit 1); exit 1; }
23947 }
23948
23949 _ACEOF
23950
23951 cat >>$CONFIG_STATUS <<_ACEOF
23952
23953 #
23954 # CONFIG_FILES section.
23955 #
23956
23957 # No need to generate the scripts if there are no CONFIG_FILES.
23958 # This happens for instance when ./config.status config.h
23959 if test -n "\$CONFIG_FILES"; then
23960   # Protect against being on the right side of a sed subst in config.status.
23961   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23962    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23963 s,@SHELL@,$SHELL,;t t
23964 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23965 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23966 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23967 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23968 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23969 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23970 s,@exec_prefix@,$exec_prefix,;t t
23971 s,@prefix@,$prefix,;t t
23972 s,@program_transform_name@,$program_transform_name,;t t
23973 s,@bindir@,$bindir,;t t
23974 s,@sbindir@,$sbindir,;t t
23975 s,@libexecdir@,$libexecdir,;t t
23976 s,@datadir@,$datadir,;t t
23977 s,@sysconfdir@,$sysconfdir,;t t
23978 s,@sharedstatedir@,$sharedstatedir,;t t
23979 s,@localstatedir@,$localstatedir,;t t
23980 s,@libdir@,$libdir,;t t
23981 s,@includedir@,$includedir,;t t
23982 s,@oldincludedir@,$oldincludedir,;t t
23983 s,@infodir@,$infodir,;t t
23984 s,@mandir@,$mandir,;t t
23985 s,@build_alias@,$build_alias,;t t
23986 s,@host_alias@,$host_alias,;t t
23987 s,@target_alias@,$target_alias,;t t
23988 s,@DEFS@,$DEFS,;t t
23989 s,@ECHO_C@,$ECHO_C,;t t
23990 s,@ECHO_N@,$ECHO_N,;t t
23991 s,@ECHO_T@,$ECHO_T,;t t
23992 s,@LIBS@,$LIBS,;t t
23993 s,@build@,$build,;t t
23994 s,@build_cpu@,$build_cpu,;t t
23995 s,@build_vendor@,$build_vendor,;t t
23996 s,@build_os@,$build_os,;t t
23997 s,@host@,$host,;t t
23998 s,@host_cpu@,$host_cpu,;t t
23999 s,@host_vendor@,$host_vendor,;t t
24000 s,@host_os@,$host_os,;t t
24001 s,@target@,$target,;t t
24002 s,@target_cpu@,$target_cpu,;t t
24003 s,@target_vendor@,$target_vendor,;t t
24004 s,@target_os@,$target_os,;t t
24005 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24006 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24007 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24008 s,@CYGPATH_W@,$CYGPATH_W,;t t
24009 s,@PACKAGE@,$PACKAGE,;t t
24010 s,@VERSION@,$VERSION,;t t
24011 s,@ACLOCAL@,$ACLOCAL,;t t
24012 s,@AUTOCONF@,$AUTOCONF,;t t
24013 s,@AUTOMAKE@,$AUTOMAKE,;t t
24014 s,@AUTOHEADER@,$AUTOHEADER,;t t
24015 s,@MAKEINFO@,$MAKEINFO,;t t
24016 s,@AMTAR@,$AMTAR,;t t
24017 s,@install_sh@,$install_sh,;t t
24018 s,@STRIP@,$STRIP,;t t
24019 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24020 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24021 s,@AWK@,$AWK,;t t
24022 s,@SET_MAKE@,$SET_MAKE,;t t
24023 s,@am__leading_dot@,$am__leading_dot,;t t
24024 s,@CC@,$CC,;t t
24025 s,@CFLAGS@,$CFLAGS,;t t
24026 s,@LDFLAGS@,$LDFLAGS,;t t
24027 s,@CPPFLAGS@,$CPPFLAGS,;t t
24028 s,@ac_ct_CC@,$ac_ct_CC,;t t
24029 s,@EXEEXT@,$EXEEXT,;t t
24030 s,@OBJEXT@,$OBJEXT,;t t
24031 s,@DEPDIR@,$DEPDIR,;t t
24032 s,@am__include@,$am__include,;t t
24033 s,@am__quote@,$am__quote,;t t
24034 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24035 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24036 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24037 s,@CCDEPMODE@,$CCDEPMODE,;t t
24038 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24039 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24040 s,@EGREP@,$EGREP,;t t
24041 s,@LN_S@,$LN_S,;t t
24042 s,@ECHO@,$ECHO,;t t
24043 s,@AR@,$AR,;t t
24044 s,@ac_ct_AR@,$ac_ct_AR,;t t
24045 s,@RANLIB@,$RANLIB,;t t
24046 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24047 s,@CPP@,$CPP,;t t
24048 s,@CXX@,$CXX,;t t
24049 s,@CXXFLAGS@,$CXXFLAGS,;t t
24050 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24051 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24052 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24053 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24054 s,@CXXCPP@,$CXXCPP,;t t
24055 s,@F77@,$F77,;t t
24056 s,@FFLAGS@,$FFLAGS,;t t
24057 s,@ac_ct_F77@,$ac_ct_F77,;t t
24058 s,@LIBTOOL@,$LIBTOOL,;t t
24059 s,@LIBOBJS@,$LIBOBJS,;t t
24060 s,@HTML_DIR@,$HTML_DIR,;t t
24061 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24062 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
24063 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
24064 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
24065 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
24066 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
24067 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
24068 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
24069 s,@HAVE_XML@,$HAVE_XML,;t t
24070 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
24071 s,@LIBS_XML@,$LIBS_XML,;t t
24072 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
24073 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
24074 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
24075 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
24076 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
24077 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
24078 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
24079 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
24080 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24081 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24082 s,@MAINT@,$MAINT,;t t
24083 s,@cflags_set@,$cflags_set,;t t
24084 s,@BASH@,$BASH,;t t
24085 s,@WARNING@,$WARNING,;t t
24086 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24087 CEOF
24088
24089 _ACEOF
24090
24091   cat >>$CONFIG_STATUS <<\_ACEOF
24092   # Split the substitutions into bite-sized pieces for seds with
24093   # small command number limits, like on Digital OSF/1 and HP-UX.
24094   ac_max_sed_lines=48
24095   ac_sed_frag=1 # Number of current file.
24096   ac_beg=1 # First line for current file.
24097   ac_end=$ac_max_sed_lines # Line after last line for current file.
24098   ac_more_lines=:
24099   ac_sed_cmds=
24100   while $ac_more_lines; do
24101     if test $ac_beg -gt 1; then
24102       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24103     else
24104       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24105     fi
24106     if test ! -s $tmp/subs.frag; then
24107       ac_more_lines=false
24108     else
24109       # The purpose of the label and of the branching condition is to
24110       # speed up the sed processing (if there are no `@' at all, there
24111       # is no need to browse any of the substitutions).
24112       # These are the two extra sed commands mentioned above.
24113       (echo ':t
24114   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24115       if test -z "$ac_sed_cmds"; then
24116         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24117       else
24118         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24119       fi
24120       ac_sed_frag=`expr $ac_sed_frag + 1`
24121       ac_beg=$ac_end
24122       ac_end=`expr $ac_end + $ac_max_sed_lines`
24123     fi
24124   done
24125   if test -z "$ac_sed_cmds"; then
24126     ac_sed_cmds=cat
24127   fi
24128 fi # test -n "$CONFIG_FILES"
24129
24130 _ACEOF
24131 cat >>$CONFIG_STATUS <<\_ACEOF
24132 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24133   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24134   case $ac_file in
24135   - | *:- | *:-:* ) # input from stdin
24136         cat >$tmp/stdin
24137         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24138         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24139   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24140         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24141   * )   ac_file_in=$ac_file.in ;;
24142   esac
24143
24144   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24145   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24146 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24147          X"$ac_file" : 'X\(//\)[^/]' \| \
24148          X"$ac_file" : 'X\(//\)$' \| \
24149          X"$ac_file" : 'X\(/\)' \| \
24150          .     : '\(.\)' 2>/dev/null ||
24151 echo X"$ac_file" |
24152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24153           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24154           /^X\(\/\/\)$/{ s//\1/; q; }
24155           /^X\(\/\).*/{ s//\1/; q; }
24156           s/.*/./; q'`
24157   { if $as_mkdir_p; then
24158     mkdir -p "$ac_dir"
24159   else
24160     as_dir="$ac_dir"
24161     as_dirs=
24162     while test ! -d "$as_dir"; do
24163       as_dirs="$as_dir $as_dirs"
24164       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24165 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24166          X"$as_dir" : 'X\(//\)[^/]' \| \
24167          X"$as_dir" : 'X\(//\)$' \| \
24168          X"$as_dir" : 'X\(/\)' \| \
24169          .     : '\(.\)' 2>/dev/null ||
24170 echo X"$as_dir" |
24171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24172           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24173           /^X\(\/\/\)$/{ s//\1/; q; }
24174           /^X\(\/\).*/{ s//\1/; q; }
24175           s/.*/./; q'`
24176     done
24177     test ! -n "$as_dirs" || mkdir $as_dirs
24178   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24179 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24180    { (exit 1); exit 1; }; }; }
24181
24182   ac_builddir=.
24183
24184 if test "$ac_dir" != .; then
24185   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24186   # A "../" for each directory in $ac_dir_suffix.
24187   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24188 else
24189   ac_dir_suffix= ac_top_builddir=
24190 fi
24191
24192 case $srcdir in
24193   .)  # No --srcdir option.  We are building in place.
24194     ac_srcdir=.
24195     if test -z "$ac_top_builddir"; then
24196        ac_top_srcdir=.
24197     else
24198        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24199     fi ;;
24200   [\\/]* | ?:[\\/]* )  # Absolute path.
24201     ac_srcdir=$srcdir$ac_dir_suffix;
24202     ac_top_srcdir=$srcdir ;;
24203   *) # Relative path.
24204     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24205     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24206 esac
24207
24208 # Do not use `cd foo && pwd` to compute absolute paths, because
24209 # the directories may not exist.
24210 case `pwd` in
24211 .) ac_abs_builddir="$ac_dir";;
24212 *)
24213   case "$ac_dir" in
24214   .) ac_abs_builddir=`pwd`;;
24215   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24216   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24217   esac;;
24218 esac
24219 case $ac_abs_builddir in
24220 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24221 *)
24222   case ${ac_top_builddir}. in
24223   .) ac_abs_top_builddir=$ac_abs_builddir;;
24224   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24225   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24226   esac;;
24227 esac
24228 case $ac_abs_builddir in
24229 .) ac_abs_srcdir=$ac_srcdir;;
24230 *)
24231   case $ac_srcdir in
24232   .) ac_abs_srcdir=$ac_abs_builddir;;
24233   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24234   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24235   esac;;
24236 esac
24237 case $ac_abs_builddir in
24238 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24239 *)
24240   case $ac_top_srcdir in
24241   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24242   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24243   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24244   esac;;
24245 esac
24246
24247
24248   case $INSTALL in
24249   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24250   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24251   esac
24252
24253   # Let's still pretend it is `configure' which instantiates (i.e., don't
24254   # use $as_me), people would be surprised to read:
24255   #    /* config.h.  Generated by config.status.  */
24256   if test x"$ac_file" = x-; then
24257     configure_input=
24258   else
24259     configure_input="$ac_file.  "
24260   fi
24261   configure_input=$configure_input"Generated from `echo $ac_file_in |
24262                                      sed 's,.*/,,'` by configure."
24263
24264   # First look for the input files in the build tree, otherwise in the
24265   # src tree.
24266   ac_file_inputs=`IFS=:
24267     for f in $ac_file_in; do
24268       case $f in
24269       -) echo $tmp/stdin ;;
24270       [\\/$]*)
24271          # Absolute (can't be DOS-style, as IFS=:)
24272          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24273 echo "$as_me: error: cannot find input file: $f" >&2;}
24274    { (exit 1); exit 1; }; }
24275          echo "$f";;
24276       *) # Relative
24277          if test -f "$f"; then
24278            # Build tree
24279            echo "$f"
24280          elif test -f "$srcdir/$f"; then
24281            # Source tree
24282            echo "$srcdir/$f"
24283          else
24284            # /dev/null tree
24285            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24286 echo "$as_me: error: cannot find input file: $f" >&2;}
24287    { (exit 1); exit 1; }; }
24288          fi;;
24289       esac
24290     done` || { (exit 1); exit 1; }
24291
24292   if test x"$ac_file" != x-; then
24293     { echo "$as_me:$LINENO: creating $ac_file" >&5
24294 echo "$as_me: creating $ac_file" >&6;}
24295     rm -f "$ac_file"
24296   fi
24297 _ACEOF
24298 cat >>$CONFIG_STATUS <<_ACEOF
24299   sed "$ac_vpsub
24300 $extrasub
24301 _ACEOF
24302 cat >>$CONFIG_STATUS <<\_ACEOF
24303 :t
24304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24305 s,@configure_input@,$configure_input,;t t
24306 s,@srcdir@,$ac_srcdir,;t t
24307 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24308 s,@top_srcdir@,$ac_top_srcdir,;t t
24309 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24310 s,@builddir@,$ac_builddir,;t t
24311 s,@abs_builddir@,$ac_abs_builddir,;t t
24312 s,@top_builddir@,$ac_top_builddir,;t t
24313 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24314 s,@INSTALL@,$ac_INSTALL,;t t
24315 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24316   rm -f $tmp/stdin
24317   if test x"$ac_file" != x-; then
24318     mv $tmp/out $ac_file
24319   else
24320     cat $tmp/out
24321     rm -f $tmp/out
24322   fi
24323
24324   # Run the commands associated with the file.
24325   case $ac_file in
24326     Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24327      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24328      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24329     src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24330      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24331      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24332     src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24333      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24334      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24335     src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24336      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24337      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24338     src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24339      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24340      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24341     src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24342      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24343      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24344     src/base/Tests/gs_example ) ( cd src/include ; test -e gras || ln -s . gras )
24345      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24346      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24347     src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
24348      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24349      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24350     src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24351      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24352      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24353     src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24354      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24355      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24356     src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24357      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24358      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24359     src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24360      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24361      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24362     src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24363      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24364      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24365     src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24366      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24367      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24368     doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24369      test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24370      test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24371   esac
24372 done
24373 _ACEOF
24374 cat >>$CONFIG_STATUS <<\_ACEOF
24375
24376 #
24377 # CONFIG_HEADER section.
24378 #
24379
24380 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24381 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24382 #
24383 # ac_d sets the value in "#define NAME VALUE" lines.
24384 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24385 ac_dB='[         ].*$,\1#\2'
24386 ac_dC=' '
24387 ac_dD=',;t'
24388 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24389 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24390 ac_uB='$,\1#\2define\3'
24391 ac_uC=' '
24392 ac_uD=',;t'
24393
24394 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24395   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24396   case $ac_file in
24397   - | *:- | *:-:* ) # input from stdin
24398         cat >$tmp/stdin
24399         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24400         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24401   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24402         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24403   * )   ac_file_in=$ac_file.in ;;
24404   esac
24405
24406   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24407 echo "$as_me: creating $ac_file" >&6;}
24408
24409   # First look for the input files in the build tree, otherwise in the
24410   # src tree.
24411   ac_file_inputs=`IFS=:
24412     for f in $ac_file_in; do
24413       case $f in
24414       -) echo $tmp/stdin ;;
24415       [\\/$]*)
24416          # Absolute (can't be DOS-style, as IFS=:)
24417          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24418 echo "$as_me: error: cannot find input file: $f" >&2;}
24419    { (exit 1); exit 1; }; }
24420          # Do quote $f, to prevent DOS paths from being IFS'd.
24421          echo "$f";;
24422       *) # Relative
24423          if test -f "$f"; then
24424            # Build tree
24425            echo "$f"
24426          elif test -f "$srcdir/$f"; then
24427            # Source tree
24428            echo "$srcdir/$f"
24429          else
24430            # /dev/null tree
24431            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24432 echo "$as_me: error: cannot find input file: $f" >&2;}
24433    { (exit 1); exit 1; }; }
24434          fi;;
24435       esac
24436     done` || { (exit 1); exit 1; }
24437   # Remove the trailing spaces.
24438   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24439
24440 _ACEOF
24441
24442 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24443 # `conftest.undefs', that substitutes the proper values into
24444 # config.h.in to produce config.h.  The first handles `#define'
24445 # templates, and the second `#undef' templates.
24446 # And first: Protect against being on the right side of a sed subst in
24447 # config.status.  Protect against being in an unquoted here document
24448 # in config.status.
24449 rm -f conftest.defines conftest.undefs
24450 # Using a here document instead of a string reduces the quoting nightmare.
24451 # Putting comments in sed scripts is not portable.
24452 #
24453 # `end' is used to avoid that the second main sed command (meant for
24454 # 0-ary CPP macros) applies to n-ary macro definitions.
24455 # See the Autoconf documentation for `clear'.
24456 cat >confdef2sed.sed <<\_ACEOF
24457 s/[\\&,]/\\&/g
24458 s,[\\$`],\\&,g
24459 t clear
24460 : clear
24461 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24462 t end
24463 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24464 : end
24465 _ACEOF
24466 # If some macros were called several times there might be several times
24467 # the same #defines, which is useless.  Nevertheless, we may not want to
24468 # sort them, since we want the *last* AC-DEFINE to be honored.
24469 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24470 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24471 rm -f confdef2sed.sed
24472
24473 # This sed command replaces #undef with comments.  This is necessary, for
24474 # example, in the case of _POSIX_SOURCE, which is predefined and required
24475 # on some systems where configure will not decide to define it.
24476 cat >>conftest.undefs <<\_ACEOF
24477 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24478 _ACEOF
24479
24480 # Break up conftest.defines because some shells have a limit on the size
24481 # of here documents, and old seds have small limits too (100 cmds).
24482 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24483 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24484 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24485 echo '  :' >>$CONFIG_STATUS
24486 rm -f conftest.tail
24487 while grep . conftest.defines >/dev/null
24488 do
24489   # Write a limited-size here document to $tmp/defines.sed.
24490   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24491   # Speed up: don't consider the non `#define' lines.
24492   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24493   # Work around the forget-to-reset-the-flag bug.
24494   echo 't clr' >>$CONFIG_STATUS
24495   echo ': clr' >>$CONFIG_STATUS
24496   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24497   echo 'CEOF
24498   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24499   rm -f $tmp/in
24500   mv $tmp/out $tmp/in
24501 ' >>$CONFIG_STATUS
24502   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24503   rm -f conftest.defines
24504   mv conftest.tail conftest.defines
24505 done
24506 rm -f conftest.defines
24507 echo '  fi # grep' >>$CONFIG_STATUS
24508 echo >>$CONFIG_STATUS
24509
24510 # Break up conftest.undefs because some shells have a limit on the size
24511 # of here documents, and old seds have small limits too (100 cmds).
24512 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24513 rm -f conftest.tail
24514 while grep . conftest.undefs >/dev/null
24515 do
24516   # Write a limited-size here document to $tmp/undefs.sed.
24517   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24518   # Speed up: don't consider the non `#undef'
24519   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24520   # Work around the forget-to-reset-the-flag bug.
24521   echo 't clr' >>$CONFIG_STATUS
24522   echo ': clr' >>$CONFIG_STATUS
24523   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24524   echo 'CEOF
24525   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24526   rm -f $tmp/in
24527   mv $tmp/out $tmp/in
24528 ' >>$CONFIG_STATUS
24529   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24530   rm -f conftest.undefs
24531   mv conftest.tail conftest.undefs
24532 done
24533 rm -f conftest.undefs
24534
24535 cat >>$CONFIG_STATUS <<\_ACEOF
24536   # Let's still pretend it is `configure' which instantiates (i.e., don't
24537   # use $as_me), people would be surprised to read:
24538   #    /* config.h.  Generated by config.status.  */
24539   if test x"$ac_file" = x-; then
24540     echo "/* Generated by configure.  */" >$tmp/config.h
24541   else
24542     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24543   fi
24544   cat $tmp/in >>$tmp/config.h
24545   rm -f $tmp/in
24546   if test x"$ac_file" != x-; then
24547     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24548       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24549 echo "$as_me: $ac_file is unchanged" >&6;}
24550     else
24551       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24552 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24553          X"$ac_file" : 'X\(//\)[^/]' \| \
24554          X"$ac_file" : 'X\(//\)$' \| \
24555          X"$ac_file" : 'X\(/\)' \| \
24556          .     : '\(.\)' 2>/dev/null ||
24557 echo X"$ac_file" |
24558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24559           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24560           /^X\(\/\/\)$/{ s//\1/; q; }
24561           /^X\(\/\).*/{ s//\1/; q; }
24562           s/.*/./; q'`
24563       { if $as_mkdir_p; then
24564     mkdir -p "$ac_dir"
24565   else
24566     as_dir="$ac_dir"
24567     as_dirs=
24568     while test ! -d "$as_dir"; do
24569       as_dirs="$as_dir $as_dirs"
24570       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24572          X"$as_dir" : 'X\(//\)[^/]' \| \
24573          X"$as_dir" : 'X\(//\)$' \| \
24574          X"$as_dir" : 'X\(/\)' \| \
24575          .     : '\(.\)' 2>/dev/null ||
24576 echo X"$as_dir" |
24577     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24578           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24579           /^X\(\/\/\)$/{ s//\1/; q; }
24580           /^X\(\/\).*/{ s//\1/; q; }
24581           s/.*/./; q'`
24582     done
24583     test ! -n "$as_dirs" || mkdir $as_dirs
24584   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24585 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24586    { (exit 1); exit 1; }; }; }
24587
24588       rm -f $ac_file
24589       mv $tmp/config.h $ac_file
24590     fi
24591   else
24592     cat $tmp/config.h
24593     rm -f $tmp/config.h
24594   fi
24595 # Compute $ac_file's index in $config_headers.
24596 _am_stamp_count=1
24597 for _am_header in $config_headers :; do
24598   case $_am_header in
24599     $ac_file | $ac_file:* )
24600       break ;;
24601     * )
24602       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24603   esac
24604 done
24605 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24606 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24607          X$ac_file : 'X\(//\)[^/]' \| \
24608          X$ac_file : 'X\(//\)$' \| \
24609          X$ac_file : 'X\(/\)' \| \
24610          .     : '\(.\)' 2>/dev/null ||
24611 echo X$ac_file |
24612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24613           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24614           /^X\(\/\/\)$/{ s//\1/; q; }
24615           /^X\(\/\).*/{ s//\1/; q; }
24616           s/.*/./; q'`/stamp-h$_am_stamp_count
24617 done
24618 _ACEOF
24619 cat >>$CONFIG_STATUS <<\_ACEOF
24620
24621 #
24622 # CONFIG_COMMANDS section.
24623 #
24624 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24625   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24626   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24627   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24628 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24629          X"$ac_dest" : 'X\(//\)[^/]' \| \
24630          X"$ac_dest" : 'X\(//\)$' \| \
24631          X"$ac_dest" : 'X\(/\)' \| \
24632          .     : '\(.\)' 2>/dev/null ||
24633 echo X"$ac_dest" |
24634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24636           /^X\(\/\/\)$/{ s//\1/; q; }
24637           /^X\(\/\).*/{ s//\1/; q; }
24638           s/.*/./; q'`
24639   { if $as_mkdir_p; then
24640     mkdir -p "$ac_dir"
24641   else
24642     as_dir="$ac_dir"
24643     as_dirs=
24644     while test ! -d "$as_dir"; do
24645       as_dirs="$as_dir $as_dirs"
24646       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24648          X"$as_dir" : 'X\(//\)[^/]' \| \
24649          X"$as_dir" : 'X\(//\)$' \| \
24650          X"$as_dir" : 'X\(/\)' \| \
24651          .     : '\(.\)' 2>/dev/null ||
24652 echo X"$as_dir" |
24653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24655           /^X\(\/\/\)$/{ s//\1/; q; }
24656           /^X\(\/\).*/{ s//\1/; q; }
24657           s/.*/./; q'`
24658     done
24659     test ! -n "$as_dirs" || mkdir $as_dirs
24660   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24661 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24662    { (exit 1); exit 1; }; }; }
24663
24664   ac_builddir=.
24665
24666 if test "$ac_dir" != .; then
24667   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24668   # A "../" for each directory in $ac_dir_suffix.
24669   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24670 else
24671   ac_dir_suffix= ac_top_builddir=
24672 fi
24673
24674 case $srcdir in
24675   .)  # No --srcdir option.  We are building in place.
24676     ac_srcdir=.
24677     if test -z "$ac_top_builddir"; then
24678        ac_top_srcdir=.
24679     else
24680        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24681     fi ;;
24682   [\\/]* | ?:[\\/]* )  # Absolute path.
24683     ac_srcdir=$srcdir$ac_dir_suffix;
24684     ac_top_srcdir=$srcdir ;;
24685   *) # Relative path.
24686     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24687     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24688 esac
24689
24690 # Do not use `cd foo && pwd` to compute absolute paths, because
24691 # the directories may not exist.
24692 case `pwd` in
24693 .) ac_abs_builddir="$ac_dir";;
24694 *)
24695   case "$ac_dir" in
24696   .) ac_abs_builddir=`pwd`;;
24697   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24698   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24699   esac;;
24700 esac
24701 case $ac_abs_builddir in
24702 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24703 *)
24704   case ${ac_top_builddir}. in
24705   .) ac_abs_top_builddir=$ac_abs_builddir;;
24706   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24707   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24708   esac;;
24709 esac
24710 case $ac_abs_builddir in
24711 .) ac_abs_srcdir=$ac_srcdir;;
24712 *)
24713   case $ac_srcdir in
24714   .) ac_abs_srcdir=$ac_abs_builddir;;
24715   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24716   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24717   esac;;
24718 esac
24719 case $ac_abs_builddir in
24720 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24721 *)
24722   case $ac_top_srcdir in
24723   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24724   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24725   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24726   esac;;
24727 esac
24728
24729
24730   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24731 echo "$as_me: executing $ac_dest commands" >&6;}
24732   case $ac_dest in
24733     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24734   # Strip MF so we end up with the name of the file.
24735   mf=`echo "$mf" | sed -e 's/:.*$//'`
24736   # Check whether this is an Automake generated Makefile or not.
24737   # We used to match only the files named `Makefile.in', but
24738   # some people rename them; so instead we look at the file content.
24739   # Grep'ing the first line is not enough: some people post-process
24740   # each Makefile.in and add a new line on top of each file to say so.
24741   # So let's grep whole file.
24742   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24743     dirpart=`(dirname "$mf") 2>/dev/null ||
24744 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24745          X"$mf" : 'X\(//\)[^/]' \| \
24746          X"$mf" : 'X\(//\)$' \| \
24747          X"$mf" : 'X\(/\)' \| \
24748          .     : '\(.\)' 2>/dev/null ||
24749 echo X"$mf" |
24750     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24751           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24752           /^X\(\/\/\)$/{ s//\1/; q; }
24753           /^X\(\/\).*/{ s//\1/; q; }
24754           s/.*/./; q'`
24755   else
24756     continue
24757   fi
24758   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24759   # Extract the definition of DEP_FILES from the Makefile without
24760   # running `make'.
24761   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
24762   test -z "$DEPDIR" && continue
24763   # When using ansi2knr, U may be empty or an underscore; expand it
24764   U=`sed -n -e '/^U = / s///p' < "$mf"`
24765   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24766   # We invoke sed twice because it is the simplest approach to
24767   # changing $(DEPDIR) to its actual value in the expansion.
24768   for file in `sed -n -e '
24769     /^DEP_FILES = .*\\\\$/ {
24770       s/^DEP_FILES = //
24771       :loop
24772         s/\\\\$//
24773         p
24774         n
24775         /\\\\$/ b loop
24776       p
24777     }
24778     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24779        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24780     # Make sure the directory exists.
24781     test -f "$dirpart/$file" && continue
24782     fdir=`(dirname "$file") 2>/dev/null ||
24783 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24784          X"$file" : 'X\(//\)[^/]' \| \
24785          X"$file" : 'X\(//\)$' \| \
24786          X"$file" : 'X\(/\)' \| \
24787          .     : '\(.\)' 2>/dev/null ||
24788 echo X"$file" |
24789     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24790           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24791           /^X\(\/\/\)$/{ s//\1/; q; }
24792           /^X\(\/\).*/{ s//\1/; q; }
24793           s/.*/./; q'`
24794     { if $as_mkdir_p; then
24795     mkdir -p $dirpart/$fdir
24796   else
24797     as_dir=$dirpart/$fdir
24798     as_dirs=
24799     while test ! -d "$as_dir"; do
24800       as_dirs="$as_dir $as_dirs"
24801       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24803          X"$as_dir" : 'X\(//\)[^/]' \| \
24804          X"$as_dir" : 'X\(//\)$' \| \
24805          X"$as_dir" : 'X\(/\)' \| \
24806          .     : '\(.\)' 2>/dev/null ||
24807 echo X"$as_dir" |
24808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24809           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24810           /^X\(\/\/\)$/{ s//\1/; q; }
24811           /^X\(\/\).*/{ s//\1/; q; }
24812           s/.*/./; q'`
24813     done
24814     test ! -n "$as_dirs" || mkdir $as_dirs
24815   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24816 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24817    { (exit 1); exit 1; }; }; }
24818
24819     # echo "creating $dirpart/$file"
24820     echo '# dummy' > "$dirpart/$file"
24821   done
24822 done
24823  ;;
24824   esac
24825 done
24826 _ACEOF
24827
24828 cat >>$CONFIG_STATUS <<\_ACEOF
24829
24830 { (exit 0); exit 0; }
24831 _ACEOF
24832 chmod +x $CONFIG_STATUS
24833 ac_clean_files=$ac_clean_files_save
24834
24835
24836 # configure is writing to config.log, and then calls config.status.
24837 # config.status does its own redirection, appending to config.log.
24838 # Unfortunately, on DOS this fails, as config.log is still kept open
24839 # by configure, so config.status won't be able to write to it; its
24840 # output is simply discarded.  So we exec the FD to /dev/null,
24841 # effectively closing config.log, so it can be properly (re)opened and
24842 # appended to by config.status.  When coming back to configure, we
24843 # need to make the FD available again.
24844 if test "$no_create" != yes; then
24845   ac_cs_success=:
24846   ac_config_status_args=
24847   test "$silent" = yes &&
24848     ac_config_status_args="$ac_config_status_args --quiet"
24849   exec 5>/dev/null
24850   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24851   exec 5>>config.log
24852   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24853   # would make configure fail if this is the last instruction.
24854   $ac_cs_success || { (exit 1); exit 1; }
24855 fi
24856
24857
24858 echo "
24859
24860 Configuration of package \`${PACKAGE}':
24861
24862         Compiler:       ${CC}
24863
24864         CFlags:         ${CFLAGS}
24865         LDFlags:        ${LDFLAGS}
24866 "
24867
24868 exit 0;