Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Damn idiot, double where declared being as big as float (not more); do dump structure...
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.11 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.2.
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.2'
428 PACKAGE_STRING='GRAS 0.0.2'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
430
431 ac_unique_file="src/include/gras.h"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
434 #include <stdio.h>
435 #if HAVE_SYS_TYPES_H
436 # include <sys/types.h>
437 #endif
438 #if HAVE_SYS_STAT_H
439 # include <sys/stat.h>
440 #endif
441 #if STDC_HEADERS
442 # include <stdlib.h>
443 # include <stddef.h>
444 #else
445 # if HAVE_STDLIB_H
446 #  include <stdlib.h>
447 # endif
448 #endif
449 #if HAVE_STRING_H
450 # if !STDC_HEADERS && HAVE_MEMORY_H
451 #  include <memory.h>
452 # endif
453 # include <string.h>
454 #endif
455 #if HAVE_STRINGS_H
456 # include <strings.h>
457 #endif
458 #if HAVE_INTTYPES_H
459 # include <inttypes.h>
460 #else
461 # if HAVE_STDINT_H
462 #  include <stdint.h>
463 # endif
464 #endif
465 #if HAVE_UNISTD_H
466 # include <unistd.h>
467 #endif"
468
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE aci_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 HAVE_SG_TRUE HAVE_SG_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING SED 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.2 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.2:";;
1026    esac
1027   cat <<\_ACEOF
1028
1029 Optional Features:
1030   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-gtk-doc        use gtk-doc to build documentation default=no
1042   --enable-maintainer-mode  enable make rules and dependencies not useful
1043                           (and sometimes confusing) to the casual installer
1044   --enable-compile-warnings=no/minimum/yes       Turn on compiler warnings.
1045   --enable-iso-c          Try to warn if code is not ISO C
1046
1047 Optional Packages:
1048   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1049   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1050   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1051   --with-pic              try to use only PIC/non-PIC objects [default=use
1052                           both]
1053   --with-tags[=TAGS]
1054                           include additional configurations [automatic]
1055   --with-html-dir=PATH    path to installed docs
1056   --with-SimGrid=DIR      root directory of the SimGrid simulator installation
1057   --with-SimGrid-includes=DIR
1058                           specify exact include dir for the SimGrid simulator headers
1059   --with-SimGrid-libraries=DIR
1060                           specify exact library dir for the SimGrid simulator library
1061   --with-SimGrid-extra=ARG
1062                           specify extra args to pass to the linker to get the
1063                           the SimGrid simulator library (with no space. A sed to change "!"
1064                           to " " is run)
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 Report bugs to <martin.quinson@ens-lyon.fr>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
1094 if test "$ac_dir" != .; then
1095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096   # A "../" for each directory in $ac_dir_suffix.
1097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
1132   case ${ac_top_builddir}. in
1133   .) ac_abs_top_builddir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
1150   case $ac_top_srcdir in
1151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd "$ac_popdir"
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 GRAS configure 0.0.2
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.2, which was
1194 generated by GNU Autoconf 2.59.  Invocation command line was
1195
1196   $ $0 $@
1197
1198 _ACEOF
1199 {
1200 cat <<_ASUNAME
1201 ## --------- ##
1202 ## Platform. ##
1203 ## --------- ##
1204
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1213
1214 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1215 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1218 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1219 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1220 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1221
1222 _ASUNAME
1223
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225 for as_dir in $PATH
1226 do
1227   IFS=$as_save_IFS
1228   test -z "$as_dir" && as_dir=.
1229   echo "PATH: $as_dir"
1230 done
1231
1232 } >&5
1233
1234 cat >&5 <<_ACEOF
1235
1236
1237 ## ----------- ##
1238 ## Core tests. ##
1239 ## ----------- ##
1240
1241 _ACEOF
1242
1243
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1249 ac_configure_args=
1250 ac_configure_args0=
1251 ac_configure_args1=
1252 ac_sep=
1253 ac_must_keep_next=false
1254 for ac_pass in 1 2
1255 do
1256   for ac_arg
1257   do
1258     case $ac_arg in
1259     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261     | -silent | --silent | --silen | --sile | --sil)
1262       continue ;;
1263     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265     esac
1266     case $ac_pass in
1267     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268     2)
1269       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270       if test $ac_must_keep_next = true; then
1271         ac_must_keep_next=false # Got value, back to normal.
1272       else
1273         case $ac_arg in
1274           *=* | --config-cache | -C | -disable-* | --disable-* \
1275           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277           | -with-* | --with-* | -without-* | --without-* | --x)
1278             case "$ac_configure_args0 " in
1279               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280             esac
1281             ;;
1282           -* ) ac_must_keep_next=true ;;
1283         esac
1284       fi
1285       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286       # Get rid of the leading space.
1287       ac_sep=" "
1288       ;;
1289     esac
1290   done
1291 done
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1294
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log.  We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301   # Save into config.log some information that might help in debugging.
1302   {
1303     echo
1304
1305     cat <<\_ASBOX
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1309 _ASBOX
1310     echo
1311     # The following way of writing the cache mishandles newlines in values,
1312 {
1313   (set) 2>&1 |
1314     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315     *ac_space=\ *)
1316       sed -n \
1317         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319       ;;
1320     *)
1321       sed -n \
1322         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1323       ;;
1324     esac;
1325 }
1326     echo
1327
1328     cat <<\_ASBOX
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1332 _ASBOX
1333     echo
1334     for ac_var in $ac_subst_vars
1335     do
1336       eval ac_val=$`echo $ac_var`
1337       echo "$ac_var='"'"'$ac_val'"'"'"
1338     done | sort
1339     echo
1340
1341     if test -n "$ac_subst_files"; then
1342       cat <<\_ASBOX
1343 ## ------------- ##
1344 ## Output files. ##
1345 ## ------------- ##
1346 _ASBOX
1347       echo
1348       for ac_var in $ac_subst_files
1349       do
1350         eval ac_val=$`echo $ac_var`
1351         echo "$ac_var='"'"'$ac_val'"'"'"
1352       done | sort
1353       echo
1354     fi
1355
1356     if test -s confdefs.h; then
1357       cat <<\_ASBOX
1358 ## ----------- ##
1359 ## confdefs.h. ##
1360 ## ----------- ##
1361 _ASBOX
1362       echo
1363       sed "/^$/d" confdefs.h | sort
1364       echo
1365     fi
1366     test "$ac_signal" != 0 &&
1367       echo "$as_me: caught signal $ac_signal"
1368     echo "$as_me: exit $exit_status"
1369   } >&5
1370   rm -f core *.core &&
1371   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372     exit $exit_status
1373      ' 0
1374 for ac_signal in 1 2 13 15; do
1375   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376 done
1377 ac_signal=0
1378
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382 echo >confdefs.h
1383
1384 # Predefined preprocessor variables.
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1403 _ACEOF
1404
1405
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408 _ACEOF
1409
1410
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414   if test "x$prefix" != xNONE; then
1415     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1416   else
1417     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418   fi
1419 fi
1420 for ac_site_file in $CONFIG_SITE; do
1421   if test -r "$ac_site_file"; then
1422     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424     sed 's/^/| /' "$ac_site_file" >&5
1425     . "$ac_site_file"
1426   fi
1427 done
1428
1429 if test -r "$cache_file"; then
1430   # Some versions of bash will fail to source /dev/null (special
1431   # files actually), so we avoid doing that.
1432   if test -f "$cache_file"; then
1433     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1435     case $cache_file in
1436       [\\/]* | ?:[\\/]* ) . $cache_file;;
1437       *)                      . ./$cache_file;;
1438     esac
1439   fi
1440 else
1441   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1443   >$cache_file
1444 fi
1445
1446 # Check that the precious variables saved in the cache have kept the same
1447 # value.
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452   eval ac_new_set=\$ac_env_${ac_var}_set
1453   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454   eval ac_new_val="\$ac_env_${ac_var}_value"
1455   case $ac_old_set,$ac_new_set in
1456     set,)
1457       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459       ac_cache_corrupted=: ;;
1460     ,set)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,);;
1465     *)
1466       if test "x$ac_old_val" != "x$ac_new_val"; then
1467         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1470 echo "$as_me:   former value:  $ac_old_val" >&2;}
1471         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1472 echo "$as_me:   current value: $ac_new_val" >&2;}
1473         ac_cache_corrupted=:
1474       fi;;
1475   esac
1476   # Pass precious variables to config.status.
1477   if test "$ac_new_set" = set; then
1478     case $ac_new_val in
1479     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481     *) ac_arg=$ac_var=$ac_new_val ;;
1482     esac
1483     case " $ac_configure_args " in
1484       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1485       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486     esac
1487   fi
1488 done
1489 if $ac_cache_corrupted; then
1490   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494    { (exit 1); exit 1; }; }
1495 fi
1496
1497 ac_ext=c
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532 ac_aux_dir=
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534   if test -f $ac_dir/install-sh; then
1535     ac_aux_dir=$ac_dir
1536     ac_install_sh="$ac_aux_dir/install-sh -c"
1537     break
1538   elif test -f $ac_dir/install.sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install.sh -c"
1541     break
1542   elif test -f $ac_dir/shtool; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/shtool install -c"
1545     break
1546   fi
1547 done
1548 if test -z "$ac_aux_dir"; then
1549   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551    { (exit 1); exit 1; }; }
1552 fi
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
1557 # Make sure we can run config.sub.
1558 $ac_config_sub sun4 >/dev/null 2>&1 ||
1559   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561    { (exit 1); exit 1; }; }
1562
1563 echo "$as_me:$LINENO: checking build system type" >&5
1564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565 if test "${ac_cv_build+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_build_alias=$build_alias
1569 test -z "$ac_cv_build_alias" &&
1570   ac_cv_build_alias=`$ac_config_guess`
1571 test -z "$ac_cv_build_alias" &&
1572   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574    { (exit 1); exit 1; }; }
1575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578    { (exit 1); exit 1; }; }
1579
1580 fi
1581 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582 echo "${ECHO_T}$ac_cv_build" >&6
1583 build=$ac_cv_build
1584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589 echo "$as_me:$LINENO: checking host system type" >&5
1590 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1591 if test "${ac_cv_host+set}" = set; then
1592   echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594   ac_cv_host_alias=$host_alias
1595 test -z "$ac_cv_host_alias" &&
1596   ac_cv_host_alias=$ac_cv_build_alias
1597 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1598   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1600    { (exit 1); exit 1; }; }
1601
1602 fi
1603 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1604 echo "${ECHO_T}$ac_cv_host" >&6
1605 host=$ac_cv_host
1606 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611 echo "$as_me:$LINENO: checking target system type" >&5
1612 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1613 if test "${ac_cv_target+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   ac_cv_target_alias=$target_alias
1617 test "x$ac_cv_target_alias" = "x" &&
1618   ac_cv_target_alias=$ac_cv_host_alias
1619 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1620   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1621 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1622    { (exit 1); exit 1; }; }
1623
1624 fi
1625 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1626 echo "${ECHO_T}$ac_cv_target" >&6
1627 target=$ac_cv_target
1628 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633 # The aliases save the names the user supplied, while $host etc.
1634 # will get canonicalized.
1635 test -n "$target_alias" &&
1636   test "$program_prefix$program_suffix$program_transform_name" = \
1637     NONENONEs,x,x, &&
1638   program_prefix=${target_alias}-
1639 ac_ext=c
1640 ac_cpp='$CPP $CPPFLAGS'
1641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1644
1645
1646           ac_config_headers="$ac_config_headers src/gras_config.h"
1647
1648 am__api_version="1.8"
1649 # Find a good install program.  We prefer a C program (faster),
1650 # so one script is as good as another.  But avoid the broken or
1651 # incompatible versions:
1652 # SysV /etc/install, /usr/sbin/install
1653 # SunOS /usr/etc/install
1654 # IRIX /sbin/install
1655 # AIX /bin/install
1656 # AmigaOS /C/install, which installs bootblocks on floppy discs
1657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660 # OS/2's system install, which has a completely different semantic
1661 # ./install, which can be erroneously created by make from ./install.sh.
1662 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1663 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1664 if test -z "$INSTALL"; then
1665 if test "${ac_cv_path_install+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671   IFS=$as_save_IFS
1672   test -z "$as_dir" && as_dir=.
1673   # Account for people who put trailing slashes in PATH elements.
1674 case $as_dir/ in
1675   ./ | .// | /cC/* | \
1676   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1677   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1678   /usr/ucb/* ) ;;
1679   *)
1680     # OSF1 and SCO ODT 3.0 have their own names for install.
1681     # Don't use installbsd from OSF since it installs stuff as root
1682     # by default.
1683     for ac_prog in ginstall scoinst install; do
1684       for ac_exec_ext in '' $ac_executable_extensions; do
1685         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1686           if test $ac_prog = install &&
1687             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688             # AIX install.  It has an incompatible calling convention.
1689             :
1690           elif test $ac_prog = install &&
1691             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692             # program-specific install script used by HP pwplus--don't use.
1693             :
1694           else
1695             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1696             break 3
1697           fi
1698         fi
1699       done
1700     done
1701     ;;
1702 esac
1703 done
1704
1705
1706 fi
1707   if test "${ac_cv_path_install+set}" = set; then
1708     INSTALL=$ac_cv_path_install
1709   else
1710     # As a last resort, use the slow shell script.  We don't cache a
1711     # path for INSTALL within a source directory, because that will
1712     # break other packages using the cache if that directory is
1713     # removed, or if the path is relative.
1714     INSTALL=$ac_install_sh
1715   fi
1716 fi
1717 echo "$as_me:$LINENO: result: $INSTALL" >&5
1718 echo "${ECHO_T}$INSTALL" >&6
1719
1720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1721 # It thinks the first close brace ends the variable substitution.
1722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1723
1724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1725
1726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1727
1728 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1729 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1730 # Just in case
1731 sleep 1
1732 echo timestamp > conftest.file
1733 # Do `set' in a subshell so we don't clobber the current shell's
1734 # arguments.  Must try -L first in case configure is actually a
1735 # symlink; some systems play weird games with the mod time of symlinks
1736 # (eg FreeBSD returns the mod time of the symlink's containing
1737 # directory).
1738 if (
1739    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1740    if test "$*" = "X"; then
1741       # -L didn't work.
1742       set X `ls -t $srcdir/configure conftest.file`
1743    fi
1744    rm -f conftest.file
1745    if test "$*" != "X $srcdir/configure conftest.file" \
1746       && test "$*" != "X conftest.file $srcdir/configure"; then
1747
1748       # If neither matched, then we have a broken ls.  This can happen
1749       # if, for instance, CONFIG_SHELL is bash and it inherits a
1750       # broken ls alias from the environment.  This has actually
1751       # happened.  Such a system could not be considered "sane".
1752       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1753 alias in your environment" >&5
1754 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1755 alias in your environment" >&2;}
1756    { (exit 1); exit 1; }; }
1757    fi
1758
1759    test "$2" = conftest.file
1760    )
1761 then
1762    # Ok.
1763    :
1764 else
1765    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1766 Check your system clock" >&5
1767 echo "$as_me: error: newly created file is older than distributed files!
1768 Check your system clock" >&2;}
1769    { (exit 1); exit 1; }; }
1770 fi
1771 echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1773 test "$program_prefix" != NONE &&
1774   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1775 # Use a double $ so make ignores it.
1776 test "$program_suffix" != NONE &&
1777   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1778 # Double any \ or $.  echo might interpret backslashes.
1779 # By default was `s,x,x', remove it if useless.
1780 cat <<\_ACEOF >conftest.sed
1781 s/[\\$]/&&/g;s/;s,x,x,$//
1782 _ACEOF
1783 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1784 rm conftest.sed
1785
1786 # expand $ac_aux_dir to an absolute path
1787 am_aux_dir=`cd $ac_aux_dir && pwd`
1788
1789 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1790 # Use eval to expand $SHELL
1791 if eval "$MISSING --run true"; then
1792   am_missing_run="$MISSING --run "
1793 else
1794   am_missing_run=
1795   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1796 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1797 fi
1798
1799 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1800   # Keeping the `.' argument allows $(mkdir_p) to be used without
1801   # argument.  Indeed, we sometimes output rules like
1802   #   $(mkdir_p) $(somedir)
1803   # where $(somedir) is conditionally defined.
1804   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1805   # expensive solution, as it forces Make to start a sub-shell.)
1806   mkdir_p='mkdir -p -- .'
1807 else
1808   # On NextStep and OpenStep, the `mkdir' command does not
1809   # recognize any option.  It will interpret all options as
1810   # directories to create, and then abort because `.' already
1811   # exists.
1812   for d in ./-p ./--version;
1813   do
1814     test -d $d && rmdir $d
1815   done
1816   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1817   if test -f "$ac_aux_dir/mkinstalldirs"; then
1818     mkdir_p='$(mkinstalldirs)'
1819   else
1820     mkdir_p='$(install_sh) -d'
1821   fi
1822 fi
1823
1824 for ac_prog in gawk mawk nawk awk
1825 do
1826   # Extract the first word of "$ac_prog", so it can be a program name with args.
1827 set dummy $ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_AWK+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$AWK"; then
1834   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_AWK="$ac_prog"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 AWK=$ac_cv_prog_AWK
1853 if test -n "$AWK"; then
1854   echo "$as_me:$LINENO: result: $AWK" >&5
1855 echo "${ECHO_T}$AWK" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861   test -n "$AWK" && break
1862 done
1863
1864 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1865 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1866 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1867 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   cat >conftest.make <<\_ACEOF
1871 all:
1872         @echo 'ac_maketemp="$(MAKE)"'
1873 _ACEOF
1874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1875 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1876 if test -n "$ac_maketemp"; then
1877   eval ac_cv_prog_make_${ac_make}_set=yes
1878 else
1879   eval ac_cv_prog_make_${ac_make}_set=no
1880 fi
1881 rm -f conftest.make
1882 fi
1883 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1884   echo "$as_me:$LINENO: result: yes" >&5
1885 echo "${ECHO_T}yes" >&6
1886   SET_MAKE=
1887 else
1888   echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890   SET_MAKE="MAKE=${MAKE-make}"
1891 fi
1892
1893 rm -rf .tst 2>/dev/null
1894 mkdir .tst 2>/dev/null
1895 if test -d .tst; then
1896   am__leading_dot=.
1897 else
1898   am__leading_dot=_
1899 fi
1900 rmdir .tst 2>/dev/null
1901
1902 # test to see if srcdir already configured
1903 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1904    test -f $srcdir/config.status; then
1905   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1906 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1907    { (exit 1); exit 1; }; }
1908 fi
1909
1910 # test whether we have cygpath
1911 if test -z "$CYGPATH_W"; then
1912   if (cygpath --version) >/dev/null 2>/dev/null; then
1913     CYGPATH_W='cygpath -w'
1914   else
1915     CYGPATH_W=echo
1916   fi
1917 fi
1918
1919
1920 # Define the identity of the package.
1921  PACKAGE='gras'
1922  VERSION='0.0.2'
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE "$PACKAGE"
1927 _ACEOF
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define VERSION "$VERSION"
1932 _ACEOF
1933
1934 # Some tools Automake needs.
1935
1936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1937
1938
1939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1940
1941
1942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1943
1944
1945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1946
1947
1948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1949
1950
1951 AMTAR=${AMTAR-"${am_missing_run}tar"}
1952
1953 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1954
1955 # Installed binaries are usually stripped using `strip' when the user
1956 # run `make install-strip'.  However `strip' might not be the right
1957 # tool to use in cross-compilation environments, therefore Automake
1958 # will honor the `STRIP' environment variable to overrule this program.
1959 if test "$cross_compiling" != no; then
1960   if test -n "$ac_tool_prefix"; then
1961   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}strip; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_STRIP+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$STRIP"; then
1969   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984
1985 fi
1986 fi
1987 STRIP=$ac_cv_prog_STRIP
1988 if test -n "$STRIP"; then
1989   echo "$as_me:$LINENO: result: $STRIP" >&5
1990 echo "${ECHO_T}$STRIP" >&6
1991 else
1992   echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1994 fi
1995
1996 fi
1997 if test -z "$ac_cv_prog_STRIP"; then
1998   ac_ct_STRIP=$STRIP
1999   # Extract the first word of "strip", so it can be a program name with args.
2000 set dummy strip; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$ac_ct_STRIP"; then
2007   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_ac_ct_STRIP="strip"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2024 fi
2025 fi
2026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2027 if test -n "$ac_ct_STRIP"; then
2028   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2029 echo "${ECHO_T}$ac_ct_STRIP" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035   STRIP=$ac_ct_STRIP
2036 else
2037   STRIP="$ac_cv_prog_STRIP"
2038 fi
2039
2040 fi
2041 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2042
2043 # We need awk for the "check" target.  The system "awk" is bad on
2044 # some platforms.
2045
2046
2047
2048
2049 # Check whether --enable-shared or --disable-shared was given.
2050 if test "${enable_shared+set}" = set; then
2051   enableval="$enable_shared"
2052   p=${PACKAGE-default}
2053     case $enableval in
2054     yes) enable_shared=yes ;;
2055     no) enable_shared=no ;;
2056     *)
2057       enable_shared=no
2058       # Look at the argument we got.  We use all the common list separators.
2059       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2060       for pkg in $enableval; do
2061         IFS="$lt_save_ifs"
2062         if test "X$pkg" = "X$p"; then
2063           enable_shared=yes
2064         fi
2065       done
2066       IFS="$lt_save_ifs"
2067       ;;
2068     esac
2069 else
2070   enable_shared=yes
2071 fi;
2072
2073 # Check whether --enable-static or --disable-static was given.
2074 if test "${enable_static+set}" = set; then
2075   enableval="$enable_static"
2076   p=${PACKAGE-default}
2077     case $enableval in
2078     yes) enable_static=yes ;;
2079     no) enable_static=no ;;
2080     *)
2081      enable_static=no
2082       # Look at the argument we got.  We use all the common list separators.
2083       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2084       for pkg in $enableval; do
2085         IFS="$lt_save_ifs"
2086         if test "X$pkg" = "X$p"; then
2087           enable_static=yes
2088         fi
2089       done
2090       IFS="$lt_save_ifs"
2091       ;;
2092     esac
2093 else
2094   enable_static=yes
2095 fi;
2096
2097 # Check whether --enable-fast-install or --disable-fast-install was given.
2098 if test "${enable_fast_install+set}" = set; then
2099   enableval="$enable_fast_install"
2100   p=${PACKAGE-default}
2101     case $enableval in
2102     yes) enable_fast_install=yes ;;
2103     no) enable_fast_install=no ;;
2104     *)
2105       enable_fast_install=no
2106       # Look at the argument we got.  We use all the common list separators.
2107       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2108       for pkg in $enableval; do
2109         IFS="$lt_save_ifs"
2110         if test "X$pkg" = "X$p"; then
2111           enable_fast_install=yes
2112         fi
2113       done
2114       IFS="$lt_save_ifs"
2115       ;;
2116     esac
2117 else
2118   enable_fast_install=yes
2119 fi;
2120
2121 DEPDIR="${am__leading_dot}deps"
2122
2123           ac_config_commands="$ac_config_commands depfiles"
2124
2125
2126 am_make=${MAKE-make}
2127 cat > confinc << 'END'
2128 am__doit:
2129         @echo done
2130 .PHONY: am__doit
2131 END
2132 # If we don't find an include directive, just comment out the code.
2133 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2134 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2135 am__include="#"
2136 am__quote=
2137 _am_result=none
2138 # First try GNU make style include.
2139 echo "include confinc" > confmf
2140 # We grep out `Entering directory' and `Leaving directory'
2141 # messages which can occur if `w' ends up in MAKEFLAGS.
2142 # In particular we don't look at `^make:' because GNU make might
2143 # be invoked under some other name (usually "gmake"), in which
2144 # case it prints its new name instead of `make'.
2145 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2146    am__include=include
2147    am__quote=
2148    _am_result=GNU
2149 fi
2150 # Now try BSD make style include.
2151 if test "$am__include" = "#"; then
2152    echo '.include "confinc"' > confmf
2153    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2154       am__include=.include
2155       am__quote="\""
2156       _am_result=BSD
2157    fi
2158 fi
2159
2160
2161 echo "$as_me:$LINENO: result: $_am_result" >&5
2162 echo "${ECHO_T}$_am_result" >&6
2163 rm -f confinc confmf
2164
2165 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2166 if test "${enable_dependency_tracking+set}" = set; then
2167   enableval="$enable_dependency_tracking"
2168
2169 fi;
2170 if test "x$enable_dependency_tracking" != xno; then
2171   am_depcomp="$ac_aux_dir/depcomp"
2172   AMDEPBACKSLASH='\'
2173 fi
2174
2175
2176 if test "x$enable_dependency_tracking" != xno; then
2177   AMDEP_TRUE=
2178   AMDEP_FALSE='#'
2179 else
2180   AMDEP_TRUE='#'
2181   AMDEP_FALSE=
2182 fi
2183
2184
2185
2186 ac_ext=c
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 if test -n "$ac_tool_prefix"; then
2192   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test -n "$CC"; then
2200   ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
2206   test -z "$as_dir" && as_dir=.
2207   for ac_exec_ext in '' $ac_executable_extensions; do
2208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211     break 2
2212   fi
2213 done
2214 done
2215
2216 fi
2217 fi
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220   echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2222 else
2223   echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2225 fi
2226
2227 fi
2228 if test -z "$ac_cv_prog_CC"; then
2229   ac_ct_CC=$CC
2230   # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$ac_ct_CC"; then
2238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247     ac_cv_prog_ac_ct_CC="gcc"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253
2254 fi
2255 fi
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2260 else
2261   echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2263 fi
2264
2265   CC=$ac_ct_CC
2266 else
2267   CC="$ac_cv_prog_CC"
2268 fi
2269
2270 if test -z "$CC"; then
2271   if test -n "$ac_tool_prefix"; then
2272   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$CC"; then
2280   ac_cv_prog_CC="$CC" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2284 do
2285   IFS=$as_save_IFS
2286   test -z "$as_dir" && as_dir=.
2287   for ac_exec_ext in '' $ac_executable_extensions; do
2288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289     ac_cv_prog_CC="${ac_tool_prefix}cc"
2290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291     break 2
2292   fi
2293 done
2294 done
2295
2296 fi
2297 fi
2298 CC=$ac_cv_prog_CC
2299 if test -n "$CC"; then
2300   echo "$as_me:$LINENO: result: $CC" >&5
2301 echo "${ECHO_T}$CC" >&6
2302 else
2303   echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2305 fi
2306
2307 fi
2308 if test -z "$ac_cv_prog_CC"; then
2309   ac_ct_CC=$CC
2310   # Extract the first word of "cc", so it can be a program name with args.
2311 set dummy cc; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315   echo $ECHO_N "(cached) $ECHO_C" >&6
2316 else
2317   if test -n "$ac_ct_CC"; then
2318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2322 do
2323   IFS=$as_save_IFS
2324   test -z "$as_dir" && as_dir=.
2325   for ac_exec_ext in '' $ac_executable_extensions; do
2326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327     ac_cv_prog_ac_ct_CC="cc"
2328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329     break 2
2330   fi
2331 done
2332 done
2333
2334 fi
2335 fi
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2340 else
2341   echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2343 fi
2344
2345   CC=$ac_ct_CC
2346 else
2347   CC="$ac_cv_prog_CC"
2348 fi
2349
2350 fi
2351 if test -z "$CC"; then
2352   # Extract the first word of "cc", so it can be a program name with args.
2353 set dummy cc; ac_word=$2
2354 echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   if test -n "$CC"; then
2360   ac_cv_prog_CC="$CC" # Let the user override the test.
2361 else
2362   ac_prog_rejected=no
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2371        ac_prog_rejected=yes
2372        continue
2373      fi
2374     ac_cv_prog_CC="cc"
2375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376     break 2
2377   fi
2378 done
2379 done
2380
2381 if test $ac_prog_rejected = yes; then
2382   # We found a bogon in the path, so make sure we never use it.
2383   set dummy $ac_cv_prog_CC
2384   shift
2385   if test $# != 0; then
2386     # We chose a different compiler from the bogus one.
2387     # However, it has the same basename, so the bogon will be chosen
2388     # first if we set CC to just the basename; use the full file name.
2389     shift
2390     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2391   fi
2392 fi
2393 fi
2394 fi
2395 CC=$ac_cv_prog_CC
2396 if test -n "$CC"; then
2397   echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2399 else
2400   echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2402 fi
2403
2404 fi
2405 if test -z "$CC"; then
2406   if test -n "$ac_tool_prefix"; then
2407   for ac_prog in cl
2408   do
2409     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411 echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   if test -n "$CC"; then
2417   ac_cv_prog_CC="$CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424   for ac_exec_ext in '' $ac_executable_extensions; do
2425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431 done
2432
2433 fi
2434 fi
2435 CC=$ac_cv_prog_CC
2436 if test -n "$CC"; then
2437   echo "$as_me:$LINENO: result: $CC" >&5
2438 echo "${ECHO_T}$CC" >&6
2439 else
2440   echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6
2442 fi
2443
2444     test -n "$CC" && break
2445   done
2446 fi
2447 if test -z "$CC"; then
2448   ac_ct_CC=$CC
2449   for ac_prog in cl
2450 do
2451   # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   if test -n "$ac_ct_CC"; then
2459   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_exec_ext in '' $ac_executable_extensions; do
2467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468     ac_cv_prog_ac_ct_CC="$ac_prog"
2469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473 done
2474
2475 fi
2476 fi
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480 echo "${ECHO_T}$ac_ct_CC" >&6
2481 else
2482   echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6
2484 fi
2485
2486   test -n "$ac_ct_CC" && break
2487 done
2488
2489   CC=$ac_ct_CC
2490 fi
2491
2492 fi
2493
2494
2495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: no acceptable C compiler found in \$PATH
2498 See \`config.log' for more details." >&2;}
2499    { (exit 1); exit 1; }; }
2500
2501 # Provide some information about the compiler.
2502 echo "$as_me:$LINENO:" \
2503      "checking for C compiler version" >&5
2504 ac_compiler=`set X $ac_compile; echo $2`
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2506   (eval $ac_compiler --version </dev/null >&5) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2511   (eval $ac_compiler -v </dev/null >&5) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2516   (eval $ac_compiler -V </dev/null >&5) 2>&5
2517   ac_status=$?
2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519   (exit $ac_status); }
2520
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h.  */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h.  */
2527
2528 int
2529 main ()
2530 {
2531
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 ac_clean_files_save=$ac_clean_files
2537 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2538 # Try to create an executable without -o first, disregard a.out.
2539 # It will help us diagnose broken compilers, and finding out an intuition
2540 # of exeext.
2541 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2542 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2543 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2545   (eval $ac_link_default) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; then
2549   # Find the output, starting from the most likely.  This scheme is
2550 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2551 # resort.
2552
2553 # Be careful to initialize this variable, since it used to be cached.
2554 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2555 ac_cv_exeext=
2556 # b.out is created by i960 compilers.
2557 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2558 do
2559   test -f "$ac_file" || continue
2560   case $ac_file in
2561     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2562         ;;
2563     conftest.$ac_ext )
2564         # This is the source file.
2565         ;;
2566     [ab].out )
2567         # We found the default executable, but exeext='' is most
2568         # certainly right.
2569         break;;
2570     *.* )
2571         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572         # FIXME: I believe we export ac_cv_exeext for Libtool,
2573         # but it would be cool to find out if it's true.  Does anybody
2574         # maintain Libtool? --akim.
2575         export ac_cv_exeext
2576         break;;
2577     * )
2578         break;;
2579   esac
2580 done
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: C compiler cannot create executables
2588 See \`config.log' for more details." >&2;}
2589    { (exit 77); exit 77; }; }
2590 fi
2591
2592 ac_exeext=$ac_cv_exeext
2593 echo "$as_me:$LINENO: result: $ac_file" >&5
2594 echo "${ECHO_T}$ac_file" >&6
2595
2596 # Check the compiler produces executables we can run.  If not, either
2597 # the compiler is broken, or we cross compile.
2598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601 # If not cross compiling, check that we can run a simple program.
2602 if test "$cross_compiling" != yes; then
2603   if { ac_try='./$ac_file'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609     cross_compiling=no
2610   else
2611     if test "$cross_compiling" = maybe; then
2612         cross_compiling=yes
2613     else
2614         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot run C compiled programs.
2618 If you meant to cross compile, use \`--host'.
2619 See \`config.log' for more details." >&2;}
2620    { (exit 1); exit 1; }; }
2621     fi
2622   fi
2623 fi
2624 echo "$as_me:$LINENO: result: yes" >&5
2625 echo "${ECHO_T}yes" >&6
2626
2627 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2628 ac_clean_files=$ac_clean_files_save
2629 # Check the compiler produces executables we can run.  If not, either
2630 # the compiler is broken, or we cross compile.
2631 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2632 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2633 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2634 echo "${ECHO_T}$cross_compiling" >&6
2635
2636 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2637 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639   (eval $ac_link) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; then
2643   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2646 # `rm'.
2647 for ac_file in conftest.exe conftest conftest.*; do
2648   test -f "$ac_file" || continue
2649   case $ac_file in
2650     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2651     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652           export ac_cv_exeext
2653           break;;
2654     * ) break;;
2655   esac
2656 done
2657 else
2658   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2661 See \`config.log' for more details." >&2;}
2662    { (exit 1); exit 1; }; }
2663 fi
2664
2665 rm -f conftest$ac_cv_exeext
2666 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2667 echo "${ECHO_T}$ac_cv_exeext" >&6
2668
2669 rm -f conftest.$ac_ext
2670 EXEEXT=$ac_cv_exeext
2671 ac_exeext=$EXEEXT
2672 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2673 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2674 if test "${ac_cv_objext+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.o conftest.obj
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; then
2698   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2699   case $ac_file in
2700     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2701     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702        break;;
2703   esac
2704 done
2705 else
2706   echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713    { (exit 1); exit 1; }; }
2714 fi
2715
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 fi
2718 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6
2720 OBJEXT=$ac_cv_objext
2721 ac_objext=$OBJEXT
2722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725   echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727   cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733
2734 int
2735 main ()
2736 {
2737 #ifndef __GNUC__
2738        choke me
2739 #endif
2740
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747   (eval $ac_compile) 2>conftest.er1
2748   ac_status=$?
2749   grep -v '^ *+' conftest.er1 >conftest.err
2750   rm -f conftest.er1
2751   cat conftest.err >&5
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } &&
2754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   ac_compiler_gnu=yes
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 ac_compiler_gnu=no
2772 fi
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775
2776 fi
2777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2779 GCC=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CFLAGS=${CFLAGS+set}
2781 ac_save_CFLAGS=$CFLAGS
2782 CFLAGS="-g"
2783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h.  */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h.  */
2794
2795 int
2796 main ()
2797 {
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805   (eval $ac_compile) 2>conftest.er1
2806   ac_status=$?
2807   grep -v '^ *+' conftest.er1 >conftest.err
2808   rm -f conftest.er1
2809   cat conftest.err >&5
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); } &&
2812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814   (eval $ac_try) 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; } &&
2818          { ac_try='test -s conftest.$ac_objext'
2819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820   (eval $ac_try) 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; }; then
2824   ac_cv_prog_cc_g=yes
2825 else
2826   echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 ac_cv_prog_cc_g=no
2830 fi
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 fi
2833 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2834 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2835 if test "$ac_test_CFLAGS" = set; then
2836   CFLAGS=$ac_save_CFLAGS
2837 elif test $ac_cv_prog_cc_g = yes; then
2838   if test "$GCC" = yes; then
2839     CFLAGS="-g -O2"
2840   else
2841     CFLAGS="-g"
2842   fi
2843 else
2844   if test "$GCC" = yes; then
2845     CFLAGS="-O2"
2846   else
2847     CFLAGS=
2848   fi
2849 fi
2850 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2851 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2852 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   ac_cv_prog_cc_stdc=no
2856 ac_save_CC=$CC
2857 cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 #include <stdarg.h>
2864 #include <stdio.h>
2865 #include <sys/types.h>
2866 #include <sys/stat.h>
2867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2868 struct buf { int x; };
2869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2870 static char *e (p, i)
2871      char **p;
2872      int i;
2873 {
2874   return p[i];
2875 }
2876 static char *f (char * (*g) (char **, int), char **p, ...)
2877 {
2878   char *s;
2879   va_list v;
2880   va_start (v,p);
2881   s = g (p, va_arg (v,int));
2882   va_end (v);
2883   return s;
2884 }
2885
2886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2887    function prototypes and stuff, but not '\xHH' hex character constants.
2888    These don't provoke an error unfortunately, instead are silently treated
2889    as 'x'.  The following induces an error, until -std1 is added to get
2890    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2891    array size at least.  It's necessary to write '\x00'==0 to get something
2892    that's true only with -std1.  */
2893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2894
2895 int test (int i, double x);
2896 struct s1 {int (*f) (int a);};
2897 struct s2 {int (*f) (double a);};
2898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2899 int argc;
2900 char **argv;
2901 int
2902 main ()
2903 {
2904 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2905   ;
2906   return 0;
2907 }
2908 _ACEOF
2909 # Don't try gcc -ansi; that turns off useful extensions and
2910 # breaks some systems' header files.
2911 # AIX                   -qlanglvl=ansi
2912 # Ultrix and OSF/1      -std1
2913 # HP-UX 10.20 and later -Ae
2914 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2915 # SVR4                  -Xc -D__EXTENSIONS__
2916 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2917 do
2918   CC="$ac_save_CC $ac_arg"
2919   rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921   (eval $ac_compile) 2>conftest.er1
2922   ac_status=$?
2923   grep -v '^ *+' conftest.er1 >conftest.err
2924   rm -f conftest.er1
2925   cat conftest.err >&5
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); } &&
2928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   ac_cv_prog_cc_stdc=$ac_arg
2941 break
2942 else
2943   echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 fi
2947 rm -f conftest.err conftest.$ac_objext
2948 done
2949 rm -f conftest.$ac_ext conftest.$ac_objext
2950 CC=$ac_save_CC
2951
2952 fi
2953
2954 case "x$ac_cv_prog_cc_stdc" in
2955   x|xno)
2956     echo "$as_me:$LINENO: result: none needed" >&5
2957 echo "${ECHO_T}none needed" >&6 ;;
2958   *)
2959     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2960 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2961     CC="$CC $ac_cv_prog_cc_stdc" ;;
2962 esac
2963
2964 # Some people use a C++ compiler to compile C.  Since we use `exit',
2965 # in C++ we need to declare it.  In case someone uses the same compiler
2966 # for both compiling C and C++ we need to have the C++ compiler decide
2967 # the declaration of exit, since it's the most demanding environment.
2968 cat >conftest.$ac_ext <<_ACEOF
2969 #ifndef __cplusplus
2970   choke me
2971 #endif
2972 _ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975   (eval $ac_compile) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984   (eval $ac_try) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; } &&
2988          { ac_try='test -s conftest.$ac_objext'
2989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990   (eval $ac_try) 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; }; then
2994   for ac_declaration in \
2995    '' \
2996    'extern "C" void std::exit (int) throw (); using std::exit;' \
2997    'extern "C" void std::exit (int); using std::exit;' \
2998    'extern "C" void exit (int) throw ();' \
2999    'extern "C" void exit (int);' \
3000    'void exit (int);'
3001 do
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008 $ac_declaration
3009 #include <stdlib.h>
3010 int
3011 main ()
3012 {
3013 exit (42);
3014   ;
3015   return 0;
3016 }
3017 _ACEOF
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020   (eval $ac_compile) 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } &&
3027          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029   (eval $ac_try) 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; } &&
3033          { ac_try='test -s conftest.$ac_objext'
3034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035   (eval $ac_try) 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   :
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 continue
3045 fi
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 $ac_declaration
3054 int
3055 main ()
3056 {
3057 exit (42);
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064   (eval $ac_compile) 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } &&
3071          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073   (eval $ac_try) 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; } &&
3077          { ac_try='test -s conftest.$ac_objext'
3078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079   (eval $ac_try) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); }; }; then
3083   break
3084 else
3085   echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088 fi
3089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3090 done
3091 rm -f conftest*
3092 if test -n "$ac_declaration"; then
3093   echo '#ifdef __cplusplus' >>confdefs.h
3094   echo $ac_declaration      >>confdefs.h
3095   echo '#endif'             >>confdefs.h
3096 fi
3097
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 fi
3103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109
3110 depcc="$CC"   am_compiler_list=
3111
3112 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3113 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3114 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3115   echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3118   # We make a subdir and do the tests there.  Otherwise we can end up
3119   # making bogus files that we don't know about and never remove.  For
3120   # instance it was reported that on HP-UX the gcc test will end up
3121   # making a dummy file named `D' -- because `-MD' means `put the output
3122   # in D'.
3123   mkdir conftest.dir
3124   # Copy depcomp to subdir because otherwise we won't find it if we're
3125   # using a relative directory.
3126   cp "$am_depcomp" conftest.dir
3127   cd conftest.dir
3128   # We will build objects and dependencies in a subdirectory because
3129   # it helps to detect inapplicable dependency modes.  For instance
3130   # both Tru64's cc and ICC support -MD to output dependencies as a
3131   # side effect of compilation, but ICC will put the dependencies in
3132   # the current directory while Tru64 will put them in the object
3133   # directory.
3134   mkdir sub
3135
3136   am_cv_CC_dependencies_compiler_type=none
3137   if test "$am_compiler_list" = ""; then
3138      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3139   fi
3140   for depmode in $am_compiler_list; do
3141     # Setup a source with many dependencies, because some compilers
3142     # like to wrap large dependency lists on column 80 (with \), and
3143     # we should not choose a depcomp mode which is confused by this.
3144     #
3145     # We need to recreate these files for each test, as the compiler may
3146     # overwrite some of them when testing with obscure command lines.
3147     # This happens at least with the AIX C compiler.
3148     : > sub/conftest.c
3149     for i in 1 2 3 4 5 6; do
3150       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3151       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3152       # Solaris 8's {/usr,}/bin/sh.
3153       touch sub/conftst$i.h
3154     done
3155     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3156
3157     case $depmode in
3158     nosideeffect)
3159       # after this tag, mechanisms are not by side-effect, so they'll
3160       # only be used when explicitly requested
3161       if test "x$enable_dependency_tracking" = xyes; then
3162         continue
3163       else
3164         break
3165       fi
3166       ;;
3167     none) break ;;
3168     esac
3169     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3170     # mode.  It turns out that the SunPro C++ compiler does not properly
3171     # handle `-M -o', and we need to detect this.
3172     if depmode=$depmode \
3173        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3174        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3175        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3176          >/dev/null 2>conftest.err &&
3177        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3178        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3179        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3180       # icc doesn't choke on unknown options, it will just issue warnings
3181       # or remarks (even with -Werror).  So we grep stderr for any message
3182       # that says an option was ignored or not supported.
3183       # When given -MP, icc 7.0 and 7.1 complain thusly:
3184       #   icc: Command line warning: ignoring option '-M'; no argument required
3185       # The diagnosis changed in icc 8.0:
3186       #   icc: Command line remark: option '-MP' not supported
3187       if (grep 'ignoring option' conftest.err ||
3188           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3189         am_cv_CC_dependencies_compiler_type=$depmode
3190         break
3191       fi
3192     fi
3193   done
3194
3195   cd ..
3196   rm -rf conftest.dir
3197 else
3198   am_cv_CC_dependencies_compiler_type=none
3199 fi
3200
3201 fi
3202 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3203 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3204 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3205
3206
3207
3208 if
3209   test "x$enable_dependency_tracking" != xno \
3210   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3211   am__fastdepCC_TRUE=
3212   am__fastdepCC_FALSE='#'
3213 else
3214   am__fastdepCC_TRUE='#'
3215   am__fastdepCC_FALSE=
3216 fi
3217
3218
3219 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3220 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3221 if test "${lt_cv_path_SED+set}" = set; then
3222   echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224   # Loop through the user's path and test for sed and gsed.
3225 # Then use that list of sed's as ones to test for truncation.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for lt_ac_prog in sed gsed; do
3232     for ac_exec_ext in '' $ac_executable_extensions; do
3233       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3234         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3235       fi
3236     done
3237   done
3238 done
3239 lt_ac_max=0
3240 lt_ac_count=0
3241 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3242 # along with /bin/sed that truncates output.
3243 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3244   test ! -f $lt_ac_sed && break
3245   cat /dev/null > conftest.in
3246   lt_ac_count=0
3247   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3248   # Check for GNU sed and select it if it is found.
3249   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3250     lt_cv_path_SED=$lt_ac_sed
3251     break
3252   fi
3253   while true; do
3254     cat conftest.in conftest.in >conftest.tmp
3255     mv conftest.tmp conftest.in
3256     cp conftest.in conftest.nl
3257     echo >>conftest.nl
3258     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3259     cmp -s conftest.out conftest.nl || break
3260     # 10000 chars as input seems more than enough
3261     test $lt_ac_count -gt 10 && break
3262     lt_ac_count=`expr $lt_ac_count + 1`
3263     if test $lt_ac_count -gt $lt_ac_max; then
3264       lt_ac_max=$lt_ac_count
3265       lt_cv_path_SED=$lt_ac_sed
3266     fi
3267   done
3268 done
3269 SED=$lt_cv_path_SED
3270
3271 fi
3272
3273 echo "$as_me:$LINENO: result: $SED" >&5
3274 echo "${ECHO_T}$SED" >&6
3275
3276 echo "$as_me:$LINENO: checking for egrep" >&5
3277 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3278 if test "${ac_cv_prog_egrep+set}" = set; then
3279   echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3282     then ac_cv_prog_egrep='grep -E'
3283     else ac_cv_prog_egrep='egrep'
3284     fi
3285 fi
3286 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3287 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3288  EGREP=$ac_cv_prog_egrep
3289
3290
3291
3292 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3293 if test "${with_gnu_ld+set}" = set; then
3294   withval="$with_gnu_ld"
3295   test "$withval" = no || with_gnu_ld=yes
3296 else
3297   with_gnu_ld=no
3298 fi;
3299 ac_prog=ld
3300 if test "$GCC" = yes; then
3301   # Check if gcc -print-prog-name=ld gives a path.
3302   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3303 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3304   case $host in
3305   *-*-mingw*)
3306     # gcc leaves a trailing carriage return which upsets mingw
3307     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3308   *)
3309     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3310   esac
3311   case $ac_prog in
3312     # Accept absolute paths.
3313     [\\/]* | ?:[\\/]*)
3314       re_direlt='/[^/][^/]*/\.\./'
3315       # Canonicalize the pathname of ld
3316       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3317       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3318         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3319       done
3320       test -z "$LD" && LD="$ac_prog"
3321       ;;
3322   "")
3323     # If it fails, then pretend we aren't using GCC.
3324     ac_prog=ld
3325     ;;
3326   *)
3327     # If it is relative, then search for the first ld in PATH.
3328     with_gnu_ld=unknown
3329     ;;
3330   esac
3331 elif test "$with_gnu_ld" = yes; then
3332   echo "$as_me:$LINENO: checking for GNU ld" >&5
3333 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3334 else
3335   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3336 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3337 fi
3338 if test "${lt_cv_path_LD+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   if test -z "$LD"; then
3342   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3343   for ac_dir in $PATH; do
3344     IFS="$lt_save_ifs"
3345     test -z "$ac_dir" && ac_dir=.
3346     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3347       lt_cv_path_LD="$ac_dir/$ac_prog"
3348       # Check to see if the program is GNU ld.  I'd rather use --version,
3349       # but apparently some GNU ld's only accept -v.
3350       # Break only if it was the GNU/non-GNU ld that we prefer.
3351       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3352       *GNU* | *'with BFD'*)
3353         test "$with_gnu_ld" != no && break
3354         ;;
3355       *)
3356         test "$with_gnu_ld" != yes && break
3357         ;;
3358       esac
3359     fi
3360   done
3361   IFS="$lt_save_ifs"
3362 else
3363   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3364 fi
3365 fi
3366
3367 LD="$lt_cv_path_LD"
3368 if test -n "$LD"; then
3369   echo "$as_me:$LINENO: result: $LD" >&5
3370 echo "${ECHO_T}$LD" >&6
3371 else
3372   echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6
3374 fi
3375 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3376 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3377    { (exit 1); exit 1; }; }
3378 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3379 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3380 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3384 case `$LD -v 2>&1 </dev/null` in
3385 *GNU* | *'with BFD'*)
3386   lt_cv_prog_gnu_ld=yes
3387   ;;
3388 *)
3389   lt_cv_prog_gnu_ld=no
3390   ;;
3391 esac
3392 fi
3393 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3394 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3395 with_gnu_ld=$lt_cv_prog_gnu_ld
3396
3397
3398 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3399 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3400 if test "${lt_cv_ld_reload_flag+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   lt_cv_ld_reload_flag='-r'
3404 fi
3405 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3406 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3407 reload_flag=$lt_cv_ld_reload_flag
3408 case $reload_flag in
3409 "" | " "*) ;;
3410 *) reload_flag=" $reload_flag" ;;
3411 esac
3412 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3413
3414 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3415 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3416 if test "${lt_cv_path_NM+set}" = set; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419   if test -n "$NM"; then
3420   # Let the user override the test.
3421   lt_cv_path_NM="$NM"
3422 else
3423   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3424   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3425     IFS="$lt_save_ifs"
3426     test -z "$ac_dir" && ac_dir=.
3427     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3428     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3429       # Check to see if the nm accepts a BSD-compat flag.
3430       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3431       #   nm: unknown option "B" ignored
3432       # Tru64's nm complains that /dev/null is an invalid object file
3433       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3434       */dev/null* | *'Invalid file or object type'*)
3435         lt_cv_path_NM="$tmp_nm -B"
3436         break
3437         ;;
3438       *)
3439         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3440         */dev/null*)
3441           lt_cv_path_NM="$tmp_nm -p"
3442           break
3443           ;;
3444         *)
3445           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3446           continue # so that we can try to find one that supports BSD flags
3447           ;;
3448         esac
3449       esac
3450     fi
3451   done
3452   IFS="$lt_save_ifs"
3453   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3454 fi
3455 fi
3456 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3457 echo "${ECHO_T}$lt_cv_path_NM" >&6
3458 NM="$lt_cv_path_NM"
3459
3460 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3461 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3462 LN_S=$as_ln_s
3463 if test "$LN_S" = "ln -s"; then
3464   echo "$as_me:$LINENO: result: yes" >&5
3465 echo "${ECHO_T}yes" >&6
3466 else
3467   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3468 echo "${ECHO_T}no, using $LN_S" >&6
3469 fi
3470
3471 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3472 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3473 if test "${lt_cv_deplibs_check_method+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   lt_cv_file_magic_cmd='$MAGIC_CMD'
3477 lt_cv_file_magic_test_file=
3478 lt_cv_deplibs_check_method='unknown'
3479 # Need to set the preceding variable on all platforms that support
3480 # interlibrary dependencies.
3481 # 'none' -- dependencies not supported.
3482 # `unknown' -- same as none, but documents that we really don't know.
3483 # 'pass_all' -- all dependencies passed with no checks.
3484 # 'test_compile' -- check by making test program.
3485 # 'file_magic [[regex]]' -- check by looking for files in library path
3486 # which responds to the $file_magic_cmd with a given extended regex.
3487 # If you have `file' or equivalent on your system and you're not sure
3488 # whether `pass_all' will *always* work, you probably want this one.
3489
3490 case $host_os in
3491 aix4* | aix5*)
3492   lt_cv_deplibs_check_method=pass_all
3493   ;;
3494
3495 beos*)
3496   lt_cv_deplibs_check_method=pass_all
3497   ;;
3498
3499 bsdi4*)
3500   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3501   lt_cv_file_magic_cmd='/usr/bin/file -L'
3502   lt_cv_file_magic_test_file=/shlib/libc.so
3503   ;;
3504
3505 cygwin*)
3506   # func_win32_libid is a shell function defined in ltmain.sh
3507   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3508   lt_cv_file_magic_cmd='func_win32_libid'
3509   ;;
3510
3511 mingw* | pw32*)
3512   # Base MSYS/MinGW do not provide the 'file' command needed by
3513   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3514   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3515   lt_cv_file_magic_cmd='$OBJDUMP -f'
3516   ;;
3517
3518 darwin* | rhapsody*)
3519   lt_cv_deplibs_check_method=pass_all
3520   ;;
3521
3522 freebsd* | kfreebsd*-gnu)
3523   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3524     case $host_cpu in
3525     i*86 )
3526       # Not sure whether the presence of OpenBSD here was a mistake.
3527       # Let's accept both of them until this is cleared up.
3528       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3529       lt_cv_file_magic_cmd=/usr/bin/file
3530       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3531       ;;
3532     esac
3533   else
3534     lt_cv_deplibs_check_method=pass_all
3535   fi
3536   ;;
3537
3538 gnu*)
3539   lt_cv_deplibs_check_method=pass_all
3540   ;;
3541
3542 hpux10.20* | hpux11*)
3543   lt_cv_file_magic_cmd=/usr/bin/file
3544   case "$host_cpu" in
3545   ia64*)
3546     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3547     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3548     ;;
3549   hppa*64*)
3550     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]'
3551     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3552     ;;
3553   *)
3554     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3555     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3556     ;;
3557   esac
3558   ;;
3559
3560 irix5* | irix6* | nonstopux*)
3561   case $LD in
3562   *-32|*"-32 ") libmagic=32-bit;;
3563   *-n32|*"-n32 ") libmagic=N32;;
3564   *-64|*"-64 ") libmagic=64-bit;;
3565   *) libmagic=never-match;;
3566   esac
3567   lt_cv_deplibs_check_method=pass_all
3568   ;;
3569
3570 # This must be Linux ELF.
3571 linux*)
3572   lt_cv_deplibs_check_method=pass_all
3573   ;;
3574
3575 netbsd* | knetbsd*-gnu)
3576   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3577     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3578   else
3579     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3580   fi
3581   ;;
3582
3583 newos6*)
3584   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3585   lt_cv_file_magic_cmd=/usr/bin/file
3586   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3587   ;;
3588
3589 nto-qnx*)
3590   lt_cv_deplibs_check_method=unknown
3591   ;;
3592
3593 openbsd*)
3594   lt_cv_file_magic_cmd=/usr/bin/file
3595   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3596   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3597     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3598   else
3599     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3600   fi
3601   ;;
3602
3603 osf3* | osf4* | osf5*)
3604   lt_cv_deplibs_check_method=pass_all
3605   ;;
3606
3607 sco3.2v5*)
3608   lt_cv_deplibs_check_method=pass_all
3609   ;;
3610
3611 solaris*)
3612   lt_cv_deplibs_check_method=pass_all
3613   ;;
3614
3615 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3616   case $host_vendor in
3617   motorola)
3618     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]'
3619     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3620     ;;
3621   ncr)
3622     lt_cv_deplibs_check_method=pass_all
3623     ;;
3624   sequent)
3625     lt_cv_file_magic_cmd='/bin/file'
3626     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3627     ;;
3628   sni)
3629     lt_cv_file_magic_cmd='/bin/file'
3630     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3631     lt_cv_file_magic_test_file=/lib/libc.so
3632     ;;
3633   siemens)
3634     lt_cv_deplibs_check_method=pass_all
3635     ;;
3636   esac
3637   ;;
3638
3639 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3640   lt_cv_deplibs_check_method=pass_all
3641   ;;
3642 esac
3643
3644 fi
3645 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3646 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3647 file_magic_cmd=$lt_cv_file_magic_cmd
3648 deplibs_check_method=$lt_cv_deplibs_check_method
3649 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3650
3651
3652
3653
3654 # If no C compiler was specified, use CC.
3655 LTCC=${LTCC-"$CC"}
3656
3657 # Allow CC to be a program name with arguments.
3658 compiler=$CC
3659
3660
3661 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3662 if test "${enable_libtool_lock+set}" = set; then
3663   enableval="$enable_libtool_lock"
3664
3665 fi;
3666 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3667
3668 # Some flags need to be propagated to the compiler or linker for good
3669 # libtool support.
3670 case $host in
3671 ia64-*-hpux*)
3672   # Find out which ABI we are using.
3673   echo 'int i;' > conftest.$ac_ext
3674   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675   (eval $ac_compile) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); }; then
3679     case `/usr/bin/file conftest.$ac_objext` in
3680     *ELF-32*)
3681       HPUX_IA64_MODE="32"
3682       ;;
3683     *ELF-64*)
3684       HPUX_IA64_MODE="64"
3685       ;;
3686     esac
3687   fi
3688   rm -rf conftest*
3689   ;;
3690 *-*-irix6*)
3691   # Find out which ABI we are using.
3692   echo '#line 3692 "configure"' > conftest.$ac_ext
3693   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694   (eval $ac_compile) 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); }; then
3698    if test "$lt_cv_prog_gnu_ld" = yes; then
3699     case `/usr/bin/file conftest.$ac_objext` in
3700     *32-bit*)
3701       LD="${LD-ld} -melf32bsmip"
3702       ;;
3703     *N32*)
3704       LD="${LD-ld} -melf32bmipn32"
3705       ;;
3706     *64-bit*)
3707       LD="${LD-ld} -melf64bmip"
3708       ;;
3709     esac
3710    else
3711     case `/usr/bin/file conftest.$ac_objext` in
3712     *32-bit*)
3713       LD="${LD-ld} -32"
3714       ;;
3715     *N32*)
3716       LD="${LD-ld} -n32"
3717       ;;
3718     *64-bit*)
3719       LD="${LD-ld} -64"
3720       ;;
3721     esac
3722    fi
3723   fi
3724   rm -rf conftest*
3725   ;;
3726
3727 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3728   # Find out which ABI we are using.
3729   echo 'int i;' > conftest.$ac_ext
3730   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3731   (eval $ac_compile) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; then
3735     case "`/usr/bin/file conftest.o`" in
3736     *32-bit*)
3737       case $host in
3738         x86_64-*linux*)
3739           LD="${LD-ld} -m elf_i386"
3740           ;;
3741         ppc64-*linux*|powerpc64-*linux*)
3742           LD="${LD-ld} -m elf32ppclinux"
3743           ;;
3744         s390x-*linux*)
3745           LD="${LD-ld} -m elf_s390"
3746           ;;
3747         sparc64-*linux*)
3748           LD="${LD-ld} -m elf32_sparc"
3749           ;;
3750       esac
3751       ;;
3752     *64-bit*)
3753       case $host in
3754         x86_64-*linux*)
3755           LD="${LD-ld} -m elf_x86_64"
3756           ;;
3757         ppc*-*linux*|powerpc*-*linux*)
3758           LD="${LD-ld} -m elf64ppc"
3759           ;;
3760         s390*-*linux*)
3761           LD="${LD-ld} -m elf64_s390"
3762           ;;
3763         sparc*-*linux*)
3764           LD="${LD-ld} -m elf64_sparc"
3765           ;;
3766       esac
3767       ;;
3768     esac
3769   fi
3770   rm -rf conftest*
3771   ;;
3772
3773 *-*-sco3.2v5*)
3774   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3775   SAVE_CFLAGS="$CFLAGS"
3776   CFLAGS="$CFLAGS -belf"
3777   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3778 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3779 if test "${lt_cv_cc_needs_belf+set}" = set; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   ac_ext=c
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787
3788      cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h.  */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h.  */
3794
3795 int
3796 main ()
3797 {
3798
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 rm -f conftest.$ac_objext conftest$ac_exeext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805   (eval $ac_link) 2>conftest.er1
3806   ac_status=$?
3807   grep -v '^ *+' conftest.er1 >conftest.err
3808   rm -f conftest.er1
3809   cat conftest.err >&5
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); } &&
3812          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814   (eval $ac_try) 2>&5
3815   ac_status=$?
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); }; } &&
3818          { ac_try='test -s conftest$ac_exeext'
3819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820   (eval $ac_try) 2>&5
3821   ac_status=$?
3822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); }; }; then
3824   lt_cv_cc_needs_belf=yes
3825 else
3826   echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 lt_cv_cc_needs_belf=no
3830 fi
3831 rm -f conftest.err conftest.$ac_objext \
3832       conftest$ac_exeext conftest.$ac_ext
3833      ac_ext=c
3834 ac_cpp='$CPP $CPPFLAGS'
3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
3839 fi
3840 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3841 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3842   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3843     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3844     CFLAGS="$SAVE_CFLAGS"
3845   fi
3846   ;;
3847
3848 esac
3849
3850 need_locks="$enable_libtool_lock"
3851
3852
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3859 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3860 # On Suns, sometimes $CPP names a directory.
3861 if test -n "$CPP" && test -d "$CPP"; then
3862   CPP=
3863 fi
3864 if test -z "$CPP"; then
3865   if test "${ac_cv_prog_CPP+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868       # Double quotes because CPP needs to be expanded
3869     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3870     do
3871       ac_preproc_ok=false
3872 for ac_c_preproc_warn_flag in '' yes
3873 do
3874   # Use a header file that comes with gcc, so configuring glibc
3875   # with a fresh cross-compiler works.
3876   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877   # <limits.h> exists even on freestanding compilers.
3878   # On the NeXT, cc -E runs the code through the compiler's parser,
3879   # not just through cpp. "Syntax error" is here to catch this case.
3880   cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h.  */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h.  */
3886 #ifdef __STDC__
3887 # include <limits.h>
3888 #else
3889 # include <assert.h>
3890 #endif
3891                      Syntax error
3892 _ACEOF
3893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3894   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3895   ac_status=$?
3896   grep -v '^ *+' conftest.er1 >conftest.err
3897   rm -f conftest.er1
3898   cat conftest.err >&5
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); } >/dev/null; then
3901   if test -s conftest.err; then
3902     ac_cpp_err=$ac_c_preproc_warn_flag
3903     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3904   else
3905     ac_cpp_err=
3906   fi
3907 else
3908   ac_cpp_err=yes
3909 fi
3910 if test -z "$ac_cpp_err"; then
3911   :
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916   # Broken: fails on valid input.
3917 continue
3918 fi
3919 rm -f conftest.err conftest.$ac_ext
3920
3921   # OK, works on sane cases.  Now check whether non-existent headers
3922   # can be detected and how.
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 #include <ac_nonexistent.h>
3930 _ACEOF
3931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3932   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3933   ac_status=$?
3934   grep -v '^ *+' conftest.er1 >conftest.err
3935   rm -f conftest.er1
3936   cat conftest.err >&5
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); } >/dev/null; then
3939   if test -s conftest.err; then
3940     ac_cpp_err=$ac_c_preproc_warn_flag
3941     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3942   else
3943     ac_cpp_err=
3944   fi
3945 else
3946   ac_cpp_err=yes
3947 fi
3948 if test -z "$ac_cpp_err"; then
3949   # Broken: success on invalid input.
3950 continue
3951 else
3952   echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955   # Passes both tests.
3956 ac_preproc_ok=:
3957 break
3958 fi
3959 rm -f conftest.err conftest.$ac_ext
3960
3961 done
3962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3963 rm -f conftest.err conftest.$ac_ext
3964 if $ac_preproc_ok; then
3965   break
3966 fi
3967
3968     done
3969     ac_cv_prog_CPP=$CPP
3970
3971 fi
3972   CPP=$ac_cv_prog_CPP
3973 else
3974   ac_cv_prog_CPP=$CPP
3975 fi
3976 echo "$as_me:$LINENO: result: $CPP" >&5
3977 echo "${ECHO_T}$CPP" >&6
3978 ac_preproc_ok=false
3979 for ac_c_preproc_warn_flag in '' yes
3980 do
3981   # Use a header file that comes with gcc, so configuring glibc
3982   # with a fresh cross-compiler works.
3983   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3984   # <limits.h> exists even on freestanding compilers.
3985   # On the NeXT, cc -E runs the code through the compiler's parser,
3986   # not just through cpp. "Syntax error" is here to catch this case.
3987   cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h.  */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h.  */
3993 #ifdef __STDC__
3994 # include <limits.h>
3995 #else
3996 # include <assert.h>
3997 #endif
3998                      Syntax error
3999 _ACEOF
4000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002   ac_status=$?
4003   grep -v '^ *+' conftest.er1 >conftest.err
4004   rm -f conftest.er1
4005   cat conftest.err >&5
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); } >/dev/null; then
4008   if test -s conftest.err; then
4009     ac_cpp_err=$ac_c_preproc_warn_flag
4010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4011   else
4012     ac_cpp_err=
4013   fi
4014 else
4015   ac_cpp_err=yes
4016 fi
4017 if test -z "$ac_cpp_err"; then
4018   :
4019 else
4020   echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023   # Broken: fails on valid input.
4024 continue
4025 fi
4026 rm -f conftest.err conftest.$ac_ext
4027
4028   # OK, works on sane cases.  Now check whether non-existent headers
4029   # can be detected and how.
4030   cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 #include <ac_nonexistent.h>
4037 _ACEOF
4038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4040   ac_status=$?
4041   grep -v '^ *+' conftest.er1 >conftest.err
4042   rm -f conftest.er1
4043   cat conftest.err >&5
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); } >/dev/null; then
4046   if test -s conftest.err; then
4047     ac_cpp_err=$ac_c_preproc_warn_flag
4048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4049   else
4050     ac_cpp_err=
4051   fi
4052 else
4053   ac_cpp_err=yes
4054 fi
4055 if test -z "$ac_cpp_err"; then
4056   # Broken: success on invalid input.
4057 continue
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062   # Passes both tests.
4063 ac_preproc_ok=:
4064 break
4065 fi
4066 rm -f conftest.err conftest.$ac_ext
4067
4068 done
4069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4070 rm -f conftest.err conftest.$ac_ext
4071 if $ac_preproc_ok; then
4072   :
4073 else
4074   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4075 See \`config.log' for more details." >&5
4076 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4077 See \`config.log' for more details." >&2;}
4078    { (exit 1); exit 1; }; }
4079 fi
4080
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087
4088 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4089 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4090 if test "${ac_cv_header_stdc+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 #include <stdlib.h>
4100 #include <stdarg.h>
4101 #include <string.h>
4102 #include <float.h>
4103
4104 int
4105 main ()
4106 {
4107
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.$ac_objext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114   (eval $ac_compile) 2>conftest.er1
4115   ac_status=$?
4116   grep -v '^ *+' conftest.er1 >conftest.err
4117   rm -f conftest.er1
4118   cat conftest.err >&5
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); } &&
4121          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123   (eval $ac_try) 2>&5
4124   ac_status=$?
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); }; } &&
4127          { ac_try='test -s conftest.$ac_objext'
4128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4129   (eval $ac_try) 2>&5
4130   ac_status=$?
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); }; }; then
4133   ac_cv_header_stdc=yes
4134 else
4135   echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4137
4138 ac_cv_header_stdc=no
4139 fi
4140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4141
4142 if test $ac_cv_header_stdc = yes; then
4143   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4144   cat >conftest.$ac_ext <<_ACEOF
4145 /* confdefs.h.  */
4146 _ACEOF
4147 cat confdefs.h >>conftest.$ac_ext
4148 cat >>conftest.$ac_ext <<_ACEOF
4149 /* end confdefs.h.  */
4150 #include <string.h>
4151
4152 _ACEOF
4153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154   $EGREP "memchr" >/dev/null 2>&1; then
4155   :
4156 else
4157   ac_cv_header_stdc=no
4158 fi
4159 rm -f conftest*
4160
4161 fi
4162
4163 if test $ac_cv_header_stdc = yes; then
4164   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4165   cat >conftest.$ac_ext <<_ACEOF
4166 /* confdefs.h.  */
4167 _ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h.  */
4171 #include <stdlib.h>
4172
4173 _ACEOF
4174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4175   $EGREP "free" >/dev/null 2>&1; then
4176   :
4177 else
4178   ac_cv_header_stdc=no
4179 fi
4180 rm -f conftest*
4181
4182 fi
4183
4184 if test $ac_cv_header_stdc = yes; then
4185   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4186   if test "$cross_compiling" = yes; then
4187   :
4188 else
4189   cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195 #include <ctype.h>
4196 #if ((' ' & 0x0FF) == 0x020)
4197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4199 #else
4200 # define ISLOWER(c) \
4201                    (('a' <= (c) && (c) <= 'i') \
4202                      || ('j' <= (c) && (c) <= 'r') \
4203                      || ('s' <= (c) && (c) <= 'z'))
4204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4205 #endif
4206
4207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4208 int
4209 main ()
4210 {
4211   int i;
4212   for (i = 0; i < 256; i++)
4213     if (XOR (islower (i), ISLOWER (i))
4214         || toupper (i) != TOUPPER (i))
4215       exit(2);
4216   exit (0);
4217 }
4218 _ACEOF
4219 rm -f conftest$ac_exeext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221   (eval $ac_link) 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226   (eval $ac_try) 2>&5
4227   ac_status=$?
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); }; }; then
4230   :
4231 else
4232   echo "$as_me: program exited with status $ac_status" >&5
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 ( exit $ac_status )
4237 ac_cv_header_stdc=no
4238 fi
4239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4240 fi
4241 fi
4242 fi
4243 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4244 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4245 if test $ac_cv_header_stdc = yes; then
4246
4247 cat >>confdefs.h <<\_ACEOF
4248 #define STDC_HEADERS 1
4249 _ACEOF
4250
4251 fi
4252
4253 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4264                   inttypes.h stdint.h unistd.h
4265 do
4266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4267 echo "$as_me:$LINENO: checking for $ac_header" >&5
4268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h.  */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h.  */
4278 $ac_includes_default
4279
4280 #include <$ac_header>
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284   (eval $ac_compile) 2>conftest.er1
4285   ac_status=$?
4286   grep -v '^ *+' conftest.er1 >conftest.err
4287   rm -f conftest.er1
4288   cat conftest.err >&5
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } &&
4291          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293   (eval $ac_try) 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; } &&
4297          { ac_try='test -s conftest.$ac_objext'
4298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299   (eval $ac_try) 2>&5
4300   ac_status=$?
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); }; }; then
4303   eval "$as_ac_Header=yes"
4304 else
4305   echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4307
4308 eval "$as_ac_Header=no"
4309 fi
4310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4311 fi
4312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4315   cat >>confdefs.h <<_ACEOF
4316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 _ACEOF
4318
4319 fi
4320
4321 done
4322
4323
4324
4325 for ac_header in dlfcn.h
4326 do
4327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4329   echo "$as_me:$LINENO: checking for $ac_header" >&5
4330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 fi
4334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4336 else
4337   # Is the header compilable?
4338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h.  */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h.  */
4346 $ac_includes_default
4347 #include <$ac_header>
4348 _ACEOF
4349 rm -f conftest.$ac_objext
4350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351   (eval $ac_compile) 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } &&
4358          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360   (eval $ac_try) 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); }; } &&
4364          { ac_try='test -s conftest.$ac_objext'
4365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366   (eval $ac_try) 2>&5
4367   ac_status=$?
4368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369   (exit $ac_status); }; }; then
4370   ac_header_compiler=yes
4371 else
4372   echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4374
4375 ac_header_compiler=no
4376 fi
4377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4379 echo "${ECHO_T}$ac_header_compiler" >&6
4380
4381 # Is the header present?
4382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390 #include <$ac_header>
4391 _ACEOF
4392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4394   ac_status=$?
4395   grep -v '^ *+' conftest.er1 >conftest.err
4396   rm -f conftest.er1
4397   cat conftest.err >&5
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); } >/dev/null; then
4400   if test -s conftest.err; then
4401     ac_cpp_err=$ac_c_preproc_warn_flag
4402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4403   else
4404     ac_cpp_err=
4405   fi
4406 else
4407   ac_cpp_err=yes
4408 fi
4409 if test -z "$ac_cpp_err"; then
4410   ac_header_preproc=yes
4411 else
4412   echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4414
4415   ac_header_preproc=no
4416 fi
4417 rm -f conftest.err conftest.$ac_ext
4418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4419 echo "${ECHO_T}$ac_header_preproc" >&6
4420
4421 # So?  What about this header?
4422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4423   yes:no: )
4424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4428     ac_header_preproc=yes
4429     ;;
4430   no:yes:* )
4431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4443     (
4444       cat <<\_ASBOX
4445 ## ----------------------------------------- ##
4446 ## Report this to martin.quinson@ens-lyon.fr ##
4447 ## ----------------------------------------- ##
4448 _ASBOX
4449     ) |
4450       sed "s/^/$as_me: WARNING:     /" >&2
4451     ;;
4452 esac
4453 echo "$as_me:$LINENO: checking for $ac_header" >&5
4454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   eval "$as_ac_Header=\$ac_header_preproc"
4459 fi
4460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4462
4463 fi
4464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4465   cat >>confdefs.h <<_ACEOF
4466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4467 _ACEOF
4468
4469 fi
4470
4471 done
4472
4473 ac_ext=cc
4474 ac_cpp='$CXXCPP $CPPFLAGS'
4475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4478 if test -n "$ac_tool_prefix"; then
4479   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4480   do
4481     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4483 echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4485 if test "${ac_cv_prog_CXX+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   if test -n "$CXX"; then
4489   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494   IFS=$as_save_IFS
4495   test -z "$as_dir" && as_dir=.
4496   for ac_exec_ext in '' $ac_executable_extensions; do
4497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500     break 2
4501   fi
4502 done
4503 done
4504
4505 fi
4506 fi
4507 CXX=$ac_cv_prog_CXX
4508 if test -n "$CXX"; then
4509   echo "$as_me:$LINENO: result: $CXX" >&5
4510 echo "${ECHO_T}$CXX" >&6
4511 else
4512   echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6
4514 fi
4515
4516     test -n "$CXX" && break
4517   done
4518 fi
4519 if test -z "$CXX"; then
4520   ac_ct_CXX=$CXX
4521   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4522 do
4523   # Extract the first word of "$ac_prog", so it can be a program name with args.
4524 set dummy $ac_prog; ac_word=$2
4525 echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530   if test -n "$ac_ct_CXX"; then
4531   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538   for ac_exec_ext in '' $ac_executable_extensions; do
4539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540     ac_cv_prog_ac_ct_CXX="$ac_prog"
4541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542     break 2
4543   fi
4544 done
4545 done
4546
4547 fi
4548 fi
4549 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4550 if test -n "$ac_ct_CXX"; then
4551   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4552 echo "${ECHO_T}$ac_ct_CXX" >&6
4553 else
4554   echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6
4556 fi
4557
4558   test -n "$ac_ct_CXX" && break
4559 done
4560 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4561
4562   CXX=$ac_ct_CXX
4563 fi
4564
4565
4566 # Provide some information about the compiler.
4567 echo "$as_me:$LINENO:" \
4568      "checking for C++ compiler version" >&5
4569 ac_compiler=`set X $ac_compile; echo $2`
4570 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4571   (eval $ac_compiler --version </dev/null >&5) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }
4575 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4576   (eval $ac_compiler -v </dev/null >&5) 2>&5
4577   ac_status=$?
4578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579   (exit $ac_status); }
4580 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4581   (eval $ac_compiler -V </dev/null >&5) 2>&5
4582   ac_status=$?
4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584   (exit $ac_status); }
4585
4586 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4587 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4588 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591   cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h.  */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h.  */
4597
4598 int
4599 main ()
4600 {
4601 #ifndef __GNUC__
4602        choke me
4603 #endif
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611   (eval $ac_compile) 2>conftest.er1
4612   ac_status=$?
4613   grep -v '^ *+' conftest.er1 >conftest.err
4614   rm -f conftest.er1
4615   cat conftest.err >&5
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } &&
4618          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; } &&
4624          { ac_try='test -s conftest.$ac_objext'
4625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626   (eval $ac_try) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; }; then
4630   ac_compiler_gnu=yes
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635 ac_compiler_gnu=no
4636 fi
4637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4638 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4639
4640 fi
4641 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4642 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4643 GXX=`test $ac_compiler_gnu = yes && echo yes`
4644 ac_test_CXXFLAGS=${CXXFLAGS+set}
4645 ac_save_CXXFLAGS=$CXXFLAGS
4646 CXXFLAGS="-g"
4647 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4648 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4649 if test "${ac_cv_prog_cxx_g+set}" = set; then
4650   echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652   cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h.  */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h.  */
4658
4659 int
4660 main ()
4661 {
4662
4663   ;
4664   return 0;
4665 }
4666 _ACEOF
4667 rm -f conftest.$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669   (eval $ac_compile) 2>conftest.er1
4670   ac_status=$?
4671   grep -v '^ *+' conftest.er1 >conftest.err
4672   rm -f conftest.er1
4673   cat conftest.err >&5
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } &&
4676          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; } &&
4682          { ac_try='test -s conftest.$ac_objext'
4683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684   (eval $ac_try) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; }; then
4688   ac_cv_prog_cxx_g=yes
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 ac_cv_prog_cxx_g=no
4694 fi
4695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696 fi
4697 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4699 if test "$ac_test_CXXFLAGS" = set; then
4700   CXXFLAGS=$ac_save_CXXFLAGS
4701 elif test $ac_cv_prog_cxx_g = yes; then
4702   if test "$GXX" = yes; then
4703     CXXFLAGS="-g -O2"
4704   else
4705     CXXFLAGS="-g"
4706   fi
4707 else
4708   if test "$GXX" = yes; then
4709     CXXFLAGS="-O2"
4710   else
4711     CXXFLAGS=
4712   fi
4713 fi
4714 for ac_declaration in \
4715    '' \
4716    'extern "C" void std::exit (int) throw (); using std::exit;' \
4717    'extern "C" void std::exit (int); using std::exit;' \
4718    'extern "C" void exit (int) throw ();' \
4719    'extern "C" void exit (int);' \
4720    'void exit (int);'
4721 do
4722   cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h.  */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h.  */
4728 $ac_declaration
4729 #include <stdlib.h>
4730 int
4731 main ()
4732 {
4733 exit (42);
4734   ;
4735   return 0;
4736 }
4737 _ACEOF
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740   (eval $ac_compile) 2>conftest.er1
4741   ac_status=$?
4742   grep -v '^ *+' conftest.er1 >conftest.err
4743   rm -f conftest.er1
4744   cat conftest.err >&5
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); } &&
4747          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749   (eval $ac_try) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); }; } &&
4753          { ac_try='test -s conftest.$ac_objext'
4754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755   (eval $ac_try) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   :
4760 else
4761   echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 continue
4765 fi
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767   cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h.  */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h.  */
4773 $ac_declaration
4774 int
4775 main ()
4776 {
4777 exit (42);
4778   ;
4779   return 0;
4780 }
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784   (eval $ac_compile) 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } &&
4791          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793   (eval $ac_try) 2>&5
4794   ac_status=$?
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); }; } &&
4797          { ac_try='test -s conftest.$ac_objext'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; }; then
4803   break
4804 else
4805   echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 fi
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 done
4811 rm -f conftest*
4812 if test -n "$ac_declaration"; then
4813   echo '#ifdef __cplusplus' >>confdefs.h
4814   echo $ac_declaration      >>confdefs.h
4815   echo '#endif'             >>confdefs.h
4816 fi
4817
4818 ac_ext=cc
4819 ac_cpp='$CXXCPP $CPPFLAGS'
4820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4823
4824 depcc="$CXX"  am_compiler_list=
4825
4826 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4827 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4828 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4832   # We make a subdir and do the tests there.  Otherwise we can end up
4833   # making bogus files that we don't know about and never remove.  For
4834   # instance it was reported that on HP-UX the gcc test will end up
4835   # making a dummy file named `D' -- because `-MD' means `put the output
4836   # in D'.
4837   mkdir conftest.dir
4838   # Copy depcomp to subdir because otherwise we won't find it if we're
4839   # using a relative directory.
4840   cp "$am_depcomp" conftest.dir
4841   cd conftest.dir
4842   # We will build objects and dependencies in a subdirectory because
4843   # it helps to detect inapplicable dependency modes.  For instance
4844   # both Tru64's cc and ICC support -MD to output dependencies as a
4845   # side effect of compilation, but ICC will put the dependencies in
4846   # the current directory while Tru64 will put them in the object
4847   # directory.
4848   mkdir sub
4849
4850   am_cv_CXX_dependencies_compiler_type=none
4851   if test "$am_compiler_list" = ""; then
4852      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4853   fi
4854   for depmode in $am_compiler_list; do
4855     # Setup a source with many dependencies, because some compilers
4856     # like to wrap large dependency lists on column 80 (with \), and
4857     # we should not choose a depcomp mode which is confused by this.
4858     #
4859     # We need to recreate these files for each test, as the compiler may
4860     # overwrite some of them when testing with obscure command lines.
4861     # This happens at least with the AIX C compiler.
4862     : > sub/conftest.c
4863     for i in 1 2 3 4 5 6; do
4864       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4865       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4866       # Solaris 8's {/usr,}/bin/sh.
4867       touch sub/conftst$i.h
4868     done
4869     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4870
4871     case $depmode in
4872     nosideeffect)
4873       # after this tag, mechanisms are not by side-effect, so they'll
4874       # only be used when explicitly requested
4875       if test "x$enable_dependency_tracking" = xyes; then
4876         continue
4877       else
4878         break
4879       fi
4880       ;;
4881     none) break ;;
4882     esac
4883     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4884     # mode.  It turns out that the SunPro C++ compiler does not properly
4885     # handle `-M -o', and we need to detect this.
4886     if depmode=$depmode \
4887        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4888        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4889        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4890          >/dev/null 2>conftest.err &&
4891        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4892        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4893        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4894       # icc doesn't choke on unknown options, it will just issue warnings
4895       # or remarks (even with -Werror).  So we grep stderr for any message
4896       # that says an option was ignored or not supported.
4897       # When given -MP, icc 7.0 and 7.1 complain thusly:
4898       #   icc: Command line warning: ignoring option '-M'; no argument required
4899       # The diagnosis changed in icc 8.0:
4900       #   icc: Command line remark: option '-MP' not supported
4901       if (grep 'ignoring option' conftest.err ||
4902           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4903         am_cv_CXX_dependencies_compiler_type=$depmode
4904         break
4905       fi
4906     fi
4907   done
4908
4909   cd ..
4910   rm -rf conftest.dir
4911 else
4912   am_cv_CXX_dependencies_compiler_type=none
4913 fi
4914
4915 fi
4916 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4917 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4918 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4919
4920
4921
4922 if
4923   test "x$enable_dependency_tracking" != xno \
4924   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4925   am__fastdepCXX_TRUE=
4926   am__fastdepCXX_FALSE='#'
4927 else
4928   am__fastdepCXX_TRUE='#'
4929   am__fastdepCXX_FALSE=
4930 fi
4931
4932
4933 ac_ext=cc
4934 ac_cpp='$CXXCPP $CPPFLAGS'
4935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4938 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4939 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4940 if test -z "$CXXCPP"; then
4941   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944       # Double quotes because CXXCPP needs to be expanded
4945     for CXXCPP in "$CXX -E" "/lib/cpp"
4946     do
4947       ac_preproc_ok=false
4948 for ac_cxx_preproc_warn_flag in '' yes
4949 do
4950   # Use a header file that comes with gcc, so configuring glibc
4951   # with a fresh cross-compiler works.
4952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953   # <limits.h> exists even on freestanding compilers.
4954   # On the NeXT, cc -E runs the code through the compiler's parser,
4955   # not just through cpp. "Syntax error" is here to catch this case.
4956   cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 #ifdef __STDC__
4963 # include <limits.h>
4964 #else
4965 # include <assert.h>
4966 #endif
4967                      Syntax error
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   :
4988 else
4989   echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992   # Broken: fails on valid input.
4993 continue
4994 fi
4995 rm -f conftest.err conftest.$ac_ext
4996
4997   # OK, works on sane cases.  Now check whether non-existent headers
4998   # can be detected and how.
4999   cat >conftest.$ac_ext <<_ACEOF
5000 /* confdefs.h.  */
5001 _ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h.  */
5005 #include <ac_nonexistent.h>
5006 _ACEOF
5007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } >/dev/null; then
5015   if test -s conftest.err; then
5016     ac_cpp_err=$ac_cxx_preproc_warn_flag
5017     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5018   else
5019     ac_cpp_err=
5020   fi
5021 else
5022   ac_cpp_err=yes
5023 fi
5024 if test -z "$ac_cpp_err"; then
5025   # Broken: success on invalid input.
5026 continue
5027 else
5028   echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.$ac_ext >&5
5030
5031   # Passes both tests.
5032 ac_preproc_ok=:
5033 break
5034 fi
5035 rm -f conftest.err conftest.$ac_ext
5036
5037 done
5038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039 rm -f conftest.err conftest.$ac_ext
5040 if $ac_preproc_ok; then
5041   break
5042 fi
5043
5044     done
5045     ac_cv_prog_CXXCPP=$CXXCPP
5046
5047 fi
5048   CXXCPP=$ac_cv_prog_CXXCPP
5049 else
5050   ac_cv_prog_CXXCPP=$CXXCPP
5051 fi
5052 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5053 echo "${ECHO_T}$CXXCPP" >&6
5054 ac_preproc_ok=false
5055 for ac_cxx_preproc_warn_flag in '' yes
5056 do
5057   # Use a header file that comes with gcc, so configuring glibc
5058   # with a fresh cross-compiler works.
5059   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060   # <limits.h> exists even on freestanding compilers.
5061   # On the NeXT, cc -E runs the code through the compiler's parser,
5062   # not just through cpp. "Syntax error" is here to catch this case.
5063   cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h.  */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h.  */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5074                      Syntax error
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   :
5095 else
5096   echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5098
5099   # Broken: fails on valid input.
5100 continue
5101 fi
5102 rm -f conftest.err conftest.$ac_ext
5103
5104   # OK, works on sane cases.  Now check whether non-existent headers
5105   # can be detected and how.
5106   cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112 #include <ac_nonexistent.h>
5113 _ACEOF
5114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116   ac_status=$?
5117   grep -v '^ *+' conftest.er1 >conftest.err
5118   rm -f conftest.er1
5119   cat conftest.err >&5
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } >/dev/null; then
5122   if test -s conftest.err; then
5123     ac_cpp_err=$ac_cxx_preproc_warn_flag
5124     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5125   else
5126     ac_cpp_err=
5127   fi
5128 else
5129   ac_cpp_err=yes
5130 fi
5131 if test -z "$ac_cpp_err"; then
5132   # Broken: success on invalid input.
5133 continue
5134 else
5135   echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5137
5138   # Passes both tests.
5139 ac_preproc_ok=:
5140 break
5141 fi
5142 rm -f conftest.err conftest.$ac_ext
5143
5144 done
5145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5146 rm -f conftest.err conftest.$ac_ext
5147 if $ac_preproc_ok; then
5148   :
5149 else
5150   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5151 See \`config.log' for more details." >&5
5152 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5153 See \`config.log' for more details." >&2;}
5154    { (exit 1); exit 1; }; }
5155 fi
5156
5157 ac_ext=cc
5158 ac_cpp='$CXXCPP $CPPFLAGS'
5159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5162
5163
5164 ac_ext=f
5165 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5166 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5168 if test -n "$ac_tool_prefix"; then
5169   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5170   do
5171     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5173 echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5175 if test "${ac_cv_prog_F77+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   if test -n "$F77"; then
5179   ac_cv_prog_F77="$F77" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186   for ac_exec_ext in '' $ac_executable_extensions; do
5187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193 done
5194
5195 fi
5196 fi
5197 F77=$ac_cv_prog_F77
5198 if test -n "$F77"; then
5199   echo "$as_me:$LINENO: result: $F77" >&5
5200 echo "${ECHO_T}$F77" >&6
5201 else
5202   echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6
5204 fi
5205
5206     test -n "$F77" && break
5207   done
5208 fi
5209 if test -z "$F77"; then
5210   ac_ct_F77=$F77
5211   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5212 do
5213   # Extract the first word of "$ac_prog", so it can be a program name with args.
5214 set dummy $ac_prog; ac_word=$2
5215 echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5217 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   if test -n "$ac_ct_F77"; then
5221   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5222 else
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226   IFS=$as_save_IFS
5227   test -z "$as_dir" && as_dir=.
5228   for ac_exec_ext in '' $ac_executable_extensions; do
5229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5230     ac_cv_prog_ac_ct_F77="$ac_prog"
5231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232     break 2
5233   fi
5234 done
5235 done
5236
5237 fi
5238 fi
5239 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5240 if test -n "$ac_ct_F77"; then
5241   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5242 echo "${ECHO_T}$ac_ct_F77" >&6
5243 else
5244   echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5246 fi
5247
5248   test -n "$ac_ct_F77" && break
5249 done
5250
5251   F77=$ac_ct_F77
5252 fi
5253
5254
5255 # Provide some information about the compiler.
5256 echo "$as_me:5256:" \
5257      "checking for Fortran 77 compiler version" >&5
5258 ac_compiler=`set X $ac_compile; echo $2`
5259 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5260   (eval $ac_compiler --version </dev/null >&5) 2>&5
5261   ac_status=$?
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); }
5264 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5265   (eval $ac_compiler -v </dev/null >&5) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); }
5269 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5270   (eval $ac_compiler -V </dev/null >&5) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }
5274 rm -f a.out
5275
5276 # If we don't use `.F' as extension, the preprocessor is not run on the
5277 # input file.  (Note that this only needs to work for GNU compilers.)
5278 ac_save_ext=$ac_ext
5279 ac_ext=F
5280 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5281 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5282 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5283   echo $ECHO_N "(cached) $ECHO_C" >&6
5284 else
5285   cat >conftest.$ac_ext <<_ACEOF
5286       program main
5287 #ifndef __GNUC__
5288        choke me
5289 #endif
5290
5291       end
5292 _ACEOF
5293 rm -f conftest.$ac_objext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5295   (eval $ac_compile) 2>conftest.er1
5296   ac_status=$?
5297   grep -v '^ *+' conftest.er1 >conftest.err
5298   rm -f conftest.er1
5299   cat conftest.err >&5
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); } &&
5302          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304   (eval $ac_try) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); }; } &&
5308          { ac_try='test -s conftest.$ac_objext'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; }; then
5314   ac_compiler_gnu=yes
5315 else
5316   echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5318
5319 ac_compiler_gnu=no
5320 fi
5321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5322 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5323
5324 fi
5325 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5326 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5327 ac_ext=$ac_save_ext
5328 ac_test_FFLAGS=${FFLAGS+set}
5329 ac_save_FFLAGS=$FFLAGS
5330 FFLAGS=
5331 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5332 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5333 if test "${ac_cv_prog_f77_g+set}" = set; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   FFLAGS=-g
5337 cat >conftest.$ac_ext <<_ACEOF
5338       program main
5339
5340       end
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344   (eval $ac_compile) 2>conftest.er1
5345   ac_status=$?
5346   grep -v '^ *+' conftest.er1 >conftest.err
5347   rm -f conftest.er1
5348   cat conftest.err >&5
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); } &&
5351          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353   (eval $ac_try) 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); }; } &&
5357          { ac_try='test -s conftest.$ac_objext'
5358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359   (eval $ac_try) 2>&5
5360   ac_status=$?
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); }; }; then
5363   ac_cv_prog_f77_g=yes
5364 else
5365   echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 ac_cv_prog_f77_g=no
5369 fi
5370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5371
5372 fi
5373 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5374 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5375 if test "$ac_test_FFLAGS" = set; then
5376   FFLAGS=$ac_save_FFLAGS
5377 elif test $ac_cv_prog_f77_g = yes; then
5378   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5379     FFLAGS="-g -O2"
5380   else
5381     FFLAGS="-g"
5382   fi
5383 else
5384   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5385     FFLAGS="-O2"
5386   else
5387     FFLAGS=
5388   fi
5389 fi
5390
5391 G77=`test $ac_compiler_gnu = yes && echo yes`
5392 ac_ext=c
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397
5398
5399
5400 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5401
5402 # find the maximum length of command line arguments
5403 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5404 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5405 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408     i=0
5409   teststring="ABCD"
5410
5411   case $build_os in
5412   msdosdjgpp*)
5413     # On DJGPP, this test can blow up pretty badly due to problems in libc
5414     # (any single argument exceeding 2000 bytes causes a buffer overrun
5415     # during glob expansion).  Even if it were fixed, the result of this
5416     # check would be larger than it should be.
5417     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5418     ;;
5419
5420   gnu*)
5421     # Under GNU Hurd, this test is not required because there is
5422     # no limit to the length of command line arguments.
5423     # Libtool will interpret -1 as no limit whatsoever
5424     lt_cv_sys_max_cmd_len=-1;
5425     ;;
5426
5427   cygwin* | mingw*)
5428     # On Win9x/ME, this test blows up -- it succeeds, but takes
5429     # about 5 minutes as the teststring grows exponentially.
5430     # Worse, since 9x/ME are not pre-emptively multitasking,
5431     # you end up with a "frozen" computer, even though with patience
5432     # the test eventually succeeds (with a max line length of 256k).
5433     # Instead, let's just punt: use the minimum linelength reported by
5434     # all of the supported platforms: 8192 (on NT/2K/XP).
5435     lt_cv_sys_max_cmd_len=8192;
5436     ;;
5437
5438   amigaos*)
5439     # On AmigaOS with pdksh, this test takes hours, literally.
5440     # So we just punt and use a minimum line length of 8192.
5441     lt_cv_sys_max_cmd_len=8192;
5442     ;;
5443
5444  *)
5445     # If test is not a shell built-in, we'll probably end up computing a
5446     # maximum length that is only half of the actual maximum length, but
5447     # we can't tell.
5448     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5449                = "XX$teststring") >/dev/null 2>&1 &&
5450             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5451             lt_cv_sys_max_cmd_len=$new_result &&
5452             test $i != 17 # 1/2 MB should be enough
5453     do
5454       i=`expr $i + 1`
5455       teststring=$teststring$teststring
5456     done
5457     teststring=
5458     # Add a significant safety factor because C++ compilers can tack on massive
5459     # amounts of additional arguments before passing them to the linker.
5460     # It appears as though 1/2 is a usable value.
5461     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5462     ;;
5463   esac
5464
5465 fi
5466
5467 if test -n $lt_cv_sys_max_cmd_len ; then
5468   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5469 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5470 else
5471   echo "$as_me:$LINENO: result: none" >&5
5472 echo "${ECHO_T}none" >&6
5473 fi
5474
5475
5476
5477
5478 # Check for command to grab the raw symbol name followed by C symbol from nm.
5479 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5480 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5481 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5482   echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484
5485 # These are sane defaults that work on at least a few old systems.
5486 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5487
5488 # Character class describing NM global symbol codes.
5489 symcode='[BCDEGRST]'
5490
5491 # Regexp to match symbols that can be accessed directly from C.
5492 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5493
5494 # Transform the above into a raw symbol and a C symbol.
5495 symxfrm='\1 \2\3 \3'
5496
5497 # Transform an extracted symbol line into a proper C declaration
5498 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5499
5500 # Transform an extracted symbol line into symbol name and symbol address
5501 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'"
5502
5503 # Define system-specific variables.
5504 case $host_os in
5505 aix*)
5506   symcode='[BCDT]'
5507   ;;
5508 cygwin* | mingw* | pw32*)
5509   symcode='[ABCDGISTW]'
5510   ;;
5511 hpux*) # Its linker distinguishes data from code symbols
5512   if test "$host_cpu" = ia64; then
5513     symcode='[ABCDEGRST]'
5514   fi
5515   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5516   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'"
5517   ;;
5518 irix* | nonstopux*)
5519   symcode='[BCDEGRST]'
5520   ;;
5521 osf*)
5522   symcode='[BCDEGQRST]'
5523   ;;
5524 solaris* | sysv5*)
5525   symcode='[BDRT]'
5526   ;;
5527 sysv4)
5528   symcode='[DFNSTU]'
5529   ;;
5530 esac
5531
5532 # Handle CRLF in mingw tool chain
5533 opt_cr=
5534 case $build_os in
5535 mingw*)
5536   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5537   ;;
5538 esac
5539
5540 # If we're using GNU nm, then use its standard symbol codes.
5541 case `$NM -V 2>&1` in
5542 *GNU* | *'with BFD'*)
5543   symcode='[ABCDGIRSTW]' ;;
5544 esac
5545
5546 # Try without a prefix undercore, then with it.
5547 for ac_symprfx in "" "_"; do
5548
5549   # Write the raw and C identifiers.
5550   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5551
5552   # Check to see that the pipe works correctly.
5553   pipe_works=no
5554
5555   rm -f conftest*
5556   cat > conftest.$ac_ext <<EOF
5557 #ifdef __cplusplus
5558 extern "C" {
5559 #endif
5560 char nm_test_var;
5561 void nm_test_func(){}
5562 #ifdef __cplusplus
5563 }
5564 #endif
5565 int main(){nm_test_var='a';nm_test_func();return(0);}
5566 EOF
5567
5568   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5569   (eval $ac_compile) 2>&5
5570   ac_status=$?
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); }; then
5573     # Now try to grab the symbols.
5574     nlist=conftest.nm
5575     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5576   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } && test -s "$nlist"; then
5580       # Try sorting and uniquifying the output.
5581       if sort "$nlist" | uniq > "$nlist"T; then
5582         mv -f "$nlist"T "$nlist"
5583       else
5584         rm -f "$nlist"T
5585       fi
5586
5587       # Make sure that we snagged all the symbols we need.
5588       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5589         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5590           cat <<EOF > conftest.$ac_ext
5591 #ifdef __cplusplus
5592 extern "C" {
5593 #endif
5594
5595 EOF
5596           # Now generate the symbol file.
5597           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5598
5599           cat <<EOF >> conftest.$ac_ext
5600 #if defined (__STDC__) && __STDC__
5601 # define lt_ptr_t void *
5602 #else
5603 # define lt_ptr_t char *
5604 # define const
5605 #endif
5606
5607 /* The mapping between symbol names and symbols. */
5608 const struct {
5609   const char *name;
5610   lt_ptr_t address;
5611 }
5612 lt_preloaded_symbols[] =
5613 {
5614 EOF
5615           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5616           cat <<\EOF >> conftest.$ac_ext
5617   {0, (lt_ptr_t) 0}
5618 };
5619
5620 #ifdef __cplusplus
5621 }
5622 #endif
5623 EOF
5624           # Now try linking the two files.
5625           mv conftest.$ac_objext conftstm.$ac_objext
5626           lt_save_LIBS="$LIBS"
5627           lt_save_CFLAGS="$CFLAGS"
5628           LIBS="conftstm.$ac_objext"
5629           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5630           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631   (eval $ac_link) 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5635             pipe_works=yes
5636           fi
5637           LIBS="$lt_save_LIBS"
5638           CFLAGS="$lt_save_CFLAGS"
5639         else
5640           echo "cannot find nm_test_func in $nlist" >&5
5641         fi
5642       else
5643         echo "cannot find nm_test_var in $nlist" >&5
5644       fi
5645     else
5646       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5647     fi
5648   else
5649     echo "$progname: failed program was:" >&5
5650     cat conftest.$ac_ext >&5
5651   fi
5652   rm -f conftest* conftst*
5653
5654   # Do not use the global_symbol_pipe unless it works.
5655   if test "$pipe_works" = yes; then
5656     break
5657   else
5658     lt_cv_sys_global_symbol_pipe=
5659   fi
5660 done
5661
5662 fi
5663
5664 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5665   lt_cv_sys_global_symbol_to_cdecl=
5666 fi
5667 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5668   echo "$as_me:$LINENO: result: failed" >&5
5669 echo "${ECHO_T}failed" >&6
5670 else
5671   echo "$as_me:$LINENO: result: ok" >&5
5672 echo "${ECHO_T}ok" >&6
5673 fi
5674
5675 echo "$as_me:$LINENO: checking for objdir" >&5
5676 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5677 if test "${lt_cv_objdir+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680   rm -f .libs 2>/dev/null
5681 mkdir .libs 2>/dev/null
5682 if test -d .libs; then
5683   lt_cv_objdir=.libs
5684 else
5685   # MS-DOS does not allow filenames that begin with a dot.
5686   lt_cv_objdir=_libs
5687 fi
5688 rmdir .libs 2>/dev/null
5689 fi
5690 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5691 echo "${ECHO_T}$lt_cv_objdir" >&6
5692 objdir=$lt_cv_objdir
5693
5694
5695
5696
5697
5698 case $host_os in
5699 aix3*)
5700   # AIX sometimes has problems with the GCC collect2 program.  For some
5701   # reason, if we set the COLLECT_NAMES environment variable, the problems
5702   # vanish in a puff of smoke.
5703   if test "X${COLLECT_NAMES+set}" != Xset; then
5704     COLLECT_NAMES=
5705     export COLLECT_NAMES
5706   fi
5707   ;;
5708 esac
5709
5710 # Sed substitution that helps us do robust quoting.  It backslashifies
5711 # metacharacters that are still active within double-quoted strings.
5712 Xsed='sed -e s/^X//'
5713 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5714
5715 # Same as above, but do not quote variable references.
5716 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5717
5718 # Sed substitution to delay expansion of an escaped shell variable in a
5719 # double_quote_subst'ed string.
5720 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5721
5722 # Sed substitution to avoid accidental globbing in evaled expressions
5723 no_glob_subst='s/\*/\\\*/g'
5724
5725 # Constants:
5726 rm="rm -f"
5727
5728 # Global variables:
5729 default_ofile=libtool
5730 can_build_shared=yes
5731
5732 # All known linkers require a `.a' archive for static linking (except M$VC,
5733 # which needs '.lib').
5734 libext=a
5735 ltmain="$ac_aux_dir/ltmain.sh"
5736 ofile="$default_ofile"
5737 with_gnu_ld="$lt_cv_prog_gnu_ld"
5738
5739 if test -n "$ac_tool_prefix"; then
5740   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5741 set dummy ${ac_tool_prefix}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_AR+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   if test -n "$AR"; then
5748   ac_cv_prog_AR="$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_AR="${ac_tool_prefix}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 fi
5765 fi
5766 AR=$ac_cv_prog_AR
5767 if test -n "$AR"; then
5768   echo "$as_me:$LINENO: result: $AR" >&5
5769 echo "${ECHO_T}$AR" >&6
5770 else
5771   echo "$as_me:$LINENO: result: no" >&5
5772 echo "${ECHO_T}no" >&6
5773 fi
5774
5775 fi
5776 if test -z "$ac_cv_prog_AR"; then
5777   ac_ct_AR=$AR
5778   # Extract the first word of "ar", so it can be a program name with args.
5779 set dummy ar; ac_word=$2
5780 echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   if test -n "$ac_ct_AR"; then
5786   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791   IFS=$as_save_IFS
5792   test -z "$as_dir" && as_dir=.
5793   for ac_exec_ext in '' $ac_executable_extensions; do
5794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795     ac_cv_prog_ac_ct_AR="ar"
5796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797     break 2
5798   fi
5799 done
5800 done
5801
5802   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5803 fi
5804 fi
5805 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5806 if test -n "$ac_ct_AR"; then
5807   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5808 echo "${ECHO_T}$ac_ct_AR" >&6
5809 else
5810   echo "$as_me:$LINENO: result: no" >&5
5811 echo "${ECHO_T}no" >&6
5812 fi
5813
5814   AR=$ac_ct_AR
5815 else
5816   AR="$ac_cv_prog_AR"
5817 fi
5818
5819 if test -n "$ac_tool_prefix"; then
5820   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5821 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   if test -n "$RANLIB"; then
5828   ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 fi
5845 fi
5846 RANLIB=$ac_cv_prog_RANLIB
5847 if test -n "$RANLIB"; then
5848   echo "$as_me:$LINENO: result: $RANLIB" >&5
5849 echo "${ECHO_T}$RANLIB" >&6
5850 else
5851   echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6
5853 fi
5854
5855 fi
5856 if test -z "$ac_cv_prog_RANLIB"; then
5857   ac_ct_RANLIB=$RANLIB
5858   # Extract the first word of "ranlib", so it can be a program name with args.
5859 set dummy ranlib; ac_word=$2
5860 echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   if test -n "$ac_ct_RANLIB"; then
5866   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873   for ac_exec_ext in '' $ac_executable_extensions; do
5874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875     ac_cv_prog_ac_ct_RANLIB="ranlib"
5876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880 done
5881
5882   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5883 fi
5884 fi
5885 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5886 if test -n "$ac_ct_RANLIB"; then
5887   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5888 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5889 else
5890   echo "$as_me:$LINENO: result: no" >&5
5891 echo "${ECHO_T}no" >&6
5892 fi
5893
5894   RANLIB=$ac_ct_RANLIB
5895 else
5896   RANLIB="$ac_cv_prog_RANLIB"
5897 fi
5898
5899 if test -n "$ac_tool_prefix"; then
5900   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5901 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   if test -n "$STRIP"; then
5908   ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 fi
5925 fi
5926 STRIP=$ac_cv_prog_STRIP
5927 if test -n "$STRIP"; then
5928   echo "$as_me:$LINENO: result: $STRIP" >&5
5929 echo "${ECHO_T}$STRIP" >&6
5930 else
5931   echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5933 fi
5934
5935 fi
5936 if test -z "$ac_cv_prog_STRIP"; then
5937   ac_ct_STRIP=$STRIP
5938   # Extract the first word of "strip", so it can be a program name with args.
5939 set dummy strip; ac_word=$2
5940 echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   if test -n "$ac_ct_STRIP"; then
5946   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951   IFS=$as_save_IFS
5952   test -z "$as_dir" && as_dir=.
5953   for ac_exec_ext in '' $ac_executable_extensions; do
5954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955     ac_cv_prog_ac_ct_STRIP="strip"
5956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957     break 2
5958   fi
5959 done
5960 done
5961
5962   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5963 fi
5964 fi
5965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5966 if test -n "$ac_ct_STRIP"; then
5967   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5968 echo "${ECHO_T}$ac_ct_STRIP" >&6
5969 else
5970   echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6
5972 fi
5973
5974   STRIP=$ac_ct_STRIP
5975 else
5976   STRIP="$ac_cv_prog_STRIP"
5977 fi
5978
5979
5980 old_CC="$CC"
5981 old_CFLAGS="$CFLAGS"
5982
5983 # Set sane defaults for various variables
5984 test -z "$AR" && AR=ar
5985 test -z "$AR_FLAGS" && AR_FLAGS=cru
5986 test -z "$AS" && AS=as
5987 test -z "$CC" && CC=cc
5988 test -z "$LTCC" && LTCC=$CC
5989 test -z "$DLLTOOL" && DLLTOOL=dlltool
5990 test -z "$LD" && LD=ld
5991 test -z "$LN_S" && LN_S="ln -s"
5992 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5993 test -z "$NM" && NM=nm
5994 test -z "$SED" && SED=sed
5995 test -z "$OBJDUMP" && OBJDUMP=objdump
5996 test -z "$RANLIB" && RANLIB=:
5997 test -z "$STRIP" && STRIP=:
5998 test -z "$ac_objext" && ac_objext=o
5999
6000 # Determine commands to create old-style static archives.
6001 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6002 old_postinstall_cmds='chmod 644 $oldlib'
6003 old_postuninstall_cmds=
6004
6005 if test -n "$RANLIB"; then
6006   case $host_os in
6007   openbsd*)
6008     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6009     ;;
6010   *)
6011     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6012     ;;
6013   esac
6014   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6015 fi
6016
6017 # Only perform the check for file, if the check method requires it
6018 case $deplibs_check_method in
6019 file_magic*)
6020   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6021     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6022 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6023 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   case $MAGIC_CMD in
6027 [\\/*] |  ?:[\\/]*)
6028   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6029   ;;
6030 *)
6031   lt_save_MAGIC_CMD="$MAGIC_CMD"
6032   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6033   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6034   for ac_dir in $ac_dummy; do
6035     IFS="$lt_save_ifs"
6036     test -z "$ac_dir" && ac_dir=.
6037     if test -f $ac_dir/${ac_tool_prefix}file; then
6038       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6039       if test -n "$file_magic_test_file"; then
6040         case $deplibs_check_method in
6041         "file_magic "*)
6042           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6043           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6044           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6045             $EGREP "$file_magic_regex" > /dev/null; then
6046             :
6047           else
6048             cat <<EOF 1>&2
6049
6050 *** Warning: the command libtool uses to detect shared libraries,
6051 *** $file_magic_cmd, produces output that libtool cannot recognize.
6052 *** The result is that libtool may fail to recognize shared libraries
6053 *** as such.  This will affect the creation of libtool libraries that
6054 *** depend on shared libraries, but programs linked with such libtool
6055 *** libraries will work regardless of this problem.  Nevertheless, you
6056 *** may want to report the problem to your system manager and/or to
6057 *** bug-libtool@gnu.org
6058
6059 EOF
6060           fi ;;
6061         esac
6062       fi
6063       break
6064     fi
6065   done
6066   IFS="$lt_save_ifs"
6067   MAGIC_CMD="$lt_save_MAGIC_CMD"
6068   ;;
6069 esac
6070 fi
6071
6072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6073 if test -n "$MAGIC_CMD"; then
6074   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6075 echo "${ECHO_T}$MAGIC_CMD" >&6
6076 else
6077   echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6079 fi
6080
6081 if test -z "$lt_cv_path_MAGIC_CMD"; then
6082   if test -n "$ac_tool_prefix"; then
6083     echo "$as_me:$LINENO: checking for file" >&5
6084 echo $ECHO_N "checking for file... $ECHO_C" >&6
6085 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   case $MAGIC_CMD in
6089 [\\/*] |  ?:[\\/]*)
6090   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6091   ;;
6092 *)
6093   lt_save_MAGIC_CMD="$MAGIC_CMD"
6094   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6095   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6096   for ac_dir in $ac_dummy; do
6097     IFS="$lt_save_ifs"
6098     test -z "$ac_dir" && ac_dir=.
6099     if test -f $ac_dir/file; then
6100       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6101       if test -n "$file_magic_test_file"; then
6102         case $deplibs_check_method in
6103         "file_magic "*)
6104           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6105           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6106           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6107             $EGREP "$file_magic_regex" > /dev/null; then
6108             :
6109           else
6110             cat <<EOF 1>&2
6111
6112 *** Warning: the command libtool uses to detect shared libraries,
6113 *** $file_magic_cmd, produces output that libtool cannot recognize.
6114 *** The result is that libtool may fail to recognize shared libraries
6115 *** as such.  This will affect the creation of libtool libraries that
6116 *** depend on shared libraries, but programs linked with such libtool
6117 *** libraries will work regardless of this problem.  Nevertheless, you
6118 *** may want to report the problem to your system manager and/or to
6119 *** bug-libtool@gnu.org
6120
6121 EOF
6122           fi ;;
6123         esac
6124       fi
6125       break
6126     fi
6127   done
6128   IFS="$lt_save_ifs"
6129   MAGIC_CMD="$lt_save_MAGIC_CMD"
6130   ;;
6131 esac
6132 fi
6133
6134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6135 if test -n "$MAGIC_CMD"; then
6136   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6137 echo "${ECHO_T}$MAGIC_CMD" >&6
6138 else
6139   echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6
6141 fi
6142
6143   else
6144     MAGIC_CMD=:
6145   fi
6146 fi
6147
6148   fi
6149   ;;
6150 esac
6151
6152 enable_dlopen=no
6153 enable_win32_dll=no
6154
6155 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6156 if test "${enable_libtool_lock+set}" = set; then
6157   enableval="$enable_libtool_lock"
6158
6159 fi;
6160 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6161
6162
6163 # Check whether --with-pic or --without-pic was given.
6164 if test "${with_pic+set}" = set; then
6165   withval="$with_pic"
6166   pic_mode="$withval"
6167 else
6168   pic_mode=default
6169 fi;
6170 test -z "$pic_mode" && pic_mode=default
6171
6172 # Use C for the default configuration in the libtool script
6173 tagname=
6174 lt_save_CC="$CC"
6175 ac_ext=c
6176 ac_cpp='$CPP $CPPFLAGS'
6177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6180
6181
6182 # Source file extension for C test sources.
6183 ac_ext=c
6184
6185 # Object file extension for compiled C test sources.
6186 objext=o
6187 objext=$objext
6188
6189 # Code to be used in simple compile tests
6190 lt_simple_compile_test_code="int some_variable = 0;\n"
6191
6192 # Code to be used in simple link tests
6193 lt_simple_link_test_code='int main(){return(0);}\n'
6194
6195
6196 # If no C compiler was specified, use CC.
6197 LTCC=${LTCC-"$CC"}
6198
6199 # Allow CC to be a program name with arguments.
6200 compiler=$CC
6201
6202
6203 #
6204 # Check for any special shared library compilation flags.
6205 #
6206 lt_prog_cc_shlib=
6207 if test "$GCC" = no; then
6208   case $host_os in
6209   sco3.2v5*)
6210     lt_prog_cc_shlib='-belf'
6211     ;;
6212   esac
6213 fi
6214 if test -n "$lt_prog_cc_shlib"; then
6215   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6216 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6217   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6218   else
6219     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6220 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6221     lt_cv_prog_cc_can_build_shared=no
6222   fi
6223 fi
6224
6225
6226 #
6227 # Check to make sure the static flag actually works.
6228 #
6229 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6230 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6231 if test "${lt_prog_compiler_static_works+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   lt_prog_compiler_static_works=no
6235    save_LDFLAGS="$LDFLAGS"
6236    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6237    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6238    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6239      # The compiler can only warn and ignore the option if not recognized
6240      # So say no if there are warnings
6241      if test -s conftest.err; then
6242        # Append any errors to the config.log.
6243        cat conftest.err 1>&5
6244      else
6245        lt_prog_compiler_static_works=yes
6246      fi
6247    fi
6248    $rm conftest*
6249    LDFLAGS="$save_LDFLAGS"
6250
6251 fi
6252 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6253 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6254
6255 if test x"$lt_prog_compiler_static_works" = xyes; then
6256     :
6257 else
6258     lt_prog_compiler_static=
6259 fi
6260
6261
6262
6263
6264 lt_prog_compiler_no_builtin_flag=
6265
6266 if test "$GCC" = yes; then
6267   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6268
6269
6270 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6271 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6272 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   lt_cv_prog_compiler_rtti_exceptions=no
6276   ac_outfile=conftest.$ac_objext
6277    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6278    lt_compiler_flag="-fno-rtti -fno-exceptions"
6279    # Insert the option either (1) after the last *FLAGS variable, or
6280    # (2) before a word containing "conftest.", or (3) at the end.
6281    # Note that $ac_compile itself does not contain backslashes and begins
6282    # with a dollar sign (not a hyphen), so the echo should work correctly.
6283    # The option is referenced via a variable to avoid confusing sed.
6284    lt_compile=`echo "$ac_compile" | $SED \
6285    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6286    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6287    -e 's:$: $lt_compiler_flag:'`
6288    (eval echo "\"\$as_me:6288: $lt_compile\"" >&5)
6289    (eval "$lt_compile" 2>conftest.err)
6290    ac_status=$?
6291    cat conftest.err >&5
6292    echo "$as_me:6292: \$? = $ac_status" >&5
6293    if (exit $ac_status) && test -s "$ac_outfile"; then
6294      # The compiler can only warn and ignore the option if not recognized
6295      # So say no if there are warnings
6296      if test ! -s conftest.err; then
6297        lt_cv_prog_compiler_rtti_exceptions=yes
6298      fi
6299    fi
6300    $rm conftest*
6301
6302 fi
6303 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6304 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6305
6306 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6307     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6308 else
6309     :
6310 fi
6311
6312 fi
6313
6314 lt_prog_compiler_wl=
6315 lt_prog_compiler_pic=
6316 lt_prog_compiler_static=
6317
6318 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6319 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6320
6321   if test "$GCC" = yes; then
6322     lt_prog_compiler_wl='-Wl,'
6323     lt_prog_compiler_static='-static'
6324
6325     case $host_os in
6326       aix*)
6327       # All AIX code is PIC.
6328       if test "$host_cpu" = ia64; then
6329         # AIX 5 now supports IA64 processor
6330         lt_prog_compiler_static='-Bstatic'
6331       fi
6332       ;;
6333
6334     amigaos*)
6335       # FIXME: we need at least 68020 code to build shared libraries, but
6336       # adding the `-m68020' flag to GCC prevents building anything better,
6337       # like `-m68040'.
6338       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6339       ;;
6340
6341     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6342       # PIC is the default for these OSes.
6343       ;;
6344
6345     mingw* | pw32* | os2*)
6346       # This hack is so that the source file can tell whether it is being
6347       # built for inclusion in a dll (and should export symbols for example).
6348       lt_prog_compiler_pic='-DDLL_EXPORT'
6349       ;;
6350
6351     darwin* | rhapsody*)
6352       # PIC is the default on this platform
6353       # Common symbols not allowed in MH_DYLIB files
6354       lt_prog_compiler_pic='-fno-common'
6355       ;;
6356
6357     msdosdjgpp*)
6358       # Just because we use GCC doesn't mean we suddenly get shared libraries
6359       # on systems that don't support them.
6360       lt_prog_compiler_can_build_shared=no
6361       enable_shared=no
6362       ;;
6363
6364     sysv4*MP*)
6365       if test -d /usr/nec; then
6366         lt_prog_compiler_pic=-Kconform_pic
6367       fi
6368       ;;
6369
6370     hpux*)
6371       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6372       # not for PA HP-UX.
6373       case "$host_cpu" in
6374       hppa*64*|ia64*)
6375         # +Z the default
6376         ;;
6377       *)
6378         lt_prog_compiler_pic='-fPIC'
6379         ;;
6380       esac
6381       ;;
6382
6383     *)
6384       lt_prog_compiler_pic='-fPIC'
6385       ;;
6386     esac
6387   else
6388     # PORTME Check for flag to pass linker flags through the system compiler.
6389     case $host_os in
6390     aix*)
6391       lt_prog_compiler_wl='-Wl,'
6392       if test "$host_cpu" = ia64; then
6393         # AIX 5 now supports IA64 processor
6394         lt_prog_compiler_static='-Bstatic'
6395       else
6396         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6397       fi
6398       ;;
6399
6400     mingw* | pw32* | os2*)
6401       # This hack is so that the source file can tell whether it is being
6402       # built for inclusion in a dll (and should export symbols for example).
6403       lt_prog_compiler_pic='-DDLL_EXPORT'
6404       ;;
6405
6406     hpux9* | hpux10* | hpux11*)
6407       lt_prog_compiler_wl='-Wl,'
6408       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6409       # not for PA HP-UX.
6410       case "$host_cpu" in
6411       hppa*64*|ia64*)
6412         # +Z the default
6413         ;;
6414       *)
6415         lt_prog_compiler_pic='+Z'
6416         ;;
6417       esac
6418       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6419       lt_prog_compiler_static='${wl}-a ${wl}archive'
6420       ;;
6421
6422     irix5* | irix6* | nonstopux*)
6423       lt_prog_compiler_wl='-Wl,'
6424       # PIC (with -KPIC) is the default.
6425       lt_prog_compiler_static='-non_shared'
6426       ;;
6427
6428     newsos6)
6429       lt_prog_compiler_pic='-KPIC'
6430       lt_prog_compiler_static='-Bstatic'
6431       ;;
6432
6433     linux*)
6434       case $CC in
6435       icc* | ecc*)
6436         lt_prog_compiler_wl='-Wl,'
6437         lt_prog_compiler_pic='-KPIC'
6438         lt_prog_compiler_static='-static'
6439         ;;
6440       ccc*)
6441         lt_prog_compiler_wl='-Wl,'
6442         # All Alpha code is PIC.
6443         lt_prog_compiler_static='-non_shared'
6444         ;;
6445       esac
6446       ;;
6447
6448     osf3* | osf4* | osf5*)
6449       lt_prog_compiler_wl='-Wl,'
6450       # All OSF/1 code is PIC.
6451       lt_prog_compiler_static='-non_shared'
6452       ;;
6453
6454     sco3.2v5*)
6455       lt_prog_compiler_pic='-Kpic'
6456       lt_prog_compiler_static='-dn'
6457       ;;
6458
6459     solaris*)
6460       lt_prog_compiler_wl='-Wl,'
6461       lt_prog_compiler_pic='-KPIC'
6462       lt_prog_compiler_static='-Bstatic'
6463       ;;
6464
6465     sunos4*)
6466       lt_prog_compiler_wl='-Qoption ld '
6467       lt_prog_compiler_pic='-PIC'
6468       lt_prog_compiler_static='-Bstatic'
6469       ;;
6470
6471     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6472       lt_prog_compiler_wl='-Wl,'
6473       lt_prog_compiler_pic='-KPIC'
6474       lt_prog_compiler_static='-Bstatic'
6475       ;;
6476
6477     sysv4*MP*)
6478       if test -d /usr/nec ;then
6479         lt_prog_compiler_pic='-Kconform_pic'
6480         lt_prog_compiler_static='-Bstatic'
6481       fi
6482       ;;
6483
6484     uts4*)
6485       lt_prog_compiler_pic='-pic'
6486       lt_prog_compiler_static='-Bstatic'
6487       ;;
6488
6489     *)
6490       lt_prog_compiler_can_build_shared=no
6491       ;;
6492     esac
6493   fi
6494
6495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6496 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6497
6498 #
6499 # Check to make sure the PIC flag actually works.
6500 #
6501 if test -n "$lt_prog_compiler_pic"; then
6502
6503 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6504 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6505 if test "${lt_prog_compiler_pic_works+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   lt_prog_compiler_pic_works=no
6509   ac_outfile=conftest.$ac_objext
6510    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6511    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6512    # Insert the option either (1) after the last *FLAGS variable, or
6513    # (2) before a word containing "conftest.", or (3) at the end.
6514    # Note that $ac_compile itself does not contain backslashes and begins
6515    # with a dollar sign (not a hyphen), so the echo should work correctly.
6516    # The option is referenced via a variable to avoid confusing sed.
6517    lt_compile=`echo "$ac_compile" | $SED \
6518    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6519    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6520    -e 's:$: $lt_compiler_flag:'`
6521    (eval echo "\"\$as_me:6521: $lt_compile\"" >&5)
6522    (eval "$lt_compile" 2>conftest.err)
6523    ac_status=$?
6524    cat conftest.err >&5
6525    echo "$as_me:6525: \$? = $ac_status" >&5
6526    if (exit $ac_status) && test -s "$ac_outfile"; then
6527      # The compiler can only warn and ignore the option if not recognized
6528      # So say no if there are warnings
6529      if test ! -s conftest.err; then
6530        lt_prog_compiler_pic_works=yes
6531      fi
6532    fi
6533    $rm conftest*
6534
6535 fi
6536 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6537 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6538
6539 if test x"$lt_prog_compiler_pic_works" = xyes; then
6540     case $lt_prog_compiler_pic in
6541      "" | " "*) ;;
6542      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6543      esac
6544 else
6545     lt_prog_compiler_pic=
6546      lt_prog_compiler_can_build_shared=no
6547 fi
6548
6549 fi
6550 case "$host_os" in
6551   # For platforms which do not support PIC, -DPIC is meaningless:
6552   *djgpp*)
6553     lt_prog_compiler_pic=
6554     ;;
6555   *)
6556     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6557     ;;
6558 esac
6559
6560 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6561 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6562 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6563   echo $ECHO_N "(cached) $ECHO_C" >&6
6564 else
6565   lt_cv_prog_compiler_c_o=no
6566    $rm -r conftest 2>/dev/null
6567    mkdir conftest
6568    cd conftest
6569    mkdir out
6570    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6571
6572    lt_compiler_flag="-o out/conftest2.$ac_objext"
6573    # Insert the option either (1) after the last *FLAGS variable, or
6574    # (2) before a word containing "conftest.", or (3) at the end.
6575    # Note that $ac_compile itself does not contain backslashes and begins
6576    # with a dollar sign (not a hyphen), so the echo should work correctly.
6577    lt_compile=`echo "$ac_compile" | $SED \
6578    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6579    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6580    -e 's:$: $lt_compiler_flag:'`
6581    (eval echo "\"\$as_me:6581: $lt_compile\"" >&5)
6582    (eval "$lt_compile" 2>out/conftest.err)
6583    ac_status=$?
6584    cat out/conftest.err >&5
6585    echo "$as_me:6585: \$? = $ac_status" >&5
6586    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6587    then
6588      # The compiler can only warn and ignore the option if not recognized
6589      # So say no if there are warnings
6590      if test ! -s out/conftest.err; then
6591        lt_cv_prog_compiler_c_o=yes
6592      fi
6593    fi
6594    chmod u+w .
6595    $rm conftest*
6596    # SGI C++ compiler will create directory out/ii_files/ for
6597    # template instantiation
6598    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6599    $rm out/* && rmdir out
6600    cd ..
6601    rmdir conftest
6602    $rm conftest*
6603
6604 fi
6605 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6606 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6607
6608
6609 hard_links="nottested"
6610 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6611   # do not overwrite the value of need_locks provided by the user
6612   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6613 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6614   hard_links=yes
6615   $rm conftest*
6616   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6617   touch conftest.a
6618   ln conftest.a conftest.b 2>&5 || hard_links=no
6619   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6620   echo "$as_me:$LINENO: result: $hard_links" >&5
6621 echo "${ECHO_T}$hard_links" >&6
6622   if test "$hard_links" = no; then
6623     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6624 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6625     need_locks=warn
6626   fi
6627 else
6628   need_locks=no
6629 fi
6630
6631 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6632 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6633
6634   runpath_var=
6635   allow_undefined_flag=
6636   enable_shared_with_static_runtimes=no
6637   archive_cmds=
6638   archive_expsym_cmds=
6639   old_archive_From_new_cmds=
6640   old_archive_from_expsyms_cmds=
6641   export_dynamic_flag_spec=
6642   whole_archive_flag_spec=
6643   thread_safe_flag_spec=
6644   hardcode_libdir_flag_spec=
6645   hardcode_libdir_flag_spec_ld=
6646   hardcode_libdir_separator=
6647   hardcode_direct=no
6648   hardcode_minus_L=no
6649   hardcode_shlibpath_var=unsupported
6650   link_all_deplibs=unknown
6651   hardcode_automatic=no
6652   module_cmds=
6653   module_expsym_cmds=
6654   always_export_symbols=no
6655   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6656   # include_expsyms should be a list of space-separated symbols to be *always*
6657   # included in the symbol list
6658   include_expsyms=
6659   # exclude_expsyms can be an extended regexp of symbols to exclude
6660   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6661   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6662   # as well as any symbol that contains `d'.
6663   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6664   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6665   # platforms (ab)use it in PIC code, but their linkers get confused if
6666   # the symbol is explicitly referenced.  Since portable code cannot
6667   # rely on this symbol name, it's probably fine to never include it in
6668   # preloaded symbol tables.
6669   extract_expsyms_cmds=
6670
6671   case $host_os in
6672   cygwin* | mingw* | pw32*)
6673     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6674     # When not using gcc, we currently assume that we are using
6675     # Microsoft Visual C++.
6676     if test "$GCC" != yes; then
6677       with_gnu_ld=no
6678     fi
6679     ;;
6680   openbsd*)
6681     with_gnu_ld=no
6682     ;;
6683   esac
6684
6685   ld_shlibs=yes
6686   if test "$with_gnu_ld" = yes; then
6687     # If archive_cmds runs LD, not CC, wlarc should be empty
6688     wlarc='${wl}'
6689
6690     # See if GNU ld supports shared libraries.
6691     case $host_os in
6692     aix3* | aix4* | aix5*)
6693       # On AIX/PPC, the GNU linker is very broken
6694       if test "$host_cpu" != ia64; then
6695         ld_shlibs=no
6696         cat <<EOF 1>&2
6697
6698 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6699 *** to be unable to reliably create shared libraries on AIX.
6700 *** Therefore, libtool is disabling shared libraries support.  If you
6701 *** really care for shared libraries, you may want to modify your PATH
6702 *** so that a non-GNU linker is found, and then restart.
6703
6704 EOF
6705       fi
6706       ;;
6707
6708     amigaos*)
6709       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)'
6710       hardcode_libdir_flag_spec='-L$libdir'
6711       hardcode_minus_L=yes
6712
6713       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6714       # that the semantics of dynamic libraries on AmigaOS, at least up
6715       # to version 4, is to share data among multiple programs linked
6716       # with the same dynamic library.  Since this doesn't match the
6717       # behavior of shared libraries on other platforms, we can't use
6718       # them.
6719       ld_shlibs=no
6720       ;;
6721
6722     beos*)
6723       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6724         allow_undefined_flag=unsupported
6725         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6726         # support --undefined.  This deserves some investigation.  FIXME
6727         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6728       else
6729         ld_shlibs=no
6730       fi
6731       ;;
6732
6733     cygwin* | mingw* | pw32*)
6734       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6735       # as there is no search path for DLLs.
6736       hardcode_libdir_flag_spec='-L$libdir'
6737       allow_undefined_flag=unsupported
6738       always_export_symbols=no
6739       enable_shared_with_static_runtimes=yes
6740       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6741
6742       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6743         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6744         # If the export-symbols file already is a .def file (1st line
6745         # is EXPORTS), use it as is; otherwise, prepend...
6746         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6747           cp $export_symbols $output_objdir/$soname.def;
6748         else
6749           echo EXPORTS > $output_objdir/$soname.def;
6750           cat $export_symbols >> $output_objdir/$soname.def;
6751         fi~
6752         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6753       else
6754         ld_shlibs=no
6755       fi
6756       ;;
6757
6758     netbsd* | knetbsd*-gnu)
6759       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6760         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6761         wlarc=
6762       else
6763         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6764         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6765       fi
6766       ;;
6767
6768     solaris* | sysv5*)
6769       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6770         ld_shlibs=no
6771         cat <<EOF 1>&2
6772
6773 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6774 *** create shared libraries on Solaris systems.  Therefore, libtool
6775 *** is disabling shared libraries support.  We urge you to upgrade GNU
6776 *** binutils to release 2.9.1 or newer.  Another option is to modify
6777 *** your PATH or compiler configuration so that the native linker is
6778 *** used, and then restart.
6779
6780 EOF
6781       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6782         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6783         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6784       else
6785         ld_shlibs=no
6786       fi
6787       ;;
6788
6789     sunos4*)
6790       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6791       wlarc=
6792       hardcode_direct=yes
6793       hardcode_shlibpath_var=no
6794       ;;
6795
6796   linux*)
6797     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6798         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6799         archive_cmds="$tmp_archive_cmds"
6800       supports_anon_versioning=no
6801       case `$LD -v 2>/dev/null` in
6802         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6803         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6804         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6805         *\ 2.11.*) ;; # other 2.11 versions
6806         *) supports_anon_versioning=yes ;;
6807       esac
6808       if test $supports_anon_versioning = yes; then
6809         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6811 $echo "local: *; };" >> $output_objdir/$libname.ver~
6812         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6813       else
6814         archive_expsym_cmds="$tmp_archive_cmds"
6815       fi
6816       link_all_deplibs=no
6817     else
6818       ld_shlibs=no
6819     fi
6820     ;;
6821
6822     *)
6823       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6824         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6825         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6826       else
6827         ld_shlibs=no
6828       fi
6829       ;;
6830     esac
6831
6832     if test "$ld_shlibs" = yes; then
6833       runpath_var=LD_RUN_PATH
6834       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6835       export_dynamic_flag_spec='${wl}--export-dynamic'
6836       # ancient GNU ld didn't support --whole-archive et. al.
6837       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6838         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6839       else
6840         whole_archive_flag_spec=
6841       fi
6842     fi
6843   else
6844     # PORTME fill in a description of your system's linker (not GNU ld)
6845     case $host_os in
6846     aix3*)
6847       allow_undefined_flag=unsupported
6848       always_export_symbols=yes
6849       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'
6850       # Note: this linker hardcodes the directories in LIBPATH if there
6851       # are no directories specified by -L.
6852       hardcode_minus_L=yes
6853       if test "$GCC" = yes && test -z "$link_static_flag"; then
6854         # Neither direct hardcoding nor static linking is supported with a
6855         # broken collect2.
6856         hardcode_direct=unsupported
6857       fi
6858       ;;
6859
6860     aix4* | aix5*)
6861       if test "$host_cpu" = ia64; then
6862         # On IA64, the linker does run time linking by default, so we don't
6863         # have to do anything special.
6864         aix_use_runtimelinking=no
6865         exp_sym_flag='-Bexport'
6866         no_entry_flag=""
6867       else
6868         # If we're using GNU nm, then we don't want the "-C" option.
6869         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6870         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6871           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'
6872         else
6873           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'
6874         fi
6875         aix_use_runtimelinking=no
6876
6877         # Test if we are trying to use run time linking or normal
6878         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6879         # need to do runtime linking.
6880         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6881           for ld_flag in $LDFLAGS; do
6882           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6883             aix_use_runtimelinking=yes
6884             break
6885           fi
6886           done
6887         esac
6888
6889         exp_sym_flag='-bexport'
6890         no_entry_flag='-bnoentry'
6891       fi
6892
6893       # When large executables or shared objects are built, AIX ld can
6894       # have problems creating the table of contents.  If linking a library
6895       # or program results in "error TOC overflow" add -mminimal-toc to
6896       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6897       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6898
6899       archive_cmds=''
6900       hardcode_direct=yes
6901       hardcode_libdir_separator=':'
6902       link_all_deplibs=yes
6903
6904       if test "$GCC" = yes; then
6905         case $host_os in aix4.012|aix4.012.*)
6906         # We only want to do this on AIX 4.2 and lower, the check
6907         # below for broken collect2 doesn't work under 4.3+
6908           collect2name=`${CC} -print-prog-name=collect2`
6909           if test -f "$collect2name" && \
6910            strings "$collect2name" | grep resolve_lib_name >/dev/null
6911           then
6912           # We have reworked collect2
6913           hardcode_direct=yes
6914           else
6915           # We have old collect2
6916           hardcode_direct=unsupported
6917           # It fails to find uninstalled libraries when the uninstalled
6918           # path is not listed in the libpath.  Setting hardcode_minus_L
6919           # to unsupported forces relinking
6920           hardcode_minus_L=yes
6921           hardcode_libdir_flag_spec='-L$libdir'
6922           hardcode_libdir_separator=
6923           fi
6924         esac
6925         shared_flag='-shared'
6926       else
6927         # not using gcc
6928         if test "$host_cpu" = ia64; then
6929         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6930         # chokes on -Wl,-G. The following line is correct:
6931           shared_flag='-G'
6932         else
6933         if test "$aix_use_runtimelinking" = yes; then
6934             shared_flag='${wl}-G'
6935           else
6936             shared_flag='${wl}-bM:SRE'
6937         fi
6938         fi
6939       fi
6940
6941       # It seems that -bexpall does not export symbols beginning with
6942       # underscore (_), so it is better to generate a list of symbols to export.
6943       always_export_symbols=yes
6944       if test "$aix_use_runtimelinking" = yes; then
6945         # Warning - without using the other runtime loading flags (-brtl),
6946         # -berok will link without error, but may produce a broken library.
6947         allow_undefined_flag='-berok'
6948        # Determine the default libpath from the value encoded in an empty executable.
6949        cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h.  */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h.  */
6955
6956 int
6957 main ()
6958 {
6959
6960   ;
6961   return 0;
6962 }
6963 _ACEOF
6964 rm -f conftest.$ac_objext conftest$ac_exeext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6966   (eval $ac_link) 2>conftest.er1
6967   ac_status=$?
6968   grep -v '^ *+' conftest.er1 >conftest.err
6969   rm -f conftest.er1
6970   cat conftest.err >&5
6971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972   (exit $ac_status); } &&
6973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975   (eval $ac_try) 2>&5
6976   ac_status=$?
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); }; } &&
6979          { ac_try='test -s conftest$ac_exeext'
6980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981   (eval $ac_try) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); }; }; then
6985
6986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6987 }'`
6988 # Check for a 64-bit object if we didn't find anything.
6989 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; }
6990 }'`; fi
6991 else
6992   echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995 fi
6996 rm -f conftest.err conftest.$ac_objext \
6997       conftest$ac_exeext conftest.$ac_ext
6998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6999
7000        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7001         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"
7002        else
7003         if test "$host_cpu" = ia64; then
7004           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7005           allow_undefined_flag="-z nodefs"
7006           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"
7007         else
7008          # Determine the default libpath from the value encoded in an empty executable.
7009          cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h.  */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h.  */
7015
7016 int
7017 main ()
7018 {
7019
7020   ;
7021   return 0;
7022 }
7023 _ACEOF
7024 rm -f conftest.$ac_objext conftest$ac_exeext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026   (eval $ac_link) 2>conftest.er1
7027   ac_status=$?
7028   grep -v '^ *+' conftest.er1 >conftest.err
7029   rm -f conftest.er1
7030   cat conftest.err >&5
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); } &&
7033          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035   (eval $ac_try) 2>&5
7036   ac_status=$?
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); }; } &&
7039          { ac_try='test -s conftest$ac_exeext'
7040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041   (eval $ac_try) 2>&5
7042   ac_status=$?
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); }; }; then
7045
7046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7047 }'`
7048 # Check for a 64-bit object if we didn't find anything.
7049 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; }
7050 }'`; fi
7051 else
7052   echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055 fi
7056 rm -f conftest.err conftest.$ac_objext \
7057       conftest$ac_exeext conftest.$ac_ext
7058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7059
7060          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7061           # Warning - without using the other run time loading flags,
7062           # -berok will link without error, but may produce a broken library.
7063           no_undefined_flag=' ${wl}-bernotok'
7064           allow_undefined_flag=' ${wl}-berok'
7065           # -bexpall does not export symbols beginning with underscore (_)
7066           always_export_symbols=yes
7067           # Exported symbols can be pulled into shared objects from archives
7068           whole_archive_flag_spec=' '
7069           archive_cmds_need_lc=yes
7070           # This is similar to how AIX traditionally builds it's shared libraries.
7071           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'
7072         fi
7073       fi
7074       ;;
7075
7076     amigaos*)
7077       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)'
7078       hardcode_libdir_flag_spec='-L$libdir'
7079       hardcode_minus_L=yes
7080       # see comment about different semantics on the GNU ld section
7081       ld_shlibs=no
7082       ;;
7083
7084     bsdi4*)
7085       export_dynamic_flag_spec=-rdynamic
7086       ;;
7087
7088     cygwin* | mingw* | pw32*)
7089       # When not using gcc, we currently assume that we are using
7090       # Microsoft Visual C++.
7091       # hardcode_libdir_flag_spec is actually meaningless, as there is
7092       # no search path for DLLs.
7093       hardcode_libdir_flag_spec=' '
7094       allow_undefined_flag=unsupported
7095       # Tell ltmain to make .lib files, not .a files.
7096       libext=lib
7097       # Tell ltmain to make .dll files, not .so files.
7098       shrext_cmds=".dll"
7099       # FIXME: Setting linknames here is a bad hack.
7100       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7101       # The linker will automatically build a .lib file if we build a DLL.
7102       old_archive_From_new_cmds='true'
7103       # FIXME: Should let the user specify the lib program.
7104       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7105       fix_srcfile_path='`cygpath -w "$srcfile"`'
7106       enable_shared_with_static_runtimes=yes
7107       ;;
7108
7109     darwin* | rhapsody*)
7110     if test "$GXX" = yes ; then
7111       archive_cmds_need_lc=no
7112       case "$host_os" in
7113       rhapsody* | darwin1.[012])
7114         allow_undefined_flag='-undefined suppress'
7115         ;;
7116       *) # Darwin 1.3 on
7117       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7118         allow_undefined_flag='-flat_namespace -undefined suppress'
7119       else
7120         case ${MACOSX_DEPLOYMENT_TARGET} in
7121           10.[012])
7122             allow_undefined_flag='-flat_namespace -undefined suppress'
7123             ;;
7124           10.*)
7125             allow_undefined_flag='-undefined dynamic_lookup'
7126             ;;
7127         esac
7128       fi
7129         ;;
7130       esac
7131         lt_int_apple_cc_single_mod=no
7132         output_verbose_link_cmd='echo'
7133         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7134           lt_int_apple_cc_single_mod=yes
7135         fi
7136         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7137           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7138         else
7139         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'
7140       fi
7141       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7142       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7143         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7144           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}'
7145         else
7146           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}'
7147         fi
7148           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}'
7149       hardcode_direct=no
7150       hardcode_automatic=yes
7151       hardcode_shlibpath_var=unsupported
7152       whole_archive_flag_spec='-all_load $convenience'
7153       link_all_deplibs=yes
7154     else
7155       ld_shlibs=no
7156     fi
7157       ;;
7158
7159     dgux*)
7160       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7161       hardcode_libdir_flag_spec='-L$libdir'
7162       hardcode_shlibpath_var=no
7163       ;;
7164
7165     freebsd1*)
7166       ld_shlibs=no
7167       ;;
7168
7169     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7170     # support.  Future versions do this automatically, but an explicit c++rt0.o
7171     # does not break anything, and helps significantly (at the cost of a little
7172     # extra space).
7173     freebsd2.2*)
7174       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7175       hardcode_libdir_flag_spec='-R$libdir'
7176       hardcode_direct=yes
7177       hardcode_shlibpath_var=no
7178       ;;
7179
7180     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7181     freebsd2*)
7182       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7183       hardcode_direct=yes
7184       hardcode_minus_L=yes
7185       hardcode_shlibpath_var=no
7186       ;;
7187
7188     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7189     freebsd* | kfreebsd*-gnu)
7190       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7191       hardcode_libdir_flag_spec='-R$libdir'
7192       hardcode_direct=yes
7193       hardcode_shlibpath_var=no
7194       ;;
7195
7196     hpux9*)
7197       if test "$GCC" = yes; then
7198         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'
7199       else
7200         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'
7201       fi
7202       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7203       hardcode_libdir_separator=:
7204       hardcode_direct=yes
7205
7206       # hardcode_minus_L: Not really in the search PATH,
7207       # but as the default location of the library.
7208       hardcode_minus_L=yes
7209       export_dynamic_flag_spec='${wl}-E'
7210       ;;
7211
7212     hpux10* | hpux11*)
7213       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7214         case "$host_cpu" in
7215         hppa*64*|ia64*)
7216           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7217           ;;
7218         *)
7219           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7220           ;;
7221         esac
7222       else
7223         case "$host_cpu" in
7224         hppa*64*|ia64*)
7225           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7226           ;;
7227         *)
7228           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7229           ;;
7230         esac
7231       fi
7232       if test "$with_gnu_ld" = no; then
7233         case "$host_cpu" in
7234         hppa*64*)
7235           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7236           hardcode_libdir_flag_spec_ld='+b $libdir'
7237           hardcode_libdir_separator=:
7238           hardcode_direct=no
7239           hardcode_shlibpath_var=no
7240           ;;
7241         ia64*)
7242           hardcode_libdir_flag_spec='-L$libdir'
7243           hardcode_direct=no
7244           hardcode_shlibpath_var=no
7245
7246           # hardcode_minus_L: Not really in the search PATH,
7247           # but as the default location of the library.
7248           hardcode_minus_L=yes
7249           ;;
7250         *)
7251           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7252           hardcode_libdir_separator=:
7253           hardcode_direct=yes
7254           export_dynamic_flag_spec='${wl}-E'
7255
7256           # hardcode_minus_L: Not really in the search PATH,
7257           # but as the default location of the library.
7258           hardcode_minus_L=yes
7259           ;;
7260         esac
7261       fi
7262       ;;
7263
7264     irix5* | irix6* | nonstopux*)
7265       if test "$GCC" = yes; then
7266         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'
7267       else
7268         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'
7269         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7270       fi
7271       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7272       hardcode_libdir_separator=:
7273       link_all_deplibs=yes
7274       ;;
7275
7276     netbsd* | knetbsd*-gnu)
7277       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7278         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7279       else
7280         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7281       fi
7282       hardcode_libdir_flag_spec='-R$libdir'
7283       hardcode_direct=yes
7284       hardcode_shlibpath_var=no
7285       ;;
7286
7287     newsos6)
7288       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7289       hardcode_direct=yes
7290       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7291       hardcode_libdir_separator=:
7292       hardcode_shlibpath_var=no
7293       ;;
7294
7295     openbsd*)
7296       hardcode_direct=yes
7297       hardcode_shlibpath_var=no
7298       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7299         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7300         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7301         export_dynamic_flag_spec='${wl}-E'
7302       else
7303        case $host_os in
7304          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7305            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7306            hardcode_libdir_flag_spec='-R$libdir'
7307            ;;
7308          *)
7309            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7310            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7311            ;;
7312        esac
7313       fi
7314       ;;
7315
7316     os2*)
7317       hardcode_libdir_flag_spec='-L$libdir'
7318       hardcode_minus_L=yes
7319       allow_undefined_flag=unsupported
7320       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'
7321       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7322       ;;
7323
7324     osf3*)
7325       if test "$GCC" = yes; then
7326         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7327         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'
7328       else
7329         allow_undefined_flag=' -expect_unresolved \*'
7330         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'
7331       fi
7332       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7333       hardcode_libdir_separator=:
7334       ;;
7335
7336     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7337       if test "$GCC" = yes; then
7338         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7339         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'
7340         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7341       else
7342         allow_undefined_flag=' -expect_unresolved \*'
7343         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'
7344         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7345         $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'
7346
7347         # Both c and cxx compiler support -rpath directly
7348         hardcode_libdir_flag_spec='-rpath $libdir'
7349       fi
7350       hardcode_libdir_separator=:
7351       ;;
7352
7353     sco3.2v5*)
7354       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355       hardcode_shlibpath_var=no
7356       export_dynamic_flag_spec='${wl}-Bexport'
7357       runpath_var=LD_RUN_PATH
7358       hardcode_runpath_var=yes
7359       ;;
7360
7361     solaris*)
7362       no_undefined_flag=' -z text'
7363       if test "$GCC" = yes; then
7364         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7365         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7366           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7367       else
7368         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7369         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7370         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7371       fi
7372       hardcode_libdir_flag_spec='-R$libdir'
7373       hardcode_shlibpath_var=no
7374       case $host_os in
7375       solaris2.[0-5] | solaris2.[0-5].*) ;;
7376       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7377         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7378       esac
7379       link_all_deplibs=yes
7380       ;;
7381
7382     sunos4*)
7383       if test "x$host_vendor" = xsequent; then
7384         # Use $CC to link under sequent, because it throws in some extra .o
7385         # files that make .init and .fini sections work.
7386         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7387       else
7388         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7389       fi
7390       hardcode_libdir_flag_spec='-L$libdir'
7391       hardcode_direct=yes
7392       hardcode_minus_L=yes
7393       hardcode_shlibpath_var=no
7394       ;;
7395
7396     sysv4)
7397       case $host_vendor in
7398         sni)
7399           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400           hardcode_direct=yes # is this really true???
7401         ;;
7402         siemens)
7403           ## LD is ld it makes a PLAMLIB
7404           ## CC just makes a GrossModule.
7405           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7406           reload_cmds='$CC -r -o $output$reload_objs'
7407           hardcode_direct=no
7408         ;;
7409         motorola)
7410           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7411           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7412         ;;
7413       esac
7414       runpath_var='LD_RUN_PATH'
7415       hardcode_shlibpath_var=no
7416       ;;
7417
7418     sysv4.3*)
7419       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7420       hardcode_shlibpath_var=no
7421       export_dynamic_flag_spec='-Bexport'
7422       ;;
7423
7424     sysv4*MP*)
7425       if test -d /usr/nec; then
7426         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7427         hardcode_shlibpath_var=no
7428         runpath_var=LD_RUN_PATH
7429         hardcode_runpath_var=yes
7430         ld_shlibs=yes
7431       fi
7432       ;;
7433
7434     sysv4.2uw2*)
7435       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7436       hardcode_direct=yes
7437       hardcode_minus_L=no
7438       hardcode_shlibpath_var=no
7439       hardcode_runpath_var=yes
7440       runpath_var=LD_RUN_PATH
7441       ;;
7442
7443    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7444       no_undefined_flag='${wl}-z ${wl}text'
7445       if test "$GCC" = yes; then
7446         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7447       else
7448         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7449       fi
7450       runpath_var='LD_RUN_PATH'
7451       hardcode_shlibpath_var=no
7452       ;;
7453
7454     sysv5*)
7455       no_undefined_flag=' -z text'
7456       # $CC -shared without GNU ld will not create a library from C++
7457       # object files and a static libstdc++, better avoid it by now
7458       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7459       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7460                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7461       hardcode_libdir_flag_spec=
7462       hardcode_shlibpath_var=no
7463       runpath_var='LD_RUN_PATH'
7464       ;;
7465
7466     uts4*)
7467       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7468       hardcode_libdir_flag_spec='-L$libdir'
7469       hardcode_shlibpath_var=no
7470       ;;
7471
7472     *)
7473       ld_shlibs=no
7474       ;;
7475     esac
7476   fi
7477
7478 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7479 echo "${ECHO_T}$ld_shlibs" >&6
7480 test "$ld_shlibs" = no && can_build_shared=no
7481
7482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7483 if test "$GCC" = yes; then
7484   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7485 fi
7486
7487 #
7488 # Do we need to explicitly link libc?
7489 #
7490 case "x$archive_cmds_need_lc" in
7491 x|xyes)
7492   # Assume -lc should be added
7493   archive_cmds_need_lc=yes
7494
7495   if test "$enable_shared" = yes && test "$GCC" = yes; then
7496     case $archive_cmds in
7497     *'~'*)
7498       # FIXME: we may have to deal with multi-command sequences.
7499       ;;
7500     '$CC '*)
7501       # Test whether the compiler implicitly links with -lc since on some
7502       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7503       # to ld, don't add -lc before -lgcc.
7504       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7505 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7506       $rm conftest*
7507       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7508
7509       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510   (eval $ac_compile) 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } 2>conftest.err; then
7514         soname=conftest
7515         lib=conftest
7516         libobjs=conftest.$ac_objext
7517         deplibs=
7518         wl=$lt_prog_compiler_wl
7519         compiler_flags=-v
7520         linker_flags=-v
7521         verstring=
7522         output_objdir=.
7523         libname=conftest
7524         lt_save_allow_undefined_flag=$allow_undefined_flag
7525         allow_undefined_flag=
7526         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7527   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); }
7531         then
7532           archive_cmds_need_lc=no
7533         else
7534           archive_cmds_need_lc=yes
7535         fi
7536         allow_undefined_flag=$lt_save_allow_undefined_flag
7537       else
7538         cat conftest.err 1>&5
7539       fi
7540       $rm conftest*
7541       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7542 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7543       ;;
7544     esac
7545   fi
7546   ;;
7547 esac
7548
7549 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7550 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7551 library_names_spec=
7552 libname_spec='lib$name'
7553 soname_spec=
7554 shrext_cmds=".so"
7555 postinstall_cmds=
7556 postuninstall_cmds=
7557 finish_cmds=
7558 finish_eval=
7559 shlibpath_var=
7560 shlibpath_overrides_runpath=unknown
7561 version_type=none
7562 dynamic_linker="$host_os ld.so"
7563 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7564 if test "$GCC" = yes; then
7565   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7566   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7567     # if the path contains ";" then we assume it to be the separator
7568     # otherwise default to the standard path separator (i.e. ":") - it is
7569     # assumed that no part of a normal pathname contains ";" but that should
7570     # okay in the real world where ";" in dirpaths is itself problematic.
7571     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7572   else
7573     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7574   fi
7575 else
7576   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7577 fi
7578 need_lib_prefix=unknown
7579 hardcode_into_libs=no
7580
7581 # when you set need_version to no, make sure it does not cause -set_version
7582 # flags to be left without arguments
7583 need_version=unknown
7584
7585 case $host_os in
7586 aix3*)
7587   version_type=linux
7588   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7589   shlibpath_var=LIBPATH
7590
7591   # AIX 3 has no versioning support, so we append a major version to the name.
7592   soname_spec='${libname}${release}${shared_ext}$major'
7593   ;;
7594
7595 aix4* | aix5*)
7596   version_type=linux
7597   need_lib_prefix=no
7598   need_version=no
7599   hardcode_into_libs=yes
7600   if test "$host_cpu" = ia64; then
7601     # AIX 5 supports IA64
7602     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7603     shlibpath_var=LD_LIBRARY_PATH
7604   else
7605     # With GCC up to 2.95.x, collect2 would create an import file
7606     # for dependence libraries.  The import file would start with
7607     # the line `#! .'.  This would cause the generated library to
7608     # depend on `.', always an invalid library.  This was fixed in
7609     # development snapshots of GCC prior to 3.0.
7610     case $host_os in
7611       aix4 | aix4.[01] | aix4.[01].*)
7612       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7613            echo ' yes '
7614            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7615         :
7616       else
7617         can_build_shared=no
7618       fi
7619       ;;
7620     esac
7621     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7622     # soname into executable. Probably we can add versioning support to
7623     # collect2, so additional links can be useful in future.
7624     if test "$aix_use_runtimelinking" = yes; then
7625       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7626       # instead of lib<name>.a to let people know that these are not
7627       # typical AIX shared libraries.
7628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629     else
7630       # We preserve .a as extension for shared libraries through AIX4.2
7631       # and later when we are not doing run time linking.
7632       library_names_spec='${libname}${release}.a $libname.a'
7633       soname_spec='${libname}${release}${shared_ext}$major'
7634     fi
7635     shlibpath_var=LIBPATH
7636   fi
7637   ;;
7638
7639 amigaos*)
7640   library_names_spec='$libname.ixlibrary $libname.a'
7641   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7642   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'
7643   ;;
7644
7645 beos*)
7646   library_names_spec='${libname}${shared_ext}'
7647   dynamic_linker="$host_os ld.so"
7648   shlibpath_var=LIBRARY_PATH
7649   ;;
7650
7651 bsdi4*)
7652   version_type=linux
7653   need_version=no
7654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7655   soname_spec='${libname}${release}${shared_ext}$major'
7656   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7657   shlibpath_var=LD_LIBRARY_PATH
7658   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7659   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7660   # the default ld.so.conf also contains /usr/contrib/lib and
7661   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7662   # libtool to hard-code these into programs
7663   ;;
7664
7665 cygwin* | mingw* | pw32*)
7666   version_type=windows
7667   shrext_cmds=".dll"
7668   need_version=no
7669   need_lib_prefix=no
7670
7671   case $GCC,$host_os in
7672   yes,cygwin* | yes,mingw* | yes,pw32*)
7673     library_names_spec='$libname.dll.a'
7674     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7675     postinstall_cmds='base_file=`basename \${file}`~
7676       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7677       dldir=$destdir/`dirname \$dlpath`~
7678       test -d \$dldir || mkdir -p \$dldir~
7679       $install_prog $dir/$dlname \$dldir/$dlname'
7680     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7681       dlpath=$dir/\$dldll~
7682        $rm \$dlpath'
7683     shlibpath_overrides_runpath=yes
7684
7685     case $host_os in
7686     cygwin*)
7687       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7688       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7689       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7690       ;;
7691     mingw*)
7692       # MinGW DLLs use traditional 'lib' prefix
7693       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7694       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7695       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7696         # It is most probably a Windows format PATH printed by
7697         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7698         # path with ; separators, and with drive letters. We can handle the
7699         # drive letters (cygwin fileutils understands them), so leave them,
7700         # especially as we might pass files found there to a mingw objdump,
7701         # which wouldn't understand a cygwinified path. Ahh.
7702         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7703       else
7704         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7705       fi
7706       ;;
7707     pw32*)
7708       # pw32 DLLs use 'pw' prefix rather than 'lib'
7709       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7710       ;;
7711     esac
7712     ;;
7713
7714   *)
7715     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7716     ;;
7717   esac
7718   dynamic_linker='Win32 ld.exe'
7719   # FIXME: first we should search . and the directory the executable is in
7720   shlibpath_var=PATH
7721   ;;
7722
7723 darwin* | rhapsody*)
7724   dynamic_linker="$host_os dyld"
7725   version_type=darwin
7726   need_lib_prefix=no
7727   need_version=no
7728   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7729   soname_spec='${libname}${release}${major}$shared_ext'
7730   shlibpath_overrides_runpath=yes
7731   shlibpath_var=DYLD_LIBRARY_PATH
7732   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7733   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7734   if test "$GCC" = yes; then
7735     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"`
7736   else
7737     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7738   fi
7739   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7740   ;;
7741
7742 dgux*)
7743   version_type=linux
7744   need_lib_prefix=no
7745   need_version=no
7746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7747   soname_spec='${libname}${release}${shared_ext}$major'
7748   shlibpath_var=LD_LIBRARY_PATH
7749   ;;
7750
7751 freebsd1*)
7752   dynamic_linker=no
7753   ;;
7754
7755 kfreebsd*-gnu)
7756   version_type=linux
7757   need_lib_prefix=no
7758   need_version=no
7759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7760   soname_spec='${libname}${release}${shared_ext}$major'
7761   shlibpath_var=LD_LIBRARY_PATH
7762   shlibpath_overrides_runpath=no
7763   hardcode_into_libs=yes
7764   dynamic_linker='GNU ld.so'
7765   ;;
7766
7767 freebsd*)
7768   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7769   version_type=freebsd-$objformat
7770   case $version_type in
7771     freebsd-elf*)
7772       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7773       need_version=no
7774       need_lib_prefix=no
7775       ;;
7776     freebsd-*)
7777       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7778       need_version=yes
7779       ;;
7780   esac
7781   shlibpath_var=LD_LIBRARY_PATH
7782   case $host_os in
7783   freebsd2*)
7784     shlibpath_overrides_runpath=yes
7785     ;;
7786   freebsd3.01* | freebsdelf3.01*)
7787     shlibpath_overrides_runpath=yes
7788     hardcode_into_libs=yes
7789     ;;
7790   *) # from 3.2 on
7791     shlibpath_overrides_runpath=no
7792     hardcode_into_libs=yes
7793     ;;
7794   esac
7795   ;;
7796
7797 gnu*)
7798   version_type=linux
7799   need_lib_prefix=no
7800   need_version=no
7801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7802   soname_spec='${libname}${release}${shared_ext}$major'
7803   shlibpath_var=LD_LIBRARY_PATH
7804   hardcode_into_libs=yes
7805   ;;
7806
7807 hpux9* | hpux10* | hpux11*)
7808   # Give a soname corresponding to the major version so that dld.sl refuses to
7809   # link against other versions.
7810   version_type=sunos
7811   need_lib_prefix=no
7812   need_version=no
7813   case "$host_cpu" in
7814   ia64*)
7815     shrext_cmds='.so'
7816     hardcode_into_libs=yes
7817     dynamic_linker="$host_os dld.so"
7818     shlibpath_var=LD_LIBRARY_PATH
7819     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7821     soname_spec='${libname}${release}${shared_ext}$major'
7822     if test "X$HPUX_IA64_MODE" = X32; then
7823       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7824     else
7825       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7826     fi
7827     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7828     ;;
7829    hppa*64*)
7830      shrext_cmds='.sl'
7831      hardcode_into_libs=yes
7832      dynamic_linker="$host_os dld.sl"
7833      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7834      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7835      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7836      soname_spec='${libname}${release}${shared_ext}$major'
7837      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7838      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7839      ;;
7840    *)
7841     shrext_cmds='.sl'
7842     dynamic_linker="$host_os dld.sl"
7843     shlibpath_var=SHLIB_PATH
7844     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7846     soname_spec='${libname}${release}${shared_ext}$major'
7847     ;;
7848   esac
7849   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7850   postinstall_cmds='chmod 555 $lib'
7851   ;;
7852
7853 irix5* | irix6* | nonstopux*)
7854   case $host_os in
7855     nonstopux*) version_type=nonstopux ;;
7856     *)
7857         if test "$lt_cv_prog_gnu_ld" = yes; then
7858                 version_type=linux
7859         else
7860                 version_type=irix
7861         fi ;;
7862   esac
7863   need_lib_prefix=no
7864   need_version=no
7865   soname_spec='${libname}${release}${shared_ext}$major'
7866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7867   case $host_os in
7868   irix5* | nonstopux*)
7869     libsuff= shlibsuff=
7870     ;;
7871   *)
7872     case $LD in # libtool.m4 will add one of these switches to LD
7873     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7874       libsuff= shlibsuff= libmagic=32-bit;;
7875     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7876       libsuff=32 shlibsuff=N32 libmagic=N32;;
7877     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7878       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7879     *) libsuff= shlibsuff= libmagic=never-match;;
7880     esac
7881     ;;
7882   esac
7883   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7884   shlibpath_overrides_runpath=no
7885   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7886   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7887   hardcode_into_libs=yes
7888   ;;
7889
7890 # No shared lib support for Linux oldld, aout, or coff.
7891 linux*oldld* | linux*aout* | linux*coff*)
7892   dynamic_linker=no
7893   ;;
7894
7895 # This must be Linux ELF.
7896 linux*)
7897   version_type=linux
7898   need_lib_prefix=no
7899   need_version=no
7900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7901   soname_spec='${libname}${release}${shared_ext}$major'
7902   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7903   shlibpath_var=LD_LIBRARY_PATH
7904   shlibpath_overrides_runpath=no
7905   # This implies no fast_install, which is unacceptable.
7906   # Some rework will be needed to allow for fast_install
7907   # before this can be enabled.
7908   hardcode_into_libs=yes
7909
7910   # Append ld.so.conf contents to the search path
7911   if test -f /etc/ld.so.conf; then
7912     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7913     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7914   fi
7915
7916   # We used to test for /lib/ld.so.1 and disable shared libraries on
7917   # powerpc, because MkLinux only supported shared libraries with the
7918   # GNU dynamic linker.  Since this was broken with cross compilers,
7919   # most powerpc-linux boxes support dynamic linking these days and
7920   # people can always --disable-shared, the test was removed, and we
7921   # assume the GNU/Linux dynamic linker is in use.
7922   dynamic_linker='GNU/Linux ld.so'
7923   ;;
7924
7925 knetbsd*-gnu)
7926   version_type=linux
7927   need_lib_prefix=no
7928   need_version=no
7929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7930   soname_spec='${libname}${release}${shared_ext}$major'
7931   shlibpath_var=LD_LIBRARY_PATH
7932   shlibpath_overrides_runpath=no
7933   hardcode_into_libs=yes
7934   dynamic_linker='GNU ld.so'
7935   ;;
7936
7937 netbsd*)
7938   version_type=sunos
7939   need_lib_prefix=no
7940   need_version=no
7941   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7943     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7944     dynamic_linker='NetBSD (a.out) ld.so'
7945   else
7946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7947     soname_spec='${libname}${release}${shared_ext}$major'
7948     dynamic_linker='NetBSD ld.elf_so'
7949   fi
7950   shlibpath_var=LD_LIBRARY_PATH
7951   shlibpath_overrides_runpath=yes
7952   hardcode_into_libs=yes
7953   ;;
7954
7955 newsos6)
7956   version_type=linux
7957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958   shlibpath_var=LD_LIBRARY_PATH
7959   shlibpath_overrides_runpath=yes
7960   ;;
7961
7962 nto-qnx*)
7963   version_type=linux
7964   need_lib_prefix=no
7965   need_version=no
7966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967   soname_spec='${libname}${release}${shared_ext}$major'
7968   shlibpath_var=LD_LIBRARY_PATH
7969   shlibpath_overrides_runpath=yes
7970   ;;
7971
7972 openbsd*)
7973   version_type=sunos
7974   need_lib_prefix=no
7975   need_version=yes
7976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7978   shlibpath_var=LD_LIBRARY_PATH
7979   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7980     case $host_os in
7981       openbsd2.[89] | openbsd2.[89].*)
7982         shlibpath_overrides_runpath=no
7983         ;;
7984       *)
7985         shlibpath_overrides_runpath=yes
7986         ;;
7987       esac
7988   else
7989     shlibpath_overrides_runpath=yes
7990   fi
7991   ;;
7992
7993 os2*)
7994   libname_spec='$name'
7995   shrext_cmds=".dll"
7996   need_lib_prefix=no
7997   library_names_spec='$libname${shared_ext} $libname.a'
7998   dynamic_linker='OS/2 ld.exe'
7999   shlibpath_var=LIBPATH
8000   ;;
8001
8002 osf3* | osf4* | osf5*)
8003   version_type=osf
8004   need_lib_prefix=no
8005   need_version=no
8006   soname_spec='${libname}${release}${shared_ext}$major'
8007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8008   shlibpath_var=LD_LIBRARY_PATH
8009   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8010   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8011   ;;
8012
8013 sco3.2v5*)
8014   version_type=osf
8015   soname_spec='${libname}${release}${shared_ext}$major'
8016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8017   shlibpath_var=LD_LIBRARY_PATH
8018   ;;
8019
8020 solaris*)
8021   version_type=linux
8022   need_lib_prefix=no
8023   need_version=no
8024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8025   soname_spec='${libname}${release}${shared_ext}$major'
8026   shlibpath_var=LD_LIBRARY_PATH
8027   shlibpath_overrides_runpath=yes
8028   hardcode_into_libs=yes
8029   # ldd complains unless libraries are executable
8030   postinstall_cmds='chmod +x $lib'
8031   ;;
8032
8033 sunos4*)
8034   version_type=sunos
8035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8036   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8037   shlibpath_var=LD_LIBRARY_PATH
8038   shlibpath_overrides_runpath=yes
8039   if test "$with_gnu_ld" = yes; then
8040     need_lib_prefix=no
8041   fi
8042   need_version=yes
8043   ;;
8044
8045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8046   version_type=linux
8047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048   soname_spec='${libname}${release}${shared_ext}$major'
8049   shlibpath_var=LD_LIBRARY_PATH
8050   case $host_vendor in
8051     sni)
8052       shlibpath_overrides_runpath=no
8053       need_lib_prefix=no
8054       export_dynamic_flag_spec='${wl}-Blargedynsym'
8055       runpath_var=LD_RUN_PATH
8056       ;;
8057     siemens)
8058       need_lib_prefix=no
8059       ;;
8060     motorola)
8061       need_lib_prefix=no
8062       need_version=no
8063       shlibpath_overrides_runpath=no
8064       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8065       ;;
8066   esac
8067   ;;
8068
8069 sysv4*MP*)
8070   if test -d /usr/nec ;then
8071     version_type=linux
8072     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8073     soname_spec='$libname${shared_ext}.$major'
8074     shlibpath_var=LD_LIBRARY_PATH
8075   fi
8076   ;;
8077
8078 uts4*)
8079   version_type=linux
8080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8081   soname_spec='${libname}${release}${shared_ext}$major'
8082   shlibpath_var=LD_LIBRARY_PATH
8083   ;;
8084
8085 *)
8086   dynamic_linker=no
8087   ;;
8088 esac
8089 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8090 echo "${ECHO_T}$dynamic_linker" >&6
8091 test "$dynamic_linker" = no && can_build_shared=no
8092
8093 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8094 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8095 hardcode_action=
8096 if test -n "$hardcode_libdir_flag_spec" || \
8097    test -n "$runpath_var " || \
8098    test "X$hardcode_automatic"="Xyes" ; then
8099
8100   # We can hardcode non-existant directories.
8101   if test "$hardcode_direct" != no &&
8102      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8103      # have to relink, otherwise we might link with an installed library
8104      # when we should be linking with a yet-to-be-installed one
8105      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8106      test "$hardcode_minus_L" != no; then
8107     # Linking always hardcodes the temporary library directory.
8108     hardcode_action=relink
8109   else
8110     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8111     hardcode_action=immediate
8112   fi
8113 else
8114   # We cannot hardcode anything, or else we can only hardcode existing
8115   # directories.
8116   hardcode_action=unsupported
8117 fi
8118 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8119 echo "${ECHO_T}$hardcode_action" >&6
8120
8121 if test "$hardcode_action" = relink; then
8122   # Fast installation is not supported
8123   enable_fast_install=no
8124 elif test "$shlibpath_overrides_runpath" = yes ||
8125      test "$enable_shared" = no; then
8126   # Fast installation is not necessary
8127   enable_fast_install=needless
8128 fi
8129
8130 striplib=
8131 old_striplib=
8132 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8133 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8134 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8135   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8136   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8137   echo "$as_me:$LINENO: result: yes" >&5
8138 echo "${ECHO_T}yes" >&6
8139 else
8140 # FIXME - insert some real tests, host_os isn't really good enough
8141   case $host_os in
8142    darwin*)
8143        if test -n "$STRIP" ; then
8144          striplib="$STRIP -x"
8145          echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8147        else
8148   echo "$as_me:$LINENO: result: no" >&5
8149 echo "${ECHO_T}no" >&6
8150 fi
8151        ;;
8152    *)
8153   echo "$as_me:$LINENO: result: no" >&5
8154 echo "${ECHO_T}no" >&6
8155     ;;
8156   esac
8157 fi
8158
8159 if test "x$enable_dlopen" != xyes; then
8160   enable_dlopen=unknown
8161   enable_dlopen_self=unknown
8162   enable_dlopen_self_static=unknown
8163 else
8164   lt_cv_dlopen=no
8165   lt_cv_dlopen_libs=
8166
8167   case $host_os in
8168   beos*)
8169     lt_cv_dlopen="load_add_on"
8170     lt_cv_dlopen_libs=
8171     lt_cv_dlopen_self=yes
8172     ;;
8173
8174   mingw* | pw32*)
8175     lt_cv_dlopen="LoadLibrary"
8176     lt_cv_dlopen_libs=
8177    ;;
8178
8179   cygwin*)
8180     lt_cv_dlopen="dlopen"
8181     lt_cv_dlopen_libs=
8182    ;;
8183
8184   darwin*)
8185   # if libdl is installed we need to link against it
8186     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8187 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8189   echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191   ac_check_lib_save_LIBS=$LIBS
8192 LIBS="-ldl  $LIBS"
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h.  */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h.  */
8199
8200 /* Override any gcc2 internal prototype to avoid an error.  */
8201 #ifdef __cplusplus
8202 extern "C"
8203 #endif
8204 /* We use char because int might match the return type of a gcc2
8205    builtin and then its argument prototype would still apply.  */
8206 char dlopen ();
8207 int
8208 main ()
8209 {
8210 dlopen ();
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217   (eval $ac_link) 2>conftest.er1
8218   ac_status=$?
8219   grep -v '^ *+' conftest.er1 >conftest.err
8220   rm -f conftest.er1
8221   cat conftest.err >&5
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } &&
8224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226   (eval $ac_try) 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; } &&
8230          { ac_try='test -s conftest$ac_exeext'
8231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232   (eval $ac_try) 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; }; then
8236   ac_cv_lib_dl_dlopen=yes
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241 ac_cv_lib_dl_dlopen=no
8242 fi
8243 rm -f conftest.err conftest.$ac_objext \
8244       conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8246 fi
8247 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8248 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8249 if test $ac_cv_lib_dl_dlopen = yes; then
8250   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8251 else
8252
8253     lt_cv_dlopen="dyld"
8254     lt_cv_dlopen_libs=
8255     lt_cv_dlopen_self=yes
8256
8257 fi
8258
8259    ;;
8260
8261   *)
8262     echo "$as_me:$LINENO: checking for shl_load" >&5
8263 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8264 if test "${ac_cv_func_shl_load+set}" = set; then
8265   echo $ECHO_N "(cached) $ECHO_C" >&6
8266 else
8267   cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8275 #define shl_load innocuous_shl_load
8276
8277 /* System header to define __stub macros and hopefully few prototypes,
8278     which can conflict with char shl_load (); below.
8279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8280     <limits.h> exists even on freestanding compilers.  */
8281
8282 #ifdef __STDC__
8283 # include <limits.h>
8284 #else
8285 # include <assert.h>
8286 #endif
8287
8288 #undef shl_load
8289
8290 /* Override any gcc2 internal prototype to avoid an error.  */
8291 #ifdef __cplusplus
8292 extern "C"
8293 {
8294 #endif
8295 /* We use char because int might match the return type of a gcc2
8296    builtin and then its argument prototype would still apply.  */
8297 char shl_load ();
8298 /* The GNU C library defines this for functions which it implements
8299     to always fail with ENOSYS.  Some functions are actually named
8300     something starting with __ and the normal name is an alias.  */
8301 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8302 choke me
8303 #else
8304 char (*f) () = shl_load;
8305 #endif
8306 #ifdef __cplusplus
8307 }
8308 #endif
8309
8310 int
8311 main ()
8312 {
8313 return f != shl_load;
8314   ;
8315   return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320   (eval $ac_link) 2>conftest.er1
8321   ac_status=$?
8322   grep -v '^ *+' conftest.er1 >conftest.err
8323   rm -f conftest.er1
8324   cat conftest.err >&5
8325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326   (exit $ac_status); } &&
8327          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329   (eval $ac_try) 2>&5
8330   ac_status=$?
8331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332   (exit $ac_status); }; } &&
8333          { ac_try='test -s conftest$ac_exeext'
8334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335   (eval $ac_try) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); }; }; then
8339   ac_cv_func_shl_load=yes
8340 else
8341   echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8343
8344 ac_cv_func_shl_load=no
8345 fi
8346 rm -f conftest.err conftest.$ac_objext \
8347       conftest$ac_exeext conftest.$ac_ext
8348 fi
8349 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8350 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8351 if test $ac_cv_func_shl_load = yes; then
8352   lt_cv_dlopen="shl_load"
8353 else
8354   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8355 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8356 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   ac_check_lib_save_LIBS=$LIBS
8360 LIBS="-ldld  $LIBS"
8361 cat >conftest.$ac_ext <<_ACEOF
8362 /* confdefs.h.  */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h.  */
8367
8368 /* Override any gcc2 internal prototype to avoid an error.  */
8369 #ifdef __cplusplus
8370 extern "C"
8371 #endif
8372 /* We use char because int might match the return type of a gcc2
8373    builtin and then its argument prototype would still apply.  */
8374 char shl_load ();
8375 int
8376 main ()
8377 {
8378 shl_load ();
8379   ;
8380   return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385   (eval $ac_link) 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } &&
8392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394   (eval $ac_try) 2>&5
8395   ac_status=$?
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); }; } &&
8398          { ac_try='test -s conftest$ac_exeext'
8399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400   (eval $ac_try) 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; }; then
8404   ac_cv_lib_dld_shl_load=yes
8405 else
8406   echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8408
8409 ac_cv_lib_dld_shl_load=no
8410 fi
8411 rm -f conftest.err conftest.$ac_objext \
8412       conftest$ac_exeext conftest.$ac_ext
8413 LIBS=$ac_check_lib_save_LIBS
8414 fi
8415 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8416 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8417 if test $ac_cv_lib_dld_shl_load = yes; then
8418   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8419 else
8420   echo "$as_me:$LINENO: checking for dlopen" >&5
8421 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8422 if test "${ac_cv_func_dlopen+set}" = set; then
8423   echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425   cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h.  */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h.  */
8431 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8433 #define dlopen innocuous_dlopen
8434
8435 /* System header to define __stub macros and hopefully few prototypes,
8436     which can conflict with char dlopen (); below.
8437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8438     <limits.h> exists even on freestanding compilers.  */
8439
8440 #ifdef __STDC__
8441 # include <limits.h>
8442 #else
8443 # include <assert.h>
8444 #endif
8445
8446 #undef dlopen
8447
8448 /* Override any gcc2 internal prototype to avoid an error.  */
8449 #ifdef __cplusplus
8450 extern "C"
8451 {
8452 #endif
8453 /* We use char because int might match the return type of a gcc2
8454    builtin and then its argument prototype would still apply.  */
8455 char dlopen ();
8456 /* The GNU C library defines this for functions which it implements
8457     to always fail with ENOSYS.  Some functions are actually named
8458     something starting with __ and the normal name is an alias.  */
8459 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8460 choke me
8461 #else
8462 char (*f) () = dlopen;
8463 #endif
8464 #ifdef __cplusplus
8465 }
8466 #endif
8467
8468 int
8469 main ()
8470 {
8471 return f != dlopen;
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8478   (eval $ac_link) 2>conftest.er1
8479   ac_status=$?
8480   grep -v '^ *+' conftest.er1 >conftest.err
8481   rm -f conftest.er1
8482   cat conftest.err >&5
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } &&
8485          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487   (eval $ac_try) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); }; } &&
8491          { ac_try='test -s conftest$ac_exeext'
8492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493   (eval $ac_try) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); }; }; then
8497   ac_cv_func_dlopen=yes
8498 else
8499   echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 ac_cv_func_dlopen=no
8503 fi
8504 rm -f conftest.err conftest.$ac_objext \
8505       conftest$ac_exeext conftest.$ac_ext
8506 fi
8507 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8508 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8509 if test $ac_cv_func_dlopen = yes; then
8510   lt_cv_dlopen="dlopen"
8511 else
8512   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8513 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517   ac_check_lib_save_LIBS=$LIBS
8518 LIBS="-ldl  $LIBS"
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h.  */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h.  */
8525
8526 /* Override any gcc2 internal prototype to avoid an error.  */
8527 #ifdef __cplusplus
8528 extern "C"
8529 #endif
8530 /* We use char because int might match the return type of a gcc2
8531    builtin and then its argument prototype would still apply.  */
8532 char dlopen ();
8533 int
8534 main ()
8535 {
8536 dlopen ();
8537   ;
8538   return 0;
8539 }
8540 _ACEOF
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543   (eval $ac_link) 2>conftest.er1
8544   ac_status=$?
8545   grep -v '^ *+' conftest.er1 >conftest.err
8546   rm -f conftest.er1
8547   cat conftest.err >&5
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); } &&
8550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552   (eval $ac_try) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; } &&
8556          { ac_try='test -s conftest$ac_exeext'
8557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558   (eval $ac_try) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); }; }; then
8562   ac_cv_lib_dl_dlopen=yes
8563 else
8564   echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 ac_cv_lib_dl_dlopen=no
8568 fi
8569 rm -f conftest.err conftest.$ac_objext \
8570       conftest$ac_exeext conftest.$ac_ext
8571 LIBS=$ac_check_lib_save_LIBS
8572 fi
8573 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8574 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8575 if test $ac_cv_lib_dl_dlopen = yes; then
8576   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8577 else
8578   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8579 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8580 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   ac_check_lib_save_LIBS=$LIBS
8584 LIBS="-lsvld  $LIBS"
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591
8592 /* Override any gcc2 internal prototype to avoid an error.  */
8593 #ifdef __cplusplus
8594 extern "C"
8595 #endif
8596 /* We use char because int might match the return type of a gcc2
8597    builtin and then its argument prototype would still apply.  */
8598 char dlopen ();
8599 int
8600 main ()
8601 {
8602 dlopen ();
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609   (eval $ac_link) 2>conftest.er1
8610   ac_status=$?
8611   grep -v '^ *+' conftest.er1 >conftest.err
8612   rm -f conftest.er1
8613   cat conftest.err >&5
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); } &&
8616          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618   (eval $ac_try) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; } &&
8622          { ac_try='test -s conftest$ac_exeext'
8623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624   (eval $ac_try) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; }; then
8628   ac_cv_lib_svld_dlopen=yes
8629 else
8630   echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633 ac_cv_lib_svld_dlopen=no
8634 fi
8635 rm -f conftest.err conftest.$ac_objext \
8636       conftest$ac_exeext conftest.$ac_ext
8637 LIBS=$ac_check_lib_save_LIBS
8638 fi
8639 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8640 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8641 if test $ac_cv_lib_svld_dlopen = yes; then
8642   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8643 else
8644   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8645 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8646 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8647   echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649   ac_check_lib_save_LIBS=$LIBS
8650 LIBS="-ldld  $LIBS"
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h.  */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h.  */
8657
8658 /* Override any gcc2 internal prototype to avoid an error.  */
8659 #ifdef __cplusplus
8660 extern "C"
8661 #endif
8662 /* We use char because int might match the return type of a gcc2
8663    builtin and then its argument prototype would still apply.  */
8664 char dld_link ();
8665 int
8666 main ()
8667 {
8668 dld_link ();
8669   ;
8670   return 0;
8671 }
8672 _ACEOF
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675   (eval $ac_link) 2>conftest.er1
8676   ac_status=$?
8677   grep -v '^ *+' conftest.er1 >conftest.err
8678   rm -f conftest.er1
8679   cat conftest.err >&5
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); } &&
8682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684   (eval $ac_try) 2>&5
8685   ac_status=$?
8686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687   (exit $ac_status); }; } &&
8688          { ac_try='test -s conftest$ac_exeext'
8689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690   (eval $ac_try) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; }; then
8694   ac_cv_lib_dld_dld_link=yes
8695 else
8696   echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699 ac_cv_lib_dld_dld_link=no
8700 fi
8701 rm -f conftest.err conftest.$ac_objext \
8702       conftest$ac_exeext conftest.$ac_ext
8703 LIBS=$ac_check_lib_save_LIBS
8704 fi
8705 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8706 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8707 if test $ac_cv_lib_dld_dld_link = yes; then
8708   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8709 fi
8710
8711
8712 fi
8713
8714
8715 fi
8716
8717
8718 fi
8719
8720
8721 fi
8722
8723
8724 fi
8725
8726     ;;
8727   esac
8728
8729   if test "x$lt_cv_dlopen" != xno; then
8730     enable_dlopen=yes
8731   else
8732     enable_dlopen=no
8733   fi
8734
8735   case $lt_cv_dlopen in
8736   dlopen)
8737     save_CPPFLAGS="$CPPFLAGS"
8738     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8739
8740     save_LDFLAGS="$LDFLAGS"
8741     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8742
8743     save_LIBS="$LIBS"
8744     LIBS="$lt_cv_dlopen_libs $LIBS"
8745
8746     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8747 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8748 if test "${lt_cv_dlopen_self+set}" = set; then
8749   echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751           if test "$cross_compiling" = yes; then :
8752   lt_cv_dlopen_self=cross
8753 else
8754   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8755   lt_status=$lt_dlunknown
8756   cat > conftest.$ac_ext <<EOF
8757 #line 8757 "configure"
8758 #include "confdefs.h"
8759
8760 #if HAVE_DLFCN_H
8761 #include <dlfcn.h>
8762 #endif
8763
8764 #include <stdio.h>
8765
8766 #ifdef RTLD_GLOBAL
8767 #  define LT_DLGLOBAL           RTLD_GLOBAL
8768 #else
8769 #  ifdef DL_GLOBAL
8770 #    define LT_DLGLOBAL         DL_GLOBAL
8771 #  else
8772 #    define LT_DLGLOBAL         0
8773 #  endif
8774 #endif
8775
8776 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8777    find out it does not work in some platform. */
8778 #ifndef LT_DLLAZY_OR_NOW
8779 #  ifdef RTLD_LAZY
8780 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8781 #  else
8782 #    ifdef DL_LAZY
8783 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8784 #    else
8785 #      ifdef RTLD_NOW
8786 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8787 #      else
8788 #        ifdef DL_NOW
8789 #          define LT_DLLAZY_OR_NOW      DL_NOW
8790 #        else
8791 #          define LT_DLLAZY_OR_NOW      0
8792 #        endif
8793 #      endif
8794 #    endif
8795 #  endif
8796 #endif
8797
8798 #ifdef __cplusplus
8799 extern "C" void exit (int);
8800 #endif
8801
8802 void fnord() { int i=42;}
8803 int main ()
8804 {
8805   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8806   int status = $lt_dlunknown;
8807
8808   if (self)
8809     {
8810       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8811       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8812       /* dlclose (self); */
8813     }
8814
8815     exit (status);
8816 }
8817 EOF
8818   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819   (eval $ac_link) 2>&5
8820   ac_status=$?
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8823     (./conftest; exit; ) 2>/dev/null
8824     lt_status=$?
8825     case x$lt_status in
8826       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8827       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8828       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8829     esac
8830   else :
8831     # compilation failed
8832     lt_cv_dlopen_self=no
8833   fi
8834 fi
8835 rm -fr conftest*
8836
8837
8838 fi
8839 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8840 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8841
8842     if test "x$lt_cv_dlopen_self" = xyes; then
8843       LDFLAGS="$LDFLAGS $link_static_flag"
8844       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8845 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8846 if test "${lt_cv_dlopen_self_static+set}" = set; then
8847   echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849           if test "$cross_compiling" = yes; then :
8850   lt_cv_dlopen_self_static=cross
8851 else
8852   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8853   lt_status=$lt_dlunknown
8854   cat > conftest.$ac_ext <<EOF
8855 #line 8855 "configure"
8856 #include "confdefs.h"
8857
8858 #if HAVE_DLFCN_H
8859 #include <dlfcn.h>
8860 #endif
8861
8862 #include <stdio.h>
8863
8864 #ifdef RTLD_GLOBAL
8865 #  define LT_DLGLOBAL           RTLD_GLOBAL
8866 #else
8867 #  ifdef DL_GLOBAL
8868 #    define LT_DLGLOBAL         DL_GLOBAL
8869 #  else
8870 #    define LT_DLGLOBAL         0
8871 #  endif
8872 #endif
8873
8874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8875    find out it does not work in some platform. */
8876 #ifndef LT_DLLAZY_OR_NOW
8877 #  ifdef RTLD_LAZY
8878 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8879 #  else
8880 #    ifdef DL_LAZY
8881 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8882 #    else
8883 #      ifdef RTLD_NOW
8884 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8885 #      else
8886 #        ifdef DL_NOW
8887 #          define LT_DLLAZY_OR_NOW      DL_NOW
8888 #        else
8889 #          define LT_DLLAZY_OR_NOW      0
8890 #        endif
8891 #      endif
8892 #    endif
8893 #  endif
8894 #endif
8895
8896 #ifdef __cplusplus
8897 extern "C" void exit (int);
8898 #endif
8899
8900 void fnord() { int i=42;}
8901 int main ()
8902 {
8903   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8904   int status = $lt_dlunknown;
8905
8906   if (self)
8907     {
8908       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8909       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8910       /* dlclose (self); */
8911     }
8912
8913     exit (status);
8914 }
8915 EOF
8916   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8917   (eval $ac_link) 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8921     (./conftest; exit; ) 2>/dev/null
8922     lt_status=$?
8923     case x$lt_status in
8924       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8925       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8926       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8927     esac
8928   else :
8929     # compilation failed
8930     lt_cv_dlopen_self_static=no
8931   fi
8932 fi
8933 rm -fr conftest*
8934
8935
8936 fi
8937 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8938 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8939     fi
8940
8941     CPPFLAGS="$save_CPPFLAGS"
8942     LDFLAGS="$save_LDFLAGS"
8943     LIBS="$save_LIBS"
8944     ;;
8945   esac
8946
8947   case $lt_cv_dlopen_self in
8948   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8949   *) enable_dlopen_self=unknown ;;
8950   esac
8951
8952   case $lt_cv_dlopen_self_static in
8953   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8954   *) enable_dlopen_self_static=unknown ;;
8955   esac
8956 fi
8957
8958
8959 # Report which librarie types wil actually be built
8960 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8961 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8962 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8963 echo "${ECHO_T}$can_build_shared" >&6
8964
8965 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8966 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8967 test "$can_build_shared" = "no" && enable_shared=no
8968
8969 # On AIX, shared libraries and static libraries use the same namespace, and
8970 # are all built from PIC.
8971 case "$host_os" in
8972 aix3*)
8973   test "$enable_shared" = yes && enable_static=no
8974   if test -n "$RANLIB"; then
8975     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8976     postinstall_cmds='$RANLIB $lib'
8977   fi
8978   ;;
8979
8980 aix4* | aix5*)
8981   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8982     test "$enable_shared" = yes && enable_static=no
8983   fi
8984   ;;
8985   darwin* | rhapsody*)
8986   if test "$GCC" = yes; then
8987     archive_cmds_need_lc=no
8988     case "$host_os" in
8989     rhapsody* | darwin1.[012])
8990       allow_undefined_flag='-undefined suppress'
8991       ;;
8992     *) # Darwin 1.3 on
8993       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8994         allow_undefined_flag='-flat_namespace -undefined suppress'
8995       else
8996         case ${MACOSX_DEPLOYMENT_TARGET} in
8997           10.[012])
8998             allow_undefined_flag='-flat_namespace -undefined suppress'
8999             ;;
9000           10.*)
9001             allow_undefined_flag='-undefined dynamic_lookup'
9002             ;;
9003         esac
9004       fi
9005       ;;
9006     esac
9007     output_verbose_link_cmd='echo'
9008     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9009     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9010     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9011     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}'
9012     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}'
9013     hardcode_direct=no
9014     hardcode_automatic=yes
9015     hardcode_shlibpath_var=unsupported
9016     whole_archive_flag_spec='-all_load $convenience'
9017     link_all_deplibs=yes
9018   else
9019     ld_shlibs=no
9020   fi
9021     ;;
9022 esac
9023 echo "$as_me:$LINENO: result: $enable_shared" >&5
9024 echo "${ECHO_T}$enable_shared" >&6
9025
9026 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9027 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9028 # Make sure either enable_shared or enable_static is yes.
9029 test "$enable_shared" = yes || enable_static=yes
9030 echo "$as_me:$LINENO: result: $enable_static" >&5
9031 echo "${ECHO_T}$enable_static" >&6
9032
9033 # The else clause should only fire when bootstrapping the
9034 # libtool distribution, otherwise you forgot to ship ltmain.sh
9035 # with your package, and you will get complaints that there are
9036 # no rules to generate ltmain.sh.
9037 if test -f "$ltmain"; then
9038   # See if we are running on zsh, and set the options which allow our commands through
9039   # without removal of \ escapes.
9040   if test -n "${ZSH_VERSION+set}" ; then
9041     setopt NO_GLOB_SUBST
9042   fi
9043   # Now quote all the things that may contain metacharacters while being
9044   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9045   # variables and quote the copies for generation of the libtool script.
9046   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9047     SED SHELL STRIP \
9048     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9049     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9050     deplibs_check_method reload_flag reload_cmds need_locks \
9051     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9052     lt_cv_sys_global_symbol_to_c_name_address \
9053     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9054     old_postinstall_cmds old_postuninstall_cmds \
9055     compiler \
9056     CC \
9057     LD \
9058     lt_prog_compiler_wl \
9059     lt_prog_compiler_pic \
9060     lt_prog_compiler_static \
9061     lt_prog_compiler_no_builtin_flag \
9062     export_dynamic_flag_spec \
9063     thread_safe_flag_spec \
9064     whole_archive_flag_spec \
9065     enable_shared_with_static_runtimes \
9066     old_archive_cmds \
9067     old_archive_from_new_cmds \
9068     predep_objects \
9069     postdep_objects \
9070     predeps \
9071     postdeps \
9072     compiler_lib_search_path \
9073     archive_cmds \
9074     archive_expsym_cmds \
9075     postinstall_cmds \
9076     postuninstall_cmds \
9077     old_archive_from_expsyms_cmds \
9078     allow_undefined_flag \
9079     no_undefined_flag \
9080     export_symbols_cmds \
9081     hardcode_libdir_flag_spec \
9082     hardcode_libdir_flag_spec_ld \
9083     hardcode_libdir_separator \
9084     hardcode_automatic \
9085     module_cmds \
9086     module_expsym_cmds \
9087     lt_cv_prog_compiler_c_o \
9088     exclude_expsyms \
9089     include_expsyms; do
9090
9091     case $var in
9092     old_archive_cmds | \
9093     old_archive_from_new_cmds | \
9094     archive_cmds | \
9095     archive_expsym_cmds | \
9096     module_cmds | \
9097     module_expsym_cmds | \
9098     old_archive_from_expsyms_cmds | \
9099     export_symbols_cmds | \
9100     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9101     postinstall_cmds | postuninstall_cmds | \
9102     old_postinstall_cmds | old_postuninstall_cmds | \
9103     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9104       # Double-quote double-evaled strings.
9105       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9106       ;;
9107     *)
9108       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9109       ;;
9110     esac
9111   done
9112
9113   case $lt_echo in
9114   *'\$0 --fallback-echo"')
9115     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9116     ;;
9117   esac
9118
9119 cfgfile="${ofile}T"
9120   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9121   $rm -f "$cfgfile"
9122   { echo "$as_me:$LINENO: creating $ofile" >&5
9123 echo "$as_me: creating $ofile" >&6;}
9124
9125   cat <<__EOF__ >> "$cfgfile"
9126 #! $SHELL
9127
9128 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9129 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9130 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9131 #
9132 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9133 # Free Software Foundation, Inc.
9134 #
9135 # This file is part of GNU Libtool:
9136 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9137 #
9138 # This program is free software; you can redistribute it and/or modify
9139 # it under the terms of the GNU General Public License as published by
9140 # the Free Software Foundation; either version 2 of the License, or
9141 # (at your option) any later version.
9142 #
9143 # This program is distributed in the hope that it will be useful, but
9144 # WITHOUT ANY WARRANTY; without even the implied warranty of
9145 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9146 # General Public License for more details.
9147 #
9148 # You should have received a copy of the GNU General Public License
9149 # along with this program; if not, write to the Free Software
9150 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9151 #
9152 # As a special exception to the GNU General Public License, if you
9153 # distribute this file as part of a program that contains a
9154 # configuration script generated by Autoconf, you may include it under
9155 # the same distribution terms that you use for the rest of that program.
9156
9157 # A sed program that does not truncate output.
9158 SED=$lt_SED
9159
9160 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9161 Xsed="$SED -e s/^X//"
9162
9163 # The HP-UX ksh and POSIX shell print the target directory to stdout
9164 # if CDPATH is set.
9165 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9166
9167 # The names of the tagged configurations supported by this script.
9168 available_tags=
9169
9170 # ### BEGIN LIBTOOL CONFIG
9171
9172 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9173
9174 # Shell to use when invoking shell scripts.
9175 SHELL=$lt_SHELL
9176
9177 # Whether or not to build shared libraries.
9178 build_libtool_libs=$enable_shared
9179
9180 # Whether or not to build static libraries.
9181 build_old_libs=$enable_static
9182
9183 # Whether or not to add -lc for building shared libraries.
9184 build_libtool_need_lc=$archive_cmds_need_lc
9185
9186 # Whether or not to disallow shared libs when runtime libs are static
9187 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9188
9189 # Whether or not to optimize for fast installation.
9190 fast_install=$enable_fast_install
9191
9192 # The host system.
9193 host_alias=$host_alias
9194 host=$host
9195
9196 # An echo program that does not interpret backslashes.
9197 echo=$lt_echo
9198
9199 # The archiver.
9200 AR=$lt_AR
9201 AR_FLAGS=$lt_AR_FLAGS
9202
9203 # A C compiler.
9204 LTCC=$lt_LTCC
9205
9206 # A language-specific compiler.
9207 CC=$lt_compiler
9208
9209 # Is the compiler the GNU C compiler?
9210 with_gcc=$GCC
9211
9212 # An ERE matcher.
9213 EGREP=$lt_EGREP
9214
9215 # The linker used to build libraries.
9216 LD=$lt_LD
9217
9218 # Whether we need hard or soft links.
9219 LN_S=$lt_LN_S
9220
9221 # A BSD-compatible nm program.
9222 NM=$lt_NM
9223
9224 # A symbol stripping program
9225 STRIP=$lt_STRIP
9226
9227 # Used to examine libraries when file_magic_cmd begins "file"
9228 MAGIC_CMD=$MAGIC_CMD
9229
9230 # Used on cygwin: DLL creation program.
9231 DLLTOOL="$DLLTOOL"
9232
9233 # Used on cygwin: object dumper.
9234 OBJDUMP="$OBJDUMP"
9235
9236 # Used on cygwin: assembler.
9237 AS="$AS"
9238
9239 # The name of the directory that contains temporary libtool files.
9240 objdir=$objdir
9241
9242 # How to create reloadable object files.
9243 reload_flag=$lt_reload_flag
9244 reload_cmds=$lt_reload_cmds
9245
9246 # How to pass a linker flag through the compiler.
9247 wl=$lt_lt_prog_compiler_wl
9248
9249 # Object file suffix (normally "o").
9250 objext="$ac_objext"
9251
9252 # Old archive suffix (normally "a").
9253 libext="$libext"
9254
9255 # Shared library suffix (normally ".so").
9256 shrext_cmds='$shrext_cmds'
9257
9258 # Executable file suffix (normally "").
9259 exeext="$exeext"
9260
9261 # Additional compiler flags for building library objects.
9262 pic_flag=$lt_lt_prog_compiler_pic
9263 pic_mode=$pic_mode
9264
9265 # What is the maximum length of a command?
9266 max_cmd_len=$lt_cv_sys_max_cmd_len
9267
9268 # Does compiler simultaneously support -c and -o options?
9269 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9270
9271 # Must we lock files when doing compilation ?
9272 need_locks=$lt_need_locks
9273
9274 # Do we need the lib prefix for modules?
9275 need_lib_prefix=$need_lib_prefix
9276
9277 # Do we need a version for libraries?
9278 need_version=$need_version
9279
9280 # Whether dlopen is supported.
9281 dlopen_support=$enable_dlopen
9282
9283 # Whether dlopen of programs is supported.
9284 dlopen_self=$enable_dlopen_self
9285
9286 # Whether dlopen of statically linked programs is supported.
9287 dlopen_self_static=$enable_dlopen_self_static
9288
9289 # Compiler flag to prevent dynamic linking.
9290 link_static_flag=$lt_lt_prog_compiler_static
9291
9292 # Compiler flag to turn off builtin functions.
9293 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9294
9295 # Compiler flag to allow reflexive dlopens.
9296 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9297
9298 # Compiler flag to generate shared objects directly from archives.
9299 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9300
9301 # Compiler flag to generate thread-safe objects.
9302 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9303
9304 # Library versioning type.
9305 version_type=$version_type
9306
9307 # Format of library name prefix.
9308 libname_spec=$lt_libname_spec
9309
9310 # List of archive names.  First name is the real one, the rest are links.
9311 # The last name is the one that the linker finds with -lNAME.
9312 library_names_spec=$lt_library_names_spec
9313
9314 # The coded name of the library, if different from the real name.
9315 soname_spec=$lt_soname_spec
9316
9317 # Commands used to build and install an old-style archive.
9318 RANLIB=$lt_RANLIB
9319 old_archive_cmds=$lt_old_archive_cmds
9320 old_postinstall_cmds=$lt_old_postinstall_cmds
9321 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9322
9323 # Create an old-style archive from a shared archive.
9324 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9325
9326 # Create a temporary old-style archive to link instead of a shared archive.
9327 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9328
9329 # Commands used to build and install a shared archive.
9330 archive_cmds=$lt_archive_cmds
9331 archive_expsym_cmds=$lt_archive_expsym_cmds
9332 postinstall_cmds=$lt_postinstall_cmds
9333 postuninstall_cmds=$lt_postuninstall_cmds
9334
9335 # Commands used to build a loadable module (assumed same as above if empty)
9336 module_cmds=$lt_module_cmds
9337 module_expsym_cmds=$lt_module_expsym_cmds
9338
9339 # Commands to strip libraries.
9340 old_striplib=$lt_old_striplib
9341 striplib=$lt_striplib
9342
9343 # Dependencies to place before the objects being linked to create a
9344 # shared library.
9345 predep_objects=$lt_predep_objects
9346
9347 # Dependencies to place after the objects being linked to create a
9348 # shared library.
9349 postdep_objects=$lt_postdep_objects
9350
9351 # Dependencies to place before the objects being linked to create a
9352 # shared library.
9353 predeps=$lt_predeps
9354
9355 # Dependencies to place after the objects being linked to create a
9356 # shared library.
9357 postdeps=$lt_postdeps
9358
9359 # The library search path used internally by the compiler when linking
9360 # a shared library.
9361 compiler_lib_search_path=$lt_compiler_lib_search_path
9362
9363 # Method to check whether dependent libraries are shared objects.
9364 deplibs_check_method=$lt_deplibs_check_method
9365
9366 # Command to use when deplibs_check_method == file_magic.
9367 file_magic_cmd=$lt_file_magic_cmd
9368
9369 # Flag that allows shared libraries with undefined symbols to be built.
9370 allow_undefined_flag=$lt_allow_undefined_flag
9371
9372 # Flag that forces no undefined symbols.
9373 no_undefined_flag=$lt_no_undefined_flag
9374
9375 # Commands used to finish a libtool library installation in a directory.
9376 finish_cmds=$lt_finish_cmds
9377
9378 # Same as above, but a single script fragment to be evaled but not shown.
9379 finish_eval=$lt_finish_eval
9380
9381 # Take the output of nm and produce a listing of raw symbols and C names.
9382 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9383
9384 # Transform the output of nm in a proper C declaration
9385 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9386
9387 # Transform the output of nm in a C name address pair
9388 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9389
9390 # This is the shared library runtime path variable.
9391 runpath_var=$runpath_var
9392
9393 # This is the shared library path variable.
9394 shlibpath_var=$shlibpath_var
9395
9396 # Is shlibpath searched before the hard-coded library search path?
9397 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9398
9399 # How to hardcode a shared library path into an executable.
9400 hardcode_action=$hardcode_action
9401
9402 # Whether we should hardcode library paths into libraries.
9403 hardcode_into_libs=$hardcode_into_libs
9404
9405 # Flag to hardcode \$libdir into a binary during linking.
9406 # This must work even if \$libdir does not exist.
9407 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9408
9409 # If ld is used when linking, flag to hardcode \$libdir into
9410 # a binary during linking. This must work even if \$libdir does
9411 # not exist.
9412 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9413
9414 # Whether we need a single -rpath flag with a separated argument.
9415 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9416
9417 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9418 # resulting binary.
9419 hardcode_direct=$hardcode_direct
9420
9421 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9422 # resulting binary.
9423 hardcode_minus_L=$hardcode_minus_L
9424
9425 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9426 # the resulting binary.
9427 hardcode_shlibpath_var=$hardcode_shlibpath_var
9428
9429 # Set to yes if building a shared library automatically hardcodes DIR into the library
9430 # and all subsequent libraries and executables linked against it.
9431 hardcode_automatic=$hardcode_automatic
9432
9433 # Variables whose values should be saved in libtool wrapper scripts and
9434 # restored at relink time.
9435 variables_saved_for_relink="$variables_saved_for_relink"
9436
9437 # Whether libtool must link a program against all its dependency libraries.
9438 link_all_deplibs=$link_all_deplibs
9439
9440 # Compile-time system search path for libraries
9441 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9442
9443 # Run-time system search path for libraries
9444 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9445
9446 # Fix the shell variable \$srcfile for the compiler.
9447 fix_srcfile_path="$fix_srcfile_path"
9448
9449 # Set to yes if exported symbols are required.
9450 always_export_symbols=$always_export_symbols
9451
9452 # The commands to list exported symbols.
9453 export_symbols_cmds=$lt_export_symbols_cmds
9454
9455 # The commands to extract the exported symbol list from a shared archive.
9456 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9457
9458 # Symbols that should not be listed in the preloaded symbols.
9459 exclude_expsyms=$lt_exclude_expsyms
9460
9461 # Symbols that must always be exported.
9462 include_expsyms=$lt_include_expsyms
9463
9464 # ### END LIBTOOL CONFIG
9465
9466 __EOF__
9467
9468
9469   case $host_os in
9470   aix3*)
9471     cat <<\EOF >> "$cfgfile"
9472
9473 # AIX sometimes has problems with the GCC collect2 program.  For some
9474 # reason, if we set the COLLECT_NAMES environment variable, the problems
9475 # vanish in a puff of smoke.
9476 if test "X${COLLECT_NAMES+set}" != Xset; then
9477   COLLECT_NAMES=
9478   export COLLECT_NAMES
9479 fi
9480 EOF
9481     ;;
9482   esac
9483
9484   # We use sed instead of cat because bash on DJGPP gets confused if
9485   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9486   # text mode, it properly converts lines to CR/LF.  This bash problem
9487   # is reportedly fixed, but why not run on old versions too?
9488   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9489
9490   mv -f "$cfgfile" "$ofile" || \
9491     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9492   chmod +x "$ofile"
9493
9494 else
9495   # If there is no Makefile yet, we rely on a make rule to execute
9496   # `config.status --recheck' to rerun these tests and create the
9497   # libtool script then.
9498   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9499   if test -f "$ltmain_in"; then
9500     test -f Makefile && make "$ltmain"
9501   fi
9502 fi
9503
9504
9505 ac_ext=c
9506 ac_cpp='$CPP $CPPFLAGS'
9507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9510
9511 CC="$lt_save_CC"
9512
9513
9514 # Check whether --with-tags or --without-tags was given.
9515 if test "${with_tags+set}" = set; then
9516   withval="$with_tags"
9517   tagnames="$withval"
9518 fi;
9519
9520 if test -f "$ltmain" && test -n "$tagnames"; then
9521   if test ! -f "${ofile}"; then
9522     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9523 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9524   fi
9525
9526   if test -z "$LTCC"; then
9527     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9528     if test -z "$LTCC"; then
9529       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9530 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9531     else
9532       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9533 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9534     fi
9535   fi
9536
9537   # Extract list of available tagged configurations in $ofile.
9538   # Note that this assumes the entire list is on one line.
9539   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9540
9541   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9542   for tagname in $tagnames; do
9543     IFS="$lt_save_ifs"
9544     # Check whether tagname contains only valid characters
9545     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9546     "") ;;
9547     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9548 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9549    { (exit 1); exit 1; }; }
9550         ;;
9551     esac
9552
9553     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9554     then
9555       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9556 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9557    { (exit 1); exit 1; }; }
9558     fi
9559
9560     # Update the list of available tags.
9561     if test -n "$tagname"; then
9562       echo appending configuration tag \"$tagname\" to $ofile
9563
9564       case $tagname in
9565       CXX)
9566         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9567           ac_ext=cc
9568 ac_cpp='$CXXCPP $CPPFLAGS'
9569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9572
9573
9574
9575
9576 archive_cmds_need_lc_CXX=no
9577 allow_undefined_flag_CXX=
9578 always_export_symbols_CXX=no
9579 archive_expsym_cmds_CXX=
9580 export_dynamic_flag_spec_CXX=
9581 hardcode_direct_CXX=no
9582 hardcode_libdir_flag_spec_CXX=
9583 hardcode_libdir_flag_spec_ld_CXX=
9584 hardcode_libdir_separator_CXX=
9585 hardcode_minus_L_CXX=no
9586 hardcode_automatic_CXX=no
9587 module_cmds_CXX=
9588 module_expsym_cmds_CXX=
9589 link_all_deplibs_CXX=unknown
9590 old_archive_cmds_CXX=$old_archive_cmds
9591 no_undefined_flag_CXX=
9592 whole_archive_flag_spec_CXX=
9593 enable_shared_with_static_runtimes_CXX=no
9594
9595 # Dependencies to place before and after the object being linked:
9596 predep_objects_CXX=
9597 postdep_objects_CXX=
9598 predeps_CXX=
9599 postdeps_CXX=
9600 compiler_lib_search_path_CXX=
9601
9602 # Source file extension for C++ test sources.
9603 ac_ext=cc
9604
9605 # Object file extension for compiled C++ test sources.
9606 objext=o
9607 objext_CXX=$objext
9608
9609 # Code to be used in simple compile tests
9610 lt_simple_compile_test_code="int some_variable = 0;\n"
9611
9612 # Code to be used in simple link tests
9613 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9614
9615 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9616
9617 # If no C compiler was specified, use CC.
9618 LTCC=${LTCC-"$CC"}
9619
9620 # Allow CC to be a program name with arguments.
9621 compiler=$CC
9622
9623
9624 # Allow CC to be a program name with arguments.
9625 lt_save_CC=$CC
9626 lt_save_LD=$LD
9627 lt_save_GCC=$GCC
9628 GCC=$GXX
9629 lt_save_with_gnu_ld=$with_gnu_ld
9630 lt_save_path_LD=$lt_cv_path_LD
9631 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9632   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9633 else
9634   unset lt_cv_prog_gnu_ld
9635 fi
9636 if test -n "${lt_cv_path_LDCXX+set}"; then
9637   lt_cv_path_LD=$lt_cv_path_LDCXX
9638 else
9639   unset lt_cv_path_LD
9640 fi
9641 test -z "${LDCXX+set}" || LD=$LDCXX
9642 CC=${CXX-"c++"}
9643 compiler=$CC
9644 compiler_CXX=$CC
9645 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9646
9647 # We don't want -fno-exception wen compiling C++ code, so set the
9648 # no_builtin_flag separately
9649 if test "$GXX" = yes; then
9650   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9651 else
9652   lt_prog_compiler_no_builtin_flag_CXX=
9653 fi
9654
9655 if test "$GXX" = yes; then
9656   # Set up default GNU C++ configuration
9657
9658
9659 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9660 if test "${with_gnu_ld+set}" = set; then
9661   withval="$with_gnu_ld"
9662   test "$withval" = no || with_gnu_ld=yes
9663 else
9664   with_gnu_ld=no
9665 fi;
9666 ac_prog=ld
9667 if test "$GCC" = yes; then
9668   # Check if gcc -print-prog-name=ld gives a path.
9669   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9670 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9671   case $host in
9672   *-*-mingw*)
9673     # gcc leaves a trailing carriage return which upsets mingw
9674     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9675   *)
9676     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9677   esac
9678   case $ac_prog in
9679     # Accept absolute paths.
9680     [\\/]* | ?:[\\/]*)
9681       re_direlt='/[^/][^/]*/\.\./'
9682       # Canonicalize the pathname of ld
9683       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9684       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9685         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9686       done
9687       test -z "$LD" && LD="$ac_prog"
9688       ;;
9689   "")
9690     # If it fails, then pretend we aren't using GCC.
9691     ac_prog=ld
9692     ;;
9693   *)
9694     # If it is relative, then search for the first ld in PATH.
9695     with_gnu_ld=unknown
9696     ;;
9697   esac
9698 elif test "$with_gnu_ld" = yes; then
9699   echo "$as_me:$LINENO: checking for GNU ld" >&5
9700 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9701 else
9702   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9703 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9704 fi
9705 if test "${lt_cv_path_LD+set}" = set; then
9706   echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708   if test -z "$LD"; then
9709   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9710   for ac_dir in $PATH; do
9711     IFS="$lt_save_ifs"
9712     test -z "$ac_dir" && ac_dir=.
9713     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9714       lt_cv_path_LD="$ac_dir/$ac_prog"
9715       # Check to see if the program is GNU ld.  I'd rather use --version,
9716       # but apparently some GNU ld's only accept -v.
9717       # Break only if it was the GNU/non-GNU ld that we prefer.
9718       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9719       *GNU* | *'with BFD'*)
9720         test "$with_gnu_ld" != no && break
9721         ;;
9722       *)
9723         test "$with_gnu_ld" != yes && break
9724         ;;
9725       esac
9726     fi
9727   done
9728   IFS="$lt_save_ifs"
9729 else
9730   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9731 fi
9732 fi
9733
9734 LD="$lt_cv_path_LD"
9735 if test -n "$LD"; then
9736   echo "$as_me:$LINENO: result: $LD" >&5
9737 echo "${ECHO_T}$LD" >&6
9738 else
9739   echo "$as_me:$LINENO: result: no" >&5
9740 echo "${ECHO_T}no" >&6
9741 fi
9742 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9743 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9744    { (exit 1); exit 1; }; }
9745 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9746 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9747 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9748   echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9751 case `$LD -v 2>&1 </dev/null` in
9752 *GNU* | *'with BFD'*)
9753   lt_cv_prog_gnu_ld=yes
9754   ;;
9755 *)
9756   lt_cv_prog_gnu_ld=no
9757   ;;
9758 esac
9759 fi
9760 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9761 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9762 with_gnu_ld=$lt_cv_prog_gnu_ld
9763
9764
9765
9766   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9767   # archiving commands below assume that GNU ld is being used.
9768   if test "$with_gnu_ld" = yes; then
9769     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9770     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'
9771
9772     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9773     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9774
9775     # If archive_cmds runs LD, not CC, wlarc should be empty
9776     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9777     #     investigate it a little bit more. (MM)
9778     wlarc='${wl}'
9779
9780     # ancient GNU ld didn't support --whole-archive et. al.
9781     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9782         grep 'no-whole-archive' > /dev/null; then
9783       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9784     else
9785       whole_archive_flag_spec_CXX=
9786     fi
9787   else
9788     with_gnu_ld=no
9789     wlarc=
9790
9791     # A generic and very simple default shared library creation
9792     # command for GNU C++ for the case where it uses the native
9793     # linker, instead of GNU ld.  If possible, this setting should
9794     # overridden to take advantage of the native linker features on
9795     # the platform it is being used on.
9796     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9797   fi
9798
9799   # Commands to make compiler produce verbose output that lists
9800   # what "hidden" libraries, object files and flags are used when
9801   # linking a shared library.
9802   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9803
9804 else
9805   GXX=no
9806   with_gnu_ld=no
9807   wlarc=
9808 fi
9809
9810 # PORTME: fill in a description of your system's C++ link characteristics
9811 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9812 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9813 ld_shlibs_CXX=yes
9814 case $host_os in
9815   aix3*)
9816     # FIXME: insert proper C++ library support
9817     ld_shlibs_CXX=no
9818     ;;
9819   aix4* | aix5*)
9820     if test "$host_cpu" = ia64; then
9821       # On IA64, the linker does run time linking by default, so we don't
9822       # have to do anything special.
9823       aix_use_runtimelinking=no
9824       exp_sym_flag='-Bexport'
9825       no_entry_flag=""
9826     else
9827       aix_use_runtimelinking=no
9828
9829       # Test if we are trying to use run time linking or normal
9830       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9831       # need to do runtime linking.
9832       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9833         for ld_flag in $LDFLAGS; do
9834           case $ld_flag in
9835           *-brtl*)
9836             aix_use_runtimelinking=yes
9837             break
9838             ;;
9839           esac
9840         done
9841       esac
9842
9843       exp_sym_flag='-bexport'
9844       no_entry_flag='-bnoentry'
9845     fi
9846
9847     # When large executables or shared objects are built, AIX ld can
9848     # have problems creating the table of contents.  If linking a library
9849     # or program results in "error TOC overflow" add -mminimal-toc to
9850     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9851     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9852
9853     archive_cmds_CXX=''
9854     hardcode_direct_CXX=yes
9855     hardcode_libdir_separator_CXX=':'
9856     link_all_deplibs_CXX=yes
9857
9858     if test "$GXX" = yes; then
9859       case $host_os in aix4.012|aix4.012.*)
9860       # We only want to do this on AIX 4.2 and lower, the check
9861       # below for broken collect2 doesn't work under 4.3+
9862         collect2name=`${CC} -print-prog-name=collect2`
9863         if test -f "$collect2name" && \
9864            strings "$collect2name" | grep resolve_lib_name >/dev/null
9865         then
9866           # We have reworked collect2
9867           hardcode_direct_CXX=yes
9868         else
9869           # We have old collect2
9870           hardcode_direct_CXX=unsupported
9871           # It fails to find uninstalled libraries when the uninstalled
9872           # path is not listed in the libpath.  Setting hardcode_minus_L
9873           # to unsupported forces relinking
9874           hardcode_minus_L_CXX=yes
9875           hardcode_libdir_flag_spec_CXX='-L$libdir'
9876           hardcode_libdir_separator_CXX=
9877         fi
9878       esac
9879       shared_flag='-shared'
9880     else
9881       # not using gcc
9882       if test "$host_cpu" = ia64; then
9883         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9884         # chokes on -Wl,-G. The following line is correct:
9885         shared_flag='-G'
9886       else
9887         if test "$aix_use_runtimelinking" = yes; then
9888           shared_flag='${wl}-G'
9889         else
9890           shared_flag='${wl}-bM:SRE'
9891         fi
9892       fi
9893     fi
9894
9895     # It seems that -bexpall does not export symbols beginning with
9896     # underscore (_), so it is better to generate a list of symbols to export.
9897     always_export_symbols_CXX=yes
9898     if test "$aix_use_runtimelinking" = yes; then
9899       # Warning - without using the other runtime loading flags (-brtl),
9900       # -berok will link without error, but may produce a broken library.
9901       allow_undefined_flag_CXX='-berok'
9902       # Determine the default libpath from the value encoded in an empty executable.
9903       cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909
9910 int
9911 main ()
9912 {
9913
9914   ;
9915   return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920   (eval $ac_link) 2>conftest.er1
9921   ac_status=$?
9922   grep -v '^ *+' conftest.er1 >conftest.err
9923   rm -f conftest.er1
9924   cat conftest.err >&5
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } &&
9927          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; } &&
9933          { ac_try='test -s conftest$ac_exeext'
9934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935   (eval $ac_try) 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); }; }; then
9939
9940 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9941 }'`
9942 # Check for a 64-bit object if we didn't find anything.
9943 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; }
9944 }'`; fi
9945 else
9946   echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 fi
9950 rm -f conftest.err conftest.$ac_objext \
9951       conftest$ac_exeext conftest.$ac_ext
9952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9953
9954       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9955
9956       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"
9957      else
9958       if test "$host_cpu" = ia64; then
9959         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9960         allow_undefined_flag_CXX="-z nodefs"
9961         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"
9962       else
9963         # Determine the default libpath from the value encoded in an empty executable.
9964         cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970
9971 int
9972 main ()
9973 {
9974
9975   ;
9976   return 0;
9977 }
9978 _ACEOF
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9981   (eval $ac_link) 2>conftest.er1
9982   ac_status=$?
9983   grep -v '^ *+' conftest.er1 >conftest.err
9984   rm -f conftest.er1
9985   cat conftest.err >&5
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); } &&
9988          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990   (eval $ac_try) 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; } &&
9994          { ac_try='test -s conftest$ac_exeext'
9995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996   (eval $ac_try) 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; }; then
10000
10001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10002 }'`
10003 # Check for a 64-bit object if we didn't find anything.
10004 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; }
10005 }'`; fi
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 fi
10011 rm -f conftest.err conftest.$ac_objext \
10012       conftest$ac_exeext conftest.$ac_ext
10013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10014
10015         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10016         # Warning - without using the other run time loading flags,
10017         # -berok will link without error, but may produce a broken library.
10018         no_undefined_flag_CXX=' ${wl}-bernotok'
10019         allow_undefined_flag_CXX=' ${wl}-berok'
10020         # -bexpall does not export symbols beginning with underscore (_)
10021         always_export_symbols_CXX=yes
10022         # Exported symbols can be pulled into shared objects from archives
10023         whole_archive_flag_spec_CXX=' '
10024         archive_cmds_need_lc_CXX=yes
10025         # This is similar to how AIX traditionally builds it's shared libraries.
10026         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'
10027       fi
10028     fi
10029     ;;
10030   chorus*)
10031     case $cc_basename in
10032       *)
10033         # FIXME: insert proper C++ library support
10034         ld_shlibs_CXX=no
10035         ;;
10036     esac
10037     ;;
10038
10039   cygwin* | mingw* | pw32*)
10040     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10041     # as there is no search path for DLLs.
10042     hardcode_libdir_flag_spec_CXX='-L$libdir'
10043     allow_undefined_flag_CXX=unsupported
10044     always_export_symbols_CXX=no
10045     enable_shared_with_static_runtimes_CXX=yes
10046
10047     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10048       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'
10049       # If the export-symbols file already is a .def file (1st line
10050       # is EXPORTS), use it as is; otherwise, prepend...
10051       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10052         cp $export_symbols $output_objdir/$soname.def;
10053       else
10054         echo EXPORTS > $output_objdir/$soname.def;
10055         cat $export_symbols >> $output_objdir/$soname.def;
10056       fi~
10057       $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'
10058     else
10059       ld_shlibs_CXX=no
10060     fi
10061   ;;
10062
10063   darwin* | rhapsody*)
10064   if test "$GXX" = yes; then
10065     archive_cmds_need_lc_CXX=no
10066     case "$host_os" in
10067     rhapsody* | darwin1.[012])
10068       allow_undefined_flag_CXX='-undefined suppress'
10069       ;;
10070     *) # Darwin 1.3 on
10071       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10072         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10073       else
10074         case ${MACOSX_DEPLOYMENT_TARGET} in
10075           10.[012])
10076             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10077             ;;
10078           10.*)
10079             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10080             ;;
10081         esac
10082       fi
10083       ;;
10084     esac
10085     lt_int_apple_cc_single_mod=no
10086     output_verbose_link_cmd='echo'
10087     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10088       lt_int_apple_cc_single_mod=yes
10089     fi
10090     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10091       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10092     else
10093       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'
10094     fi
10095     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10096
10097     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10098     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10099       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}'
10100     else
10101       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}'
10102     fi
10103     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}'
10104     hardcode_direct_CXX=no
10105     hardcode_automatic_CXX=yes
10106     hardcode_shlibpath_var_CXX=unsupported
10107     whole_archive_flag_spec_CXX='-all_load $convenience'
10108     link_all_deplibs_CXX=yes
10109   else
10110     ld_shlibs_CXX=no
10111   fi
10112     ;;
10113
10114   dgux*)
10115     case $cc_basename in
10116       ec++)
10117         # FIXME: insert proper C++ library support
10118         ld_shlibs_CXX=no
10119         ;;
10120       ghcx)
10121         # Green Hills C++ Compiler
10122         # FIXME: insert proper C++ library support
10123         ld_shlibs_CXX=no
10124         ;;
10125       *)
10126         # FIXME: insert proper C++ library support
10127         ld_shlibs_CXX=no
10128         ;;
10129     esac
10130     ;;
10131   freebsd12*)
10132     # C++ shared libraries reported to be fairly broken before switch to ELF
10133     ld_shlibs_CXX=no
10134     ;;
10135   freebsd-elf*)
10136     archive_cmds_need_lc_CXX=no
10137     ;;
10138   freebsd* | kfreebsd*-gnu)
10139     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10140     # conventions
10141     ld_shlibs_CXX=yes
10142     ;;
10143   gnu*)
10144     ;;
10145   hpux9*)
10146     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10147     hardcode_libdir_separator_CXX=:
10148     export_dynamic_flag_spec_CXX='${wl}-E'
10149     hardcode_direct_CXX=yes
10150     hardcode_minus_L_CXX=yes # Not in the search PATH,
10151                                 # but as the default
10152                                 # location of the library.
10153
10154     case $cc_basename in
10155     CC)
10156       # FIXME: insert proper C++ library support
10157       ld_shlibs_CXX=no
10158       ;;
10159     aCC)
10160       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'
10161       # Commands to make compiler produce verbose output that lists
10162       # what "hidden" libraries, object files and flags are used when
10163       # linking a shared library.
10164       #
10165       # There doesn't appear to be a way to prevent this compiler from
10166       # explicitly linking system object files so we need to strip them
10167       # from the output so that they don't get included in the library
10168       # dependencies.
10169       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'
10170       ;;
10171     *)
10172       if test "$GXX" = yes; then
10173         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'
10174       else
10175         # FIXME: insert proper C++ library support
10176         ld_shlibs_CXX=no
10177       fi
10178       ;;
10179     esac
10180     ;;
10181   hpux10*|hpux11*)
10182     if test $with_gnu_ld = no; then
10183       case "$host_cpu" in
10184       hppa*64*)
10185         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10186         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10187         hardcode_libdir_separator_CXX=:
10188         ;;
10189       ia64*)
10190         hardcode_libdir_flag_spec_CXX='-L$libdir'
10191         ;;
10192       *)
10193         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10194         hardcode_libdir_separator_CXX=:
10195         export_dynamic_flag_spec_CXX='${wl}-E'
10196         ;;
10197       esac
10198     fi
10199     case "$host_cpu" in
10200     hppa*64*)
10201       hardcode_direct_CXX=no
10202       hardcode_shlibpath_var_CXX=no
10203       ;;
10204     ia64*)
10205       hardcode_direct_CXX=no
10206       hardcode_shlibpath_var_CXX=no
10207       hardcode_minus_L_CXX=yes # Not in the search PATH,
10208                                               # but as the default
10209                                               # location of the library.
10210       ;;
10211     *)
10212       hardcode_direct_CXX=yes
10213       hardcode_minus_L_CXX=yes # Not in the search PATH,
10214                                               # but as the default
10215                                               # location of the library.
10216       ;;
10217     esac
10218
10219     case $cc_basename in
10220       CC)
10221         # FIXME: insert proper C++ library support
10222         ld_shlibs_CXX=no
10223         ;;
10224       aCC)
10225         case "$host_cpu" in
10226         hppa*64*|ia64*)
10227           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10228           ;;
10229         *)
10230           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10231           ;;
10232         esac
10233         # Commands to make compiler produce verbose output that lists
10234         # what "hidden" libraries, object files and flags are used when
10235         # linking a shared library.
10236         #
10237         # There doesn't appear to be a way to prevent this compiler from
10238         # explicitly linking system object files so we need to strip them
10239         # from the output so that they don't get included in the library
10240         # dependencies.
10241         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'
10242         ;;
10243       *)
10244         if test "$GXX" = yes; then
10245           if test $with_gnu_ld = no; then
10246             case "$host_cpu" in
10247             ia64*|hppa*64*)
10248               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10249               ;;
10250             *)
10251               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'
10252               ;;
10253             esac
10254           fi
10255         else
10256           # FIXME: insert proper C++ library support
10257           ld_shlibs_CXX=no
10258         fi
10259         ;;
10260     esac
10261     ;;
10262   irix5* | irix6*)
10263     case $cc_basename in
10264       CC)
10265         # SGI C++
10266         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'
10267
10268         # Archives containing C++ object files must be created using
10269         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10270         # necessary to make sure instantiated templates are included
10271         # in the archive.
10272         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10273         ;;
10274       *)
10275         if test "$GXX" = yes; then
10276           if test "$with_gnu_ld" = no; then
10277             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'
10278           else
10279             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'
10280           fi
10281         fi
10282         link_all_deplibs_CXX=yes
10283         ;;
10284     esac
10285     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10286     hardcode_libdir_separator_CXX=:
10287     ;;
10288   linux*)
10289     case $cc_basename in
10290       KCC)
10291         # Kuck and Associates, Inc. (KAI) C++ Compiler
10292
10293         # KCC will only create a shared library if the output file
10294         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10295         # to its proper name (with version) after linking.
10296         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'
10297         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'
10298         # Commands to make compiler produce verbose output that lists
10299         # what "hidden" libraries, object files and flags are used when
10300         # linking a shared library.
10301         #
10302         # There doesn't appear to be a way to prevent this compiler from
10303         # explicitly linking system object files so we need to strip them
10304         # from the output so that they don't get included in the library
10305         # dependencies.
10306         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'
10307
10308         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10309         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10310
10311         # Archives containing C++ object files must be created using
10312         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10313         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10314         ;;
10315       icpc)
10316         # Intel C++
10317         with_gnu_ld=yes
10318         archive_cmds_need_lc_CXX=no
10319         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10320         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'
10321         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10322         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10323         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10324         ;;
10325       cxx)
10326         # Compaq C++
10327         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10328         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'
10329
10330         runpath_var=LD_RUN_PATH
10331         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10332         hardcode_libdir_separator_CXX=:
10333
10334         # Commands to make compiler produce verbose output that lists
10335         # what "hidden" libraries, object files and flags are used when
10336         # linking a shared library.
10337         #
10338         # There doesn't appear to be a way to prevent this compiler from
10339         # explicitly linking system object files so we need to strip them
10340         # from the output so that they don't get included in the library
10341         # dependencies.
10342         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'
10343         ;;
10344     esac
10345     ;;
10346   lynxos*)
10347     # FIXME: insert proper C++ library support
10348     ld_shlibs_CXX=no
10349     ;;
10350   m88k*)
10351     # FIXME: insert proper C++ library support
10352     ld_shlibs_CXX=no
10353     ;;
10354   mvs*)
10355     case $cc_basename in
10356       cxx)
10357         # FIXME: insert proper C++ library support
10358         ld_shlibs_CXX=no
10359         ;;
10360       *)
10361         # FIXME: insert proper C++ library support
10362         ld_shlibs_CXX=no
10363         ;;
10364     esac
10365     ;;
10366   netbsd* | knetbsd*-gnu)
10367     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10368       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10369       wlarc=
10370       hardcode_libdir_flag_spec_CXX='-R$libdir'
10371       hardcode_direct_CXX=yes
10372       hardcode_shlibpath_var_CXX=no
10373     fi
10374     # Workaround some broken pre-1.5 toolchains
10375     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10376     ;;
10377   osf3*)
10378     case $cc_basename in
10379       KCC)
10380         # Kuck and Associates, Inc. (KAI) C++ Compiler
10381
10382         # KCC will only create a shared library if the output file
10383         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10384         # to its proper name (with version) after linking.
10385         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'
10386
10387         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10388         hardcode_libdir_separator_CXX=:
10389
10390         # Archives containing C++ object files must be created using
10391         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10392         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10393
10394         ;;
10395       RCC)
10396         # Rational C++ 2.4.1
10397         # FIXME: insert proper C++ library support
10398         ld_shlibs_CXX=no
10399         ;;
10400       cxx)
10401         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10402         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'
10403
10404         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10405         hardcode_libdir_separator_CXX=:
10406
10407         # Commands to make compiler produce verbose output that lists
10408         # what "hidden" libraries, object files and flags are used when
10409         # linking a shared library.
10410         #
10411         # There doesn't appear to be a way to prevent this compiler from
10412         # explicitly linking system object files so we need to strip them
10413         # from the output so that they don't get included in the library
10414         # dependencies.
10415         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'
10416         ;;
10417       *)
10418         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10419           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10420           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'
10421
10422           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10423           hardcode_libdir_separator_CXX=:
10424
10425           # Commands to make compiler produce verbose output that lists
10426           # what "hidden" libraries, object files and flags are used when
10427           # linking a shared library.
10428           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10429
10430         else
10431           # FIXME: insert proper C++ library support
10432           ld_shlibs_CXX=no
10433         fi
10434         ;;
10435     esac
10436     ;;
10437   osf4* | osf5*)
10438     case $cc_basename in
10439       KCC)
10440         # Kuck and Associates, Inc. (KAI) C++ Compiler
10441
10442         # KCC will only create a shared library if the output file
10443         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10444         # to its proper name (with version) after linking.
10445         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'
10446
10447         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10448         hardcode_libdir_separator_CXX=:
10449
10450         # Archives containing C++ object files must be created using
10451         # the KAI C++ compiler.
10452         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10453         ;;
10454       RCC)
10455         # Rational C++ 2.4.1
10456         # FIXME: insert proper C++ library support
10457         ld_shlibs_CXX=no
10458         ;;
10459       cxx)
10460         allow_undefined_flag_CXX=' -expect_unresolved \*'
10461         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'
10462         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10463           echo "-hidden">> $lib.exp~
10464           $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~
10465           $rm $lib.exp'
10466
10467         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10468         hardcode_libdir_separator_CXX=:
10469
10470         # Commands to make compiler produce verbose output that lists
10471         # what "hidden" libraries, object files and flags are used when
10472         # linking a shared library.
10473         #
10474         # There doesn't appear to be a way to prevent this compiler from
10475         # explicitly linking system object files so we need to strip them
10476         # from the output so that they don't get included in the library
10477         # dependencies.
10478         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'
10479         ;;
10480       *)
10481         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10482           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10483          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'
10484
10485           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10486           hardcode_libdir_separator_CXX=:
10487
10488           # Commands to make compiler produce verbose output that lists
10489           # what "hidden" libraries, object files and flags are used when
10490           # linking a shared library.
10491           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10492
10493         else
10494           # FIXME: insert proper C++ library support
10495           ld_shlibs_CXX=no
10496         fi
10497         ;;
10498     esac
10499     ;;
10500   psos*)
10501     # FIXME: insert proper C++ library support
10502     ld_shlibs_CXX=no
10503     ;;
10504   sco*)
10505     archive_cmds_need_lc_CXX=no
10506     case $cc_basename in
10507       CC)
10508         # FIXME: insert proper C++ library support
10509         ld_shlibs_CXX=no
10510         ;;
10511       *)
10512         # FIXME: insert proper C++ library support
10513         ld_shlibs_CXX=no
10514         ;;
10515     esac
10516     ;;
10517   sunos4*)
10518     case $cc_basename in
10519       CC)
10520         # Sun C++ 4.x
10521         # FIXME: insert proper C++ library support
10522         ld_shlibs_CXX=no
10523         ;;
10524       lcc)
10525         # Lucid
10526         # FIXME: insert proper C++ library support
10527         ld_shlibs_CXX=no
10528         ;;
10529       *)
10530         # FIXME: insert proper C++ library support
10531         ld_shlibs_CXX=no
10532         ;;
10533     esac
10534     ;;
10535   solaris*)
10536     case $cc_basename in
10537       CC)
10538         # Sun C++ 4.2, 5.x and Centerline C++
10539         no_undefined_flag_CXX=' -zdefs'
10540         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10541         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10542         $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'
10543
10544         hardcode_libdir_flag_spec_CXX='-R$libdir'
10545         hardcode_shlibpath_var_CXX=no
10546         case $host_os in
10547           solaris2.0-5 | solaris2.0-5.*) ;;
10548           *)
10549             # The C++ compiler is used as linker so we must use $wl
10550             # flag to pass the commands to the underlying system
10551             # linker.
10552             # Supported since Solaris 2.6 (maybe 2.5.1?)
10553             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10554             ;;
10555         esac
10556         link_all_deplibs_CXX=yes
10557
10558         # Commands to make compiler produce verbose output that lists
10559         # what "hidden" libraries, object files and flags are used when
10560         # linking a shared library.
10561         #
10562         # There doesn't appear to be a way to prevent this compiler from
10563         # explicitly linking system object files so we need to strip them
10564         # from the output so that they don't get included in the library
10565         # dependencies.
10566         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'
10567
10568         # Archives containing C++ object files must be created using
10569         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10570         # necessary to make sure instantiated templates are included
10571         # in the archive.
10572         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10573         ;;
10574       gcx)
10575         # Green Hills C++ Compiler
10576         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10577
10578         # The C++ compiler must be used to create the archive.
10579         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10580         ;;
10581       *)
10582         # GNU C++ compiler with Solaris linker
10583         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10584           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10585           if $CC --version | grep -v '^2\.7' > /dev/null; then
10586             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10587             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10588                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10589
10590             # Commands to make compiler produce verbose output that lists
10591             # what "hidden" libraries, object files and flags are used when
10592             # linking a shared library.
10593             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10594           else
10595             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10596             # platform.
10597             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10598             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10599                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10600
10601             # Commands to make compiler produce verbose output that lists
10602             # what "hidden" libraries, object files and flags are used when
10603             # linking a shared library.
10604             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10605           fi
10606
10607           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10608         fi
10609         ;;
10610     esac
10611     ;;
10612   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10613     archive_cmds_need_lc_CXX=no
10614     ;;
10615   tandem*)
10616     case $cc_basename in
10617       NCC)
10618         # NonStop-UX NCC 3.20
10619         # FIXME: insert proper C++ library support
10620         ld_shlibs_CXX=no
10621         ;;
10622       *)
10623         # FIXME: insert proper C++ library support
10624         ld_shlibs_CXX=no
10625         ;;
10626     esac
10627     ;;
10628   vxworks*)
10629     # FIXME: insert proper C++ library support
10630     ld_shlibs_CXX=no
10631     ;;
10632   *)
10633     # FIXME: insert proper C++ library support
10634     ld_shlibs_CXX=no
10635     ;;
10636 esac
10637 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10638 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10639 test "$ld_shlibs_CXX" = no && can_build_shared=no
10640
10641 GCC_CXX="$GXX"
10642 LD_CXX="$LD"
10643
10644
10645 cat > conftest.$ac_ext <<EOF
10646 class Foo
10647 {
10648 public:
10649   Foo (void) { a = 0; }
10650 private:
10651   int a;
10652 };
10653 EOF
10654
10655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10656   (eval $ac_compile) 2>&5
10657   ac_status=$?
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); }; then
10660   # Parse the compiler output and extract the necessary
10661   # objects, libraries and library flags.
10662
10663   # Sentinel used to keep track of whether or not we are before
10664   # the conftest object file.
10665   pre_test_object_deps_done=no
10666
10667   # The `*' in the case matches for architectures that use `case' in
10668   # $output_verbose_cmd can trigger glob expansion during the loop
10669   # eval without this substitution.
10670   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10671
10672   for p in `eval $output_verbose_link_cmd`; do
10673     case $p in
10674
10675     -L* | -R* | -l*)
10676        # Some compilers place space between "-{L,R}" and the path.
10677        # Remove the space.
10678        if test $p = "-L" \
10679           || test $p = "-R"; then
10680          prev=$p
10681          continue
10682        else
10683          prev=
10684        fi
10685
10686        if test "$pre_test_object_deps_done" = no; then
10687          case $p in
10688          -L* | -R*)
10689            # Internal compiler library paths should come after those
10690            # provided the user.  The postdeps already come after the
10691            # user supplied libs so there is no need to process them.
10692            if test -z "$compiler_lib_search_path_CXX"; then
10693              compiler_lib_search_path_CXX="${prev}${p}"
10694            else
10695              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10696            fi
10697            ;;
10698          # The "-l" case would never come before the object being
10699          # linked, so don't bother handling this case.
10700          esac
10701        else
10702          if test -z "$postdeps_CXX"; then
10703            postdeps_CXX="${prev}${p}"
10704          else
10705            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10706          fi
10707        fi
10708        ;;
10709
10710     *.$objext)
10711        # This assumes that the test object file only shows up
10712        # once in the compiler output.
10713        if test "$p" = "conftest.$objext"; then
10714          pre_test_object_deps_done=yes
10715          continue
10716        fi
10717
10718        if test "$pre_test_object_deps_done" = no; then
10719          if test -z "$predep_objects_CXX"; then
10720            predep_objects_CXX="$p"
10721          else
10722            predep_objects_CXX="$predep_objects_CXX $p"
10723          fi
10724        else
10725          if test -z "$postdep_objects_CXX"; then
10726            postdep_objects_CXX="$p"
10727          else
10728            postdep_objects_CXX="$postdep_objects_CXX $p"
10729          fi
10730        fi
10731        ;;
10732
10733     *) ;; # Ignore the rest.
10734
10735     esac
10736   done
10737
10738   # Clean up.
10739   rm -f a.out a.exe
10740 else
10741   echo "libtool.m4: error: problem compiling CXX test program"
10742 fi
10743
10744 $rm -f confest.$objext
10745
10746 case " $postdeps_CXX " in
10747 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10748 esac
10749
10750 lt_prog_compiler_wl_CXX=
10751 lt_prog_compiler_pic_CXX=
10752 lt_prog_compiler_static_CXX=
10753
10754 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10755 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10756
10757   # C++ specific cases for pic, static, wl, etc.
10758   if test "$GXX" = yes; then
10759     lt_prog_compiler_wl_CXX='-Wl,'
10760     lt_prog_compiler_static_CXX='-static'
10761
10762     case $host_os in
10763     aix*)
10764       # All AIX code is PIC.
10765       if test "$host_cpu" = ia64; then
10766         # AIX 5 now supports IA64 processor
10767         lt_prog_compiler_static_CXX='-Bstatic'
10768       fi
10769       ;;
10770     amigaos*)
10771       # FIXME: we need at least 68020 code to build shared libraries, but
10772       # adding the `-m68020' flag to GCC prevents building anything better,
10773       # like `-m68040'.
10774       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10775       ;;
10776     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10777       # PIC is the default for these OSes.
10778       ;;
10779     mingw* | os2* | pw32*)
10780       # This hack is so that the source file can tell whether it is being
10781       # built for inclusion in a dll (and should export symbols for example).
10782       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10783       ;;
10784     darwin* | rhapsody*)
10785       # PIC is the default on this platform
10786       # Common symbols not allowed in MH_DYLIB files
10787       lt_prog_compiler_pic_CXX='-fno-common'
10788       ;;
10789     *djgpp*)
10790       # DJGPP does not support shared libraries at all
10791       lt_prog_compiler_pic_CXX=
10792       ;;
10793     sysv4*MP*)
10794       if test -d /usr/nec; then
10795         lt_prog_compiler_pic_CXX=-Kconform_pic
10796       fi
10797       ;;
10798     hpux*)
10799       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10800       # not for PA HP-UX.
10801       case "$host_cpu" in
10802       hppa*64*|ia64*)
10803         ;;
10804       *)
10805         lt_prog_compiler_pic_CXX='-fPIC'
10806         ;;
10807       esac
10808       ;;
10809     *)
10810       lt_prog_compiler_pic_CXX='-fPIC'
10811       ;;
10812     esac
10813   else
10814     case $host_os in
10815       aix4* | aix5*)
10816         # All AIX code is PIC.
10817         if test "$host_cpu" = ia64; then
10818           # AIX 5 now supports IA64 processor
10819           lt_prog_compiler_static_CXX='-Bstatic'
10820         else
10821           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10822         fi
10823         ;;
10824       chorus*)
10825         case $cc_basename in
10826         cxch68)
10827           # Green Hills C++ Compiler
10828           # _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"
10829           ;;
10830         esac
10831         ;;
10832       dgux*)
10833         case $cc_basename in
10834           ec++)
10835             lt_prog_compiler_pic_CXX='-KPIC'
10836             ;;
10837           ghcx)
10838             # Green Hills C++ Compiler
10839             lt_prog_compiler_pic_CXX='-pic'
10840             ;;
10841           *)
10842             ;;
10843         esac
10844         ;;
10845       freebsd* | kfreebsd*-gnu)
10846         # FreeBSD uses GNU C++
10847         ;;
10848       hpux9* | hpux10* | hpux11*)
10849         case $cc_basename in
10850           CC)
10851             lt_prog_compiler_wl_CXX='-Wl,'
10852             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10853             if test "$host_cpu" != ia64; then
10854               lt_prog_compiler_pic_CXX='+Z'
10855             fi
10856             ;;
10857           aCC)
10858             lt_prog_compiler_wl_CXX='-Wl,'
10859             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10860             case "$host_cpu" in
10861             hppa*64*|ia64*)
10862               # +Z the default
10863               ;;
10864             *)
10865               lt_prog_compiler_pic_CXX='+Z'
10866               ;;
10867             esac
10868             ;;
10869           *)
10870             ;;
10871         esac
10872         ;;
10873       irix5* | irix6* | nonstopux*)
10874         case $cc_basename in
10875           CC)
10876             lt_prog_compiler_wl_CXX='-Wl,'
10877             lt_prog_compiler_static_CXX='-non_shared'
10878             # CC pic flag -KPIC is the default.
10879             ;;
10880           *)
10881             ;;
10882         esac
10883         ;;
10884       linux*)
10885         case $cc_basename in
10886           KCC)
10887             # KAI C++ Compiler
10888             lt_prog_compiler_wl_CXX='--backend -Wl,'
10889             lt_prog_compiler_pic_CXX='-fPIC'
10890             ;;
10891           icpc)
10892             # Intel C++
10893             lt_prog_compiler_wl_CXX='-Wl,'
10894             lt_prog_compiler_pic_CXX='-KPIC'
10895             lt_prog_compiler_static_CXX='-static'
10896             ;;
10897           cxx)
10898             # Compaq C++
10899             # Make sure the PIC flag is empty.  It appears that all Alpha
10900             # Linux and Compaq Tru64 Unix objects are PIC.
10901             lt_prog_compiler_pic_CXX=
10902             lt_prog_compiler_static_CXX='-non_shared'
10903             ;;
10904           *)
10905             ;;
10906         esac
10907         ;;
10908       lynxos*)
10909         ;;
10910       m88k*)
10911         ;;
10912       mvs*)
10913         case $cc_basename in
10914           cxx)
10915             lt_prog_compiler_pic_CXX='-W c,exportall'
10916             ;;
10917           *)
10918             ;;
10919         esac
10920         ;;
10921       netbsd* | knetbsd*-gnu)
10922         ;;
10923       osf3* | osf4* | osf5*)
10924         case $cc_basename in
10925           KCC)
10926             lt_prog_compiler_wl_CXX='--backend -Wl,'
10927             ;;
10928           RCC)
10929             # Rational C++ 2.4.1
10930             lt_prog_compiler_pic_CXX='-pic'
10931             ;;
10932           cxx)
10933             # Digital/Compaq C++
10934             lt_prog_compiler_wl_CXX='-Wl,'
10935             # Make sure the PIC flag is empty.  It appears that all Alpha
10936             # Linux and Compaq Tru64 Unix objects are PIC.
10937             lt_prog_compiler_pic_CXX=
10938             lt_prog_compiler_static_CXX='-non_shared'
10939             ;;
10940           *)
10941             ;;
10942         esac
10943         ;;
10944       psos*)
10945         ;;
10946       sco*)
10947         case $cc_basename in
10948           CC)
10949             lt_prog_compiler_pic_CXX='-fPIC'
10950             ;;
10951           *)
10952             ;;
10953         esac
10954         ;;
10955       solaris*)
10956         case $cc_basename in
10957           CC)
10958             # Sun C++ 4.2, 5.x and Centerline C++
10959             lt_prog_compiler_pic_CXX='-KPIC'
10960             lt_prog_compiler_static_CXX='-Bstatic'
10961             lt_prog_compiler_wl_CXX='-Qoption ld '
10962             ;;
10963           gcx)
10964             # Green Hills C++ Compiler
10965             lt_prog_compiler_pic_CXX='-PIC'
10966             ;;
10967           *)
10968             ;;
10969         esac
10970         ;;
10971       sunos4*)
10972         case $cc_basename in
10973           CC)
10974             # Sun C++ 4.x
10975             lt_prog_compiler_pic_CXX='-pic'
10976             lt_prog_compiler_static_CXX='-Bstatic'
10977             ;;
10978           lcc)
10979             # Lucid
10980             lt_prog_compiler_pic_CXX='-pic'
10981             ;;
10982           *)
10983             ;;
10984         esac
10985         ;;
10986       tandem*)
10987         case $cc_basename in
10988           NCC)
10989             # NonStop-UX NCC 3.20
10990             lt_prog_compiler_pic_CXX='-KPIC'
10991             ;;
10992           *)
10993             ;;
10994         esac
10995         ;;
10996       unixware*)
10997         ;;
10998       vxworks*)
10999         ;;
11000       *)
11001         lt_prog_compiler_can_build_shared_CXX=no
11002         ;;
11003     esac
11004   fi
11005
11006 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11007 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11008
11009 #
11010 # Check to make sure the PIC flag actually works.
11011 #
11012 if test -n "$lt_prog_compiler_pic_CXX"; then
11013
11014 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11015 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11016 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11017   echo $ECHO_N "(cached) $ECHO_C" >&6
11018 else
11019   lt_prog_compiler_pic_works_CXX=no
11020   ac_outfile=conftest.$ac_objext
11021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11022    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11023    # Insert the option either (1) after the last *FLAGS variable, or
11024    # (2) before a word containing "conftest.", or (3) at the end.
11025    # Note that $ac_compile itself does not contain backslashes and begins
11026    # with a dollar sign (not a hyphen), so the echo should work correctly.
11027    # The option is referenced via a variable to avoid confusing sed.
11028    lt_compile=`echo "$ac_compile" | $SED \
11029    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11031    -e 's:$: $lt_compiler_flag:'`
11032    (eval echo "\"\$as_me:11032: $lt_compile\"" >&5)
11033    (eval "$lt_compile" 2>conftest.err)
11034    ac_status=$?
11035    cat conftest.err >&5
11036    echo "$as_me:11036: \$? = $ac_status" >&5
11037    if (exit $ac_status) && test -s "$ac_outfile"; then
11038      # The compiler can only warn and ignore the option if not recognized
11039      # So say no if there are warnings
11040      if test ! -s conftest.err; then
11041        lt_prog_compiler_pic_works_CXX=yes
11042      fi
11043    fi
11044    $rm conftest*
11045
11046 fi
11047 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11048 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11049
11050 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11051     case $lt_prog_compiler_pic_CXX in
11052      "" | " "*) ;;
11053      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11054      esac
11055 else
11056     lt_prog_compiler_pic_CXX=
11057      lt_prog_compiler_can_build_shared_CXX=no
11058 fi
11059
11060 fi
11061 case "$host_os" in
11062   # For platforms which do not support PIC, -DPIC is meaningless:
11063   *djgpp*)
11064     lt_prog_compiler_pic_CXX=
11065     ;;
11066   *)
11067     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11068     ;;
11069 esac
11070
11071 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11072 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11073 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11074   echo $ECHO_N "(cached) $ECHO_C" >&6
11075 else
11076   lt_cv_prog_compiler_c_o_CXX=no
11077    $rm -r conftest 2>/dev/null
11078    mkdir conftest
11079    cd conftest
11080    mkdir out
11081    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11082
11083    lt_compiler_flag="-o out/conftest2.$ac_objext"
11084    # Insert the option either (1) after the last *FLAGS variable, or
11085    # (2) before a word containing "conftest.", or (3) at the end.
11086    # Note that $ac_compile itself does not contain backslashes and begins
11087    # with a dollar sign (not a hyphen), so the echo should work correctly.
11088    lt_compile=`echo "$ac_compile" | $SED \
11089    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11090    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11091    -e 's:$: $lt_compiler_flag:'`
11092    (eval echo "\"\$as_me:11092: $lt_compile\"" >&5)
11093    (eval "$lt_compile" 2>out/conftest.err)
11094    ac_status=$?
11095    cat out/conftest.err >&5
11096    echo "$as_me:11096: \$? = $ac_status" >&5
11097    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11098    then
11099      # The compiler can only warn and ignore the option if not recognized
11100      # So say no if there are warnings
11101      if test ! -s out/conftest.err; then
11102        lt_cv_prog_compiler_c_o_CXX=yes
11103      fi
11104    fi
11105    chmod u+w .
11106    $rm conftest*
11107    # SGI C++ compiler will create directory out/ii_files/ for
11108    # template instantiation
11109    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11110    $rm out/* && rmdir out
11111    cd ..
11112    rmdir conftest
11113    $rm conftest*
11114
11115 fi
11116 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11117 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11118
11119
11120 hard_links="nottested"
11121 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11122   # do not overwrite the value of need_locks provided by the user
11123   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11124 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11125   hard_links=yes
11126   $rm conftest*
11127   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11128   touch conftest.a
11129   ln conftest.a conftest.b 2>&5 || hard_links=no
11130   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11131   echo "$as_me:$LINENO: result: $hard_links" >&5
11132 echo "${ECHO_T}$hard_links" >&6
11133   if test "$hard_links" = no; then
11134     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11135 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11136     need_locks=warn
11137   fi
11138 else
11139   need_locks=no
11140 fi
11141
11142 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11143 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11144
11145   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11146   case $host_os in
11147   aix4* | aix5*)
11148     # If we're using GNU nm, then we don't want the "-C" option.
11149     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11150     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11151       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'
11152     else
11153       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'
11154     fi
11155     ;;
11156   pw32*)
11157     export_symbols_cmds_CXX="$ltdll_cmds"
11158   ;;
11159   cygwin* | mingw*)
11160     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11161   ;;
11162   linux*)
11163     link_all_deplibs_CXX=no
11164   ;;
11165   *)
11166     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11167   ;;
11168   esac
11169
11170 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11171 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11172 test "$ld_shlibs_CXX" = no && can_build_shared=no
11173
11174 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11175 if test "$GCC" = yes; then
11176   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11177 fi
11178
11179 #
11180 # Do we need to explicitly link libc?
11181 #
11182 case "x$archive_cmds_need_lc_CXX" in
11183 x|xyes)
11184   # Assume -lc should be added
11185   archive_cmds_need_lc_CXX=yes
11186
11187   if test "$enable_shared" = yes && test "$GCC" = yes; then
11188     case $archive_cmds_CXX in
11189     *'~'*)
11190       # FIXME: we may have to deal with multi-command sequences.
11191       ;;
11192     '$CC '*)
11193       # Test whether the compiler implicitly links with -lc since on some
11194       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11195       # to ld, don't add -lc before -lgcc.
11196       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11197 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11198       $rm conftest*
11199       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11200
11201       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11202   (eval $ac_compile) 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); } 2>conftest.err; then
11206         soname=conftest
11207         lib=conftest
11208         libobjs=conftest.$ac_objext
11209         deplibs=
11210         wl=$lt_prog_compiler_wl_CXX
11211         compiler_flags=-v
11212         linker_flags=-v
11213         verstring=
11214         output_objdir=.
11215         libname=conftest
11216         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11217         allow_undefined_flag_CXX=
11218         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11219   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11220   ac_status=$?
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); }
11223         then
11224           archive_cmds_need_lc_CXX=no
11225         else
11226           archive_cmds_need_lc_CXX=yes
11227         fi
11228         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11229       else
11230         cat conftest.err 1>&5
11231       fi
11232       $rm conftest*
11233       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11234 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11235       ;;
11236     esac
11237   fi
11238   ;;
11239 esac
11240
11241 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11242 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11243 library_names_spec=
11244 libname_spec='lib$name'
11245 soname_spec=
11246 shrext_cmds=".so"
11247 postinstall_cmds=
11248 postuninstall_cmds=
11249 finish_cmds=
11250 finish_eval=
11251 shlibpath_var=
11252 shlibpath_overrides_runpath=unknown
11253 version_type=none
11254 dynamic_linker="$host_os ld.so"
11255 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11256 if test "$GCC" = yes; then
11257   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11258   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11259     # if the path contains ";" then we assume it to be the separator
11260     # otherwise default to the standard path separator (i.e. ":") - it is
11261     # assumed that no part of a normal pathname contains ";" but that should
11262     # okay in the real world where ";" in dirpaths is itself problematic.
11263     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11264   else
11265     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11266   fi
11267 else
11268   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11269 fi
11270 need_lib_prefix=unknown
11271 hardcode_into_libs=no
11272
11273 # when you set need_version to no, make sure it does not cause -set_version
11274 # flags to be left without arguments
11275 need_version=unknown
11276
11277 case $host_os in
11278 aix3*)
11279   version_type=linux
11280   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11281   shlibpath_var=LIBPATH
11282
11283   # AIX 3 has no versioning support, so we append a major version to the name.
11284   soname_spec='${libname}${release}${shared_ext}$major'
11285   ;;
11286
11287 aix4* | aix5*)
11288   version_type=linux
11289   need_lib_prefix=no
11290   need_version=no
11291   hardcode_into_libs=yes
11292   if test "$host_cpu" = ia64; then
11293     # AIX 5 supports IA64
11294     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11295     shlibpath_var=LD_LIBRARY_PATH
11296   else
11297     # With GCC up to 2.95.x, collect2 would create an import file
11298     # for dependence libraries.  The import file would start with
11299     # the line `#! .'.  This would cause the generated library to
11300     # depend on `.', always an invalid library.  This was fixed in
11301     # development snapshots of GCC prior to 3.0.
11302     case $host_os in
11303       aix4 | aix4.[01] | aix4.[01].*)
11304       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11305            echo ' yes '
11306            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11307         :
11308       else
11309         can_build_shared=no
11310       fi
11311       ;;
11312     esac
11313     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11314     # soname into executable. Probably we can add versioning support to
11315     # collect2, so additional links can be useful in future.
11316     if test "$aix_use_runtimelinking" = yes; then
11317       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11318       # instead of lib<name>.a to let people know that these are not
11319       # typical AIX shared libraries.
11320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321     else
11322       # We preserve .a as extension for shared libraries through AIX4.2
11323       # and later when we are not doing run time linking.
11324       library_names_spec='${libname}${release}.a $libname.a'
11325       soname_spec='${libname}${release}${shared_ext}$major'
11326     fi
11327     shlibpath_var=LIBPATH
11328   fi
11329   ;;
11330
11331 amigaos*)
11332   library_names_spec='$libname.ixlibrary $libname.a'
11333   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11334   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'
11335   ;;
11336
11337 beos*)
11338   library_names_spec='${libname}${shared_ext}'
11339   dynamic_linker="$host_os ld.so"
11340   shlibpath_var=LIBRARY_PATH
11341   ;;
11342
11343 bsdi4*)
11344   version_type=linux
11345   need_version=no
11346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347   soname_spec='${libname}${release}${shared_ext}$major'
11348   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11349   shlibpath_var=LD_LIBRARY_PATH
11350   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11351   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11352   # the default ld.so.conf also contains /usr/contrib/lib and
11353   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11354   # libtool to hard-code these into programs
11355   ;;
11356
11357 cygwin* | mingw* | pw32*)
11358   version_type=windows
11359   shrext_cmds=".dll"
11360   need_version=no
11361   need_lib_prefix=no
11362
11363   case $GCC,$host_os in
11364   yes,cygwin* | yes,mingw* | yes,pw32*)
11365     library_names_spec='$libname.dll.a'
11366     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11367     postinstall_cmds='base_file=`basename \${file}`~
11368       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11369       dldir=$destdir/`dirname \$dlpath`~
11370       test -d \$dldir || mkdir -p \$dldir~
11371       $install_prog $dir/$dlname \$dldir/$dlname'
11372     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11373       dlpath=$dir/\$dldll~
11374        $rm \$dlpath'
11375     shlibpath_overrides_runpath=yes
11376
11377     case $host_os in
11378     cygwin*)
11379       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11380       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11381       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11382       ;;
11383     mingw*)
11384       # MinGW DLLs use traditional 'lib' prefix
11385       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11386       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11387       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11388         # It is most probably a Windows format PATH printed by
11389         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11390         # path with ; separators, and with drive letters. We can handle the
11391         # drive letters (cygwin fileutils understands them), so leave them,
11392         # especially as we might pass files found there to a mingw objdump,
11393         # which wouldn't understand a cygwinified path. Ahh.
11394         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11395       else
11396         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11397       fi
11398       ;;
11399     pw32*)
11400       # pw32 DLLs use 'pw' prefix rather than 'lib'
11401       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11402       ;;
11403     esac
11404     ;;
11405
11406   *)
11407     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11408     ;;
11409   esac
11410   dynamic_linker='Win32 ld.exe'
11411   # FIXME: first we should search . and the directory the executable is in
11412   shlibpath_var=PATH
11413   ;;
11414
11415 darwin* | rhapsody*)
11416   dynamic_linker="$host_os dyld"
11417   version_type=darwin
11418   need_lib_prefix=no
11419   need_version=no
11420   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11421   soname_spec='${libname}${release}${major}$shared_ext'
11422   shlibpath_overrides_runpath=yes
11423   shlibpath_var=DYLD_LIBRARY_PATH
11424   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11425   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11426   if test "$GCC" = yes; then
11427     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"`
11428   else
11429     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11430   fi
11431   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11432   ;;
11433
11434 dgux*)
11435   version_type=linux
11436   need_lib_prefix=no
11437   need_version=no
11438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11439   soname_spec='${libname}${release}${shared_ext}$major'
11440   shlibpath_var=LD_LIBRARY_PATH
11441   ;;
11442
11443 freebsd1*)
11444   dynamic_linker=no
11445   ;;
11446
11447 kfreebsd*-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   shlibpath_overrides_runpath=no
11455   hardcode_into_libs=yes
11456   dynamic_linker='GNU ld.so'
11457   ;;
11458
11459 freebsd*)
11460   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11461   version_type=freebsd-$objformat
11462   case $version_type in
11463     freebsd-elf*)
11464       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11465       need_version=no
11466       need_lib_prefix=no
11467       ;;
11468     freebsd-*)
11469       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11470       need_version=yes
11471       ;;
11472   esac
11473   shlibpath_var=LD_LIBRARY_PATH
11474   case $host_os in
11475   freebsd2*)
11476     shlibpath_overrides_runpath=yes
11477     ;;
11478   freebsd3.01* | freebsdelf3.01*)
11479     shlibpath_overrides_runpath=yes
11480     hardcode_into_libs=yes
11481     ;;
11482   *) # from 3.2 on
11483     shlibpath_overrides_runpath=no
11484     hardcode_into_libs=yes
11485     ;;
11486   esac
11487   ;;
11488
11489 gnu*)
11490   version_type=linux
11491   need_lib_prefix=no
11492   need_version=no
11493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11494   soname_spec='${libname}${release}${shared_ext}$major'
11495   shlibpath_var=LD_LIBRARY_PATH
11496   hardcode_into_libs=yes
11497   ;;
11498
11499 hpux9* | hpux10* | hpux11*)
11500   # Give a soname corresponding to the major version so that dld.sl refuses to
11501   # link against other versions.
11502   version_type=sunos
11503   need_lib_prefix=no
11504   need_version=no
11505   case "$host_cpu" in
11506   ia64*)
11507     shrext_cmds='.so'
11508     hardcode_into_libs=yes
11509     dynamic_linker="$host_os dld.so"
11510     shlibpath_var=LD_LIBRARY_PATH
11511     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513     soname_spec='${libname}${release}${shared_ext}$major'
11514     if test "X$HPUX_IA64_MODE" = X32; then
11515       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11516     else
11517       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11518     fi
11519     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11520     ;;
11521    hppa*64*)
11522      shrext_cmds='.sl'
11523      hardcode_into_libs=yes
11524      dynamic_linker="$host_os dld.sl"
11525      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11526      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11527      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528      soname_spec='${libname}${release}${shared_ext}$major'
11529      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11530      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11531      ;;
11532    *)
11533     shrext_cmds='.sl'
11534     dynamic_linker="$host_os dld.sl"
11535     shlibpath_var=SHLIB_PATH
11536     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538     soname_spec='${libname}${release}${shared_ext}$major'
11539     ;;
11540   esac
11541   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11542   postinstall_cmds='chmod 555 $lib'
11543   ;;
11544
11545 irix5* | irix6* | nonstopux*)
11546   case $host_os in
11547     nonstopux*) version_type=nonstopux ;;
11548     *)
11549         if test "$lt_cv_prog_gnu_ld" = yes; then
11550                 version_type=linux
11551         else
11552                 version_type=irix
11553         fi ;;
11554   esac
11555   need_lib_prefix=no
11556   need_version=no
11557   soname_spec='${libname}${release}${shared_ext}$major'
11558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11559   case $host_os in
11560   irix5* | nonstopux*)
11561     libsuff= shlibsuff=
11562     ;;
11563   *)
11564     case $LD in # libtool.m4 will add one of these switches to LD
11565     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11566       libsuff= shlibsuff= libmagic=32-bit;;
11567     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11568       libsuff=32 shlibsuff=N32 libmagic=N32;;
11569     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11570       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11571     *) libsuff= shlibsuff= libmagic=never-match;;
11572     esac
11573     ;;
11574   esac
11575   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11576   shlibpath_overrides_runpath=no
11577   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11578   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11579   hardcode_into_libs=yes
11580   ;;
11581
11582 # No shared lib support for Linux oldld, aout, or coff.
11583 linux*oldld* | linux*aout* | linux*coff*)
11584   dynamic_linker=no
11585   ;;
11586
11587 # This must be Linux ELF.
11588 linux*)
11589   version_type=linux
11590   need_lib_prefix=no
11591   need_version=no
11592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593   soname_spec='${libname}${release}${shared_ext}$major'
11594   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   shlibpath_overrides_runpath=no
11597   # This implies no fast_install, which is unacceptable.
11598   # Some rework will be needed to allow for fast_install
11599   # before this can be enabled.
11600   hardcode_into_libs=yes
11601
11602   # Append ld.so.conf contents to the search path
11603   if test -f /etc/ld.so.conf; then
11604     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11605     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11606   fi
11607
11608   # We used to test for /lib/ld.so.1 and disable shared libraries on
11609   # powerpc, because MkLinux only supported shared libraries with the
11610   # GNU dynamic linker.  Since this was broken with cross compilers,
11611   # most powerpc-linux boxes support dynamic linking these days and
11612   # people can always --disable-shared, the test was removed, and we
11613   # assume the GNU/Linux dynamic linker is in use.
11614   dynamic_linker='GNU/Linux ld.so'
11615   ;;
11616
11617 knetbsd*-gnu)
11618   version_type=linux
11619   need_lib_prefix=no
11620   need_version=no
11621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11622   soname_spec='${libname}${release}${shared_ext}$major'
11623   shlibpath_var=LD_LIBRARY_PATH
11624   shlibpath_overrides_runpath=no
11625   hardcode_into_libs=yes
11626   dynamic_linker='GNU ld.so'
11627   ;;
11628
11629 netbsd*)
11630   version_type=sunos
11631   need_lib_prefix=no
11632   need_version=no
11633   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11634     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11635     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11636     dynamic_linker='NetBSD (a.out) ld.so'
11637   else
11638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11639     soname_spec='${libname}${release}${shared_ext}$major'
11640     dynamic_linker='NetBSD ld.elf_so'
11641   fi
11642   shlibpath_var=LD_LIBRARY_PATH
11643   shlibpath_overrides_runpath=yes
11644   hardcode_into_libs=yes
11645   ;;
11646
11647 newsos6)
11648   version_type=linux
11649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650   shlibpath_var=LD_LIBRARY_PATH
11651   shlibpath_overrides_runpath=yes
11652   ;;
11653
11654 nto-qnx*)
11655   version_type=linux
11656   need_lib_prefix=no
11657   need_version=no
11658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659   soname_spec='${libname}${release}${shared_ext}$major'
11660   shlibpath_var=LD_LIBRARY_PATH
11661   shlibpath_overrides_runpath=yes
11662   ;;
11663
11664 openbsd*)
11665   version_type=sunos
11666   need_lib_prefix=no
11667   need_version=yes
11668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11669   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11670   shlibpath_var=LD_LIBRARY_PATH
11671   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11672     case $host_os in
11673       openbsd2.[89] | openbsd2.[89].*)
11674         shlibpath_overrides_runpath=no
11675         ;;
11676       *)
11677         shlibpath_overrides_runpath=yes
11678         ;;
11679       esac
11680   else
11681     shlibpath_overrides_runpath=yes
11682   fi
11683   ;;
11684
11685 os2*)
11686   libname_spec='$name'
11687   shrext_cmds=".dll"
11688   need_lib_prefix=no
11689   library_names_spec='$libname${shared_ext} $libname.a'
11690   dynamic_linker='OS/2 ld.exe'
11691   shlibpath_var=LIBPATH
11692   ;;
11693
11694 osf3* | osf4* | osf5*)
11695   version_type=osf
11696   need_lib_prefix=no
11697   need_version=no
11698   soname_spec='${libname}${release}${shared_ext}$major'
11699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700   shlibpath_var=LD_LIBRARY_PATH
11701   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11702   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11703   ;;
11704
11705 sco3.2v5*)
11706   version_type=osf
11707   soname_spec='${libname}${release}${shared_ext}$major'
11708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11709   shlibpath_var=LD_LIBRARY_PATH
11710   ;;
11711
11712 solaris*)
11713   version_type=linux
11714   need_lib_prefix=no
11715   need_version=no
11716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717   soname_spec='${libname}${release}${shared_ext}$major'
11718   shlibpath_var=LD_LIBRARY_PATH
11719   shlibpath_overrides_runpath=yes
11720   hardcode_into_libs=yes
11721   # ldd complains unless libraries are executable
11722   postinstall_cmds='chmod +x $lib'
11723   ;;
11724
11725 sunos4*)
11726   version_type=sunos
11727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11728   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11729   shlibpath_var=LD_LIBRARY_PATH
11730   shlibpath_overrides_runpath=yes
11731   if test "$with_gnu_ld" = yes; then
11732     need_lib_prefix=no
11733   fi
11734   need_version=yes
11735   ;;
11736
11737 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11738   version_type=linux
11739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11740   soname_spec='${libname}${release}${shared_ext}$major'
11741   shlibpath_var=LD_LIBRARY_PATH
11742   case $host_vendor in
11743     sni)
11744       shlibpath_overrides_runpath=no
11745       need_lib_prefix=no
11746       export_dynamic_flag_spec='${wl}-Blargedynsym'
11747       runpath_var=LD_RUN_PATH
11748       ;;
11749     siemens)
11750       need_lib_prefix=no
11751       ;;
11752     motorola)
11753       need_lib_prefix=no
11754       need_version=no
11755       shlibpath_overrides_runpath=no
11756       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11757       ;;
11758   esac
11759   ;;
11760
11761 sysv4*MP*)
11762   if test -d /usr/nec ;then
11763     version_type=linux
11764     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11765     soname_spec='$libname${shared_ext}.$major'
11766     shlibpath_var=LD_LIBRARY_PATH
11767   fi
11768   ;;
11769
11770 uts4*)
11771   version_type=linux
11772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11773   soname_spec='${libname}${release}${shared_ext}$major'
11774   shlibpath_var=LD_LIBRARY_PATH
11775   ;;
11776
11777 *)
11778   dynamic_linker=no
11779   ;;
11780 esac
11781 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11782 echo "${ECHO_T}$dynamic_linker" >&6
11783 test "$dynamic_linker" = no && can_build_shared=no
11784
11785 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11786 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11787 hardcode_action_CXX=
11788 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11789    test -n "$runpath_var CXX" || \
11790    test "X$hardcode_automatic_CXX"="Xyes" ; then
11791
11792   # We can hardcode non-existant directories.
11793   if test "$hardcode_direct_CXX" != no &&
11794      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11795      # have to relink, otherwise we might link with an installed library
11796      # when we should be linking with a yet-to-be-installed one
11797      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11798      test "$hardcode_minus_L_CXX" != no; then
11799     # Linking always hardcodes the temporary library directory.
11800     hardcode_action_CXX=relink
11801   else
11802     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11803     hardcode_action_CXX=immediate
11804   fi
11805 else
11806   # We cannot hardcode anything, or else we can only hardcode existing
11807   # directories.
11808   hardcode_action_CXX=unsupported
11809 fi
11810 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11811 echo "${ECHO_T}$hardcode_action_CXX" >&6
11812
11813 if test "$hardcode_action_CXX" = relink; then
11814   # Fast installation is not supported
11815   enable_fast_install=no
11816 elif test "$shlibpath_overrides_runpath" = yes ||
11817      test "$enable_shared" = no; then
11818   # Fast installation is not necessary
11819   enable_fast_install=needless
11820 fi
11821
11822 striplib=
11823 old_striplib=
11824 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11825 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11826 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11827   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11828   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11829   echo "$as_me:$LINENO: result: yes" >&5
11830 echo "${ECHO_T}yes" >&6
11831 else
11832 # FIXME - insert some real tests, host_os isn't really good enough
11833   case $host_os in
11834    darwin*)
11835        if test -n "$STRIP" ; then
11836          striplib="$STRIP -x"
11837          echo "$as_me:$LINENO: result: yes" >&5
11838 echo "${ECHO_T}yes" >&6
11839        else
11840   echo "$as_me:$LINENO: result: no" >&5
11841 echo "${ECHO_T}no" >&6
11842 fi
11843        ;;
11844    *)
11845   echo "$as_me:$LINENO: result: no" >&5
11846 echo "${ECHO_T}no" >&6
11847     ;;
11848   esac
11849 fi
11850
11851 if test "x$enable_dlopen" != xyes; then
11852   enable_dlopen=unknown
11853   enable_dlopen_self=unknown
11854   enable_dlopen_self_static=unknown
11855 else
11856   lt_cv_dlopen=no
11857   lt_cv_dlopen_libs=
11858
11859   case $host_os in
11860   beos*)
11861     lt_cv_dlopen="load_add_on"
11862     lt_cv_dlopen_libs=
11863     lt_cv_dlopen_self=yes
11864     ;;
11865
11866   mingw* | pw32*)
11867     lt_cv_dlopen="LoadLibrary"
11868     lt_cv_dlopen_libs=
11869    ;;
11870
11871   cygwin*)
11872     lt_cv_dlopen="dlopen"
11873     lt_cv_dlopen_libs=
11874    ;;
11875
11876   darwin*)
11877   # if libdl is installed we need to link against it
11878     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11879 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11881   echo $ECHO_N "(cached) $ECHO_C" >&6
11882 else
11883   ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-ldl  $LIBS"
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891
11892 /* Override any gcc2 internal prototype to avoid an error.  */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 /* We use char because int might match the return type of a gcc2
11897    builtin and then its argument prototype would still apply.  */
11898 char dlopen ();
11899 int
11900 main ()
11901 {
11902 dlopen ();
11903   ;
11904   return 0;
11905 }
11906 _ACEOF
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11909   (eval $ac_link) 2>conftest.er1
11910   ac_status=$?
11911   grep -v '^ *+' conftest.er1 >conftest.err
11912   rm -f conftest.er1
11913   cat conftest.err >&5
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } &&
11916          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; } &&
11922          { ac_try='test -s conftest$ac_exeext'
11923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924   (eval $ac_try) 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; }; then
11928   ac_cv_lib_dl_dlopen=yes
11929 else
11930   echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 ac_cv_lib_dl_dlopen=no
11934 fi
11935 rm -f conftest.err conftest.$ac_objext \
11936       conftest$ac_exeext conftest.$ac_ext
11937 LIBS=$ac_check_lib_save_LIBS
11938 fi
11939 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11941 if test $ac_cv_lib_dl_dlopen = yes; then
11942   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11943 else
11944
11945     lt_cv_dlopen="dyld"
11946     lt_cv_dlopen_libs=
11947     lt_cv_dlopen_self=yes
11948
11949 fi
11950
11951    ;;
11952
11953   *)
11954     echo "$as_me:$LINENO: checking for shl_load" >&5
11955 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11956 if test "${ac_cv_func_shl_load+set}" = set; then
11957   echo $ECHO_N "(cached) $ECHO_C" >&6
11958 else
11959   cat >conftest.$ac_ext <<_ACEOF
11960 /* confdefs.h.  */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h.  */
11965 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11967 #define shl_load innocuous_shl_load
11968
11969 /* System header to define __stub macros and hopefully few prototypes,
11970     which can conflict with char shl_load (); below.
11971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11972     <limits.h> exists even on freestanding compilers.  */
11973
11974 #ifdef __STDC__
11975 # include <limits.h>
11976 #else
11977 # include <assert.h>
11978 #endif
11979
11980 #undef shl_load
11981
11982 /* Override any gcc2 internal prototype to avoid an error.  */
11983 #ifdef __cplusplus
11984 extern "C"
11985 {
11986 #endif
11987 /* We use char because int might match the return type of a gcc2
11988    builtin and then its argument prototype would still apply.  */
11989 char shl_load ();
11990 /* The GNU C library defines this for functions which it implements
11991     to always fail with ENOSYS.  Some functions are actually named
11992     something starting with __ and the normal name is an alias.  */
11993 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11994 choke me
11995 #else
11996 char (*f) () = shl_load;
11997 #endif
11998 #ifdef __cplusplus
11999 }
12000 #endif
12001
12002 int
12003 main ()
12004 {
12005 return f != shl_load;
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 rm -f conftest.$ac_objext conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012   (eval $ac_link) 2>conftest.er1
12013   ac_status=$?
12014   grep -v '^ *+' conftest.er1 >conftest.err
12015   rm -f conftest.er1
12016   cat conftest.err >&5
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); } &&
12019          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021   (eval $ac_try) 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; } &&
12025          { ac_try='test -s conftest$ac_exeext'
12026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027   (eval $ac_try) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; }; then
12031   ac_cv_func_shl_load=yes
12032 else
12033   echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ac_cv_func_shl_load=no
12037 fi
12038 rm -f conftest.err conftest.$ac_objext \
12039       conftest$ac_exeext conftest.$ac_ext
12040 fi
12041 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12042 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12043 if test $ac_cv_func_shl_load = yes; then
12044   lt_cv_dlopen="shl_load"
12045 else
12046   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12047 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12048 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051   ac_check_lib_save_LIBS=$LIBS
12052 LIBS="-ldld  $LIBS"
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h.  */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h.  */
12059
12060 /* Override any gcc2 internal prototype to avoid an error.  */
12061 #ifdef __cplusplus
12062 extern "C"
12063 #endif
12064 /* We use char because int might match the return type of a gcc2
12065    builtin and then its argument prototype would still apply.  */
12066 char shl_load ();
12067 int
12068 main ()
12069 {
12070 shl_load ();
12071   ;
12072   return 0;
12073 }
12074 _ACEOF
12075 rm -f conftest.$ac_objext conftest$ac_exeext
12076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12077   (eval $ac_link) 2>conftest.er1
12078   ac_status=$?
12079   grep -v '^ *+' conftest.er1 >conftest.err
12080   rm -f conftest.er1
12081   cat conftest.err >&5
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); } &&
12084          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086   (eval $ac_try) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; } &&
12090          { ac_try='test -s conftest$ac_exeext'
12091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092   (eval $ac_try) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; }; then
12096   ac_cv_lib_dld_shl_load=yes
12097 else
12098   echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12100
12101 ac_cv_lib_dld_shl_load=no
12102 fi
12103 rm -f conftest.err conftest.$ac_objext \
12104       conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12106 fi
12107 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12108 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12109 if test $ac_cv_lib_dld_shl_load = yes; then
12110   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12111 else
12112   echo "$as_me:$LINENO: checking for dlopen" >&5
12113 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12114 if test "${ac_cv_func_dlopen+set}" = set; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117   cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h.  */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h.  */
12123 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12125 #define dlopen innocuous_dlopen
12126
12127 /* System header to define __stub macros and hopefully few prototypes,
12128     which can conflict with char dlopen (); below.
12129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12130     <limits.h> exists even on freestanding compilers.  */
12131
12132 #ifdef __STDC__
12133 # include <limits.h>
12134 #else
12135 # include <assert.h>
12136 #endif
12137
12138 #undef dlopen
12139
12140 /* Override any gcc2 internal prototype to avoid an error.  */
12141 #ifdef __cplusplus
12142 extern "C"
12143 {
12144 #endif
12145 /* We use char because int might match the return type of a gcc2
12146    builtin and then its argument prototype would still apply.  */
12147 char dlopen ();
12148 /* The GNU C library defines this for functions which it implements
12149     to always fail with ENOSYS.  Some functions are actually named
12150     something starting with __ and the normal name is an alias.  */
12151 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12152 choke me
12153 #else
12154 char (*f) () = dlopen;
12155 #endif
12156 #ifdef __cplusplus
12157 }
12158 #endif
12159
12160 int
12161 main ()
12162 {
12163 return f != dlopen;
12164   ;
12165   return 0;
12166 }
12167 _ACEOF
12168 rm -f conftest.$ac_objext conftest$ac_exeext
12169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12170   (eval $ac_link) 2>conftest.er1
12171   ac_status=$?
12172   grep -v '^ *+' conftest.er1 >conftest.err
12173   rm -f conftest.er1
12174   cat conftest.err >&5
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } &&
12177          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179   (eval $ac_try) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; } &&
12183          { ac_try='test -s conftest$ac_exeext'
12184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185   (eval $ac_try) 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); }; }; then
12189   ac_cv_func_dlopen=yes
12190 else
12191   echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 ac_cv_func_dlopen=no
12195 fi
12196 rm -f conftest.err conftest.$ac_objext \
12197       conftest$ac_exeext conftest.$ac_ext
12198 fi
12199 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12200 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12201 if test $ac_cv_func_dlopen = yes; then
12202   lt_cv_dlopen="dlopen"
12203 else
12204   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12205 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12207   echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209   ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-ldl  $LIBS"
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h.  */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h.  */
12217
12218 /* Override any gcc2 internal prototype to avoid an error.  */
12219 #ifdef __cplusplus
12220 extern "C"
12221 #endif
12222 /* We use char because int might match the return type of a gcc2
12223    builtin and then its argument prototype would still apply.  */
12224 char dlopen ();
12225 int
12226 main ()
12227 {
12228 dlopen ();
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12235   (eval $ac_link) 2>conftest.er1
12236   ac_status=$?
12237   grep -v '^ *+' conftest.er1 >conftest.err
12238   rm -f conftest.er1
12239   cat conftest.err >&5
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); } &&
12242          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244   (eval $ac_try) 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); }; } &&
12248          { ac_try='test -s conftest$ac_exeext'
12249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250   (eval $ac_try) 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); }; }; then
12254   ac_cv_lib_dl_dlopen=yes
12255 else
12256   echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 ac_cv_lib_dl_dlopen=no
12260 fi
12261 rm -f conftest.err conftest.$ac_objext \
12262       conftest$ac_exeext conftest.$ac_ext
12263 LIBS=$ac_check_lib_save_LIBS
12264 fi
12265 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12266 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12267 if test $ac_cv_lib_dl_dlopen = yes; then
12268   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12269 else
12270   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12271 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12272 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-lsvld  $LIBS"
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283
12284 /* Override any gcc2 internal prototype to avoid an error.  */
12285 #ifdef __cplusplus
12286 extern "C"
12287 #endif
12288 /* We use char because int might match the return type of a gcc2
12289    builtin and then its argument prototype would still apply.  */
12290 char dlopen ();
12291 int
12292 main ()
12293 {
12294 dlopen ();
12295   ;
12296   return 0;
12297 }
12298 _ACEOF
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301   (eval $ac_link) 2>conftest.er1
12302   ac_status=$?
12303   grep -v '^ *+' conftest.er1 >conftest.err
12304   rm -f conftest.er1
12305   cat conftest.err >&5
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   (exit $ac_status); } &&
12308          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310   (eval $ac_try) 2>&5
12311   ac_status=$?
12312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313   (exit $ac_status); }; } &&
12314          { ac_try='test -s conftest$ac_exeext'
12315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316   (eval $ac_try) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; }; then
12320   ac_cv_lib_svld_dlopen=yes
12321 else
12322   echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_cv_lib_svld_dlopen=no
12326 fi
12327 rm -f conftest.err conftest.$ac_objext \
12328       conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12330 fi
12331 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12332 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12333 if test $ac_cv_lib_svld_dlopen = yes; then
12334   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12335 else
12336   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12337 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12338 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-ldld  $LIBS"
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349
12350 /* Override any gcc2 internal prototype to avoid an error.  */
12351 #ifdef __cplusplus
12352 extern "C"
12353 #endif
12354 /* We use char because int might match the return type of a gcc2
12355    builtin and then its argument prototype would still apply.  */
12356 char dld_link ();
12357 int
12358 main ()
12359 {
12360 dld_link ();
12361   ;
12362   return 0;
12363 }
12364 _ACEOF
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12367   (eval $ac_link) 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } &&
12374          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376   (eval $ac_try) 2>&5
12377   ac_status=$?
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); }; } &&
12380          { ac_try='test -s conftest$ac_exeext'
12381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382   (eval $ac_try) 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); }; }; then
12386   ac_cv_lib_dld_dld_link=yes
12387 else
12388   echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12390
12391 ac_cv_lib_dld_dld_link=no
12392 fi
12393 rm -f conftest.err conftest.$ac_objext \
12394       conftest$ac_exeext conftest.$ac_ext
12395 LIBS=$ac_check_lib_save_LIBS
12396 fi
12397 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12398 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12399 if test $ac_cv_lib_dld_dld_link = yes; then
12400   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12401 fi
12402
12403
12404 fi
12405
12406
12407 fi
12408
12409
12410 fi
12411
12412
12413 fi
12414
12415
12416 fi
12417
12418     ;;
12419   esac
12420
12421   if test "x$lt_cv_dlopen" != xno; then
12422     enable_dlopen=yes
12423   else
12424     enable_dlopen=no
12425   fi
12426
12427   case $lt_cv_dlopen in
12428   dlopen)
12429     save_CPPFLAGS="$CPPFLAGS"
12430     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12431
12432     save_LDFLAGS="$LDFLAGS"
12433     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12434
12435     save_LIBS="$LIBS"
12436     LIBS="$lt_cv_dlopen_libs $LIBS"
12437
12438     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12439 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12440 if test "${lt_cv_dlopen_self+set}" = set; then
12441   echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443           if test "$cross_compiling" = yes; then :
12444   lt_cv_dlopen_self=cross
12445 else
12446   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12447   lt_status=$lt_dlunknown
12448   cat > conftest.$ac_ext <<EOF
12449 #line 12449 "configure"
12450 #include "confdefs.h"
12451
12452 #if HAVE_DLFCN_H
12453 #include <dlfcn.h>
12454 #endif
12455
12456 #include <stdio.h>
12457
12458 #ifdef RTLD_GLOBAL
12459 #  define LT_DLGLOBAL           RTLD_GLOBAL
12460 #else
12461 #  ifdef DL_GLOBAL
12462 #    define LT_DLGLOBAL         DL_GLOBAL
12463 #  else
12464 #    define LT_DLGLOBAL         0
12465 #  endif
12466 #endif
12467
12468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12469    find out it does not work in some platform. */
12470 #ifndef LT_DLLAZY_OR_NOW
12471 #  ifdef RTLD_LAZY
12472 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12473 #  else
12474 #    ifdef DL_LAZY
12475 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12476 #    else
12477 #      ifdef RTLD_NOW
12478 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12479 #      else
12480 #        ifdef DL_NOW
12481 #          define LT_DLLAZY_OR_NOW      DL_NOW
12482 #        else
12483 #          define LT_DLLAZY_OR_NOW      0
12484 #        endif
12485 #      endif
12486 #    endif
12487 #  endif
12488 #endif
12489
12490 #ifdef __cplusplus
12491 extern "C" void exit (int);
12492 #endif
12493
12494 void fnord() { int i=42;}
12495 int main ()
12496 {
12497   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12498   int status = $lt_dlunknown;
12499
12500   if (self)
12501     {
12502       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12503       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12504       /* dlclose (self); */
12505     }
12506
12507     exit (status);
12508 }
12509 EOF
12510   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511   (eval $ac_link) 2>&5
12512   ac_status=$?
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12515     (./conftest; exit; ) 2>/dev/null
12516     lt_status=$?
12517     case x$lt_status in
12518       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12519       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12520       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12521     esac
12522   else :
12523     # compilation failed
12524     lt_cv_dlopen_self=no
12525   fi
12526 fi
12527 rm -fr conftest*
12528
12529
12530 fi
12531 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12532 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12533
12534     if test "x$lt_cv_dlopen_self" = xyes; then
12535       LDFLAGS="$LDFLAGS $link_static_flag"
12536       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12537 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12538 if test "${lt_cv_dlopen_self_static+set}" = set; then
12539   echo $ECHO_N "(cached) $ECHO_C" >&6
12540 else
12541           if test "$cross_compiling" = yes; then :
12542   lt_cv_dlopen_self_static=cross
12543 else
12544   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12545   lt_status=$lt_dlunknown
12546   cat > conftest.$ac_ext <<EOF
12547 #line 12547 "configure"
12548 #include "confdefs.h"
12549
12550 #if HAVE_DLFCN_H
12551 #include <dlfcn.h>
12552 #endif
12553
12554 #include <stdio.h>
12555
12556 #ifdef RTLD_GLOBAL
12557 #  define LT_DLGLOBAL           RTLD_GLOBAL
12558 #else
12559 #  ifdef DL_GLOBAL
12560 #    define LT_DLGLOBAL         DL_GLOBAL
12561 #  else
12562 #    define LT_DLGLOBAL         0
12563 #  endif
12564 #endif
12565
12566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12567    find out it does not work in some platform. */
12568 #ifndef LT_DLLAZY_OR_NOW
12569 #  ifdef RTLD_LAZY
12570 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12571 #  else
12572 #    ifdef DL_LAZY
12573 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12574 #    else
12575 #      ifdef RTLD_NOW
12576 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12577 #      else
12578 #        ifdef DL_NOW
12579 #          define LT_DLLAZY_OR_NOW      DL_NOW
12580 #        else
12581 #          define LT_DLLAZY_OR_NOW      0
12582 #        endif
12583 #      endif
12584 #    endif
12585 #  endif
12586 #endif
12587
12588 #ifdef __cplusplus
12589 extern "C" void exit (int);
12590 #endif
12591
12592 void fnord() { int i=42;}
12593 int main ()
12594 {
12595   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12596   int status = $lt_dlunknown;
12597
12598   if (self)
12599     {
12600       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12601       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12602       /* dlclose (self); */
12603     }
12604
12605     exit (status);
12606 }
12607 EOF
12608   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12609   (eval $ac_link) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12613     (./conftest; exit; ) 2>/dev/null
12614     lt_status=$?
12615     case x$lt_status in
12616       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12617       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12618       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12619     esac
12620   else :
12621     # compilation failed
12622     lt_cv_dlopen_self_static=no
12623   fi
12624 fi
12625 rm -fr conftest*
12626
12627
12628 fi
12629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12630 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12631     fi
12632
12633     CPPFLAGS="$save_CPPFLAGS"
12634     LDFLAGS="$save_LDFLAGS"
12635     LIBS="$save_LIBS"
12636     ;;
12637   esac
12638
12639   case $lt_cv_dlopen_self in
12640   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12641   *) enable_dlopen_self=unknown ;;
12642   esac
12643
12644   case $lt_cv_dlopen_self_static in
12645   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12646   *) enable_dlopen_self_static=unknown ;;
12647   esac
12648 fi
12649
12650
12651 # The else clause should only fire when bootstrapping the
12652 # libtool distribution, otherwise you forgot to ship ltmain.sh
12653 # with your package, and you will get complaints that there are
12654 # no rules to generate ltmain.sh.
12655 if test -f "$ltmain"; then
12656   # See if we are running on zsh, and set the options which allow our commands through
12657   # without removal of \ escapes.
12658   if test -n "${ZSH_VERSION+set}" ; then
12659     setopt NO_GLOB_SUBST
12660   fi
12661   # Now quote all the things that may contain metacharacters while being
12662   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12663   # variables and quote the copies for generation of the libtool script.
12664   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12665     SED SHELL STRIP \
12666     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12667     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12668     deplibs_check_method reload_flag reload_cmds need_locks \
12669     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12670     lt_cv_sys_global_symbol_to_c_name_address \
12671     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12672     old_postinstall_cmds old_postuninstall_cmds \
12673     compiler_CXX \
12674     CC_CXX \
12675     LD_CXX \
12676     lt_prog_compiler_wl_CXX \
12677     lt_prog_compiler_pic_CXX \
12678     lt_prog_compiler_static_CXX \
12679     lt_prog_compiler_no_builtin_flag_CXX \
12680     export_dynamic_flag_spec_CXX \
12681     thread_safe_flag_spec_CXX \
12682     whole_archive_flag_spec_CXX \
12683     enable_shared_with_static_runtimes_CXX \
12684     old_archive_cmds_CXX \
12685     old_archive_from_new_cmds_CXX \
12686     predep_objects_CXX \
12687     postdep_objects_CXX \
12688     predeps_CXX \
12689     postdeps_CXX \
12690     compiler_lib_search_path_CXX \
12691     archive_cmds_CXX \
12692     archive_expsym_cmds_CXX \
12693     postinstall_cmds_CXX \
12694     postuninstall_cmds_CXX \
12695     old_archive_from_expsyms_cmds_CXX \
12696     allow_undefined_flag_CXX \
12697     no_undefined_flag_CXX \
12698     export_symbols_cmds_CXX \
12699     hardcode_libdir_flag_spec_CXX \
12700     hardcode_libdir_flag_spec_ld_CXX \
12701     hardcode_libdir_separator_CXX \
12702     hardcode_automatic_CXX \
12703     module_cmds_CXX \
12704     module_expsym_cmds_CXX \
12705     lt_cv_prog_compiler_c_o_CXX \
12706     exclude_expsyms_CXX \
12707     include_expsyms_CXX; do
12708
12709     case $var in
12710     old_archive_cmds_CXX | \
12711     old_archive_from_new_cmds_CXX | \
12712     archive_cmds_CXX | \
12713     archive_expsym_cmds_CXX | \
12714     module_cmds_CXX | \
12715     module_expsym_cmds_CXX | \
12716     old_archive_from_expsyms_cmds_CXX | \
12717     export_symbols_cmds_CXX | \
12718     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12719     postinstall_cmds | postuninstall_cmds | \
12720     old_postinstall_cmds | old_postuninstall_cmds | \
12721     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12722       # Double-quote double-evaled strings.
12723       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12724       ;;
12725     *)
12726       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12727       ;;
12728     esac
12729   done
12730
12731   case $lt_echo in
12732   *'\$0 --fallback-echo"')
12733     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12734     ;;
12735   esac
12736
12737 cfgfile="$ofile"
12738
12739   cat <<__EOF__ >> "$cfgfile"
12740 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12741
12742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12743
12744 # Shell to use when invoking shell scripts.
12745 SHELL=$lt_SHELL
12746
12747 # Whether or not to build shared libraries.
12748 build_libtool_libs=$enable_shared
12749
12750 # Whether or not to build static libraries.
12751 build_old_libs=$enable_static
12752
12753 # Whether or not to add -lc for building shared libraries.
12754 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12755
12756 # Whether or not to disallow shared libs when runtime libs are static
12757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12758
12759 # Whether or not to optimize for fast installation.
12760 fast_install=$enable_fast_install
12761
12762 # The host system.
12763 host_alias=$host_alias
12764 host=$host
12765
12766 # An echo program that does not interpret backslashes.
12767 echo=$lt_echo
12768
12769 # The archiver.
12770 AR=$lt_AR
12771 AR_FLAGS=$lt_AR_FLAGS
12772
12773 # A C compiler.
12774 LTCC=$lt_LTCC
12775
12776 # A language-specific compiler.
12777 CC=$lt_compiler_CXX
12778
12779 # Is the compiler the GNU C compiler?
12780 with_gcc=$GCC_CXX
12781
12782 # An ERE matcher.
12783 EGREP=$lt_EGREP
12784
12785 # The linker used to build libraries.
12786 LD=$lt_LD_CXX
12787
12788 # Whether we need hard or soft links.
12789 LN_S=$lt_LN_S
12790
12791 # A BSD-compatible nm program.
12792 NM=$lt_NM
12793
12794 # A symbol stripping program
12795 STRIP=$lt_STRIP
12796
12797 # Used to examine libraries when file_magic_cmd begins "file"
12798 MAGIC_CMD=$MAGIC_CMD
12799
12800 # Used on cygwin: DLL creation program.
12801 DLLTOOL="$DLLTOOL"
12802
12803 # Used on cygwin: object dumper.
12804 OBJDUMP="$OBJDUMP"
12805
12806 # Used on cygwin: assembler.
12807 AS="$AS"
12808
12809 # The name of the directory that contains temporary libtool files.
12810 objdir=$objdir
12811
12812 # How to create reloadable object files.
12813 reload_flag=$lt_reload_flag
12814 reload_cmds=$lt_reload_cmds
12815
12816 # How to pass a linker flag through the compiler.
12817 wl=$lt_lt_prog_compiler_wl_CXX
12818
12819 # Object file suffix (normally "o").
12820 objext="$ac_objext"
12821
12822 # Old archive suffix (normally "a").
12823 libext="$libext"
12824
12825 # Shared library suffix (normally ".so").
12826 shrext_cmds='$shrext_cmds'
12827
12828 # Executable file suffix (normally "").
12829 exeext="$exeext"
12830
12831 # Additional compiler flags for building library objects.
12832 pic_flag=$lt_lt_prog_compiler_pic_CXX
12833 pic_mode=$pic_mode
12834
12835 # What is the maximum length of a command?
12836 max_cmd_len=$lt_cv_sys_max_cmd_len
12837
12838 # Does compiler simultaneously support -c and -o options?
12839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12840
12841 # Must we lock files when doing compilation ?
12842 need_locks=$lt_need_locks
12843
12844 # Do we need the lib prefix for modules?
12845 need_lib_prefix=$need_lib_prefix
12846
12847 # Do we need a version for libraries?
12848 need_version=$need_version
12849
12850 # Whether dlopen is supported.
12851 dlopen_support=$enable_dlopen
12852
12853 # Whether dlopen of programs is supported.
12854 dlopen_self=$enable_dlopen_self
12855
12856 # Whether dlopen of statically linked programs is supported.
12857 dlopen_self_static=$enable_dlopen_self_static
12858
12859 # Compiler flag to prevent dynamic linking.
12860 link_static_flag=$lt_lt_prog_compiler_static_CXX
12861
12862 # Compiler flag to turn off builtin functions.
12863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12864
12865 # Compiler flag to allow reflexive dlopens.
12866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12867
12868 # Compiler flag to generate shared objects directly from archives.
12869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12870
12871 # Compiler flag to generate thread-safe objects.
12872 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12873
12874 # Library versioning type.
12875 version_type=$version_type
12876
12877 # Format of library name prefix.
12878 libname_spec=$lt_libname_spec
12879
12880 # List of archive names.  First name is the real one, the rest are links.
12881 # The last name is the one that the linker finds with -lNAME.
12882 library_names_spec=$lt_library_names_spec
12883
12884 # The coded name of the library, if different from the real name.
12885 soname_spec=$lt_soname_spec
12886
12887 # Commands used to build and install an old-style archive.
12888 RANLIB=$lt_RANLIB
12889 old_archive_cmds=$lt_old_archive_cmds_CXX
12890 old_postinstall_cmds=$lt_old_postinstall_cmds
12891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12892
12893 # Create an old-style archive from a shared archive.
12894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12895
12896 # Create a temporary old-style archive to link instead of a shared archive.
12897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12898
12899 # Commands used to build and install a shared archive.
12900 archive_cmds=$lt_archive_cmds_CXX
12901 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12902 postinstall_cmds=$lt_postinstall_cmds
12903 postuninstall_cmds=$lt_postuninstall_cmds
12904
12905 # Commands used to build a loadable module (assumed same as above if empty)
12906 module_cmds=$lt_module_cmds_CXX
12907 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12908
12909 # Commands to strip libraries.
12910 old_striplib=$lt_old_striplib
12911 striplib=$lt_striplib
12912
12913 # Dependencies to place before the objects being linked to create a
12914 # shared library.
12915 predep_objects=$lt_predep_objects_CXX
12916
12917 # Dependencies to place after the objects being linked to create a
12918 # shared library.
12919 postdep_objects=$lt_postdep_objects_CXX
12920
12921 # Dependencies to place before the objects being linked to create a
12922 # shared library.
12923 predeps=$lt_predeps_CXX
12924
12925 # Dependencies to place after the objects being linked to create a
12926 # shared library.
12927 postdeps=$lt_postdeps_CXX
12928
12929 # The library search path used internally by the compiler when linking
12930 # a shared library.
12931 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12932
12933 # Method to check whether dependent libraries are shared objects.
12934 deplibs_check_method=$lt_deplibs_check_method
12935
12936 # Command to use when deplibs_check_method == file_magic.
12937 file_magic_cmd=$lt_file_magic_cmd
12938
12939 # Flag that allows shared libraries with undefined symbols to be built.
12940 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12941
12942 # Flag that forces no undefined symbols.
12943 no_undefined_flag=$lt_no_undefined_flag_CXX
12944
12945 # Commands used to finish a libtool library installation in a directory.
12946 finish_cmds=$lt_finish_cmds
12947
12948 # Same as above, but a single script fragment to be evaled but not shown.
12949 finish_eval=$lt_finish_eval
12950
12951 # Take the output of nm and produce a listing of raw symbols and C names.
12952 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12953
12954 # Transform the output of nm in a proper C declaration
12955 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12956
12957 # Transform the output of nm in a C name address pair
12958 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12959
12960 # This is the shared library runtime path variable.
12961 runpath_var=$runpath_var
12962
12963 # This is the shared library path variable.
12964 shlibpath_var=$shlibpath_var
12965
12966 # Is shlibpath searched before the hard-coded library search path?
12967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12968
12969 # How to hardcode a shared library path into an executable.
12970 hardcode_action=$hardcode_action_CXX
12971
12972 # Whether we should hardcode library paths into libraries.
12973 hardcode_into_libs=$hardcode_into_libs
12974
12975 # Flag to hardcode \$libdir into a binary during linking.
12976 # This must work even if \$libdir does not exist.
12977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12978
12979 # If ld is used when linking, flag to hardcode \$libdir into
12980 # a binary during linking. This must work even if \$libdir does
12981 # not exist.
12982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12983
12984 # Whether we need a single -rpath flag with a separated argument.
12985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12986
12987 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12988 # resulting binary.
12989 hardcode_direct=$hardcode_direct_CXX
12990
12991 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12992 # resulting binary.
12993 hardcode_minus_L=$hardcode_minus_L_CXX
12994
12995 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12996 # the resulting binary.
12997 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12998
12999 # Set to yes if building a shared library automatically hardcodes DIR into the library
13000 # and all subsequent libraries and executables linked against it.
13001 hardcode_automatic=$hardcode_automatic_CXX
13002
13003 # Variables whose values should be saved in libtool wrapper scripts and
13004 # restored at relink time.
13005 variables_saved_for_relink="$variables_saved_for_relink"
13006
13007 # Whether libtool must link a program against all its dependency libraries.
13008 link_all_deplibs=$link_all_deplibs_CXX
13009
13010 # Compile-time system search path for libraries
13011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13012
13013 # Run-time system search path for libraries
13014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13015
13016 # Fix the shell variable \$srcfile for the compiler.
13017 fix_srcfile_path="$fix_srcfile_path_CXX"
13018
13019 # Set to yes if exported symbols are required.
13020 always_export_symbols=$always_export_symbols_CXX
13021
13022 # The commands to list exported symbols.
13023 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13024
13025 # The commands to extract the exported symbol list from a shared archive.
13026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13027
13028 # Symbols that should not be listed in the preloaded symbols.
13029 exclude_expsyms=$lt_exclude_expsyms_CXX
13030
13031 # Symbols that must always be exported.
13032 include_expsyms=$lt_include_expsyms_CXX
13033
13034 # ### END LIBTOOL TAG CONFIG: $tagname
13035
13036 __EOF__
13037
13038
13039 else
13040   # If there is no Makefile yet, we rely on a make rule to execute
13041   # `config.status --recheck' to rerun these tests and create the
13042   # libtool script then.
13043   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13044   if test -f "$ltmain_in"; then
13045     test -f Makefile && make "$ltmain"
13046   fi
13047 fi
13048
13049
13050 ac_ext=c
13051 ac_cpp='$CPP $CPPFLAGS'
13052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13055
13056 CC=$lt_save_CC
13057 LDCXX=$LD
13058 LD=$lt_save_LD
13059 GCC=$lt_save_GCC
13060 with_gnu_ldcxx=$with_gnu_ld
13061 with_gnu_ld=$lt_save_with_gnu_ld
13062 lt_cv_path_LDCXX=$lt_cv_path_LD
13063 lt_cv_path_LD=$lt_save_path_LD
13064 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13065 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13066
13067         else
13068           tagname=""
13069         fi
13070         ;;
13071
13072       F77)
13073         if test -n "$F77" && test "X$F77" != "Xno"; then
13074
13075 ac_ext=f
13076 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13077 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13078 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13079
13080
13081 archive_cmds_need_lc_F77=no
13082 allow_undefined_flag_F77=
13083 always_export_symbols_F77=no
13084 archive_expsym_cmds_F77=
13085 export_dynamic_flag_spec_F77=
13086 hardcode_direct_F77=no
13087 hardcode_libdir_flag_spec_F77=
13088 hardcode_libdir_flag_spec_ld_F77=
13089 hardcode_libdir_separator_F77=
13090 hardcode_minus_L_F77=no
13091 hardcode_automatic_F77=no
13092 module_cmds_F77=
13093 module_expsym_cmds_F77=
13094 link_all_deplibs_F77=unknown
13095 old_archive_cmds_F77=$old_archive_cmds
13096 no_undefined_flag_F77=
13097 whole_archive_flag_spec_F77=
13098 enable_shared_with_static_runtimes_F77=no
13099
13100 # Source file extension for f77 test sources.
13101 ac_ext=f
13102
13103 # Object file extension for compiled f77 test sources.
13104 objext=o
13105 objext_F77=$objext
13106
13107 # Code to be used in simple compile tests
13108 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13109
13110 # Code to be used in simple link tests
13111 lt_simple_link_test_code="      program t\n      end\n"
13112
13113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13114
13115 # If no C compiler was specified, use CC.
13116 LTCC=${LTCC-"$CC"}
13117
13118 # Allow CC to be a program name with arguments.
13119 compiler=$CC
13120
13121
13122 # Allow CC to be a program name with arguments.
13123 lt_save_CC="$CC"
13124 CC=${F77-"f77"}
13125 compiler=$CC
13126 compiler_F77=$CC
13127 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13128
13129 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13130 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13131 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13132 echo "${ECHO_T}$can_build_shared" >&6
13133
13134 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13135 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13136 test "$can_build_shared" = "no" && enable_shared=no
13137
13138 # On AIX, shared libraries and static libraries use the same namespace, and
13139 # are all built from PIC.
13140 case "$host_os" in
13141 aix3*)
13142   test "$enable_shared" = yes && enable_static=no
13143   if test -n "$RANLIB"; then
13144     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13145     postinstall_cmds='$RANLIB $lib'
13146   fi
13147   ;;
13148 aix4* | aix5*)
13149   test "$enable_shared" = yes && enable_static=no
13150   ;;
13151 esac
13152 echo "$as_me:$LINENO: result: $enable_shared" >&5
13153 echo "${ECHO_T}$enable_shared" >&6
13154
13155 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13156 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13157 # Make sure either enable_shared or enable_static is yes.
13158 test "$enable_shared" = yes || enable_static=yes
13159 echo "$as_me:$LINENO: result: $enable_static" >&5
13160 echo "${ECHO_T}$enable_static" >&6
13161
13162 test "$ld_shlibs_F77" = no && can_build_shared=no
13163
13164 GCC_F77="$G77"
13165 LD_F77="$LD"
13166
13167 lt_prog_compiler_wl_F77=
13168 lt_prog_compiler_pic_F77=
13169 lt_prog_compiler_static_F77=
13170
13171 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13172 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13173
13174   if test "$GCC" = yes; then
13175     lt_prog_compiler_wl_F77='-Wl,'
13176     lt_prog_compiler_static_F77='-static'
13177
13178     case $host_os in
13179       aix*)
13180       # All AIX code is PIC.
13181       if test "$host_cpu" = ia64; then
13182         # AIX 5 now supports IA64 processor
13183         lt_prog_compiler_static_F77='-Bstatic'
13184       fi
13185       ;;
13186
13187     amigaos*)
13188       # FIXME: we need at least 68020 code to build shared libraries, but
13189       # adding the `-m68020' flag to GCC prevents building anything better,
13190       # like `-m68040'.
13191       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13192       ;;
13193
13194     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13195       # PIC is the default for these OSes.
13196       ;;
13197
13198     mingw* | pw32* | os2*)
13199       # This hack is so that the source file can tell whether it is being
13200       # built for inclusion in a dll (and should export symbols for example).
13201       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13202       ;;
13203
13204     darwin* | rhapsody*)
13205       # PIC is the default on this platform
13206       # Common symbols not allowed in MH_DYLIB files
13207       lt_prog_compiler_pic_F77='-fno-common'
13208       ;;
13209
13210     msdosdjgpp*)
13211       # Just because we use GCC doesn't mean we suddenly get shared libraries
13212       # on systems that don't support them.
13213       lt_prog_compiler_can_build_shared_F77=no
13214       enable_shared=no
13215       ;;
13216
13217     sysv4*MP*)
13218       if test -d /usr/nec; then
13219         lt_prog_compiler_pic_F77=-Kconform_pic
13220       fi
13221       ;;
13222
13223     hpux*)
13224       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13225       # not for PA HP-UX.
13226       case "$host_cpu" in
13227       hppa*64*|ia64*)
13228         # +Z the default
13229         ;;
13230       *)
13231         lt_prog_compiler_pic_F77='-fPIC'
13232         ;;
13233       esac
13234       ;;
13235
13236     *)
13237       lt_prog_compiler_pic_F77='-fPIC'
13238       ;;
13239     esac
13240   else
13241     # PORTME Check for flag to pass linker flags through the system compiler.
13242     case $host_os in
13243     aix*)
13244       lt_prog_compiler_wl_F77='-Wl,'
13245       if test "$host_cpu" = ia64; then
13246         # AIX 5 now supports IA64 processor
13247         lt_prog_compiler_static_F77='-Bstatic'
13248       else
13249         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13250       fi
13251       ;;
13252
13253     mingw* | pw32* | os2*)
13254       # This hack is so that the source file can tell whether it is being
13255       # built for inclusion in a dll (and should export symbols for example).
13256       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13257       ;;
13258
13259     hpux9* | hpux10* | hpux11*)
13260       lt_prog_compiler_wl_F77='-Wl,'
13261       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13262       # not for PA HP-UX.
13263       case "$host_cpu" in
13264       hppa*64*|ia64*)
13265         # +Z the default
13266         ;;
13267       *)
13268         lt_prog_compiler_pic_F77='+Z'
13269         ;;
13270       esac
13271       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13272       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13273       ;;
13274
13275     irix5* | irix6* | nonstopux*)
13276       lt_prog_compiler_wl_F77='-Wl,'
13277       # PIC (with -KPIC) is the default.
13278       lt_prog_compiler_static_F77='-non_shared'
13279       ;;
13280
13281     newsos6)
13282       lt_prog_compiler_pic_F77='-KPIC'
13283       lt_prog_compiler_static_F77='-Bstatic'
13284       ;;
13285
13286     linux*)
13287       case $CC in
13288       icc* | ecc*)
13289         lt_prog_compiler_wl_F77='-Wl,'
13290         lt_prog_compiler_pic_F77='-KPIC'
13291         lt_prog_compiler_static_F77='-static'
13292         ;;
13293       ccc*)
13294         lt_prog_compiler_wl_F77='-Wl,'
13295         # All Alpha code is PIC.
13296         lt_prog_compiler_static_F77='-non_shared'
13297         ;;
13298       esac
13299       ;;
13300
13301     osf3* | osf4* | osf5*)
13302       lt_prog_compiler_wl_F77='-Wl,'
13303       # All OSF/1 code is PIC.
13304       lt_prog_compiler_static_F77='-non_shared'
13305       ;;
13306
13307     sco3.2v5*)
13308       lt_prog_compiler_pic_F77='-Kpic'
13309       lt_prog_compiler_static_F77='-dn'
13310       ;;
13311
13312     solaris*)
13313       lt_prog_compiler_wl_F77='-Wl,'
13314       lt_prog_compiler_pic_F77='-KPIC'
13315       lt_prog_compiler_static_F77='-Bstatic'
13316       ;;
13317
13318     sunos4*)
13319       lt_prog_compiler_wl_F77='-Qoption ld '
13320       lt_prog_compiler_pic_F77='-PIC'
13321       lt_prog_compiler_static_F77='-Bstatic'
13322       ;;
13323
13324     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13325       lt_prog_compiler_wl_F77='-Wl,'
13326       lt_prog_compiler_pic_F77='-KPIC'
13327       lt_prog_compiler_static_F77='-Bstatic'
13328       ;;
13329
13330     sysv4*MP*)
13331       if test -d /usr/nec ;then
13332         lt_prog_compiler_pic_F77='-Kconform_pic'
13333         lt_prog_compiler_static_F77='-Bstatic'
13334       fi
13335       ;;
13336
13337     uts4*)
13338       lt_prog_compiler_pic_F77='-pic'
13339       lt_prog_compiler_static_F77='-Bstatic'
13340       ;;
13341
13342     *)
13343       lt_prog_compiler_can_build_shared_F77=no
13344       ;;
13345     esac
13346   fi
13347
13348 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13349 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13350
13351 #
13352 # Check to make sure the PIC flag actually works.
13353 #
13354 if test -n "$lt_prog_compiler_pic_F77"; then
13355
13356 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13357 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13358 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13359   echo $ECHO_N "(cached) $ECHO_C" >&6
13360 else
13361   lt_prog_compiler_pic_works_F77=no
13362   ac_outfile=conftest.$ac_objext
13363    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13364    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13365    # Insert the option either (1) after the last *FLAGS variable, or
13366    # (2) before a word containing "conftest.", or (3) at the end.
13367    # Note that $ac_compile itself does not contain backslashes and begins
13368    # with a dollar sign (not a hyphen), so the echo should work correctly.
13369    # The option is referenced via a variable to avoid confusing sed.
13370    lt_compile=`echo "$ac_compile" | $SED \
13371    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13372    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13373    -e 's:$: $lt_compiler_flag:'`
13374    (eval echo "\"\$as_me:13374: $lt_compile\"" >&5)
13375    (eval "$lt_compile" 2>conftest.err)
13376    ac_status=$?
13377    cat conftest.err >&5
13378    echo "$as_me:13378: \$? = $ac_status" >&5
13379    if (exit $ac_status) && test -s "$ac_outfile"; then
13380      # The compiler can only warn and ignore the option if not recognized
13381      # So say no if there are warnings
13382      if test ! -s conftest.err; then
13383        lt_prog_compiler_pic_works_F77=yes
13384      fi
13385    fi
13386    $rm conftest*
13387
13388 fi
13389 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13390 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13391
13392 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13393     case $lt_prog_compiler_pic_F77 in
13394      "" | " "*) ;;
13395      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13396      esac
13397 else
13398     lt_prog_compiler_pic_F77=
13399      lt_prog_compiler_can_build_shared_F77=no
13400 fi
13401
13402 fi
13403 case "$host_os" in
13404   # For platforms which do not support PIC, -DPIC is meaningless:
13405   *djgpp*)
13406     lt_prog_compiler_pic_F77=
13407     ;;
13408   *)
13409     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13410     ;;
13411 esac
13412
13413 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13414 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13415 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13416   echo $ECHO_N "(cached) $ECHO_C" >&6
13417 else
13418   lt_cv_prog_compiler_c_o_F77=no
13419    $rm -r conftest 2>/dev/null
13420    mkdir conftest
13421    cd conftest
13422    mkdir out
13423    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13424
13425    lt_compiler_flag="-o out/conftest2.$ac_objext"
13426    # Insert the option either (1) after the last *FLAGS variable, or
13427    # (2) before a word containing "conftest.", or (3) at the end.
13428    # Note that $ac_compile itself does not contain backslashes and begins
13429    # with a dollar sign (not a hyphen), so the echo should work correctly.
13430    lt_compile=`echo "$ac_compile" | $SED \
13431    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13432    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13433    -e 's:$: $lt_compiler_flag:'`
13434    (eval echo "\"\$as_me:13434: $lt_compile\"" >&5)
13435    (eval "$lt_compile" 2>out/conftest.err)
13436    ac_status=$?
13437    cat out/conftest.err >&5
13438    echo "$as_me:13438: \$? = $ac_status" >&5
13439    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13440    then
13441      # The compiler can only warn and ignore the option if not recognized
13442      # So say no if there are warnings
13443      if test ! -s out/conftest.err; then
13444        lt_cv_prog_compiler_c_o_F77=yes
13445      fi
13446    fi
13447    chmod u+w .
13448    $rm conftest*
13449    # SGI C++ compiler will create directory out/ii_files/ for
13450    # template instantiation
13451    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13452    $rm out/* && rmdir out
13453    cd ..
13454    rmdir conftest
13455    $rm conftest*
13456
13457 fi
13458 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13459 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13460
13461
13462 hard_links="nottested"
13463 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13464   # do not overwrite the value of need_locks provided by the user
13465   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13466 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13467   hard_links=yes
13468   $rm conftest*
13469   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13470   touch conftest.a
13471   ln conftest.a conftest.b 2>&5 || hard_links=no
13472   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13473   echo "$as_me:$LINENO: result: $hard_links" >&5
13474 echo "${ECHO_T}$hard_links" >&6
13475   if test "$hard_links" = no; then
13476     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13477 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13478     need_locks=warn
13479   fi
13480 else
13481   need_locks=no
13482 fi
13483
13484 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13485 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13486
13487   runpath_var=
13488   allow_undefined_flag_F77=
13489   enable_shared_with_static_runtimes_F77=no
13490   archive_cmds_F77=
13491   archive_expsym_cmds_F77=
13492   old_archive_From_new_cmds_F77=
13493   old_archive_from_expsyms_cmds_F77=
13494   export_dynamic_flag_spec_F77=
13495   whole_archive_flag_spec_F77=
13496   thread_safe_flag_spec_F77=
13497   hardcode_libdir_flag_spec_F77=
13498   hardcode_libdir_flag_spec_ld_F77=
13499   hardcode_libdir_separator_F77=
13500   hardcode_direct_F77=no
13501   hardcode_minus_L_F77=no
13502   hardcode_shlibpath_var_F77=unsupported
13503   link_all_deplibs_F77=unknown
13504   hardcode_automatic_F77=no
13505   module_cmds_F77=
13506   module_expsym_cmds_F77=
13507   always_export_symbols_F77=no
13508   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13509   # include_expsyms should be a list of space-separated symbols to be *always*
13510   # included in the symbol list
13511   include_expsyms_F77=
13512   # exclude_expsyms can be an extended regexp of symbols to exclude
13513   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13514   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13515   # as well as any symbol that contains `d'.
13516   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13517   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13518   # platforms (ab)use it in PIC code, but their linkers get confused if
13519   # the symbol is explicitly referenced.  Since portable code cannot
13520   # rely on this symbol name, it's probably fine to never include it in
13521   # preloaded symbol tables.
13522   extract_expsyms_cmds=
13523
13524   case $host_os in
13525   cygwin* | mingw* | pw32*)
13526     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13527     # When not using gcc, we currently assume that we are using
13528     # Microsoft Visual C++.
13529     if test "$GCC" != yes; then
13530       with_gnu_ld=no
13531     fi
13532     ;;
13533   openbsd*)
13534     with_gnu_ld=no
13535     ;;
13536   esac
13537
13538   ld_shlibs_F77=yes
13539   if test "$with_gnu_ld" = yes; then
13540     # If archive_cmds runs LD, not CC, wlarc should be empty
13541     wlarc='${wl}'
13542
13543     # See if GNU ld supports shared libraries.
13544     case $host_os in
13545     aix3* | aix4* | aix5*)
13546       # On AIX/PPC, the GNU linker is very broken
13547       if test "$host_cpu" != ia64; then
13548         ld_shlibs_F77=no
13549         cat <<EOF 1>&2
13550
13551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13552 *** to be unable to reliably create shared libraries on AIX.
13553 *** Therefore, libtool is disabling shared libraries support.  If you
13554 *** really care for shared libraries, you may want to modify your PATH
13555 *** so that a non-GNU linker is found, and then restart.
13556
13557 EOF
13558       fi
13559       ;;
13560
13561     amigaos*)
13562       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)'
13563       hardcode_libdir_flag_spec_F77='-L$libdir'
13564       hardcode_minus_L_F77=yes
13565
13566       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13567       # that the semantics of dynamic libraries on AmigaOS, at least up
13568       # to version 4, is to share data among multiple programs linked
13569       # with the same dynamic library.  Since this doesn't match the
13570       # behavior of shared libraries on other platforms, we can't use
13571       # them.
13572       ld_shlibs_F77=no
13573       ;;
13574
13575     beos*)
13576       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13577         allow_undefined_flag_F77=unsupported
13578         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13579         # support --undefined.  This deserves some investigation.  FIXME
13580         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13581       else
13582         ld_shlibs_F77=no
13583       fi
13584       ;;
13585
13586     cygwin* | mingw* | pw32*)
13587       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13588       # as there is no search path for DLLs.
13589       hardcode_libdir_flag_spec_F77='-L$libdir'
13590       allow_undefined_flag_F77=unsupported
13591       always_export_symbols_F77=no
13592       enable_shared_with_static_runtimes_F77=yes
13593       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13594
13595       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13596         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13597         # If the export-symbols file already is a .def file (1st line
13598         # is EXPORTS), use it as is; otherwise, prepend...
13599         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13600           cp $export_symbols $output_objdir/$soname.def;
13601         else
13602           echo EXPORTS > $output_objdir/$soname.def;
13603           cat $export_symbols >> $output_objdir/$soname.def;
13604         fi~
13605         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13606       else
13607         ld_shlibs=no
13608       fi
13609       ;;
13610
13611     netbsd* | knetbsd*-gnu)
13612       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13613         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13614         wlarc=
13615       else
13616         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13617         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13618       fi
13619       ;;
13620
13621     solaris* | sysv5*)
13622       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13623         ld_shlibs_F77=no
13624         cat <<EOF 1>&2
13625
13626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13627 *** create shared libraries on Solaris systems.  Therefore, libtool
13628 *** is disabling shared libraries support.  We urge you to upgrade GNU
13629 *** binutils to release 2.9.1 or newer.  Another option is to modify
13630 *** your PATH or compiler configuration so that the native linker is
13631 *** used, and then restart.
13632
13633 EOF
13634       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13635         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13637       else
13638         ld_shlibs_F77=no
13639       fi
13640       ;;
13641
13642     sunos4*)
13643       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13644       wlarc=
13645       hardcode_direct_F77=yes
13646       hardcode_shlibpath_var_F77=no
13647       ;;
13648
13649   linux*)
13650     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13651         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652         archive_cmds_F77="$tmp_archive_cmds"
13653       supports_anon_versioning=no
13654       case `$LD -v 2>/dev/null` in
13655         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13656         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13657         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13658         *\ 2.11.*) ;; # other 2.11 versions
13659         *) supports_anon_versioning=yes ;;
13660       esac
13661       if test $supports_anon_versioning = yes; then
13662         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13664 $echo "local: *; };" >> $output_objdir/$libname.ver~
13665         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13666       else
13667         archive_expsym_cmds_F77="$tmp_archive_cmds"
13668       fi
13669       link_all_deplibs_F77=no
13670     else
13671       ld_shlibs_F77=no
13672     fi
13673     ;;
13674
13675     *)
13676       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13677         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13678         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13679       else
13680         ld_shlibs_F77=no
13681       fi
13682       ;;
13683     esac
13684
13685     if test "$ld_shlibs_F77" = yes; then
13686       runpath_var=LD_RUN_PATH
13687       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13688       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13689       # ancient GNU ld didn't support --whole-archive et. al.
13690       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13691         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13692       else
13693         whole_archive_flag_spec_F77=
13694       fi
13695     fi
13696   else
13697     # PORTME fill in a description of your system's linker (not GNU ld)
13698     case $host_os in
13699     aix3*)
13700       allow_undefined_flag_F77=unsupported
13701       always_export_symbols_F77=yes
13702       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'
13703       # Note: this linker hardcodes the directories in LIBPATH if there
13704       # are no directories specified by -L.
13705       hardcode_minus_L_F77=yes
13706       if test "$GCC" = yes && test -z "$link_static_flag"; then
13707         # Neither direct hardcoding nor static linking is supported with a
13708         # broken collect2.
13709         hardcode_direct_F77=unsupported
13710       fi
13711       ;;
13712
13713     aix4* | aix5*)
13714       if test "$host_cpu" = ia64; then
13715         # On IA64, the linker does run time linking by default, so we don't
13716         # have to do anything special.
13717         aix_use_runtimelinking=no
13718         exp_sym_flag='-Bexport'
13719         no_entry_flag=""
13720       else
13721         # If we're using GNU nm, then we don't want the "-C" option.
13722         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13723         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13724           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'
13725         else
13726           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'
13727         fi
13728         aix_use_runtimelinking=no
13729
13730         # Test if we are trying to use run time linking or normal
13731         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13732         # need to do runtime linking.
13733         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13734           for ld_flag in $LDFLAGS; do
13735           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13736             aix_use_runtimelinking=yes
13737             break
13738           fi
13739           done
13740         esac
13741
13742         exp_sym_flag='-bexport'
13743         no_entry_flag='-bnoentry'
13744       fi
13745
13746       # When large executables or shared objects are built, AIX ld can
13747       # have problems creating the table of contents.  If linking a library
13748       # or program results in "error TOC overflow" add -mminimal-toc to
13749       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13750       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13751
13752       archive_cmds_F77=''
13753       hardcode_direct_F77=yes
13754       hardcode_libdir_separator_F77=':'
13755       link_all_deplibs_F77=yes
13756
13757       if test "$GCC" = yes; then
13758         case $host_os in aix4.012|aix4.012.*)
13759         # We only want to do this on AIX 4.2 and lower, the check
13760         # below for broken collect2 doesn't work under 4.3+
13761           collect2name=`${CC} -print-prog-name=collect2`
13762           if test -f "$collect2name" && \
13763            strings "$collect2name" | grep resolve_lib_name >/dev/null
13764           then
13765           # We have reworked collect2
13766           hardcode_direct_F77=yes
13767           else
13768           # We have old collect2
13769           hardcode_direct_F77=unsupported
13770           # It fails to find uninstalled libraries when the uninstalled
13771           # path is not listed in the libpath.  Setting hardcode_minus_L
13772           # to unsupported forces relinking
13773           hardcode_minus_L_F77=yes
13774           hardcode_libdir_flag_spec_F77='-L$libdir'
13775           hardcode_libdir_separator_F77=
13776           fi
13777         esac
13778         shared_flag='-shared'
13779       else
13780         # not using gcc
13781         if test "$host_cpu" = ia64; then
13782         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13783         # chokes on -Wl,-G. The following line is correct:
13784           shared_flag='-G'
13785         else
13786         if test "$aix_use_runtimelinking" = yes; then
13787             shared_flag='${wl}-G'
13788           else
13789             shared_flag='${wl}-bM:SRE'
13790         fi
13791         fi
13792       fi
13793
13794       # It seems that -bexpall does not export symbols beginning with
13795       # underscore (_), so it is better to generate a list of symbols to export.
13796       always_export_symbols_F77=yes
13797       if test "$aix_use_runtimelinking" = yes; then
13798         # Warning - without using the other runtime loading flags (-brtl),
13799         # -berok will link without error, but may produce a broken library.
13800         allow_undefined_flag_F77='-berok'
13801        # Determine the default libpath from the value encoded in an empty executable.
13802        cat >conftest.$ac_ext <<_ACEOF
13803       program main
13804
13805       end
13806 _ACEOF
13807 rm -f conftest.$ac_objext conftest$ac_exeext
13808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13809   (eval $ac_link) 2>conftest.er1
13810   ac_status=$?
13811   grep -v '^ *+' conftest.er1 >conftest.err
13812   rm -f conftest.er1
13813   cat conftest.err >&5
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); } &&
13816          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818   (eval $ac_try) 2>&5
13819   ac_status=$?
13820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821   (exit $ac_status); }; } &&
13822          { ac_try='test -s conftest$ac_exeext'
13823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824   (eval $ac_try) 2>&5
13825   ac_status=$?
13826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827   (exit $ac_status); }; }; then
13828
13829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13830 }'`
13831 # Check for a 64-bit object if we didn't find anything.
13832 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; }
13833 }'`; fi
13834 else
13835   echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13837
13838 fi
13839 rm -f conftest.err conftest.$ac_objext \
13840       conftest$ac_exeext conftest.$ac_ext
13841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13842
13843        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13844         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"
13845        else
13846         if test "$host_cpu" = ia64; then
13847           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13848           allow_undefined_flag_F77="-z nodefs"
13849           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"
13850         else
13851          # Determine the default libpath from the value encoded in an empty executable.
13852          cat >conftest.$ac_ext <<_ACEOF
13853       program main
13854
13855       end
13856 _ACEOF
13857 rm -f conftest.$ac_objext conftest$ac_exeext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13859   (eval $ac_link) 2>conftest.er1
13860   ac_status=$?
13861   grep -v '^ *+' conftest.er1 >conftest.err
13862   rm -f conftest.er1
13863   cat conftest.err >&5
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); } &&
13866          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868   (eval $ac_try) 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; } &&
13872          { ac_try='test -s conftest$ac_exeext'
13873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874   (eval $ac_try) 2>&5
13875   ac_status=$?
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); }; }; then
13878
13879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13880 }'`
13881 # Check for a 64-bit object if we didn't find anything.
13882 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; }
13883 }'`; fi
13884 else
13885   echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13887
13888 fi
13889 rm -f conftest.err conftest.$ac_objext \
13890       conftest$ac_exeext conftest.$ac_ext
13891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13892
13893          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13894           # Warning - without using the other run time loading flags,
13895           # -berok will link without error, but may produce a broken library.
13896           no_undefined_flag_F77=' ${wl}-bernotok'
13897           allow_undefined_flag_F77=' ${wl}-berok'
13898           # -bexpall does not export symbols beginning with underscore (_)
13899           always_export_symbols_F77=yes
13900           # Exported symbols can be pulled into shared objects from archives
13901           whole_archive_flag_spec_F77=' '
13902           archive_cmds_need_lc_F77=yes
13903           # This is similar to how AIX traditionally builds it's shared libraries.
13904           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'
13905         fi
13906       fi
13907       ;;
13908
13909     amigaos*)
13910       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)'
13911       hardcode_libdir_flag_spec_F77='-L$libdir'
13912       hardcode_minus_L_F77=yes
13913       # see comment about different semantics on the GNU ld section
13914       ld_shlibs_F77=no
13915       ;;
13916
13917     bsdi4*)
13918       export_dynamic_flag_spec_F77=-rdynamic
13919       ;;
13920
13921     cygwin* | mingw* | pw32*)
13922       # When not using gcc, we currently assume that we are using
13923       # Microsoft Visual C++.
13924       # hardcode_libdir_flag_spec is actually meaningless, as there is
13925       # no search path for DLLs.
13926       hardcode_libdir_flag_spec_F77=' '
13927       allow_undefined_flag_F77=unsupported
13928       # Tell ltmain to make .lib files, not .a files.
13929       libext=lib
13930       # Tell ltmain to make .dll files, not .so files.
13931       shrext_cmds=".dll"
13932       # FIXME: Setting linknames here is a bad hack.
13933       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13934       # The linker will automatically build a .lib file if we build a DLL.
13935       old_archive_From_new_cmds_F77='true'
13936       # FIXME: Should let the user specify the lib program.
13937       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13938       fix_srcfile_path='`cygpath -w "$srcfile"`'
13939       enable_shared_with_static_runtimes_F77=yes
13940       ;;
13941
13942     darwin* | rhapsody*)
13943     if test "$GXX" = yes ; then
13944       archive_cmds_need_lc_F77=no
13945       case "$host_os" in
13946       rhapsody* | darwin1.[012])
13947         allow_undefined_flag_F77='-undefined suppress'
13948         ;;
13949       *) # Darwin 1.3 on
13950       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13951         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13952       else
13953         case ${MACOSX_DEPLOYMENT_TARGET} in
13954           10.[012])
13955             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13956             ;;
13957           10.*)
13958             allow_undefined_flag_F77='-undefined dynamic_lookup'
13959             ;;
13960         esac
13961       fi
13962         ;;
13963       esac
13964         lt_int_apple_cc_single_mod=no
13965         output_verbose_link_cmd='echo'
13966         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13967           lt_int_apple_cc_single_mod=yes
13968         fi
13969         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13970           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13971         else
13972         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'
13973       fi
13974       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13975       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13976         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13977           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}'
13978         else
13979           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}'
13980         fi
13981           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}'
13982       hardcode_direct_F77=no
13983       hardcode_automatic_F77=yes
13984       hardcode_shlibpath_var_F77=unsupported
13985       whole_archive_flag_spec_F77='-all_load $convenience'
13986       link_all_deplibs_F77=yes
13987     else
13988       ld_shlibs_F77=no
13989     fi
13990       ;;
13991
13992     dgux*)
13993       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13994       hardcode_libdir_flag_spec_F77='-L$libdir'
13995       hardcode_shlibpath_var_F77=no
13996       ;;
13997
13998     freebsd1*)
13999       ld_shlibs_F77=no
14000       ;;
14001
14002     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14003     # support.  Future versions do this automatically, but an explicit c++rt0.o
14004     # does not break anything, and helps significantly (at the cost of a little
14005     # extra space).
14006     freebsd2.2*)
14007       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14008       hardcode_libdir_flag_spec_F77='-R$libdir'
14009       hardcode_direct_F77=yes
14010       hardcode_shlibpath_var_F77=no
14011       ;;
14012
14013     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14014     freebsd2*)
14015       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14016       hardcode_direct_F77=yes
14017       hardcode_minus_L_F77=yes
14018       hardcode_shlibpath_var_F77=no
14019       ;;
14020
14021     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14022     freebsd* | kfreebsd*-gnu)
14023       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14024       hardcode_libdir_flag_spec_F77='-R$libdir'
14025       hardcode_direct_F77=yes
14026       hardcode_shlibpath_var_F77=no
14027       ;;
14028
14029     hpux9*)
14030       if test "$GCC" = yes; then
14031         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'
14032       else
14033         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'
14034       fi
14035       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14036       hardcode_libdir_separator_F77=:
14037       hardcode_direct_F77=yes
14038
14039       # hardcode_minus_L: Not really in the search PATH,
14040       # but as the default location of the library.
14041       hardcode_minus_L_F77=yes
14042       export_dynamic_flag_spec_F77='${wl}-E'
14043       ;;
14044
14045     hpux10* | hpux11*)
14046       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14047         case "$host_cpu" in
14048         hppa*64*|ia64*)
14049           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14050           ;;
14051         *)
14052           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14053           ;;
14054         esac
14055       else
14056         case "$host_cpu" in
14057         hppa*64*|ia64*)
14058           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14059           ;;
14060         *)
14061           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14062           ;;
14063         esac
14064       fi
14065       if test "$with_gnu_ld" = no; then
14066         case "$host_cpu" in
14067         hppa*64*)
14068           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14069           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14070           hardcode_libdir_separator_F77=:
14071           hardcode_direct_F77=no
14072           hardcode_shlibpath_var_F77=no
14073           ;;
14074         ia64*)
14075           hardcode_libdir_flag_spec_F77='-L$libdir'
14076           hardcode_direct_F77=no
14077           hardcode_shlibpath_var_F77=no
14078
14079           # hardcode_minus_L: Not really in the search PATH,
14080           # but as the default location of the library.
14081           hardcode_minus_L_F77=yes
14082           ;;
14083         *)
14084           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14085           hardcode_libdir_separator_F77=:
14086           hardcode_direct_F77=yes
14087           export_dynamic_flag_spec_F77='${wl}-E'
14088
14089           # hardcode_minus_L: Not really in the search PATH,
14090           # but as the default location of the library.
14091           hardcode_minus_L_F77=yes
14092           ;;
14093         esac
14094       fi
14095       ;;
14096
14097     irix5* | irix6* | nonstopux*)
14098       if test "$GCC" = yes; then
14099         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'
14100       else
14101         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'
14102         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14103       fi
14104       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14105       hardcode_libdir_separator_F77=:
14106       link_all_deplibs_F77=yes
14107       ;;
14108
14109     netbsd* | knetbsd*-gnu)
14110       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14111         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14112       else
14113         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14114       fi
14115       hardcode_libdir_flag_spec_F77='-R$libdir'
14116       hardcode_direct_F77=yes
14117       hardcode_shlibpath_var_F77=no
14118       ;;
14119
14120     newsos6)
14121       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14122       hardcode_direct_F77=yes
14123       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14124       hardcode_libdir_separator_F77=:
14125       hardcode_shlibpath_var_F77=no
14126       ;;
14127
14128     openbsd*)
14129       hardcode_direct_F77=yes
14130       hardcode_shlibpath_var_F77=no
14131       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14132         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14133         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14134         export_dynamic_flag_spec_F77='${wl}-E'
14135       else
14136        case $host_os in
14137          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14138            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14139            hardcode_libdir_flag_spec_F77='-R$libdir'
14140            ;;
14141          *)
14142            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14143            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14144            ;;
14145        esac
14146       fi
14147       ;;
14148
14149     os2*)
14150       hardcode_libdir_flag_spec_F77='-L$libdir'
14151       hardcode_minus_L_F77=yes
14152       allow_undefined_flag_F77=unsupported
14153       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'
14154       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14155       ;;
14156
14157     osf3*)
14158       if test "$GCC" = yes; then
14159         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14160         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'
14161       else
14162         allow_undefined_flag_F77=' -expect_unresolved \*'
14163         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'
14164       fi
14165       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14166       hardcode_libdir_separator_F77=:
14167       ;;
14168
14169     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14170       if test "$GCC" = yes; then
14171         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14172         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'
14173         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14174       else
14175         allow_undefined_flag_F77=' -expect_unresolved \*'
14176         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'
14177         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~
14178         $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'
14179
14180         # Both c and cxx compiler support -rpath directly
14181         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14182       fi
14183       hardcode_libdir_separator_F77=:
14184       ;;
14185
14186     sco3.2v5*)
14187       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14188       hardcode_shlibpath_var_F77=no
14189       export_dynamic_flag_spec_F77='${wl}-Bexport'
14190       runpath_var=LD_RUN_PATH
14191       hardcode_runpath_var=yes
14192       ;;
14193
14194     solaris*)
14195       no_undefined_flag_F77=' -z text'
14196       if test "$GCC" = yes; then
14197         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14198         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14199           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14200       else
14201         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14202         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14203         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14204       fi
14205       hardcode_libdir_flag_spec_F77='-R$libdir'
14206       hardcode_shlibpath_var_F77=no
14207       case $host_os in
14208       solaris2.[0-5] | solaris2.[0-5].*) ;;
14209       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14210         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14211       esac
14212       link_all_deplibs_F77=yes
14213       ;;
14214
14215     sunos4*)
14216       if test "x$host_vendor" = xsequent; then
14217         # Use $CC to link under sequent, because it throws in some extra .o
14218         # files that make .init and .fini sections work.
14219         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14220       else
14221         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14222       fi
14223       hardcode_libdir_flag_spec_F77='-L$libdir'
14224       hardcode_direct_F77=yes
14225       hardcode_minus_L_F77=yes
14226       hardcode_shlibpath_var_F77=no
14227       ;;
14228
14229     sysv4)
14230       case $host_vendor in
14231         sni)
14232           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14233           hardcode_direct_F77=yes # is this really true???
14234         ;;
14235         siemens)
14236           ## LD is ld it makes a PLAMLIB
14237           ## CC just makes a GrossModule.
14238           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14239           reload_cmds_F77='$CC -r -o $output$reload_objs'
14240           hardcode_direct_F77=no
14241         ;;
14242         motorola)
14243           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14245         ;;
14246       esac
14247       runpath_var='LD_RUN_PATH'
14248       hardcode_shlibpath_var_F77=no
14249       ;;
14250
14251     sysv4.3*)
14252       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14253       hardcode_shlibpath_var_F77=no
14254       export_dynamic_flag_spec_F77='-Bexport'
14255       ;;
14256
14257     sysv4*MP*)
14258       if test -d /usr/nec; then
14259         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14260         hardcode_shlibpath_var_F77=no
14261         runpath_var=LD_RUN_PATH
14262         hardcode_runpath_var=yes
14263         ld_shlibs_F77=yes
14264       fi
14265       ;;
14266
14267     sysv4.2uw2*)
14268       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14269       hardcode_direct_F77=yes
14270       hardcode_minus_L_F77=no
14271       hardcode_shlibpath_var_F77=no
14272       hardcode_runpath_var=yes
14273       runpath_var=LD_RUN_PATH
14274       ;;
14275
14276    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14277       no_undefined_flag_F77='${wl}-z ${wl}text'
14278       if test "$GCC" = yes; then
14279         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14280       else
14281         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14282       fi
14283       runpath_var='LD_RUN_PATH'
14284       hardcode_shlibpath_var_F77=no
14285       ;;
14286
14287     sysv5*)
14288       no_undefined_flag_F77=' -z text'
14289       # $CC -shared without GNU ld will not create a library from C++
14290       # object files and a static libstdc++, better avoid it by now
14291       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14292       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14293                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14294       hardcode_libdir_flag_spec_F77=
14295       hardcode_shlibpath_var_F77=no
14296       runpath_var='LD_RUN_PATH'
14297       ;;
14298
14299     uts4*)
14300       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14301       hardcode_libdir_flag_spec_F77='-L$libdir'
14302       hardcode_shlibpath_var_F77=no
14303       ;;
14304
14305     *)
14306       ld_shlibs_F77=no
14307       ;;
14308     esac
14309   fi
14310
14311 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14312 echo "${ECHO_T}$ld_shlibs_F77" >&6
14313 test "$ld_shlibs_F77" = no && can_build_shared=no
14314
14315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14316 if test "$GCC" = yes; then
14317   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14318 fi
14319
14320 #
14321 # Do we need to explicitly link libc?
14322 #
14323 case "x$archive_cmds_need_lc_F77" in
14324 x|xyes)
14325   # Assume -lc should be added
14326   archive_cmds_need_lc_F77=yes
14327
14328   if test "$enable_shared" = yes && test "$GCC" = yes; then
14329     case $archive_cmds_F77 in
14330     *'~'*)
14331       # FIXME: we may have to deal with multi-command sequences.
14332       ;;
14333     '$CC '*)
14334       # Test whether the compiler implicitly links with -lc since on some
14335       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14336       # to ld, don't add -lc before -lgcc.
14337       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14339       $rm conftest*
14340       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14341
14342       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343   (eval $ac_compile) 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); } 2>conftest.err; then
14347         soname=conftest
14348         lib=conftest
14349         libobjs=conftest.$ac_objext
14350         deplibs=
14351         wl=$lt_prog_compiler_wl_F77
14352         compiler_flags=-v
14353         linker_flags=-v
14354         verstring=
14355         output_objdir=.
14356         libname=conftest
14357         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14358         allow_undefined_flag_F77=
14359         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14360   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14361   ac_status=$?
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); }
14364         then
14365           archive_cmds_need_lc_F77=no
14366         else
14367           archive_cmds_need_lc_F77=yes
14368         fi
14369         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14370       else
14371         cat conftest.err 1>&5
14372       fi
14373       $rm conftest*
14374       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14375 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14376       ;;
14377     esac
14378   fi
14379   ;;
14380 esac
14381
14382 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14383 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14384 library_names_spec=
14385 libname_spec='lib$name'
14386 soname_spec=
14387 shrext_cmds=".so"
14388 postinstall_cmds=
14389 postuninstall_cmds=
14390 finish_cmds=
14391 finish_eval=
14392 shlibpath_var=
14393 shlibpath_overrides_runpath=unknown
14394 version_type=none
14395 dynamic_linker="$host_os ld.so"
14396 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14397 if test "$GCC" = yes; then
14398   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14399   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14400     # if the path contains ";" then we assume it to be the separator
14401     # otherwise default to the standard path separator (i.e. ":") - it is
14402     # assumed that no part of a normal pathname contains ";" but that should
14403     # okay in the real world where ";" in dirpaths is itself problematic.
14404     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14405   else
14406     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14407   fi
14408 else
14409   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14410 fi
14411 need_lib_prefix=unknown
14412 hardcode_into_libs=no
14413
14414 # when you set need_version to no, make sure it does not cause -set_version
14415 # flags to be left without arguments
14416 need_version=unknown
14417
14418 case $host_os in
14419 aix3*)
14420   version_type=linux
14421   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14422   shlibpath_var=LIBPATH
14423
14424   # AIX 3 has no versioning support, so we append a major version to the name.
14425   soname_spec='${libname}${release}${shared_ext}$major'
14426   ;;
14427
14428 aix4* | aix5*)
14429   version_type=linux
14430   need_lib_prefix=no
14431   need_version=no
14432   hardcode_into_libs=yes
14433   if test "$host_cpu" = ia64; then
14434     # AIX 5 supports IA64
14435     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14436     shlibpath_var=LD_LIBRARY_PATH
14437   else
14438     # With GCC up to 2.95.x, collect2 would create an import file
14439     # for dependence libraries.  The import file would start with
14440     # the line `#! .'.  This would cause the generated library to
14441     # depend on `.', always an invalid library.  This was fixed in
14442     # development snapshots of GCC prior to 3.0.
14443     case $host_os in
14444       aix4 | aix4.[01] | aix4.[01].*)
14445       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14446            echo ' yes '
14447            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14448         :
14449       else
14450         can_build_shared=no
14451       fi
14452       ;;
14453     esac
14454     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14455     # soname into executable. Probably we can add versioning support to
14456     # collect2, so additional links can be useful in future.
14457     if test "$aix_use_runtimelinking" = yes; then
14458       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14459       # instead of lib<name>.a to let people know that these are not
14460       # typical AIX shared libraries.
14461       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14462     else
14463       # We preserve .a as extension for shared libraries through AIX4.2
14464       # and later when we are not doing run time linking.
14465       library_names_spec='${libname}${release}.a $libname.a'
14466       soname_spec='${libname}${release}${shared_ext}$major'
14467     fi
14468     shlibpath_var=LIBPATH
14469   fi
14470   ;;
14471
14472 amigaos*)
14473   library_names_spec='$libname.ixlibrary $libname.a'
14474   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14475   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'
14476   ;;
14477
14478 beos*)
14479   library_names_spec='${libname}${shared_ext}'
14480   dynamic_linker="$host_os ld.so"
14481   shlibpath_var=LIBRARY_PATH
14482   ;;
14483
14484 bsdi4*)
14485   version_type=linux
14486   need_version=no
14487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14488   soname_spec='${libname}${release}${shared_ext}$major'
14489   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14490   shlibpath_var=LD_LIBRARY_PATH
14491   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14492   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14493   # the default ld.so.conf also contains /usr/contrib/lib and
14494   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14495   # libtool to hard-code these into programs
14496   ;;
14497
14498 cygwin* | mingw* | pw32*)
14499   version_type=windows
14500   shrext_cmds=".dll"
14501   need_version=no
14502   need_lib_prefix=no
14503
14504   case $GCC,$host_os in
14505   yes,cygwin* | yes,mingw* | yes,pw32*)
14506     library_names_spec='$libname.dll.a'
14507     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14508     postinstall_cmds='base_file=`basename \${file}`~
14509       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14510       dldir=$destdir/`dirname \$dlpath`~
14511       test -d \$dldir || mkdir -p \$dldir~
14512       $install_prog $dir/$dlname \$dldir/$dlname'
14513     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14514       dlpath=$dir/\$dldll~
14515        $rm \$dlpath'
14516     shlibpath_overrides_runpath=yes
14517
14518     case $host_os in
14519     cygwin*)
14520       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14521       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14522       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14523       ;;
14524     mingw*)
14525       # MinGW DLLs use traditional 'lib' prefix
14526       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14527       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14528       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14529         # It is most probably a Windows format PATH printed by
14530         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14531         # path with ; separators, and with drive letters. We can handle the
14532         # drive letters (cygwin fileutils understands them), so leave them,
14533         # especially as we might pass files found there to a mingw objdump,
14534         # which wouldn't understand a cygwinified path. Ahh.
14535         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14536       else
14537         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14538       fi
14539       ;;
14540     pw32*)
14541       # pw32 DLLs use 'pw' prefix rather than 'lib'
14542       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14543       ;;
14544     esac
14545     ;;
14546
14547   *)
14548     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14549     ;;
14550   esac
14551   dynamic_linker='Win32 ld.exe'
14552   # FIXME: first we should search . and the directory the executable is in
14553   shlibpath_var=PATH
14554   ;;
14555
14556 darwin* | rhapsody*)
14557   dynamic_linker="$host_os dyld"
14558   version_type=darwin
14559   need_lib_prefix=no
14560   need_version=no
14561   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14562   soname_spec='${libname}${release}${major}$shared_ext'
14563   shlibpath_overrides_runpath=yes
14564   shlibpath_var=DYLD_LIBRARY_PATH
14565   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14566   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14567   if test "$GCC" = yes; then
14568     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"`
14569   else
14570     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14571   fi
14572   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14573   ;;
14574
14575 dgux*)
14576   version_type=linux
14577   need_lib_prefix=no
14578   need_version=no
14579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14580   soname_spec='${libname}${release}${shared_ext}$major'
14581   shlibpath_var=LD_LIBRARY_PATH
14582   ;;
14583
14584 freebsd1*)
14585   dynamic_linker=no
14586   ;;
14587
14588 kfreebsd*-gnu)
14589   version_type=linux
14590   need_lib_prefix=no
14591   need_version=no
14592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14593   soname_spec='${libname}${release}${shared_ext}$major'
14594   shlibpath_var=LD_LIBRARY_PATH
14595   shlibpath_overrides_runpath=no
14596   hardcode_into_libs=yes
14597   dynamic_linker='GNU ld.so'
14598   ;;
14599
14600 freebsd*)
14601   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14602   version_type=freebsd-$objformat
14603   case $version_type in
14604     freebsd-elf*)
14605       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14606       need_version=no
14607       need_lib_prefix=no
14608       ;;
14609     freebsd-*)
14610       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14611       need_version=yes
14612       ;;
14613   esac
14614   shlibpath_var=LD_LIBRARY_PATH
14615   case $host_os in
14616   freebsd2*)
14617     shlibpath_overrides_runpath=yes
14618     ;;
14619   freebsd3.01* | freebsdelf3.01*)
14620     shlibpath_overrides_runpath=yes
14621     hardcode_into_libs=yes
14622     ;;
14623   *) # from 3.2 on
14624     shlibpath_overrides_runpath=no
14625     hardcode_into_libs=yes
14626     ;;
14627   esac
14628   ;;
14629
14630 gnu*)
14631   version_type=linux
14632   need_lib_prefix=no
14633   need_version=no
14634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14635   soname_spec='${libname}${release}${shared_ext}$major'
14636   shlibpath_var=LD_LIBRARY_PATH
14637   hardcode_into_libs=yes
14638   ;;
14639
14640 hpux9* | hpux10* | hpux11*)
14641   # Give a soname corresponding to the major version so that dld.sl refuses to
14642   # link against other versions.
14643   version_type=sunos
14644   need_lib_prefix=no
14645   need_version=no
14646   case "$host_cpu" in
14647   ia64*)
14648     shrext_cmds='.so'
14649     hardcode_into_libs=yes
14650     dynamic_linker="$host_os dld.so"
14651     shlibpath_var=LD_LIBRARY_PATH
14652     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14653     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14654     soname_spec='${libname}${release}${shared_ext}$major'
14655     if test "X$HPUX_IA64_MODE" = X32; then
14656       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14657     else
14658       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14659     fi
14660     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14661     ;;
14662    hppa*64*)
14663      shrext_cmds='.sl'
14664      hardcode_into_libs=yes
14665      dynamic_linker="$host_os dld.sl"
14666      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14667      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14668      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669      soname_spec='${libname}${release}${shared_ext}$major'
14670      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14671      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14672      ;;
14673    *)
14674     shrext_cmds='.sl'
14675     dynamic_linker="$host_os dld.sl"
14676     shlibpath_var=SHLIB_PATH
14677     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14679     soname_spec='${libname}${release}${shared_ext}$major'
14680     ;;
14681   esac
14682   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14683   postinstall_cmds='chmod 555 $lib'
14684   ;;
14685
14686 irix5* | irix6* | nonstopux*)
14687   case $host_os in
14688     nonstopux*) version_type=nonstopux ;;
14689     *)
14690         if test "$lt_cv_prog_gnu_ld" = yes; then
14691                 version_type=linux
14692         else
14693                 version_type=irix
14694         fi ;;
14695   esac
14696   need_lib_prefix=no
14697   need_version=no
14698   soname_spec='${libname}${release}${shared_ext}$major'
14699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14700   case $host_os in
14701   irix5* | nonstopux*)
14702     libsuff= shlibsuff=
14703     ;;
14704   *)
14705     case $LD in # libtool.m4 will add one of these switches to LD
14706     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14707       libsuff= shlibsuff= libmagic=32-bit;;
14708     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14709       libsuff=32 shlibsuff=N32 libmagic=N32;;
14710     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14711       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14712     *) libsuff= shlibsuff= libmagic=never-match;;
14713     esac
14714     ;;
14715   esac
14716   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14717   shlibpath_overrides_runpath=no
14718   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14719   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14720   hardcode_into_libs=yes
14721   ;;
14722
14723 # No shared lib support for Linux oldld, aout, or coff.
14724 linux*oldld* | linux*aout* | linux*coff*)
14725   dynamic_linker=no
14726   ;;
14727
14728 # This must be Linux ELF.
14729 linux*)
14730   version_type=linux
14731   need_lib_prefix=no
14732   need_version=no
14733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734   soname_spec='${libname}${release}${shared_ext}$major'
14735   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14736   shlibpath_var=LD_LIBRARY_PATH
14737   shlibpath_overrides_runpath=no
14738   # This implies no fast_install, which is unacceptable.
14739   # Some rework will be needed to allow for fast_install
14740   # before this can be enabled.
14741   hardcode_into_libs=yes
14742
14743   # Append ld.so.conf contents to the search path
14744   if test -f /etc/ld.so.conf; then
14745     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14746     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14747   fi
14748
14749   # We used to test for /lib/ld.so.1 and disable shared libraries on
14750   # powerpc, because MkLinux only supported shared libraries with the
14751   # GNU dynamic linker.  Since this was broken with cross compilers,
14752   # most powerpc-linux boxes support dynamic linking these days and
14753   # people can always --disable-shared, the test was removed, and we
14754   # assume the GNU/Linux dynamic linker is in use.
14755   dynamic_linker='GNU/Linux ld.so'
14756   ;;
14757
14758 knetbsd*-gnu)
14759   version_type=linux
14760   need_lib_prefix=no
14761   need_version=no
14762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14763   soname_spec='${libname}${release}${shared_ext}$major'
14764   shlibpath_var=LD_LIBRARY_PATH
14765   shlibpath_overrides_runpath=no
14766   hardcode_into_libs=yes
14767   dynamic_linker='GNU ld.so'
14768   ;;
14769
14770 netbsd*)
14771   version_type=sunos
14772   need_lib_prefix=no
14773   need_version=no
14774   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14776     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14777     dynamic_linker='NetBSD (a.out) ld.so'
14778   else
14779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14780     soname_spec='${libname}${release}${shared_ext}$major'
14781     dynamic_linker='NetBSD ld.elf_so'
14782   fi
14783   shlibpath_var=LD_LIBRARY_PATH
14784   shlibpath_overrides_runpath=yes
14785   hardcode_into_libs=yes
14786   ;;
14787
14788 newsos6)
14789   version_type=linux
14790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791   shlibpath_var=LD_LIBRARY_PATH
14792   shlibpath_overrides_runpath=yes
14793   ;;
14794
14795 nto-qnx*)
14796   version_type=linux
14797   need_lib_prefix=no
14798   need_version=no
14799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14800   soname_spec='${libname}${release}${shared_ext}$major'
14801   shlibpath_var=LD_LIBRARY_PATH
14802   shlibpath_overrides_runpath=yes
14803   ;;
14804
14805 openbsd*)
14806   version_type=sunos
14807   need_lib_prefix=no
14808   need_version=yes
14809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14810   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14811   shlibpath_var=LD_LIBRARY_PATH
14812   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14813     case $host_os in
14814       openbsd2.[89] | openbsd2.[89].*)
14815         shlibpath_overrides_runpath=no
14816         ;;
14817       *)
14818         shlibpath_overrides_runpath=yes
14819         ;;
14820       esac
14821   else
14822     shlibpath_overrides_runpath=yes
14823   fi
14824   ;;
14825
14826 os2*)
14827   libname_spec='$name'
14828   shrext_cmds=".dll"
14829   need_lib_prefix=no
14830   library_names_spec='$libname${shared_ext} $libname.a'
14831   dynamic_linker='OS/2 ld.exe'
14832   shlibpath_var=LIBPATH
14833   ;;
14834
14835 osf3* | osf4* | osf5*)
14836   version_type=osf
14837   need_lib_prefix=no
14838   need_version=no
14839   soname_spec='${libname}${release}${shared_ext}$major'
14840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841   shlibpath_var=LD_LIBRARY_PATH
14842   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14843   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14844   ;;
14845
14846 sco3.2v5*)
14847   version_type=osf
14848   soname_spec='${libname}${release}${shared_ext}$major'
14849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850   shlibpath_var=LD_LIBRARY_PATH
14851   ;;
14852
14853 solaris*)
14854   version_type=linux
14855   need_lib_prefix=no
14856   need_version=no
14857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858   soname_spec='${libname}${release}${shared_ext}$major'
14859   shlibpath_var=LD_LIBRARY_PATH
14860   shlibpath_overrides_runpath=yes
14861   hardcode_into_libs=yes
14862   # ldd complains unless libraries are executable
14863   postinstall_cmds='chmod +x $lib'
14864   ;;
14865
14866 sunos4*)
14867   version_type=sunos
14868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14869   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14870   shlibpath_var=LD_LIBRARY_PATH
14871   shlibpath_overrides_runpath=yes
14872   if test "$with_gnu_ld" = yes; then
14873     need_lib_prefix=no
14874   fi
14875   need_version=yes
14876   ;;
14877
14878 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14879   version_type=linux
14880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881   soname_spec='${libname}${release}${shared_ext}$major'
14882   shlibpath_var=LD_LIBRARY_PATH
14883   case $host_vendor in
14884     sni)
14885       shlibpath_overrides_runpath=no
14886       need_lib_prefix=no
14887       export_dynamic_flag_spec='${wl}-Blargedynsym'
14888       runpath_var=LD_RUN_PATH
14889       ;;
14890     siemens)
14891       need_lib_prefix=no
14892       ;;
14893     motorola)
14894       need_lib_prefix=no
14895       need_version=no
14896       shlibpath_overrides_runpath=no
14897       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14898       ;;
14899   esac
14900   ;;
14901
14902 sysv4*MP*)
14903   if test -d /usr/nec ;then
14904     version_type=linux
14905     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14906     soname_spec='$libname${shared_ext}.$major'
14907     shlibpath_var=LD_LIBRARY_PATH
14908   fi
14909   ;;
14910
14911 uts4*)
14912   version_type=linux
14913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914   soname_spec='${libname}${release}${shared_ext}$major'
14915   shlibpath_var=LD_LIBRARY_PATH
14916   ;;
14917
14918 *)
14919   dynamic_linker=no
14920   ;;
14921 esac
14922 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14923 echo "${ECHO_T}$dynamic_linker" >&6
14924 test "$dynamic_linker" = no && can_build_shared=no
14925
14926 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14927 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14928 hardcode_action_F77=
14929 if test -n "$hardcode_libdir_flag_spec_F77" || \
14930    test -n "$runpath_var F77" || \
14931    test "X$hardcode_automatic_F77"="Xyes" ; then
14932
14933   # We can hardcode non-existant directories.
14934   if test "$hardcode_direct_F77" != no &&
14935      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14936      # have to relink, otherwise we might link with an installed library
14937      # when we should be linking with a yet-to-be-installed one
14938      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14939      test "$hardcode_minus_L_F77" != no; then
14940     # Linking always hardcodes the temporary library directory.
14941     hardcode_action_F77=relink
14942   else
14943     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14944     hardcode_action_F77=immediate
14945   fi
14946 else
14947   # We cannot hardcode anything, or else we can only hardcode existing
14948   # directories.
14949   hardcode_action_F77=unsupported
14950 fi
14951 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14952 echo "${ECHO_T}$hardcode_action_F77" >&6
14953
14954 if test "$hardcode_action_F77" = relink; then
14955   # Fast installation is not supported
14956   enable_fast_install=no
14957 elif test "$shlibpath_overrides_runpath" = yes ||
14958      test "$enable_shared" = no; then
14959   # Fast installation is not necessary
14960   enable_fast_install=needless
14961 fi
14962
14963 striplib=
14964 old_striplib=
14965 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14966 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14967 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14968   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14969   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14970   echo "$as_me:$LINENO: result: yes" >&5
14971 echo "${ECHO_T}yes" >&6
14972 else
14973 # FIXME - insert some real tests, host_os isn't really good enough
14974   case $host_os in
14975    darwin*)
14976        if test -n "$STRIP" ; then
14977          striplib="$STRIP -x"
14978          echo "$as_me:$LINENO: result: yes" >&5
14979 echo "${ECHO_T}yes" >&6
14980        else
14981   echo "$as_me:$LINENO: result: no" >&5
14982 echo "${ECHO_T}no" >&6
14983 fi
14984        ;;
14985    *)
14986   echo "$as_me:$LINENO: result: no" >&5
14987 echo "${ECHO_T}no" >&6
14988     ;;
14989   esac
14990 fi
14991
14992
14993
14994 # The else clause should only fire when bootstrapping the
14995 # libtool distribution, otherwise you forgot to ship ltmain.sh
14996 # with your package, and you will get complaints that there are
14997 # no rules to generate ltmain.sh.
14998 if test -f "$ltmain"; then
14999   # See if we are running on zsh, and set the options which allow our commands through
15000   # without removal of \ escapes.
15001   if test -n "${ZSH_VERSION+set}" ; then
15002     setopt NO_GLOB_SUBST
15003   fi
15004   # Now quote all the things that may contain metacharacters while being
15005   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15006   # variables and quote the copies for generation of the libtool script.
15007   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15008     SED SHELL STRIP \
15009     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15010     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15011     deplibs_check_method reload_flag reload_cmds need_locks \
15012     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15013     lt_cv_sys_global_symbol_to_c_name_address \
15014     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15015     old_postinstall_cmds old_postuninstall_cmds \
15016     compiler_F77 \
15017     CC_F77 \
15018     LD_F77 \
15019     lt_prog_compiler_wl_F77 \
15020     lt_prog_compiler_pic_F77 \
15021     lt_prog_compiler_static_F77 \
15022     lt_prog_compiler_no_builtin_flag_F77 \
15023     export_dynamic_flag_spec_F77 \
15024     thread_safe_flag_spec_F77 \
15025     whole_archive_flag_spec_F77 \
15026     enable_shared_with_static_runtimes_F77 \
15027     old_archive_cmds_F77 \
15028     old_archive_from_new_cmds_F77 \
15029     predep_objects_F77 \
15030     postdep_objects_F77 \
15031     predeps_F77 \
15032     postdeps_F77 \
15033     compiler_lib_search_path_F77 \
15034     archive_cmds_F77 \
15035     archive_expsym_cmds_F77 \
15036     postinstall_cmds_F77 \
15037     postuninstall_cmds_F77 \
15038     old_archive_from_expsyms_cmds_F77 \
15039     allow_undefined_flag_F77 \
15040     no_undefined_flag_F77 \
15041     export_symbols_cmds_F77 \
15042     hardcode_libdir_flag_spec_F77 \
15043     hardcode_libdir_flag_spec_ld_F77 \
15044     hardcode_libdir_separator_F77 \
15045     hardcode_automatic_F77 \
15046     module_cmds_F77 \
15047     module_expsym_cmds_F77 \
15048     lt_cv_prog_compiler_c_o_F77 \
15049     exclude_expsyms_F77 \
15050     include_expsyms_F77; do
15051
15052     case $var in
15053     old_archive_cmds_F77 | \
15054     old_archive_from_new_cmds_F77 | \
15055     archive_cmds_F77 | \
15056     archive_expsym_cmds_F77 | \
15057     module_cmds_F77 | \
15058     module_expsym_cmds_F77 | \
15059     old_archive_from_expsyms_cmds_F77 | \
15060     export_symbols_cmds_F77 | \
15061     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15062     postinstall_cmds | postuninstall_cmds | \
15063     old_postinstall_cmds | old_postuninstall_cmds | \
15064     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15065       # Double-quote double-evaled strings.
15066       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15067       ;;
15068     *)
15069       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15070       ;;
15071     esac
15072   done
15073
15074   case $lt_echo in
15075   *'\$0 --fallback-echo"')
15076     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15077     ;;
15078   esac
15079
15080 cfgfile="$ofile"
15081
15082   cat <<__EOF__ >> "$cfgfile"
15083 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15084
15085 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15086
15087 # Shell to use when invoking shell scripts.
15088 SHELL=$lt_SHELL
15089
15090 # Whether or not to build shared libraries.
15091 build_libtool_libs=$enable_shared
15092
15093 # Whether or not to build static libraries.
15094 build_old_libs=$enable_static
15095
15096 # Whether or not to add -lc for building shared libraries.
15097 build_libtool_need_lc=$archive_cmds_need_lc_F77
15098
15099 # Whether or not to disallow shared libs when runtime libs are static
15100 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15101
15102 # Whether or not to optimize for fast installation.
15103 fast_install=$enable_fast_install
15104
15105 # The host system.
15106 host_alias=$host_alias
15107 host=$host
15108
15109 # An echo program that does not interpret backslashes.
15110 echo=$lt_echo
15111
15112 # The archiver.
15113 AR=$lt_AR
15114 AR_FLAGS=$lt_AR_FLAGS
15115
15116 # A C compiler.
15117 LTCC=$lt_LTCC
15118
15119 # A language-specific compiler.
15120 CC=$lt_compiler_F77
15121
15122 # Is the compiler the GNU C compiler?
15123 with_gcc=$GCC_F77
15124
15125 # An ERE matcher.
15126 EGREP=$lt_EGREP
15127
15128 # The linker used to build libraries.
15129 LD=$lt_LD_F77
15130
15131 # Whether we need hard or soft links.
15132 LN_S=$lt_LN_S
15133
15134 # A BSD-compatible nm program.
15135 NM=$lt_NM
15136
15137 # A symbol stripping program
15138 STRIP=$lt_STRIP
15139
15140 # Used to examine libraries when file_magic_cmd begins "file"
15141 MAGIC_CMD=$MAGIC_CMD
15142
15143 # Used on cygwin: DLL creation program.
15144 DLLTOOL="$DLLTOOL"
15145
15146 # Used on cygwin: object dumper.
15147 OBJDUMP="$OBJDUMP"
15148
15149 # Used on cygwin: assembler.
15150 AS="$AS"
15151
15152 # The name of the directory that contains temporary libtool files.
15153 objdir=$objdir
15154
15155 # How to create reloadable object files.
15156 reload_flag=$lt_reload_flag
15157 reload_cmds=$lt_reload_cmds
15158
15159 # How to pass a linker flag through the compiler.
15160 wl=$lt_lt_prog_compiler_wl_F77
15161
15162 # Object file suffix (normally "o").
15163 objext="$ac_objext"
15164
15165 # Old archive suffix (normally "a").
15166 libext="$libext"
15167
15168 # Shared library suffix (normally ".so").
15169 shrext_cmds='$shrext_cmds'
15170
15171 # Executable file suffix (normally "").
15172 exeext="$exeext"
15173
15174 # Additional compiler flags for building library objects.
15175 pic_flag=$lt_lt_prog_compiler_pic_F77
15176 pic_mode=$pic_mode
15177
15178 # What is the maximum length of a command?
15179 max_cmd_len=$lt_cv_sys_max_cmd_len
15180
15181 # Does compiler simultaneously support -c and -o options?
15182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15183
15184 # Must we lock files when doing compilation ?
15185 need_locks=$lt_need_locks
15186
15187 # Do we need the lib prefix for modules?
15188 need_lib_prefix=$need_lib_prefix
15189
15190 # Do we need a version for libraries?
15191 need_version=$need_version
15192
15193 # Whether dlopen is supported.
15194 dlopen_support=$enable_dlopen
15195
15196 # Whether dlopen of programs is supported.
15197 dlopen_self=$enable_dlopen_self
15198
15199 # Whether dlopen of statically linked programs is supported.
15200 dlopen_self_static=$enable_dlopen_self_static
15201
15202 # Compiler flag to prevent dynamic linking.
15203 link_static_flag=$lt_lt_prog_compiler_static_F77
15204
15205 # Compiler flag to turn off builtin functions.
15206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15207
15208 # Compiler flag to allow reflexive dlopens.
15209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15210
15211 # Compiler flag to generate shared objects directly from archives.
15212 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15213
15214 # Compiler flag to generate thread-safe objects.
15215 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15216
15217 # Library versioning type.
15218 version_type=$version_type
15219
15220 # Format of library name prefix.
15221 libname_spec=$lt_libname_spec
15222
15223 # List of archive names.  First name is the real one, the rest are links.
15224 # The last name is the one that the linker finds with -lNAME.
15225 library_names_spec=$lt_library_names_spec
15226
15227 # The coded name of the library, if different from the real name.
15228 soname_spec=$lt_soname_spec
15229
15230 # Commands used to build and install an old-style archive.
15231 RANLIB=$lt_RANLIB
15232 old_archive_cmds=$lt_old_archive_cmds_F77
15233 old_postinstall_cmds=$lt_old_postinstall_cmds
15234 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15235
15236 # Create an old-style archive from a shared archive.
15237 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15238
15239 # Create a temporary old-style archive to link instead of a shared archive.
15240 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15241
15242 # Commands used to build and install a shared archive.
15243 archive_cmds=$lt_archive_cmds_F77
15244 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15245 postinstall_cmds=$lt_postinstall_cmds
15246 postuninstall_cmds=$lt_postuninstall_cmds
15247
15248 # Commands used to build a loadable module (assumed same as above if empty)
15249 module_cmds=$lt_module_cmds_F77
15250 module_expsym_cmds=$lt_module_expsym_cmds_F77
15251
15252 # Commands to strip libraries.
15253 old_striplib=$lt_old_striplib
15254 striplib=$lt_striplib
15255
15256 # Dependencies to place before the objects being linked to create a
15257 # shared library.
15258 predep_objects=$lt_predep_objects_F77
15259
15260 # Dependencies to place after the objects being linked to create a
15261 # shared library.
15262 postdep_objects=$lt_postdep_objects_F77
15263
15264 # Dependencies to place before the objects being linked to create a
15265 # shared library.
15266 predeps=$lt_predeps_F77
15267
15268 # Dependencies to place after the objects being linked to create a
15269 # shared library.
15270 postdeps=$lt_postdeps_F77
15271
15272 # The library search path used internally by the compiler when linking
15273 # a shared library.
15274 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15275
15276 # Method to check whether dependent libraries are shared objects.
15277 deplibs_check_method=$lt_deplibs_check_method
15278
15279 # Command to use when deplibs_check_method == file_magic.
15280 file_magic_cmd=$lt_file_magic_cmd
15281
15282 # Flag that allows shared libraries with undefined symbols to be built.
15283 allow_undefined_flag=$lt_allow_undefined_flag_F77
15284
15285 # Flag that forces no undefined symbols.
15286 no_undefined_flag=$lt_no_undefined_flag_F77
15287
15288 # Commands used to finish a libtool library installation in a directory.
15289 finish_cmds=$lt_finish_cmds
15290
15291 # Same as above, but a single script fragment to be evaled but not shown.
15292 finish_eval=$lt_finish_eval
15293
15294 # Take the output of nm and produce a listing of raw symbols and C names.
15295 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15296
15297 # Transform the output of nm in a proper C declaration
15298 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15299
15300 # Transform the output of nm in a C name address pair
15301 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15302
15303 # This is the shared library runtime path variable.
15304 runpath_var=$runpath_var
15305
15306 # This is the shared library path variable.
15307 shlibpath_var=$shlibpath_var
15308
15309 # Is shlibpath searched before the hard-coded library search path?
15310 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15311
15312 # How to hardcode a shared library path into an executable.
15313 hardcode_action=$hardcode_action_F77
15314
15315 # Whether we should hardcode library paths into libraries.
15316 hardcode_into_libs=$hardcode_into_libs
15317
15318 # Flag to hardcode \$libdir into a binary during linking.
15319 # This must work even if \$libdir does not exist.
15320 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15321
15322 # If ld is used when linking, flag to hardcode \$libdir into
15323 # a binary during linking. This must work even if \$libdir does
15324 # not exist.
15325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15326
15327 # Whether we need a single -rpath flag with a separated argument.
15328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15329
15330 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15331 # resulting binary.
15332 hardcode_direct=$hardcode_direct_F77
15333
15334 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15335 # resulting binary.
15336 hardcode_minus_L=$hardcode_minus_L_F77
15337
15338 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15339 # the resulting binary.
15340 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15341
15342 # Set to yes if building a shared library automatically hardcodes DIR into the library
15343 # and all subsequent libraries and executables linked against it.
15344 hardcode_automatic=$hardcode_automatic_F77
15345
15346 # Variables whose values should be saved in libtool wrapper scripts and
15347 # restored at relink time.
15348 variables_saved_for_relink="$variables_saved_for_relink"
15349
15350 # Whether libtool must link a program against all its dependency libraries.
15351 link_all_deplibs=$link_all_deplibs_F77
15352
15353 # Compile-time system search path for libraries
15354 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15355
15356 # Run-time system search path for libraries
15357 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15358
15359 # Fix the shell variable \$srcfile for the compiler.
15360 fix_srcfile_path="$fix_srcfile_path_F77"
15361
15362 # Set to yes if exported symbols are required.
15363 always_export_symbols=$always_export_symbols_F77
15364
15365 # The commands to list exported symbols.
15366 export_symbols_cmds=$lt_export_symbols_cmds_F77
15367
15368 # The commands to extract the exported symbol list from a shared archive.
15369 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15370
15371 # Symbols that should not be listed in the preloaded symbols.
15372 exclude_expsyms=$lt_exclude_expsyms_F77
15373
15374 # Symbols that must always be exported.
15375 include_expsyms=$lt_include_expsyms_F77
15376
15377 # ### END LIBTOOL TAG CONFIG: $tagname
15378
15379 __EOF__
15380
15381
15382 else
15383   # If there is no Makefile yet, we rely on a make rule to execute
15384   # `config.status --recheck' to rerun these tests and create the
15385   # libtool script then.
15386   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15387   if test -f "$ltmain_in"; then
15388     test -f Makefile && make "$ltmain"
15389   fi
15390 fi
15391
15392
15393 ac_ext=c
15394 ac_cpp='$CPP $CPPFLAGS'
15395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15398
15399 CC="$lt_save_CC"
15400
15401         else
15402           tagname=""
15403         fi
15404         ;;
15405
15406       GCJ)
15407         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15408
15409
15410
15411 # Source file extension for Java test sources.
15412 ac_ext=java
15413
15414 # Object file extension for compiled Java test sources.
15415 objext=o
15416 objext_GCJ=$objext
15417
15418 # Code to be used in simple compile tests
15419 lt_simple_compile_test_code="class foo {}\n"
15420
15421 # Code to be used in simple link tests
15422 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15423
15424 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15425
15426 # If no C compiler was specified, use CC.
15427 LTCC=${LTCC-"$CC"}
15428
15429 # Allow CC to be a program name with arguments.
15430 compiler=$CC
15431
15432
15433 # Allow CC to be a program name with arguments.
15434 lt_save_CC="$CC"
15435 CC=${GCJ-"gcj"}
15436 compiler=$CC
15437 compiler_GCJ=$CC
15438
15439 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15440 archive_cmds_need_lc_GCJ=no
15441
15442
15443 lt_prog_compiler_no_builtin_flag_GCJ=
15444
15445 if test "$GCC" = yes; then
15446   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15447
15448
15449 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15450 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15451 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15452   echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15454   lt_cv_prog_compiler_rtti_exceptions=no
15455   ac_outfile=conftest.$ac_objext
15456    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15457    lt_compiler_flag="-fno-rtti -fno-exceptions"
15458    # Insert the option either (1) after the last *FLAGS variable, or
15459    # (2) before a word containing "conftest.", or (3) at the end.
15460    # Note that $ac_compile itself does not contain backslashes and begins
15461    # with a dollar sign (not a hyphen), so the echo should work correctly.
15462    # The option is referenced via a variable to avoid confusing sed.
15463    lt_compile=`echo "$ac_compile" | $SED \
15464    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15465    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15466    -e 's:$: $lt_compiler_flag:'`
15467    (eval echo "\"\$as_me:15467: $lt_compile\"" >&5)
15468    (eval "$lt_compile" 2>conftest.err)
15469    ac_status=$?
15470    cat conftest.err >&5
15471    echo "$as_me:15471: \$? = $ac_status" >&5
15472    if (exit $ac_status) && test -s "$ac_outfile"; then
15473      # The compiler can only warn and ignore the option if not recognized
15474      # So say no if there are warnings
15475      if test ! -s conftest.err; then
15476        lt_cv_prog_compiler_rtti_exceptions=yes
15477      fi
15478    fi
15479    $rm conftest*
15480
15481 fi
15482 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15483 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15484
15485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15486     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15487 else
15488     :
15489 fi
15490
15491 fi
15492
15493 lt_prog_compiler_wl_GCJ=
15494 lt_prog_compiler_pic_GCJ=
15495 lt_prog_compiler_static_GCJ=
15496
15497 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15498 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15499
15500   if test "$GCC" = yes; then
15501     lt_prog_compiler_wl_GCJ='-Wl,'
15502     lt_prog_compiler_static_GCJ='-static'
15503
15504     case $host_os in
15505       aix*)
15506       # All AIX code is PIC.
15507       if test "$host_cpu" = ia64; then
15508         # AIX 5 now supports IA64 processor
15509         lt_prog_compiler_static_GCJ='-Bstatic'
15510       fi
15511       ;;
15512
15513     amigaos*)
15514       # FIXME: we need at least 68020 code to build shared libraries, but
15515       # adding the `-m68020' flag to GCC prevents building anything better,
15516       # like `-m68040'.
15517       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15518       ;;
15519
15520     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15521       # PIC is the default for these OSes.
15522       ;;
15523
15524     mingw* | pw32* | os2*)
15525       # This hack is so that the source file can tell whether it is being
15526       # built for inclusion in a dll (and should export symbols for example).
15527       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15528       ;;
15529
15530     darwin* | rhapsody*)
15531       # PIC is the default on this platform
15532       # Common symbols not allowed in MH_DYLIB files
15533       lt_prog_compiler_pic_GCJ='-fno-common'
15534       ;;
15535
15536     msdosdjgpp*)
15537       # Just because we use GCC doesn't mean we suddenly get shared libraries
15538       # on systems that don't support them.
15539       lt_prog_compiler_can_build_shared_GCJ=no
15540       enable_shared=no
15541       ;;
15542
15543     sysv4*MP*)
15544       if test -d /usr/nec; then
15545         lt_prog_compiler_pic_GCJ=-Kconform_pic
15546       fi
15547       ;;
15548
15549     hpux*)
15550       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15551       # not for PA HP-UX.
15552       case "$host_cpu" in
15553       hppa*64*|ia64*)
15554         # +Z the default
15555         ;;
15556       *)
15557         lt_prog_compiler_pic_GCJ='-fPIC'
15558         ;;
15559       esac
15560       ;;
15561
15562     *)
15563       lt_prog_compiler_pic_GCJ='-fPIC'
15564       ;;
15565     esac
15566   else
15567     # PORTME Check for flag to pass linker flags through the system compiler.
15568     case $host_os in
15569     aix*)
15570       lt_prog_compiler_wl_GCJ='-Wl,'
15571       if test "$host_cpu" = ia64; then
15572         # AIX 5 now supports IA64 processor
15573         lt_prog_compiler_static_GCJ='-Bstatic'
15574       else
15575         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15576       fi
15577       ;;
15578
15579     mingw* | pw32* | os2*)
15580       # This hack is so that the source file can tell whether it is being
15581       # built for inclusion in a dll (and should export symbols for example).
15582       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15583       ;;
15584
15585     hpux9* | hpux10* | hpux11*)
15586       lt_prog_compiler_wl_GCJ='-Wl,'
15587       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15588       # not for PA HP-UX.
15589       case "$host_cpu" in
15590       hppa*64*|ia64*)
15591         # +Z the default
15592         ;;
15593       *)
15594         lt_prog_compiler_pic_GCJ='+Z'
15595         ;;
15596       esac
15597       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15598       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15599       ;;
15600
15601     irix5* | irix6* | nonstopux*)
15602       lt_prog_compiler_wl_GCJ='-Wl,'
15603       # PIC (with -KPIC) is the default.
15604       lt_prog_compiler_static_GCJ='-non_shared'
15605       ;;
15606
15607     newsos6)
15608       lt_prog_compiler_pic_GCJ='-KPIC'
15609       lt_prog_compiler_static_GCJ='-Bstatic'
15610       ;;
15611
15612     linux*)
15613       case $CC in
15614       icc* | ecc*)
15615         lt_prog_compiler_wl_GCJ='-Wl,'
15616         lt_prog_compiler_pic_GCJ='-KPIC'
15617         lt_prog_compiler_static_GCJ='-static'
15618         ;;
15619       ccc*)
15620         lt_prog_compiler_wl_GCJ='-Wl,'
15621         # All Alpha code is PIC.
15622         lt_prog_compiler_static_GCJ='-non_shared'
15623         ;;
15624       esac
15625       ;;
15626
15627     osf3* | osf4* | osf5*)
15628       lt_prog_compiler_wl_GCJ='-Wl,'
15629       # All OSF/1 code is PIC.
15630       lt_prog_compiler_static_GCJ='-non_shared'
15631       ;;
15632
15633     sco3.2v5*)
15634       lt_prog_compiler_pic_GCJ='-Kpic'
15635       lt_prog_compiler_static_GCJ='-dn'
15636       ;;
15637
15638     solaris*)
15639       lt_prog_compiler_wl_GCJ='-Wl,'
15640       lt_prog_compiler_pic_GCJ='-KPIC'
15641       lt_prog_compiler_static_GCJ='-Bstatic'
15642       ;;
15643
15644     sunos4*)
15645       lt_prog_compiler_wl_GCJ='-Qoption ld '
15646       lt_prog_compiler_pic_GCJ='-PIC'
15647       lt_prog_compiler_static_GCJ='-Bstatic'
15648       ;;
15649
15650     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15651       lt_prog_compiler_wl_GCJ='-Wl,'
15652       lt_prog_compiler_pic_GCJ='-KPIC'
15653       lt_prog_compiler_static_GCJ='-Bstatic'
15654       ;;
15655
15656     sysv4*MP*)
15657       if test -d /usr/nec ;then
15658         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15659         lt_prog_compiler_static_GCJ='-Bstatic'
15660       fi
15661       ;;
15662
15663     uts4*)
15664       lt_prog_compiler_pic_GCJ='-pic'
15665       lt_prog_compiler_static_GCJ='-Bstatic'
15666       ;;
15667
15668     *)
15669       lt_prog_compiler_can_build_shared_GCJ=no
15670       ;;
15671     esac
15672   fi
15673
15674 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15675 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15676
15677 #
15678 # Check to make sure the PIC flag actually works.
15679 #
15680 if test -n "$lt_prog_compiler_pic_GCJ"; then
15681
15682 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15683 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15684 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15685   echo $ECHO_N "(cached) $ECHO_C" >&6
15686 else
15687   lt_prog_compiler_pic_works_GCJ=no
15688   ac_outfile=conftest.$ac_objext
15689    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15690    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15691    # Insert the option either (1) after the last *FLAGS variable, or
15692    # (2) before a word containing "conftest.", or (3) at the end.
15693    # Note that $ac_compile itself does not contain backslashes and begins
15694    # with a dollar sign (not a hyphen), so the echo should work correctly.
15695    # The option is referenced via a variable to avoid confusing sed.
15696    lt_compile=`echo "$ac_compile" | $SED \
15697    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15699    -e 's:$: $lt_compiler_flag:'`
15700    (eval echo "\"\$as_me:15700: $lt_compile\"" >&5)
15701    (eval "$lt_compile" 2>conftest.err)
15702    ac_status=$?
15703    cat conftest.err >&5
15704    echo "$as_me:15704: \$? = $ac_status" >&5
15705    if (exit $ac_status) && test -s "$ac_outfile"; then
15706      # The compiler can only warn and ignore the option if not recognized
15707      # So say no if there are warnings
15708      if test ! -s conftest.err; then
15709        lt_prog_compiler_pic_works_GCJ=yes
15710      fi
15711    fi
15712    $rm conftest*
15713
15714 fi
15715 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15716 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15717
15718 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15719     case $lt_prog_compiler_pic_GCJ in
15720      "" | " "*) ;;
15721      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15722      esac
15723 else
15724     lt_prog_compiler_pic_GCJ=
15725      lt_prog_compiler_can_build_shared_GCJ=no
15726 fi
15727
15728 fi
15729 case "$host_os" in
15730   # For platforms which do not support PIC, -DPIC is meaningless:
15731   *djgpp*)
15732     lt_prog_compiler_pic_GCJ=
15733     ;;
15734   *)
15735     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15736     ;;
15737 esac
15738
15739 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15741 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15742   echo $ECHO_N "(cached) $ECHO_C" >&6
15743 else
15744   lt_cv_prog_compiler_c_o_GCJ=no
15745    $rm -r conftest 2>/dev/null
15746    mkdir conftest
15747    cd conftest
15748    mkdir out
15749    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15750
15751    lt_compiler_flag="-o out/conftest2.$ac_objext"
15752    # Insert the option either (1) after the last *FLAGS variable, or
15753    # (2) before a word containing "conftest.", or (3) at the end.
15754    # Note that $ac_compile itself does not contain backslashes and begins
15755    # with a dollar sign (not a hyphen), so the echo should work correctly.
15756    lt_compile=`echo "$ac_compile" | $SED \
15757    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15758    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15759    -e 's:$: $lt_compiler_flag:'`
15760    (eval echo "\"\$as_me:15760: $lt_compile\"" >&5)
15761    (eval "$lt_compile" 2>out/conftest.err)
15762    ac_status=$?
15763    cat out/conftest.err >&5
15764    echo "$as_me:15764: \$? = $ac_status" >&5
15765    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15766    then
15767      # The compiler can only warn and ignore the option if not recognized
15768      # So say no if there are warnings
15769      if test ! -s out/conftest.err; then
15770        lt_cv_prog_compiler_c_o_GCJ=yes
15771      fi
15772    fi
15773    chmod u+w .
15774    $rm conftest*
15775    # SGI C++ compiler will create directory out/ii_files/ for
15776    # template instantiation
15777    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15778    $rm out/* && rmdir out
15779    cd ..
15780    rmdir conftest
15781    $rm conftest*
15782
15783 fi
15784 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15785 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15786
15787
15788 hard_links="nottested"
15789 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15790   # do not overwrite the value of need_locks provided by the user
15791   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15792 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15793   hard_links=yes
15794   $rm conftest*
15795   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15796   touch conftest.a
15797   ln conftest.a conftest.b 2>&5 || hard_links=no
15798   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15799   echo "$as_me:$LINENO: result: $hard_links" >&5
15800 echo "${ECHO_T}$hard_links" >&6
15801   if test "$hard_links" = no; then
15802     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15803 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15804     need_locks=warn
15805   fi
15806 else
15807   need_locks=no
15808 fi
15809
15810 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15811 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15812
15813   runpath_var=
15814   allow_undefined_flag_GCJ=
15815   enable_shared_with_static_runtimes_GCJ=no
15816   archive_cmds_GCJ=
15817   archive_expsym_cmds_GCJ=
15818   old_archive_From_new_cmds_GCJ=
15819   old_archive_from_expsyms_cmds_GCJ=
15820   export_dynamic_flag_spec_GCJ=
15821   whole_archive_flag_spec_GCJ=
15822   thread_safe_flag_spec_GCJ=
15823   hardcode_libdir_flag_spec_GCJ=
15824   hardcode_libdir_flag_spec_ld_GCJ=
15825   hardcode_libdir_separator_GCJ=
15826   hardcode_direct_GCJ=no
15827   hardcode_minus_L_GCJ=no
15828   hardcode_shlibpath_var_GCJ=unsupported
15829   link_all_deplibs_GCJ=unknown
15830   hardcode_automatic_GCJ=no
15831   module_cmds_GCJ=
15832   module_expsym_cmds_GCJ=
15833   always_export_symbols_GCJ=no
15834   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15835   # include_expsyms should be a list of space-separated symbols to be *always*
15836   # included in the symbol list
15837   include_expsyms_GCJ=
15838   # exclude_expsyms can be an extended regexp of symbols to exclude
15839   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15840   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15841   # as well as any symbol that contains `d'.
15842   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15843   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15844   # platforms (ab)use it in PIC code, but their linkers get confused if
15845   # the symbol is explicitly referenced.  Since portable code cannot
15846   # rely on this symbol name, it's probably fine to never include it in
15847   # preloaded symbol tables.
15848   extract_expsyms_cmds=
15849
15850   case $host_os in
15851   cygwin* | mingw* | pw32*)
15852     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15853     # When not using gcc, we currently assume that we are using
15854     # Microsoft Visual C++.
15855     if test "$GCC" != yes; then
15856       with_gnu_ld=no
15857     fi
15858     ;;
15859   openbsd*)
15860     with_gnu_ld=no
15861     ;;
15862   esac
15863
15864   ld_shlibs_GCJ=yes
15865   if test "$with_gnu_ld" = yes; then
15866     # If archive_cmds runs LD, not CC, wlarc should be empty
15867     wlarc='${wl}'
15868
15869     # See if GNU ld supports shared libraries.
15870     case $host_os in
15871     aix3* | aix4* | aix5*)
15872       # On AIX/PPC, the GNU linker is very broken
15873       if test "$host_cpu" != ia64; then
15874         ld_shlibs_GCJ=no
15875         cat <<EOF 1>&2
15876
15877 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15878 *** to be unable to reliably create shared libraries on AIX.
15879 *** Therefore, libtool is disabling shared libraries support.  If you
15880 *** really care for shared libraries, you may want to modify your PATH
15881 *** so that a non-GNU linker is found, and then restart.
15882
15883 EOF
15884       fi
15885       ;;
15886
15887     amigaos*)
15888       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)'
15889       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15890       hardcode_minus_L_GCJ=yes
15891
15892       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15893       # that the semantics of dynamic libraries on AmigaOS, at least up
15894       # to version 4, is to share data among multiple programs linked
15895       # with the same dynamic library.  Since this doesn't match the
15896       # behavior of shared libraries on other platforms, we can't use
15897       # them.
15898       ld_shlibs_GCJ=no
15899       ;;
15900
15901     beos*)
15902       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15903         allow_undefined_flag_GCJ=unsupported
15904         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15905         # support --undefined.  This deserves some investigation.  FIXME
15906         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15907       else
15908         ld_shlibs_GCJ=no
15909       fi
15910       ;;
15911
15912     cygwin* | mingw* | pw32*)
15913       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15914       # as there is no search path for DLLs.
15915       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15916       allow_undefined_flag_GCJ=unsupported
15917       always_export_symbols_GCJ=no
15918       enable_shared_with_static_runtimes_GCJ=yes
15919       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15920
15921       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15922         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15923         # If the export-symbols file already is a .def file (1st line
15924         # is EXPORTS), use it as is; otherwise, prepend...
15925         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15926           cp $export_symbols $output_objdir/$soname.def;
15927         else
15928           echo EXPORTS > $output_objdir/$soname.def;
15929           cat $export_symbols >> $output_objdir/$soname.def;
15930         fi~
15931         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15932       else
15933         ld_shlibs=no
15934       fi
15935       ;;
15936
15937     netbsd* | knetbsd*-gnu)
15938       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15939         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15940         wlarc=
15941       else
15942         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15943         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15944       fi
15945       ;;
15946
15947     solaris* | sysv5*)
15948       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15949         ld_shlibs_GCJ=no
15950         cat <<EOF 1>&2
15951
15952 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15953 *** create shared libraries on Solaris systems.  Therefore, libtool
15954 *** is disabling shared libraries support.  We urge you to upgrade GNU
15955 *** binutils to release 2.9.1 or newer.  Another option is to modify
15956 *** your PATH or compiler configuration so that the native linker is
15957 *** used, and then restart.
15958
15959 EOF
15960       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15961         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15963       else
15964         ld_shlibs_GCJ=no
15965       fi
15966       ;;
15967
15968     sunos4*)
15969       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15970       wlarc=
15971       hardcode_direct_GCJ=yes
15972       hardcode_shlibpath_var_GCJ=no
15973       ;;
15974
15975   linux*)
15976     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15977         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15978         archive_cmds_GCJ="$tmp_archive_cmds"
15979       supports_anon_versioning=no
15980       case `$LD -v 2>/dev/null` in
15981         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15982         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15983         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15984         *\ 2.11.*) ;; # other 2.11 versions
15985         *) supports_anon_versioning=yes ;;
15986       esac
15987       if test $supports_anon_versioning = yes; then
15988         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15990 $echo "local: *; };" >> $output_objdir/$libname.ver~
15991         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15992       else
15993         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15994       fi
15995       link_all_deplibs_GCJ=no
15996     else
15997       ld_shlibs_GCJ=no
15998     fi
15999     ;;
16000
16001     *)
16002       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16003         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16004         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16005       else
16006         ld_shlibs_GCJ=no
16007       fi
16008       ;;
16009     esac
16010
16011     if test "$ld_shlibs_GCJ" = yes; then
16012       runpath_var=LD_RUN_PATH
16013       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16014       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16015       # ancient GNU ld didn't support --whole-archive et. al.
16016       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16017         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16018       else
16019         whole_archive_flag_spec_GCJ=
16020       fi
16021     fi
16022   else
16023     # PORTME fill in a description of your system's linker (not GNU ld)
16024     case $host_os in
16025     aix3*)
16026       allow_undefined_flag_GCJ=unsupported
16027       always_export_symbols_GCJ=yes
16028       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'
16029       # Note: this linker hardcodes the directories in LIBPATH if there
16030       # are no directories specified by -L.
16031       hardcode_minus_L_GCJ=yes
16032       if test "$GCC" = yes && test -z "$link_static_flag"; then
16033         # Neither direct hardcoding nor static linking is supported with a
16034         # broken collect2.
16035         hardcode_direct_GCJ=unsupported
16036       fi
16037       ;;
16038
16039     aix4* | aix5*)
16040       if test "$host_cpu" = ia64; then
16041         # On IA64, the linker does run time linking by default, so we don't
16042         # have to do anything special.
16043         aix_use_runtimelinking=no
16044         exp_sym_flag='-Bexport'
16045         no_entry_flag=""
16046       else
16047         # If we're using GNU nm, then we don't want the "-C" option.
16048         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16049         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16050           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'
16051         else
16052           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'
16053         fi
16054         aix_use_runtimelinking=no
16055
16056         # Test if we are trying to use run time linking or normal
16057         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16058         # need to do runtime linking.
16059         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16060           for ld_flag in $LDFLAGS; do
16061           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16062             aix_use_runtimelinking=yes
16063             break
16064           fi
16065           done
16066         esac
16067
16068         exp_sym_flag='-bexport'
16069         no_entry_flag='-bnoentry'
16070       fi
16071
16072       # When large executables or shared objects are built, AIX ld can
16073       # have problems creating the table of contents.  If linking a library
16074       # or program results in "error TOC overflow" add -mminimal-toc to
16075       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16076       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16077
16078       archive_cmds_GCJ=''
16079       hardcode_direct_GCJ=yes
16080       hardcode_libdir_separator_GCJ=':'
16081       link_all_deplibs_GCJ=yes
16082
16083       if test "$GCC" = yes; then
16084         case $host_os in aix4.012|aix4.012.*)
16085         # We only want to do this on AIX 4.2 and lower, the check
16086         # below for broken collect2 doesn't work under 4.3+
16087           collect2name=`${CC} -print-prog-name=collect2`
16088           if test -f "$collect2name" && \
16089            strings "$collect2name" | grep resolve_lib_name >/dev/null
16090           then
16091           # We have reworked collect2
16092           hardcode_direct_GCJ=yes
16093           else
16094           # We have old collect2
16095           hardcode_direct_GCJ=unsupported
16096           # It fails to find uninstalled libraries when the uninstalled
16097           # path is not listed in the libpath.  Setting hardcode_minus_L
16098           # to unsupported forces relinking
16099           hardcode_minus_L_GCJ=yes
16100           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16101           hardcode_libdir_separator_GCJ=
16102           fi
16103         esac
16104         shared_flag='-shared'
16105       else
16106         # not using gcc
16107         if test "$host_cpu" = ia64; then
16108         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16109         # chokes on -Wl,-G. The following line is correct:
16110           shared_flag='-G'
16111         else
16112         if test "$aix_use_runtimelinking" = yes; then
16113             shared_flag='${wl}-G'
16114           else
16115             shared_flag='${wl}-bM:SRE'
16116         fi
16117         fi
16118       fi
16119
16120       # It seems that -bexpall does not export symbols beginning with
16121       # underscore (_), so it is better to generate a list of symbols to export.
16122       always_export_symbols_GCJ=yes
16123       if test "$aix_use_runtimelinking" = yes; then
16124         # Warning - without using the other runtime loading flags (-brtl),
16125         # -berok will link without error, but may produce a broken library.
16126         allow_undefined_flag_GCJ='-berok'
16127        # Determine the default libpath from the value encoded in an empty executable.
16128        cat >conftest.$ac_ext <<_ACEOF
16129 /* confdefs.h.  */
16130 _ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h.  */
16134
16135 int
16136 main ()
16137 {
16138
16139   ;
16140   return 0;
16141 }
16142 _ACEOF
16143 rm -f conftest.$ac_objext conftest$ac_exeext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16145   (eval $ac_link) 2>conftest.er1
16146   ac_status=$?
16147   grep -v '^ *+' conftest.er1 >conftest.err
16148   rm -f conftest.er1
16149   cat conftest.err >&5
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); } &&
16152          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154   (eval $ac_try) 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); }; } &&
16158          { ac_try='test -s conftest$ac_exeext'
16159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160   (eval $ac_try) 2>&5
16161   ac_status=$?
16162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); }; }; then
16164
16165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16166 }'`
16167 # Check for a 64-bit object if we didn't find anything.
16168 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; }
16169 }'`; fi
16170 else
16171   echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174 fi
16175 rm -f conftest.err conftest.$ac_objext \
16176       conftest$ac_exeext conftest.$ac_ext
16177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16178
16179        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16180         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"
16181        else
16182         if test "$host_cpu" = ia64; then
16183           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16184           allow_undefined_flag_GCJ="-z nodefs"
16185           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"
16186         else
16187          # Determine the default libpath from the value encoded in an empty executable.
16188          cat >conftest.$ac_ext <<_ACEOF
16189 /* confdefs.h.  */
16190 _ACEOF
16191 cat confdefs.h >>conftest.$ac_ext
16192 cat >>conftest.$ac_ext <<_ACEOF
16193 /* end confdefs.h.  */
16194
16195 int
16196 main ()
16197 {
16198
16199   ;
16200   return 0;
16201 }
16202 _ACEOF
16203 rm -f conftest.$ac_objext conftest$ac_exeext
16204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16205   (eval $ac_link) 2>conftest.er1
16206   ac_status=$?
16207   grep -v '^ *+' conftest.er1 >conftest.err
16208   rm -f conftest.er1
16209   cat conftest.err >&5
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } &&
16212          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214   (eval $ac_try) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; } &&
16218          { ac_try='test -s conftest$ac_exeext'
16219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220   (eval $ac_try) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; }; then
16224
16225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16226 }'`
16227 # Check for a 64-bit object if we didn't find anything.
16228 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; }
16229 }'`; fi
16230 else
16231   echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16233
16234 fi
16235 rm -f conftest.err conftest.$ac_objext \
16236       conftest$ac_exeext conftest.$ac_ext
16237 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16238
16239          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16240           # Warning - without using the other run time loading flags,
16241           # -berok will link without error, but may produce a broken library.
16242           no_undefined_flag_GCJ=' ${wl}-bernotok'
16243           allow_undefined_flag_GCJ=' ${wl}-berok'
16244           # -bexpall does not export symbols beginning with underscore (_)
16245           always_export_symbols_GCJ=yes
16246           # Exported symbols can be pulled into shared objects from archives
16247           whole_archive_flag_spec_GCJ=' '
16248           archive_cmds_need_lc_GCJ=yes
16249           # This is similar to how AIX traditionally builds it's shared libraries.
16250           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'
16251         fi
16252       fi
16253       ;;
16254
16255     amigaos*)
16256       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)'
16257       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16258       hardcode_minus_L_GCJ=yes
16259       # see comment about different semantics on the GNU ld section
16260       ld_shlibs_GCJ=no
16261       ;;
16262
16263     bsdi4*)
16264       export_dynamic_flag_spec_GCJ=-rdynamic
16265       ;;
16266
16267     cygwin* | mingw* | pw32*)
16268       # When not using gcc, we currently assume that we are using
16269       # Microsoft Visual C++.
16270       # hardcode_libdir_flag_spec is actually meaningless, as there is
16271       # no search path for DLLs.
16272       hardcode_libdir_flag_spec_GCJ=' '
16273       allow_undefined_flag_GCJ=unsupported
16274       # Tell ltmain to make .lib files, not .a files.
16275       libext=lib
16276       # Tell ltmain to make .dll files, not .so files.
16277       shrext_cmds=".dll"
16278       # FIXME: Setting linknames here is a bad hack.
16279       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16280       # The linker will automatically build a .lib file if we build a DLL.
16281       old_archive_From_new_cmds_GCJ='true'
16282       # FIXME: Should let the user specify the lib program.
16283       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16284       fix_srcfile_path='`cygpath -w "$srcfile"`'
16285       enable_shared_with_static_runtimes_GCJ=yes
16286       ;;
16287
16288     darwin* | rhapsody*)
16289     if test "$GXX" = yes ; then
16290       archive_cmds_need_lc_GCJ=no
16291       case "$host_os" in
16292       rhapsody* | darwin1.[012])
16293         allow_undefined_flag_GCJ='-undefined suppress'
16294         ;;
16295       *) # Darwin 1.3 on
16296       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16297         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16298       else
16299         case ${MACOSX_DEPLOYMENT_TARGET} in
16300           10.[012])
16301             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16302             ;;
16303           10.*)
16304             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16305             ;;
16306         esac
16307       fi
16308         ;;
16309       esac
16310         lt_int_apple_cc_single_mod=no
16311         output_verbose_link_cmd='echo'
16312         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16313           lt_int_apple_cc_single_mod=yes
16314         fi
16315         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16316           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16317         else
16318         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'
16319       fi
16320       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16321       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16322         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16323           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}'
16324         else
16325           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}'
16326         fi
16327           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}'
16328       hardcode_direct_GCJ=no
16329       hardcode_automatic_GCJ=yes
16330       hardcode_shlibpath_var_GCJ=unsupported
16331       whole_archive_flag_spec_GCJ='-all_load $convenience'
16332       link_all_deplibs_GCJ=yes
16333     else
16334       ld_shlibs_GCJ=no
16335     fi
16336       ;;
16337
16338     dgux*)
16339       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16340       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16341       hardcode_shlibpath_var_GCJ=no
16342       ;;
16343
16344     freebsd1*)
16345       ld_shlibs_GCJ=no
16346       ;;
16347
16348     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16349     # support.  Future versions do this automatically, but an explicit c++rt0.o
16350     # does not break anything, and helps significantly (at the cost of a little
16351     # extra space).
16352     freebsd2.2*)
16353       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16354       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16355       hardcode_direct_GCJ=yes
16356       hardcode_shlibpath_var_GCJ=no
16357       ;;
16358
16359     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16360     freebsd2*)
16361       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16362       hardcode_direct_GCJ=yes
16363       hardcode_minus_L_GCJ=yes
16364       hardcode_shlibpath_var_GCJ=no
16365       ;;
16366
16367     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16368     freebsd* | kfreebsd*-gnu)
16369       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16370       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16371       hardcode_direct_GCJ=yes
16372       hardcode_shlibpath_var_GCJ=no
16373       ;;
16374
16375     hpux9*)
16376       if test "$GCC" = yes; then
16377         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'
16378       else
16379         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'
16380       fi
16381       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16382       hardcode_libdir_separator_GCJ=:
16383       hardcode_direct_GCJ=yes
16384
16385       # hardcode_minus_L: Not really in the search PATH,
16386       # but as the default location of the library.
16387       hardcode_minus_L_GCJ=yes
16388       export_dynamic_flag_spec_GCJ='${wl}-E'
16389       ;;
16390
16391     hpux10* | hpux11*)
16392       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16393         case "$host_cpu" in
16394         hppa*64*|ia64*)
16395           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16396           ;;
16397         *)
16398           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16399           ;;
16400         esac
16401       else
16402         case "$host_cpu" in
16403         hppa*64*|ia64*)
16404           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16405           ;;
16406         *)
16407           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16408           ;;
16409         esac
16410       fi
16411       if test "$with_gnu_ld" = no; then
16412         case "$host_cpu" in
16413         hppa*64*)
16414           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16415           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16416           hardcode_libdir_separator_GCJ=:
16417           hardcode_direct_GCJ=no
16418           hardcode_shlibpath_var_GCJ=no
16419           ;;
16420         ia64*)
16421           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16422           hardcode_direct_GCJ=no
16423           hardcode_shlibpath_var_GCJ=no
16424
16425           # hardcode_minus_L: Not really in the search PATH,
16426           # but as the default location of the library.
16427           hardcode_minus_L_GCJ=yes
16428           ;;
16429         *)
16430           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16431           hardcode_libdir_separator_GCJ=:
16432           hardcode_direct_GCJ=yes
16433           export_dynamic_flag_spec_GCJ='${wl}-E'
16434
16435           # hardcode_minus_L: Not really in the search PATH,
16436           # but as the default location of the library.
16437           hardcode_minus_L_GCJ=yes
16438           ;;
16439         esac
16440       fi
16441       ;;
16442
16443     irix5* | irix6* | nonstopux*)
16444       if test "$GCC" = yes; then
16445         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'
16446       else
16447         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'
16448         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16449       fi
16450       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16451       hardcode_libdir_separator_GCJ=:
16452       link_all_deplibs_GCJ=yes
16453       ;;
16454
16455     netbsd* | knetbsd*-gnu)
16456       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16457         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16458       else
16459         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16460       fi
16461       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16462       hardcode_direct_GCJ=yes
16463       hardcode_shlibpath_var_GCJ=no
16464       ;;
16465
16466     newsos6)
16467       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468       hardcode_direct_GCJ=yes
16469       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16470       hardcode_libdir_separator_GCJ=:
16471       hardcode_shlibpath_var_GCJ=no
16472       ;;
16473
16474     openbsd*)
16475       hardcode_direct_GCJ=yes
16476       hardcode_shlibpath_var_GCJ=no
16477       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16478         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16479         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16480         export_dynamic_flag_spec_GCJ='${wl}-E'
16481       else
16482        case $host_os in
16483          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16484            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16485            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16486            ;;
16487          *)
16488            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16489            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16490            ;;
16491        esac
16492       fi
16493       ;;
16494
16495     os2*)
16496       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16497       hardcode_minus_L_GCJ=yes
16498       allow_undefined_flag_GCJ=unsupported
16499       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'
16500       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16501       ;;
16502
16503     osf3*)
16504       if test "$GCC" = yes; then
16505         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16506         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'
16507       else
16508         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16509         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'
16510       fi
16511       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16512       hardcode_libdir_separator_GCJ=:
16513       ;;
16514
16515     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16516       if test "$GCC" = yes; then
16517         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16518         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'
16519         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16520       else
16521         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16522         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'
16523         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~
16524         $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'
16525
16526         # Both c and cxx compiler support -rpath directly
16527         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16528       fi
16529       hardcode_libdir_separator_GCJ=:
16530       ;;
16531
16532     sco3.2v5*)
16533       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534       hardcode_shlibpath_var_GCJ=no
16535       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16536       runpath_var=LD_RUN_PATH
16537       hardcode_runpath_var=yes
16538       ;;
16539
16540     solaris*)
16541       no_undefined_flag_GCJ=' -z text'
16542       if test "$GCC" = yes; then
16543         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16544         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16545           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16546       else
16547         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16548         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16549         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16550       fi
16551       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16552       hardcode_shlibpath_var_GCJ=no
16553       case $host_os in
16554       solaris2.[0-5] | solaris2.[0-5].*) ;;
16555       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16556         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16557       esac
16558       link_all_deplibs_GCJ=yes
16559       ;;
16560
16561     sunos4*)
16562       if test "x$host_vendor" = xsequent; then
16563         # Use $CC to link under sequent, because it throws in some extra .o
16564         # files that make .init and .fini sections work.
16565         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16566       else
16567         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16568       fi
16569       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16570       hardcode_direct_GCJ=yes
16571       hardcode_minus_L_GCJ=yes
16572       hardcode_shlibpath_var_GCJ=no
16573       ;;
16574
16575     sysv4)
16576       case $host_vendor in
16577         sni)
16578           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16579           hardcode_direct_GCJ=yes # is this really true???
16580         ;;
16581         siemens)
16582           ## LD is ld it makes a PLAMLIB
16583           ## CC just makes a GrossModule.
16584           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16585           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16586           hardcode_direct_GCJ=no
16587         ;;
16588         motorola)
16589           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16591         ;;
16592       esac
16593       runpath_var='LD_RUN_PATH'
16594       hardcode_shlibpath_var_GCJ=no
16595       ;;
16596
16597     sysv4.3*)
16598       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599       hardcode_shlibpath_var_GCJ=no
16600       export_dynamic_flag_spec_GCJ='-Bexport'
16601       ;;
16602
16603     sysv4*MP*)
16604       if test -d /usr/nec; then
16605         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606         hardcode_shlibpath_var_GCJ=no
16607         runpath_var=LD_RUN_PATH
16608         hardcode_runpath_var=yes
16609         ld_shlibs_GCJ=yes
16610       fi
16611       ;;
16612
16613     sysv4.2uw2*)
16614       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16615       hardcode_direct_GCJ=yes
16616       hardcode_minus_L_GCJ=no
16617       hardcode_shlibpath_var_GCJ=no
16618       hardcode_runpath_var=yes
16619       runpath_var=LD_RUN_PATH
16620       ;;
16621
16622    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16623       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16624       if test "$GCC" = yes; then
16625         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16626       else
16627         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16628       fi
16629       runpath_var='LD_RUN_PATH'
16630       hardcode_shlibpath_var_GCJ=no
16631       ;;
16632
16633     sysv5*)
16634       no_undefined_flag_GCJ=' -z text'
16635       # $CC -shared without GNU ld will not create a library from C++
16636       # object files and a static libstdc++, better avoid it by now
16637       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16639                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16640       hardcode_libdir_flag_spec_GCJ=
16641       hardcode_shlibpath_var_GCJ=no
16642       runpath_var='LD_RUN_PATH'
16643       ;;
16644
16645     uts4*)
16646       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16647       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16648       hardcode_shlibpath_var_GCJ=no
16649       ;;
16650
16651     *)
16652       ld_shlibs_GCJ=no
16653       ;;
16654     esac
16655   fi
16656
16657 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16658 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16659 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16660
16661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16662 if test "$GCC" = yes; then
16663   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16664 fi
16665
16666 #
16667 # Do we need to explicitly link libc?
16668 #
16669 case "x$archive_cmds_need_lc_GCJ" in
16670 x|xyes)
16671   # Assume -lc should be added
16672   archive_cmds_need_lc_GCJ=yes
16673
16674   if test "$enable_shared" = yes && test "$GCC" = yes; then
16675     case $archive_cmds_GCJ in
16676     *'~'*)
16677       # FIXME: we may have to deal with multi-command sequences.
16678       ;;
16679     '$CC '*)
16680       # Test whether the compiler implicitly links with -lc since on some
16681       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16682       # to ld, don't add -lc before -lgcc.
16683       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16684 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16685       $rm conftest*
16686       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16687
16688       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16689   (eval $ac_compile) 2>&5
16690   ac_status=$?
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } 2>conftest.err; then
16693         soname=conftest
16694         lib=conftest
16695         libobjs=conftest.$ac_objext
16696         deplibs=
16697         wl=$lt_prog_compiler_wl_GCJ
16698         compiler_flags=-v
16699         linker_flags=-v
16700         verstring=
16701         output_objdir=.
16702         libname=conftest
16703         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16704         allow_undefined_flag_GCJ=
16705         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16706   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16707   ac_status=$?
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); }
16710         then
16711           archive_cmds_need_lc_GCJ=no
16712         else
16713           archive_cmds_need_lc_GCJ=yes
16714         fi
16715         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16716       else
16717         cat conftest.err 1>&5
16718       fi
16719       $rm conftest*
16720       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16721 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16722       ;;
16723     esac
16724   fi
16725   ;;
16726 esac
16727
16728 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16729 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16730 library_names_spec=
16731 libname_spec='lib$name'
16732 soname_spec=
16733 shrext_cmds=".so"
16734 postinstall_cmds=
16735 postuninstall_cmds=
16736 finish_cmds=
16737 finish_eval=
16738 shlibpath_var=
16739 shlibpath_overrides_runpath=unknown
16740 version_type=none
16741 dynamic_linker="$host_os ld.so"
16742 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16743 if test "$GCC" = yes; then
16744   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16745   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16746     # if the path contains ";" then we assume it to be the separator
16747     # otherwise default to the standard path separator (i.e. ":") - it is
16748     # assumed that no part of a normal pathname contains ";" but that should
16749     # okay in the real world where ";" in dirpaths is itself problematic.
16750     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16751   else
16752     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16753   fi
16754 else
16755   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16756 fi
16757 need_lib_prefix=unknown
16758 hardcode_into_libs=no
16759
16760 # when you set need_version to no, make sure it does not cause -set_version
16761 # flags to be left without arguments
16762 need_version=unknown
16763
16764 case $host_os in
16765 aix3*)
16766   version_type=linux
16767   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16768   shlibpath_var=LIBPATH
16769
16770   # AIX 3 has no versioning support, so we append a major version to the name.
16771   soname_spec='${libname}${release}${shared_ext}$major'
16772   ;;
16773
16774 aix4* | aix5*)
16775   version_type=linux
16776   need_lib_prefix=no
16777   need_version=no
16778   hardcode_into_libs=yes
16779   if test "$host_cpu" = ia64; then
16780     # AIX 5 supports IA64
16781     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16782     shlibpath_var=LD_LIBRARY_PATH
16783   else
16784     # With GCC up to 2.95.x, collect2 would create an import file
16785     # for dependence libraries.  The import file would start with
16786     # the line `#! .'.  This would cause the generated library to
16787     # depend on `.', always an invalid library.  This was fixed in
16788     # development snapshots of GCC prior to 3.0.
16789     case $host_os in
16790       aix4 | aix4.[01] | aix4.[01].*)
16791       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16792            echo ' yes '
16793            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16794         :
16795       else
16796         can_build_shared=no
16797       fi
16798       ;;
16799     esac
16800     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16801     # soname into executable. Probably we can add versioning support to
16802     # collect2, so additional links can be useful in future.
16803     if test "$aix_use_runtimelinking" = yes; then
16804       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16805       # instead of lib<name>.a to let people know that these are not
16806       # typical AIX shared libraries.
16807       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16808     else
16809       # We preserve .a as extension for shared libraries through AIX4.2
16810       # and later when we are not doing run time linking.
16811       library_names_spec='${libname}${release}.a $libname.a'
16812       soname_spec='${libname}${release}${shared_ext}$major'
16813     fi
16814     shlibpath_var=LIBPATH
16815   fi
16816   ;;
16817
16818 amigaos*)
16819   library_names_spec='$libname.ixlibrary $libname.a'
16820   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16821   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'
16822   ;;
16823
16824 beos*)
16825   library_names_spec='${libname}${shared_ext}'
16826   dynamic_linker="$host_os ld.so"
16827   shlibpath_var=LIBRARY_PATH
16828   ;;
16829
16830 bsdi4*)
16831   version_type=linux
16832   need_version=no
16833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16834   soname_spec='${libname}${release}${shared_ext}$major'
16835   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16836   shlibpath_var=LD_LIBRARY_PATH
16837   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16838   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16839   # the default ld.so.conf also contains /usr/contrib/lib and
16840   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16841   # libtool to hard-code these into programs
16842   ;;
16843
16844 cygwin* | mingw* | pw32*)
16845   version_type=windows
16846   shrext_cmds=".dll"
16847   need_version=no
16848   need_lib_prefix=no
16849
16850   case $GCC,$host_os in
16851   yes,cygwin* | yes,mingw* | yes,pw32*)
16852     library_names_spec='$libname.dll.a'
16853     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16854     postinstall_cmds='base_file=`basename \${file}`~
16855       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16856       dldir=$destdir/`dirname \$dlpath`~
16857       test -d \$dldir || mkdir -p \$dldir~
16858       $install_prog $dir/$dlname \$dldir/$dlname'
16859     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16860       dlpath=$dir/\$dldll~
16861        $rm \$dlpath'
16862     shlibpath_overrides_runpath=yes
16863
16864     case $host_os in
16865     cygwin*)
16866       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16867       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16868       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16869       ;;
16870     mingw*)
16871       # MinGW DLLs use traditional 'lib' prefix
16872       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16873       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16874       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16875         # It is most probably a Windows format PATH printed by
16876         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16877         # path with ; separators, and with drive letters. We can handle the
16878         # drive letters (cygwin fileutils understands them), so leave them,
16879         # especially as we might pass files found there to a mingw objdump,
16880         # which wouldn't understand a cygwinified path. Ahh.
16881         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16882       else
16883         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16884       fi
16885       ;;
16886     pw32*)
16887       # pw32 DLLs use 'pw' prefix rather than 'lib'
16888       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16889       ;;
16890     esac
16891     ;;
16892
16893   *)
16894     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16895     ;;
16896   esac
16897   dynamic_linker='Win32 ld.exe'
16898   # FIXME: first we should search . and the directory the executable is in
16899   shlibpath_var=PATH
16900   ;;
16901
16902 darwin* | rhapsody*)
16903   dynamic_linker="$host_os dyld"
16904   version_type=darwin
16905   need_lib_prefix=no
16906   need_version=no
16907   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16908   soname_spec='${libname}${release}${major}$shared_ext'
16909   shlibpath_overrides_runpath=yes
16910   shlibpath_var=DYLD_LIBRARY_PATH
16911   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16912   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16913   if test "$GCC" = yes; then
16914     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"`
16915   else
16916     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16917   fi
16918   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16919   ;;
16920
16921 dgux*)
16922   version_type=linux
16923   need_lib_prefix=no
16924   need_version=no
16925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16926   soname_spec='${libname}${release}${shared_ext}$major'
16927   shlibpath_var=LD_LIBRARY_PATH
16928   ;;
16929
16930 freebsd1*)
16931   dynamic_linker=no
16932   ;;
16933
16934 kfreebsd*-gnu)
16935   version_type=linux
16936   need_lib_prefix=no
16937   need_version=no
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16939   soname_spec='${libname}${release}${shared_ext}$major'
16940   shlibpath_var=LD_LIBRARY_PATH
16941   shlibpath_overrides_runpath=no
16942   hardcode_into_libs=yes
16943   dynamic_linker='GNU ld.so'
16944   ;;
16945
16946 freebsd*)
16947   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16948   version_type=freebsd-$objformat
16949   case $version_type in
16950     freebsd-elf*)
16951       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16952       need_version=no
16953       need_lib_prefix=no
16954       ;;
16955     freebsd-*)
16956       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16957       need_version=yes
16958       ;;
16959   esac
16960   shlibpath_var=LD_LIBRARY_PATH
16961   case $host_os in
16962   freebsd2*)
16963     shlibpath_overrides_runpath=yes
16964     ;;
16965   freebsd3.01* | freebsdelf3.01*)
16966     shlibpath_overrides_runpath=yes
16967     hardcode_into_libs=yes
16968     ;;
16969   *) # from 3.2 on
16970     shlibpath_overrides_runpath=no
16971     hardcode_into_libs=yes
16972     ;;
16973   esac
16974   ;;
16975
16976 gnu*)
16977   version_type=linux
16978   need_lib_prefix=no
16979   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
16983   hardcode_into_libs=yes
16984   ;;
16985
16986 hpux9* | hpux10* | hpux11*)
16987   # Give a soname corresponding to the major version so that dld.sl refuses to
16988   # link against other versions.
16989   version_type=sunos
16990   need_lib_prefix=no
16991   need_version=no
16992   case "$host_cpu" in
16993   ia64*)
16994     shrext_cmds='.so'
16995     hardcode_into_libs=yes
16996     dynamic_linker="$host_os dld.so"
16997     shlibpath_var=LD_LIBRARY_PATH
16998     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16999     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000     soname_spec='${libname}${release}${shared_ext}$major'
17001     if test "X$HPUX_IA64_MODE" = X32; then
17002       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17003     else
17004       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17005     fi
17006     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17007     ;;
17008    hppa*64*)
17009      shrext_cmds='.sl'
17010      hardcode_into_libs=yes
17011      dynamic_linker="$host_os dld.sl"
17012      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17013      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17014      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17015      soname_spec='${libname}${release}${shared_ext}$major'
17016      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17017      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17018      ;;
17019    *)
17020     shrext_cmds='.sl'
17021     dynamic_linker="$host_os dld.sl"
17022     shlibpath_var=SHLIB_PATH
17023     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17024     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17025     soname_spec='${libname}${release}${shared_ext}$major'
17026     ;;
17027   esac
17028   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17029   postinstall_cmds='chmod 555 $lib'
17030   ;;
17031
17032 irix5* | irix6* | nonstopux*)
17033   case $host_os in
17034     nonstopux*) version_type=nonstopux ;;
17035     *)
17036         if test "$lt_cv_prog_gnu_ld" = yes; then
17037                 version_type=linux
17038         else
17039                 version_type=irix
17040         fi ;;
17041   esac
17042   need_lib_prefix=no
17043   need_version=no
17044   soname_spec='${libname}${release}${shared_ext}$major'
17045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17046   case $host_os in
17047   irix5* | nonstopux*)
17048     libsuff= shlibsuff=
17049     ;;
17050   *)
17051     case $LD in # libtool.m4 will add one of these switches to LD
17052     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17053       libsuff= shlibsuff= libmagic=32-bit;;
17054     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17055       libsuff=32 shlibsuff=N32 libmagic=N32;;
17056     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17057       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17058     *) libsuff= shlibsuff= libmagic=never-match;;
17059     esac
17060     ;;
17061   esac
17062   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17063   shlibpath_overrides_runpath=no
17064   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17065   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17066   hardcode_into_libs=yes
17067   ;;
17068
17069 # No shared lib support for Linux oldld, aout, or coff.
17070 linux*oldld* | linux*aout* | linux*coff*)
17071   dynamic_linker=no
17072   ;;
17073
17074 # This must be Linux ELF.
17075 linux*)
17076   version_type=linux
17077   need_lib_prefix=no
17078   need_version=no
17079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080   soname_spec='${libname}${release}${shared_ext}$major'
17081   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17082   shlibpath_var=LD_LIBRARY_PATH
17083   shlibpath_overrides_runpath=no
17084   # This implies no fast_install, which is unacceptable.
17085   # Some rework will be needed to allow for fast_install
17086   # before this can be enabled.
17087   hardcode_into_libs=yes
17088
17089   # Append ld.so.conf contents to the search path
17090   if test -f /etc/ld.so.conf; then
17091     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17092     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17093   fi
17094
17095   # We used to test for /lib/ld.so.1 and disable shared libraries on
17096   # powerpc, because MkLinux only supported shared libraries with the
17097   # GNU dynamic linker.  Since this was broken with cross compilers,
17098   # most powerpc-linux boxes support dynamic linking these days and
17099   # people can always --disable-shared, the test was removed, and we
17100   # assume the GNU/Linux dynamic linker is in use.
17101   dynamic_linker='GNU/Linux ld.so'
17102   ;;
17103
17104 knetbsd*-gnu)
17105   version_type=linux
17106   need_lib_prefix=no
17107   need_version=no
17108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109   soname_spec='${libname}${release}${shared_ext}$major'
17110   shlibpath_var=LD_LIBRARY_PATH
17111   shlibpath_overrides_runpath=no
17112   hardcode_into_libs=yes
17113   dynamic_linker='GNU ld.so'
17114   ;;
17115
17116 netbsd*)
17117   version_type=sunos
17118   need_lib_prefix=no
17119   need_version=no
17120   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17121     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17122     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17123     dynamic_linker='NetBSD (a.out) ld.so'
17124   else
17125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17126     soname_spec='${libname}${release}${shared_ext}$major'
17127     dynamic_linker='NetBSD ld.elf_so'
17128   fi
17129   shlibpath_var=LD_LIBRARY_PATH
17130   shlibpath_overrides_runpath=yes
17131   hardcode_into_libs=yes
17132   ;;
17133
17134 newsos6)
17135   version_type=linux
17136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17137   shlibpath_var=LD_LIBRARY_PATH
17138   shlibpath_overrides_runpath=yes
17139   ;;
17140
17141 nto-qnx*)
17142   version_type=linux
17143   need_lib_prefix=no
17144   need_version=no
17145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146   soname_spec='${libname}${release}${shared_ext}$major'
17147   shlibpath_var=LD_LIBRARY_PATH
17148   shlibpath_overrides_runpath=yes
17149   ;;
17150
17151 openbsd*)
17152   version_type=sunos
17153   need_lib_prefix=no
17154   need_version=yes
17155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17156   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17157   shlibpath_var=LD_LIBRARY_PATH
17158   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17159     case $host_os in
17160       openbsd2.[89] | openbsd2.[89].*)
17161         shlibpath_overrides_runpath=no
17162         ;;
17163       *)
17164         shlibpath_overrides_runpath=yes
17165         ;;
17166       esac
17167   else
17168     shlibpath_overrides_runpath=yes
17169   fi
17170   ;;
17171
17172 os2*)
17173   libname_spec='$name'
17174   shrext_cmds=".dll"
17175   need_lib_prefix=no
17176   library_names_spec='$libname${shared_ext} $libname.a'
17177   dynamic_linker='OS/2 ld.exe'
17178   shlibpath_var=LIBPATH
17179   ;;
17180
17181 osf3* | osf4* | osf5*)
17182   version_type=osf
17183   need_lib_prefix=no
17184   need_version=no
17185   soname_spec='${libname}${release}${shared_ext}$major'
17186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17187   shlibpath_var=LD_LIBRARY_PATH
17188   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17189   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17190   ;;
17191
17192 sco3.2v5*)
17193   version_type=osf
17194   soname_spec='${libname}${release}${shared_ext}$major'
17195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196   shlibpath_var=LD_LIBRARY_PATH
17197   ;;
17198
17199 solaris*)
17200   version_type=linux
17201   need_lib_prefix=no
17202   need_version=no
17203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17204   soname_spec='${libname}${release}${shared_ext}$major'
17205   shlibpath_var=LD_LIBRARY_PATH
17206   shlibpath_overrides_runpath=yes
17207   hardcode_into_libs=yes
17208   # ldd complains unless libraries are executable
17209   postinstall_cmds='chmod +x $lib'
17210   ;;
17211
17212 sunos4*)
17213   version_type=sunos
17214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17215   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17216   shlibpath_var=LD_LIBRARY_PATH
17217   shlibpath_overrides_runpath=yes
17218   if test "$with_gnu_ld" = yes; then
17219     need_lib_prefix=no
17220   fi
17221   need_version=yes
17222   ;;
17223
17224 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17225   version_type=linux
17226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227   soname_spec='${libname}${release}${shared_ext}$major'
17228   shlibpath_var=LD_LIBRARY_PATH
17229   case $host_vendor in
17230     sni)
17231       shlibpath_overrides_runpath=no
17232       need_lib_prefix=no
17233       export_dynamic_flag_spec='${wl}-Blargedynsym'
17234       runpath_var=LD_RUN_PATH
17235       ;;
17236     siemens)
17237       need_lib_prefix=no
17238       ;;
17239     motorola)
17240       need_lib_prefix=no
17241       need_version=no
17242       shlibpath_overrides_runpath=no
17243       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17244       ;;
17245   esac
17246   ;;
17247
17248 sysv4*MP*)
17249   if test -d /usr/nec ;then
17250     version_type=linux
17251     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17252     soname_spec='$libname${shared_ext}.$major'
17253     shlibpath_var=LD_LIBRARY_PATH
17254   fi
17255   ;;
17256
17257 uts4*)
17258   version_type=linux
17259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17260   soname_spec='${libname}${release}${shared_ext}$major'
17261   shlibpath_var=LD_LIBRARY_PATH
17262   ;;
17263
17264 *)
17265   dynamic_linker=no
17266   ;;
17267 esac
17268 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17269 echo "${ECHO_T}$dynamic_linker" >&6
17270 test "$dynamic_linker" = no && can_build_shared=no
17271
17272 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17273 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17274 hardcode_action_GCJ=
17275 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17276    test -n "$runpath_var GCJ" || \
17277    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17278
17279   # We can hardcode non-existant directories.
17280   if test "$hardcode_direct_GCJ" != no &&
17281      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17282      # have to relink, otherwise we might link with an installed library
17283      # when we should be linking with a yet-to-be-installed one
17284      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17285      test "$hardcode_minus_L_GCJ" != no; then
17286     # Linking always hardcodes the temporary library directory.
17287     hardcode_action_GCJ=relink
17288   else
17289     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17290     hardcode_action_GCJ=immediate
17291   fi
17292 else
17293   # We cannot hardcode anything, or else we can only hardcode existing
17294   # directories.
17295   hardcode_action_GCJ=unsupported
17296 fi
17297 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17298 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17299
17300 if test "$hardcode_action_GCJ" = relink; then
17301   # Fast installation is not supported
17302   enable_fast_install=no
17303 elif test "$shlibpath_overrides_runpath" = yes ||
17304      test "$enable_shared" = no; then
17305   # Fast installation is not necessary
17306   enable_fast_install=needless
17307 fi
17308
17309 striplib=
17310 old_striplib=
17311 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17312 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17313 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17314   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17315   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17316   echo "$as_me:$LINENO: result: yes" >&5
17317 echo "${ECHO_T}yes" >&6
17318 else
17319 # FIXME - insert some real tests, host_os isn't really good enough
17320   case $host_os in
17321    darwin*)
17322        if test -n "$STRIP" ; then
17323          striplib="$STRIP -x"
17324          echo "$as_me:$LINENO: result: yes" >&5
17325 echo "${ECHO_T}yes" >&6
17326        else
17327   echo "$as_me:$LINENO: result: no" >&5
17328 echo "${ECHO_T}no" >&6
17329 fi
17330        ;;
17331    *)
17332   echo "$as_me:$LINENO: result: no" >&5
17333 echo "${ECHO_T}no" >&6
17334     ;;
17335   esac
17336 fi
17337
17338 if test "x$enable_dlopen" != xyes; then
17339   enable_dlopen=unknown
17340   enable_dlopen_self=unknown
17341   enable_dlopen_self_static=unknown
17342 else
17343   lt_cv_dlopen=no
17344   lt_cv_dlopen_libs=
17345
17346   case $host_os in
17347   beos*)
17348     lt_cv_dlopen="load_add_on"
17349     lt_cv_dlopen_libs=
17350     lt_cv_dlopen_self=yes
17351     ;;
17352
17353   mingw* | pw32*)
17354     lt_cv_dlopen="LoadLibrary"
17355     lt_cv_dlopen_libs=
17356    ;;
17357
17358   cygwin*)
17359     lt_cv_dlopen="dlopen"
17360     lt_cv_dlopen_libs=
17361    ;;
17362
17363   darwin*)
17364   # if libdl is installed we need to link against it
17365     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17366 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17367 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370   ac_check_lib_save_LIBS=$LIBS
17371 LIBS="-ldl  $LIBS"
17372 cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h.  */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h.  */
17378
17379 /* Override any gcc2 internal prototype to avoid an error.  */
17380 #ifdef __cplusplus
17381 extern "C"
17382 #endif
17383 /* We use char because int might match the return type of a gcc2
17384    builtin and then its argument prototype would still apply.  */
17385 char dlopen ();
17386 int
17387 main ()
17388 {
17389 dlopen ();
17390   ;
17391   return 0;
17392 }
17393 _ACEOF
17394 rm -f conftest.$ac_objext conftest$ac_exeext
17395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17396   (eval $ac_link) 2>conftest.er1
17397   ac_status=$?
17398   grep -v '^ *+' conftest.er1 >conftest.err
17399   rm -f conftest.er1
17400   cat conftest.err >&5
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); } &&
17403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405   (eval $ac_try) 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; } &&
17409          { ac_try='test -s conftest$ac_exeext'
17410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411   (eval $ac_try) 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; }; then
17415   ac_cv_lib_dl_dlopen=yes
17416 else
17417   echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17419
17420 ac_cv_lib_dl_dlopen=no
17421 fi
17422 rm -f conftest.err conftest.$ac_objext \
17423       conftest$ac_exeext conftest.$ac_ext
17424 LIBS=$ac_check_lib_save_LIBS
17425 fi
17426 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17427 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17428 if test $ac_cv_lib_dl_dlopen = yes; then
17429   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17430 else
17431
17432     lt_cv_dlopen="dyld"
17433     lt_cv_dlopen_libs=
17434     lt_cv_dlopen_self=yes
17435
17436 fi
17437
17438    ;;
17439
17440   *)
17441     echo "$as_me:$LINENO: checking for shl_load" >&5
17442 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17443 if test "${ac_cv_func_shl_load+set}" = set; then
17444   echo $ECHO_N "(cached) $ECHO_C" >&6
17445 else
17446   cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h.  */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h.  */
17452 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17454 #define shl_load innocuous_shl_load
17455
17456 /* System header to define __stub macros and hopefully few prototypes,
17457     which can conflict with char shl_load (); below.
17458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17459     <limits.h> exists even on freestanding compilers.  */
17460
17461 #ifdef __STDC__
17462 # include <limits.h>
17463 #else
17464 # include <assert.h>
17465 #endif
17466
17467 #undef shl_load
17468
17469 /* Override any gcc2 internal prototype to avoid an error.  */
17470 #ifdef __cplusplus
17471 extern "C"
17472 {
17473 #endif
17474 /* We use char because int might match the return type of a gcc2
17475    builtin and then its argument prototype would still apply.  */
17476 char shl_load ();
17477 /* The GNU C library defines this for functions which it implements
17478     to always fail with ENOSYS.  Some functions are actually named
17479     something starting with __ and the normal name is an alias.  */
17480 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17481 choke me
17482 #else
17483 char (*f) () = shl_load;
17484 #endif
17485 #ifdef __cplusplus
17486 }
17487 #endif
17488
17489 int
17490 main ()
17491 {
17492 return f != shl_load;
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499   (eval $ac_link) 2>conftest.er1
17500   ac_status=$?
17501   grep -v '^ *+' conftest.er1 >conftest.err
17502   rm -f conftest.er1
17503   cat conftest.err >&5
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); } &&
17506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508   (eval $ac_try) 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }; } &&
17512          { ac_try='test -s conftest$ac_exeext'
17513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514   (eval $ac_try) 2>&5
17515   ac_status=$?
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); }; }; then
17518   ac_cv_func_shl_load=yes
17519 else
17520   echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17522
17523 ac_cv_func_shl_load=no
17524 fi
17525 rm -f conftest.err conftest.$ac_objext \
17526       conftest$ac_exeext conftest.$ac_ext
17527 fi
17528 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17529 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17530 if test $ac_cv_func_shl_load = yes; then
17531   lt_cv_dlopen="shl_load"
17532 else
17533   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17534 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17535 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17536   echo $ECHO_N "(cached) $ECHO_C" >&6
17537 else
17538   ac_check_lib_save_LIBS=$LIBS
17539 LIBS="-ldld  $LIBS"
17540 cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h.  */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h.  */
17546
17547 /* Override any gcc2 internal prototype to avoid an error.  */
17548 #ifdef __cplusplus
17549 extern "C"
17550 #endif
17551 /* We use char because int might match the return type of a gcc2
17552    builtin and then its argument prototype would still apply.  */
17553 char shl_load ();
17554 int
17555 main ()
17556 {
17557 shl_load ();
17558   ;
17559   return 0;
17560 }
17561 _ACEOF
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17564   (eval $ac_link) 2>conftest.er1
17565   ac_status=$?
17566   grep -v '^ *+' conftest.er1 >conftest.err
17567   rm -f conftest.er1
17568   cat conftest.err >&5
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); } &&
17571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573   (eval $ac_try) 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; } &&
17577          { ac_try='test -s conftest$ac_exeext'
17578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579   (eval $ac_try) 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; }; then
17583   ac_cv_lib_dld_shl_load=yes
17584 else
17585   echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17587
17588 ac_cv_lib_dld_shl_load=no
17589 fi
17590 rm -f conftest.err conftest.$ac_objext \
17591       conftest$ac_exeext conftest.$ac_ext
17592 LIBS=$ac_check_lib_save_LIBS
17593 fi
17594 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17595 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17596 if test $ac_cv_lib_dld_shl_load = yes; then
17597   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17598 else
17599   echo "$as_me:$LINENO: checking for dlopen" >&5
17600 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17601 if test "${ac_cv_func_dlopen+set}" = set; then
17602   echo $ECHO_N "(cached) $ECHO_C" >&6
17603 else
17604   cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h.  */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h.  */
17610 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17612 #define dlopen innocuous_dlopen
17613
17614 /* System header to define __stub macros and hopefully few prototypes,
17615     which can conflict with char dlopen (); below.
17616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17617     <limits.h> exists even on freestanding compilers.  */
17618
17619 #ifdef __STDC__
17620 # include <limits.h>
17621 #else
17622 # include <assert.h>
17623 #endif
17624
17625 #undef dlopen
17626
17627 /* Override any gcc2 internal prototype to avoid an error.  */
17628 #ifdef __cplusplus
17629 extern "C"
17630 {
17631 #endif
17632 /* We use char because int might match the return type of a gcc2
17633    builtin and then its argument prototype would still apply.  */
17634 char dlopen ();
17635 /* The GNU C library defines this for functions which it implements
17636     to always fail with ENOSYS.  Some functions are actually named
17637     something starting with __ and the normal name is an alias.  */
17638 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17639 choke me
17640 #else
17641 char (*f) () = dlopen;
17642 #endif
17643 #ifdef __cplusplus
17644 }
17645 #endif
17646
17647 int
17648 main ()
17649 {
17650 return f != dlopen;
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17657   (eval $ac_link) 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } &&
17664          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666   (eval $ac_try) 2>&5
17667   ac_status=$?
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); }; } &&
17670          { ac_try='test -s conftest$ac_exeext'
17671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672   (eval $ac_try) 2>&5
17673   ac_status=$?
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); }; }; then
17676   ac_cv_func_dlopen=yes
17677 else
17678   echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17680
17681 ac_cv_func_dlopen=no
17682 fi
17683 rm -f conftest.err conftest.$ac_objext \
17684       conftest$ac_exeext conftest.$ac_ext
17685 fi
17686 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17687 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17688 if test $ac_cv_func_dlopen = yes; then
17689   lt_cv_dlopen="dlopen"
17690 else
17691   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17692 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17694   echo $ECHO_N "(cached) $ECHO_C" >&6
17695 else
17696   ac_check_lib_save_LIBS=$LIBS
17697 LIBS="-ldl  $LIBS"
17698 cat >conftest.$ac_ext <<_ACEOF
17699 /* confdefs.h.  */
17700 _ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h.  */
17704
17705 /* Override any gcc2 internal prototype to avoid an error.  */
17706 #ifdef __cplusplus
17707 extern "C"
17708 #endif
17709 /* We use char because int might match the return type of a gcc2
17710    builtin and then its argument prototype would still apply.  */
17711 char dlopen ();
17712 int
17713 main ()
17714 {
17715 dlopen ();
17716   ;
17717   return 0;
17718 }
17719 _ACEOF
17720 rm -f conftest.$ac_objext conftest$ac_exeext
17721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17722   (eval $ac_link) 2>conftest.er1
17723   ac_status=$?
17724   grep -v '^ *+' conftest.er1 >conftest.err
17725   rm -f conftest.er1
17726   cat conftest.err >&5
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); } &&
17729          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731   (eval $ac_try) 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; } &&
17735          { ac_try='test -s conftest$ac_exeext'
17736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737   (eval $ac_try) 2>&5
17738   ac_status=$?
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); }; }; then
17741   ac_cv_lib_dl_dlopen=yes
17742 else
17743   echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746 ac_cv_lib_dl_dlopen=no
17747 fi
17748 rm -f conftest.err conftest.$ac_objext \
17749       conftest$ac_exeext conftest.$ac_ext
17750 LIBS=$ac_check_lib_save_LIBS
17751 fi
17752 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17753 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17754 if test $ac_cv_lib_dl_dlopen = yes; then
17755   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17756 else
17757   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17758 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17759 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17760   echo $ECHO_N "(cached) $ECHO_C" >&6
17761 else
17762   ac_check_lib_save_LIBS=$LIBS
17763 LIBS="-lsvld  $LIBS"
17764 cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h.  */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h.  */
17770
17771 /* Override any gcc2 internal prototype to avoid an error.  */
17772 #ifdef __cplusplus
17773 extern "C"
17774 #endif
17775 /* We use char because int might match the return type of a gcc2
17776    builtin and then its argument prototype would still apply.  */
17777 char dlopen ();
17778 int
17779 main ()
17780 {
17781 dlopen ();
17782   ;
17783   return 0;
17784 }
17785 _ACEOF
17786 rm -f conftest.$ac_objext conftest$ac_exeext
17787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788   (eval $ac_link) 2>conftest.er1
17789   ac_status=$?
17790   grep -v '^ *+' conftest.er1 >conftest.err
17791   rm -f conftest.er1
17792   cat conftest.err >&5
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); } &&
17795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797   (eval $ac_try) 2>&5
17798   ac_status=$?
17799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800   (exit $ac_status); }; } &&
17801          { ac_try='test -s conftest$ac_exeext'
17802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803   (eval $ac_try) 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); }; }; then
17807   ac_cv_lib_svld_dlopen=yes
17808 else
17809   echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812 ac_cv_lib_svld_dlopen=no
17813 fi
17814 rm -f conftest.err conftest.$ac_objext \
17815       conftest$ac_exeext conftest.$ac_ext
17816 LIBS=$ac_check_lib_save_LIBS
17817 fi
17818 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17819 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17820 if test $ac_cv_lib_svld_dlopen = yes; then
17821   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17822 else
17823   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17824 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17825 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17826   echo $ECHO_N "(cached) $ECHO_C" >&6
17827 else
17828   ac_check_lib_save_LIBS=$LIBS
17829 LIBS="-ldld  $LIBS"
17830 cat >conftest.$ac_ext <<_ACEOF
17831 /* confdefs.h.  */
17832 _ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h.  */
17836
17837 /* Override any gcc2 internal prototype to avoid an error.  */
17838 #ifdef __cplusplus
17839 extern "C"
17840 #endif
17841 /* We use char because int might match the return type of a gcc2
17842    builtin and then its argument prototype would still apply.  */
17843 char dld_link ();
17844 int
17845 main ()
17846 {
17847 dld_link ();
17848   ;
17849   return 0;
17850 }
17851 _ACEOF
17852 rm -f conftest.$ac_objext conftest$ac_exeext
17853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17854   (eval $ac_link) 2>conftest.er1
17855   ac_status=$?
17856   grep -v '^ *+' conftest.er1 >conftest.err
17857   rm -f conftest.er1
17858   cat conftest.err >&5
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); } &&
17861          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863   (eval $ac_try) 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); }; } &&
17867          { ac_try='test -s conftest$ac_exeext'
17868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869   (eval $ac_try) 2>&5
17870   ac_status=$?
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); }; }; then
17873   ac_cv_lib_dld_dld_link=yes
17874 else
17875   echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17877
17878 ac_cv_lib_dld_dld_link=no
17879 fi
17880 rm -f conftest.err conftest.$ac_objext \
17881       conftest$ac_exeext conftest.$ac_ext
17882 LIBS=$ac_check_lib_save_LIBS
17883 fi
17884 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17885 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17886 if test $ac_cv_lib_dld_dld_link = yes; then
17887   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17888 fi
17889
17890
17891 fi
17892
17893
17894 fi
17895
17896
17897 fi
17898
17899
17900 fi
17901
17902
17903 fi
17904
17905     ;;
17906   esac
17907
17908   if test "x$lt_cv_dlopen" != xno; then
17909     enable_dlopen=yes
17910   else
17911     enable_dlopen=no
17912   fi
17913
17914   case $lt_cv_dlopen in
17915   dlopen)
17916     save_CPPFLAGS="$CPPFLAGS"
17917     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17918
17919     save_LDFLAGS="$LDFLAGS"
17920     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17921
17922     save_LIBS="$LIBS"
17923     LIBS="$lt_cv_dlopen_libs $LIBS"
17924
17925     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17926 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17927 if test "${lt_cv_dlopen_self+set}" = set; then
17928   echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930           if test "$cross_compiling" = yes; then :
17931   lt_cv_dlopen_self=cross
17932 else
17933   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17934   lt_status=$lt_dlunknown
17935   cat > conftest.$ac_ext <<EOF
17936 #line 17936 "configure"
17937 #include "confdefs.h"
17938
17939 #if HAVE_DLFCN_H
17940 #include <dlfcn.h>
17941 #endif
17942
17943 #include <stdio.h>
17944
17945 #ifdef RTLD_GLOBAL
17946 #  define LT_DLGLOBAL           RTLD_GLOBAL
17947 #else
17948 #  ifdef DL_GLOBAL
17949 #    define LT_DLGLOBAL         DL_GLOBAL
17950 #  else
17951 #    define LT_DLGLOBAL         0
17952 #  endif
17953 #endif
17954
17955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17956    find out it does not work in some platform. */
17957 #ifndef LT_DLLAZY_OR_NOW
17958 #  ifdef RTLD_LAZY
17959 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17960 #  else
17961 #    ifdef DL_LAZY
17962 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17963 #    else
17964 #      ifdef RTLD_NOW
17965 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17966 #      else
17967 #        ifdef DL_NOW
17968 #          define LT_DLLAZY_OR_NOW      DL_NOW
17969 #        else
17970 #          define LT_DLLAZY_OR_NOW      0
17971 #        endif
17972 #      endif
17973 #    endif
17974 #  endif
17975 #endif
17976
17977 #ifdef __cplusplus
17978 extern "C" void exit (int);
17979 #endif
17980
17981 void fnord() { int i=42;}
17982 int main ()
17983 {
17984   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17985   int status = $lt_dlunknown;
17986
17987   if (self)
17988     {
17989       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17990       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17991       /* dlclose (self); */
17992     }
17993
17994     exit (status);
17995 }
17996 EOF
17997   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17998   (eval $ac_link) 2>&5
17999   ac_status=$?
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18002     (./conftest; exit; ) 2>/dev/null
18003     lt_status=$?
18004     case x$lt_status in
18005       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18006       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18007       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18008     esac
18009   else :
18010     # compilation failed
18011     lt_cv_dlopen_self=no
18012   fi
18013 fi
18014 rm -fr conftest*
18015
18016
18017 fi
18018 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18019 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18020
18021     if test "x$lt_cv_dlopen_self" = xyes; then
18022       LDFLAGS="$LDFLAGS $link_static_flag"
18023       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18024 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18025 if test "${lt_cv_dlopen_self_static+set}" = set; then
18026   echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028           if test "$cross_compiling" = yes; then :
18029   lt_cv_dlopen_self_static=cross
18030 else
18031   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18032   lt_status=$lt_dlunknown
18033   cat > conftest.$ac_ext <<EOF
18034 #line 18034 "configure"
18035 #include "confdefs.h"
18036
18037 #if HAVE_DLFCN_H
18038 #include <dlfcn.h>
18039 #endif
18040
18041 #include <stdio.h>
18042
18043 #ifdef RTLD_GLOBAL
18044 #  define LT_DLGLOBAL           RTLD_GLOBAL
18045 #else
18046 #  ifdef DL_GLOBAL
18047 #    define LT_DLGLOBAL         DL_GLOBAL
18048 #  else
18049 #    define LT_DLGLOBAL         0
18050 #  endif
18051 #endif
18052
18053 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18054    find out it does not work in some platform. */
18055 #ifndef LT_DLLAZY_OR_NOW
18056 #  ifdef RTLD_LAZY
18057 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18058 #  else
18059 #    ifdef DL_LAZY
18060 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18061 #    else
18062 #      ifdef RTLD_NOW
18063 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18064 #      else
18065 #        ifdef DL_NOW
18066 #          define LT_DLLAZY_OR_NOW      DL_NOW
18067 #        else
18068 #          define LT_DLLAZY_OR_NOW      0
18069 #        endif
18070 #      endif
18071 #    endif
18072 #  endif
18073 #endif
18074
18075 #ifdef __cplusplus
18076 extern "C" void exit (int);
18077 #endif
18078
18079 void fnord() { int i=42;}
18080 int main ()
18081 {
18082   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18083   int status = $lt_dlunknown;
18084
18085   if (self)
18086     {
18087       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18088       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18089       /* dlclose (self); */
18090     }
18091
18092     exit (status);
18093 }
18094 EOF
18095   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18096   (eval $ac_link) 2>&5
18097   ac_status=$?
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18100     (./conftest; exit; ) 2>/dev/null
18101     lt_status=$?
18102     case x$lt_status in
18103       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18104       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18105       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18106     esac
18107   else :
18108     # compilation failed
18109     lt_cv_dlopen_self_static=no
18110   fi
18111 fi
18112 rm -fr conftest*
18113
18114
18115 fi
18116 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18117 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18118     fi
18119
18120     CPPFLAGS="$save_CPPFLAGS"
18121     LDFLAGS="$save_LDFLAGS"
18122     LIBS="$save_LIBS"
18123     ;;
18124   esac
18125
18126   case $lt_cv_dlopen_self in
18127   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18128   *) enable_dlopen_self=unknown ;;
18129   esac
18130
18131   case $lt_cv_dlopen_self_static in
18132   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18133   *) enable_dlopen_self_static=unknown ;;
18134   esac
18135 fi
18136
18137
18138 # The else clause should only fire when bootstrapping the
18139 # libtool distribution, otherwise you forgot to ship ltmain.sh
18140 # with your package, and you will get complaints that there are
18141 # no rules to generate ltmain.sh.
18142 if test -f "$ltmain"; then
18143   # See if we are running on zsh, and set the options which allow our commands through
18144   # without removal of \ escapes.
18145   if test -n "${ZSH_VERSION+set}" ; then
18146     setopt NO_GLOB_SUBST
18147   fi
18148   # Now quote all the things that may contain metacharacters while being
18149   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18150   # variables and quote the copies for generation of the libtool script.
18151   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18152     SED SHELL STRIP \
18153     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18154     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18155     deplibs_check_method reload_flag reload_cmds need_locks \
18156     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18157     lt_cv_sys_global_symbol_to_c_name_address \
18158     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18159     old_postinstall_cmds old_postuninstall_cmds \
18160     compiler_GCJ \
18161     CC_GCJ \
18162     LD_GCJ \
18163     lt_prog_compiler_wl_GCJ \
18164     lt_prog_compiler_pic_GCJ \
18165     lt_prog_compiler_static_GCJ \
18166     lt_prog_compiler_no_builtin_flag_GCJ \
18167     export_dynamic_flag_spec_GCJ \
18168     thread_safe_flag_spec_GCJ \
18169     whole_archive_flag_spec_GCJ \
18170     enable_shared_with_static_runtimes_GCJ \
18171     old_archive_cmds_GCJ \
18172     old_archive_from_new_cmds_GCJ \
18173     predep_objects_GCJ \
18174     postdep_objects_GCJ \
18175     predeps_GCJ \
18176     postdeps_GCJ \
18177     compiler_lib_search_path_GCJ \
18178     archive_cmds_GCJ \
18179     archive_expsym_cmds_GCJ \
18180     postinstall_cmds_GCJ \
18181     postuninstall_cmds_GCJ \
18182     old_archive_from_expsyms_cmds_GCJ \
18183     allow_undefined_flag_GCJ \
18184     no_undefined_flag_GCJ \
18185     export_symbols_cmds_GCJ \
18186     hardcode_libdir_flag_spec_GCJ \
18187     hardcode_libdir_flag_spec_ld_GCJ \
18188     hardcode_libdir_separator_GCJ \
18189     hardcode_automatic_GCJ \
18190     module_cmds_GCJ \
18191     module_expsym_cmds_GCJ \
18192     lt_cv_prog_compiler_c_o_GCJ \
18193     exclude_expsyms_GCJ \
18194     include_expsyms_GCJ; do
18195
18196     case $var in
18197     old_archive_cmds_GCJ | \
18198     old_archive_from_new_cmds_GCJ | \
18199     archive_cmds_GCJ | \
18200     archive_expsym_cmds_GCJ | \
18201     module_cmds_GCJ | \
18202     module_expsym_cmds_GCJ | \
18203     old_archive_from_expsyms_cmds_GCJ | \
18204     export_symbols_cmds_GCJ | \
18205     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18206     postinstall_cmds | postuninstall_cmds | \
18207     old_postinstall_cmds | old_postuninstall_cmds | \
18208     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18209       # Double-quote double-evaled strings.
18210       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18211       ;;
18212     *)
18213       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18214       ;;
18215     esac
18216   done
18217
18218   case $lt_echo in
18219   *'\$0 --fallback-echo"')
18220     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18221     ;;
18222   esac
18223
18224 cfgfile="$ofile"
18225
18226   cat <<__EOF__ >> "$cfgfile"
18227 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18228
18229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18230
18231 # Shell to use when invoking shell scripts.
18232 SHELL=$lt_SHELL
18233
18234 # Whether or not to build shared libraries.
18235 build_libtool_libs=$enable_shared
18236
18237 # Whether or not to build static libraries.
18238 build_old_libs=$enable_static
18239
18240 # Whether or not to add -lc for building shared libraries.
18241 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18242
18243 # Whether or not to disallow shared libs when runtime libs are static
18244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18245
18246 # Whether or not to optimize for fast installation.
18247 fast_install=$enable_fast_install
18248
18249 # The host system.
18250 host_alias=$host_alias
18251 host=$host
18252
18253 # An echo program that does not interpret backslashes.
18254 echo=$lt_echo
18255
18256 # The archiver.
18257 AR=$lt_AR
18258 AR_FLAGS=$lt_AR_FLAGS
18259
18260 # A C compiler.
18261 LTCC=$lt_LTCC
18262
18263 # A language-specific compiler.
18264 CC=$lt_compiler_GCJ
18265
18266 # Is the compiler the GNU C compiler?
18267 with_gcc=$GCC_GCJ
18268
18269 # An ERE matcher.
18270 EGREP=$lt_EGREP
18271
18272 # The linker used to build libraries.
18273 LD=$lt_LD_GCJ
18274
18275 # Whether we need hard or soft links.
18276 LN_S=$lt_LN_S
18277
18278 # A BSD-compatible nm program.
18279 NM=$lt_NM
18280
18281 # A symbol stripping program
18282 STRIP=$lt_STRIP
18283
18284 # Used to examine libraries when file_magic_cmd begins "file"
18285 MAGIC_CMD=$MAGIC_CMD
18286
18287 # Used on cygwin: DLL creation program.
18288 DLLTOOL="$DLLTOOL"
18289
18290 # Used on cygwin: object dumper.
18291 OBJDUMP="$OBJDUMP"
18292
18293 # Used on cygwin: assembler.
18294 AS="$AS"
18295
18296 # The name of the directory that contains temporary libtool files.
18297 objdir=$objdir
18298
18299 # How to create reloadable object files.
18300 reload_flag=$lt_reload_flag
18301 reload_cmds=$lt_reload_cmds
18302
18303 # How to pass a linker flag through the compiler.
18304 wl=$lt_lt_prog_compiler_wl_GCJ
18305
18306 # Object file suffix (normally "o").
18307 objext="$ac_objext"
18308
18309 # Old archive suffix (normally "a").
18310 libext="$libext"
18311
18312 # Shared library suffix (normally ".so").
18313 shrext_cmds='$shrext_cmds'
18314
18315 # Executable file suffix (normally "").
18316 exeext="$exeext"
18317
18318 # Additional compiler flags for building library objects.
18319 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18320 pic_mode=$pic_mode
18321
18322 # What is the maximum length of a command?
18323 max_cmd_len=$lt_cv_sys_max_cmd_len
18324
18325 # Does compiler simultaneously support -c and -o options?
18326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18327
18328 # Must we lock files when doing compilation ?
18329 need_locks=$lt_need_locks
18330
18331 # Do we need the lib prefix for modules?
18332 need_lib_prefix=$need_lib_prefix
18333
18334 # Do we need a version for libraries?
18335 need_version=$need_version
18336
18337 # Whether dlopen is supported.
18338 dlopen_support=$enable_dlopen
18339
18340 # Whether dlopen of programs is supported.
18341 dlopen_self=$enable_dlopen_self
18342
18343 # Whether dlopen of statically linked programs is supported.
18344 dlopen_self_static=$enable_dlopen_self_static
18345
18346 # Compiler flag to prevent dynamic linking.
18347 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18348
18349 # Compiler flag to turn off builtin functions.
18350 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18351
18352 # Compiler flag to allow reflexive dlopens.
18353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18354
18355 # Compiler flag to generate shared objects directly from archives.
18356 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18357
18358 # Compiler flag to generate thread-safe objects.
18359 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18360
18361 # Library versioning type.
18362 version_type=$version_type
18363
18364 # Format of library name prefix.
18365 libname_spec=$lt_libname_spec
18366
18367 # List of archive names.  First name is the real one, the rest are links.
18368 # The last name is the one that the linker finds with -lNAME.
18369 library_names_spec=$lt_library_names_spec
18370
18371 # The coded name of the library, if different from the real name.
18372 soname_spec=$lt_soname_spec
18373
18374 # Commands used to build and install an old-style archive.
18375 RANLIB=$lt_RANLIB
18376 old_archive_cmds=$lt_old_archive_cmds_GCJ
18377 old_postinstall_cmds=$lt_old_postinstall_cmds
18378 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18379
18380 # Create an old-style archive from a shared archive.
18381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18382
18383 # Create a temporary old-style archive to link instead of a shared archive.
18384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18385
18386 # Commands used to build and install a shared archive.
18387 archive_cmds=$lt_archive_cmds_GCJ
18388 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18389 postinstall_cmds=$lt_postinstall_cmds
18390 postuninstall_cmds=$lt_postuninstall_cmds
18391
18392 # Commands used to build a loadable module (assumed same as above if empty)
18393 module_cmds=$lt_module_cmds_GCJ
18394 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18395
18396 # Commands to strip libraries.
18397 old_striplib=$lt_old_striplib
18398 striplib=$lt_striplib
18399
18400 # Dependencies to place before the objects being linked to create a
18401 # shared library.
18402 predep_objects=$lt_predep_objects_GCJ
18403
18404 # Dependencies to place after the objects being linked to create a
18405 # shared library.
18406 postdep_objects=$lt_postdep_objects_GCJ
18407
18408 # Dependencies to place before the objects being linked to create a
18409 # shared library.
18410 predeps=$lt_predeps_GCJ
18411
18412 # Dependencies to place after the objects being linked to create a
18413 # shared library.
18414 postdeps=$lt_postdeps_GCJ
18415
18416 # The library search path used internally by the compiler when linking
18417 # a shared library.
18418 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18419
18420 # Method to check whether dependent libraries are shared objects.
18421 deplibs_check_method=$lt_deplibs_check_method
18422
18423 # Command to use when deplibs_check_method == file_magic.
18424 file_magic_cmd=$lt_file_magic_cmd
18425
18426 # Flag that allows shared libraries with undefined symbols to be built.
18427 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18428
18429 # Flag that forces no undefined symbols.
18430 no_undefined_flag=$lt_no_undefined_flag_GCJ
18431
18432 # Commands used to finish a libtool library installation in a directory.
18433 finish_cmds=$lt_finish_cmds
18434
18435 # Same as above, but a single script fragment to be evaled but not shown.
18436 finish_eval=$lt_finish_eval
18437
18438 # Take the output of nm and produce a listing of raw symbols and C names.
18439 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18440
18441 # Transform the output of nm in a proper C declaration
18442 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18443
18444 # Transform the output of nm in a C name address pair
18445 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18446
18447 # This is the shared library runtime path variable.
18448 runpath_var=$runpath_var
18449
18450 # This is the shared library path variable.
18451 shlibpath_var=$shlibpath_var
18452
18453 # Is shlibpath searched before the hard-coded library search path?
18454 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18455
18456 # How to hardcode a shared library path into an executable.
18457 hardcode_action=$hardcode_action_GCJ
18458
18459 # Whether we should hardcode library paths into libraries.
18460 hardcode_into_libs=$hardcode_into_libs
18461
18462 # Flag to hardcode \$libdir into a binary during linking.
18463 # This must work even if \$libdir does not exist.
18464 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18465
18466 # If ld is used when linking, flag to hardcode \$libdir into
18467 # a binary during linking. This must work even if \$libdir does
18468 # not exist.
18469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18470
18471 # Whether we need a single -rpath flag with a separated argument.
18472 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18473
18474 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18475 # resulting binary.
18476 hardcode_direct=$hardcode_direct_GCJ
18477
18478 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18479 # resulting binary.
18480 hardcode_minus_L=$hardcode_minus_L_GCJ
18481
18482 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18483 # the resulting binary.
18484 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18485
18486 # Set to yes if building a shared library automatically hardcodes DIR into the library
18487 # and all subsequent libraries and executables linked against it.
18488 hardcode_automatic=$hardcode_automatic_GCJ
18489
18490 # Variables whose values should be saved in libtool wrapper scripts and
18491 # restored at relink time.
18492 variables_saved_for_relink="$variables_saved_for_relink"
18493
18494 # Whether libtool must link a program against all its dependency libraries.
18495 link_all_deplibs=$link_all_deplibs_GCJ
18496
18497 # Compile-time system search path for libraries
18498 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18499
18500 # Run-time system search path for libraries
18501 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18502
18503 # Fix the shell variable \$srcfile for the compiler.
18504 fix_srcfile_path="$fix_srcfile_path_GCJ"
18505
18506 # Set to yes if exported symbols are required.
18507 always_export_symbols=$always_export_symbols_GCJ
18508
18509 # The commands to list exported symbols.
18510 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18511
18512 # The commands to extract the exported symbol list from a shared archive.
18513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18514
18515 # Symbols that should not be listed in the preloaded symbols.
18516 exclude_expsyms=$lt_exclude_expsyms_GCJ
18517
18518 # Symbols that must always be exported.
18519 include_expsyms=$lt_include_expsyms_GCJ
18520
18521 # ### END LIBTOOL TAG CONFIG: $tagname
18522
18523 __EOF__
18524
18525
18526 else
18527   # If there is no Makefile yet, we rely on a make rule to execute
18528   # `config.status --recheck' to rerun these tests and create the
18529   # libtool script then.
18530   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18531   if test -f "$ltmain_in"; then
18532     test -f Makefile && make "$ltmain"
18533   fi
18534 fi
18535
18536
18537 ac_ext=c
18538 ac_cpp='$CPP $CPPFLAGS'
18539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18542
18543 CC="$lt_save_CC"
18544
18545         else
18546           tagname=""
18547         fi
18548         ;;
18549
18550       RC)
18551
18552
18553
18554 # Source file extension for RC test sources.
18555 ac_ext=rc
18556
18557 # Object file extension for compiled RC test sources.
18558 objext=o
18559 objext_RC=$objext
18560
18561 # Code to be used in simple compile tests
18562 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18563
18564 # Code to be used in simple link tests
18565 lt_simple_link_test_code="$lt_simple_compile_test_code"
18566
18567 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18568
18569 # If no C compiler was specified, use CC.
18570 LTCC=${LTCC-"$CC"}
18571
18572 # Allow CC to be a program name with arguments.
18573 compiler=$CC
18574
18575
18576 # Allow CC to be a program name with arguments.
18577 lt_save_CC="$CC"
18578 CC=${RC-"windres"}
18579 compiler=$CC
18580 compiler_RC=$CC
18581 lt_cv_prog_compiler_c_o_RC=yes
18582
18583 # The else clause should only fire when bootstrapping the
18584 # libtool distribution, otherwise you forgot to ship ltmain.sh
18585 # with your package, and you will get complaints that there are
18586 # no rules to generate ltmain.sh.
18587 if test -f "$ltmain"; then
18588   # See if we are running on zsh, and set the options which allow our commands through
18589   # without removal of \ escapes.
18590   if test -n "${ZSH_VERSION+set}" ; then
18591     setopt NO_GLOB_SUBST
18592   fi
18593   # Now quote all the things that may contain metacharacters while being
18594   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18595   # variables and quote the copies for generation of the libtool script.
18596   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18597     SED SHELL STRIP \
18598     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18599     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18600     deplibs_check_method reload_flag reload_cmds need_locks \
18601     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18602     lt_cv_sys_global_symbol_to_c_name_address \
18603     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18604     old_postinstall_cmds old_postuninstall_cmds \
18605     compiler_RC \
18606     CC_RC \
18607     LD_RC \
18608     lt_prog_compiler_wl_RC \
18609     lt_prog_compiler_pic_RC \
18610     lt_prog_compiler_static_RC \
18611     lt_prog_compiler_no_builtin_flag_RC \
18612     export_dynamic_flag_spec_RC \
18613     thread_safe_flag_spec_RC \
18614     whole_archive_flag_spec_RC \
18615     enable_shared_with_static_runtimes_RC \
18616     old_archive_cmds_RC \
18617     old_archive_from_new_cmds_RC \
18618     predep_objects_RC \
18619     postdep_objects_RC \
18620     predeps_RC \
18621     postdeps_RC \
18622     compiler_lib_search_path_RC \
18623     archive_cmds_RC \
18624     archive_expsym_cmds_RC \
18625     postinstall_cmds_RC \
18626     postuninstall_cmds_RC \
18627     old_archive_from_expsyms_cmds_RC \
18628     allow_undefined_flag_RC \
18629     no_undefined_flag_RC \
18630     export_symbols_cmds_RC \
18631     hardcode_libdir_flag_spec_RC \
18632     hardcode_libdir_flag_spec_ld_RC \
18633     hardcode_libdir_separator_RC \
18634     hardcode_automatic_RC \
18635     module_cmds_RC \
18636     module_expsym_cmds_RC \
18637     lt_cv_prog_compiler_c_o_RC \
18638     exclude_expsyms_RC \
18639     include_expsyms_RC; do
18640
18641     case $var in
18642     old_archive_cmds_RC | \
18643     old_archive_from_new_cmds_RC | \
18644     archive_cmds_RC | \
18645     archive_expsym_cmds_RC | \
18646     module_cmds_RC | \
18647     module_expsym_cmds_RC | \
18648     old_archive_from_expsyms_cmds_RC | \
18649     export_symbols_cmds_RC | \
18650     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18651     postinstall_cmds | postuninstall_cmds | \
18652     old_postinstall_cmds | old_postuninstall_cmds | \
18653     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18654       # Double-quote double-evaled strings.
18655       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18656       ;;
18657     *)
18658       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18659       ;;
18660     esac
18661   done
18662
18663   case $lt_echo in
18664   *'\$0 --fallback-echo"')
18665     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18666     ;;
18667   esac
18668
18669 cfgfile="$ofile"
18670
18671   cat <<__EOF__ >> "$cfgfile"
18672 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18673
18674 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18675
18676 # Shell to use when invoking shell scripts.
18677 SHELL=$lt_SHELL
18678
18679 # Whether or not to build shared libraries.
18680 build_libtool_libs=$enable_shared
18681
18682 # Whether or not to build static libraries.
18683 build_old_libs=$enable_static
18684
18685 # Whether or not to add -lc for building shared libraries.
18686 build_libtool_need_lc=$archive_cmds_need_lc_RC
18687
18688 # Whether or not to disallow shared libs when runtime libs are static
18689 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18690
18691 # Whether or not to optimize for fast installation.
18692 fast_install=$enable_fast_install
18693
18694 # The host system.
18695 host_alias=$host_alias
18696 host=$host
18697
18698 # An echo program that does not interpret backslashes.
18699 echo=$lt_echo
18700
18701 # The archiver.
18702 AR=$lt_AR
18703 AR_FLAGS=$lt_AR_FLAGS
18704
18705 # A C compiler.
18706 LTCC=$lt_LTCC
18707
18708 # A language-specific compiler.
18709 CC=$lt_compiler_RC
18710
18711 # Is the compiler the GNU C compiler?
18712 with_gcc=$GCC_RC
18713
18714 # An ERE matcher.
18715 EGREP=$lt_EGREP
18716
18717 # The linker used to build libraries.
18718 LD=$lt_LD_RC
18719
18720 # Whether we need hard or soft links.
18721 LN_S=$lt_LN_S
18722
18723 # A BSD-compatible nm program.
18724 NM=$lt_NM
18725
18726 # A symbol stripping program
18727 STRIP=$lt_STRIP
18728
18729 # Used to examine libraries when file_magic_cmd begins "file"
18730 MAGIC_CMD=$MAGIC_CMD
18731
18732 # Used on cygwin: DLL creation program.
18733 DLLTOOL="$DLLTOOL"
18734
18735 # Used on cygwin: object dumper.
18736 OBJDUMP="$OBJDUMP"
18737
18738 # Used on cygwin: assembler.
18739 AS="$AS"
18740
18741 # The name of the directory that contains temporary libtool files.
18742 objdir=$objdir
18743
18744 # How to create reloadable object files.
18745 reload_flag=$lt_reload_flag
18746 reload_cmds=$lt_reload_cmds
18747
18748 # How to pass a linker flag through the compiler.
18749 wl=$lt_lt_prog_compiler_wl_RC
18750
18751 # Object file suffix (normally "o").
18752 objext="$ac_objext"
18753
18754 # Old archive suffix (normally "a").
18755 libext="$libext"
18756
18757 # Shared library suffix (normally ".so").
18758 shrext_cmds='$shrext_cmds'
18759
18760 # Executable file suffix (normally "").
18761 exeext="$exeext"
18762
18763 # Additional compiler flags for building library objects.
18764 pic_flag=$lt_lt_prog_compiler_pic_RC
18765 pic_mode=$pic_mode
18766
18767 # What is the maximum length of a command?
18768 max_cmd_len=$lt_cv_sys_max_cmd_len
18769
18770 # Does compiler simultaneously support -c and -o options?
18771 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18772
18773 # Must we lock files when doing compilation ?
18774 need_locks=$lt_need_locks
18775
18776 # Do we need the lib prefix for modules?
18777 need_lib_prefix=$need_lib_prefix
18778
18779 # Do we need a version for libraries?
18780 need_version=$need_version
18781
18782 # Whether dlopen is supported.
18783 dlopen_support=$enable_dlopen
18784
18785 # Whether dlopen of programs is supported.
18786 dlopen_self=$enable_dlopen_self
18787
18788 # Whether dlopen of statically linked programs is supported.
18789 dlopen_self_static=$enable_dlopen_self_static
18790
18791 # Compiler flag to prevent dynamic linking.
18792 link_static_flag=$lt_lt_prog_compiler_static_RC
18793
18794 # Compiler flag to turn off builtin functions.
18795 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18796
18797 # Compiler flag to allow reflexive dlopens.
18798 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18799
18800 # Compiler flag to generate shared objects directly from archives.
18801 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18802
18803 # Compiler flag to generate thread-safe objects.
18804 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18805
18806 # Library versioning type.
18807 version_type=$version_type
18808
18809 # Format of library name prefix.
18810 libname_spec=$lt_libname_spec
18811
18812 # List of archive names.  First name is the real one, the rest are links.
18813 # The last name is the one that the linker finds with -lNAME.
18814 library_names_spec=$lt_library_names_spec
18815
18816 # The coded name of the library, if different from the real name.
18817 soname_spec=$lt_soname_spec
18818
18819 # Commands used to build and install an old-style archive.
18820 RANLIB=$lt_RANLIB
18821 old_archive_cmds=$lt_old_archive_cmds_RC
18822 old_postinstall_cmds=$lt_old_postinstall_cmds
18823 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18824
18825 # Create an old-style archive from a shared archive.
18826 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18827
18828 # Create a temporary old-style archive to link instead of a shared archive.
18829 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18830
18831 # Commands used to build and install a shared archive.
18832 archive_cmds=$lt_archive_cmds_RC
18833 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18834 postinstall_cmds=$lt_postinstall_cmds
18835 postuninstall_cmds=$lt_postuninstall_cmds
18836
18837 # Commands used to build a loadable module (assumed same as above if empty)
18838 module_cmds=$lt_module_cmds_RC
18839 module_expsym_cmds=$lt_module_expsym_cmds_RC
18840
18841 # Commands to strip libraries.
18842 old_striplib=$lt_old_striplib
18843 striplib=$lt_striplib
18844
18845 # Dependencies to place before the objects being linked to create a
18846 # shared library.
18847 predep_objects=$lt_predep_objects_RC
18848
18849 # Dependencies to place after the objects being linked to create a
18850 # shared library.
18851 postdep_objects=$lt_postdep_objects_RC
18852
18853 # Dependencies to place before the objects being linked to create a
18854 # shared library.
18855 predeps=$lt_predeps_RC
18856
18857 # Dependencies to place after the objects being linked to create a
18858 # shared library.
18859 postdeps=$lt_postdeps_RC
18860
18861 # The library search path used internally by the compiler when linking
18862 # a shared library.
18863 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18864
18865 # Method to check whether dependent libraries are shared objects.
18866 deplibs_check_method=$lt_deplibs_check_method
18867
18868 # Command to use when deplibs_check_method == file_magic.
18869 file_magic_cmd=$lt_file_magic_cmd
18870
18871 # Flag that allows shared libraries with undefined symbols to be built.
18872 allow_undefined_flag=$lt_allow_undefined_flag_RC
18873
18874 # Flag that forces no undefined symbols.
18875 no_undefined_flag=$lt_no_undefined_flag_RC
18876
18877 # Commands used to finish a libtool library installation in a directory.
18878 finish_cmds=$lt_finish_cmds
18879
18880 # Same as above, but a single script fragment to be evaled but not shown.
18881 finish_eval=$lt_finish_eval
18882
18883 # Take the output of nm and produce a listing of raw symbols and C names.
18884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18885
18886 # Transform the output of nm in a proper C declaration
18887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18888
18889 # Transform the output of nm in a C name address pair
18890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18891
18892 # This is the shared library runtime path variable.
18893 runpath_var=$runpath_var
18894
18895 # This is the shared library path variable.
18896 shlibpath_var=$shlibpath_var
18897
18898 # Is shlibpath searched before the hard-coded library search path?
18899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18900
18901 # How to hardcode a shared library path into an executable.
18902 hardcode_action=$hardcode_action_RC
18903
18904 # Whether we should hardcode library paths into libraries.
18905 hardcode_into_libs=$hardcode_into_libs
18906
18907 # Flag to hardcode \$libdir into a binary during linking.
18908 # This must work even if \$libdir does not exist.
18909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18910
18911 # If ld is used when linking, flag to hardcode \$libdir into
18912 # a binary during linking. This must work even if \$libdir does
18913 # not exist.
18914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18915
18916 # Whether we need a single -rpath flag with a separated argument.
18917 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18918
18919 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18920 # resulting binary.
18921 hardcode_direct=$hardcode_direct_RC
18922
18923 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18924 # resulting binary.
18925 hardcode_minus_L=$hardcode_minus_L_RC
18926
18927 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18928 # the resulting binary.
18929 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18930
18931 # Set to yes if building a shared library automatically hardcodes DIR into the library
18932 # and all subsequent libraries and executables linked against it.
18933 hardcode_automatic=$hardcode_automatic_RC
18934
18935 # Variables whose values should be saved in libtool wrapper scripts and
18936 # restored at relink time.
18937 variables_saved_for_relink="$variables_saved_for_relink"
18938
18939 # Whether libtool must link a program against all its dependency libraries.
18940 link_all_deplibs=$link_all_deplibs_RC
18941
18942 # Compile-time system search path for libraries
18943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18944
18945 # Run-time system search path for libraries
18946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18947
18948 # Fix the shell variable \$srcfile for the compiler.
18949 fix_srcfile_path="$fix_srcfile_path_RC"
18950
18951 # Set to yes if exported symbols are required.
18952 always_export_symbols=$always_export_symbols_RC
18953
18954 # The commands to list exported symbols.
18955 export_symbols_cmds=$lt_export_symbols_cmds_RC
18956
18957 # The commands to extract the exported symbol list from a shared archive.
18958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18959
18960 # Symbols that should not be listed in the preloaded symbols.
18961 exclude_expsyms=$lt_exclude_expsyms_RC
18962
18963 # Symbols that must always be exported.
18964 include_expsyms=$lt_include_expsyms_RC
18965
18966 # ### END LIBTOOL TAG CONFIG: $tagname
18967
18968 __EOF__
18969
18970
18971 else
18972   # If there is no Makefile yet, we rely on a make rule to execute
18973   # `config.status --recheck' to rerun these tests and create the
18974   # libtool script then.
18975   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18976   if test -f "$ltmain_in"; then
18977     test -f Makefile && make "$ltmain"
18978   fi
18979 fi
18980
18981
18982 ac_ext=c
18983 ac_cpp='$CPP $CPPFLAGS'
18984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18987
18988 CC="$lt_save_CC"
18989
18990         ;;
18991
18992       *)
18993         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18994 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18995    { (exit 1); exit 1; }; }
18996         ;;
18997       esac
18998
18999       # Append the new tag name to the list of available tags.
19000       if test -n "$tagname" ; then
19001       available_tags="$available_tags $tagname"
19002     fi
19003     fi
19004   done
19005   IFS="$lt_save_ifs"
19006
19007   # Now substitute the updated list of available tags.
19008   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19009     mv "${ofile}T" "$ofile"
19010     chmod +x "$ofile"
19011   else
19012     rm -f "${ofile}T"
19013     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19014 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19015    { (exit 1); exit 1; }; }
19016   fi
19017 fi
19018
19019
19020
19021 # This can be used to rebuild libtool when needed
19022 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19023
19024 # Always use our own libtool.
19025 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19026
19027 # Prevent multiple expansion
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049 # declare the modules (no optional module)
19050
19051 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19052 ACLOCAL="$ACLOCAL -I acmacro"
19053
19054
19055 ac_ext=c
19056 ac_cpp='$CPP $CPPFLAGS'
19057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19060 if test -n "$ac_tool_prefix"; then
19061   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19062 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19063 echo "$as_me:$LINENO: checking for $ac_word" >&5
19064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19065 if test "${ac_cv_prog_CC+set}" = set; then
19066   echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068   if test -n "$CC"; then
19069   ac_cv_prog_CC="$CC" # Let the user override the test.
19070 else
19071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19072 for as_dir in $PATH
19073 do
19074   IFS=$as_save_IFS
19075   test -z "$as_dir" && as_dir=.
19076   for ac_exec_ext in '' $ac_executable_extensions; do
19077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19078     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19080     break 2
19081   fi
19082 done
19083 done
19084
19085 fi
19086 fi
19087 CC=$ac_cv_prog_CC
19088 if test -n "$CC"; then
19089   echo "$as_me:$LINENO: result: $CC" >&5
19090 echo "${ECHO_T}$CC" >&6
19091 else
19092   echo "$as_me:$LINENO: result: no" >&5
19093 echo "${ECHO_T}no" >&6
19094 fi
19095
19096 fi
19097 if test -z "$ac_cv_prog_CC"; then
19098   ac_ct_CC=$CC
19099   # Extract the first word of "gcc", so it can be a program name with args.
19100 set dummy gcc; ac_word=$2
19101 echo "$as_me:$LINENO: checking for $ac_word" >&5
19102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19104   echo $ECHO_N "(cached) $ECHO_C" >&6
19105 else
19106   if test -n "$ac_ct_CC"; then
19107   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19108 else
19109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19110 for as_dir in $PATH
19111 do
19112   IFS=$as_save_IFS
19113   test -z "$as_dir" && as_dir=.
19114   for ac_exec_ext in '' $ac_executable_extensions; do
19115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19116     ac_cv_prog_ac_ct_CC="gcc"
19117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19118     break 2
19119   fi
19120 done
19121 done
19122
19123 fi
19124 fi
19125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19126 if test -n "$ac_ct_CC"; then
19127   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19128 echo "${ECHO_T}$ac_ct_CC" >&6
19129 else
19130   echo "$as_me:$LINENO: result: no" >&5
19131 echo "${ECHO_T}no" >&6
19132 fi
19133
19134   CC=$ac_ct_CC
19135 else
19136   CC="$ac_cv_prog_CC"
19137 fi
19138
19139 if test -z "$CC"; then
19140   if test -n "$ac_tool_prefix"; then
19141   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19142 set dummy ${ac_tool_prefix}cc; ac_word=$2
19143 echo "$as_me:$LINENO: checking for $ac_word" >&5
19144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19145 if test "${ac_cv_prog_CC+set}" = set; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   if test -n "$CC"; then
19149   ac_cv_prog_CC="$CC" # Let the user override the test.
19150 else
19151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19152 for as_dir in $PATH
19153 do
19154   IFS=$as_save_IFS
19155   test -z "$as_dir" && as_dir=.
19156   for ac_exec_ext in '' $ac_executable_extensions; do
19157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19158     ac_cv_prog_CC="${ac_tool_prefix}cc"
19159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19160     break 2
19161   fi
19162 done
19163 done
19164
19165 fi
19166 fi
19167 CC=$ac_cv_prog_CC
19168 if test -n "$CC"; then
19169   echo "$as_me:$LINENO: result: $CC" >&5
19170 echo "${ECHO_T}$CC" >&6
19171 else
19172   echo "$as_me:$LINENO: result: no" >&5
19173 echo "${ECHO_T}no" >&6
19174 fi
19175
19176 fi
19177 if test -z "$ac_cv_prog_CC"; then
19178   ac_ct_CC=$CC
19179   # Extract the first word of "cc", so it can be a program name with args.
19180 set dummy cc; ac_word=$2
19181 echo "$as_me:$LINENO: checking for $ac_word" >&5
19182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19184   echo $ECHO_N "(cached) $ECHO_C" >&6
19185 else
19186   if test -n "$ac_ct_CC"; then
19187   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19188 else
19189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19190 for as_dir in $PATH
19191 do
19192   IFS=$as_save_IFS
19193   test -z "$as_dir" && as_dir=.
19194   for ac_exec_ext in '' $ac_executable_extensions; do
19195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19196     ac_cv_prog_ac_ct_CC="cc"
19197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19198     break 2
19199   fi
19200 done
19201 done
19202
19203 fi
19204 fi
19205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19206 if test -n "$ac_ct_CC"; then
19207   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19208 echo "${ECHO_T}$ac_ct_CC" >&6
19209 else
19210   echo "$as_me:$LINENO: result: no" >&5
19211 echo "${ECHO_T}no" >&6
19212 fi
19213
19214   CC=$ac_ct_CC
19215 else
19216   CC="$ac_cv_prog_CC"
19217 fi
19218
19219 fi
19220 if test -z "$CC"; then
19221   # Extract the first word of "cc", so it can be a program name with args.
19222 set dummy cc; ac_word=$2
19223 echo "$as_me:$LINENO: checking for $ac_word" >&5
19224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19225 if test "${ac_cv_prog_CC+set}" = set; then
19226   echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228   if test -n "$CC"; then
19229   ac_cv_prog_CC="$CC" # Let the user override the test.
19230 else
19231   ac_prog_rejected=no
19232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19233 for as_dir in $PATH
19234 do
19235   IFS=$as_save_IFS
19236   test -z "$as_dir" && as_dir=.
19237   for ac_exec_ext in '' $ac_executable_extensions; do
19238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19239     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19240        ac_prog_rejected=yes
19241        continue
19242      fi
19243     ac_cv_prog_CC="cc"
19244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19245     break 2
19246   fi
19247 done
19248 done
19249
19250 if test $ac_prog_rejected = yes; then
19251   # We found a bogon in the path, so make sure we never use it.
19252   set dummy $ac_cv_prog_CC
19253   shift
19254   if test $# != 0; then
19255     # We chose a different compiler from the bogus one.
19256     # However, it has the same basename, so the bogon will be chosen
19257     # first if we set CC to just the basename; use the full file name.
19258     shift
19259     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19260   fi
19261 fi
19262 fi
19263 fi
19264 CC=$ac_cv_prog_CC
19265 if test -n "$CC"; then
19266   echo "$as_me:$LINENO: result: $CC" >&5
19267 echo "${ECHO_T}$CC" >&6
19268 else
19269   echo "$as_me:$LINENO: result: no" >&5
19270 echo "${ECHO_T}no" >&6
19271 fi
19272
19273 fi
19274 if test -z "$CC"; then
19275   if test -n "$ac_tool_prefix"; then
19276   for ac_prog in cl
19277   do
19278     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19280 echo "$as_me:$LINENO: checking for $ac_word" >&5
19281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19282 if test "${ac_cv_prog_CC+set}" = set; then
19283   echo $ECHO_N "(cached) $ECHO_C" >&6
19284 else
19285   if test -n "$CC"; then
19286   ac_cv_prog_CC="$CC" # Let the user override the test.
19287 else
19288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19289 for as_dir in $PATH
19290 do
19291   IFS=$as_save_IFS
19292   test -z "$as_dir" && as_dir=.
19293   for ac_exec_ext in '' $ac_executable_extensions; do
19294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19295     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19297     break 2
19298   fi
19299 done
19300 done
19301
19302 fi
19303 fi
19304 CC=$ac_cv_prog_CC
19305 if test -n "$CC"; then
19306   echo "$as_me:$LINENO: result: $CC" >&5
19307 echo "${ECHO_T}$CC" >&6
19308 else
19309   echo "$as_me:$LINENO: result: no" >&5
19310 echo "${ECHO_T}no" >&6
19311 fi
19312
19313     test -n "$CC" && break
19314   done
19315 fi
19316 if test -z "$CC"; then
19317   ac_ct_CC=$CC
19318   for ac_prog in cl
19319 do
19320   # Extract the first word of "$ac_prog", so it can be a program name with args.
19321 set dummy $ac_prog; ac_word=$2
19322 echo "$as_me:$LINENO: checking for $ac_word" >&5
19323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19325   echo $ECHO_N "(cached) $ECHO_C" >&6
19326 else
19327   if test -n "$ac_ct_CC"; then
19328   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19329 else
19330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19331 for as_dir in $PATH
19332 do
19333   IFS=$as_save_IFS
19334   test -z "$as_dir" && as_dir=.
19335   for ac_exec_ext in '' $ac_executable_extensions; do
19336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19337     ac_cv_prog_ac_ct_CC="$ac_prog"
19338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19339     break 2
19340   fi
19341 done
19342 done
19343
19344 fi
19345 fi
19346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19347 if test -n "$ac_ct_CC"; then
19348   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19349 echo "${ECHO_T}$ac_ct_CC" >&6
19350 else
19351   echo "$as_me:$LINENO: result: no" >&5
19352 echo "${ECHO_T}no" >&6
19353 fi
19354
19355   test -n "$ac_ct_CC" && break
19356 done
19357
19358   CC=$ac_ct_CC
19359 fi
19360
19361 fi
19362
19363
19364 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19365 See \`config.log' for more details." >&5
19366 echo "$as_me: error: no acceptable C compiler found in \$PATH
19367 See \`config.log' for more details." >&2;}
19368    { (exit 1); exit 1; }; }
19369
19370 # Provide some information about the compiler.
19371 echo "$as_me:$LINENO:" \
19372      "checking for C compiler version" >&5
19373 ac_compiler=`set X $ac_compile; echo $2`
19374 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19375   (eval $ac_compiler --version </dev/null >&5) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }
19379 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19380   (eval $ac_compiler -v </dev/null >&5) 2>&5
19381   ac_status=$?
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); }
19384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19385   (eval $ac_compiler -V </dev/null >&5) 2>&5
19386   ac_status=$?
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); }
19389
19390 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19391 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19392 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19393   echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395   cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h.  */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h.  */
19401
19402 int
19403 main ()
19404 {
19405 #ifndef __GNUC__
19406        choke me
19407 #endif
19408
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415   (eval $ac_compile) 2>conftest.er1
19416   ac_status=$?
19417   grep -v '^ *+' conftest.er1 >conftest.err
19418   rm -f conftest.er1
19419   cat conftest.err >&5
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); } &&
19422          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424   (eval $ac_try) 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; } &&
19428          { ac_try='test -s conftest.$ac_objext'
19429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430   (eval $ac_try) 2>&5
19431   ac_status=$?
19432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433   (exit $ac_status); }; }; then
19434   ac_compiler_gnu=yes
19435 else
19436   echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19438
19439 ac_compiler_gnu=no
19440 fi
19441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19442 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19443
19444 fi
19445 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19446 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19447 GCC=`test $ac_compiler_gnu = yes && echo yes`
19448 ac_test_CFLAGS=${CFLAGS+set}
19449 ac_save_CFLAGS=$CFLAGS
19450 CFLAGS="-g"
19451 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19452 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19453 if test "${ac_cv_prog_cc_g+set}" = set; then
19454   echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456   cat >conftest.$ac_ext <<_ACEOF
19457 /* confdefs.h.  */
19458 _ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h.  */
19462
19463 int
19464 main ()
19465 {
19466
19467   ;
19468   return 0;
19469 }
19470 _ACEOF
19471 rm -f conftest.$ac_objext
19472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19473   (eval $ac_compile) 2>conftest.er1
19474   ac_status=$?
19475   grep -v '^ *+' conftest.er1 >conftest.err
19476   rm -f conftest.er1
19477   cat conftest.err >&5
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); } &&
19480          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482   (eval $ac_try) 2>&5
19483   ac_status=$?
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); }; } &&
19486          { ac_try='test -s conftest.$ac_objext'
19487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488   (eval $ac_try) 2>&5
19489   ac_status=$?
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); }; }; then
19492   ac_cv_prog_cc_g=yes
19493 else
19494   echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 ac_cv_prog_cc_g=no
19498 fi
19499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19500 fi
19501 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19502 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19503 if test "$ac_test_CFLAGS" = set; then
19504   CFLAGS=$ac_save_CFLAGS
19505 elif test $ac_cv_prog_cc_g = yes; then
19506   if test "$GCC" = yes; then
19507     CFLAGS="-g -O2"
19508   else
19509     CFLAGS="-g"
19510   fi
19511 else
19512   if test "$GCC" = yes; then
19513     CFLAGS="-O2"
19514   else
19515     CFLAGS=
19516   fi
19517 fi
19518 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19519 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19520 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19521   echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523   ac_cv_prog_cc_stdc=no
19524 ac_save_CC=$CC
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h.  */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h.  */
19531 #include <stdarg.h>
19532 #include <stdio.h>
19533 #include <sys/types.h>
19534 #include <sys/stat.h>
19535 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19536 struct buf { int x; };
19537 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19538 static char *e (p, i)
19539      char **p;
19540      int i;
19541 {
19542   return p[i];
19543 }
19544 static char *f (char * (*g) (char **, int), char **p, ...)
19545 {
19546   char *s;
19547   va_list v;
19548   va_start (v,p);
19549   s = g (p, va_arg (v,int));
19550   va_end (v);
19551   return s;
19552 }
19553
19554 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19555    function prototypes and stuff, but not '\xHH' hex character constants.
19556    These don't provoke an error unfortunately, instead are silently treated
19557    as 'x'.  The following induces an error, until -std1 is added to get
19558    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19559    array size at least.  It's necessary to write '\x00'==0 to get something
19560    that's true only with -std1.  */
19561 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19562
19563 int test (int i, double x);
19564 struct s1 {int (*f) (int a);};
19565 struct s2 {int (*f) (double a);};
19566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19567 int argc;
19568 char **argv;
19569 int
19570 main ()
19571 {
19572 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19573   ;
19574   return 0;
19575 }
19576 _ACEOF
19577 # Don't try gcc -ansi; that turns off useful extensions and
19578 # breaks some systems' header files.
19579 # AIX                   -qlanglvl=ansi
19580 # Ultrix and OSF/1      -std1
19581 # HP-UX 10.20 and later -Ae
19582 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19583 # SVR4                  -Xc -D__EXTENSIONS__
19584 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19585 do
19586   CC="$ac_save_CC $ac_arg"
19587   rm -f conftest.$ac_objext
19588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19589   (eval $ac_compile) 2>conftest.er1
19590   ac_status=$?
19591   grep -v '^ *+' conftest.er1 >conftest.err
19592   rm -f conftest.er1
19593   cat conftest.err >&5
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); } &&
19596          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598   (eval $ac_try) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; } &&
19602          { ac_try='test -s conftest.$ac_objext'
19603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604   (eval $ac_try) 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; }; then
19608   ac_cv_prog_cc_stdc=$ac_arg
19609 break
19610 else
19611   echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614 fi
19615 rm -f conftest.err conftest.$ac_objext
19616 done
19617 rm -f conftest.$ac_ext conftest.$ac_objext
19618 CC=$ac_save_CC
19619
19620 fi
19621
19622 case "x$ac_cv_prog_cc_stdc" in
19623   x|xno)
19624     echo "$as_me:$LINENO: result: none needed" >&5
19625 echo "${ECHO_T}none needed" >&6 ;;
19626   *)
19627     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19628 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19629     CC="$CC $ac_cv_prog_cc_stdc" ;;
19630 esac
19631
19632 # Some people use a C++ compiler to compile C.  Since we use `exit',
19633 # in C++ we need to declare it.  In case someone uses the same compiler
19634 # for both compiling C and C++ we need to have the C++ compiler decide
19635 # the declaration of exit, since it's the most demanding environment.
19636 cat >conftest.$ac_ext <<_ACEOF
19637 #ifndef __cplusplus
19638   choke me
19639 #endif
19640 _ACEOF
19641 rm -f conftest.$ac_objext
19642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19643   (eval $ac_compile) 2>conftest.er1
19644   ac_status=$?
19645   grep -v '^ *+' conftest.er1 >conftest.err
19646   rm -f conftest.er1
19647   cat conftest.err >&5
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); } &&
19650          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652   (eval $ac_try) 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); }; } &&
19656          { ac_try='test -s conftest.$ac_objext'
19657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658   (eval $ac_try) 2>&5
19659   ac_status=$?
19660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661   (exit $ac_status); }; }; then
19662   for ac_declaration in \
19663    '' \
19664    'extern "C" void std::exit (int) throw (); using std::exit;' \
19665    'extern "C" void std::exit (int); using std::exit;' \
19666    'extern "C" void exit (int) throw ();' \
19667    'extern "C" void exit (int);' \
19668    'void exit (int);'
19669 do
19670   cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h.  */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h.  */
19676 $ac_declaration
19677 #include <stdlib.h>
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   :
19708 else
19709   echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19711
19712 continue
19713 fi
19714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19715   cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h.  */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h.  */
19721 $ac_declaration
19722 int
19723 main ()
19724 {
19725 exit (42);
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19732   (eval $ac_compile) 2>conftest.er1
19733   ac_status=$?
19734   grep -v '^ *+' conftest.er1 >conftest.err
19735   rm -f conftest.er1
19736   cat conftest.err >&5
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); } &&
19739          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741   (eval $ac_try) 2>&5
19742   ac_status=$?
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); }; } &&
19745          { ac_try='test -s conftest.$ac_objext'
19746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747   (eval $ac_try) 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }; }; then
19751   break
19752 else
19753   echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 fi
19757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19758 done
19759 rm -f conftest*
19760 if test -n "$ac_declaration"; then
19761   echo '#ifdef __cplusplus' >>confdefs.h
19762   echo $ac_declaration      >>confdefs.h
19763   echo '#endif'             >>confdefs.h
19764 fi
19765
19766 else
19767   echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 fi
19771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19772 ac_ext=c
19773 ac_cpp='$CPP $CPPFLAGS'
19774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19777
19778 depcc="$CC"   am_compiler_list=
19779
19780 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19781 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19782 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19783   echo $ECHO_N "(cached) $ECHO_C" >&6
19784 else
19785   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19786   # We make a subdir and do the tests there.  Otherwise we can end up
19787   # making bogus files that we don't know about and never remove.  For
19788   # instance it was reported that on HP-UX the gcc test will end up
19789   # making a dummy file named `D' -- because `-MD' means `put the output
19790   # in D'.
19791   mkdir conftest.dir
19792   # Copy depcomp to subdir because otherwise we won't find it if we're
19793   # using a relative directory.
19794   cp "$am_depcomp" conftest.dir
19795   cd conftest.dir
19796   # We will build objects and dependencies in a subdirectory because
19797   # it helps to detect inapplicable dependency modes.  For instance
19798   # both Tru64's cc and ICC support -MD to output dependencies as a
19799   # side effect of compilation, but ICC will put the dependencies in
19800   # the current directory while Tru64 will put them in the object
19801   # directory.
19802   mkdir sub
19803
19804   am_cv_CC_dependencies_compiler_type=none
19805   if test "$am_compiler_list" = ""; then
19806      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19807   fi
19808   for depmode in $am_compiler_list; do
19809     # Setup a source with many dependencies, because some compilers
19810     # like to wrap large dependency lists on column 80 (with \), and
19811     # we should not choose a depcomp mode which is confused by this.
19812     #
19813     # We need to recreate these files for each test, as the compiler may
19814     # overwrite some of them when testing with obscure command lines.
19815     # This happens at least with the AIX C compiler.
19816     : > sub/conftest.c
19817     for i in 1 2 3 4 5 6; do
19818       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19819       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19820       # Solaris 8's {/usr,}/bin/sh.
19821       touch sub/conftst$i.h
19822     done
19823     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19824
19825     case $depmode in
19826     nosideeffect)
19827       # after this tag, mechanisms are not by side-effect, so they'll
19828       # only be used when explicitly requested
19829       if test "x$enable_dependency_tracking" = xyes; then
19830         continue
19831       else
19832         break
19833       fi
19834       ;;
19835     none) break ;;
19836     esac
19837     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19838     # mode.  It turns out that the SunPro C++ compiler does not properly
19839     # handle `-M -o', and we need to detect this.
19840     if depmode=$depmode \
19841        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19842        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19843        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19844          >/dev/null 2>conftest.err &&
19845        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19846        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19847        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19848       # icc doesn't choke on unknown options, it will just issue warnings
19849       # or remarks (even with -Werror).  So we grep stderr for any message
19850       # that says an option was ignored or not supported.
19851       # When given -MP, icc 7.0 and 7.1 complain thusly:
19852       #   icc: Command line warning: ignoring option '-M'; no argument required
19853       # The diagnosis changed in icc 8.0:
19854       #   icc: Command line remark: option '-MP' not supported
19855       if (grep 'ignoring option' conftest.err ||
19856           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19857         am_cv_CC_dependencies_compiler_type=$depmode
19858         break
19859       fi
19860     fi
19861   done
19862
19863   cd ..
19864   rm -rf conftest.dir
19865 else
19866   am_cv_CC_dependencies_compiler_type=none
19867 fi
19868
19869 fi
19870 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19871 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19873
19874
19875
19876 if
19877   test "x$enable_dependency_tracking" != xno \
19878   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19879   am__fastdepCC_TRUE=
19880   am__fastdepCC_FALSE='#'
19881 else
19882   am__fastdepCC_TRUE='#'
19883   am__fastdepCC_FALSE=
19884 fi
19885
19886
19887 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19888 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19889 # Just in case
19890 sleep 1
19891 echo timestamp > conftest.file
19892 # Do `set' in a subshell so we don't clobber the current shell's
19893 # arguments.  Must try -L first in case configure is actually a
19894 # symlink; some systems play weird games with the mod time of symlinks
19895 # (eg FreeBSD returns the mod time of the symlink's containing
19896 # directory).
19897 if (
19898    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19899    if test "$*" = "X"; then
19900       # -L didn't work.
19901       set X `ls -t $srcdir/configure conftest.file`
19902    fi
19903    rm -f conftest.file
19904    if test "$*" != "X $srcdir/configure conftest.file" \
19905       && test "$*" != "X conftest.file $srcdir/configure"; then
19906
19907       # If neither matched, then we have a broken ls.  This can happen
19908       # if, for instance, CONFIG_SHELL is bash and it inherits a
19909       # broken ls alias from the environment.  This has actually
19910       # happened.  Such a system could not be considered "sane".
19911       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19912 alias in your environment" >&5
19913 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19914 alias in your environment" >&2;}
19915    { (exit 1); exit 1; }; }
19916    fi
19917
19918    test "$2" = conftest.file
19919    )
19920 then
19921    # Ok.
19922    :
19923 else
19924    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19925 Check your system clock" >&5
19926 echo "$as_me: error: newly created file is older than distributed files!
19927 Check your system clock" >&2;}
19928    { (exit 1); exit 1; }; }
19929 fi
19930 echo "$as_me:$LINENO: result: yes" >&5
19931 echo "${ECHO_T}yes" >&6
19932 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19933 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19934 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19935 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19936   echo $ECHO_N "(cached) $ECHO_C" >&6
19937 else
19938   cat >conftest.make <<\_ACEOF
19939 all:
19940         @echo 'ac_maketemp="$(MAKE)"'
19941 _ACEOF
19942 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19943 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19944 if test -n "$ac_maketemp"; then
19945   eval ac_cv_prog_make_${ac_make}_set=yes
19946 else
19947   eval ac_cv_prog_make_${ac_make}_set=no
19948 fi
19949 rm -f conftest.make
19950 fi
19951 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19952   echo "$as_me:$LINENO: result: yes" >&5
19953 echo "${ECHO_T}yes" >&6
19954   SET_MAKE=
19955 else
19956   echo "$as_me:$LINENO: result: no" >&5
19957 echo "${ECHO_T}no" >&6
19958   SET_MAKE="MAKE=${MAKE-make}"
19959 fi
19960
19961
19962 # Check architecture signature begin
19963
19964 # Check for the architecture
19965 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19966 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19967 if test "${ac_cv_c_bigendian+set}" = set; then
19968   echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970   # See if sys/param.h defines the BYTE_ORDER macro.
19971 cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h.  */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h.  */
19977 #include <sys/types.h>
19978 #include <sys/param.h>
19979
19980 int
19981 main ()
19982 {
19983 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19984  bogus endian macros
19985 #endif
19986
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993   (eval $ac_compile) 2>conftest.er1
19994   ac_status=$?
19995   grep -v '^ *+' conftest.er1 >conftest.err
19996   rm -f conftest.er1
19997   cat conftest.err >&5
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } &&
20000          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002   (eval $ac_try) 2>&5
20003   ac_status=$?
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); }; } &&
20006          { ac_try='test -s conftest.$ac_objext'
20007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008   (eval $ac_try) 2>&5
20009   ac_status=$?
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); }; }; then
20012   # It does; now see whether it defined to BIG_ENDIAN or not.
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019 #include <sys/types.h>
20020 #include <sys/param.h>
20021
20022 int
20023 main ()
20024 {
20025 #if BYTE_ORDER != BIG_ENDIAN
20026  not big endian
20027 #endif
20028
20029   ;
20030   return 0;
20031 }
20032 _ACEOF
20033 rm -f conftest.$ac_objext
20034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20035   (eval $ac_compile) 2>conftest.er1
20036   ac_status=$?
20037   grep -v '^ *+' conftest.er1 >conftest.err
20038   rm -f conftest.er1
20039   cat conftest.err >&5
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); } &&
20042          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044   (eval $ac_try) 2>&5
20045   ac_status=$?
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); }; } &&
20048          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20054   ac_cv_c_bigendian=yes
20055 else
20056   echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 ac_cv_c_bigendian=no
20060 fi
20061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 # It does not; compile a test program.
20067 if test "$cross_compiling" = yes; then
20068   # try to guess the endianness by grepping values into an object file
20069   ac_cv_c_bigendian=unknown
20070   cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h.  */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h.  */
20076 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20077 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20078 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20079 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20080 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20081 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20082 int
20083 main ()
20084 {
20085  _ascii (); _ebcdic ();
20086   ;
20087   return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext
20091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20092   (eval $ac_compile) 2>conftest.er1
20093   ac_status=$?
20094   grep -v '^ *+' conftest.er1 >conftest.err
20095   rm -f conftest.er1
20096   cat conftest.err >&5
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); } &&
20099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101   (eval $ac_try) 2>&5
20102   ac_status=$?
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); }; } &&
20105          { ac_try='test -s conftest.$ac_objext'
20106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107   (eval $ac_try) 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; }; then
20111   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20112   ac_cv_c_bigendian=yes
20113 fi
20114 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20115   if test "$ac_cv_c_bigendian" = unknown; then
20116     ac_cv_c_bigendian=no
20117   else
20118     # finding both strings is unlikely to happen, but who knows?
20119     ac_cv_c_bigendian=unknown
20120   fi
20121 fi
20122 else
20123   echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126 fi
20127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20128 else
20129   cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 int
20136 main ()
20137 {
20138   /* Are we little or big endian?  From Harbison&Steele.  */
20139   union
20140   {
20141     long l;
20142     char c[sizeof (long)];
20143   } u;
20144   u.l = 1;
20145   exit (u.c[sizeof (long) - 1] == 1);
20146 }
20147 _ACEOF
20148 rm -f conftest$ac_exeext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20150   (eval $ac_link) 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155   (eval $ac_try) 2>&5
20156   ac_status=$?
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); }; }; then
20159   ac_cv_c_bigendian=no
20160 else
20161   echo "$as_me: program exited with status $ac_status" >&5
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165 ( exit $ac_status )
20166 ac_cv_c_bigendian=yes
20167 fi
20168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20169 fi
20170 fi
20171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20172 fi
20173 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20174 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20175 case $ac_cv_c_bigendian in
20176   yes)
20177     endian=1 ;;
20178   no)
20179     endian=0 ;;
20180   *)
20181     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20182 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20183    { (exit 1); exit 1; }; } ;;
20184 esac
20185
20186
20187 cat >>confdefs.h <<_ACEOF
20188 #define GRAS_BIGENDIAN $endian
20189 _ACEOF
20190
20191
20192 echo "$as_me:$LINENO: checking size of char" >&5
20193 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20194     if test "${ac_cv_sizeof_char+set}" = set; then
20195   echo $ECHO_N "(cached) $ECHO_C" >&6
20196 else
20197   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20198    cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204 #include "confdefs.h"
20205    #include <sys/types.h>
20206
20207
20208 int
20209 main ()
20210 {
20211 switch (0) case 0: case (sizeof (char) == $ac_size):;
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218   (eval $ac_compile) 2>conftest.er1
20219   ac_status=$?
20220   grep -v '^ *+' conftest.er1 >conftest.err
20221   rm -f conftest.er1
20222   cat conftest.err >&5
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } &&
20225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227   (eval $ac_try) 2>&5
20228   ac_status=$?
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); }; } &&
20231          { ac_try='test -s conftest.$ac_objext'
20232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233   (eval $ac_try) 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); }; }; then
20237   ac_cv_sizeof_char=$ac_size
20238 else
20239   echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20241
20242 fi
20243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20244    if test x$ac_cv_sizeof_char != x ; then break; fi
20245   done
20246
20247 fi
20248
20249
20250 unspecif=$ac_cv_sizeof_char
20251 if test x$unspecif = x ; then
20252   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20253 echo "$as_me: error: cannot determine a size for char" >&2;}
20254    { (exit 1); exit 1; }; }
20255 fi
20256
20257     if test "${ac_cv_sizeof_signed_char+set}" = set; then
20258   echo $ECHO_N "(cached) $ECHO_C" >&6
20259 else
20260   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20261    cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h.  */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h.  */
20267 #include "confdefs.h"
20268    #include <sys/types.h>
20269
20270
20271 int
20272 main ()
20273 {
20274 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext
20280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20281   (eval $ac_compile) 2>conftest.er1
20282   ac_status=$?
20283   grep -v '^ *+' conftest.er1 >conftest.err
20284   rm -f conftest.er1
20285   cat conftest.err >&5
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); } &&
20288          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290   (eval $ac_try) 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; } &&
20294          { ac_try='test -s conftest.$ac_objext'
20295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296   (eval $ac_try) 2>&5
20297   ac_status=$?
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); }; }; then
20300   ac_cv_sizeof_signed_char=$ac_size
20301 else
20302   echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305 fi
20306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20308   done
20309
20310 fi
20311
20312
20313 signed=$ac_cv_sizeof_signed_char
20314 if test x$signed = x ; then
20315   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20316 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20317    { (exit 1); exit 1; }; }
20318 fi
20319 if test x$unspecif != x$signed ; then
20320   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20321 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20322    { (exit 1); exit 1; }; }
20323 fi
20324
20325     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20329    cat >conftest.$ac_ext <<_ACEOF
20330 /* confdefs.h.  */
20331 _ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h.  */
20335 #include "confdefs.h"
20336    #include <sys/types.h>
20337
20338
20339 int
20340 main ()
20341 {
20342 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 rm -f conftest.$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349   (eval $ac_compile) 2>conftest.er1
20350   ac_status=$?
20351   grep -v '^ *+' conftest.er1 >conftest.err
20352   rm -f conftest.er1
20353   cat conftest.err >&5
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); } &&
20356          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358   (eval $ac_try) 2>&5
20359   ac_status=$?
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); }; } &&
20362          { ac_try='test -s conftest.$ac_objext'
20363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364   (eval $ac_try) 2>&5
20365   ac_status=$?
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); }; }; then
20368   ac_cv_sizeof_unsigned_char=$ac_size
20369 else
20370   echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20372
20373 fi
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20376   done
20377
20378 fi
20379
20380
20381 unsigned=$ac_cv_sizeof_unsigned_char
20382 if test x$unsigned = x ; then
20383   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20384 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20385    { (exit 1); exit 1; }; }
20386 fi
20387 if test x$unsigned != x$signed ; then
20388   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20389 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20390    { (exit 1); exit 1; }; }
20391 fi
20392
20393
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h.  */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h.  */
20400 #include "confdefs.h"
20401 union {
20402    signed char testInt;
20403    unsigned char bytes[sizeof(char)];
20404 } intTester;
20405
20406 int
20407 main ()
20408 {
20409
20410    intTester.testInt = -2;
20411    return ((unsigned int)intTester.bytes[0] +
20412            (unsigned int)intTester.bytes[sizeof(char) - 1]) != 509;
20413
20414   ;
20415   return 0;
20416 }
20417 _ACEOF
20418 rm -f conftest.$ac_objext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20420   (eval $ac_compile) 2>conftest.er1
20421   ac_status=$?
20422   grep -v '^ *+' conftest.er1 >conftest.err
20423   rm -f conftest.er1
20424   cat conftest.err >&5
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); } &&
20427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429   (eval $ac_try) 2>&5
20430   ac_status=$?
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); }; } &&
20433          { ac_try='test -s conftest.$ac_objext'
20434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435   (eval $ac_try) 2>&5
20436   ac_status=$?
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); }; }; then
20439   :
20440 else
20441   echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20443
20444 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
20445 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
20446    { (exit 1); exit 1; }; }
20447 fi
20448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20449
20450 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20451 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20452
20453 cat >>confdefs.h <<_ACEOF
20454 #define SIZEOF_CHAR $ac_cv_sizeof_unsigned_char
20455 _ACEOF
20456
20457
20458 echo "$as_me:$LINENO: checking size of short int" >&5
20459 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20460     if test "${ac_cv_sizeof_short_int+set}" = set; then
20461   echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20464    cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h.  */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h.  */
20470 #include "confdefs.h"
20471    #include <sys/types.h>
20472
20473
20474 int
20475 main ()
20476 {
20477 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20478   ;
20479   return 0;
20480 }
20481 _ACEOF
20482 rm -f conftest.$ac_objext
20483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20484   (eval $ac_compile) 2>conftest.er1
20485   ac_status=$?
20486   grep -v '^ *+' conftest.er1 >conftest.err
20487   rm -f conftest.er1
20488   cat conftest.err >&5
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); } &&
20491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493   (eval $ac_try) 2>&5
20494   ac_status=$?
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); }; } &&
20497          { ac_try='test -s conftest.$ac_objext'
20498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499   (eval $ac_try) 2>&5
20500   ac_status=$?
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); }; }; then
20503   ac_cv_sizeof_short_int=$ac_size
20504 else
20505   echo "$as_me: failed program was:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20507
20508 fi
20509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20510    if test x$ac_cv_sizeof_short_int != x ; then break; fi
20511   done
20512
20513 fi
20514
20515
20516 unspecif=$ac_cv_sizeof_short_int
20517 if test x$unspecif = x ; then
20518   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20519 echo "$as_me: error: cannot determine a size for short int" >&2;}
20520    { (exit 1); exit 1; }; }
20521 fi
20522
20523     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20524   echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20527    cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h.  */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h.  */
20533 #include "confdefs.h"
20534    #include <sys/types.h>
20535
20536
20537 int
20538 main ()
20539 {
20540 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20541   ;
20542   return 0;
20543 }
20544 _ACEOF
20545 rm -f conftest.$ac_objext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20547   (eval $ac_compile) 2>conftest.er1
20548   ac_status=$?
20549   grep -v '^ *+' conftest.er1 >conftest.err
20550   rm -f conftest.er1
20551   cat conftest.err >&5
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } &&
20554          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556   (eval $ac_try) 2>&5
20557   ac_status=$?
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); }; } &&
20560          { ac_try='test -s conftest.$ac_objext'
20561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562   (eval $ac_try) 2>&5
20563   ac_status=$?
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); }; }; then
20566   ac_cv_sizeof_signed_short_int=$ac_size
20567 else
20568   echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571 fi
20572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20573    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20574   done
20575
20576 fi
20577
20578
20579 signed=$ac_cv_sizeof_signed_short_int
20580 if test x$signed = x ; then
20581   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20582 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20583    { (exit 1); exit 1; }; }
20584 fi
20585 if test x$unspecif != x$signed ; then
20586   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20587 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20588    { (exit 1); exit 1; }; }
20589 fi
20590
20591     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20592   echo $ECHO_N "(cached) $ECHO_C" >&6
20593 else
20594   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20595    cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h.  */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h.  */
20601 #include "confdefs.h"
20602    #include <sys/types.h>
20603
20604
20605 int
20606 main ()
20607 {
20608 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20609   ;
20610   return 0;
20611 }
20612 _ACEOF
20613 rm -f conftest.$ac_objext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20615   (eval $ac_compile) 2>conftest.er1
20616   ac_status=$?
20617   grep -v '^ *+' conftest.er1 >conftest.err
20618   rm -f conftest.er1
20619   cat conftest.err >&5
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); } &&
20622          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624   (eval $ac_try) 2>&5
20625   ac_status=$?
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); }; } &&
20628          { ac_try='test -s conftest.$ac_objext'
20629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20630   (eval $ac_try) 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); }; }; then
20634   ac_cv_sizeof_unsigned_short_int=$ac_size
20635 else
20636   echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639 fi
20640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20641    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20642   done
20643
20644 fi
20645
20646
20647 unsigned=$ac_cv_sizeof_unsigned_short_int
20648 if test x$unsigned = x ; then
20649   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20650 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20651    { (exit 1); exit 1; }; }
20652 fi
20653 if test x$unsigned != x$signed ; then
20654   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20655 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20656    { (exit 1); exit 1; }; }
20657 fi
20658
20659
20660 cat >conftest.$ac_ext <<_ACEOF
20661 /* confdefs.h.  */
20662 _ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h.  */
20666 #include "confdefs.h"
20667 union {
20668    signed short int testInt;
20669    unsigned char bytes[sizeof(short int)];
20670 } intTester;
20671
20672 int
20673 main ()
20674 {
20675
20676    intTester.testInt = -2;
20677    return ((unsigned int)intTester.bytes[0] +
20678            (unsigned int)intTester.bytes[sizeof(short int) - 1]) != 509;
20679
20680   ;
20681   return 0;
20682 }
20683 _ACEOF
20684 rm -f conftest.$ac_objext
20685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20686   (eval $ac_compile) 2>conftest.er1
20687   ac_status=$?
20688   grep -v '^ *+' conftest.er1 >conftest.err
20689   rm -f conftest.er1
20690   cat conftest.err >&5
20691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692   (exit $ac_status); } &&
20693          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695   (eval $ac_try) 2>&5
20696   ac_status=$?
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); }; } &&
20699          { ac_try='test -s conftest.$ac_objext'
20700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701   (eval $ac_try) 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); }; }; then
20705   :
20706 else
20707   echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20709
20710 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
20711 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
20712    { (exit 1); exit 1; }; }
20713 fi
20714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20715
20716 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20717 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20718
20719 cat >>confdefs.h <<_ACEOF
20720 #define SIZEOF_SHORT_INT $ac_cv_sizeof_unsigned_short_int
20721 _ACEOF
20722
20723
20724 echo "$as_me:$LINENO: checking size of int" >&5
20725 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20726     if test "${ac_cv_sizeof_int+set}" = set; then
20727   echo $ECHO_N "(cached) $ECHO_C" >&6
20728 else
20729   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20730    cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h.  */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h.  */
20736 #include "confdefs.h"
20737    #include <sys/types.h>
20738
20739
20740 int
20741 main ()
20742 {
20743 switch (0) case 0: case (sizeof (int) == $ac_size):;
20744   ;
20745   return 0;
20746 }
20747 _ACEOF
20748 rm -f conftest.$ac_objext
20749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20750   (eval $ac_compile) 2>conftest.er1
20751   ac_status=$?
20752   grep -v '^ *+' conftest.er1 >conftest.err
20753   rm -f conftest.er1
20754   cat conftest.err >&5
20755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756   (exit $ac_status); } &&
20757          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759   (eval $ac_try) 2>&5
20760   ac_status=$?
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); }; } &&
20763          { ac_try='test -s conftest.$ac_objext'
20764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20765   (eval $ac_try) 2>&5
20766   ac_status=$?
20767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768   (exit $ac_status); }; }; then
20769   ac_cv_sizeof_int=$ac_size
20770 else
20771   echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20773
20774 fi
20775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20776    if test x$ac_cv_sizeof_int != x ; then break; fi
20777   done
20778
20779 fi
20780
20781
20782 unspecif=$ac_cv_sizeof_int
20783 if test x$unspecif = x ; then
20784   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20785 echo "$as_me: error: cannot determine a size for int" >&2;}
20786    { (exit 1); exit 1; }; }
20787 fi
20788
20789     if test "${ac_cv_sizeof_signed_int+set}" = set; then
20790   echo $ECHO_N "(cached) $ECHO_C" >&6
20791 else
20792   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20793    cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h.  */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h.  */
20799 #include "confdefs.h"
20800    #include <sys/types.h>
20801
20802
20803 int
20804 main ()
20805 {
20806 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20807   ;
20808   return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest.$ac_objext
20812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20813   (eval $ac_compile) 2>conftest.er1
20814   ac_status=$?
20815   grep -v '^ *+' conftest.er1 >conftest.err
20816   rm -f conftest.er1
20817   cat conftest.err >&5
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); } &&
20820          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822   (eval $ac_try) 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); }; } &&
20826          { ac_try='test -s conftest.$ac_objext'
20827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828   (eval $ac_try) 2>&5
20829   ac_status=$?
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); }; }; then
20832   ac_cv_sizeof_signed_int=$ac_size
20833 else
20834   echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 fi
20838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20839    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20840   done
20841
20842 fi
20843
20844
20845 signed=$ac_cv_sizeof_signed_int
20846 if test x$signed = x ; then
20847   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20848 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20849    { (exit 1); exit 1; }; }
20850 fi
20851 if test x$unspecif != x$signed ; then
20852   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20853 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20854    { (exit 1); exit 1; }; }
20855 fi
20856
20857     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20861    cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h.  */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h.  */
20867 #include "confdefs.h"
20868    #include <sys/types.h>
20869
20870
20871 int
20872 main ()
20873 {
20874 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
20875   ;
20876   return 0;
20877 }
20878 _ACEOF
20879 rm -f conftest.$ac_objext
20880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20881   (eval $ac_compile) 2>conftest.er1
20882   ac_status=$?
20883   grep -v '^ *+' conftest.er1 >conftest.err
20884   rm -f conftest.er1
20885   cat conftest.err >&5
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); } &&
20888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890   (eval $ac_try) 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; } &&
20894          { ac_try='test -s conftest.$ac_objext'
20895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896   (eval $ac_try) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; }; then
20900   ac_cv_sizeof_unsigned_int=$ac_size
20901 else
20902   echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905 fi
20906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20907    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
20908   done
20909
20910 fi
20911
20912
20913 unsigned=$ac_cv_sizeof_unsigned_int
20914 if test x$unsigned = x ; then
20915   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
20916 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
20917    { (exit 1); exit 1; }; }
20918 fi
20919 if test x$unsigned != x$signed ; then
20920   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
20921 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
20922    { (exit 1); exit 1; }; }
20923 fi
20924
20925
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h.  */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h.  */
20932 #include "confdefs.h"
20933 union {
20934    signed int testInt;
20935    unsigned char bytes[sizeof(int)];
20936 } intTester;
20937
20938 int
20939 main ()
20940 {
20941
20942    intTester.testInt = -2;
20943    return ((unsigned int)intTester.bytes[0] +
20944            (unsigned int)intTester.bytes[sizeof(int) - 1]) != 509;
20945
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext
20951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20952   (eval $ac_compile) 2>conftest.er1
20953   ac_status=$?
20954   grep -v '^ *+' conftest.er1 >conftest.err
20955   rm -f conftest.er1
20956   cat conftest.err >&5
20957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958   (exit $ac_status); } &&
20959          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961   (eval $ac_try) 2>&5
20962   ac_status=$?
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); }; } &&
20965          { ac_try='test -s conftest.$ac_objext'
20966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967   (eval $ac_try) 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); }; }; then
20971   :
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
20977 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
20978    { (exit 1); exit 1; }; }
20979 fi
20980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20981
20982 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
20983 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
20984
20985 cat >>confdefs.h <<_ACEOF
20986 #define SIZEOF_INT $ac_cv_sizeof_unsigned_int
20987 _ACEOF
20988
20989
20990 echo "$as_me:$LINENO: checking size of long int" >&5
20991 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
20992     if test "${ac_cv_sizeof_long_int+set}" = set; then
20993   echo $ECHO_N "(cached) $ECHO_C" >&6
20994 else
20995   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
20996    cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002 #include "confdefs.h"
21003    #include <sys/types.h>
21004
21005
21006 int
21007 main ()
21008 {
21009 switch (0) case 0: case (sizeof (long int) == $ac_size):;
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21016   (eval $ac_compile) 2>conftest.er1
21017   ac_status=$?
21018   grep -v '^ *+' conftest.er1 >conftest.err
21019   rm -f conftest.er1
21020   cat conftest.err >&5
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); } &&
21023          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; } &&
21029          { ac_try='test -s conftest.$ac_objext'
21030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031   (eval $ac_try) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   ac_cv_sizeof_long_int=$ac_size
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 fi
21041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21042    if test x$ac_cv_sizeof_long_int != x ; then break; fi
21043   done
21044
21045 fi
21046
21047
21048 unspecif=$ac_cv_sizeof_long_int
21049 if test x$unspecif = x ; then
21050   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
21051 echo "$as_me: error: cannot determine a size for long int" >&2;}
21052    { (exit 1); exit 1; }; }
21053 fi
21054
21055     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
21056   echo $ECHO_N "(cached) $ECHO_C" >&6
21057 else
21058   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21059    cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h.  */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h.  */
21065 #include "confdefs.h"
21066    #include <sys/types.h>
21067
21068
21069 int
21070 main ()
21071 {
21072 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
21073   ;
21074   return 0;
21075 }
21076 _ACEOF
21077 rm -f conftest.$ac_objext
21078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21079   (eval $ac_compile) 2>conftest.er1
21080   ac_status=$?
21081   grep -v '^ *+' conftest.er1 >conftest.err
21082   rm -f conftest.er1
21083   cat conftest.err >&5
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); } &&
21086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088   (eval $ac_try) 2>&5
21089   ac_status=$?
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); }; } &&
21092          { ac_try='test -s conftest.$ac_objext'
21093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094   (eval $ac_try) 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; }; then
21098   ac_cv_sizeof_signed_long_int=$ac_size
21099 else
21100   echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103 fi
21104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21105    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
21106   done
21107
21108 fi
21109
21110
21111 signed=$ac_cv_sizeof_signed_long_int
21112 if test x$signed = x ; then
21113   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
21114 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
21115    { (exit 1); exit 1; }; }
21116 fi
21117 if test x$unspecif != x$signed ; then
21118   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
21119 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
21120    { (exit 1); exit 1; }; }
21121 fi
21122
21123     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
21124   echo $ECHO_N "(cached) $ECHO_C" >&6
21125 else
21126   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21127    cat >conftest.$ac_ext <<_ACEOF
21128 /* confdefs.h.  */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h.  */
21133 #include "confdefs.h"
21134    #include <sys/types.h>
21135
21136
21137 int
21138 main ()
21139 {
21140 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
21141   ;
21142   return 0;
21143 }
21144 _ACEOF
21145 rm -f conftest.$ac_objext
21146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21147   (eval $ac_compile) 2>conftest.er1
21148   ac_status=$?
21149   grep -v '^ *+' conftest.er1 >conftest.err
21150   rm -f conftest.er1
21151   cat conftest.err >&5
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); } &&
21154          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156   (eval $ac_try) 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; } &&
21160          { ac_try='test -s conftest.$ac_objext'
21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; }; then
21166   ac_cv_sizeof_unsigned_long_int=$ac_size
21167 else
21168   echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21170
21171 fi
21172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21173    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
21174   done
21175
21176 fi
21177
21178
21179 unsigned=$ac_cv_sizeof_unsigned_long_int
21180 if test x$unsigned = x ; then
21181   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
21182 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
21183    { (exit 1); exit 1; }; }
21184 fi
21185 if test x$unsigned != x$signed ; then
21186   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
21187 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
21188    { (exit 1); exit 1; }; }
21189 fi
21190
21191
21192 cat >conftest.$ac_ext <<_ACEOF
21193 /* confdefs.h.  */
21194 _ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h.  */
21198 #include "confdefs.h"
21199 union {
21200    signed long int testInt;
21201    unsigned char bytes[sizeof(long int)];
21202 } intTester;
21203
21204 int
21205 main ()
21206 {
21207
21208    intTester.testInt = -2;
21209    return ((unsigned int)intTester.bytes[0] +
21210            (unsigned int)intTester.bytes[sizeof(long int) - 1]) != 509;
21211
21212   ;
21213   return 0;
21214 }
21215 _ACEOF
21216 rm -f conftest.$ac_objext
21217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21218   (eval $ac_compile) 2>conftest.er1
21219   ac_status=$?
21220   grep -v '^ *+' conftest.er1 >conftest.err
21221   rm -f conftest.er1
21222   cat conftest.err >&5
21223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224   (exit $ac_status); } &&
21225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227   (eval $ac_try) 2>&5
21228   ac_status=$?
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); }; } &&
21231          { ac_try='test -s conftest.$ac_objext'
21232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233   (eval $ac_try) 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); }; }; then
21237   :
21238 else
21239   echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.$ac_ext >&5
21241
21242 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
21243 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
21244    { (exit 1); exit 1; }; }
21245 fi
21246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21247
21248 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
21249 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
21250
21251 cat >>confdefs.h <<_ACEOF
21252 #define SIZEOF_LONG_INT $ac_cv_sizeof_unsigned_long_int
21253 _ACEOF
21254
21255
21256 echo "$as_me:$LINENO: checking size of long long int" >&5
21257 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
21258     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
21259   echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21261   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21262    cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h.  */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h.  */
21268 #include "confdefs.h"
21269    #include <sys/types.h>
21270
21271
21272 int
21273 main ()
21274 {
21275 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
21276   ;
21277   return 0;
21278 }
21279 _ACEOF
21280 rm -f conftest.$ac_objext
21281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21282   (eval $ac_compile) 2>conftest.er1
21283   ac_status=$?
21284   grep -v '^ *+' conftest.er1 >conftest.err
21285   rm -f conftest.er1
21286   cat conftest.err >&5
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); } &&
21289          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291   (eval $ac_try) 2>&5
21292   ac_status=$?
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); }; } &&
21295          { ac_try='test -s conftest.$ac_objext'
21296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297   (eval $ac_try) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; }; then
21301   ac_cv_sizeof_long_long_int=$ac_size
21302 else
21303   echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306 fi
21307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21308    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21309   done
21310
21311 fi
21312
21313
21314 unspecif=$ac_cv_sizeof_long_long_int
21315 if test x$unspecif = x ; then
21316   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21317 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21318    { (exit 1); exit 1; }; }
21319 fi
21320
21321     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21322   echo $ECHO_N "(cached) $ECHO_C" >&6
21323 else
21324   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21325    cat >conftest.$ac_ext <<_ACEOF
21326 /* confdefs.h.  */
21327 _ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h.  */
21331 #include "confdefs.h"
21332    #include <sys/types.h>
21333
21334
21335 int
21336 main ()
21337 {
21338 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21339   ;
21340   return 0;
21341 }
21342 _ACEOF
21343 rm -f conftest.$ac_objext
21344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21345   (eval $ac_compile) 2>conftest.er1
21346   ac_status=$?
21347   grep -v '^ *+' conftest.er1 >conftest.err
21348   rm -f conftest.er1
21349   cat conftest.err >&5
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); } &&
21352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354   (eval $ac_try) 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); }; } &&
21358          { ac_try='test -s conftest.$ac_objext'
21359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360   (eval $ac_try) 2>&5
21361   ac_status=$?
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); }; }; then
21364   ac_cv_sizeof_signed_long_long_int=$ac_size
21365 else
21366   echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 fi
21370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21371    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21372   done
21373
21374 fi
21375
21376
21377 signed=$ac_cv_sizeof_signed_long_long_int
21378 if test x$signed = x ; then
21379   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21380 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21381    { (exit 1); exit 1; }; }
21382 fi
21383 if test x$unspecif != x$signed ; then
21384   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21385 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21386    { (exit 1); exit 1; }; }
21387 fi
21388
21389     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21390   echo $ECHO_N "(cached) $ECHO_C" >&6
21391 else
21392   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21393    cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 #include "confdefs.h"
21400    #include <sys/types.h>
21401
21402
21403 int
21404 main ()
21405 {
21406 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21407   ;
21408   return 0;
21409 }
21410 _ACEOF
21411 rm -f conftest.$ac_objext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21413   (eval $ac_compile) 2>conftest.er1
21414   ac_status=$?
21415   grep -v '^ *+' conftest.er1 >conftest.err
21416   rm -f conftest.er1
21417   cat conftest.err >&5
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); } &&
21420          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422   (eval $ac_try) 2>&5
21423   ac_status=$?
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); }; } &&
21426          { ac_try='test -s conftest.$ac_objext'
21427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428   (eval $ac_try) 2>&5
21429   ac_status=$?
21430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431   (exit $ac_status); }; }; then
21432   ac_cv_sizeof_unsigned_long_long_int=$ac_size
21433 else
21434   echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21436
21437 fi
21438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21439    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21440   done
21441
21442 fi
21443
21444
21445 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21446 if test x$unsigned = x ; then
21447   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21448 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21449    { (exit 1); exit 1; }; }
21450 fi
21451 if test x$unsigned != x$signed ; then
21452   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21453 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21454    { (exit 1); exit 1; }; }
21455 fi
21456
21457
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h.  */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h.  */
21464 #include "confdefs.h"
21465 union {
21466    signed long long int testInt;
21467    unsigned char bytes[sizeof(long long int)];
21468 } intTester;
21469
21470 int
21471 main ()
21472 {
21473
21474    intTester.testInt = -2;
21475    return ((unsigned int)intTester.bytes[0] +
21476            (unsigned int)intTester.bytes[sizeof(long long int) - 1]) != 509;
21477
21478   ;
21479   return 0;
21480 }
21481 _ACEOF
21482 rm -f conftest.$ac_objext
21483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21484   (eval $ac_compile) 2>conftest.er1
21485   ac_status=$?
21486   grep -v '^ *+' conftest.er1 >conftest.err
21487   rm -f conftest.er1
21488   cat conftest.err >&5
21489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); } &&
21491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493   (eval $ac_try) 2>&5
21494   ac_status=$?
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); }; } &&
21497          { ac_try='test -s conftest.$ac_objext'
21498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499   (eval $ac_try) 2>&5
21500   ac_status=$?
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); }; }; then
21503   :
21504 else
21505   echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21507
21508 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
21509 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
21510    { (exit 1); exit 1; }; }
21511 fi
21512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21513
21514 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21515 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21516
21517 cat >>confdefs.h <<_ACEOF
21518 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
21519 _ACEOF
21520
21521
21522
21523
21524 echo "$as_me:$LINENO: checking size of void *" >&5
21525 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21526     if test "${ac_cv_sizeof_void_p+set}" = set; then
21527   echo $ECHO_N "(cached) $ECHO_C" >&6
21528 else
21529   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21530    cat >conftest.$ac_ext <<_ACEOF
21531 /* confdefs.h.  */
21532 _ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h.  */
21536 #include "confdefs.h"
21537    #include <sys/types.h>
21538
21539
21540 int
21541 main ()
21542 {
21543 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21544   ;
21545   return 0;
21546 }
21547 _ACEOF
21548 rm -f conftest.$ac_objext
21549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21550   (eval $ac_compile) 2>conftest.er1
21551   ac_status=$?
21552   grep -v '^ *+' conftest.er1 >conftest.err
21553   rm -f conftest.er1
21554   cat conftest.err >&5
21555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556   (exit $ac_status); } &&
21557          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559   (eval $ac_try) 2>&5
21560   ac_status=$?
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); }; } &&
21563          { ac_try='test -s conftest.$ac_objext'
21564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565   (eval $ac_try) 2>&5
21566   ac_status=$?
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); }; }; then
21569   ac_cv_sizeof_void_p=$ac_size
21570 else
21571   echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21573
21574 fi
21575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21576    if test x$ac_cv_sizeof_void_p != x ; then break; fi
21577   done
21578
21579 fi
21580
21581
21582 if test x$ac_cv_sizeof_void_p = x ; then
21583   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21584 echo "$as_me: error: cannot determine a size for void *" >&2;}
21585    { (exit 1); exit 1; }; }
21586 fi
21587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21588 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21589
21590 cat >>confdefs.h <<_ACEOF
21591 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21592 _ACEOF
21593
21594
21595 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21596 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21597     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21598   echo $ECHO_N "(cached) $ECHO_C" >&6
21599 else
21600   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21601    cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h.  */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h.  */
21607 #include "confdefs.h"
21608    #include <sys/types.h>
21609
21610
21611 int
21612 main ()
21613 {
21614 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21615   ;
21616   return 0;
21617 }
21618 _ACEOF
21619 rm -f conftest.$ac_objext
21620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21621   (eval $ac_compile) 2>conftest.er1
21622   ac_status=$?
21623   grep -v '^ *+' conftest.er1 >conftest.err
21624   rm -f conftest.er1
21625   cat conftest.err >&5
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); } &&
21628          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630   (eval $ac_try) 2>&5
21631   ac_status=$?
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); }; } &&
21634          { ac_try='test -s conftest.$ac_objext'
21635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636   (eval $ac_try) 2>&5
21637   ac_status=$?
21638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639   (exit $ac_status); }; }; then
21640   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21641 else
21642   echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21644
21645 fi
21646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21647    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21648   done
21649
21650 fi
21651
21652
21653 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21654   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21655 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21656    { (exit 1); exit 1; }; }
21657 fi
21658 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21659 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21660
21661 cat >>confdefs.h <<_ACEOF
21662 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
21663 _ACEOF
21664
21665
21666
21667 echo "$as_me:$LINENO: checking size of float" >&5
21668 echo $ECHO_N "checking size of float... $ECHO_C" >&6
21669     if test "${ac_cv_sizeof_float+set}" = set; then
21670   echo $ECHO_N "(cached) $ECHO_C" >&6
21671 else
21672   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21673    cat >conftest.$ac_ext <<_ACEOF
21674 /* confdefs.h.  */
21675 _ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h.  */
21679 #include "confdefs.h"
21680    #include <sys/types.h>
21681
21682
21683 int
21684 main ()
21685 {
21686 switch (0) case 0: case (sizeof (float) == $ac_size):;
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 rm -f conftest.$ac_objext
21692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21693   (eval $ac_compile) 2>conftest.er1
21694   ac_status=$?
21695   grep -v '^ *+' conftest.er1 >conftest.err
21696   rm -f conftest.er1
21697   cat conftest.err >&5
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); } &&
21700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21702   (eval $ac_try) 2>&5
21703   ac_status=$?
21704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705   (exit $ac_status); }; } &&
21706          { ac_try='test -s conftest.$ac_objext'
21707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708   (eval $ac_try) 2>&5
21709   ac_status=$?
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); }; }; then
21712   ac_cv_sizeof_float=$ac_size
21713 else
21714   echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717 fi
21718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21719    if test x$ac_cv_sizeof_float != x ; then break; fi
21720   done
21721
21722 fi
21723
21724
21725 if test x$ac_cv_sizeof_float = x ; then
21726   { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
21727 echo "$as_me: error: cannot determine a size for float" >&2;}
21728    { (exit 1); exit 1; }; }
21729 fi
21730 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
21731 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
21732
21733 cat >>confdefs.h <<_ACEOF
21734 #define SIZEOF_FLOAT $ac_cv_sizeof_float
21735 _ACEOF
21736
21737
21738 echo "$as_me:$LINENO: checking size of double" >&5
21739 echo $ECHO_N "checking size of double... $ECHO_C" >&6
21740     if test "${ac_cv_sizeof_double+set}" = set; then
21741   echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21744    cat >conftest.$ac_ext <<_ACEOF
21745 /* confdefs.h.  */
21746 _ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h.  */
21750 #include "confdefs.h"
21751    #include <sys/types.h>
21752
21753
21754 int
21755 main ()
21756 {
21757 switch (0) case 0: case (sizeof (double) == $ac_size):;
21758   ;
21759   return 0;
21760 }
21761 _ACEOF
21762 rm -f conftest.$ac_objext
21763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21764   (eval $ac_compile) 2>conftest.er1
21765   ac_status=$?
21766   grep -v '^ *+' conftest.er1 >conftest.err
21767   rm -f conftest.er1
21768   cat conftest.err >&5
21769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770   (exit $ac_status); } &&
21771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21773   (eval $ac_try) 2>&5
21774   ac_status=$?
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); }; } &&
21777          { ac_try='test -s conftest.$ac_objext'
21778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21779   (eval $ac_try) 2>&5
21780   ac_status=$?
21781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21782   (exit $ac_status); }; }; then
21783   ac_cv_sizeof_double=$ac_size
21784 else
21785   echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 fi
21789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21790    if test x$ac_cv_sizeof_double != x ; then break; fi
21791   done
21792
21793 fi
21794
21795
21796 if test x$ac_cv_sizeof_double = x ; then
21797   { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
21798 echo "$as_me: error: cannot determine a size for double" >&2;}
21799    { (exit 1); exit 1; }; }
21800 fi
21801 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21802 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
21803
21804 cat >>confdefs.h <<_ACEOF
21805 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21806 _ACEOF
21807
21808
21809 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
21810 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
21811 cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h.  */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h.  */
21817 #include "confdefs.h"
21818 union {
21819         double testFP;
21820         unsigned char bytes[sizeof(double)];
21821 } doubleTester;
21822 union {
21823         float testFP;
21824         unsigned char bytes[sizeof(float)];
21825 } floatTester;
21826
21827 int
21828 main ()
21829 {
21830
21831 if (sizeof(double) != 8 || sizeof(float) != 4)
21832    return 1;
21833
21834 memset(&doubleTester, 0, sizeof(doubleTester));
21835 memset(&floatTester, 0, sizeof(floatTester));
21836
21837 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
21838 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
21839   (sizeof(double) == 4)  ? 128 :
21840   (sizeof(double) == 8)  ? 16 :
21841   (sizeof(double) == 16) ? 1 : 0;
21842 if (doubleTester.testFP != -4.0) return 1;
21843
21844 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
21845 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
21846   (sizeof(float) == 4)  ? 128 :
21847   (sizeof(float) == 8)  ? 16 :
21848   (sizeof(float) == 16) ? 1 : 0;
21849 if (floatTester.testFP != -4.0) return 1;
21850
21851 return 0;
21852   ;
21853   return 0;
21854 }
21855 _ACEOF
21856 rm -f conftest.$ac_objext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21858   (eval $ac_compile) 2>conftest.er1
21859   ac_status=$?
21860   grep -v '^ *+' conftest.er1 >conftest.err
21861   rm -f conftest.er1
21862   cat conftest.err >&5
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } &&
21865          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867   (eval $ac_try) 2>&5
21868   ac_status=$?
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); }; } &&
21871          { ac_try='test -s conftest.$ac_objext'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; }; then
21877   IEEE_FP=yes
21878
21879 cat >>confdefs.h <<\_ACEOF
21880 #define IEEE_FP 1
21881 _ACEOF
21882
21883
21884 else
21885   echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888 IEEE_FP=no
21889    { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21890 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21891    { (exit 1); exit 1; }; }
21892 fi
21893 rm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
21894 echo "${ECHO_T}$IEEE_FP" >&6
21895
21896
21897 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21898 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21899 if test x$endian = x1 ; then
21900   trace_endian=B
21901 else
21902   trace_endian=l
21903 fi
21904 gras_arch=unknown
21905 trace="$trace_endian"
21906 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}"
21907 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
21908 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
21909 case $trace in
21910   l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=little32;;
21911   l:1.2.4.8.8:8.8:4.8) gras_arch=1; gras_arch_name=little64;;
21912   B:1.2.4.4.8:4.4:4.8) gras_arch=2; gras_arch_name=big32;;
21913   B:1.2.4.8.8:8.8:4.8) gras_arch=3; gras_arch_name=big64;;
21914 esac
21915 if test x$gras_arch = xunknown ; then
21916   echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21917 echo "${ECHO_T}damnit ($trace)" >&6
21918   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21919 Please report this architecture trace ($trace) and what it corresponds to." >&5
21920 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21921 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21922    { (exit 1); exit 1; }; }
21923 fi
21924 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
21925
21926 cat >>confdefs.h <<_ACEOF
21927 #define GRAS_THISARCH_NAME "$gras_arch_name"
21928 _ACEOF
21929
21930
21931 cat >>confdefs.h <<_ACEOF
21932 #define GRAS_THISARCH $gras_arch
21933 _ACEOF
21934
21935 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
21936 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
21937
21938 # Check architecture signature end
21939
21940 # Checks for header files.
21941 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21942 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21943 if test "${ac_cv_header_stdc+set}" = set; then
21944   echo $ECHO_N "(cached) $ECHO_C" >&6
21945 else
21946   cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952 #include <stdlib.h>
21953 #include <stdarg.h>
21954 #include <string.h>
21955 #include <float.h>
21956
21957 int
21958 main ()
21959 {
21960
21961   ;
21962   return 0;
21963 }
21964 _ACEOF
21965 rm -f conftest.$ac_objext
21966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21967   (eval $ac_compile) 2>conftest.er1
21968   ac_status=$?
21969   grep -v '^ *+' conftest.er1 >conftest.err
21970   rm -f conftest.er1
21971   cat conftest.err >&5
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); } &&
21974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976   (eval $ac_try) 2>&5
21977   ac_status=$?
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); }; } &&
21980          { ac_try='test -s conftest.$ac_objext'
21981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982   (eval $ac_try) 2>&5
21983   ac_status=$?
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); }; }; then
21986   ac_cv_header_stdc=yes
21987 else
21988   echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21990
21991 ac_cv_header_stdc=no
21992 fi
21993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21994
21995 if test $ac_cv_header_stdc = yes; then
21996   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21997   cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h.  */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h.  */
22003 #include <string.h>
22004
22005 _ACEOF
22006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22007   $EGREP "memchr" >/dev/null 2>&1; then
22008   :
22009 else
22010   ac_cv_header_stdc=no
22011 fi
22012 rm -f conftest*
22013
22014 fi
22015
22016 if test $ac_cv_header_stdc = yes; then
22017   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22018   cat >conftest.$ac_ext <<_ACEOF
22019 /* confdefs.h.  */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h.  */
22024 #include <stdlib.h>
22025
22026 _ACEOF
22027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22028   $EGREP "free" >/dev/null 2>&1; then
22029   :
22030 else
22031   ac_cv_header_stdc=no
22032 fi
22033 rm -f conftest*
22034
22035 fi
22036
22037 if test $ac_cv_header_stdc = yes; then
22038   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22039   if test "$cross_compiling" = yes; then
22040   :
22041 else
22042   cat >conftest.$ac_ext <<_ACEOF
22043 /* confdefs.h.  */
22044 _ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h.  */
22048 #include <ctype.h>
22049 #if ((' ' & 0x0FF) == 0x020)
22050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22052 #else
22053 # define ISLOWER(c) \
22054                    (('a' <= (c) && (c) <= 'i') \
22055                      || ('j' <= (c) && (c) <= 'r') \
22056                      || ('s' <= (c) && (c) <= 'z'))
22057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22058 #endif
22059
22060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22061 int
22062 main ()
22063 {
22064   int i;
22065   for (i = 0; i < 256; i++)
22066     if (XOR (islower (i), ISLOWER (i))
22067         || toupper (i) != TOUPPER (i))
22068       exit(2);
22069   exit (0);
22070 }
22071 _ACEOF
22072 rm -f conftest$ac_exeext
22073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22074   (eval $ac_link) 2>&5
22075   ac_status=$?
22076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079   (eval $ac_try) 2>&5
22080   ac_status=$?
22081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082   (exit $ac_status); }; }; then
22083   :
22084 else
22085   echo "$as_me: program exited with status $ac_status" >&5
22086 echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22088
22089 ( exit $ac_status )
22090 ac_cv_header_stdc=no
22091 fi
22092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22093 fi
22094 fi
22095 fi
22096 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
22098 if test $ac_cv_header_stdc = yes; then
22099
22100 cat >>confdefs.h <<\_ACEOF
22101 #define STDC_HEADERS 1
22102 _ACEOF
22103
22104 fi
22105
22106
22107
22108
22109
22110 for ac_header in stddef.h stdlib.h string.h unistd.h
22111 do
22112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22114   echo "$as_me:$LINENO: checking for $ac_header" >&5
22115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22117   echo $ECHO_N "(cached) $ECHO_C" >&6
22118 fi
22119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22121 else
22122   # Is the header compilable?
22123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22125 cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131 $ac_includes_default
22132 #include <$ac_header>
22133 _ACEOF
22134 rm -f conftest.$ac_objext
22135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22136   (eval $ac_compile) 2>conftest.er1
22137   ac_status=$?
22138   grep -v '^ *+' conftest.er1 >conftest.err
22139   rm -f conftest.er1
22140   cat conftest.err >&5
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } &&
22143          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145   (eval $ac_try) 2>&5
22146   ac_status=$?
22147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148   (exit $ac_status); }; } &&
22149          { ac_try='test -s conftest.$ac_objext'
22150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22151   (eval $ac_try) 2>&5
22152   ac_status=$?
22153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154   (exit $ac_status); }; }; then
22155   ac_header_compiler=yes
22156 else
22157   echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22159
22160 ac_header_compiler=no
22161 fi
22162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22164 echo "${ECHO_T}$ac_header_compiler" >&6
22165
22166 # Is the header present?
22167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22169 cat >conftest.$ac_ext <<_ACEOF
22170 /* confdefs.h.  */
22171 _ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h.  */
22175 #include <$ac_header>
22176 _ACEOF
22177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22179   ac_status=$?
22180   grep -v '^ *+' conftest.er1 >conftest.err
22181   rm -f conftest.er1
22182   cat conftest.err >&5
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); } >/dev/null; then
22185   if test -s conftest.err; then
22186     ac_cpp_err=$ac_c_preproc_warn_flag
22187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22188   else
22189     ac_cpp_err=
22190   fi
22191 else
22192   ac_cpp_err=yes
22193 fi
22194 if test -z "$ac_cpp_err"; then
22195   ac_header_preproc=yes
22196 else
22197   echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22199
22200   ac_header_preproc=no
22201 fi
22202 rm -f conftest.err conftest.$ac_ext
22203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22204 echo "${ECHO_T}$ac_header_preproc" >&6
22205
22206 # So?  What about this header?
22207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22208   yes:no: )
22209     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22213     ac_header_preproc=yes
22214     ;;
22215   no:yes:* )
22216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22218     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22219 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22220     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22222     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22223 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22226     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22228     (
22229       cat <<\_ASBOX
22230 ## ----------------------------------------- ##
22231 ## Report this to martin.quinson@ens-lyon.fr ##
22232 ## ----------------------------------------- ##
22233 _ASBOX
22234     ) |
22235       sed "s/^/$as_me: WARNING:     /" >&2
22236     ;;
22237 esac
22238 echo "$as_me:$LINENO: checking for $ac_header" >&5
22239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22241   echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243   eval "$as_ac_Header=\$ac_header_preproc"
22244 fi
22245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22247
22248 fi
22249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22250   cat >>confdefs.h <<_ACEOF
22251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22252 _ACEOF
22253
22254 fi
22255
22256 done
22257
22258
22259 # Checks for typedefs, structures, and compiler characteristics.
22260 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22261 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22262 if test "${ac_cv_c_const+set}" = set; then
22263   echo $ECHO_N "(cached) $ECHO_C" >&6
22264 else
22265   cat >conftest.$ac_ext <<_ACEOF
22266 /* confdefs.h.  */
22267 _ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h.  */
22271
22272 int
22273 main ()
22274 {
22275 /* FIXME: Include the comments suggested by Paul. */
22276 #ifndef __cplusplus
22277   /* Ultrix mips cc rejects this.  */
22278   typedef int charset[2];
22279   const charset x;
22280   /* SunOS 4.1.1 cc rejects this.  */
22281   char const *const *ccp;
22282   char **p;
22283   /* NEC SVR4.0.2 mips cc rejects this.  */
22284   struct point {int x, y;};
22285   static struct point const zero = {0,0};
22286   /* AIX XL C 1.02.0.0 rejects this.
22287      It does not let you subtract one const X* pointer from another in
22288      an arm of an if-expression whose if-part is not a constant
22289      expression */
22290   const char *g = "string";
22291   ccp = &g + (g ? g-g : 0);
22292   /* HPUX 7.0 cc rejects these. */
22293   ++ccp;
22294   p = (char**) ccp;
22295   ccp = (char const *const *) p;
22296   { /* SCO 3.2v4 cc rejects this.  */
22297     char *t;
22298     char const *s = 0 ? (char *) 0 : (char const *) 0;
22299
22300     *t++ = 0;
22301   }
22302   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22303     int x[] = {25, 17};
22304     const int *foo = &x[0];
22305     ++foo;
22306   }
22307   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22308     typedef const int *iptr;
22309     iptr p = 0;
22310     ++p;
22311   }
22312   { /* AIX XL C 1.02.0.0 rejects this saying
22313        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22314     struct s { int j; const int *ap[3]; };
22315     struct s *b; b->j = 5;
22316   }
22317   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22318     const int foo = 10;
22319   }
22320 #endif
22321
22322   ;
22323   return 0;
22324 }
22325 _ACEOF
22326 rm -f conftest.$ac_objext
22327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22328   (eval $ac_compile) 2>conftest.er1
22329   ac_status=$?
22330   grep -v '^ *+' conftest.er1 >conftest.err
22331   rm -f conftest.er1
22332   cat conftest.err >&5
22333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334   (exit $ac_status); } &&
22335          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337   (eval $ac_try) 2>&5
22338   ac_status=$?
22339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340   (exit $ac_status); }; } &&
22341          { ac_try='test -s conftest.$ac_objext'
22342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343   (eval $ac_try) 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); }; }; then
22347   ac_cv_c_const=yes
22348 else
22349   echo "$as_me: failed program was:" >&5
22350 sed 's/^/| /' conftest.$ac_ext >&5
22351
22352 ac_cv_c_const=no
22353 fi
22354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22355 fi
22356 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22357 echo "${ECHO_T}$ac_cv_c_const" >&6
22358 if test $ac_cv_c_const = no; then
22359
22360 cat >>confdefs.h <<\_ACEOF
22361 #define const
22362 _ACEOF
22363
22364 fi
22365
22366 echo "$as_me:$LINENO: checking for inline" >&5
22367 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22368 if test "${ac_cv_c_inline+set}" = set; then
22369   echo $ECHO_N "(cached) $ECHO_C" >&6
22370 else
22371   ac_cv_c_inline=no
22372 for ac_kw in inline __inline__ __inline; do
22373   cat >conftest.$ac_ext <<_ACEOF
22374 /* confdefs.h.  */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h.  */
22379 #ifndef __cplusplus
22380 typedef int foo_t;
22381 static $ac_kw foo_t static_foo () {return 0; }
22382 $ac_kw foo_t foo () {return 0; }
22383 #endif
22384
22385 _ACEOF
22386 rm -f conftest.$ac_objext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22388   (eval $ac_compile) 2>conftest.er1
22389   ac_status=$?
22390   grep -v '^ *+' conftest.er1 >conftest.err
22391   rm -f conftest.er1
22392   cat conftest.err >&5
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); } &&
22395          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397   (eval $ac_try) 2>&5
22398   ac_status=$?
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); }; } &&
22401          { ac_try='test -s conftest.$ac_objext'
22402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403   (eval $ac_try) 2>&5
22404   ac_status=$?
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); }; }; then
22407   ac_cv_c_inline=$ac_kw; break
22408 else
22409   echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22411
22412 fi
22413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22414 done
22415
22416 fi
22417 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22418 echo "${ECHO_T}$ac_cv_c_inline" >&6
22419
22420
22421 case $ac_cv_c_inline in
22422   inline | yes) ;;
22423   *)
22424     case $ac_cv_c_inline in
22425       no) ac_val=;;
22426       *) ac_val=$ac_cv_c_inline;;
22427     esac
22428     cat >>confdefs.h <<_ACEOF
22429 #ifndef __cplusplus
22430 #define inline $ac_val
22431 #endif
22432 _ACEOF
22433     ;;
22434 esac
22435
22436 echo "$as_me:$LINENO: checking for size_t" >&5
22437 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22438 if test "${ac_cv_type_size_t+set}" = set; then
22439   echo $ECHO_N "(cached) $ECHO_C" >&6
22440 else
22441   cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h.  */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h.  */
22447 $ac_includes_default
22448 int
22449 main ()
22450 {
22451 if ((size_t *) 0)
22452   return 0;
22453 if (sizeof (size_t))
22454   return 0;
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 rm -f conftest.$ac_objext
22460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22461   (eval $ac_compile) 2>conftest.er1
22462   ac_status=$?
22463   grep -v '^ *+' conftest.er1 >conftest.err
22464   rm -f conftest.er1
22465   cat conftest.err >&5
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); } &&
22468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470   (eval $ac_try) 2>&5
22471   ac_status=$?
22472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473   (exit $ac_status); }; } &&
22474          { ac_try='test -s conftest.$ac_objext'
22475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476   (eval $ac_try) 2>&5
22477   ac_status=$?
22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479   (exit $ac_status); }; }; then
22480   ac_cv_type_size_t=yes
22481 else
22482   echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22484
22485 ac_cv_type_size_t=no
22486 fi
22487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22488 fi
22489 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22490 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22491 if test $ac_cv_type_size_t = yes; then
22492   :
22493 else
22494
22495 cat >>confdefs.h <<_ACEOF
22496 #define size_t unsigned
22497 _ACEOF
22498
22499 fi
22500
22501
22502 # Checks for library functions.
22503
22504 for ac_header in stdlib.h
22505 do
22506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22508   echo "$as_me:$LINENO: checking for $ac_header" >&5
22509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22511   echo $ECHO_N "(cached) $ECHO_C" >&6
22512 fi
22513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22515 else
22516   # Is the header compilable?
22517 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22519 cat >conftest.$ac_ext <<_ACEOF
22520 /* confdefs.h.  */
22521 _ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h.  */
22525 $ac_includes_default
22526 #include <$ac_header>
22527 _ACEOF
22528 rm -f conftest.$ac_objext
22529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22530   (eval $ac_compile) 2>conftest.er1
22531   ac_status=$?
22532   grep -v '^ *+' conftest.er1 >conftest.err
22533   rm -f conftest.er1
22534   cat conftest.err >&5
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); } &&
22537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22539   (eval $ac_try) 2>&5
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); }; } &&
22543          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22549   ac_header_compiler=yes
22550 else
22551   echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22553
22554 ac_header_compiler=no
22555 fi
22556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22558 echo "${ECHO_T}$ac_header_compiler" >&6
22559
22560 # Is the header present?
22561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22563 cat >conftest.$ac_ext <<_ACEOF
22564 /* confdefs.h.  */
22565 _ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h.  */
22569 #include <$ac_header>
22570 _ACEOF
22571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22572   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22573   ac_status=$?
22574   grep -v '^ *+' conftest.er1 >conftest.err
22575   rm -f conftest.er1
22576   cat conftest.err >&5
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); } >/dev/null; then
22579   if test -s conftest.err; then
22580     ac_cpp_err=$ac_c_preproc_warn_flag
22581     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22582   else
22583     ac_cpp_err=
22584   fi
22585 else
22586   ac_cpp_err=yes
22587 fi
22588 if test -z "$ac_cpp_err"; then
22589   ac_header_preproc=yes
22590 else
22591   echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22593
22594   ac_header_preproc=no
22595 fi
22596 rm -f conftest.err conftest.$ac_ext
22597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22598 echo "${ECHO_T}$ac_header_preproc" >&6
22599
22600 # So?  What about this header?
22601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22602   yes:no: )
22603     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22607     ac_header_preproc=yes
22608     ;;
22609   no:yes:* )
22610     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22612     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22613 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22614     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22616     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22617 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22620     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22622     (
22623       cat <<\_ASBOX
22624 ## ----------------------------------------- ##
22625 ## Report this to martin.quinson@ens-lyon.fr ##
22626 ## ----------------------------------------- ##
22627 _ASBOX
22628     ) |
22629       sed "s/^/$as_me: WARNING:     /" >&2
22630     ;;
22631 esac
22632 echo "$as_me:$LINENO: checking for $ac_header" >&5
22633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22635   echo $ECHO_N "(cached) $ECHO_C" >&6
22636 else
22637   eval "$as_ac_Header=\$ac_header_preproc"
22638 fi
22639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22641
22642 fi
22643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22644   cat >>confdefs.h <<_ACEOF
22645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22646 _ACEOF
22647
22648 fi
22649
22650 done
22651
22652 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22653 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22654 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22655   echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657   if test "$cross_compiling" = yes; then
22658   ac_cv_func_malloc_0_nonnull=no
22659 else
22660   cat >conftest.$ac_ext <<_ACEOF
22661 /* confdefs.h.  */
22662 _ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h.  */
22666 #if STDC_HEADERS || HAVE_STDLIB_H
22667 # include <stdlib.h>
22668 #else
22669 char *malloc ();
22670 #endif
22671
22672 int
22673 main ()
22674 {
22675 exit (malloc (0) ? 0 : 1);
22676   ;
22677   return 0;
22678 }
22679 _ACEOF
22680 rm -f conftest$ac_exeext
22681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22682   (eval $ac_link) 2>&5
22683   ac_status=$?
22684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687   (eval $ac_try) 2>&5
22688   ac_status=$?
22689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690   (exit $ac_status); }; }; then
22691   ac_cv_func_malloc_0_nonnull=yes
22692 else
22693   echo "$as_me: program exited with status $ac_status" >&5
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22696
22697 ( exit $ac_status )
22698 ac_cv_func_malloc_0_nonnull=no
22699 fi
22700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22701 fi
22702 fi
22703 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22704 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22705 if test $ac_cv_func_malloc_0_nonnull = yes; then
22706
22707 cat >>confdefs.h <<\_ACEOF
22708 #define HAVE_MALLOC 1
22709 _ACEOF
22710
22711 else
22712   cat >>confdefs.h <<\_ACEOF
22713 #define HAVE_MALLOC 0
22714 _ACEOF
22715
22716    case $LIBOBJS in
22717     "malloc.$ac_objext"   | \
22718   *" malloc.$ac_objext"   | \
22719     "malloc.$ac_objext "* | \
22720   *" malloc.$ac_objext "* ) ;;
22721   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22722 esac
22723
22724
22725 cat >>confdefs.h <<\_ACEOF
22726 #define malloc rpl_malloc
22727 _ACEOF
22728
22729 fi
22730
22731
22732
22733 echo "$as_me:$LINENO: checking for working memcmp" >&5
22734 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22735 if test "${ac_cv_func_memcmp_working+set}" = set; then
22736   echo $ECHO_N "(cached) $ECHO_C" >&6
22737 else
22738   if test "$cross_compiling" = yes; then
22739   ac_cv_func_memcmp_working=no
22740 else
22741   cat >conftest.$ac_ext <<_ACEOF
22742 /* confdefs.h.  */
22743 _ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h.  */
22747 $ac_includes_default
22748 int
22749 main ()
22750 {
22751
22752   /* Some versions of memcmp are not 8-bit clean.  */
22753   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22754   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22755     exit (1);
22756
22757   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22758      or more and with at least one buffer not starting on a 4-byte boundary.
22759      William Lewis provided this test program.   */
22760   {
22761     char foo[21];
22762     char bar[21];
22763     int i;
22764     for (i = 0; i < 4; i++)
22765       {
22766         char *a = foo + i;
22767         char *b = bar + i;
22768         strcpy (a, "--------01111111");
22769         strcpy (b, "--------10000000");
22770         if (memcmp (a, b, 16) >= 0)
22771           exit (1);
22772       }
22773     exit (0);
22774   }
22775
22776   ;
22777   return 0;
22778 }
22779 _ACEOF
22780 rm -f conftest$ac_exeext
22781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22782   (eval $ac_link) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787   (eval $ac_try) 2>&5
22788   ac_status=$?
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); }; }; then
22791   ac_cv_func_memcmp_working=yes
22792 else
22793   echo "$as_me: program exited with status $ac_status" >&5
22794 echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797 ( exit $ac_status )
22798 ac_cv_func_memcmp_working=no
22799 fi
22800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22801 fi
22802 fi
22803 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22804 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22805 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22806     "memcmp.$ac_objext"   | \
22807   *" memcmp.$ac_objext"   | \
22808     "memcmp.$ac_objext "* | \
22809   *" memcmp.$ac_objext "* ) ;;
22810   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22811 esac
22812
22813
22814
22815
22816
22817
22818 for ac_func in memset strchr strerror usleep
22819 do
22820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22821 echo "$as_me:$LINENO: checking for $ac_func" >&5
22822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22823 if eval "test \"\${$as_ac_var+set}\" = set"; then
22824   echo $ECHO_N "(cached) $ECHO_C" >&6
22825 else
22826   cat >conftest.$ac_ext <<_ACEOF
22827 /* confdefs.h.  */
22828 _ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h.  */
22832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22834 #define $ac_func innocuous_$ac_func
22835
22836 /* System header to define __stub macros and hopefully few prototypes,
22837     which can conflict with char $ac_func (); below.
22838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22839     <limits.h> exists even on freestanding compilers.  */
22840
22841 #ifdef __STDC__
22842 # include <limits.h>
22843 #else
22844 # include <assert.h>
22845 #endif
22846
22847 #undef $ac_func
22848
22849 /* Override any gcc2 internal prototype to avoid an error.  */
22850 #ifdef __cplusplus
22851 extern "C"
22852 {
22853 #endif
22854 /* We use char because int might match the return type of a gcc2
22855    builtin and then its argument prototype would still apply.  */
22856 char $ac_func ();
22857 /* The GNU C library defines this for functions which it implements
22858     to always fail with ENOSYS.  Some functions are actually named
22859     something starting with __ and the normal name is an alias.  */
22860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22861 choke me
22862 #else
22863 char (*f) () = $ac_func;
22864 #endif
22865 #ifdef __cplusplus
22866 }
22867 #endif
22868
22869 int
22870 main ()
22871 {
22872 return f != $ac_func;
22873   ;
22874   return 0;
22875 }
22876 _ACEOF
22877 rm -f conftest.$ac_objext conftest$ac_exeext
22878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22879   (eval $ac_link) 2>conftest.er1
22880   ac_status=$?
22881   grep -v '^ *+' conftest.er1 >conftest.err
22882   rm -f conftest.er1
22883   cat conftest.err >&5
22884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885   (exit $ac_status); } &&
22886          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888   (eval $ac_try) 2>&5
22889   ac_status=$?
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); }; } &&
22892          { ac_try='test -s conftest$ac_exeext'
22893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894   (eval $ac_try) 2>&5
22895   ac_status=$?
22896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897   (exit $ac_status); }; }; then
22898   eval "$as_ac_var=yes"
22899 else
22900   echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22902
22903 eval "$as_ac_var=no"
22904 fi
22905 rm -f conftest.err conftest.$ac_objext \
22906       conftest$ac_exeext conftest.$ac_ext
22907 fi
22908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22910 if test `eval echo '${'$as_ac_var'}'` = yes; then
22911   cat >>confdefs.h <<_ACEOF
22912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22913 _ACEOF
22914
22915 fi
22916 done
22917
22918
22919 # Can we rebuild the documentation?
22920
22921
22922 # Check whether --with-html-dir or --without-html-dir was given.
22923 if test "${with_html_dir+set}" = set; then
22924   withval="$with_html_dir"
22925
22926 else
22927   with_html_dir='${datadir}/gtk-doc/html'
22928 fi;
22929   HTML_DIR="$with_html_dir"
22930
22931
22932     # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
22933 if test "${enable_gtk_doc+set}" = set; then
22934   enableval="$enable_gtk_doc"
22935
22936 else
22937   enable_gtk_doc=no
22938 fi;
22939
22940   have_gtk_doc=no
22941   if test x$enable_gtk_doc = xyes; then
22942     if test -z "$PKG_CONFIG"; then
22943       # Extract the first word of "pkg-config", so it can be a program name with args.
22944 set dummy pkg-config; ac_word=$2
22945 echo "$as_me:$LINENO: checking for $ac_word" >&5
22946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22947 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22948   echo $ECHO_N "(cached) $ECHO_C" >&6
22949 else
22950   case $PKG_CONFIG in
22951   [\\/]* | ?:[\\/]*)
22952   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22953   ;;
22954   *)
22955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22956 for as_dir in $PATH
22957 do
22958   IFS=$as_save_IFS
22959   test -z "$as_dir" && as_dir=.
22960   for ac_exec_ext in '' $ac_executable_extensions; do
22961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22962     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22964     break 2
22965   fi
22966 done
22967 done
22968
22969   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22970   ;;
22971 esac
22972 fi
22973 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22974
22975 if test -n "$PKG_CONFIG"; then
22976   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22977 echo "${ECHO_T}$PKG_CONFIG" >&6
22978 else
22979   echo "$as_me:$LINENO: result: no" >&5
22980 echo "${ECHO_T}no" >&6
22981 fi
22982
22983     fi
22984     if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
22985       have_gtk_doc=yes
22986     fi
22987
22988
22989     if test "$have_gtk_doc" != yes; then
22990       enable_gtk_doc=no
22991     fi
22992   fi
22993
22994
22995
22996 if test x$enable_gtk_doc = xyes; then
22997   ENABLE_GTK_DOC_TRUE=
22998   ENABLE_GTK_DOC_FALSE='#'
22999 else
23000   ENABLE_GTK_DOC_TRUE='#'
23001   ENABLE_GTK_DOC_FALSE=
23002 fi
23003
23004
23005
23006 if test -n "$LIBTOOL"; then
23007   GTK_DOC_USE_LIBTOOL_TRUE=
23008   GTK_DOC_USE_LIBTOOL_FALSE='#'
23009 else
23010   GTK_DOC_USE_LIBTOOL_TRUE='#'
23011   GTK_DOC_USE_LIBTOOL_FALSE=
23012 fi
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025         aci_nameok=`echo SimGrid|sed 'y/-/./'`
23026         if test "xSimGrid" != "x$aci_nameok" ; then
23027           { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
23028 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
23029    { (exit 1); exit 1; }; }
23030         fi
23031         echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
23032         aci_module_desc_SimGrid="the SimGrid simulator"
23033                 aci_packages="$aci_packages SimGrid"
23034
23035
23036 # Check whether --with-SimGrid or --without-SimGrid was given.
23037 if test "${with_SimGrid+set}" = set; then
23038   withval="$with_SimGrid"
23039   with_SimGrid=$withval
23040            good=yes
23041            if test "$withval" = yes ; then good=no; fi
23042            if test "$withval" = no ; then good=no; fi
23043            if test $good = no ; then
23044              { { 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
23045 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;}
23046    { (exit 1); exit 1; }; }
23047            fi
23048            aci_pkg_prefix_SimGrid="$withval"
23049            CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
23050            LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
23051
23052 fi;
23053
23054
23055 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
23056 if test "${with_SimGrid_includes+set}" = set; then
23057   withval="$with_SimGrid_includes"
23058   CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
23059            aci_pkg_inc_SimGrid="$withval"
23060
23061 fi;
23062
23063
23064 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
23065 if test "${with_SimGrid_libraries+set}" = set; then
23066   withval="$with_SimGrid_libraries"
23067   LIBS_SimGrid="-L$withval $LIBS_SimGrid"
23068              aci_pkg_lib_SimGrid="$withval"
23069 fi;
23070
23071
23072 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
23073 if test "${with_SimGrid_extra+set}" = set; then
23074   withval="$with_SimGrid_extra"
23075   LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
23076              aci_pkg_extra_SimGrid="$withval"
23077 fi;
23078
23079
23080                                 OLD_LDFLAGS=$LDFLAGS
23081         OLD_CFLAGS=$CFLAGS
23082         OLD_CPPFLAGS=$CPPFLAGS
23083
23084                 i=`echo -lsimgrid|wc -l`
23085         if test $i != 1 && test $i != 0 ; then
23086           { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
23087             please no newline and no tab." >&5
23088 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
23089             please no newline and no tab." >&2;}
23090    { (exit 1); exit 1; }; }
23091         fi
23092
23093         ac_func_search_save_LIBS="$LIBS"
23094         ac_func_search_save_this_LIBS="$LIBS_SimGrid"
23095         aci_found="no"
23096         echo "----------------------------------------" >&5
23097         echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
23098 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
23099         cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h.  */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h.  */
23105
23106 /* Override any gcc2 internal prototype to avoid an error.  */
23107 #ifdef __cplusplus
23108 extern "C"
23109 #endif
23110 /* We use char because int might match the return type of a gcc2
23111    builtin and then its argument prototype would still apply.  */
23112 char SG_init ();
23113 int
23114 main ()
23115 {
23116 SG_init ();
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123   (eval $ac_link) 2>conftest.er1
23124   ac_status=$?
23125   grep -v '^ *+' conftest.er1 >conftest.err
23126   rm -f conftest.er1
23127   cat conftest.err >&5
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); } &&
23130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132   (eval $ac_try) 2>&5
23133   ac_status=$?
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); }; } &&
23136          { ac_try='test -s conftest$ac_exeext'
23137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138   (eval $ac_try) 2>&5
23139   ac_status=$?
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); }; }; then
23142   echo "$as_me:$LINENO: result: yes" >&5
23143 echo "${ECHO_T}yes" >&6 aci_found="yes"
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148 echo "$as_me:$LINENO: result: no" >&5
23149 echo "${ECHO_T}no" >&6
23150 fi
23151 rm -f conftest.err conftest.$ac_objext \
23152       conftest$ac_exeext conftest.$ac_ext
23153         if test "$aci_found" = "no"; then
23154           if test -n "$LIBS_SimGrid" ; then
23155             LIBS="$LIBS_SimGrid"
23156             echo "----------------------------------------" >&5
23157             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
23158 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
23159             cat >conftest.$ac_ext <<_ACEOF
23160 /* confdefs.h.  */
23161 _ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h.  */
23165
23166 /* Override any gcc2 internal prototype to avoid an error.  */
23167 #ifdef __cplusplus
23168 extern "C"
23169 #endif
23170 /* We use char because int might match the return type of a gcc2
23171    builtin and then its argument prototype would still apply.  */
23172 char SG_init ();
23173 int
23174 main ()
23175 {
23176 SG_init ();
23177   ;
23178   return 0;
23179 }
23180 _ACEOF
23181 rm -f conftest.$ac_objext conftest$ac_exeext
23182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23183   (eval $ac_link) 2>conftest.er1
23184   ac_status=$?
23185   grep -v '^ *+' conftest.er1 >conftest.err
23186   rm -f conftest.er1
23187   cat conftest.err >&5
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); } &&
23190          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192   (eval $ac_try) 2>&5
23193   ac_status=$?
23194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195   (exit $ac_status); }; } &&
23196          { ac_try='test -s conftest$ac_exeext'
23197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198   (eval $ac_try) 2>&5
23199   ac_status=$?
23200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201   (exit $ac_status); }; }; then
23202   aci_found="yes"
23203 else
23204   echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23206
23207 aci_found="no"
23208 fi
23209 rm -f conftest.err conftest.$ac_objext \
23210       conftest$ac_exeext conftest.$ac_ext
23211             echo "$as_me:$LINENO: result: $aci_found" >&5
23212 echo "${ECHO_T}$aci_found" >&6
23213           fi
23214         fi
23215         for i in -lsimgrid
23216         do
23217           if test "x$aci_found" = "xno"; then
23218             LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
23219             LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
23220             echo "----------------------------------------" >&5
23221             echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
23222 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
23223             cat >conftest.$ac_ext <<_ACEOF
23224 /* confdefs.h.  */
23225 _ACEOF
23226 cat confdefs.h >>conftest.$ac_ext
23227 cat >>conftest.$ac_ext <<_ACEOF
23228 /* end confdefs.h.  */
23229
23230 /* Override any gcc2 internal prototype to avoid an error.  */
23231 #ifdef __cplusplus
23232 extern "C"
23233 #endif
23234 /* We use char because int might match the return type of a gcc2
23235    builtin and then its argument prototype would still apply.  */
23236 char SG_init ();
23237 int
23238 main ()
23239 {
23240 SG_init ();
23241   ;
23242   return 0;
23243 }
23244 _ACEOF
23245 rm -f conftest.$ac_objext conftest$ac_exeext
23246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23247   (eval $ac_link) 2>conftest.er1
23248   ac_status=$?
23249   grep -v '^ *+' conftest.er1 >conftest.err
23250   rm -f conftest.er1
23251   cat conftest.err >&5
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); } &&
23254          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256   (eval $ac_try) 2>&5
23257   ac_status=$?
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); }; } &&
23260          { ac_try='test -s conftest$ac_exeext'
23261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262   (eval $ac_try) 2>&5
23263   ac_status=$?
23264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265   (exit $ac_status); }; }; then
23266   aci_found="yes"
23267 else
23268   echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23270
23271 aci_found="no"
23272 fi
23273 rm -f conftest.err conftest.$ac_objext \
23274       conftest$ac_exeext conftest.$ac_ext
23275             echo "$as_me:$LINENO: result: $aci_found" >&5
23276 echo "${ECHO_T}$aci_found" >&6
23277           fi
23278         done
23279         LIBS="$ac_func_search_save_LIBS"
23280
23281                                 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
23282           CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
23283           echo "CPPFLAGS=$CPPFLAGS">&5;
23284           if test "${ac_cv_header_simgrid_h+set}" = set; then
23285   echo "$as_me:$LINENO: checking for simgrid.h" >&5
23286 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23287 if test "${ac_cv_header_simgrid_h+set}" = set; then
23288   echo $ECHO_N "(cached) $ECHO_C" >&6
23289 fi
23290 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23291 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23292 else
23293   # Is the header compilable?
23294 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23295 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
23296 cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302 $ac_includes_default
23303 #include <simgrid.h>
23304 _ACEOF
23305 rm -f conftest.$ac_objext
23306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23307   (eval $ac_compile) 2>conftest.er1
23308   ac_status=$?
23309   grep -v '^ *+' conftest.er1 >conftest.err
23310   rm -f conftest.er1
23311   cat conftest.err >&5
23312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313   (exit $ac_status); } &&
23314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23316   (eval $ac_try) 2>&5
23317   ac_status=$?
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); }; } &&
23320          { ac_try='test -s conftest.$ac_objext'
23321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322   (eval $ac_try) 2>&5
23323   ac_status=$?
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); }; }; then
23326   ac_header_compiler=yes
23327 else
23328   echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331 ac_header_compiler=no
23332 fi
23333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23335 echo "${ECHO_T}$ac_header_compiler" >&6
23336
23337 # Is the header present?
23338 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23339 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23340 cat >conftest.$ac_ext <<_ACEOF
23341 /* confdefs.h.  */
23342 _ACEOF
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h.  */
23346 #include <simgrid.h>
23347 _ACEOF
23348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23350   ac_status=$?
23351   grep -v '^ *+' conftest.er1 >conftest.err
23352   rm -f conftest.er1
23353   cat conftest.err >&5
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); } >/dev/null; then
23356   if test -s conftest.err; then
23357     ac_cpp_err=$ac_c_preproc_warn_flag
23358     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23359   else
23360     ac_cpp_err=
23361   fi
23362 else
23363   ac_cpp_err=yes
23364 fi
23365 if test -z "$ac_cpp_err"; then
23366   ac_header_preproc=yes
23367 else
23368   echo "$as_me: failed program was:" >&5
23369 sed 's/^/| /' conftest.$ac_ext >&5
23370
23371   ac_header_preproc=no
23372 fi
23373 rm -f conftest.err conftest.$ac_ext
23374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23375 echo "${ECHO_T}$ac_header_preproc" >&6
23376
23377 # So?  What about this header?
23378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23379   yes:no: )
23380     { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23381 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23382     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23383 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23384     ac_header_preproc=yes
23385     ;;
23386   no:yes:* )
23387     { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23388 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23389     { echo "$as_me:$LINENO: WARNING: simgrid.h:     check for missing prerequisite headers?" >&5
23390 echo "$as_me: WARNING: simgrid.h:     check for missing prerequisite headers?" >&2;}
23391     { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23392 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23393     { echo "$as_me:$LINENO: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&5
23394 echo "$as_me: WARNING: simgrid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23395     { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23396 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23397     { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23398 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23399     (
23400       cat <<\_ASBOX
23401 ## ----------------------------------------- ##
23402 ## Report this to martin.quinson@ens-lyon.fr ##
23403 ## ----------------------------------------- ##
23404 _ASBOX
23405     ) |
23406       sed "s/^/$as_me: WARNING:     /" >&2
23407     ;;
23408 esac
23409 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23410 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23411 if test "${ac_cv_header_simgrid_h+set}" = set; then
23412   echo $ECHO_N "(cached) $ECHO_C" >&6
23413 else
23414   ac_cv_header_simgrid_h=$ac_header_preproc
23415 fi
23416 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23417 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23418
23419 fi
23420 if test $ac_cv_header_simgrid_h = yes; then
23421   good=yes
23422 else
23423   good=no
23424 fi
23425
23426
23427         fi
23428         if test "x$aci_found" = "xno" ; then
23429                                    :
23430         else
23431                         HAVE_SimGrid="yes"
23432                 echo >/dev/null
23433         fi
23434         if test "x$HAVE_SimGrid" != "xyes" ; then
23435           CFLAGS_SimGrid=""
23436           LIBS_SimGrid=""
23437         fi
23438
23439
23440
23441
23442         echo "END OF ACI-PACKAGE(SimGrid)">&5;
23443                 LDFLAGS=$OLDLDFLAGS
23444         CPPFLAGS=$OLDCPPFLAGS
23445         CFLAGS=$OLDCFLAGS
23446
23447
23448
23449 if test x$HAVE_SimGrid = xyes; then
23450   HAVE_SG_TRUE=
23451   HAVE_SG_FALSE='#'
23452 else
23453   HAVE_SG_TRUE='#'
23454   HAVE_SG_FALSE=
23455 fi
23456
23457
23458 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23459 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23460 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23461   echo $ECHO_N "(cached) $ECHO_C" >&6
23462 else
23463   ac_check_lib_save_LIBS=$LIBS
23464 LIBS="-lnsl  $LIBS"
23465 cat >conftest.$ac_ext <<_ACEOF
23466 /* confdefs.h.  */
23467 _ACEOF
23468 cat confdefs.h >>conftest.$ac_ext
23469 cat >>conftest.$ac_ext <<_ACEOF
23470 /* end confdefs.h.  */
23471
23472 /* Override any gcc2 internal prototype to avoid an error.  */
23473 #ifdef __cplusplus
23474 extern "C"
23475 #endif
23476 /* We use char because int might match the return type of a gcc2
23477    builtin and then its argument prototype would still apply.  */
23478 char gethostbyname ();
23479 int
23480 main ()
23481 {
23482 gethostbyname ();
23483   ;
23484   return 0;
23485 }
23486 _ACEOF
23487 rm -f conftest.$ac_objext conftest$ac_exeext
23488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23489   (eval $ac_link) 2>conftest.er1
23490   ac_status=$?
23491   grep -v '^ *+' conftest.er1 >conftest.err
23492   rm -f conftest.er1
23493   cat conftest.err >&5
23494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495   (exit $ac_status); } &&
23496          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498   (eval $ac_try) 2>&5
23499   ac_status=$?
23500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501   (exit $ac_status); }; } &&
23502          { ac_try='test -s conftest$ac_exeext'
23503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23504   (eval $ac_try) 2>&5
23505   ac_status=$?
23506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); }; }; then
23508   ac_cv_lib_nsl_gethostbyname=yes
23509 else
23510   echo "$as_me: failed program was:" >&5
23511 sed 's/^/| /' conftest.$ac_ext >&5
23512
23513 ac_cv_lib_nsl_gethostbyname=no
23514 fi
23515 rm -f conftest.err conftest.$ac_objext \
23516       conftest$ac_exeext conftest.$ac_ext
23517 LIBS=$ac_check_lib_save_LIBS
23518 fi
23519 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23520 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23521 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23522   LIBS="$LIBS -lnsl"
23523 fi
23524
23525 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23526 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23527 if test "${ac_cv_lib_socket_connect+set}" = set; then
23528   echo $ECHO_N "(cached) $ECHO_C" >&6
23529 else
23530   ac_check_lib_save_LIBS=$LIBS
23531 LIBS="-lsocket  $LIBS"
23532 cat >conftest.$ac_ext <<_ACEOF
23533 /* confdefs.h.  */
23534 _ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h.  */
23538
23539 /* Override any gcc2 internal prototype to avoid an error.  */
23540 #ifdef __cplusplus
23541 extern "C"
23542 #endif
23543 /* We use char because int might match the return type of a gcc2
23544    builtin and then its argument prototype would still apply.  */
23545 char connect ();
23546 int
23547 main ()
23548 {
23549 connect ();
23550   ;
23551   return 0;
23552 }
23553 _ACEOF
23554 rm -f conftest.$ac_objext conftest$ac_exeext
23555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23556   (eval $ac_link) 2>conftest.er1
23557   ac_status=$?
23558   grep -v '^ *+' conftest.er1 >conftest.err
23559   rm -f conftest.er1
23560   cat conftest.err >&5
23561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562   (exit $ac_status); } &&
23563          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565   (eval $ac_try) 2>&5
23566   ac_status=$?
23567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568   (exit $ac_status); }; } &&
23569          { ac_try='test -s conftest$ac_exeext'
23570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571   (eval $ac_try) 2>&5
23572   ac_status=$?
23573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574   (exit $ac_status); }; }; then
23575   ac_cv_lib_socket_connect=yes
23576 else
23577   echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23579
23580 ac_cv_lib_socket_connect=no
23581 fi
23582 rm -f conftest.err conftest.$ac_objext \
23583       conftest$ac_exeext conftest.$ac_ext
23584 LIBS=$ac_check_lib_save_LIBS
23585 fi
23586 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23587 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23588 if test $ac_cv_lib_socket_connect = yes; then
23589   LIBS="$LIBS -lsocket"
23590 fi
23591
23592
23593 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23594 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23595     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23596 if test "${enable_maintainer_mode+set}" = set; then
23597   enableval="$enable_maintainer_mode"
23598   USE_MAINTAINER_MODE=$enableval
23599 else
23600   USE_MAINTAINER_MODE=no
23601 fi;
23602   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
23603 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
23604
23605
23606 if test $USE_MAINTAINER_MODE = yes; then
23607   MAINTAINER_MODE_TRUE=
23608   MAINTAINER_MODE_FALSE='#'
23609 else
23610   MAINTAINER_MODE_TRUE='#'
23611   MAINTAINER_MODE_FALSE=
23612 fi
23613
23614   MAINT=$MAINTAINER_MODE_TRUE
23615
23616
23617 if test x$USE_MAINTAINER_MODE = xyes
23618 then
23619
23620   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
23621 if test "${enable_compile_warnings+set}" = set; then
23622   enableval="$enable_compile_warnings"
23623
23624 else
23625   enable_compile_warnings=yes
23626 fi;
23627
23628   echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
23629 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
23630   warnCFLAGS=
23631   if test "x$GCC" != xyes; then
23632     enable_compile_warnings=no
23633   fi
23634
23635   if test "x$enable_compile_warnings" != "xno"; then
23636     if test "x$GCC" = "xyes"; then
23637       case " $CFLAGS " in
23638       *-Wall*) ;;
23639       *) warnCFLAGS="-g -Wall -Wunused" ;;
23640       esac
23641
23642       ## -W is not all that useful.  And it cannot be controlled
23643       ## with individual -Wno-xxx flags, unlike -Wall
23644       if test "x$enable_compile_warnings" = "xyes"; then
23645         warnCFLAGS="$warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations\
23646                     -finline-functions  -Wshadow -Wpointer-arith \
23647                     -Wwrite-strings -Wno-unused-function -Werror"
23648       fi
23649     fi
23650   fi
23651   echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
23652 echo "${ECHO_T}$warnCFLAGS" >&6
23653
23654   # Check whether --enable-iso-c or --disable-iso-c was given.
23655 if test "${enable_iso_c+set}" = set; then
23656   enableval="$enable_iso_c"
23657
23658 else
23659   enable_iso_c=no
23660 fi;
23661
23662   echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
23663 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
23664   complCFLAGS=
23665   if test "x$enable_iso_c" != "xno"; then
23666     if test "x$GCC" = "xyes"; then
23667       case " $CFLAGS " in
23668       *-ansi*) ;;
23669       *) complCFLAGS="$complCFLAGS -ansi" ;;
23670       esac
23671
23672       case " $CFLAGS " in
23673       *-pedantic*) ;;
23674       *) complCFLAGS="$complCFLAGS -pedantic" ;;
23675       esac
23676     fi
23677   fi
23678   echo "$as_me:$LINENO: result: $complCFLAGS" >&5
23679 echo "${ECHO_T}$complCFLAGS" >&6
23680   if test "x$cflags_set" != "xyes"; then
23681     CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
23682     cflags_set=yes
23683
23684   fi
23685
23686 fi
23687
23688
23689
23690
23691
23692 # Extract the first word of "bash", so it can be a program name with args.
23693 set dummy bash; ac_word=$2
23694 echo "$as_me:$LINENO: checking for $ac_word" >&5
23695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23696 if test "${ac_cv_prog_BASH+set}" = set; then
23697   echo $ECHO_N "(cached) $ECHO_C" >&6
23698 else
23699   if test -n "$BASH"; then
23700   ac_cv_prog_BASH="$BASH" # Let the user override the test.
23701 else
23702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23703 for as_dir in $PATH
23704 do
23705   IFS=$as_save_IFS
23706   test -z "$as_dir" && as_dir=.
23707   for ac_exec_ext in '' $ac_executable_extensions; do
23708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23709     ac_cv_prog_BASH="`which bash`"
23710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23711     break 2
23712   fi
23713 done
23714 done
23715
23716   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
23717 fi
23718 fi
23719 BASH=$ac_cv_prog_BASH
23720 if test -n "$BASH"; then
23721   echo "$as_me:$LINENO: result: $BASH" >&5
23722 echo "${ECHO_T}$BASH" >&6
23723 else
23724   echo "$as_me:$LINENO: result: no" >&5
23725 echo "${ECHO_T}no" >&6
23726 fi
23727
23728 WARNING="This file is generated, do not edit"
23729
23730
23731
23732
23733                                                                                                                         ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/run_tests src/base/Tests/trp_tcp_usage src/base/Tests/trp_file_usage src/examples/Makefile src/examples/ping/Makefile doc/Makefile"
23734
23735
23736 #    src/modules/Makefile
23737 #      src/examples/bandwidth/Makefile src/examples/saturate/Makefile
23738 #      src/examples/alnem/Makefile
23739
23740 cat >confcache <<\_ACEOF
23741 # This file is a shell script that caches the results of configure
23742 # tests run on this system so they can be shared between configure
23743 # scripts and configure runs, see configure's option --config-cache.
23744 # It is not useful on other systems.  If it contains results you don't
23745 # want to keep, you may remove or edit it.
23746 #
23747 # config.status only pays attention to the cache file if you give it
23748 # the --recheck option to rerun configure.
23749 #
23750 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23751 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23752 # following values.
23753
23754 _ACEOF
23755
23756 # The following way of writing the cache mishandles newlines in values,
23757 # but we know of no workaround that is simple, portable, and efficient.
23758 # So, don't put newlines in cache variables' values.
23759 # Ultrix sh set writes to stderr and can't be redirected directly,
23760 # and sets the high bit in the cache file unless we assign to the vars.
23761 {
23762   (set) 2>&1 |
23763     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23764     *ac_space=\ *)
23765       # `set' does not quote correctly, so add quotes (double-quote
23766       # substitution turns \\\\ into \\, and sed turns \\ into \).
23767       sed -n \
23768         "s/'/'\\\\''/g;
23769           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23770       ;;
23771     *)
23772       # `set' quotes correctly as required by POSIX, so do not add quotes.
23773       sed -n \
23774         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23775       ;;
23776     esac;
23777 } |
23778   sed '
23779      t clear
23780      : clear
23781      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23782      t end
23783      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23784      : end' >>confcache
23785 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23786   if test -w $cache_file; then
23787     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23788     cat confcache >$cache_file
23789   else
23790     echo "not updating unwritable cache $cache_file"
23791   fi
23792 fi
23793 rm -f confcache
23794
23795 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23796 # Let make expand exec_prefix.
23797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23798
23799 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23800 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23801 # trailing colons and then remove the whole line if VPATH becomes empty
23802 # (actually we leave an empty line to preserve line numbers).
23803 if test "x$srcdir" = x.; then
23804   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23805 s/:*\$(srcdir):*/:/;
23806 s/:*\${srcdir}:*/:/;
23807 s/:*@srcdir@:*/:/;
23808 s/^\([^=]*=[     ]*\):*/\1/;
23809 s/:*$//;
23810 s/^[^=]*=[       ]*$//;
23811 }'
23812 fi
23813
23814 DEFS=-DHAVE_CONFIG_H
23815
23816 ac_libobjs=
23817 ac_ltlibobjs=
23818 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23819   # 1. Remove the extension, and $U if already installed.
23820   ac_i=`echo "$ac_i" |
23821          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23822   # 2. Add them.
23823   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23824   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23825 done
23826 LIBOBJS=$ac_libobjs
23827
23828 LTLIBOBJS=$ac_ltlibobjs
23829
23830
23831 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23832   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23833 Usually this means the macro was only invoked conditionally." >&5
23834 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23835 Usually this means the macro was only invoked conditionally." >&2;}
23836    { (exit 1); exit 1; }; }
23837 fi
23838 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23839   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23840 Usually this means the macro was only invoked conditionally." >&5
23841 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23842 Usually this means the macro was only invoked conditionally." >&2;}
23843    { (exit 1); exit 1; }; }
23844 fi
23845 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23846   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23847 Usually this means the macro was only invoked conditionally." >&5
23848 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23849 Usually this means the macro was only invoked conditionally." >&2;}
23850    { (exit 1); exit 1; }; }
23851 fi
23852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23853   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23854 Usually this means the macro was only invoked conditionally." >&5
23855 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23856 Usually this means the macro was only invoked conditionally." >&2;}
23857    { (exit 1); exit 1; }; }
23858 fi
23859 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23860   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23861 Usually this means the macro was only invoked conditionally." >&5
23862 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23863 Usually this means the macro was only invoked conditionally." >&2;}
23864    { (exit 1); exit 1; }; }
23865 fi
23866 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23867   { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23868 Usually this means the macro was only invoked conditionally." >&5
23869 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23870 Usually this means the macro was only invoked conditionally." >&2;}
23871    { (exit 1); exit 1; }; }
23872 fi
23873 if test -z "${HAVE_SG_TRUE}" && test -z "${HAVE_SG_FALSE}"; then
23874   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SG\" was never defined.
23875 Usually this means the macro was only invoked conditionally." >&5
23876 echo "$as_me: error: conditional \"HAVE_SG\" was never defined.
23877 Usually this means the macro was only invoked conditionally." >&2;}
23878    { (exit 1); exit 1; }; }
23879 fi
23880 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23881   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23882 Usually this means the macro was only invoked conditionally." >&5
23883 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23884 Usually this means the macro was only invoked conditionally." >&2;}
23885    { (exit 1); exit 1; }; }
23886 fi
23887
23888 : ${CONFIG_STATUS=./config.status}
23889 ac_clean_files_save=$ac_clean_files
23890 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23891 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23892 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23893 cat >$CONFIG_STATUS <<_ACEOF
23894 #! $SHELL
23895 # Generated by $as_me.
23896 # Run this file to recreate the current configuration.
23897 # Compiler output produced by configure, useful for debugging
23898 # configure, is in config.log if it exists.
23899
23900 debug=false
23901 ac_cs_recheck=false
23902 ac_cs_silent=false
23903 SHELL=\${CONFIG_SHELL-$SHELL}
23904 _ACEOF
23905
23906 cat >>$CONFIG_STATUS <<\_ACEOF
23907 ## --------------------- ##
23908 ## M4sh Initialization.  ##
23909 ## --------------------- ##
23910
23911 # Be Bourne compatible
23912 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23913   emulate sh
23914   NULLCMD=:
23915   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23916   # is contrary to our usage.  Disable this feature.
23917   alias -g '${1+"$@"}'='"$@"'
23918 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23919   set -o posix
23920 fi
23921 DUALCASE=1; export DUALCASE # for MKS sh
23922
23923 # Support unset when possible.
23924 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23925   as_unset=unset
23926 else
23927   as_unset=false
23928 fi
23929
23930
23931 # Work around bugs in pre-3.0 UWIN ksh.
23932 $as_unset ENV MAIL MAILPATH
23933 PS1='$ '
23934 PS2='> '
23935 PS4='+ '
23936
23937 # NLS nuisances.
23938 for as_var in \
23939   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23940   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23941   LC_TELEPHONE LC_TIME
23942 do
23943   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23944     eval $as_var=C; export $as_var
23945   else
23946     $as_unset $as_var
23947   fi
23948 done
23949
23950 # Required to use basename.
23951 if expr a : '\(a\)' >/dev/null 2>&1; then
23952   as_expr=expr
23953 else
23954   as_expr=false
23955 fi
23956
23957 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23958   as_basename=basename
23959 else
23960   as_basename=false
23961 fi
23962
23963
23964 # Name of the executable.
23965 as_me=`$as_basename "$0" ||
23966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23967          X"$0" : 'X\(//\)$' \| \
23968          X"$0" : 'X\(/\)$' \| \
23969          .     : '\(.\)' 2>/dev/null ||
23970 echo X/"$0" |
23971     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23972           /^X\/\(\/\/\)$/{ s//\1/; q; }
23973           /^X\/\(\/\).*/{ s//\1/; q; }
23974           s/.*/./; q'`
23975
23976
23977 # PATH needs CR, and LINENO needs CR and PATH.
23978 # Avoid depending upon Character Ranges.
23979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23982 as_cr_digits='0123456789'
23983 as_cr_alnum=$as_cr_Letters$as_cr_digits
23984
23985 # The user is always right.
23986 if test "${PATH_SEPARATOR+set}" != set; then
23987   echo "#! /bin/sh" >conf$$.sh
23988   echo  "exit 0"   >>conf$$.sh
23989   chmod +x conf$$.sh
23990   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23991     PATH_SEPARATOR=';'
23992   else
23993     PATH_SEPARATOR=:
23994   fi
23995   rm -f conf$$.sh
23996 fi
23997
23998
23999   as_lineno_1=$LINENO
24000   as_lineno_2=$LINENO
24001   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24002   test "x$as_lineno_1" != "x$as_lineno_2" &&
24003   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24004   # Find who we are.  Look in the path if we contain no path at all
24005   # relative or not.
24006   case $0 in
24007     *[\\/]* ) as_myself=$0 ;;
24008     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24009 for as_dir in $PATH
24010 do
24011   IFS=$as_save_IFS
24012   test -z "$as_dir" && as_dir=.
24013   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24014 done
24015
24016        ;;
24017   esac
24018   # We did not find ourselves, most probably we were run as `sh COMMAND'
24019   # in which case we are not to be found in the path.
24020   if test "x$as_myself" = x; then
24021     as_myself=$0
24022   fi
24023   if test ! -f "$as_myself"; then
24024     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24025 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24026    { (exit 1); exit 1; }; }
24027   fi
24028   case $CONFIG_SHELL in
24029   '')
24030     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24031 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24032 do
24033   IFS=$as_save_IFS
24034   test -z "$as_dir" && as_dir=.
24035   for as_base in sh bash ksh sh5; do
24036          case $as_dir in
24037          /*)
24038            if ("$as_dir/$as_base" -c '
24039   as_lineno_1=$LINENO
24040   as_lineno_2=$LINENO
24041   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24042   test "x$as_lineno_1" != "x$as_lineno_2" &&
24043   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24044              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24045              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24046              CONFIG_SHELL=$as_dir/$as_base
24047              export CONFIG_SHELL
24048              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24049            fi;;
24050          esac
24051        done
24052 done
24053 ;;
24054   esac
24055
24056   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24057   # uniformly replaced by the line number.  The first 'sed' inserts a
24058   # line-number line before each line; the second 'sed' does the real
24059   # work.  The second script uses 'N' to pair each line-number line
24060   # with the numbered line, and appends trailing '-' during
24061   # substitution so that $LINENO is not a special case at line end.
24062   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24063   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24064   sed '=' <$as_myself |
24065     sed '
24066       N
24067       s,$,-,
24068       : loop
24069       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24070       t loop
24071       s,-$,,
24072       s,^['$as_cr_digits']*\n,,
24073     ' >$as_me.lineno &&
24074   chmod +x $as_me.lineno ||
24075     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24076 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24077    { (exit 1); exit 1; }; }
24078
24079   # Don't try to exec as it changes $[0], causing all sort of problems
24080   # (the dirname of $[0] is not the place where we might find the
24081   # original and so on.  Autoconf is especially sensible to this).
24082   . ./$as_me.lineno
24083   # Exit status is that of the last command.
24084   exit
24085 }
24086
24087
24088 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24089   *c*,-n*) ECHO_N= ECHO_C='
24090 ' ECHO_T='      ' ;;
24091   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24092   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24093 esac
24094
24095 if expr a : '\(a\)' >/dev/null 2>&1; then
24096   as_expr=expr
24097 else
24098   as_expr=false
24099 fi
24100
24101 rm -f conf$$ conf$$.exe conf$$.file
24102 echo >conf$$.file
24103 if ln -s conf$$.file conf$$ 2>/dev/null; then
24104   # We could just check for DJGPP; but this test a) works b) is more generic
24105   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24106   if test -f conf$$.exe; then
24107     # Don't use ln at all; we don't have any links
24108     as_ln_s='cp -p'
24109   else
24110     as_ln_s='ln -s'
24111   fi
24112 elif ln conf$$.file conf$$ 2>/dev/null; then
24113   as_ln_s=ln
24114 else
24115   as_ln_s='cp -p'
24116 fi
24117 rm -f conf$$ conf$$.exe conf$$.file
24118
24119 if mkdir -p . 2>/dev/null; then
24120   as_mkdir_p=:
24121 else
24122   test -d ./-p && rmdir ./-p
24123   as_mkdir_p=false
24124 fi
24125
24126 as_executable_p="test -f"
24127
24128 # Sed expression to map a string onto a valid CPP name.
24129 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24130
24131 # Sed expression to map a string onto a valid variable name.
24132 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24133
24134
24135 # IFS
24136 # We need space, tab and new line, in precisely that order.
24137 as_nl='
24138 '
24139 IFS="   $as_nl"
24140
24141 # CDPATH.
24142 $as_unset CDPATH
24143
24144 exec 6>&1
24145
24146 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24147 # report actual input values of CONFIG_FILES etc. instead of their
24148 # values after options handling.  Logging --version etc. is OK.
24149 exec 5>>config.log
24150 {
24151   echo
24152   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24153 ## Running $as_me. ##
24154 _ASBOX
24155 } >&5
24156 cat >&5 <<_CSEOF
24157
24158 This file was extended by GRAS $as_me 0.0.2, which was
24159 generated by GNU Autoconf 2.59.  Invocation command line was
24160
24161   CONFIG_FILES    = $CONFIG_FILES
24162   CONFIG_HEADERS  = $CONFIG_HEADERS
24163   CONFIG_LINKS    = $CONFIG_LINKS
24164   CONFIG_COMMANDS = $CONFIG_COMMANDS
24165   $ $0 $@
24166
24167 _CSEOF
24168 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24169 echo >&5
24170 _ACEOF
24171
24172 # Files that config.status was made for.
24173 if test -n "$ac_config_files"; then
24174   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24175 fi
24176
24177 if test -n "$ac_config_headers"; then
24178   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24179 fi
24180
24181 if test -n "$ac_config_links"; then
24182   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24183 fi
24184
24185 if test -n "$ac_config_commands"; then
24186   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24187 fi
24188
24189 cat >>$CONFIG_STATUS <<\_ACEOF
24190
24191 ac_cs_usage="\
24192 \`$as_me' instantiates files from templates according to the
24193 current configuration.
24194
24195 Usage: $0 [OPTIONS] [FILE]...
24196
24197   -h, --help       print this help, then exit
24198   -V, --version    print version number, then exit
24199   -q, --quiet      do not print progress messages
24200   -d, --debug      don't remove temporary files
24201       --recheck    update $as_me by reconfiguring in the same conditions
24202   --file=FILE[:TEMPLATE]
24203                    instantiate the configuration file FILE
24204   --header=FILE[:TEMPLATE]
24205                    instantiate the configuration header FILE
24206
24207 Configuration files:
24208 $config_files
24209
24210 Configuration headers:
24211 $config_headers
24212
24213 Configuration commands:
24214 $config_commands
24215
24216 Report bugs to <bug-autoconf@gnu.org>."
24217 _ACEOF
24218
24219 cat >>$CONFIG_STATUS <<_ACEOF
24220 ac_cs_version="\\
24221 GRAS config.status 0.0.2
24222 configured by $0, generated by GNU Autoconf 2.59,
24223   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24224
24225 Copyright (C) 2003 Free Software Foundation, Inc.
24226 This config.status script is free software; the Free Software Foundation
24227 gives unlimited permission to copy, distribute and modify it."
24228 srcdir=$srcdir
24229 INSTALL="$INSTALL"
24230 _ACEOF
24231
24232 cat >>$CONFIG_STATUS <<\_ACEOF
24233 # If no file are specified by the user, then we need to provide default
24234 # value.  By we need to know if files were specified by the user.
24235 ac_need_defaults=:
24236 while test $# != 0
24237 do
24238   case $1 in
24239   --*=*)
24240     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24241     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24242     ac_shift=:
24243     ;;
24244   -*)
24245     ac_option=$1
24246     ac_optarg=$2
24247     ac_shift=shift
24248     ;;
24249   *) # This is not an option, so the user has probably given explicit
24250      # arguments.
24251      ac_option=$1
24252      ac_need_defaults=false;;
24253   esac
24254
24255   case $ac_option in
24256   # Handling of the options.
24257 _ACEOF
24258 cat >>$CONFIG_STATUS <<\_ACEOF
24259   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24260     ac_cs_recheck=: ;;
24261   --version | --vers* | -V )
24262     echo "$ac_cs_version"; exit 0 ;;
24263   --he | --h)
24264     # Conflict between --help and --header
24265     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24266 Try \`$0 --help' for more information." >&5
24267 echo "$as_me: error: ambiguous option: $1
24268 Try \`$0 --help' for more information." >&2;}
24269    { (exit 1); exit 1; }; };;
24270   --help | --hel | -h )
24271     echo "$ac_cs_usage"; exit 0 ;;
24272   --debug | --d* | -d )
24273     debug=: ;;
24274   --file | --fil | --fi | --f )
24275     $ac_shift
24276     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24277     ac_need_defaults=false;;
24278   --header | --heade | --head | --hea )
24279     $ac_shift
24280     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24281     ac_need_defaults=false;;
24282   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24283   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24284     ac_cs_silent=: ;;
24285
24286   # This is an error.
24287   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24288 Try \`$0 --help' for more information." >&5
24289 echo "$as_me: error: unrecognized option: $1
24290 Try \`$0 --help' for more information." >&2;}
24291    { (exit 1); exit 1; }; } ;;
24292
24293   *) ac_config_targets="$ac_config_targets $1" ;;
24294
24295   esac
24296   shift
24297 done
24298
24299 ac_configure_extra_args=
24300
24301 if $ac_cs_silent; then
24302   exec 6>/dev/null
24303   ac_configure_extra_args="$ac_configure_extra_args --silent"
24304 fi
24305
24306 _ACEOF
24307 cat >>$CONFIG_STATUS <<_ACEOF
24308 if \$ac_cs_recheck; then
24309   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24310   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24311 fi
24312
24313 _ACEOF
24314
24315 cat >>$CONFIG_STATUS <<_ACEOF
24316 #
24317 # INIT-COMMANDS section.
24318 #
24319
24320 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24321
24322 _ACEOF
24323
24324
24325
24326 cat >>$CONFIG_STATUS <<\_ACEOF
24327 for ac_config_target in $ac_config_targets
24328 do
24329   case "$ac_config_target" in
24330   # Handling of arguments.
24331   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24332   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24333   "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
24334   "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
24335   "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
24336   "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
24337   "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
24338   "src/base/Tests/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_tcp_usage" ;;
24339   "src/base/Tests/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_file_usage" ;;
24340   "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
24341   "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
24342   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24343   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24344   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
24345   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24346 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24347    { (exit 1); exit 1; }; };;
24348   esac
24349 done
24350
24351 # If the user did not use the arguments to specify the items to instantiate,
24352 # then the envvar interface is used.  Set only those that are not.
24353 # We use the long form for the default assignment because of an extremely
24354 # bizarre bug on SunOS 4.1.3.
24355 if $ac_need_defaults; then
24356   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24357   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24358   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24359 fi
24360
24361 # Have a temporary directory for convenience.  Make it in the build tree
24362 # simply because there is no reason to put it here, and in addition,
24363 # creating and moving files from /tmp can sometimes cause problems.
24364 # Create a temporary directory, and hook for its removal unless debugging.
24365 $debug ||
24366 {
24367   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24368   trap '{ (exit 1); exit 1; }' 1 2 13 15
24369 }
24370
24371 # Create a (secure) tmp directory for tmp files.
24372
24373 {
24374   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24375   test -n "$tmp" && test -d "$tmp"
24376 }  ||
24377 {
24378   tmp=./confstat$$-$RANDOM
24379   (umask 077 && mkdir $tmp)
24380 } ||
24381 {
24382    echo "$me: cannot create a temporary directory in ." >&2
24383    { (exit 1); exit 1; }
24384 }
24385
24386 _ACEOF
24387
24388 cat >>$CONFIG_STATUS <<_ACEOF
24389
24390 #
24391 # CONFIG_FILES section.
24392 #
24393
24394 # No need to generate the scripts if there are no CONFIG_FILES.
24395 # This happens for instance when ./config.status config.h
24396 if test -n "\$CONFIG_FILES"; then
24397   # Protect against being on the right side of a sed subst in config.status.
24398   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24399    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24400 s,@SHELL@,$SHELL,;t t
24401 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24402 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24403 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24404 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24405 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24406 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24407 s,@exec_prefix@,$exec_prefix,;t t
24408 s,@prefix@,$prefix,;t t
24409 s,@program_transform_name@,$program_transform_name,;t t
24410 s,@bindir@,$bindir,;t t
24411 s,@sbindir@,$sbindir,;t t
24412 s,@libexecdir@,$libexecdir,;t t
24413 s,@datadir@,$datadir,;t t
24414 s,@sysconfdir@,$sysconfdir,;t t
24415 s,@sharedstatedir@,$sharedstatedir,;t t
24416 s,@localstatedir@,$localstatedir,;t t
24417 s,@libdir@,$libdir,;t t
24418 s,@includedir@,$includedir,;t t
24419 s,@oldincludedir@,$oldincludedir,;t t
24420 s,@infodir@,$infodir,;t t
24421 s,@mandir@,$mandir,;t t
24422 s,@build_alias@,$build_alias,;t t
24423 s,@host_alias@,$host_alias,;t t
24424 s,@target_alias@,$target_alias,;t t
24425 s,@DEFS@,$DEFS,;t t
24426 s,@ECHO_C@,$ECHO_C,;t t
24427 s,@ECHO_N@,$ECHO_N,;t t
24428 s,@ECHO_T@,$ECHO_T,;t t
24429 s,@LIBS@,$LIBS,;t t
24430 s,@build@,$build,;t t
24431 s,@build_cpu@,$build_cpu,;t t
24432 s,@build_vendor@,$build_vendor,;t t
24433 s,@build_os@,$build_os,;t t
24434 s,@host@,$host,;t t
24435 s,@host_cpu@,$host_cpu,;t t
24436 s,@host_vendor@,$host_vendor,;t t
24437 s,@host_os@,$host_os,;t t
24438 s,@target@,$target,;t t
24439 s,@target_cpu@,$target_cpu,;t t
24440 s,@target_vendor@,$target_vendor,;t t
24441 s,@target_os@,$target_os,;t t
24442 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24443 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24444 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24445 s,@CYGPATH_W@,$CYGPATH_W,;t t
24446 s,@PACKAGE@,$PACKAGE,;t t
24447 s,@VERSION@,$VERSION,;t t
24448 s,@ACLOCAL@,$ACLOCAL,;t t
24449 s,@AUTOCONF@,$AUTOCONF,;t t
24450 s,@AUTOMAKE@,$AUTOMAKE,;t t
24451 s,@AUTOHEADER@,$AUTOHEADER,;t t
24452 s,@MAKEINFO@,$MAKEINFO,;t t
24453 s,@AMTAR@,$AMTAR,;t t
24454 s,@install_sh@,$install_sh,;t t
24455 s,@STRIP@,$STRIP,;t t
24456 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24457 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24458 s,@mkdir_p@,$mkdir_p,;t t
24459 s,@AWK@,$AWK,;t t
24460 s,@SET_MAKE@,$SET_MAKE,;t t
24461 s,@am__leading_dot@,$am__leading_dot,;t t
24462 s,@CC@,$CC,;t t
24463 s,@CFLAGS@,$CFLAGS,;t t
24464 s,@LDFLAGS@,$LDFLAGS,;t t
24465 s,@CPPFLAGS@,$CPPFLAGS,;t t
24466 s,@ac_ct_CC@,$ac_ct_CC,;t t
24467 s,@EXEEXT@,$EXEEXT,;t t
24468 s,@OBJEXT@,$OBJEXT,;t t
24469 s,@DEPDIR@,$DEPDIR,;t t
24470 s,@am__include@,$am__include,;t t
24471 s,@am__quote@,$am__quote,;t t
24472 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24473 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24474 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24475 s,@CCDEPMODE@,$CCDEPMODE,;t t
24476 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24477 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24478 s,@EGREP@,$EGREP,;t t
24479 s,@LN_S@,$LN_S,;t t
24480 s,@ECHO@,$ECHO,;t t
24481 s,@AR@,$AR,;t t
24482 s,@ac_ct_AR@,$ac_ct_AR,;t t
24483 s,@RANLIB@,$RANLIB,;t t
24484 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24485 s,@CPP@,$CPP,;t t
24486 s,@CXX@,$CXX,;t t
24487 s,@CXXFLAGS@,$CXXFLAGS,;t t
24488 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24489 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24490 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24491 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24492 s,@CXXCPP@,$CXXCPP,;t t
24493 s,@F77@,$F77,;t t
24494 s,@FFLAGS@,$FFLAGS,;t t
24495 s,@ac_ct_F77@,$ac_ct_F77,;t t
24496 s,@LIBTOOL@,$LIBTOOL,;t t
24497 s,@LIBOBJS@,$LIBOBJS,;t t
24498 s,@HTML_DIR@,$HTML_DIR,;t t
24499 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24500 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
24501 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
24502 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
24503 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
24504 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
24505 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
24506 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
24507 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
24508 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
24509 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
24510 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
24511 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
24512 s,@HAVE_SG_TRUE@,$HAVE_SG_TRUE,;t t
24513 s,@HAVE_SG_FALSE@,$HAVE_SG_FALSE,;t t
24514 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24515 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24516 s,@MAINT@,$MAINT,;t t
24517 s,@cflags_set@,$cflags_set,;t t
24518 s,@BASH@,$BASH,;t t
24519 s,@WARNING@,$WARNING,;t t
24520 s,@SED@,$SED,;t t
24521 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24522 CEOF
24523
24524 _ACEOF
24525
24526   cat >>$CONFIG_STATUS <<\_ACEOF
24527   # Split the substitutions into bite-sized pieces for seds with
24528   # small command number limits, like on Digital OSF/1 and HP-UX.
24529   ac_max_sed_lines=48
24530   ac_sed_frag=1 # Number of current file.
24531   ac_beg=1 # First line for current file.
24532   ac_end=$ac_max_sed_lines # Line after last line for current file.
24533   ac_more_lines=:
24534   ac_sed_cmds=
24535   while $ac_more_lines; do
24536     if test $ac_beg -gt 1; then
24537       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24538     else
24539       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24540     fi
24541     if test ! -s $tmp/subs.frag; then
24542       ac_more_lines=false
24543     else
24544       # The purpose of the label and of the branching condition is to
24545       # speed up the sed processing (if there are no `@' at all, there
24546       # is no need to browse any of the substitutions).
24547       # These are the two extra sed commands mentioned above.
24548       (echo ':t
24549   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24550       if test -z "$ac_sed_cmds"; then
24551         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24552       else
24553         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24554       fi
24555       ac_sed_frag=`expr $ac_sed_frag + 1`
24556       ac_beg=$ac_end
24557       ac_end=`expr $ac_end + $ac_max_sed_lines`
24558     fi
24559   done
24560   if test -z "$ac_sed_cmds"; then
24561     ac_sed_cmds=cat
24562   fi
24563 fi # test -n "$CONFIG_FILES"
24564
24565 _ACEOF
24566 cat >>$CONFIG_STATUS <<\_ACEOF
24567 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24568   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24569   case $ac_file in
24570   - | *:- | *:-:* ) # input from stdin
24571         cat >$tmp/stdin
24572         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24573         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24574   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24575         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24576   * )   ac_file_in=$ac_file.in ;;
24577   esac
24578
24579   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24580   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24582          X"$ac_file" : 'X\(//\)[^/]' \| \
24583          X"$ac_file" : 'X\(//\)$' \| \
24584          X"$ac_file" : 'X\(/\)' \| \
24585          .     : '\(.\)' 2>/dev/null ||
24586 echo X"$ac_file" |
24587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24588           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24589           /^X\(\/\/\)$/{ s//\1/; q; }
24590           /^X\(\/\).*/{ s//\1/; q; }
24591           s/.*/./; q'`
24592   { if $as_mkdir_p; then
24593     mkdir -p "$ac_dir"
24594   else
24595     as_dir="$ac_dir"
24596     as_dirs=
24597     while test ! -d "$as_dir"; do
24598       as_dirs="$as_dir $as_dirs"
24599       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24601          X"$as_dir" : 'X\(//\)[^/]' \| \
24602          X"$as_dir" : 'X\(//\)$' \| \
24603          X"$as_dir" : 'X\(/\)' \| \
24604          .     : '\(.\)' 2>/dev/null ||
24605 echo X"$as_dir" |
24606     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24607           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24608           /^X\(\/\/\)$/{ s//\1/; q; }
24609           /^X\(\/\).*/{ s//\1/; q; }
24610           s/.*/./; q'`
24611     done
24612     test ! -n "$as_dirs" || mkdir $as_dirs
24613   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24614 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24615    { (exit 1); exit 1; }; }; }
24616
24617   ac_builddir=.
24618
24619 if test "$ac_dir" != .; then
24620   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24621   # A "../" for each directory in $ac_dir_suffix.
24622   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24623 else
24624   ac_dir_suffix= ac_top_builddir=
24625 fi
24626
24627 case $srcdir in
24628   .)  # No --srcdir option.  We are building in place.
24629     ac_srcdir=.
24630     if test -z "$ac_top_builddir"; then
24631        ac_top_srcdir=.
24632     else
24633        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24634     fi ;;
24635   [\\/]* | ?:[\\/]* )  # Absolute path.
24636     ac_srcdir=$srcdir$ac_dir_suffix;
24637     ac_top_srcdir=$srcdir ;;
24638   *) # Relative path.
24639     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24640     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24641 esac
24642
24643 # Do not use `cd foo && pwd` to compute absolute paths, because
24644 # the directories may not exist.
24645 case `pwd` in
24646 .) ac_abs_builddir="$ac_dir";;
24647 *)
24648   case "$ac_dir" in
24649   .) ac_abs_builddir=`pwd`;;
24650   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24651   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24652   esac;;
24653 esac
24654 case $ac_abs_builddir in
24655 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24656 *)
24657   case ${ac_top_builddir}. in
24658   .) ac_abs_top_builddir=$ac_abs_builddir;;
24659   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24660   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24661   esac;;
24662 esac
24663 case $ac_abs_builddir in
24664 .) ac_abs_srcdir=$ac_srcdir;;
24665 *)
24666   case $ac_srcdir in
24667   .) ac_abs_srcdir=$ac_abs_builddir;;
24668   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24669   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24670   esac;;
24671 esac
24672 case $ac_abs_builddir in
24673 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24674 *)
24675   case $ac_top_srcdir in
24676   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24677   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24678   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24679   esac;;
24680 esac
24681
24682
24683   case $INSTALL in
24684   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24685   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24686   esac
24687
24688   # Let's still pretend it is `configure' which instantiates (i.e., don't
24689   # use $as_me), people would be surprised to read:
24690   #    /* config.h.  Generated by config.status.  */
24691   if test x"$ac_file" = x-; then
24692     configure_input=
24693   else
24694     configure_input="$ac_file.  "
24695   fi
24696   configure_input=$configure_input"Generated from `echo $ac_file_in |
24697                                      sed 's,.*/,,'` by configure."
24698
24699   # First look for the input files in the build tree, otherwise in the
24700   # src tree.
24701   ac_file_inputs=`IFS=:
24702     for f in $ac_file_in; do
24703       case $f in
24704       -) echo $tmp/stdin ;;
24705       [\\/$]*)
24706          # Absolute (can't be DOS-style, as IFS=:)
24707          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24708 echo "$as_me: error: cannot find input file: $f" >&2;}
24709    { (exit 1); exit 1; }; }
24710          echo "$f";;
24711       *) # Relative
24712          if test -f "$f"; then
24713            # Build tree
24714            echo "$f"
24715          elif test -f "$srcdir/$f"; then
24716            # Source tree
24717            echo "$srcdir/$f"
24718          else
24719            # /dev/null tree
24720            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24721 echo "$as_me: error: cannot find input file: $f" >&2;}
24722    { (exit 1); exit 1; }; }
24723          fi;;
24724       esac
24725     done` || { (exit 1); exit 1; }
24726
24727   if test x"$ac_file" != x-; then
24728     { echo "$as_me:$LINENO: creating $ac_file" >&5
24729 echo "$as_me: creating $ac_file" >&6;}
24730     rm -f "$ac_file"
24731   fi
24732 _ACEOF
24733 cat >>$CONFIG_STATUS <<_ACEOF
24734   sed "$ac_vpsub
24735 $extrasub
24736 _ACEOF
24737 cat >>$CONFIG_STATUS <<\_ACEOF
24738 :t
24739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24740 s,@configure_input@,$configure_input,;t t
24741 s,@srcdir@,$ac_srcdir,;t t
24742 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24743 s,@top_srcdir@,$ac_top_srcdir,;t t
24744 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24745 s,@builddir@,$ac_builddir,;t t
24746 s,@abs_builddir@,$ac_abs_builddir,;t t
24747 s,@top_builddir@,$ac_top_builddir,;t t
24748 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24749 s,@INSTALL@,$ac_INSTALL,;t t
24750 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24751   rm -f $tmp/stdin
24752   if test x"$ac_file" != x-; then
24753     mv $tmp/out $ac_file
24754   else
24755     cat $tmp/out
24756     rm -f $tmp/out
24757   fi
24758
24759   # Run the commands associated with the file.
24760   case $ac_file in
24761     Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24762      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24763      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24764      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24765      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24766     src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24767      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24768      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24769      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24770      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24771     src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24772      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24773      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24774      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24775      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24776     src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24777      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24778      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24779      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24780      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24781     src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24782      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24783      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24784      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24785      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24786     src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24787      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24788      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24789      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24790      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24791     src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
24792      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24793      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24794      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24795      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24796     src/base/Tests/trp_tcp_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24797      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24798      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24799      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24800      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24801     src/base/Tests/trp_file_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24802      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24803      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24804      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24805      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24806     src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24807      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24808      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24809      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24810      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24811     src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24812      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24813      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24814      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24815      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24816     doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24817      test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24818      test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24819      test -e src/base/Tests/run_tests     && chmod +x src/base/Tests/run_tests;
24820      chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg ;;
24821   esac
24822 done
24823 _ACEOF
24824 cat >>$CONFIG_STATUS <<\_ACEOF
24825
24826 #
24827 # CONFIG_HEADER section.
24828 #
24829
24830 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24831 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24832 #
24833 # ac_d sets the value in "#define NAME VALUE" lines.
24834 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24835 ac_dB='[         ].*$,\1#\2'
24836 ac_dC=' '
24837 ac_dD=',;t'
24838 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24839 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24840 ac_uB='$,\1#\2define\3'
24841 ac_uC=' '
24842 ac_uD=',;t'
24843
24844 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24845   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24846   case $ac_file in
24847   - | *:- | *:-:* ) # input from stdin
24848         cat >$tmp/stdin
24849         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24850         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24851   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24852         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24853   * )   ac_file_in=$ac_file.in ;;
24854   esac
24855
24856   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24857 echo "$as_me: creating $ac_file" >&6;}
24858
24859   # First look for the input files in the build tree, otherwise in the
24860   # src tree.
24861   ac_file_inputs=`IFS=:
24862     for f in $ac_file_in; do
24863       case $f in
24864       -) echo $tmp/stdin ;;
24865       [\\/$]*)
24866          # Absolute (can't be DOS-style, as IFS=:)
24867          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24868 echo "$as_me: error: cannot find input file: $f" >&2;}
24869    { (exit 1); exit 1; }; }
24870          # Do quote $f, to prevent DOS paths from being IFS'd.
24871          echo "$f";;
24872       *) # Relative
24873          if test -f "$f"; then
24874            # Build tree
24875            echo "$f"
24876          elif test -f "$srcdir/$f"; then
24877            # Source tree
24878            echo "$srcdir/$f"
24879          else
24880            # /dev/null tree
24881            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24882 echo "$as_me: error: cannot find input file: $f" >&2;}
24883    { (exit 1); exit 1; }; }
24884          fi;;
24885       esac
24886     done` || { (exit 1); exit 1; }
24887   # Remove the trailing spaces.
24888   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24889
24890 _ACEOF
24891
24892 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24893 # `conftest.undefs', that substitutes the proper values into
24894 # config.h.in to produce config.h.  The first handles `#define'
24895 # templates, and the second `#undef' templates.
24896 # And first: Protect against being on the right side of a sed subst in
24897 # config.status.  Protect against being in an unquoted here document
24898 # in config.status.
24899 rm -f conftest.defines conftest.undefs
24900 # Using a here document instead of a string reduces the quoting nightmare.
24901 # Putting comments in sed scripts is not portable.
24902 #
24903 # `end' is used to avoid that the second main sed command (meant for
24904 # 0-ary CPP macros) applies to n-ary macro definitions.
24905 # See the Autoconf documentation for `clear'.
24906 cat >confdef2sed.sed <<\_ACEOF
24907 s/[\\&,]/\\&/g
24908 s,[\\$`],\\&,g
24909 t clear
24910 : clear
24911 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24912 t end
24913 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24914 : end
24915 _ACEOF
24916 # If some macros were called several times there might be several times
24917 # the same #defines, which is useless.  Nevertheless, we may not want to
24918 # sort them, since we want the *last* AC-DEFINE to be honored.
24919 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24920 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24921 rm -f confdef2sed.sed
24922
24923 # This sed command replaces #undef with comments.  This is necessary, for
24924 # example, in the case of _POSIX_SOURCE, which is predefined and required
24925 # on some systems where configure will not decide to define it.
24926 cat >>conftest.undefs <<\_ACEOF
24927 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24928 _ACEOF
24929
24930 # Break up conftest.defines because some shells have a limit on the size
24931 # of here documents, and old seds have small limits too (100 cmds).
24932 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24933 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24934 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24935 echo '  :' >>$CONFIG_STATUS
24936 rm -f conftest.tail
24937 while grep . conftest.defines >/dev/null
24938 do
24939   # Write a limited-size here document to $tmp/defines.sed.
24940   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24941   # Speed up: don't consider the non `#define' lines.
24942   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24943   # Work around the forget-to-reset-the-flag bug.
24944   echo 't clr' >>$CONFIG_STATUS
24945   echo ': clr' >>$CONFIG_STATUS
24946   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24947   echo 'CEOF
24948   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24949   rm -f $tmp/in
24950   mv $tmp/out $tmp/in
24951 ' >>$CONFIG_STATUS
24952   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24953   rm -f conftest.defines
24954   mv conftest.tail conftest.defines
24955 done
24956 rm -f conftest.defines
24957 echo '  fi # grep' >>$CONFIG_STATUS
24958 echo >>$CONFIG_STATUS
24959
24960 # Break up conftest.undefs because some shells have a limit on the size
24961 # of here documents, and old seds have small limits too (100 cmds).
24962 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24963 rm -f conftest.tail
24964 while grep . conftest.undefs >/dev/null
24965 do
24966   # Write a limited-size here document to $tmp/undefs.sed.
24967   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24968   # Speed up: don't consider the non `#undef'
24969   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24970   # Work around the forget-to-reset-the-flag bug.
24971   echo 't clr' >>$CONFIG_STATUS
24972   echo ': clr' >>$CONFIG_STATUS
24973   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24974   echo 'CEOF
24975   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24976   rm -f $tmp/in
24977   mv $tmp/out $tmp/in
24978 ' >>$CONFIG_STATUS
24979   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24980   rm -f conftest.undefs
24981   mv conftest.tail conftest.undefs
24982 done
24983 rm -f conftest.undefs
24984
24985 cat >>$CONFIG_STATUS <<\_ACEOF
24986   # Let's still pretend it is `configure' which instantiates (i.e., don't
24987   # use $as_me), people would be surprised to read:
24988   #    /* config.h.  Generated by config.status.  */
24989   if test x"$ac_file" = x-; then
24990     echo "/* Generated by configure.  */" >$tmp/config.h
24991   else
24992     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24993   fi
24994   cat $tmp/in >>$tmp/config.h
24995   rm -f $tmp/in
24996   if test x"$ac_file" != x-; then
24997     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24998       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24999 echo "$as_me: $ac_file is unchanged" >&6;}
25000     else
25001       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25003          X"$ac_file" : 'X\(//\)[^/]' \| \
25004          X"$ac_file" : 'X\(//\)$' \| \
25005          X"$ac_file" : 'X\(/\)' \| \
25006          .     : '\(.\)' 2>/dev/null ||
25007 echo X"$ac_file" |
25008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25009           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25010           /^X\(\/\/\)$/{ s//\1/; q; }
25011           /^X\(\/\).*/{ s//\1/; q; }
25012           s/.*/./; q'`
25013       { if $as_mkdir_p; then
25014     mkdir -p "$ac_dir"
25015   else
25016     as_dir="$ac_dir"
25017     as_dirs=
25018     while test ! -d "$as_dir"; do
25019       as_dirs="$as_dir $as_dirs"
25020       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25022          X"$as_dir" : 'X\(//\)[^/]' \| \
25023          X"$as_dir" : 'X\(//\)$' \| \
25024          X"$as_dir" : 'X\(/\)' \| \
25025          .     : '\(.\)' 2>/dev/null ||
25026 echo X"$as_dir" |
25027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25029           /^X\(\/\/\)$/{ s//\1/; q; }
25030           /^X\(\/\).*/{ s//\1/; q; }
25031           s/.*/./; q'`
25032     done
25033     test ! -n "$as_dirs" || mkdir $as_dirs
25034   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25036    { (exit 1); exit 1; }; }; }
25037
25038       rm -f $ac_file
25039       mv $tmp/config.h $ac_file
25040     fi
25041   else
25042     cat $tmp/config.h
25043     rm -f $tmp/config.h
25044   fi
25045 # Compute $ac_file's index in $config_headers.
25046 _am_stamp_count=1
25047 for _am_header in $config_headers :; do
25048   case $_am_header in
25049     $ac_file | $ac_file:* )
25050       break ;;
25051     * )
25052       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25053   esac
25054 done
25055 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25056 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25057          X$ac_file : 'X\(//\)[^/]' \| \
25058          X$ac_file : 'X\(//\)$' \| \
25059          X$ac_file : 'X\(/\)' \| \
25060          .     : '\(.\)' 2>/dev/null ||
25061 echo X$ac_file |
25062     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25063           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25064           /^X\(\/\/\)$/{ s//\1/; q; }
25065           /^X\(\/\).*/{ s//\1/; q; }
25066           s/.*/./; q'`/stamp-h$_am_stamp_count
25067 done
25068 _ACEOF
25069 cat >>$CONFIG_STATUS <<\_ACEOF
25070
25071 #
25072 # CONFIG_COMMANDS section.
25073 #
25074 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25075   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25076   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25077   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25078 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25079          X"$ac_dest" : 'X\(//\)[^/]' \| \
25080          X"$ac_dest" : 'X\(//\)$' \| \
25081          X"$ac_dest" : 'X\(/\)' \| \
25082          .     : '\(.\)' 2>/dev/null ||
25083 echo X"$ac_dest" |
25084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25085           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25086           /^X\(\/\/\)$/{ s//\1/; q; }
25087           /^X\(\/\).*/{ s//\1/; q; }
25088           s/.*/./; q'`
25089   { if $as_mkdir_p; then
25090     mkdir -p "$ac_dir"
25091   else
25092     as_dir="$ac_dir"
25093     as_dirs=
25094     while test ! -d "$as_dir"; do
25095       as_dirs="$as_dir $as_dirs"
25096       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25098          X"$as_dir" : 'X\(//\)[^/]' \| \
25099          X"$as_dir" : 'X\(//\)$' \| \
25100          X"$as_dir" : 'X\(/\)' \| \
25101          .     : '\(.\)' 2>/dev/null ||
25102 echo X"$as_dir" |
25103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25104           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25105           /^X\(\/\/\)$/{ s//\1/; q; }
25106           /^X\(\/\).*/{ s//\1/; q; }
25107           s/.*/./; q'`
25108     done
25109     test ! -n "$as_dirs" || mkdir $as_dirs
25110   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25111 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25112    { (exit 1); exit 1; }; }; }
25113
25114   ac_builddir=.
25115
25116 if test "$ac_dir" != .; then
25117   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25118   # A "../" for each directory in $ac_dir_suffix.
25119   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25120 else
25121   ac_dir_suffix= ac_top_builddir=
25122 fi
25123
25124 case $srcdir in
25125   .)  # No --srcdir option.  We are building in place.
25126     ac_srcdir=.
25127     if test -z "$ac_top_builddir"; then
25128        ac_top_srcdir=.
25129     else
25130        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25131     fi ;;
25132   [\\/]* | ?:[\\/]* )  # Absolute path.
25133     ac_srcdir=$srcdir$ac_dir_suffix;
25134     ac_top_srcdir=$srcdir ;;
25135   *) # Relative path.
25136     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25137     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25138 esac
25139
25140 # Do not use `cd foo && pwd` to compute absolute paths, because
25141 # the directories may not exist.
25142 case `pwd` in
25143 .) ac_abs_builddir="$ac_dir";;
25144 *)
25145   case "$ac_dir" in
25146   .) ac_abs_builddir=`pwd`;;
25147   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25148   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25149   esac;;
25150 esac
25151 case $ac_abs_builddir in
25152 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25153 *)
25154   case ${ac_top_builddir}. in
25155   .) ac_abs_top_builddir=$ac_abs_builddir;;
25156   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25157   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25158   esac;;
25159 esac
25160 case $ac_abs_builddir in
25161 .) ac_abs_srcdir=$ac_srcdir;;
25162 *)
25163   case $ac_srcdir in
25164   .) ac_abs_srcdir=$ac_abs_builddir;;
25165   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25166   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25167   esac;;
25168 esac
25169 case $ac_abs_builddir in
25170 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25171 *)
25172   case $ac_top_srcdir in
25173   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25174   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25175   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25176   esac;;
25177 esac
25178
25179
25180   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25181 echo "$as_me: executing $ac_dest commands" >&6;}
25182   case $ac_dest in
25183     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25184   # Strip MF so we end up with the name of the file.
25185   mf=`echo "$mf" | sed -e 's/:.*$//'`
25186   # Check whether this is an Automake generated Makefile or not.
25187   # We used to match only the files named `Makefile.in', but
25188   # some people rename them; so instead we look at the file content.
25189   # Grep'ing the first line is not enough: some people post-process
25190   # each Makefile.in and add a new line on top of each file to say so.
25191   # So let's grep whole file.
25192   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25193     dirpart=`(dirname "$mf") 2>/dev/null ||
25194 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25195          X"$mf" : 'X\(//\)[^/]' \| \
25196          X"$mf" : 'X\(//\)$' \| \
25197          X"$mf" : 'X\(/\)' \| \
25198          .     : '\(.\)' 2>/dev/null ||
25199 echo X"$mf" |
25200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25201           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25202           /^X\(\/\/\)$/{ s//\1/; q; }
25203           /^X\(\/\).*/{ s//\1/; q; }
25204           s/.*/./; q'`
25205   else
25206     continue
25207   fi
25208   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25209   # Extract the definition of DEP_FILES from the Makefile without
25210   # running `make'.
25211   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25212   test -z "$DEPDIR" && continue
25213   # When using ansi2knr, U may be empty or an underscore; expand it
25214   U=`sed -n 's/^U = //p' < "$mf"`
25215   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25216   # We invoke sed twice because it is the simplest approach to
25217   # changing $(DEPDIR) to its actual value in the expansion.
25218   for file in `sed -n '
25219     /^DEP_FILES = .*\\\\$/ {
25220       s/^DEP_FILES = //
25221       :loop
25222         s/\\\\$//
25223         p
25224         n
25225         /\\\\$/ b loop
25226       p
25227     }
25228     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25229        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25230     # Make sure the directory exists.
25231     test -f "$dirpart/$file" && continue
25232     fdir=`(dirname "$file") 2>/dev/null ||
25233 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25234          X"$file" : 'X\(//\)[^/]' \| \
25235          X"$file" : 'X\(//\)$' \| \
25236          X"$file" : 'X\(/\)' \| \
25237          .     : '\(.\)' 2>/dev/null ||
25238 echo X"$file" |
25239     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25240           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25241           /^X\(\/\/\)$/{ s//\1/; q; }
25242           /^X\(\/\).*/{ s//\1/; q; }
25243           s/.*/./; q'`
25244     { if $as_mkdir_p; then
25245     mkdir -p $dirpart/$fdir
25246   else
25247     as_dir=$dirpart/$fdir
25248     as_dirs=
25249     while test ! -d "$as_dir"; do
25250       as_dirs="$as_dir $as_dirs"
25251       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25253          X"$as_dir" : 'X\(//\)[^/]' \| \
25254          X"$as_dir" : 'X\(//\)$' \| \
25255          X"$as_dir" : 'X\(/\)' \| \
25256          .     : '\(.\)' 2>/dev/null ||
25257 echo X"$as_dir" |
25258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25259           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25260           /^X\(\/\/\)$/{ s//\1/; q; }
25261           /^X\(\/\).*/{ s//\1/; q; }
25262           s/.*/./; q'`
25263     done
25264     test ! -n "$as_dirs" || mkdir $as_dirs
25265   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25266 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25267    { (exit 1); exit 1; }; }; }
25268
25269     # echo "creating $dirpart/$file"
25270     echo '# dummy' > "$dirpart/$file"
25271   done
25272 done
25273  ;;
25274   esac
25275 done
25276 _ACEOF
25277
25278 cat >>$CONFIG_STATUS <<\_ACEOF
25279
25280 { (exit 0); exit 0; }
25281 _ACEOF
25282 chmod +x $CONFIG_STATUS
25283 ac_clean_files=$ac_clean_files_save
25284
25285
25286 # configure is writing to config.log, and then calls config.status.
25287 # config.status does its own redirection, appending to config.log.
25288 # Unfortunately, on DOS this fails, as config.log is still kept open
25289 # by configure, so config.status won't be able to write to it; its
25290 # output is simply discarded.  So we exec the FD to /dev/null,
25291 # effectively closing config.log, so it can be properly (re)opened and
25292 # appended to by config.status.  When coming back to configure, we
25293 # need to make the FD available again.
25294 if test "$no_create" != yes; then
25295   ac_cs_success=:
25296   ac_config_status_args=
25297   test "$silent" = yes &&
25298     ac_config_status_args="$ac_config_status_args --quiet"
25299   exec 5>/dev/null
25300   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25301   exec 5>>config.log
25302   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25303   # would make configure fail if this is the last instruction.
25304   $ac_cs_success || { (exit 1); exit 1; }
25305 fi
25306
25307
25308 echo "
25309
25310 Configuration of package \`${PACKAGE}' on $gras_arch_name (=$gras_arch):
25311
25312         Compiler:       ${CC}
25313
25314         CFlags:         ${CFLAGS}
25315         LDFlags:        ${LDFLAGS}
25316 "
25317
25318 exit 0;