Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Borland uses the thread implementation of the contextes
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.143 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for simgrid 3.1.1-cvs.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.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 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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='simgrid'
426 PACKAGE_TARNAME='simgrid'
427 PACKAGE_VERSION='3.1.1-cvs'
428 PACKAGE_STRING='simgrid 3.1.1-cvs'
429 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
430
431 ac_unique_file="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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS PTH_STACK_GROWTH pth_skaddr_makecontext pth_sksize_makecontext USE_SIMIX_TRUE USE_SIMIX_FALSE HAVE_SDP_TRUE HAVE_SDP_FALSE SIMGRID_DEP AM_CFLAGS GRAS_DEP GRAMINE_MODE_TRUE GRAMINE_MODE_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LD_DYNAMIC_FLAGS abs_builddir abs_srcdir abs_top_builddir abs_top_srcdir BASH WARNING LEX LEXLIB LEX_OUTPUT_ROOT FLEXML HAVE_FLEXML_TRUE HAVE_FLEXML_FALSE DOXYGEN ADDR2LINE ac_configure_args MD5SUM build_id 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 simgrid 3.1.1-cvs 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 simgrid 3.1.1-cvs:";;
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-simix          Use the new SimIX module (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
1045                           use compiler warnings (default=no, unless in
1046                           maintainer mode)
1047   --disable-compile-optimizations
1048                           use compiler optimizations (default=yes, unless if
1049                           CFLAGS is explicitly set)
1050
1051 Optional Packages:
1052   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1055   --with-pic              try to use only PIC/non-PIC objects [default=use
1056                           both]
1057   --with-tags[=TAGS]
1058                           include additional configurations [automatic]
1059   --with-pthread   Use pthread instead of ucontext.
1060   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1061
1062 Some influential environment variables:
1063   CC          C compiler command
1064   CFLAGS      C compiler flags
1065   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1066               nonstandard directory <lib dir>
1067   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1068               headers in a nonstandard directory <include dir>
1069   CPP         C preprocessor
1070   CXX         C++ compiler command
1071   CXXFLAGS    C++ compiler flags
1072   CXXCPP      C++ preprocessor
1073   F77         Fortran 77 compiler command
1074   FFLAGS      Fortran 77 compiler flags
1075
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1078
1079 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1080 _ACEOF
1081 fi
1082
1083 if test "$ac_init_help" = "recursive"; then
1084   # If there are subdirs, report their specific --help.
1085   ac_popdir=`pwd`
1086   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1087     test -d $ac_dir || continue
1088     ac_builddir=.
1089
1090 if test "$ac_dir" != .; then
1091   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1092   # A "../" for each directory in $ac_dir_suffix.
1093   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1094 else
1095   ac_dir_suffix= ac_top_builddir=
1096 fi
1097
1098 case $srcdir in
1099   .)  # No --srcdir option.  We are building in place.
1100     ac_srcdir=.
1101     if test -z "$ac_top_builddir"; then
1102        ac_top_srcdir=.
1103     else
1104        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1105     fi ;;
1106   [\\/]* | ?:[\\/]* )  # Absolute path.
1107     ac_srcdir=$srcdir$ac_dir_suffix;
1108     ac_top_srcdir=$srcdir ;;
1109   *) # Relative path.
1110     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1111     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1112 esac
1113
1114 # Do not use `cd foo && pwd` to compute absolute paths, because
1115 # the directories may not exist.
1116 case `pwd` in
1117 .) ac_abs_builddir="$ac_dir";;
1118 *)
1119   case "$ac_dir" in
1120   .) ac_abs_builddir=`pwd`;;
1121   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1122   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1123   esac;;
1124 esac
1125 case $ac_abs_builddir in
1126 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *)
1128   case ${ac_top_builddir}. in
1129   .) ac_abs_top_builddir=$ac_abs_builddir;;
1130   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1131   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1132   esac;;
1133 esac
1134 case $ac_abs_builddir in
1135 .) ac_abs_srcdir=$ac_srcdir;;
1136 *)
1137   case $ac_srcdir in
1138   .) ac_abs_srcdir=$ac_abs_builddir;;
1139   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1140   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1141   esac;;
1142 esac
1143 case $ac_abs_builddir in
1144 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *)
1146   case $ac_top_srcdir in
1147   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1148   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1149   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150   esac;;
1151 esac
1152
1153     cd $ac_dir
1154     # Check for guested configure; otherwise get Cygnus style configure.
1155     if test -f $ac_srcdir/configure.gnu; then
1156       echo
1157       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1158     elif test -f $ac_srcdir/configure; then
1159       echo
1160       $SHELL $ac_srcdir/configure  --help=recursive
1161     elif test -f $ac_srcdir/configure.ac ||
1162            test -f $ac_srcdir/configure.in; then
1163       echo
1164       $ac_configure --help
1165     else
1166       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167     fi
1168     cd "$ac_popdir"
1169   done
1170 fi
1171
1172 test -n "$ac_init_help" && exit 0
1173 if $ac_init_version; then
1174   cat <<\_ACEOF
1175 simgrid configure 3.1.1-cvs
1176 generated by GNU Autoconf 2.59
1177
1178 Copyright (C) 2003 Free Software Foundation, Inc.
1179 This configure script is free software; the Free Software Foundation
1180 gives unlimited permission to copy, distribute and modify it.
1181 _ACEOF
1182   exit 0
1183 fi
1184 exec 5>config.log
1185 cat >&5 <<_ACEOF
1186 This file contains any messages produced by compilers while
1187 running configure, to aid debugging if configure makes a mistake.
1188
1189 It was created by simgrid $as_me 3.1.1-cvs, which was
1190 generated by GNU Autoconf 2.59.  Invocation command line was
1191
1192   $ $0 $@
1193
1194 _ACEOF
1195 {
1196 cat <<_ASUNAME
1197 ## --------- ##
1198 ## Platform. ##
1199 ## --------- ##
1200
1201 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1209
1210 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1211 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1212 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1214 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1215 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1216 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1217
1218 _ASUNAME
1219
1220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221 for as_dir in $PATH
1222 do
1223   IFS=$as_save_IFS
1224   test -z "$as_dir" && as_dir=.
1225   echo "PATH: $as_dir"
1226 done
1227
1228 } >&5
1229
1230 cat >&5 <<_ACEOF
1231
1232
1233 ## ----------- ##
1234 ## Core tests. ##
1235 ## ----------- ##
1236
1237 _ACEOF
1238
1239
1240 # Keep a trace of the command line.
1241 # Strip out --no-create and --no-recursion so they do not pile up.
1242 # Strip out --silent because we don't want to record it for future runs.
1243 # Also quote any args containing shell meta-characters.
1244 # Make two passes to allow for proper duplicate-argument suppression.
1245 ac_configure_args=
1246 ac_configure_args0=
1247 ac_configure_args1=
1248 ac_sep=
1249 ac_must_keep_next=false
1250 for ac_pass in 1 2
1251 do
1252   for ac_arg
1253   do
1254     case $ac_arg in
1255     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257     | -silent | --silent | --silen | --sile | --sil)
1258       continue ;;
1259     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261     esac
1262     case $ac_pass in
1263     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264     2)
1265       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266       if test $ac_must_keep_next = true; then
1267         ac_must_keep_next=false # Got value, back to normal.
1268       else
1269         case $ac_arg in
1270           *=* | --config-cache | -C | -disable-* | --disable-* \
1271           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273           | -with-* | --with-* | -without-* | --without-* | --x)
1274             case "$ac_configure_args0 " in
1275               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276             esac
1277             ;;
1278           -* ) ac_must_keep_next=true ;;
1279         esac
1280       fi
1281       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282       # Get rid of the leading space.
1283       ac_sep=" "
1284       ;;
1285     esac
1286   done
1287 done
1288 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290
1291 # When interrupted or exit'd, cleanup temporary files, and complete
1292 # config.log.  We remove comments because anyway the quotes in there
1293 # would cause problems or look ugly.
1294 # WARNING: Be sure not to use single quotes in there, as some shells,
1295 # such as our DU 5.0 friend, will then `close' the trap.
1296 trap 'exit_status=$?
1297   # Save into config.log some information that might help in debugging.
1298   {
1299     echo
1300
1301     cat <<\_ASBOX
1302 ## ---------------- ##
1303 ## Cache variables. ##
1304 ## ---------------- ##
1305 _ASBOX
1306     echo
1307     # The following way of writing the cache mishandles newlines in values,
1308 {
1309   (set) 2>&1 |
1310     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311     *ac_space=\ *)
1312       sed -n \
1313         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1315       ;;
1316     *)
1317       sed -n \
1318         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319       ;;
1320     esac;
1321 }
1322     echo
1323
1324     cat <<\_ASBOX
1325 ## ----------------- ##
1326 ## Output variables. ##
1327 ## ----------------- ##
1328 _ASBOX
1329     echo
1330     for ac_var in $ac_subst_vars
1331     do
1332       eval ac_val=$`echo $ac_var`
1333       echo "$ac_var='"'"'$ac_val'"'"'"
1334     done | sort
1335     echo
1336
1337     if test -n "$ac_subst_files"; then
1338       cat <<\_ASBOX
1339 ## ------------- ##
1340 ## Output files. ##
1341 ## ------------- ##
1342 _ASBOX
1343       echo
1344       for ac_var in $ac_subst_files
1345       do
1346         eval ac_val=$`echo $ac_var`
1347         echo "$ac_var='"'"'$ac_val'"'"'"
1348       done | sort
1349       echo
1350     fi
1351
1352     if test -s confdefs.h; then
1353       cat <<\_ASBOX
1354 ## ----------- ##
1355 ## confdefs.h. ##
1356 ## ----------- ##
1357 _ASBOX
1358       echo
1359       sed "/^$/d" confdefs.h | sort
1360       echo
1361     fi
1362     test "$ac_signal" != 0 &&
1363       echo "$as_me: caught signal $ac_signal"
1364     echo "$as_me: exit $exit_status"
1365   } >&5
1366   rm -f core *.core &&
1367   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368     exit $exit_status
1369      ' 0
1370 for ac_signal in 1 2 13 15; do
1371   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372 done
1373 ac_signal=0
1374
1375 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1376 rm -rf conftest* confdefs.h
1377 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378 echo >confdefs.h
1379
1380 # Predefined preprocessor variables.
1381
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_NAME "$PACKAGE_NAME"
1384 _ACEOF
1385
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_STRING "$PACKAGE_STRING"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404 _ACEOF
1405
1406
1407 # Let the site file select an alternate cache file if it wants to.
1408 # Prefer explicitly selected file to automatically selected ones.
1409 if test -z "$CONFIG_SITE"; then
1410   if test "x$prefix" != xNONE; then
1411     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412   else
1413     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414   fi
1415 fi
1416 for ac_site_file in $CONFIG_SITE; do
1417   if test -r "$ac_site_file"; then
1418     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419 echo "$as_me: loading site script $ac_site_file" >&6;}
1420     sed 's/^/| /' "$ac_site_file" >&5
1421     . "$ac_site_file"
1422   fi
1423 done
1424
1425 if test -r "$cache_file"; then
1426   # Some versions of bash will fail to source /dev/null (special
1427   # files actually), so we avoid doing that.
1428   if test -f "$cache_file"; then
1429     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430 echo "$as_me: loading cache $cache_file" >&6;}
1431     case $cache_file in
1432       [\\/]* | ?:[\\/]* ) . $cache_file;;
1433       *)                      . ./$cache_file;;
1434     esac
1435   fi
1436 else
1437   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438 echo "$as_me: creating cache $cache_file" >&6;}
1439   >$cache_file
1440 fi
1441
1442 # Check that the precious variables saved in the cache have kept the same
1443 # value.
1444 ac_cache_corrupted=false
1445 for ac_var in `(set) 2>&1 |
1446                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1447   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448   eval ac_new_set=\$ac_env_${ac_var}_set
1449   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450   eval ac_new_val="\$ac_env_${ac_var}_value"
1451   case $ac_old_set,$ac_new_set in
1452     set,)
1453       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455       ac_cache_corrupted=: ;;
1456     ,set)
1457       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459       ac_cache_corrupted=: ;;
1460     ,);;
1461     *)
1462       if test "x$ac_old_val" != "x$ac_new_val"; then
1463         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1464 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1465         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1466 echo "$as_me:   former value:  $ac_old_val" >&2;}
1467         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1468 echo "$as_me:   current value: $ac_new_val" >&2;}
1469         ac_cache_corrupted=:
1470       fi;;
1471   esac
1472   # Pass precious variables to config.status.
1473   if test "$ac_new_set" = set; then
1474     case $ac_new_val in
1475     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477     *) ac_arg=$ac_var=$ac_new_val ;;
1478     esac
1479     case " $ac_configure_args " in
1480       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1481       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482     esac
1483   fi
1484 done
1485 if $ac_cache_corrupted; then
1486   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490    { (exit 1); exit 1; }; }
1491 fi
1492
1493 ac_ext=c
1494 ac_cpp='$CPP $CPPFLAGS'
1495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
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           ac_config_headers="$ac_config_headers src/gras_config.h"
1527
1528 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1529
1530
1531 ac_aux_dir=
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1533   if test -f $ac_dir/install-sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install-sh -c"
1536     break
1537   elif test -f $ac_dir/install.sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install.sh -c"
1540     break
1541   elif test -f $ac_dir/shtool; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/shtool install -c"
1544     break
1545   fi
1546 done
1547 if test -z "$ac_aux_dir"; then
1548   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550    { (exit 1); exit 1; }; }
1551 fi
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555
1556 # Make sure we can run config.sub.
1557 $ac_config_sub sun4 >/dev/null 2>&1 ||
1558   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1559 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1560    { (exit 1); exit 1; }; }
1561
1562 echo "$as_me:$LINENO: checking build system type" >&5
1563 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1564 if test "${ac_cv_build+set}" = set; then
1565   echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567   ac_cv_build_alias=$build_alias
1568 test -z "$ac_cv_build_alias" &&
1569   ac_cv_build_alias=`$ac_config_guess`
1570 test -z "$ac_cv_build_alias" &&
1571   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1572 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1573    { (exit 1); exit 1; }; }
1574 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1575   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1576 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1577    { (exit 1); exit 1; }; }
1578
1579 fi
1580 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1581 echo "${ECHO_T}$ac_cv_build" >&6
1582 build=$ac_cv_build
1583 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
1587
1588 echo "$as_me:$LINENO: checking host system type" >&5
1589 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1590 if test "${ac_cv_host+set}" = set; then
1591   echo $ECHO_N "(cached) $ECHO_C" >&6
1592 else
1593   ac_cv_host_alias=$host_alias
1594 test -z "$ac_cv_host_alias" &&
1595   ac_cv_host_alias=$ac_cv_build_alias
1596 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1597   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1598 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1599    { (exit 1); exit 1; }; }
1600
1601 fi
1602 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1603 echo "${ECHO_T}$ac_cv_host" >&6
1604 host=$ac_cv_host
1605 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610 echo "$as_me:$LINENO: checking target system type" >&5
1611 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1612 if test "${ac_cv_target+set}" = set; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   ac_cv_target_alias=$target_alias
1616 test "x$ac_cv_target_alias" = "x" &&
1617   ac_cv_target_alias=$ac_cv_host_alias
1618 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1619   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1620 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1621    { (exit 1); exit 1; }; }
1622
1623 fi
1624 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1625 echo "${ECHO_T}$ac_cv_target" >&6
1626 target=$ac_cv_target
1627 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632 # The aliases save the names the user supplied, while $host etc.
1633 # will get canonicalized.
1634 test -n "$target_alias" &&
1635   test "$program_prefix$program_suffix$program_transform_name" = \
1636     NONENONEs,x,x, &&
1637   program_prefix=${target_alias}-
1638 ac_ext=c
1639 ac_cpp='$CPP $CPPFLAGS'
1640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1643
1644
1645 am__api_version="1.9"
1646 # Find a good install program.  We prefer a C program (faster),
1647 # so one script is as good as another.  But avoid the broken or
1648 # incompatible versions:
1649 # SysV /etc/install, /usr/sbin/install
1650 # SunOS /usr/etc/install
1651 # IRIX /sbin/install
1652 # AIX /bin/install
1653 # AmigaOS /C/install, which installs bootblocks on floppy discs
1654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1657 # OS/2's system install, which has a completely different semantic
1658 # ./install, which can be erroneously created by make from ./install.sh.
1659 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1660 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1661 if test -z "$INSTALL"; then
1662 if test "${ac_cv_path_install+set}" = set; then
1663   echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668   IFS=$as_save_IFS
1669   test -z "$as_dir" && as_dir=.
1670   # Account for people who put trailing slashes in PATH elements.
1671 case $as_dir/ in
1672   ./ | .// | /cC/* | \
1673   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1674   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1675   /usr/ucb/* ) ;;
1676   *)
1677     # OSF1 and SCO ODT 3.0 have their own names for install.
1678     # Don't use installbsd from OSF since it installs stuff as root
1679     # by default.
1680     for ac_prog in ginstall scoinst install; do
1681       for ac_exec_ext in '' $ac_executable_extensions; do
1682         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1683           if test $ac_prog = install &&
1684             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1685             # AIX install.  It has an incompatible calling convention.
1686             :
1687           elif test $ac_prog = install &&
1688             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1689             # program-specific install script used by HP pwplus--don't use.
1690             :
1691           else
1692             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1693             break 3
1694           fi
1695         fi
1696       done
1697     done
1698     ;;
1699 esac
1700 done
1701
1702
1703 fi
1704   if test "${ac_cv_path_install+set}" = set; then
1705     INSTALL=$ac_cv_path_install
1706   else
1707     # As a last resort, use the slow shell script.  We don't cache a
1708     # path for INSTALL within a source directory, because that will
1709     # break other packages using the cache if that directory is
1710     # removed, or if the path is relative.
1711     INSTALL=$ac_install_sh
1712   fi
1713 fi
1714 echo "$as_me:$LINENO: result: $INSTALL" >&5
1715 echo "${ECHO_T}$INSTALL" >&6
1716
1717 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1718 # It thinks the first close brace ends the variable substitution.
1719 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1720
1721 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1722
1723 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1724
1725 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1726 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1727 # Just in case
1728 sleep 1
1729 echo timestamp > conftest.file
1730 # Do `set' in a subshell so we don't clobber the current shell's
1731 # arguments.  Must try -L first in case configure is actually a
1732 # symlink; some systems play weird games with the mod time of symlinks
1733 # (eg FreeBSD returns the mod time of the symlink's containing
1734 # directory).
1735 if (
1736    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1737    if test "$*" = "X"; then
1738       # -L didn't work.
1739       set X `ls -t $srcdir/configure conftest.file`
1740    fi
1741    rm -f conftest.file
1742    if test "$*" != "X $srcdir/configure conftest.file" \
1743       && test "$*" != "X conftest.file $srcdir/configure"; then
1744
1745       # If neither matched, then we have a broken ls.  This can happen
1746       # if, for instance, CONFIG_SHELL is bash and it inherits a
1747       # broken ls alias from the environment.  This has actually
1748       # happened.  Such a system could not be considered "sane".
1749       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1750 alias in your environment" >&5
1751 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1752 alias in your environment" >&2;}
1753    { (exit 1); exit 1; }; }
1754    fi
1755
1756    test "$2" = conftest.file
1757    )
1758 then
1759    # Ok.
1760    :
1761 else
1762    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1763 Check your system clock" >&5
1764 echo "$as_me: error: newly created file is older than distributed files!
1765 Check your system clock" >&2;}
1766    { (exit 1); exit 1; }; }
1767 fi
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770 test "$program_prefix" != NONE &&
1771   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1772 # Use a double $ so make ignores it.
1773 test "$program_suffix" != NONE &&
1774   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1775 # Double any \ or $.  echo might interpret backslashes.
1776 # By default was `s,x,x', remove it if useless.
1777 cat <<\_ACEOF >conftest.sed
1778 s/[\\$]/&&/g;s/;s,x,x,$//
1779 _ACEOF
1780 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1781 rm conftest.sed
1782
1783 # expand $ac_aux_dir to an absolute path
1784 am_aux_dir=`cd $ac_aux_dir && pwd`
1785
1786 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1787 # Use eval to expand $SHELL
1788 if eval "$MISSING --run true"; then
1789   am_missing_run="$MISSING --run "
1790 else
1791   am_missing_run=
1792   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1793 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1794 fi
1795
1796 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1797   # We used to keeping the `.' as first argument, in order to
1798   # allow $(mkdir_p) to be used without argument.  As in
1799   #   $(mkdir_p) $(somedir)
1800   # where $(somedir) is conditionally defined.  However this is wrong
1801   # for two reasons:
1802   #  1. if the package is installed by a user who cannot write `.'
1803   #     make install will fail,
1804   #  2. the above comment should most certainly read
1805   #     $(mkdir_p) $(DESTDIR)$(somedir)
1806   #     so it does not work when $(somedir) is undefined and
1807   #     $(DESTDIR) is not.
1808   #  To support the latter case, we have to write
1809   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1810   #  so the `.' trick is pointless.
1811   mkdir_p='mkdir -p --'
1812 else
1813   # On NextStep and OpenStep, the `mkdir' command does not
1814   # recognize any option.  It will interpret all options as
1815   # directories to create, and then abort because `.' already
1816   # exists.
1817   for d in ./-p ./--version;
1818   do
1819     test -d $d && rmdir $d
1820   done
1821   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1822   if test -f "$ac_aux_dir/mkinstalldirs"; then
1823     mkdir_p='$(mkinstalldirs)'
1824   else
1825     mkdir_p='$(install_sh) -d'
1826   fi
1827 fi
1828
1829 for ac_prog in gawk mawk nawk awk
1830 do
1831   # Extract the first word of "$ac_prog", so it can be a program name with args.
1832 set dummy $ac_prog; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_AWK+set}" = set; then
1836   echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838   if test -n "$AWK"; then
1839   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844   IFS=$as_save_IFS
1845   test -z "$as_dir" && as_dir=.
1846   for ac_exec_ext in '' $ac_executable_extensions; do
1847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848     ac_cv_prog_AWK="$ac_prog"
1849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850     break 2
1851   fi
1852 done
1853 done
1854
1855 fi
1856 fi
1857 AWK=$ac_cv_prog_AWK
1858 if test -n "$AWK"; then
1859   echo "$as_me:$LINENO: result: $AWK" >&5
1860 echo "${ECHO_T}$AWK" >&6
1861 else
1862   echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1864 fi
1865
1866   test -n "$AWK" && break
1867 done
1868
1869 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1870 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1871 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1872 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   cat >conftest.make <<\_ACEOF
1876 all:
1877         @echo 'ac_maketemp="$(MAKE)"'
1878 _ACEOF
1879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1880 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1881 if test -n "$ac_maketemp"; then
1882   eval ac_cv_prog_make_${ac_make}_set=yes
1883 else
1884   eval ac_cv_prog_make_${ac_make}_set=no
1885 fi
1886 rm -f conftest.make
1887 fi
1888 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1889   echo "$as_me:$LINENO: result: yes" >&5
1890 echo "${ECHO_T}yes" >&6
1891   SET_MAKE=
1892 else
1893   echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895   SET_MAKE="MAKE=${MAKE-make}"
1896 fi
1897
1898 rm -rf .tst 2>/dev/null
1899 mkdir .tst 2>/dev/null
1900 if test -d .tst; then
1901   am__leading_dot=.
1902 else
1903   am__leading_dot=_
1904 fi
1905 rmdir .tst 2>/dev/null
1906
1907 # test to see if srcdir already configured
1908 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1909    test -f $srcdir/config.status; then
1910   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1911 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1912    { (exit 1); exit 1; }; }
1913 fi
1914
1915 # test whether we have cygpath
1916 if test -z "$CYGPATH_W"; then
1917   if (cygpath --version) >/dev/null 2>/dev/null; then
1918     CYGPATH_W='cygpath -w'
1919   else
1920     CYGPATH_W=echo
1921   fi
1922 fi
1923
1924
1925 # Define the identity of the package.
1926  PACKAGE='simgrid'
1927  VERSION='3.1.1-cvs'
1928
1929
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE "$PACKAGE"
1932 _ACEOF
1933
1934
1935 cat >>confdefs.h <<_ACEOF
1936 #define VERSION "$VERSION"
1937 _ACEOF
1938
1939 # Some tools Automake needs.
1940
1941 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1942
1943
1944 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1945
1946
1947 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1948
1949
1950 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1951
1952
1953 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1954
1955 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1956
1957 # Installed binaries are usually stripped using `strip' when the user
1958 # run `make install-strip'.  However `strip' might not be the right
1959 # tool to use in cross-compilation environments, therefore Automake
1960 # will honor the `STRIP' environment variable to overrule this program.
1961 if test "$cross_compiling" != no; then
1962   if test -n "$ac_tool_prefix"; then
1963   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}strip; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_STRIP+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$STRIP"; then
1971   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976   IFS=$as_save_IFS
1977   test -z "$as_dir" && as_dir=.
1978   for ac_exec_ext in '' $ac_executable_extensions; do
1979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982     break 2
1983   fi
1984 done
1985 done
1986
1987 fi
1988 fi
1989 STRIP=$ac_cv_prog_STRIP
1990 if test -n "$STRIP"; then
1991   echo "$as_me:$LINENO: result: $STRIP" >&5
1992 echo "${ECHO_T}$STRIP" >&6
1993 else
1994   echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1996 fi
1997
1998 fi
1999 if test -z "$ac_cv_prog_STRIP"; then
2000   ac_ct_STRIP=$STRIP
2001   # Extract the first word of "strip", so it can be a program name with args.
2002 set dummy strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$ac_ct_STRIP"; then
2009   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_ac_ct_STRIP="strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2026 fi
2027 fi
2028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2029 if test -n "$ac_ct_STRIP"; then
2030   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2031 echo "${ECHO_T}$ac_ct_STRIP" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037   STRIP=$ac_ct_STRIP
2038 else
2039   STRIP="$ac_cv_prog_STRIP"
2040 fi
2041
2042 fi
2043 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2044
2045 # We need awk for the "check" target.  The system "awk" is bad on
2046 # some platforms.
2047 # Always define AMTAR for backward compatibility.
2048
2049 AMTAR=${AMTAR-"${am_missing_run}tar"}
2050
2051 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2052
2053
2054
2055
2056
2057 case acmacro in
2058   [\\/]* | ?:[\\/]* ) ac_macro_dir=acmacro         ;;
2059   *)                      ac_macro_dir=$srcdir/acmacro ;;
2060 esac
2061 if test -d "$ac_macro_dir"; then :
2062 else
2063   { { echo "$as_me:$LINENO: error: cannot find macro directory \`acmacro'" >&5
2064 echo "$as_me: error: cannot find macro directory \`acmacro'" >&2;}
2065    { (exit 1); exit 1; }; }
2066 fi
2067
2068 ACLOCAL="$ACLOCAL -I acmacro"
2069
2070
2071 # Check whether --enable-shared or --disable-shared was given.
2072 if test "${enable_shared+set}" = set; then
2073   enableval="$enable_shared"
2074   p=${PACKAGE-default}
2075     case $enableval in
2076     yes) enable_shared=yes ;;
2077     no) enable_shared=no ;;
2078     *)
2079       enable_shared=no
2080       # Look at the argument we got.  We use all the common list separators.
2081       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2082       for pkg in $enableval; do
2083         IFS="$lt_save_ifs"
2084         if test "X$pkg" = "X$p"; then
2085           enable_shared=yes
2086         fi
2087       done
2088       IFS="$lt_save_ifs"
2089       ;;
2090     esac
2091 else
2092   enable_shared=yes
2093 fi;
2094
2095 # Check whether --enable-static or --disable-static was given.
2096 if test "${enable_static+set}" = set; then
2097   enableval="$enable_static"
2098   p=${PACKAGE-default}
2099     case $enableval in
2100     yes) enable_static=yes ;;
2101     no) enable_static=no ;;
2102     *)
2103      enable_static=no
2104       # Look at the argument we got.  We use all the common list separators.
2105       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2106       for pkg in $enableval; do
2107         IFS="$lt_save_ifs"
2108         if test "X$pkg" = "X$p"; then
2109           enable_static=yes
2110         fi
2111       done
2112       IFS="$lt_save_ifs"
2113       ;;
2114     esac
2115 else
2116   enable_static=yes
2117 fi;
2118
2119 # Check whether --enable-fast-install or --disable-fast-install was given.
2120 if test "${enable_fast_install+set}" = set; then
2121   enableval="$enable_fast_install"
2122   p=${PACKAGE-default}
2123     case $enableval in
2124     yes) enable_fast_install=yes ;;
2125     no) enable_fast_install=no ;;
2126     *)
2127       enable_fast_install=no
2128       # Look at the argument we got.  We use all the common list separators.
2129       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2130       for pkg in $enableval; do
2131         IFS="$lt_save_ifs"
2132         if test "X$pkg" = "X$p"; then
2133           enable_fast_install=yes
2134         fi
2135       done
2136       IFS="$lt_save_ifs"
2137       ;;
2138     esac
2139 else
2140   enable_fast_install=yes
2141 fi;
2142
2143 DEPDIR="${am__leading_dot}deps"
2144
2145           ac_config_commands="$ac_config_commands depfiles"
2146
2147
2148 am_make=${MAKE-make}
2149 cat > confinc << 'END'
2150 am__doit:
2151         @echo done
2152 .PHONY: am__doit
2153 END
2154 # If we don't find an include directive, just comment out the code.
2155 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2156 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2157 am__include="#"
2158 am__quote=
2159 _am_result=none
2160 # First try GNU make style include.
2161 echo "include confinc" > confmf
2162 # We grep out `Entering directory' and `Leaving directory'
2163 # messages which can occur if `w' ends up in MAKEFLAGS.
2164 # In particular we don't look at `^make:' because GNU make might
2165 # be invoked under some other name (usually "gmake"), in which
2166 # case it prints its new name instead of `make'.
2167 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2168    am__include=include
2169    am__quote=
2170    _am_result=GNU
2171 fi
2172 # Now try BSD make style include.
2173 if test "$am__include" = "#"; then
2174    echo '.include "confinc"' > confmf
2175    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2176       am__include=.include
2177       am__quote="\""
2178       _am_result=BSD
2179    fi
2180 fi
2181
2182
2183 echo "$as_me:$LINENO: result: $_am_result" >&5
2184 echo "${ECHO_T}$_am_result" >&6
2185 rm -f confinc confmf
2186
2187 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2188 if test "${enable_dependency_tracking+set}" = set; then
2189   enableval="$enable_dependency_tracking"
2190
2191 fi;
2192 if test "x$enable_dependency_tracking" != xno; then
2193   am_depcomp="$ac_aux_dir/depcomp"
2194   AMDEPBACKSLASH='\'
2195 fi
2196
2197
2198 if test "x$enable_dependency_tracking" != xno; then
2199   AMDEP_TRUE=
2200   AMDEP_FALSE='#'
2201 else
2202   AMDEP_TRUE='#'
2203   AMDEP_FALSE=
2204 fi
2205
2206
2207
2208 ac_ext=c
2209 ac_cpp='$CPP $CPPFLAGS'
2210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213 if test -n "$ac_tool_prefix"; then
2214   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2215 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2216 echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218 if test "${ac_cv_prog_CC+set}" = set; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   if test -n "$CC"; then
2222   ac_cv_prog_CC="$CC" # Let the user override the test.
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227   IFS=$as_save_IFS
2228   test -z "$as_dir" && as_dir=.
2229   for ac_exec_ext in '' $ac_executable_extensions; do
2230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233     break 2
2234   fi
2235 done
2236 done
2237
2238 fi
2239 fi
2240 CC=$ac_cv_prog_CC
2241 if test -n "$CC"; then
2242   echo "$as_me:$LINENO: result: $CC" >&5
2243 echo "${ECHO_T}$CC" >&6
2244 else
2245   echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6
2247 fi
2248
2249 fi
2250 if test -z "$ac_cv_prog_CC"; then
2251   ac_ct_CC=$CC
2252   # Extract the first word of "gcc", so it can be a program name with args.
2253 set dummy gcc; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   if test -n "$ac_ct_CC"; then
2260   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265   IFS=$as_save_IFS
2266   test -z "$as_dir" && as_dir=.
2267   for ac_exec_ext in '' $ac_executable_extensions; do
2268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269     ac_cv_prog_ac_ct_CC="gcc"
2270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271     break 2
2272   fi
2273 done
2274 done
2275
2276 fi
2277 fi
2278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279 if test -n "$ac_ct_CC"; then
2280   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2281 echo "${ECHO_T}$ac_ct_CC" >&6
2282 else
2283   echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2285 fi
2286
2287   CC=$ac_ct_CC
2288 else
2289   CC="$ac_cv_prog_CC"
2290 fi
2291
2292 if test -z "$CC"; then
2293   if test -n "$ac_tool_prefix"; then
2294   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2295 set dummy ${ac_tool_prefix}cc; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_CC+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   if test -n "$CC"; then
2302   ac_cv_prog_CC="$CC" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2306 do
2307   IFS=$as_save_IFS
2308   test -z "$as_dir" && as_dir=.
2309   for ac_exec_ext in '' $ac_executable_extensions; do
2310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311     ac_cv_prog_CC="${ac_tool_prefix}cc"
2312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313     break 2
2314   fi
2315 done
2316 done
2317
2318 fi
2319 fi
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322   echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6
2324 else
2325   echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2327 fi
2328
2329 fi
2330 if test -z "$ac_cv_prog_CC"; then
2331   ac_ct_CC=$CC
2332   # Extract the first word of "cc", so it can be a program name with args.
2333 set dummy cc; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   if test -n "$ac_ct_CC"; then
2340   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347   for ac_exec_ext in '' $ac_executable_extensions; do
2348   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349     ac_cv_prog_ac_ct_CC="cc"
2350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351     break 2
2352   fi
2353 done
2354 done
2355
2356 fi
2357 fi
2358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2359 if test -n "$ac_ct_CC"; then
2360   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2361 echo "${ECHO_T}$ac_ct_CC" >&6
2362 else
2363   echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2365 fi
2366
2367   CC=$ac_ct_CC
2368 else
2369   CC="$ac_cv_prog_CC"
2370 fi
2371
2372 fi
2373 if test -z "$CC"; then
2374   # Extract the first word of "cc", so it can be a program name with args.
2375 set dummy cc; ac_word=$2
2376 echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2378 if test "${ac_cv_prog_CC+set}" = set; then
2379   echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381   if test -n "$CC"; then
2382   ac_cv_prog_CC="$CC" # Let the user override the test.
2383 else
2384   ac_prog_rejected=no
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388   IFS=$as_save_IFS
2389   test -z "$as_dir" && as_dir=.
2390   for ac_exec_ext in '' $ac_executable_extensions; do
2391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2392     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2393        ac_prog_rejected=yes
2394        continue
2395      fi
2396     ac_cv_prog_CC="cc"
2397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398     break 2
2399   fi
2400 done
2401 done
2402
2403 if test $ac_prog_rejected = yes; then
2404   # We found a bogon in the path, so make sure we never use it.
2405   set dummy $ac_cv_prog_CC
2406   shift
2407   if test $# != 0; then
2408     # We chose a different compiler from the bogus one.
2409     # However, it has the same basename, so the bogon will be chosen
2410     # first if we set CC to just the basename; use the full file name.
2411     shift
2412     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2413   fi
2414 fi
2415 fi
2416 fi
2417 CC=$ac_cv_prog_CC
2418 if test -n "$CC"; then
2419   echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6
2421 else
2422   echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6
2424 fi
2425
2426 fi
2427 if test -z "$CC"; then
2428   if test -n "$ac_tool_prefix"; then
2429   for ac_prog in cl
2430   do
2431     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2433 echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2435 if test "${ac_cv_prog_CC+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   if test -n "$CC"; then
2439   ac_cv_prog_CC="$CC" # Let the user override the test.
2440 else
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444   IFS=$as_save_IFS
2445   test -z "$as_dir" && as_dir=.
2446   for ac_exec_ext in '' $ac_executable_extensions; do
2447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2448     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450     break 2
2451   fi
2452 done
2453 done
2454
2455 fi
2456 fi
2457 CC=$ac_cv_prog_CC
2458 if test -n "$CC"; then
2459   echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6
2461 else
2462   echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2464 fi
2465
2466     test -n "$CC" && break
2467   done
2468 fi
2469 if test -z "$CC"; then
2470   ac_ct_CC=$CC
2471   for ac_prog in cl
2472 do
2473   # Extract the first word of "$ac_prog", so it can be a program name with args.
2474 set dummy $ac_prog; ac_word=$2
2475 echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   if test -n "$ac_ct_CC"; then
2481   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486   IFS=$as_save_IFS
2487   test -z "$as_dir" && as_dir=.
2488   for ac_exec_ext in '' $ac_executable_extensions; do
2489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490     ac_cv_prog_ac_ct_CC="$ac_prog"
2491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492     break 2
2493   fi
2494 done
2495 done
2496
2497 fi
2498 fi
2499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2500 if test -n "$ac_ct_CC"; then
2501   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2502 echo "${ECHO_T}$ac_ct_CC" >&6
2503 else
2504   echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6
2506 fi
2507
2508   test -n "$ac_ct_CC" && break
2509 done
2510
2511   CC=$ac_ct_CC
2512 fi
2513
2514 fi
2515
2516
2517 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2518 See \`config.log' for more details." >&5
2519 echo "$as_me: error: no acceptable C compiler found in \$PATH
2520 See \`config.log' for more details." >&2;}
2521    { (exit 1); exit 1; }; }
2522
2523 # Provide some information about the compiler.
2524 echo "$as_me:$LINENO:" \
2525      "checking for C compiler version" >&5
2526 ac_compiler=`set X $ac_compile; echo $2`
2527 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2528   (eval $ac_compiler --version </dev/null >&5) 2>&5
2529   ac_status=$?
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); }
2532 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2533   (eval $ac_compiler -v </dev/null >&5) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }
2537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2538   (eval $ac_compiler -V </dev/null >&5) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }
2542
2543 cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 ac_clean_files_save=$ac_clean_files
2559 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2560 # Try to create an executable without -o first, disregard a.out.
2561 # It will help us diagnose broken compilers, and finding out an intuition
2562 # of exeext.
2563 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2564 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2565 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2566 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2567   (eval $ac_link_default) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; then
2571   # Find the output, starting from the most likely.  This scheme is
2572 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2573 # resort.
2574
2575 # Be careful to initialize this variable, since it used to be cached.
2576 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2577 ac_cv_exeext=
2578 # b.out is created by i960 compilers.
2579 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2580 do
2581   test -f "$ac_file" || continue
2582   case $ac_file in
2583     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2584         ;;
2585     conftest.$ac_ext )
2586         # This is the source file.
2587         ;;
2588     [ab].out )
2589         # We found the default executable, but exeext='' is most
2590         # certainly right.
2591         break;;
2592     *.* )
2593         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2594         # FIXME: I believe we export ac_cv_exeext for Libtool,
2595         # but it would be cool to find out if it's true.  Does anybody
2596         # maintain Libtool? --akim.
2597         export ac_cv_exeext
2598         break;;
2599     * )
2600         break;;
2601   esac
2602 done
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: C compiler cannot create executables
2610 See \`config.log' for more details." >&2;}
2611    { (exit 77); exit 77; }; }
2612 fi
2613
2614 ac_exeext=$ac_cv_exeext
2615 echo "$as_me:$LINENO: result: $ac_file" >&5
2616 echo "${ECHO_T}$ac_file" >&6
2617
2618 # Check the compiler produces executables we can run.  If not, either
2619 # the compiler is broken, or we cross compile.
2620 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2621 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2622 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2623 # If not cross compiling, check that we can run a simple program.
2624 if test "$cross_compiling" != yes; then
2625   if { ac_try='./$ac_file'
2626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627   (eval $ac_try) 2>&5
2628   ac_status=$?
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); }; }; then
2631     cross_compiling=no
2632   else
2633     if test "$cross_compiling" = maybe; then
2634         cross_compiling=yes
2635     else
2636         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2637 If you meant to cross compile, use \`--host'.
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: cannot run C compiled programs.
2640 If you meant to cross compile, use \`--host'.
2641 See \`config.log' for more details." >&2;}
2642    { (exit 1); exit 1; }; }
2643     fi
2644   fi
2645 fi
2646 echo "$as_me:$LINENO: result: yes" >&5
2647 echo "${ECHO_T}yes" >&6
2648
2649 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2650 ac_clean_files=$ac_clean_files_save
2651 # Check the compiler produces executables we can run.  If not, either
2652 # the compiler is broken, or we cross compile.
2653 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2654 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2655 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2656 echo "${ECHO_T}$cross_compiling" >&6
2657
2658 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2659 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661   (eval $ac_link) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; then
2665   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2666 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2667 # work properly (i.e., refer to `conftest.exe'), while it won't with
2668 # `rm'.
2669 for ac_file in conftest.exe conftest conftest.*; do
2670   test -f "$ac_file" || continue
2671   case $ac_file in
2672     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2673     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2674           export ac_cv_exeext
2675           break;;
2676     * ) break;;
2677   esac
2678 done
2679 else
2680   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2681 See \`config.log' for more details." >&5
2682 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2683 See \`config.log' for more details." >&2;}
2684    { (exit 1); exit 1; }; }
2685 fi
2686
2687 rm -f conftest$ac_cv_exeext
2688 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2689 echo "${ECHO_T}$ac_cv_exeext" >&6
2690
2691 rm -f conftest.$ac_ext
2692 EXEEXT=$ac_cv_exeext
2693 ac_exeext=$EXEEXT
2694 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2695 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2696 if test "${ac_cv_objext+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h.  */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h.  */
2705
2706 int
2707 main ()
2708 {
2709
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 rm -f conftest.o conftest.obj
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716   (eval $ac_compile) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); }; then
2720   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2721   case $ac_file in
2722     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2723     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2724        break;;
2725   esac
2726 done
2727 else
2728   echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2730
2731 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2732 See \`config.log' for more details." >&5
2733 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2734 See \`config.log' for more details." >&2;}
2735    { (exit 1); exit 1; }; }
2736 fi
2737
2738 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2739 fi
2740 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2741 echo "${ECHO_T}$ac_cv_objext" >&6
2742 OBJEXT=$ac_cv_objext
2743 ac_objext=$OBJEXT
2744 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2745 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2746 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2755
2756 int
2757 main ()
2758 {
2759 #ifndef __GNUC__
2760        choke me
2761 #endif
2762
2763   ;
2764   return 0;
2765 }
2766 _ACEOF
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769   (eval $ac_compile) 2>conftest.er1
2770   ac_status=$?
2771   grep -v '^ *+' conftest.er1 >conftest.err
2772   rm -f conftest.er1
2773   cat conftest.err >&5
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); } &&
2776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778   (eval $ac_try) 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; } &&
2782          { ac_try='test -s conftest.$ac_objext'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; }; then
2788   ac_compiler_gnu=yes
2789 else
2790   echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793 ac_compiler_gnu=no
2794 fi
2795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2797
2798 fi
2799 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2800 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2801 GCC=`test $ac_compiler_gnu = yes && echo yes`
2802 ac_test_CFLAGS=${CFLAGS+set}
2803 ac_save_CFLAGS=$CFLAGS
2804 CFLAGS="-g"
2805 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2806 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2807 if test "${ac_cv_prog_cc_g+set}" = set; then
2808   echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810   cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816
2817 int
2818 main ()
2819 {
2820
2821   ;
2822   return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827   (eval $ac_compile) 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } &&
2834          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; } &&
2840          { ac_try='test -s conftest.$ac_objext'
2841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842   (eval $ac_try) 2>&5
2843   ac_status=$?
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); }; }; then
2846   ac_cv_prog_cc_g=yes
2847 else
2848   echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2850
2851 ac_cv_prog_cc_g=no
2852 fi
2853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2854 fi
2855 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2856 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2857 if test "$ac_test_CFLAGS" = set; then
2858   CFLAGS=$ac_save_CFLAGS
2859 elif test $ac_cv_prog_cc_g = yes; then
2860   if test "$GCC" = yes; then
2861     CFLAGS="-g -O2"
2862   else
2863     CFLAGS="-g"
2864   fi
2865 else
2866   if test "$GCC" = yes; then
2867     CFLAGS="-O2"
2868   else
2869     CFLAGS=
2870   fi
2871 fi
2872 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2873 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2874 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2875   echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877   ac_cv_prog_cc_stdc=no
2878 ac_save_CC=$CC
2879 cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h.  */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h.  */
2885 #include <stdarg.h>
2886 #include <stdio.h>
2887 #include <sys/types.h>
2888 #include <sys/stat.h>
2889 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2890 struct buf { int x; };
2891 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2892 static char *e (p, i)
2893      char **p;
2894      int i;
2895 {
2896   return p[i];
2897 }
2898 static char *f (char * (*g) (char **, int), char **p, ...)
2899 {
2900   char *s;
2901   va_list v;
2902   va_start (v,p);
2903   s = g (p, va_arg (v,int));
2904   va_end (v);
2905   return s;
2906 }
2907
2908 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2909    function prototypes and stuff, but not '\xHH' hex character constants.
2910    These don't provoke an error unfortunately, instead are silently treated
2911    as 'x'.  The following induces an error, until -std1 is added to get
2912    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2913    array size at least.  It's necessary to write '\x00'==0 to get something
2914    that's true only with -std1.  */
2915 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2916
2917 int test (int i, double x);
2918 struct s1 {int (*f) (int a);};
2919 struct s2 {int (*f) (double a);};
2920 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2921 int argc;
2922 char **argv;
2923 int
2924 main ()
2925 {
2926 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2927   ;
2928   return 0;
2929 }
2930 _ACEOF
2931 # Don't try gcc -ansi; that turns off useful extensions and
2932 # breaks some systems' header files.
2933 # AIX                   -qlanglvl=ansi
2934 # Ultrix and OSF/1      -std1
2935 # HP-UX 10.20 and later -Ae
2936 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2937 # SVR4                  -Xc -D__EXTENSIONS__
2938 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2939 do
2940   CC="$ac_save_CC $ac_arg"
2941   rm -f conftest.$ac_objext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2943   (eval $ac_compile) 2>conftest.er1
2944   ac_status=$?
2945   grep -v '^ *+' conftest.er1 >conftest.err
2946   rm -f conftest.er1
2947   cat conftest.err >&5
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); } &&
2950          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952   (eval $ac_try) 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; } &&
2956          { ac_try='test -s conftest.$ac_objext'
2957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958   (eval $ac_try) 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; }; then
2962   ac_cv_prog_cc_stdc=$ac_arg
2963 break
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 fi
2969 rm -f conftest.err conftest.$ac_objext
2970 done
2971 rm -f conftest.$ac_ext conftest.$ac_objext
2972 CC=$ac_save_CC
2973
2974 fi
2975
2976 case "x$ac_cv_prog_cc_stdc" in
2977   x|xno)
2978     echo "$as_me:$LINENO: result: none needed" >&5
2979 echo "${ECHO_T}none needed" >&6 ;;
2980   *)
2981     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2982 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2983     CC="$CC $ac_cv_prog_cc_stdc" ;;
2984 esac
2985
2986 # Some people use a C++ compiler to compile C.  Since we use `exit',
2987 # in C++ we need to declare it.  In case someone uses the same compiler
2988 # for both compiling C and C++ we need to have the C++ compiler decide
2989 # the declaration of exit, since it's the most demanding environment.
2990 cat >conftest.$ac_ext <<_ACEOF
2991 #ifndef __cplusplus
2992   choke me
2993 #endif
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997   (eval $ac_compile) 2>conftest.er1
2998   ac_status=$?
2999   grep -v '^ *+' conftest.er1 >conftest.err
3000   rm -f conftest.er1
3001   cat conftest.err >&5
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); } &&
3004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006   (eval $ac_try) 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); }; } &&
3010          { ac_try='test -s conftest.$ac_objext'
3011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012   (eval $ac_try) 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; }; then
3016   for ac_declaration in \
3017    '' \
3018    'extern "C" void std::exit (int) throw (); using std::exit;' \
3019    'extern "C" void std::exit (int); using std::exit;' \
3020    'extern "C" void exit (int) throw ();' \
3021    'extern "C" void exit (int);' \
3022    'void exit (int);'
3023 do
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 $ac_declaration
3031 #include <stdlib.h>
3032 int
3033 main ()
3034 {
3035 exit (42);
3036   ;
3037   return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042   (eval $ac_compile) 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051   (eval $ac_try) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; } &&
3055          { ac_try='test -s conftest.$ac_objext'
3056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057   (eval $ac_try) 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; }; then
3061   :
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 continue
3067 fi
3068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3069   cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075 $ac_declaration
3076 int
3077 main ()
3078 {
3079 exit (42);
3080   ;
3081   return 0;
3082 }
3083 _ACEOF
3084 rm -f conftest.$ac_objext
3085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3086   (eval $ac_compile) 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } &&
3093          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095   (eval $ac_try) 2>&5
3096   ac_status=$?
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); }; } &&
3099          { ac_try='test -s conftest.$ac_objext'
3100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101   (eval $ac_try) 2>&5
3102   ac_status=$?
3103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); }; }; then
3105   break
3106 else
3107   echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 fi
3111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3112 done
3113 rm -f conftest*
3114 if test -n "$ac_declaration"; then
3115   echo '#ifdef __cplusplus' >>confdefs.h
3116   echo $ac_declaration      >>confdefs.h
3117   echo '#endif'             >>confdefs.h
3118 fi
3119
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 fi
3125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131
3132 depcc="$CC"   am_compiler_list=
3133
3134 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3135 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3136 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3137   echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3140   # We make a subdir and do the tests there.  Otherwise we can end up
3141   # making bogus files that we don't know about and never remove.  For
3142   # instance it was reported that on HP-UX the gcc test will end up
3143   # making a dummy file named `D' -- because `-MD' means `put the output
3144   # in D'.
3145   mkdir conftest.dir
3146   # Copy depcomp to subdir because otherwise we won't find it if we're
3147   # using a relative directory.
3148   cp "$am_depcomp" conftest.dir
3149   cd conftest.dir
3150   # We will build objects and dependencies in a subdirectory because
3151   # it helps to detect inapplicable dependency modes.  For instance
3152   # both Tru64's cc and ICC support -MD to output dependencies as a
3153   # side effect of compilation, but ICC will put the dependencies in
3154   # the current directory while Tru64 will put them in the object
3155   # directory.
3156   mkdir sub
3157
3158   am_cv_CC_dependencies_compiler_type=none
3159   if test "$am_compiler_list" = ""; then
3160      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3161   fi
3162   for depmode in $am_compiler_list; do
3163     # Setup a source with many dependencies, because some compilers
3164     # like to wrap large dependency lists on column 80 (with \), and
3165     # we should not choose a depcomp mode which is confused by this.
3166     #
3167     # We need to recreate these files for each test, as the compiler may
3168     # overwrite some of them when testing with obscure command lines.
3169     # This happens at least with the AIX C compiler.
3170     : > sub/conftest.c
3171     for i in 1 2 3 4 5 6; do
3172       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3173       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3174       # Solaris 8's {/usr,}/bin/sh.
3175       touch sub/conftst$i.h
3176     done
3177     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3178
3179     case $depmode in
3180     nosideeffect)
3181       # after this tag, mechanisms are not by side-effect, so they'll
3182       # only be used when explicitly requested
3183       if test "x$enable_dependency_tracking" = xyes; then
3184         continue
3185       else
3186         break
3187       fi
3188       ;;
3189     none) break ;;
3190     esac
3191     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3192     # mode.  It turns out that the SunPro C++ compiler does not properly
3193     # handle `-M -o', and we need to detect this.
3194     if depmode=$depmode \
3195        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3196        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3197        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3198          >/dev/null 2>conftest.err &&
3199        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3200        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3201        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3202       # icc doesn't choke on unknown options, it will just issue warnings
3203       # or remarks (even with -Werror).  So we grep stderr for any message
3204       # that says an option was ignored or not supported.
3205       # When given -MP, icc 7.0 and 7.1 complain thusly:
3206       #   icc: Command line warning: ignoring option '-M'; no argument required
3207       # The diagnosis changed in icc 8.0:
3208       #   icc: Command line remark: option '-MP' not supported
3209       if (grep 'ignoring option' conftest.err ||
3210           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3211         am_cv_CC_dependencies_compiler_type=$depmode
3212         break
3213       fi
3214     fi
3215   done
3216
3217   cd ..
3218   rm -rf conftest.dir
3219 else
3220   am_cv_CC_dependencies_compiler_type=none
3221 fi
3222
3223 fi
3224 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3225 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3227
3228
3229
3230 if
3231   test "x$enable_dependency_tracking" != xno \
3232   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3233   am__fastdepCC_TRUE=
3234   am__fastdepCC_FALSE='#'
3235 else
3236   am__fastdepCC_TRUE='#'
3237   am__fastdepCC_FALSE=
3238 fi
3239
3240
3241 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3242 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3243 if test "${lt_cv_path_SED+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246   # Loop through the user's path and test for sed and gsed.
3247 # Then use that list of sed's as ones to test for truncation.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251   IFS=$as_save_IFS
3252   test -z "$as_dir" && as_dir=.
3253   for lt_ac_prog in sed gsed; do
3254     for ac_exec_ext in '' $ac_executable_extensions; do
3255       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3256         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3257       fi
3258     done
3259   done
3260 done
3261 lt_ac_max=0
3262 lt_ac_count=0
3263 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3264 # along with /bin/sed that truncates output.
3265 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3266   test ! -f $lt_ac_sed && continue
3267   cat /dev/null > conftest.in
3268   lt_ac_count=0
3269   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3270   # Check for GNU sed and select it if it is found.
3271   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3272     lt_cv_path_SED=$lt_ac_sed
3273     break
3274   fi
3275   while true; do
3276     cat conftest.in conftest.in >conftest.tmp
3277     mv conftest.tmp conftest.in
3278     cp conftest.in conftest.nl
3279     echo >>conftest.nl
3280     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3281     cmp -s conftest.out conftest.nl || break
3282     # 10000 chars as input seems more than enough
3283     test $lt_ac_count -gt 10 && break
3284     lt_ac_count=`expr $lt_ac_count + 1`
3285     if test $lt_ac_count -gt $lt_ac_max; then
3286       lt_ac_max=$lt_ac_count
3287       lt_cv_path_SED=$lt_ac_sed
3288     fi
3289   done
3290 done
3291
3292 fi
3293
3294 SED=$lt_cv_path_SED
3295 echo "$as_me:$LINENO: result: $SED" >&5
3296 echo "${ECHO_T}$SED" >&6
3297
3298 echo "$as_me:$LINENO: checking for egrep" >&5
3299 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3300 if test "${ac_cv_prog_egrep+set}" = set; then
3301   echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3304     then ac_cv_prog_egrep='grep -E'
3305     else ac_cv_prog_egrep='egrep'
3306     fi
3307 fi
3308 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3309 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3310  EGREP=$ac_cv_prog_egrep
3311
3312
3313
3314 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3315 if test "${with_gnu_ld+set}" = set; then
3316   withval="$with_gnu_ld"
3317   test "$withval" = no || with_gnu_ld=yes
3318 else
3319   with_gnu_ld=no
3320 fi;
3321 ac_prog=ld
3322 if test "$GCC" = yes; then
3323   # Check if gcc -print-prog-name=ld gives a path.
3324   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3325 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3326   case $host in
3327   *-*-mingw*)
3328     # gcc leaves a trailing carriage return which upsets mingw
3329     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3330   *)
3331     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3332   esac
3333   case $ac_prog in
3334     # Accept absolute paths.
3335     [\\/]* | ?:[\\/]*)
3336       re_direlt='/[^/][^/]*/\.\./'
3337       # Canonicalize the pathname of ld
3338       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3339       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3340         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3341       done
3342       test -z "$LD" && LD="$ac_prog"
3343       ;;
3344   "")
3345     # If it fails, then pretend we aren't using GCC.
3346     ac_prog=ld
3347     ;;
3348   *)
3349     # If it is relative, then search for the first ld in PATH.
3350     with_gnu_ld=unknown
3351     ;;
3352   esac
3353 elif test "$with_gnu_ld" = yes; then
3354   echo "$as_me:$LINENO: checking for GNU ld" >&5
3355 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3356 else
3357   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3358 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3359 fi
3360 if test "${lt_cv_path_LD+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   if test -z "$LD"; then
3364   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3365   for ac_dir in $PATH; do
3366     IFS="$lt_save_ifs"
3367     test -z "$ac_dir" && ac_dir=.
3368     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3369       lt_cv_path_LD="$ac_dir/$ac_prog"
3370       # Check to see if the program is GNU ld.  I'd rather use --version,
3371       # but apparently some variants of GNU ld only accept -v.
3372       # Break only if it was the GNU/non-GNU ld that we prefer.
3373       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3374       *GNU* | *'with BFD'*)
3375         test "$with_gnu_ld" != no && break
3376         ;;
3377       *)
3378         test "$with_gnu_ld" != yes && break
3379         ;;
3380       esac
3381     fi
3382   done
3383   IFS="$lt_save_ifs"
3384 else
3385   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3386 fi
3387 fi
3388
3389 LD="$lt_cv_path_LD"
3390 if test -n "$LD"; then
3391   echo "$as_me:$LINENO: result: $LD" >&5
3392 echo "${ECHO_T}$LD" >&6
3393 else
3394   echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3396 fi
3397 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3398 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3399    { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3401 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3402 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3403   echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3406 case `$LD -v 2>&1 </dev/null` in
3407 *GNU* | *'with BFD'*)
3408   lt_cv_prog_gnu_ld=yes
3409   ;;
3410 *)
3411   lt_cv_prog_gnu_ld=no
3412   ;;
3413 esac
3414 fi
3415 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3416 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3417 with_gnu_ld=$lt_cv_prog_gnu_ld
3418
3419
3420 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3421 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3422 if test "${lt_cv_ld_reload_flag+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   lt_cv_ld_reload_flag='-r'
3426 fi
3427 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3428 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3429 reload_flag=$lt_cv_ld_reload_flag
3430 case $reload_flag in
3431 "" | " "*) ;;
3432 *) reload_flag=" $reload_flag" ;;
3433 esac
3434 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3435 case $host_os in
3436   darwin*)
3437     if test "$GCC" = yes; then
3438       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3439     else
3440       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3441     fi
3442     ;;
3443 esac
3444
3445 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3446 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3447 if test "${lt_cv_path_NM+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450   if test -n "$NM"; then
3451   # Let the user override the test.
3452   lt_cv_path_NM="$NM"
3453 else
3454   lt_nm_to_check="${ac_tool_prefix}nm"
3455   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3456     lt_nm_to_check="$lt_nm_to_check nm"
3457   fi
3458   for lt_tmp_nm in $lt_nm_to_check; do
3459     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3460     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3461       IFS="$lt_save_ifs"
3462       test -z "$ac_dir" && ac_dir=.
3463       tmp_nm="$ac_dir/$lt_tmp_nm"
3464       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3465         # Check to see if the nm accepts a BSD-compat flag.
3466         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3467         #   nm: unknown option "B" ignored
3468         # Tru64's nm complains that /dev/null is an invalid object file
3469         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3470         */dev/null* | *'Invalid file or object type'*)
3471           lt_cv_path_NM="$tmp_nm -B"
3472           break
3473           ;;
3474         *)
3475           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3476           */dev/null*)
3477             lt_cv_path_NM="$tmp_nm -p"
3478             break
3479             ;;
3480           *)
3481             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3482             continue # so that we can try to find one that supports BSD flags
3483             ;;
3484           esac
3485           ;;
3486         esac
3487       fi
3488     done
3489     IFS="$lt_save_ifs"
3490   done
3491   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3492 fi
3493 fi
3494 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3495 echo "${ECHO_T}$lt_cv_path_NM" >&6
3496 NM="$lt_cv_path_NM"
3497
3498 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3499 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3500 LN_S=$as_ln_s
3501 if test "$LN_S" = "ln -s"; then
3502   echo "$as_me:$LINENO: result: yes" >&5
3503 echo "${ECHO_T}yes" >&6
3504 else
3505   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3506 echo "${ECHO_T}no, using $LN_S" >&6
3507 fi
3508
3509 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3510 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3511 if test "${lt_cv_deplibs_check_method+set}" = set; then
3512   echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514   lt_cv_file_magic_cmd='$MAGIC_CMD'
3515 lt_cv_file_magic_test_file=
3516 lt_cv_deplibs_check_method='unknown'
3517 # Need to set the preceding variable on all platforms that support
3518 # interlibrary dependencies.
3519 # 'none' -- dependencies not supported.
3520 # `unknown' -- same as none, but documents that we really don't know.
3521 # 'pass_all' -- all dependencies passed with no checks.
3522 # 'test_compile' -- check by making test program.
3523 # 'file_magic [[regex]]' -- check by looking for files in library path
3524 # which responds to the $file_magic_cmd with a given extended regex.
3525 # If you have `file' or equivalent on your system and you're not sure
3526 # whether `pass_all' will *always* work, you probably want this one.
3527
3528 case $host_os in
3529 aix4* | aix5*)
3530   lt_cv_deplibs_check_method=pass_all
3531   ;;
3532
3533 beos*)
3534   lt_cv_deplibs_check_method=pass_all
3535   ;;
3536
3537 bsdi[45]*)
3538   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3539   lt_cv_file_magic_cmd='/usr/bin/file -L'
3540   lt_cv_file_magic_test_file=/shlib/libc.so
3541   ;;
3542
3543 cygwin*)
3544   # func_win32_libid is a shell function defined in ltmain.sh
3545   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3546   lt_cv_file_magic_cmd='func_win32_libid'
3547   ;;
3548
3549 mingw* | pw32*)
3550   # Base MSYS/MinGW do not provide the 'file' command needed by
3551   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3552   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3553   lt_cv_file_magic_cmd='$OBJDUMP -f'
3554   ;;
3555
3556 darwin* | rhapsody*)
3557   lt_cv_deplibs_check_method=pass_all
3558   ;;
3559
3560 freebsd* | kfreebsd*-gnu | dragonfly*)
3561   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3562     case $host_cpu in
3563     i*86 )
3564       # Not sure whether the presence of OpenBSD here was a mistake.
3565       # Let's accept both of them until this is cleared up.
3566       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3567       lt_cv_file_magic_cmd=/usr/bin/file
3568       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3569       ;;
3570     esac
3571   else
3572     lt_cv_deplibs_check_method=pass_all
3573   fi
3574   ;;
3575
3576 gnu*)
3577   lt_cv_deplibs_check_method=pass_all
3578   ;;
3579
3580 hpux10.20* | hpux11*)
3581   lt_cv_file_magic_cmd=/usr/bin/file
3582   case $host_cpu in
3583   ia64*)
3584     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3585     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3586     ;;
3587   hppa*64*)
3588     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]'
3589     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3590     ;;
3591   *)
3592     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3593     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3594     ;;
3595   esac
3596   ;;
3597
3598 interix3*)
3599   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3600   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3601   ;;
3602
3603 irix5* | irix6* | nonstopux*)
3604   case $LD in
3605   *-32|*"-32 ") libmagic=32-bit;;
3606   *-n32|*"-n32 ") libmagic=N32;;
3607   *-64|*"-64 ") libmagic=64-bit;;
3608   *) libmagic=never-match;;
3609   esac
3610   lt_cv_deplibs_check_method=pass_all
3611   ;;
3612
3613 # This must be Linux ELF.
3614 linux*)
3615   lt_cv_deplibs_check_method=pass_all
3616   ;;
3617
3618 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3619   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3620     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3621   else
3622     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3623   fi
3624   ;;
3625
3626 newos6*)
3627   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3628   lt_cv_file_magic_cmd=/usr/bin/file
3629   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3630   ;;
3631
3632 nto-qnx*)
3633   lt_cv_deplibs_check_method=unknown
3634   ;;
3635
3636 openbsd*)
3637   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3638     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3639   else
3640     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3641   fi
3642   ;;
3643
3644 osf3* | osf4* | osf5*)
3645   lt_cv_deplibs_check_method=pass_all
3646   ;;
3647
3648 solaris*)
3649   lt_cv_deplibs_check_method=pass_all
3650   ;;
3651
3652 sysv4 | sysv4.3*)
3653   case $host_vendor in
3654   motorola)
3655     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]'
3656     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3657     ;;
3658   ncr)
3659     lt_cv_deplibs_check_method=pass_all
3660     ;;
3661   sequent)
3662     lt_cv_file_magic_cmd='/bin/file'
3663     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3664     ;;
3665   sni)
3666     lt_cv_file_magic_cmd='/bin/file'
3667     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3668     lt_cv_file_magic_test_file=/lib/libc.so
3669     ;;
3670   siemens)
3671     lt_cv_deplibs_check_method=pass_all
3672     ;;
3673   pc)
3674     lt_cv_deplibs_check_method=pass_all
3675     ;;
3676   esac
3677   ;;
3678
3679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3680   lt_cv_deplibs_check_method=pass_all
3681   ;;
3682 esac
3683
3684 fi
3685 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3686 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3687 file_magic_cmd=$lt_cv_file_magic_cmd
3688 deplibs_check_method=$lt_cv_deplibs_check_method
3689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3690
3691
3692
3693
3694 # If no C compiler was specified, use CC.
3695 LTCC=${LTCC-"$CC"}
3696
3697 # If no C compiler flags were specified, use CFLAGS.
3698 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3699
3700 # Allow CC to be a program name with arguments.
3701 compiler=$CC
3702
3703
3704 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3705 if test "${enable_libtool_lock+set}" = set; then
3706   enableval="$enable_libtool_lock"
3707
3708 fi;
3709 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3710
3711 # Some flags need to be propagated to the compiler or linker for good
3712 # libtool support.
3713 case $host in
3714 ia64-*-hpux*)
3715   # Find out which ABI we are using.
3716   echo 'int i;' > conftest.$ac_ext
3717   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718   (eval $ac_compile) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; then
3722     case `/usr/bin/file conftest.$ac_objext` in
3723     *ELF-32*)
3724       HPUX_IA64_MODE="32"
3725       ;;
3726     *ELF-64*)
3727       HPUX_IA64_MODE="64"
3728       ;;
3729     esac
3730   fi
3731   rm -rf conftest*
3732   ;;
3733 *-*-irix6*)
3734   # Find out which ABI we are using.
3735   echo '#line 3735 "configure"' > conftest.$ac_ext
3736   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737   (eval $ac_compile) 2>&5
3738   ac_status=$?
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); }; then
3741    if test "$lt_cv_prog_gnu_ld" = yes; then
3742     case `/usr/bin/file conftest.$ac_objext` in
3743     *32-bit*)
3744       LD="${LD-ld} -melf32bsmip"
3745       ;;
3746     *N32*)
3747       LD="${LD-ld} -melf32bmipn32"
3748       ;;
3749     *64-bit*)
3750       LD="${LD-ld} -melf64bmip"
3751       ;;
3752     esac
3753    else
3754     case `/usr/bin/file conftest.$ac_objext` in
3755     *32-bit*)
3756       LD="${LD-ld} -32"
3757       ;;
3758     *N32*)
3759       LD="${LD-ld} -n32"
3760       ;;
3761     *64-bit*)
3762       LD="${LD-ld} -64"
3763       ;;
3764     esac
3765    fi
3766   fi
3767   rm -rf conftest*
3768   ;;
3769
3770 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3771   # Find out which ABI we are using.
3772   echo 'int i;' > conftest.$ac_ext
3773   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774   (eval $ac_compile) 2>&5
3775   ac_status=$?
3776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777   (exit $ac_status); }; then
3778     case `/usr/bin/file conftest.o` in
3779     *32-bit*)
3780       case $host in
3781         x86_64-*linux*)
3782           LD="${LD-ld} -m elf_i386"
3783           ;;
3784         ppc64-*linux*|powerpc64-*linux*)
3785           LD="${LD-ld} -m elf32ppclinux"
3786           ;;
3787         s390x-*linux*)
3788           LD="${LD-ld} -m elf_s390"
3789           ;;
3790         sparc64-*linux*)
3791           LD="${LD-ld} -m elf32_sparc"
3792           ;;
3793       esac
3794       ;;
3795     *64-bit*)
3796       case $host in
3797         x86_64-*linux*)
3798           LD="${LD-ld} -m elf_x86_64"
3799           ;;
3800         ppc*-*linux*|powerpc*-*linux*)
3801           LD="${LD-ld} -m elf64ppc"
3802           ;;
3803         s390*-*linux*)
3804           LD="${LD-ld} -m elf64_s390"
3805           ;;
3806         sparc*-*linux*)
3807           LD="${LD-ld} -m elf64_sparc"
3808           ;;
3809       esac
3810       ;;
3811     esac
3812   fi
3813   rm -rf conftest*
3814   ;;
3815
3816 *-*-sco3.2v5*)
3817   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3818   SAVE_CFLAGS="$CFLAGS"
3819   CFLAGS="$CFLAGS -belf"
3820   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3821 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3822 if test "${lt_cv_cc_needs_belf+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   ac_ext=c
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830
3831      cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h.  */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h.  */
3837
3838 int
3839 main ()
3840 {
3841
3842   ;
3843   return 0;
3844 }
3845 _ACEOF
3846 rm -f conftest.$ac_objext conftest$ac_exeext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848   (eval $ac_link) 2>conftest.er1
3849   ac_status=$?
3850   grep -v '^ *+' conftest.er1 >conftest.err
3851   rm -f conftest.er1
3852   cat conftest.err >&5
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); } &&
3855          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857   (eval $ac_try) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest$ac_exeext'
3862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863   (eval $ac_try) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   lt_cv_cc_needs_belf=yes
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 lt_cv_cc_needs_belf=no
3873 fi
3874 rm -f conftest.err conftest.$ac_objext \
3875       conftest$ac_exeext conftest.$ac_ext
3876      ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881
3882 fi
3883 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3884 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3885   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3886     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3887     CFLAGS="$SAVE_CFLAGS"
3888   fi
3889   ;;
3890 sparc*-*solaris*)
3891   # Find out which ABI we are using.
3892   echo 'int i;' > conftest.$ac_ext
3893   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894   (eval $ac_compile) 2>&5
3895   ac_status=$?
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); }; then
3898     case `/usr/bin/file conftest.o` in
3899     *64-bit*)
3900       case $lt_cv_prog_gnu_ld in
3901       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3902       *)    LD="${LD-ld} -64" ;;
3903       esac
3904       ;;
3905     esac
3906   fi
3907   rm -rf conftest*
3908   ;;
3909
3910 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3911   if test -n "$ac_tool_prefix"; then
3912   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3914 echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   if test -n "$DLLTOOL"; then
3920   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934 done
3935
3936 fi
3937 fi
3938 DLLTOOL=$ac_cv_prog_DLLTOOL
3939 if test -n "$DLLTOOL"; then
3940   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3941 echo "${ECHO_T}$DLLTOOL" >&6
3942 else
3943   echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6
3945 fi
3946
3947 fi
3948 if test -z "$ac_cv_prog_DLLTOOL"; then
3949   ac_ct_DLLTOOL=$DLLTOOL
3950   # Extract the first word of "dlltool", so it can be a program name with args.
3951 set dummy dlltool; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   if test -n "$ac_ct_DLLTOOL"; then
3958   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3959 else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH
3962 do
3963   IFS=$as_save_IFS
3964   test -z "$as_dir" && as_dir=.
3965   for ac_exec_ext in '' $ac_executable_extensions; do
3966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969     break 2
3970   fi
3971 done
3972 done
3973
3974   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3975 fi
3976 fi
3977 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3978 if test -n "$ac_ct_DLLTOOL"; then
3979   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3980 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3981 else
3982   echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3984 fi
3985
3986   DLLTOOL=$ac_ct_DLLTOOL
3987 else
3988   DLLTOOL="$ac_cv_prog_DLLTOOL"
3989 fi
3990
3991   if test -n "$ac_tool_prefix"; then
3992   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}as; ac_word=$2
3994 echo "$as_me:$LINENO: checking for $ac_word" >&5
3995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3996 if test "${ac_cv_prog_AS+set}" = set; then
3997   echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999   if test -n "$AS"; then
4000   ac_cv_prog_AS="$AS" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007   for ac_exec_ext in '' $ac_executable_extensions; do
4008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009     ac_cv_prog_AS="${ac_tool_prefix}as"
4010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011     break 2
4012   fi
4013 done
4014 done
4015
4016 fi
4017 fi
4018 AS=$ac_cv_prog_AS
4019 if test -n "$AS"; then
4020   echo "$as_me:$LINENO: result: $AS" >&5
4021 echo "${ECHO_T}$AS" >&6
4022 else
4023   echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6
4025 fi
4026
4027 fi
4028 if test -z "$ac_cv_prog_AS"; then
4029   ac_ct_AS=$AS
4030   # Extract the first word of "as", so it can be a program name with args.
4031 set dummy as; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   if test -n "$ac_ct_AS"; then
4038   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045   for ac_exec_ext in '' $ac_executable_extensions; do
4046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047     ac_cv_prog_ac_ct_AS="as"
4048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052 done
4053
4054   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4055 fi
4056 fi
4057 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4058 if test -n "$ac_ct_AS"; then
4059   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4060 echo "${ECHO_T}$ac_ct_AS" >&6
4061 else
4062   echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4064 fi
4065
4066   AS=$ac_ct_AS
4067 else
4068   AS="$ac_cv_prog_AS"
4069 fi
4070
4071   if test -n "$ac_tool_prefix"; then
4072   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4074 echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4076 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4077   echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079   if test -n "$OBJDUMP"; then
4080   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085   IFS=$as_save_IFS
4086   test -z "$as_dir" && as_dir=.
4087   for ac_exec_ext in '' $ac_executable_extensions; do
4088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091     break 2
4092   fi
4093 done
4094 done
4095
4096 fi
4097 fi
4098 OBJDUMP=$ac_cv_prog_OBJDUMP
4099 if test -n "$OBJDUMP"; then
4100   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4101 echo "${ECHO_T}$OBJDUMP" >&6
4102 else
4103   echo "$as_me:$LINENO: result: no" >&5
4104 echo "${ECHO_T}no" >&6
4105 fi
4106
4107 fi
4108 if test -z "$ac_cv_prog_OBJDUMP"; then
4109   ac_ct_OBJDUMP=$OBJDUMP
4110   # Extract the first word of "objdump", so it can be a program name with args.
4111 set dummy objdump; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   if test -n "$ac_ct_OBJDUMP"; then
4118   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125   for ac_exec_ext in '' $ac_executable_extensions; do
4126   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4129     break 2
4130   fi
4131 done
4132 done
4133
4134   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4135 fi
4136 fi
4137 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4138 if test -n "$ac_ct_OBJDUMP"; then
4139   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4140 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4141 else
4142   echo "$as_me:$LINENO: result: no" >&5
4143 echo "${ECHO_T}no" >&6
4144 fi
4145
4146   OBJDUMP=$ac_ct_OBJDUMP
4147 else
4148   OBJDUMP="$ac_cv_prog_OBJDUMP"
4149 fi
4150
4151   ;;
4152
4153 esac
4154
4155 need_locks="$enable_libtool_lock"
4156
4157
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4164 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4165 # On Suns, sometimes $CPP names a directory.
4166 if test -n "$CPP" && test -d "$CPP"; then
4167   CPP=
4168 fi
4169 if test -z "$CPP"; then
4170   if test "${ac_cv_prog_CPP+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173       # Double quotes because CPP needs to be expanded
4174     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4175     do
4176       ac_preproc_ok=false
4177 for ac_c_preproc_warn_flag in '' yes
4178 do
4179   # Use a header file that comes with gcc, so configuring glibc
4180   # with a fresh cross-compiler works.
4181   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4182   # <limits.h> exists even on freestanding compilers.
4183   # On the NeXT, cc -E runs the code through the compiler's parser,
4184   # not just through cpp. "Syntax error" is here to catch this case.
4185   cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h.  */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h.  */
4191 #ifdef __STDC__
4192 # include <limits.h>
4193 #else
4194 # include <assert.h>
4195 #endif
4196                      Syntax error
4197 _ACEOF
4198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4200   ac_status=$?
4201   grep -v '^ *+' conftest.er1 >conftest.err
4202   rm -f conftest.er1
4203   cat conftest.err >&5
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); } >/dev/null; then
4206   if test -s conftest.err; then
4207     ac_cpp_err=$ac_c_preproc_warn_flag
4208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4209   else
4210     ac_cpp_err=
4211   fi
4212 else
4213   ac_cpp_err=yes
4214 fi
4215 if test -z "$ac_cpp_err"; then
4216   :
4217 else
4218   echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4220
4221   # Broken: fails on valid input.
4222 continue
4223 fi
4224 rm -f conftest.err conftest.$ac_ext
4225
4226   # OK, works on sane cases.  Now check whether non-existent headers
4227   # can be detected and how.
4228   cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h.  */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h.  */
4234 #include <ac_nonexistent.h>
4235 _ACEOF
4236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4238   ac_status=$?
4239   grep -v '^ *+' conftest.er1 >conftest.err
4240   rm -f conftest.er1
4241   cat conftest.err >&5
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); } >/dev/null; then
4244   if test -s conftest.err; then
4245     ac_cpp_err=$ac_c_preproc_warn_flag
4246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4247   else
4248     ac_cpp_err=
4249   fi
4250 else
4251   ac_cpp_err=yes
4252 fi
4253 if test -z "$ac_cpp_err"; then
4254   # Broken: success on invalid input.
4255 continue
4256 else
4257   echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260   # Passes both tests.
4261 ac_preproc_ok=:
4262 break
4263 fi
4264 rm -f conftest.err conftest.$ac_ext
4265
4266 done
4267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4268 rm -f conftest.err conftest.$ac_ext
4269 if $ac_preproc_ok; then
4270   break
4271 fi
4272
4273     done
4274     ac_cv_prog_CPP=$CPP
4275
4276 fi
4277   CPP=$ac_cv_prog_CPP
4278 else
4279   ac_cv_prog_CPP=$CPP
4280 fi
4281 echo "$as_me:$LINENO: result: $CPP" >&5
4282 echo "${ECHO_T}$CPP" >&6
4283 ac_preproc_ok=false
4284 for ac_c_preproc_warn_flag in '' yes
4285 do
4286   # Use a header file that comes with gcc, so configuring glibc
4287   # with a fresh cross-compiler works.
4288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289   # <limits.h> exists even on freestanding compilers.
4290   # On the NeXT, cc -E runs the code through the compiler's parser,
4291   # not just through cpp. "Syntax error" is here to catch this case.
4292   cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h.  */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h.  */
4298 #ifdef __STDC__
4299 # include <limits.h>
4300 #else
4301 # include <assert.h>
4302 #endif
4303                      Syntax error
4304 _ACEOF
4305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4307   ac_status=$?
4308   grep -v '^ *+' conftest.er1 >conftest.err
4309   rm -f conftest.er1
4310   cat conftest.err >&5
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); } >/dev/null; then
4313   if test -s conftest.err; then
4314     ac_cpp_err=$ac_c_preproc_warn_flag
4315     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4316   else
4317     ac_cpp_err=
4318   fi
4319 else
4320   ac_cpp_err=yes
4321 fi
4322 if test -z "$ac_cpp_err"; then
4323   :
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328   # Broken: fails on valid input.
4329 continue
4330 fi
4331 rm -f conftest.err conftest.$ac_ext
4332
4333   # OK, works on sane cases.  Now check whether non-existent headers
4334   # can be detected and how.
4335   cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 #include <ac_nonexistent.h>
4342 _ACEOF
4343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4345   ac_status=$?
4346   grep -v '^ *+' conftest.er1 >conftest.err
4347   rm -f conftest.er1
4348   cat conftest.err >&5
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); } >/dev/null; then
4351   if test -s conftest.err; then
4352     ac_cpp_err=$ac_c_preproc_warn_flag
4353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4354   else
4355     ac_cpp_err=
4356   fi
4357 else
4358   ac_cpp_err=yes
4359 fi
4360 if test -z "$ac_cpp_err"; then
4361   # Broken: success on invalid input.
4362 continue
4363 else
4364   echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367   # Passes both tests.
4368 ac_preproc_ok=:
4369 break
4370 fi
4371 rm -f conftest.err conftest.$ac_ext
4372
4373 done
4374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4375 rm -f conftest.err conftest.$ac_ext
4376 if $ac_preproc_ok; then
4377   :
4378 else
4379   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4380 See \`config.log' for more details." >&5
4381 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4382 See \`config.log' for more details." >&2;}
4383    { (exit 1); exit 1; }; }
4384 fi
4385
4386 ac_ext=c
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391
4392
4393 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4394 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4395 if test "${ac_cv_header_stdc+set}" = set; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398   cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h.  */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h.  */
4404 #include <stdlib.h>
4405 #include <stdarg.h>
4406 #include <string.h>
4407 #include <float.h>
4408
4409 int
4410 main ()
4411 {
4412
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419   (eval $ac_compile) 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } &&
4426          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428   (eval $ac_try) 2>&5
4429   ac_status=$?
4430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); }; } &&
4432          { ac_try='test -s conftest.$ac_objext'
4433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434   (eval $ac_try) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; }; then
4438   ac_cv_header_stdc=yes
4439 else
4440   echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443 ac_cv_header_stdc=no
4444 fi
4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446
4447 if test $ac_cv_header_stdc = yes; then
4448   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4449   cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 #include <string.h>
4456
4457 _ACEOF
4458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4459   $EGREP "memchr" >/dev/null 2>&1; then
4460   :
4461 else
4462   ac_cv_header_stdc=no
4463 fi
4464 rm -f conftest*
4465
4466 fi
4467
4468 if test $ac_cv_header_stdc = yes; then
4469   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4470   cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h.  */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h.  */
4476 #include <stdlib.h>
4477
4478 _ACEOF
4479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4480   $EGREP "free" >/dev/null 2>&1; then
4481   :
4482 else
4483   ac_cv_header_stdc=no
4484 fi
4485 rm -f conftest*
4486
4487 fi
4488
4489 if test $ac_cv_header_stdc = yes; then
4490   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4491   if test "$cross_compiling" = yes; then
4492   :
4493 else
4494   cat >conftest.$ac_ext <<_ACEOF
4495 /* confdefs.h.  */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h.  */
4500 #include <ctype.h>
4501 #if ((' ' & 0x0FF) == 0x020)
4502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4504 #else
4505 # define ISLOWER(c) \
4506                    (('a' <= (c) && (c) <= 'i') \
4507                      || ('j' <= (c) && (c) <= 'r') \
4508                      || ('s' <= (c) && (c) <= 'z'))
4509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4510 #endif
4511
4512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4513 int
4514 main ()
4515 {
4516   int i;
4517   for (i = 0; i < 256; i++)
4518     if (XOR (islower (i), ISLOWER (i))
4519         || toupper (i) != TOUPPER (i))
4520       exit(2);
4521   exit (0);
4522 }
4523 _ACEOF
4524 rm -f conftest$ac_exeext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4526   (eval $ac_link) 2>&5
4527   ac_status=$?
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531   (eval $ac_try) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; }; then
4535   :
4536 else
4537   echo "$as_me: program exited with status $ac_status" >&5
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541 ( exit $ac_status )
4542 ac_cv_header_stdc=no
4543 fi
4544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4545 fi
4546 fi
4547 fi
4548 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4549 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4550 if test $ac_cv_header_stdc = yes; then
4551
4552 cat >>confdefs.h <<\_ACEOF
4553 #define STDC_HEADERS 1
4554 _ACEOF
4555
4556 fi
4557
4558 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4569                   inttypes.h stdint.h unistd.h
4570 do
4571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4572 echo "$as_me:$LINENO: checking for $ac_header" >&5
4573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577   cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583 $ac_includes_default
4584
4585 #include <$ac_header>
4586 _ACEOF
4587 rm -f conftest.$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589   (eval $ac_compile) 2>conftest.er1
4590   ac_status=$?
4591   grep -v '^ *+' conftest.er1 >conftest.err
4592   rm -f conftest.er1
4593   cat conftest.err >&5
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); } &&
4596          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598   (eval $ac_try) 2>&5
4599   ac_status=$?
4600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601   (exit $ac_status); }; } &&
4602          { ac_try='test -s conftest.$ac_objext'
4603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604   (eval $ac_try) 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); }; }; then
4608   eval "$as_ac_Header=yes"
4609 else
4610   echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4612
4613 eval "$as_ac_Header=no"
4614 fi
4615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4616 fi
4617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4620   cat >>confdefs.h <<_ACEOF
4621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4622 _ACEOF
4623
4624 fi
4625
4626 done
4627
4628
4629
4630 for ac_header in dlfcn.h
4631 do
4632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634   echo "$as_me:$LINENO: checking for $ac_header" >&5
4635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4637   echo $ECHO_N "(cached) $ECHO_C" >&6
4638 fi
4639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4641 else
4642   # Is the header compilable?
4643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4645 cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h.  */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h.  */
4651 $ac_includes_default
4652 #include <$ac_header>
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656   (eval $ac_compile) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665   (eval $ac_try) 2>&5
4666   ac_status=$?
4667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); }; } &&
4669          { ac_try='test -s conftest.$ac_objext'
4670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671   (eval $ac_try) 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; }; then
4675   ac_header_compiler=yes
4676 else
4677   echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4679
4680 ac_header_compiler=no
4681 fi
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4684 echo "${ECHO_T}$ac_header_compiler" >&6
4685
4686 # Is the header present?
4687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h.  */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h.  */
4695 #include <$ac_header>
4696 _ACEOF
4697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4699   ac_status=$?
4700   grep -v '^ *+' conftest.er1 >conftest.err
4701   rm -f conftest.er1
4702   cat conftest.err >&5
4703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704   (exit $ac_status); } >/dev/null; then
4705   if test -s conftest.err; then
4706     ac_cpp_err=$ac_c_preproc_warn_flag
4707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4708   else
4709     ac_cpp_err=
4710   fi
4711 else
4712   ac_cpp_err=yes
4713 fi
4714 if test -z "$ac_cpp_err"; then
4715   ac_header_preproc=yes
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720   ac_header_preproc=no
4721 fi
4722 rm -f conftest.err conftest.$ac_ext
4723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4724 echo "${ECHO_T}$ac_header_preproc" >&6
4725
4726 # So?  What about this header?
4727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4728   yes:no: )
4729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4733     ac_header_preproc=yes
4734     ;;
4735   no:yes:* )
4736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4748     (
4749       cat <<\_ASBOX
4750 ## -------------------------------------------------- ##
4751 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
4752 ## -------------------------------------------------- ##
4753 _ASBOX
4754     ) |
4755       sed "s/^/$as_me: WARNING:     /" >&2
4756     ;;
4757 esac
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   eval "$as_ac_Header=\$ac_header_preproc"
4764 fi
4765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767
4768 fi
4769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4770   cat >>confdefs.h <<_ACEOF
4771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4772 _ACEOF
4773
4774 fi
4775
4776 done
4777
4778 ac_ext=cc
4779 ac_cpp='$CXXCPP $CPPFLAGS'
4780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4783 if test -n "$ac_tool_prefix"; then
4784   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4785   do
4786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4788 echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4790 if test "${ac_cv_prog_CXX+set}" = set; then
4791   echo $ECHO_N "(cached) $ECHO_C" >&6
4792 else
4793   if test -n "$CXX"; then
4794   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4798 do
4799   IFS=$as_save_IFS
4800   test -z "$as_dir" && as_dir=.
4801   for ac_exec_ext in '' $ac_executable_extensions; do
4802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805     break 2
4806   fi
4807 done
4808 done
4809
4810 fi
4811 fi
4812 CXX=$ac_cv_prog_CXX
4813 if test -n "$CXX"; then
4814   echo "$as_me:$LINENO: result: $CXX" >&5
4815 echo "${ECHO_T}$CXX" >&6
4816 else
4817   echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6
4819 fi
4820
4821     test -n "$CXX" && break
4822   done
4823 fi
4824 if test -z "$CXX"; then
4825   ac_ct_CXX=$CXX
4826   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4827 do
4828   # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   if test -n "$ac_ct_CXX"; then
4836   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843   for ac_exec_ext in '' $ac_executable_extensions; do
4844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845     ac_cv_prog_ac_ct_CXX="$ac_prog"
4846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850 done
4851
4852 fi
4853 fi
4854 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4855 if test -n "$ac_ct_CXX"; then
4856   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4857 echo "${ECHO_T}$ac_ct_CXX" >&6
4858 else
4859   echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4861 fi
4862
4863   test -n "$ac_ct_CXX" && break
4864 done
4865 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4866
4867   CXX=$ac_ct_CXX
4868 fi
4869
4870
4871 # Provide some information about the compiler.
4872 echo "$as_me:$LINENO:" \
4873      "checking for C++ compiler version" >&5
4874 ac_compiler=`set X $ac_compile; echo $2`
4875 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4876   (eval $ac_compiler --version </dev/null >&5) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }
4880 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4881   (eval $ac_compiler -v </dev/null >&5) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }
4885 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4886   (eval $ac_compiler -V </dev/null >&5) 2>&5
4887   ac_status=$?
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); }
4890
4891 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4892 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4893 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h.  */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h.  */
4902
4903 int
4904 main ()
4905 {
4906 #ifndef __GNUC__
4907        choke me
4908 #endif
4909
4910   ;
4911   return 0;
4912 }
4913 _ACEOF
4914 rm -f conftest.$ac_objext
4915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4916   (eval $ac_compile) 2>conftest.er1
4917   ac_status=$?
4918   grep -v '^ *+' conftest.er1 >conftest.err
4919   rm -f conftest.er1
4920   cat conftest.err >&5
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); } &&
4923          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925   (eval $ac_try) 2>&5
4926   ac_status=$?
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); }; } &&
4929          { ac_try='test -s conftest.$ac_objext'
4930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931   (eval $ac_try) 2>&5
4932   ac_status=$?
4933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934   (exit $ac_status); }; }; then
4935   ac_compiler_gnu=yes
4936 else
4937   echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4939
4940 ac_compiler_gnu=no
4941 fi
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4944
4945 fi
4946 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4947 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4948 GXX=`test $ac_compiler_gnu = yes && echo yes`
4949 ac_test_CXXFLAGS=${CXXFLAGS+set}
4950 ac_save_CXXFLAGS=$CXXFLAGS
4951 CXXFLAGS="-g"
4952 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4953 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4954 if test "${ac_cv_prog_cxx_g+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   cat >conftest.$ac_ext <<_ACEOF
4958 /* confdefs.h.  */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h.  */
4963
4964 int
4965 main ()
4966 {
4967
4968   ;
4969   return 0;
4970 }
4971 _ACEOF
4972 rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974   (eval $ac_compile) 2>conftest.er1
4975   ac_status=$?
4976   grep -v '^ *+' conftest.er1 >conftest.err
4977   rm -f conftest.er1
4978   cat conftest.err >&5
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); } &&
4981          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983   (eval $ac_try) 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); }; } &&
4987          { ac_try='test -s conftest.$ac_objext'
4988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4989   (eval $ac_try) 2>&5
4990   ac_status=$?
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); }; }; then
4993   ac_cv_prog_cxx_g=yes
4994 else
4995   echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 ac_cv_prog_cxx_g=no
4999 fi
5000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5001 fi
5002 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5003 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5004 if test "$ac_test_CXXFLAGS" = set; then
5005   CXXFLAGS=$ac_save_CXXFLAGS
5006 elif test $ac_cv_prog_cxx_g = yes; then
5007   if test "$GXX" = yes; then
5008     CXXFLAGS="-g -O2"
5009   else
5010     CXXFLAGS="-g"
5011   fi
5012 else
5013   if test "$GXX" = yes; then
5014     CXXFLAGS="-O2"
5015   else
5016     CXXFLAGS=
5017   fi
5018 fi
5019 for ac_declaration in \
5020    '' \
5021    'extern "C" void std::exit (int) throw (); using std::exit;' \
5022    'extern "C" void std::exit (int); using std::exit;' \
5023    'extern "C" void exit (int) throw ();' \
5024    'extern "C" void exit (int);' \
5025    'void exit (int);'
5026 do
5027   cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h.  */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h.  */
5033 $ac_declaration
5034 #include <stdlib.h>
5035 int
5036 main ()
5037 {
5038 exit (42);
5039   ;
5040   return 0;
5041 }
5042 _ACEOF
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5045   (eval $ac_compile) 2>conftest.er1
5046   ac_status=$?
5047   grep -v '^ *+' conftest.er1 >conftest.err
5048   rm -f conftest.er1
5049   cat conftest.err >&5
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); } &&
5052          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054   (eval $ac_try) 2>&5
5055   ac_status=$?
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); }; } &&
5058          { ac_try='test -s conftest.$ac_objext'
5059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060   (eval $ac_try) 2>&5
5061   ac_status=$?
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); }; }; then
5064   :
5065 else
5066   echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 continue
5070 fi
5071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5072   cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h.  */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h.  */
5078 $ac_declaration
5079 int
5080 main ()
5081 {
5082 exit (42);
5083   ;
5084   return 0;
5085 }
5086 _ACEOF
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5089   (eval $ac_compile) 2>conftest.er1
5090   ac_status=$?
5091   grep -v '^ *+' conftest.er1 >conftest.err
5092   rm -f conftest.er1
5093   cat conftest.err >&5
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); } &&
5096          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098   (eval $ac_try) 2>&5
5099   ac_status=$?
5100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); }; } &&
5102          { ac_try='test -s conftest.$ac_objext'
5103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104   (eval $ac_try) 2>&5
5105   ac_status=$?
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); }; }; then
5108   break
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 fi
5114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5115 done
5116 rm -f conftest*
5117 if test -n "$ac_declaration"; then
5118   echo '#ifdef __cplusplus' >>confdefs.h
5119   echo $ac_declaration      >>confdefs.h
5120   echo '#endif'             >>confdefs.h
5121 fi
5122
5123 ac_ext=cc
5124 ac_cpp='$CXXCPP $CPPFLAGS'
5125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5128
5129 depcc="$CXX"  am_compiler_list=
5130
5131 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5132 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5133 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5137   # We make a subdir and do the tests there.  Otherwise we can end up
5138   # making bogus files that we don't know about and never remove.  For
5139   # instance it was reported that on HP-UX the gcc test will end up
5140   # making a dummy file named `D' -- because `-MD' means `put the output
5141   # in D'.
5142   mkdir conftest.dir
5143   # Copy depcomp to subdir because otherwise we won't find it if we're
5144   # using a relative directory.
5145   cp "$am_depcomp" conftest.dir
5146   cd conftest.dir
5147   # We will build objects and dependencies in a subdirectory because
5148   # it helps to detect inapplicable dependency modes.  For instance
5149   # both Tru64's cc and ICC support -MD to output dependencies as a
5150   # side effect of compilation, but ICC will put the dependencies in
5151   # the current directory while Tru64 will put them in the object
5152   # directory.
5153   mkdir sub
5154
5155   am_cv_CXX_dependencies_compiler_type=none
5156   if test "$am_compiler_list" = ""; then
5157      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5158   fi
5159   for depmode in $am_compiler_list; do
5160     # Setup a source with many dependencies, because some compilers
5161     # like to wrap large dependency lists on column 80 (with \), and
5162     # we should not choose a depcomp mode which is confused by this.
5163     #
5164     # We need to recreate these files for each test, as the compiler may
5165     # overwrite some of them when testing with obscure command lines.
5166     # This happens at least with the AIX C compiler.
5167     : > sub/conftest.c
5168     for i in 1 2 3 4 5 6; do
5169       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5170       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5171       # Solaris 8's {/usr,}/bin/sh.
5172       touch sub/conftst$i.h
5173     done
5174     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5175
5176     case $depmode in
5177     nosideeffect)
5178       # after this tag, mechanisms are not by side-effect, so they'll
5179       # only be used when explicitly requested
5180       if test "x$enable_dependency_tracking" = xyes; then
5181         continue
5182       else
5183         break
5184       fi
5185       ;;
5186     none) break ;;
5187     esac
5188     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5189     # mode.  It turns out that the SunPro C++ compiler does not properly
5190     # handle `-M -o', and we need to detect this.
5191     if depmode=$depmode \
5192        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5193        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5194        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5195          >/dev/null 2>conftest.err &&
5196        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5197        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5198        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5199       # icc doesn't choke on unknown options, it will just issue warnings
5200       # or remarks (even with -Werror).  So we grep stderr for any message
5201       # that says an option was ignored or not supported.
5202       # When given -MP, icc 7.0 and 7.1 complain thusly:
5203       #   icc: Command line warning: ignoring option '-M'; no argument required
5204       # The diagnosis changed in icc 8.0:
5205       #   icc: Command line remark: option '-MP' not supported
5206       if (grep 'ignoring option' conftest.err ||
5207           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5208         am_cv_CXX_dependencies_compiler_type=$depmode
5209         break
5210       fi
5211     fi
5212   done
5213
5214   cd ..
5215   rm -rf conftest.dir
5216 else
5217   am_cv_CXX_dependencies_compiler_type=none
5218 fi
5219
5220 fi
5221 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5222 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5223 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5224
5225
5226
5227 if
5228   test "x$enable_dependency_tracking" != xno \
5229   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5230   am__fastdepCXX_TRUE=
5231   am__fastdepCXX_FALSE='#'
5232 else
5233   am__fastdepCXX_TRUE='#'
5234   am__fastdepCXX_FALSE=
5235 fi
5236
5237
5238
5239
5240 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5241     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5242     (test "X$CXX" != "Xg++"))) ; then
5243   ac_ext=cc
5244 ac_cpp='$CXXCPP $CPPFLAGS'
5245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5248 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5249 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5250 if test -z "$CXXCPP"; then
5251   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5252   echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254       # Double quotes because CXXCPP needs to be expanded
5255     for CXXCPP in "$CXX -E" "/lib/cpp"
5256     do
5257       ac_preproc_ok=false
5258 for ac_cxx_preproc_warn_flag in '' yes
5259 do
5260   # Use a header file that comes with gcc, so configuring glibc
5261   # with a fresh cross-compiler works.
5262   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5263   # <limits.h> exists even on freestanding compilers.
5264   # On the NeXT, cc -E runs the code through the compiler's parser,
5265   # not just through cpp. "Syntax error" is here to catch this case.
5266   cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h.  */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h.  */
5272 #ifdef __STDC__
5273 # include <limits.h>
5274 #else
5275 # include <assert.h>
5276 #endif
5277                      Syntax error
5278 _ACEOF
5279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5281   ac_status=$?
5282   grep -v '^ *+' conftest.er1 >conftest.err
5283   rm -f conftest.er1
5284   cat conftest.err >&5
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); } >/dev/null; then
5287   if test -s conftest.err; then
5288     ac_cpp_err=$ac_cxx_preproc_warn_flag
5289     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5290   else
5291     ac_cpp_err=
5292   fi
5293 else
5294   ac_cpp_err=yes
5295 fi
5296 if test -z "$ac_cpp_err"; then
5297   :
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302   # Broken: fails on valid input.
5303 continue
5304 fi
5305 rm -f conftest.err conftest.$ac_ext
5306
5307   # OK, works on sane cases.  Now check whether non-existent headers
5308   # can be detected and how.
5309   cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h.  */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h.  */
5315 #include <ac_nonexistent.h>
5316 _ACEOF
5317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
5322   cat conftest.err >&5
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } >/dev/null; then
5325   if test -s conftest.err; then
5326     ac_cpp_err=$ac_cxx_preproc_warn_flag
5327     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5328   else
5329     ac_cpp_err=
5330   fi
5331 else
5332   ac_cpp_err=yes
5333 fi
5334 if test -z "$ac_cpp_err"; then
5335   # Broken: success on invalid input.
5336 continue
5337 else
5338   echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341   # Passes both tests.
5342 ac_preproc_ok=:
5343 break
5344 fi
5345 rm -f conftest.err conftest.$ac_ext
5346
5347 done
5348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5349 rm -f conftest.err conftest.$ac_ext
5350 if $ac_preproc_ok; then
5351   break
5352 fi
5353
5354     done
5355     ac_cv_prog_CXXCPP=$CXXCPP
5356
5357 fi
5358   CXXCPP=$ac_cv_prog_CXXCPP
5359 else
5360   ac_cv_prog_CXXCPP=$CXXCPP
5361 fi
5362 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5363 echo "${ECHO_T}$CXXCPP" >&6
5364 ac_preproc_ok=false
5365 for ac_cxx_preproc_warn_flag in '' yes
5366 do
5367   # Use a header file that comes with gcc, so configuring glibc
5368   # with a fresh cross-compiler works.
5369   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5370   # <limits.h> exists even on freestanding compilers.
5371   # On the NeXT, cc -E runs the code through the compiler's parser,
5372   # not just through cpp. "Syntax error" is here to catch this case.
5373   cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379 #ifdef __STDC__
5380 # include <limits.h>
5381 #else
5382 # include <assert.h>
5383 #endif
5384                      Syntax error
5385 _ACEOF
5386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5388   ac_status=$?
5389   grep -v '^ *+' conftest.er1 >conftest.err
5390   rm -f conftest.er1
5391   cat conftest.err >&5
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); } >/dev/null; then
5394   if test -s conftest.err; then
5395     ac_cpp_err=$ac_cxx_preproc_warn_flag
5396     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5397   else
5398     ac_cpp_err=
5399   fi
5400 else
5401   ac_cpp_err=yes
5402 fi
5403 if test -z "$ac_cpp_err"; then
5404   :
5405 else
5406   echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5408
5409   # Broken: fails on valid input.
5410 continue
5411 fi
5412 rm -f conftest.err conftest.$ac_ext
5413
5414   # OK, works on sane cases.  Now check whether non-existent headers
5415   # can be detected and how.
5416   cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h.  */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h.  */
5422 #include <ac_nonexistent.h>
5423 _ACEOF
5424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5425   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5426   ac_status=$?
5427   grep -v '^ *+' conftest.er1 >conftest.err
5428   rm -f conftest.er1
5429   cat conftest.err >&5
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); } >/dev/null; then
5432   if test -s conftest.err; then
5433     ac_cpp_err=$ac_cxx_preproc_warn_flag
5434     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5435   else
5436     ac_cpp_err=
5437   fi
5438 else
5439   ac_cpp_err=yes
5440 fi
5441 if test -z "$ac_cpp_err"; then
5442   # Broken: success on invalid input.
5443 continue
5444 else
5445   echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5447
5448   # Passes both tests.
5449 ac_preproc_ok=:
5450 break
5451 fi
5452 rm -f conftest.err conftest.$ac_ext
5453
5454 done
5455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5456 rm -f conftest.err conftest.$ac_ext
5457 if $ac_preproc_ok; then
5458   :
5459 else
5460   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5461 See \`config.log' for more details." >&5
5462 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5463 See \`config.log' for more details." >&2;}
5464    { (exit 1); exit 1; }; }
5465 fi
5466
5467 ac_ext=cc
5468 ac_cpp='$CXXCPP $CPPFLAGS'
5469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5472
5473 fi
5474
5475
5476 ac_ext=f
5477 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5478 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5480 if test -n "$ac_tool_prefix"; then
5481   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5482   do
5483     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5485 echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487 if test "${ac_cv_prog_F77+set}" = set; then
5488   echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490   if test -n "$F77"; then
5491   ac_cv_prog_F77="$F77" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498   for ac_exec_ext in '' $ac_executable_extensions; do
5499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505 done
5506
5507 fi
5508 fi
5509 F77=$ac_cv_prog_F77
5510 if test -n "$F77"; then
5511   echo "$as_me:$LINENO: result: $F77" >&5
5512 echo "${ECHO_T}$F77" >&6
5513 else
5514   echo "$as_me:$LINENO: result: no" >&5
5515 echo "${ECHO_T}no" >&6
5516 fi
5517
5518     test -n "$F77" && break
5519   done
5520 fi
5521 if test -z "$F77"; then
5522   ac_ct_F77=$F77
5523   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5524 do
5525   # Extract the first word of "$ac_prog", so it can be a program name with args.
5526 set dummy $ac_prog; ac_word=$2
5527 echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5529 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5530   echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532   if test -n "$ac_ct_F77"; then
5533   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538   IFS=$as_save_IFS
5539   test -z "$as_dir" && as_dir=.
5540   for ac_exec_ext in '' $ac_executable_extensions; do
5541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542     ac_cv_prog_ac_ct_F77="$ac_prog"
5543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544     break 2
5545   fi
5546 done
5547 done
5548
5549 fi
5550 fi
5551 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5552 if test -n "$ac_ct_F77"; then
5553   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5554 echo "${ECHO_T}$ac_ct_F77" >&6
5555 else
5556   echo "$as_me:$LINENO: result: no" >&5
5557 echo "${ECHO_T}no" >&6
5558 fi
5559
5560   test -n "$ac_ct_F77" && break
5561 done
5562
5563   F77=$ac_ct_F77
5564 fi
5565
5566
5567 # Provide some information about the compiler.
5568 echo "$as_me:5568:" \
5569      "checking for Fortran 77 compiler version" >&5
5570 ac_compiler=`set X $ac_compile; echo $2`
5571 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5572   (eval $ac_compiler --version </dev/null >&5) 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); }
5576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5577   (eval $ac_compiler -v </dev/null >&5) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }
5581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5582   (eval $ac_compiler -V </dev/null >&5) 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); }
5586 rm -f a.out
5587
5588 # If we don't use `.F' as extension, the preprocessor is not run on the
5589 # input file.  (Note that this only needs to work for GNU compilers.)
5590 ac_save_ext=$ac_ext
5591 ac_ext=F
5592 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5593 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5594 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5595   echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597   cat >conftest.$ac_ext <<_ACEOF
5598       program main
5599 #ifndef __GNUC__
5600        choke me
5601 #endif
5602
5603       end
5604 _ACEOF
5605 rm -f conftest.$ac_objext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607   (eval $ac_compile) 2>conftest.er1
5608   ac_status=$?
5609   grep -v '^ *+' conftest.er1 >conftest.err
5610   rm -f conftest.er1
5611   cat conftest.err >&5
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); } &&
5614          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; } &&
5620          { ac_try='test -s conftest.$ac_objext'
5621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622   (eval $ac_try) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; }; then
5626   ac_compiler_gnu=yes
5627 else
5628   echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631 ac_compiler_gnu=no
5632 fi
5633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5634 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5635
5636 fi
5637 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5638 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5639 ac_ext=$ac_save_ext
5640 ac_test_FFLAGS=${FFLAGS+set}
5641 ac_save_FFLAGS=$FFLAGS
5642 FFLAGS=
5643 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5644 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5645 if test "${ac_cv_prog_f77_g+set}" = set; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   FFLAGS=-g
5649 cat >conftest.$ac_ext <<_ACEOF
5650       program main
5651
5652       end
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5656   (eval $ac_compile) 2>conftest.er1
5657   ac_status=$?
5658   grep -v '^ *+' conftest.er1 >conftest.err
5659   rm -f conftest.er1
5660   cat conftest.err >&5
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); } &&
5663          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665   (eval $ac_try) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); }; } &&
5669          { ac_try='test -s conftest.$ac_objext'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; }; then
5675   ac_cv_prog_f77_g=yes
5676 else
5677   echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680 ac_cv_prog_f77_g=no
5681 fi
5682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5683
5684 fi
5685 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5686 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5687 if test "$ac_test_FFLAGS" = set; then
5688   FFLAGS=$ac_save_FFLAGS
5689 elif test $ac_cv_prog_f77_g = yes; then
5690   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5691     FFLAGS="-g -O2"
5692   else
5693     FFLAGS="-g"
5694   fi
5695 else
5696   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5697     FFLAGS="-O2"
5698   else
5699     FFLAGS=
5700   fi
5701 fi
5702
5703 G77=`test $ac_compiler_gnu = yes && echo yes`
5704 ac_ext=c
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5709
5710
5711
5712 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5713
5714 # find the maximum length of command line arguments
5715 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5716 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5717 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5718   echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720     i=0
5721   teststring="ABCD"
5722
5723   case $build_os in
5724   msdosdjgpp*)
5725     # On DJGPP, this test can blow up pretty badly due to problems in libc
5726     # (any single argument exceeding 2000 bytes causes a buffer overrun
5727     # during glob expansion).  Even if it were fixed, the result of this
5728     # check would be larger than it should be.
5729     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5730     ;;
5731
5732   gnu*)
5733     # Under GNU Hurd, this test is not required because there is
5734     # no limit to the length of command line arguments.
5735     # Libtool will interpret -1 as no limit whatsoever
5736     lt_cv_sys_max_cmd_len=-1;
5737     ;;
5738
5739   cygwin* | mingw*)
5740     # On Win9x/ME, this test blows up -- it succeeds, but takes
5741     # about 5 minutes as the teststring grows exponentially.
5742     # Worse, since 9x/ME are not pre-emptively multitasking,
5743     # you end up with a "frozen" computer, even though with patience
5744     # the test eventually succeeds (with a max line length of 256k).
5745     # Instead, let's just punt: use the minimum linelength reported by
5746     # all of the supported platforms: 8192 (on NT/2K/XP).
5747     lt_cv_sys_max_cmd_len=8192;
5748     ;;
5749
5750   amigaos*)
5751     # On AmigaOS with pdksh, this test takes hours, literally.
5752     # So we just punt and use a minimum line length of 8192.
5753     lt_cv_sys_max_cmd_len=8192;
5754     ;;
5755
5756   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5757     # This has been around since 386BSD, at least.  Likely further.
5758     if test -x /sbin/sysctl; then
5759       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5760     elif test -x /usr/sbin/sysctl; then
5761       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5762     else
5763       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5764     fi
5765     # And add a safety zone
5766     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5767     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5768     ;;
5769
5770   interix*)
5771     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5772     lt_cv_sys_max_cmd_len=196608
5773     ;;
5774
5775   osf*)
5776     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5777     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5778     # nice to cause kernel panics so lets avoid the loop below.
5779     # First set a reasonable default.
5780     lt_cv_sys_max_cmd_len=16384
5781     #
5782     if test -x /sbin/sysconfig; then
5783       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5784         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5785       esac
5786     fi
5787     ;;
5788   sco3.2v5*)
5789     lt_cv_sys_max_cmd_len=102400
5790     ;;
5791   sysv5* | sco5v6* | sysv4.2uw2*)
5792     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5793     if test -n "$kargmax"; then
5794       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5795     else
5796       lt_cv_sys_max_cmd_len=32768
5797     fi
5798     ;;
5799   *)
5800     # If test is not a shell built-in, we'll probably end up computing a
5801     # maximum length that is only half of the actual maximum length, but
5802     # we can't tell.
5803     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5804     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5805                = "XX$teststring") >/dev/null 2>&1 &&
5806             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5807             lt_cv_sys_max_cmd_len=$new_result &&
5808             test $i != 17 # 1/2 MB should be enough
5809     do
5810       i=`expr $i + 1`
5811       teststring=$teststring$teststring
5812     done
5813     teststring=
5814     # Add a significant safety factor because C++ compilers can tack on massive
5815     # amounts of additional arguments before passing them to the linker.
5816     # It appears as though 1/2 is a usable value.
5817     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5818     ;;
5819   esac
5820
5821 fi
5822
5823 if test -n $lt_cv_sys_max_cmd_len ; then
5824   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5825 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5826 else
5827   echo "$as_me:$LINENO: result: none" >&5
5828 echo "${ECHO_T}none" >&6
5829 fi
5830
5831
5832
5833
5834 # Check for command to grab the raw symbol name followed by C symbol from nm.
5835 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5836 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5837 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840
5841 # These are sane defaults that work on at least a few old systems.
5842 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5843
5844 # Character class describing NM global symbol codes.
5845 symcode='[BCDEGRST]'
5846
5847 # Regexp to match symbols that can be accessed directly from C.
5848 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5849
5850 # Transform an extracted symbol line into a proper C declaration
5851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5852
5853 # Transform an extracted symbol line into symbol name and symbol address
5854 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'"
5855
5856 # Define system-specific variables.
5857 case $host_os in
5858 aix*)
5859   symcode='[BCDT]'
5860   ;;
5861 cygwin* | mingw* | pw32*)
5862   symcode='[ABCDGISTW]'
5863   ;;
5864 hpux*) # Its linker distinguishes data from code symbols
5865   if test "$host_cpu" = ia64; then
5866     symcode='[ABCDEGRST]'
5867   fi
5868   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5869   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'"
5870   ;;
5871 linux*)
5872   if test "$host_cpu" = ia64; then
5873     symcode='[ABCDGIRSTW]'
5874     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5875     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'"
5876   fi
5877   ;;
5878 irix* | nonstopux*)
5879   symcode='[BCDEGRST]'
5880   ;;
5881 osf*)
5882   symcode='[BCDEGQRST]'
5883   ;;
5884 solaris*)
5885   symcode='[BDRT]'
5886   ;;
5887 sco3.2v5*)
5888   symcode='[DT]'
5889   ;;
5890 sysv4.2uw2*)
5891   symcode='[DT]'
5892   ;;
5893 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5894   symcode='[ABDT]'
5895   ;;
5896 sysv4)
5897   symcode='[DFNSTU]'
5898   ;;
5899 esac
5900
5901 # Handle CRLF in mingw tool chain
5902 opt_cr=
5903 case $build_os in
5904 mingw*)
5905   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5906   ;;
5907 esac
5908
5909 # If we're using GNU nm, then use its standard symbol codes.
5910 case `$NM -V 2>&1` in
5911 *GNU* | *'with BFD'*)
5912   symcode='[ABCDGIRSTW]' ;;
5913 esac
5914
5915 # Try without a prefix undercore, then with it.
5916 for ac_symprfx in "" "_"; do
5917
5918   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5919   symxfrm="\\1 $ac_symprfx\\2 \\2"
5920
5921   # Write the raw and C identifiers.
5922   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5923
5924   # Check to see that the pipe works correctly.
5925   pipe_works=no
5926
5927   rm -f conftest*
5928   cat > conftest.$ac_ext <<EOF
5929 #ifdef __cplusplus
5930 extern "C" {
5931 #endif
5932 char nm_test_var;
5933 void nm_test_func(){}
5934 #ifdef __cplusplus
5935 }
5936 #endif
5937 int main(){nm_test_var='a';nm_test_func();return(0);}
5938 EOF
5939
5940   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941   (eval $ac_compile) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; then
5945     # Now try to grab the symbols.
5946     nlist=conftest.nm
5947     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5948   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } && test -s "$nlist"; then
5952       # Try sorting and uniquifying the output.
5953       if sort "$nlist" | uniq > "$nlist"T; then
5954         mv -f "$nlist"T "$nlist"
5955       else
5956         rm -f "$nlist"T
5957       fi
5958
5959       # Make sure that we snagged all the symbols we need.
5960       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5961         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5962           cat <<EOF > conftest.$ac_ext
5963 #ifdef __cplusplus
5964 extern "C" {
5965 #endif
5966
5967 EOF
5968           # Now generate the symbol file.
5969           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5970
5971           cat <<EOF >> conftest.$ac_ext
5972 #if defined (__STDC__) && __STDC__
5973 # define lt_ptr_t void *
5974 #else
5975 # define lt_ptr_t char *
5976 # define const
5977 #endif
5978
5979 /* The mapping between symbol names and symbols. */
5980 const struct {
5981   const char *name;
5982   lt_ptr_t address;
5983 }
5984 lt_preloaded_symbols[] =
5985 {
5986 EOF
5987           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5988           cat <<\EOF >> conftest.$ac_ext
5989   {0, (lt_ptr_t) 0}
5990 };
5991
5992 #ifdef __cplusplus
5993 }
5994 #endif
5995 EOF
5996           # Now try linking the two files.
5997           mv conftest.$ac_objext conftstm.$ac_objext
5998           lt_save_LIBS="$LIBS"
5999           lt_save_CFLAGS="$CFLAGS"
6000           LIBS="conftstm.$ac_objext"
6001           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6002           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6003   (eval $ac_link) 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6007             pipe_works=yes
6008           fi
6009           LIBS="$lt_save_LIBS"
6010           CFLAGS="$lt_save_CFLAGS"
6011         else
6012           echo "cannot find nm_test_func in $nlist" >&5
6013         fi
6014       else
6015         echo "cannot find nm_test_var in $nlist" >&5
6016       fi
6017     else
6018       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6019     fi
6020   else
6021     echo "$progname: failed program was:" >&5
6022     cat conftest.$ac_ext >&5
6023   fi
6024   rm -f conftest* conftst*
6025
6026   # Do not use the global_symbol_pipe unless it works.
6027   if test "$pipe_works" = yes; then
6028     break
6029   else
6030     lt_cv_sys_global_symbol_pipe=
6031   fi
6032 done
6033
6034 fi
6035
6036 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6037   lt_cv_sys_global_symbol_to_cdecl=
6038 fi
6039 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6040   echo "$as_me:$LINENO: result: failed" >&5
6041 echo "${ECHO_T}failed" >&6
6042 else
6043   echo "$as_me:$LINENO: result: ok" >&5
6044 echo "${ECHO_T}ok" >&6
6045 fi
6046
6047 echo "$as_me:$LINENO: checking for objdir" >&5
6048 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6049 if test "${lt_cv_objdir+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   rm -f .libs 2>/dev/null
6053 mkdir .libs 2>/dev/null
6054 if test -d .libs; then
6055   lt_cv_objdir=.libs
6056 else
6057   # MS-DOS does not allow filenames that begin with a dot.
6058   lt_cv_objdir=_libs
6059 fi
6060 rmdir .libs 2>/dev/null
6061 fi
6062 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6063 echo "${ECHO_T}$lt_cv_objdir" >&6
6064 objdir=$lt_cv_objdir
6065
6066
6067
6068
6069
6070 case $host_os in
6071 aix3*)
6072   # AIX sometimes has problems with the GCC collect2 program.  For some
6073   # reason, if we set the COLLECT_NAMES environment variable, the problems
6074   # vanish in a puff of smoke.
6075   if test "X${COLLECT_NAMES+set}" != Xset; then
6076     COLLECT_NAMES=
6077     export COLLECT_NAMES
6078   fi
6079   ;;
6080 esac
6081
6082 # Sed substitution that helps us do robust quoting.  It backslashifies
6083 # metacharacters that are still active within double-quoted strings.
6084 Xsed='sed -e 1s/^X//'
6085 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6086
6087 # Same as above, but do not quote variable references.
6088 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6089
6090 # Sed substitution to delay expansion of an escaped shell variable in a
6091 # double_quote_subst'ed string.
6092 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6093
6094 # Sed substitution to avoid accidental globbing in evaled expressions
6095 no_glob_subst='s/\*/\\\*/g'
6096
6097 # Constants:
6098 rm="rm -f"
6099
6100 # Global variables:
6101 default_ofile=libtool
6102 can_build_shared=yes
6103
6104 # All known linkers require a `.a' archive for static linking (except MSVC,
6105 # which needs '.lib').
6106 libext=a
6107 ltmain="$ac_aux_dir/ltmain.sh"
6108 ofile="$default_ofile"
6109 with_gnu_ld="$lt_cv_prog_gnu_ld"
6110
6111 if test -n "$ac_tool_prefix"; then
6112   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6113 set dummy ${ac_tool_prefix}ar; ac_word=$2
6114 echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6116 if test "${ac_cv_prog_AR+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   if test -n "$AR"; then
6120   ac_cv_prog_AR="$AR" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6124 do
6125   IFS=$as_save_IFS
6126   test -z "$as_dir" && as_dir=.
6127   for ac_exec_ext in '' $ac_executable_extensions; do
6128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129     ac_cv_prog_AR="${ac_tool_prefix}ar"
6130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131     break 2
6132   fi
6133 done
6134 done
6135
6136 fi
6137 fi
6138 AR=$ac_cv_prog_AR
6139 if test -n "$AR"; then
6140   echo "$as_me:$LINENO: result: $AR" >&5
6141 echo "${ECHO_T}$AR" >&6
6142 else
6143   echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6
6145 fi
6146
6147 fi
6148 if test -z "$ac_cv_prog_AR"; then
6149   ac_ct_AR=$AR
6150   # Extract the first word of "ar", so it can be a program name with args.
6151 set dummy ar; ac_word=$2
6152 echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6154 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6155   echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157   if test -n "$ac_ct_AR"; then
6158   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163   IFS=$as_save_IFS
6164   test -z "$as_dir" && as_dir=.
6165   for ac_exec_ext in '' $ac_executable_extensions; do
6166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167     ac_cv_prog_ac_ct_AR="ar"
6168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169     break 2
6170   fi
6171 done
6172 done
6173
6174   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6175 fi
6176 fi
6177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6178 if test -n "$ac_ct_AR"; then
6179   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6180 echo "${ECHO_T}$ac_ct_AR" >&6
6181 else
6182   echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6
6184 fi
6185
6186   AR=$ac_ct_AR
6187 else
6188   AR="$ac_cv_prog_AR"
6189 fi
6190
6191 if test -n "$ac_tool_prefix"; then
6192   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6194 echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6196 if test "${ac_cv_prog_RANLIB+set}" = set; then
6197   echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199   if test -n "$RANLIB"; then
6200   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_exec_ext in '' $ac_executable_extensions; do
6208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214 done
6215
6216 fi
6217 fi
6218 RANLIB=$ac_cv_prog_RANLIB
6219 if test -n "$RANLIB"; then
6220   echo "$as_me:$LINENO: result: $RANLIB" >&5
6221 echo "${ECHO_T}$RANLIB" >&6
6222 else
6223   echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6
6225 fi
6226
6227 fi
6228 if test -z "$ac_cv_prog_RANLIB"; then
6229   ac_ct_RANLIB=$RANLIB
6230   # Extract the first word of "ranlib", so it can be a program name with args.
6231 set dummy ranlib; ac_word=$2
6232 echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6234 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 else
6237   if test -n "$ac_ct_RANLIB"; then
6238   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6247     ac_cv_prog_ac_ct_RANLIB="ranlib"
6248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253
6254   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6255 fi
6256 fi
6257 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6258 if test -n "$ac_ct_RANLIB"; then
6259   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6260 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6261 else
6262   echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6
6264 fi
6265
6266   RANLIB=$ac_ct_RANLIB
6267 else
6268   RANLIB="$ac_cv_prog_RANLIB"
6269 fi
6270
6271 if test -n "$ac_tool_prefix"; then
6272   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}strip; ac_word=$2
6274 echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6276 if test "${ac_cv_prog_STRIP+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   if test -n "$STRIP"; then
6280   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287   for ac_exec_ext in '' $ac_executable_extensions; do
6288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6289     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294 done
6295
6296 fi
6297 fi
6298 STRIP=$ac_cv_prog_STRIP
6299 if test -n "$STRIP"; then
6300   echo "$as_me:$LINENO: result: $STRIP" >&5
6301 echo "${ECHO_T}$STRIP" >&6
6302 else
6303   echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6
6305 fi
6306
6307 fi
6308 if test -z "$ac_cv_prog_STRIP"; then
6309   ac_ct_STRIP=$STRIP
6310   # Extract the first word of "strip", so it can be a program name with args.
6311 set dummy strip; ac_word=$2
6312 echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6314 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   if test -n "$ac_ct_STRIP"; then
6318   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325   for ac_exec_ext in '' $ac_executable_extensions; do
6326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327     ac_cv_prog_ac_ct_STRIP="strip"
6328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332 done
6333
6334   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6335 fi
6336 fi
6337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6338 if test -n "$ac_ct_STRIP"; then
6339   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6340 echo "${ECHO_T}$ac_ct_STRIP" >&6
6341 else
6342   echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6
6344 fi
6345
6346   STRIP=$ac_ct_STRIP
6347 else
6348   STRIP="$ac_cv_prog_STRIP"
6349 fi
6350
6351
6352 old_CC="$CC"
6353 old_CFLAGS="$CFLAGS"
6354
6355 # Set sane defaults for various variables
6356 test -z "$AR" && AR=ar
6357 test -z "$AR_FLAGS" && AR_FLAGS=cru
6358 test -z "$AS" && AS=as
6359 test -z "$CC" && CC=cc
6360 test -z "$LTCC" && LTCC=$CC
6361 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6362 test -z "$DLLTOOL" && DLLTOOL=dlltool
6363 test -z "$LD" && LD=ld
6364 test -z "$LN_S" && LN_S="ln -s"
6365 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6366 test -z "$NM" && NM=nm
6367 test -z "$SED" && SED=sed
6368 test -z "$OBJDUMP" && OBJDUMP=objdump
6369 test -z "$RANLIB" && RANLIB=:
6370 test -z "$STRIP" && STRIP=:
6371 test -z "$ac_objext" && ac_objext=o
6372
6373 # Determine commands to create old-style static archives.
6374 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6375 old_postinstall_cmds='chmod 644 $oldlib'
6376 old_postuninstall_cmds=
6377
6378 if test -n "$RANLIB"; then
6379   case $host_os in
6380   openbsd*)
6381     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6382     ;;
6383   *)
6384     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6385     ;;
6386   esac
6387   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6388 fi
6389
6390 for cc_temp in $compiler""; do
6391   case $cc_temp in
6392     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6393     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6394     \-*) ;;
6395     *) break;;
6396   esac
6397 done
6398 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6399
6400
6401 # Only perform the check for file, if the check method requires it
6402 case $deplibs_check_method in
6403 file_magic*)
6404   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6405     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6406 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6407 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410   case $MAGIC_CMD in
6411 [\\/*] |  ?:[\\/]*)
6412   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6413   ;;
6414 *)
6415   lt_save_MAGIC_CMD="$MAGIC_CMD"
6416   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6417   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6418   for ac_dir in $ac_dummy; do
6419     IFS="$lt_save_ifs"
6420     test -z "$ac_dir" && ac_dir=.
6421     if test -f $ac_dir/${ac_tool_prefix}file; then
6422       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6423       if test -n "$file_magic_test_file"; then
6424         case $deplibs_check_method in
6425         "file_magic "*)
6426           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6427           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6428           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6429             $EGREP "$file_magic_regex" > /dev/null; then
6430             :
6431           else
6432             cat <<EOF 1>&2
6433
6434 *** Warning: the command libtool uses to detect shared libraries,
6435 *** $file_magic_cmd, produces output that libtool cannot recognize.
6436 *** The result is that libtool may fail to recognize shared libraries
6437 *** as such.  This will affect the creation of libtool libraries that
6438 *** depend on shared libraries, but programs linked with such libtool
6439 *** libraries will work regardless of this problem.  Nevertheless, you
6440 *** may want to report the problem to your system manager and/or to
6441 *** bug-libtool@gnu.org
6442
6443 EOF
6444           fi ;;
6445         esac
6446       fi
6447       break
6448     fi
6449   done
6450   IFS="$lt_save_ifs"
6451   MAGIC_CMD="$lt_save_MAGIC_CMD"
6452   ;;
6453 esac
6454 fi
6455
6456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6457 if test -n "$MAGIC_CMD"; then
6458   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6459 echo "${ECHO_T}$MAGIC_CMD" >&6
6460 else
6461   echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6
6463 fi
6464
6465 if test -z "$lt_cv_path_MAGIC_CMD"; then
6466   if test -n "$ac_tool_prefix"; then
6467     echo "$as_me:$LINENO: checking for file" >&5
6468 echo $ECHO_N "checking for file... $ECHO_C" >&6
6469 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472   case $MAGIC_CMD in
6473 [\\/*] |  ?:[\\/]*)
6474   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6475   ;;
6476 *)
6477   lt_save_MAGIC_CMD="$MAGIC_CMD"
6478   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6479   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6480   for ac_dir in $ac_dummy; do
6481     IFS="$lt_save_ifs"
6482     test -z "$ac_dir" && ac_dir=.
6483     if test -f $ac_dir/file; then
6484       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6485       if test -n "$file_magic_test_file"; then
6486         case $deplibs_check_method in
6487         "file_magic "*)
6488           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6489           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6490           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6491             $EGREP "$file_magic_regex" > /dev/null; then
6492             :
6493           else
6494             cat <<EOF 1>&2
6495
6496 *** Warning: the command libtool uses to detect shared libraries,
6497 *** $file_magic_cmd, produces output that libtool cannot recognize.
6498 *** The result is that libtool may fail to recognize shared libraries
6499 *** as such.  This will affect the creation of libtool libraries that
6500 *** depend on shared libraries, but programs linked with such libtool
6501 *** libraries will work regardless of this problem.  Nevertheless, you
6502 *** may want to report the problem to your system manager and/or to
6503 *** bug-libtool@gnu.org
6504
6505 EOF
6506           fi ;;
6507         esac
6508       fi
6509       break
6510     fi
6511   done
6512   IFS="$lt_save_ifs"
6513   MAGIC_CMD="$lt_save_MAGIC_CMD"
6514   ;;
6515 esac
6516 fi
6517
6518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6519 if test -n "$MAGIC_CMD"; then
6520   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6521 echo "${ECHO_T}$MAGIC_CMD" >&6
6522 else
6523   echo "$as_me:$LINENO: result: no" >&5
6524 echo "${ECHO_T}no" >&6
6525 fi
6526
6527   else
6528     MAGIC_CMD=:
6529   fi
6530 fi
6531
6532   fi
6533   ;;
6534 esac
6535
6536 enable_dlopen=no
6537 enable_win32_dll=yes
6538
6539 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6540 if test "${enable_libtool_lock+set}" = set; then
6541   enableval="$enable_libtool_lock"
6542
6543 fi;
6544 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6545
6546
6547 # Check whether --with-pic or --without-pic was given.
6548 if test "${with_pic+set}" = set; then
6549   withval="$with_pic"
6550   pic_mode="$withval"
6551 else
6552   pic_mode=default
6553 fi;
6554 test -z "$pic_mode" && pic_mode=default
6555
6556 # Use C for the default configuration in the libtool script
6557 tagname=
6558 lt_save_CC="$CC"
6559 ac_ext=c
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
6565
6566 # Source file extension for C test sources.
6567 ac_ext=c
6568
6569 # Object file extension for compiled C test sources.
6570 objext=o
6571 objext=$objext
6572
6573 # Code to be used in simple compile tests
6574 lt_simple_compile_test_code="int some_variable = 0;\n"
6575
6576 # Code to be used in simple link tests
6577 lt_simple_link_test_code='int main(){return(0);}\n'
6578
6579
6580 # If no C compiler was specified, use CC.
6581 LTCC=${LTCC-"$CC"}
6582
6583 # If no C compiler flags were specified, use CFLAGS.
6584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6585
6586 # Allow CC to be a program name with arguments.
6587 compiler=$CC
6588
6589
6590 # save warnings/boilerplate of simple test code
6591 ac_outfile=conftest.$ac_objext
6592 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6594 _lt_compiler_boilerplate=`cat conftest.err`
6595 $rm conftest*
6596
6597 ac_outfile=conftest.$ac_objext
6598 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6600 _lt_linker_boilerplate=`cat conftest.err`
6601 $rm conftest*
6602
6603
6604
6605 lt_prog_compiler_no_builtin_flag=
6606
6607 if test "$GCC" = yes; then
6608   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6609
6610
6611 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6612 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6613 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6614   echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616   lt_cv_prog_compiler_rtti_exceptions=no
6617   ac_outfile=conftest.$ac_objext
6618    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6619    lt_compiler_flag="-fno-rtti -fno-exceptions"
6620    # Insert the option either (1) after the last *FLAGS variable, or
6621    # (2) before a word containing "conftest.", or (3) at the end.
6622    # Note that $ac_compile itself does not contain backslashes and begins
6623    # with a dollar sign (not a hyphen), so the echo should work correctly.
6624    # The option is referenced via a variable to avoid confusing sed.
6625    lt_compile=`echo "$ac_compile" | $SED \
6626    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6627    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6628    -e 's:$: $lt_compiler_flag:'`
6629    (eval echo "\"\$as_me:6629: $lt_compile\"" >&5)
6630    (eval "$lt_compile" 2>conftest.err)
6631    ac_status=$?
6632    cat conftest.err >&5
6633    echo "$as_me:6633: \$? = $ac_status" >&5
6634    if (exit $ac_status) && test -s "$ac_outfile"; then
6635      # The compiler can only warn and ignore the option if not recognized
6636      # So say no if there are warnings other than the usual output.
6637      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6638      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6639      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6640        lt_cv_prog_compiler_rtti_exceptions=yes
6641      fi
6642    fi
6643    $rm conftest*
6644
6645 fi
6646 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6647 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6648
6649 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6650     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6651 else
6652     :
6653 fi
6654
6655 fi
6656
6657 lt_prog_compiler_wl=
6658 lt_prog_compiler_pic=
6659 lt_prog_compiler_static=
6660
6661 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6662 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6663
6664   if test "$GCC" = yes; then
6665     lt_prog_compiler_wl='-Wl,'
6666     lt_prog_compiler_static='-static'
6667
6668     case $host_os in
6669       aix*)
6670       # All AIX code is PIC.
6671       if test "$host_cpu" = ia64; then
6672         # AIX 5 now supports IA64 processor
6673         lt_prog_compiler_static='-Bstatic'
6674       fi
6675       ;;
6676
6677     amigaos*)
6678       # FIXME: we need at least 68020 code to build shared libraries, but
6679       # adding the `-m68020' flag to GCC prevents building anything better,
6680       # like `-m68040'.
6681       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6682       ;;
6683
6684     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6685       # PIC is the default for these OSes.
6686       ;;
6687
6688     mingw* | pw32* | os2*)
6689       # This hack is so that the source file can tell whether it is being
6690       # built for inclusion in a dll (and should export symbols for example).
6691       lt_prog_compiler_pic='-DDLL_EXPORT'
6692       ;;
6693
6694     darwin* | rhapsody*)
6695       # PIC is the default on this platform
6696       # Common symbols not allowed in MH_DYLIB files
6697       lt_prog_compiler_pic='-fno-common'
6698       ;;
6699
6700     interix3*)
6701       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6702       # Instead, we relocate shared libraries at runtime.
6703       ;;
6704
6705     msdosdjgpp*)
6706       # Just because we use GCC doesn't mean we suddenly get shared libraries
6707       # on systems that don't support them.
6708       lt_prog_compiler_can_build_shared=no
6709       enable_shared=no
6710       ;;
6711
6712     sysv4*MP*)
6713       if test -d /usr/nec; then
6714         lt_prog_compiler_pic=-Kconform_pic
6715       fi
6716       ;;
6717
6718     hpux*)
6719       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6720       # not for PA HP-UX.
6721       case $host_cpu in
6722       hppa*64*|ia64*)
6723         # +Z the default
6724         ;;
6725       *)
6726         lt_prog_compiler_pic='-fPIC'
6727         ;;
6728       esac
6729       ;;
6730
6731     *)
6732       lt_prog_compiler_pic='-fPIC'
6733       ;;
6734     esac
6735   else
6736     # PORTME Check for flag to pass linker flags through the system compiler.
6737     case $host_os in
6738     aix*)
6739       lt_prog_compiler_wl='-Wl,'
6740       if test "$host_cpu" = ia64; then
6741         # AIX 5 now supports IA64 processor
6742         lt_prog_compiler_static='-Bstatic'
6743       else
6744         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6745       fi
6746       ;;
6747       darwin*)
6748         # PIC is the default on this platform
6749         # Common symbols not allowed in MH_DYLIB files
6750        case $cc_basename in
6751          xlc*)
6752          lt_prog_compiler_pic='-qnocommon'
6753          lt_prog_compiler_wl='-Wl,'
6754          ;;
6755        esac
6756        ;;
6757
6758     mingw* | pw32* | os2*)
6759       # This hack is so that the source file can tell whether it is being
6760       # built for inclusion in a dll (and should export symbols for example).
6761       lt_prog_compiler_pic='-DDLL_EXPORT'
6762       ;;
6763
6764     hpux9* | hpux10* | hpux11*)
6765       lt_prog_compiler_wl='-Wl,'
6766       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6767       # not for PA HP-UX.
6768       case $host_cpu in
6769       hppa*64*|ia64*)
6770         # +Z the default
6771         ;;
6772       *)
6773         lt_prog_compiler_pic='+Z'
6774         ;;
6775       esac
6776       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6777       lt_prog_compiler_static='${wl}-a ${wl}archive'
6778       ;;
6779
6780     irix5* | irix6* | nonstopux*)
6781       lt_prog_compiler_wl='-Wl,'
6782       # PIC (with -KPIC) is the default.
6783       lt_prog_compiler_static='-non_shared'
6784       ;;
6785
6786     newsos6)
6787       lt_prog_compiler_pic='-KPIC'
6788       lt_prog_compiler_static='-Bstatic'
6789       ;;
6790
6791     linux*)
6792       case $cc_basename in
6793       icc* | ecc*)
6794         lt_prog_compiler_wl='-Wl,'
6795         lt_prog_compiler_pic='-KPIC'
6796         lt_prog_compiler_static='-static'
6797         ;;
6798       pgcc* | pgf77* | pgf90* | pgf95*)
6799         # Portland Group compilers (*not* the Pentium gcc compiler,
6800         # which looks to be a dead project)
6801         lt_prog_compiler_wl='-Wl,'
6802         lt_prog_compiler_pic='-fpic'
6803         lt_prog_compiler_static='-Bstatic'
6804         ;;
6805       ccc*)
6806         lt_prog_compiler_wl='-Wl,'
6807         # All Alpha code is PIC.
6808         lt_prog_compiler_static='-non_shared'
6809         ;;
6810       esac
6811       ;;
6812
6813     osf3* | osf4* | osf5*)
6814       lt_prog_compiler_wl='-Wl,'
6815       # All OSF/1 code is PIC.
6816       lt_prog_compiler_static='-non_shared'
6817       ;;
6818
6819     solaris*)
6820       lt_prog_compiler_pic='-KPIC'
6821       lt_prog_compiler_static='-Bstatic'
6822       case $cc_basename in
6823       f77* | f90* | f95*)
6824         lt_prog_compiler_wl='-Qoption ld ';;
6825       *)
6826         lt_prog_compiler_wl='-Wl,';;
6827       esac
6828       ;;
6829
6830     sunos4*)
6831       lt_prog_compiler_wl='-Qoption ld '
6832       lt_prog_compiler_pic='-PIC'
6833       lt_prog_compiler_static='-Bstatic'
6834       ;;
6835
6836     sysv4 | sysv4.2uw2* | sysv4.3*)
6837       lt_prog_compiler_wl='-Wl,'
6838       lt_prog_compiler_pic='-KPIC'
6839       lt_prog_compiler_static='-Bstatic'
6840       ;;
6841
6842     sysv4*MP*)
6843       if test -d /usr/nec ;then
6844         lt_prog_compiler_pic='-Kconform_pic'
6845         lt_prog_compiler_static='-Bstatic'
6846       fi
6847       ;;
6848
6849     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6850       lt_prog_compiler_wl='-Wl,'
6851       lt_prog_compiler_pic='-KPIC'
6852       lt_prog_compiler_static='-Bstatic'
6853       ;;
6854
6855     unicos*)
6856       lt_prog_compiler_wl='-Wl,'
6857       lt_prog_compiler_can_build_shared=no
6858       ;;
6859
6860     uts4*)
6861       lt_prog_compiler_pic='-pic'
6862       lt_prog_compiler_static='-Bstatic'
6863       ;;
6864
6865     *)
6866       lt_prog_compiler_can_build_shared=no
6867       ;;
6868     esac
6869   fi
6870
6871 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6872 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6873
6874 #
6875 # Check to make sure the PIC flag actually works.
6876 #
6877 if test -n "$lt_prog_compiler_pic"; then
6878
6879 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6880 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6881 if test "${lt_prog_compiler_pic_works+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884   lt_prog_compiler_pic_works=no
6885   ac_outfile=conftest.$ac_objext
6886    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6887    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6888    # Insert the option either (1) after the last *FLAGS variable, or
6889    # (2) before a word containing "conftest.", or (3) at the end.
6890    # Note that $ac_compile itself does not contain backslashes and begins
6891    # with a dollar sign (not a hyphen), so the echo should work correctly.
6892    # The option is referenced via a variable to avoid confusing sed.
6893    lt_compile=`echo "$ac_compile" | $SED \
6894    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6895    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6896    -e 's:$: $lt_compiler_flag:'`
6897    (eval echo "\"\$as_me:6897: $lt_compile\"" >&5)
6898    (eval "$lt_compile" 2>conftest.err)
6899    ac_status=$?
6900    cat conftest.err >&5
6901    echo "$as_me:6901: \$? = $ac_status" >&5
6902    if (exit $ac_status) && test -s "$ac_outfile"; then
6903      # The compiler can only warn and ignore the option if not recognized
6904      # So say no if there are warnings other than the usual output.
6905      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6906      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6907      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6908        lt_prog_compiler_pic_works=yes
6909      fi
6910    fi
6911    $rm conftest*
6912
6913 fi
6914 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6915 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6916
6917 if test x"$lt_prog_compiler_pic_works" = xyes; then
6918     case $lt_prog_compiler_pic in
6919      "" | " "*) ;;
6920      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6921      esac
6922 else
6923     lt_prog_compiler_pic=
6924      lt_prog_compiler_can_build_shared=no
6925 fi
6926
6927 fi
6928 case $host_os in
6929   # For platforms which do not support PIC, -DPIC is meaningless:
6930   *djgpp*)
6931     lt_prog_compiler_pic=
6932     ;;
6933   *)
6934     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6935     ;;
6936 esac
6937
6938 #
6939 # Check to make sure the static flag actually works.
6940 #
6941 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6942 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6943 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6944 if test "${lt_prog_compiler_static_works+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   lt_prog_compiler_static_works=no
6948    save_LDFLAGS="$LDFLAGS"
6949    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6950    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6951    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6952      # The linker can only warn and ignore the option if not recognized
6953      # So say no if there are warnings
6954      if test -s conftest.err; then
6955        # Append any errors to the config.log.
6956        cat conftest.err 1>&5
6957        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6958        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6959        if diff conftest.exp conftest.er2 >/dev/null; then
6960          lt_prog_compiler_static_works=yes
6961        fi
6962      else
6963        lt_prog_compiler_static_works=yes
6964      fi
6965    fi
6966    $rm conftest*
6967    LDFLAGS="$save_LDFLAGS"
6968
6969 fi
6970 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6971 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6972
6973 if test x"$lt_prog_compiler_static_works" = xyes; then
6974     :
6975 else
6976     lt_prog_compiler_static=
6977 fi
6978
6979
6980 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6981 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6982 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985   lt_cv_prog_compiler_c_o=no
6986    $rm -r conftest 2>/dev/null
6987    mkdir conftest
6988    cd conftest
6989    mkdir out
6990    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6991
6992    lt_compiler_flag="-o out/conftest2.$ac_objext"
6993    # Insert the option either (1) after the last *FLAGS variable, or
6994    # (2) before a word containing "conftest.", or (3) at the end.
6995    # Note that $ac_compile itself does not contain backslashes and begins
6996    # with a dollar sign (not a hyphen), so the echo should work correctly.
6997    lt_compile=`echo "$ac_compile" | $SED \
6998    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6999    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7000    -e 's:$: $lt_compiler_flag:'`
7001    (eval echo "\"\$as_me:7001: $lt_compile\"" >&5)
7002    (eval "$lt_compile" 2>out/conftest.err)
7003    ac_status=$?
7004    cat out/conftest.err >&5
7005    echo "$as_me:7005: \$? = $ac_status" >&5
7006    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7007    then
7008      # The compiler can only warn and ignore the option if not recognized
7009      # So say no if there are warnings
7010      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7011      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7012      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7013        lt_cv_prog_compiler_c_o=yes
7014      fi
7015    fi
7016    chmod u+w . 2>&5
7017    $rm conftest*
7018    # SGI C++ compiler will create directory out/ii_files/ for
7019    # template instantiation
7020    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7021    $rm out/* && rmdir out
7022    cd ..
7023    rmdir conftest
7024    $rm conftest*
7025
7026 fi
7027 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7028 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7029
7030
7031 hard_links="nottested"
7032 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7033   # do not overwrite the value of need_locks provided by the user
7034   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7035 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7036   hard_links=yes
7037   $rm conftest*
7038   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7039   touch conftest.a
7040   ln conftest.a conftest.b 2>&5 || hard_links=no
7041   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7042   echo "$as_me:$LINENO: result: $hard_links" >&5
7043 echo "${ECHO_T}$hard_links" >&6
7044   if test "$hard_links" = no; then
7045     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7046 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7047     need_locks=warn
7048   fi
7049 else
7050   need_locks=no
7051 fi
7052
7053 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7054 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7055
7056   runpath_var=
7057   allow_undefined_flag=
7058   enable_shared_with_static_runtimes=no
7059   archive_cmds=
7060   archive_expsym_cmds=
7061   old_archive_From_new_cmds=
7062   old_archive_from_expsyms_cmds=
7063   export_dynamic_flag_spec=
7064   whole_archive_flag_spec=
7065   thread_safe_flag_spec=
7066   hardcode_libdir_flag_spec=
7067   hardcode_libdir_flag_spec_ld=
7068   hardcode_libdir_separator=
7069   hardcode_direct=no
7070   hardcode_minus_L=no
7071   hardcode_shlibpath_var=unsupported
7072   link_all_deplibs=unknown
7073   hardcode_automatic=no
7074   module_cmds=
7075   module_expsym_cmds=
7076   always_export_symbols=no
7077   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7078   # include_expsyms should be a list of space-separated symbols to be *always*
7079   # included in the symbol list
7080   include_expsyms=
7081   # exclude_expsyms can be an extended regexp of symbols to exclude
7082   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7083   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7084   # as well as any symbol that contains `d'.
7085   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7086   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7087   # platforms (ab)use it in PIC code, but their linkers get confused if
7088   # the symbol is explicitly referenced.  Since portable code cannot
7089   # rely on this symbol name, it's probably fine to never include it in
7090   # preloaded symbol tables.
7091   extract_expsyms_cmds=
7092   # Just being paranoid about ensuring that cc_basename is set.
7093   for cc_temp in $compiler""; do
7094   case $cc_temp in
7095     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7096     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7097     \-*) ;;
7098     *) break;;
7099   esac
7100 done
7101 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7102
7103   case $host_os in
7104   cygwin* | mingw* | pw32*)
7105     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7106     # When not using gcc, we currently assume that we are using
7107     # Microsoft Visual C++.
7108     if test "$GCC" != yes; then
7109       with_gnu_ld=no
7110     fi
7111     ;;
7112   interix*)
7113     # we just hope/assume this is gcc and not c89 (= MSVC++)
7114     with_gnu_ld=yes
7115     ;;
7116   openbsd*)
7117     with_gnu_ld=no
7118     ;;
7119   esac
7120
7121   ld_shlibs=yes
7122   if test "$with_gnu_ld" = yes; then
7123     # If archive_cmds runs LD, not CC, wlarc should be empty
7124     wlarc='${wl}'
7125
7126     # Set some defaults for GNU ld with shared library support. These
7127     # are reset later if shared libraries are not supported. Putting them
7128     # here allows them to be overridden if necessary.
7129     runpath_var=LD_RUN_PATH
7130     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7131     export_dynamic_flag_spec='${wl}--export-dynamic'
7132     # ancient GNU ld didn't support --whole-archive et. al.
7133     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7134         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7135       else
7136         whole_archive_flag_spec=
7137     fi
7138     supports_anon_versioning=no
7139     case `$LD -v 2>/dev/null` in
7140       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7141       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7142       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7143       *\ 2.11.*) ;; # other 2.11 versions
7144       *) supports_anon_versioning=yes ;;
7145     esac
7146
7147     # See if GNU ld supports shared libraries.
7148     case $host_os in
7149     aix3* | aix4* | aix5*)
7150       # On AIX/PPC, the GNU linker is very broken
7151       if test "$host_cpu" != ia64; then
7152         ld_shlibs=no
7153         cat <<EOF 1>&2
7154
7155 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7156 *** to be unable to reliably create shared libraries on AIX.
7157 *** Therefore, libtool is disabling shared libraries support.  If you
7158 *** really care for shared libraries, you may want to modify your PATH
7159 *** so that a non-GNU linker is found, and then restart.
7160
7161 EOF
7162       fi
7163       ;;
7164
7165     amigaos*)
7166       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)'
7167       hardcode_libdir_flag_spec='-L$libdir'
7168       hardcode_minus_L=yes
7169
7170       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7171       # that the semantics of dynamic libraries on AmigaOS, at least up
7172       # to version 4, is to share data among multiple programs linked
7173       # with the same dynamic library.  Since this doesn't match the
7174       # behavior of shared libraries on other platforms, we can't use
7175       # them.
7176       ld_shlibs=no
7177       ;;
7178
7179     beos*)
7180       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7181         allow_undefined_flag=unsupported
7182         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7183         # support --undefined.  This deserves some investigation.  FIXME
7184         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7185       else
7186         ld_shlibs=no
7187       fi
7188       ;;
7189
7190     cygwin* | mingw* | pw32*)
7191       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7192       # as there is no search path for DLLs.
7193       hardcode_libdir_flag_spec='-L$libdir'
7194       allow_undefined_flag=unsupported
7195       always_export_symbols=no
7196       enable_shared_with_static_runtimes=yes
7197       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7198
7199       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7200         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7201         # If the export-symbols file already is a .def file (1st line
7202         # is EXPORTS), use it as is; otherwise, prepend...
7203         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7204           cp $export_symbols $output_objdir/$soname.def;
7205         else
7206           echo EXPORTS > $output_objdir/$soname.def;
7207           cat $export_symbols >> $output_objdir/$soname.def;
7208         fi~
7209         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7210       else
7211         ld_shlibs=no
7212       fi
7213       ;;
7214
7215     interix3*)
7216       hardcode_direct=no
7217       hardcode_shlibpath_var=no
7218       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7219       export_dynamic_flag_spec='${wl}-E'
7220       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7221       # Instead, shared libraries are loaded at an image base (0x10000000 by
7222       # default) and relocated if they conflict, which is a slow very memory
7223       # consuming and fragmenting process.  To avoid this, we pick a random,
7224       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7225       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7226       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7227       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7228       ;;
7229
7230     linux*)
7231       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7232         tmp_addflag=
7233         case $cc_basename,$host_cpu in
7234         pgcc*)                          # Portland Group C compiler
7235           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7236           tmp_addflag=' $pic_flag'
7237           ;;
7238         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7239           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7240           tmp_addflag=' $pic_flag -Mnomain' ;;
7241         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7242           tmp_addflag=' -i_dynamic' ;;
7243         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7244           tmp_addflag=' -i_dynamic -nofor_main' ;;
7245         ifc* | ifort*)                  # Intel Fortran compiler
7246           tmp_addflag=' -nofor_main' ;;
7247         esac
7248         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7249
7250         if test $supports_anon_versioning = yes; then
7251           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7252   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7253   $echo "local: *; };" >> $output_objdir/$libname.ver~
7254           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7255         fi
7256         link_all_deplibs=no
7257       else
7258         ld_shlibs=no
7259       fi
7260       ;;
7261
7262     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7263       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7264         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7265         wlarc=
7266       else
7267         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7268         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7269       fi
7270       ;;
7271
7272     solaris*)
7273       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7274         ld_shlibs=no
7275         cat <<EOF 1>&2
7276
7277 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7278 *** create shared libraries on Solaris systems.  Therefore, libtool
7279 *** is disabling shared libraries support.  We urge you to upgrade GNU
7280 *** binutils to release 2.9.1 or newer.  Another option is to modify
7281 *** your PATH or compiler configuration so that the native linker is
7282 *** used, and then restart.
7283
7284 EOF
7285       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7286         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7287         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7288       else
7289         ld_shlibs=no
7290       fi
7291       ;;
7292
7293     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7294       case `$LD -v 2>&1` in
7295         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7296         ld_shlibs=no
7297         cat <<_LT_EOF 1>&2
7298
7299 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7300 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7301 *** is disabling shared libraries support.  We urge you to upgrade GNU
7302 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7303 *** your PATH or compiler configuration so that the native linker is
7304 *** used, and then restart.
7305
7306 _LT_EOF
7307         ;;
7308         *)
7309           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7310             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7311             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7312             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7313           else
7314             ld_shlibs=no
7315           fi
7316         ;;
7317       esac
7318       ;;
7319
7320     sunos4*)
7321       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7322       wlarc=
7323       hardcode_direct=yes
7324       hardcode_shlibpath_var=no
7325       ;;
7326
7327     *)
7328       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7329         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7330         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7331       else
7332         ld_shlibs=no
7333       fi
7334       ;;
7335     esac
7336
7337     if test "$ld_shlibs" = no; then
7338       runpath_var=
7339       hardcode_libdir_flag_spec=
7340       export_dynamic_flag_spec=
7341       whole_archive_flag_spec=
7342     fi
7343   else
7344     # PORTME fill in a description of your system's linker (not GNU ld)
7345     case $host_os in
7346     aix3*)
7347       allow_undefined_flag=unsupported
7348       always_export_symbols=yes
7349       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'
7350       # Note: this linker hardcodes the directories in LIBPATH if there
7351       # are no directories specified by -L.
7352       hardcode_minus_L=yes
7353       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7354         # Neither direct hardcoding nor static linking is supported with a
7355         # broken collect2.
7356         hardcode_direct=unsupported
7357       fi
7358       ;;
7359
7360     aix4* | aix5*)
7361       if test "$host_cpu" = ia64; then
7362         # On IA64, the linker does run time linking by default, so we don't
7363         # have to do anything special.
7364         aix_use_runtimelinking=no
7365         exp_sym_flag='-Bexport'
7366         no_entry_flag=""
7367       else
7368         # If we're using GNU nm, then we don't want the "-C" option.
7369         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7370         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7371           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'
7372         else
7373           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'
7374         fi
7375         aix_use_runtimelinking=no
7376
7377         # Test if we are trying to use run time linking or normal
7378         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7379         # need to do runtime linking.
7380         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7381           for ld_flag in $LDFLAGS; do
7382           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7383             aix_use_runtimelinking=yes
7384             break
7385           fi
7386           done
7387           ;;
7388         esac
7389
7390         exp_sym_flag='-bexport'
7391         no_entry_flag='-bnoentry'
7392       fi
7393
7394       # When large executables or shared objects are built, AIX ld can
7395       # have problems creating the table of contents.  If linking a library
7396       # or program results in "error TOC overflow" add -mminimal-toc to
7397       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7398       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7399
7400       archive_cmds=''
7401       hardcode_direct=yes
7402       hardcode_libdir_separator=':'
7403       link_all_deplibs=yes
7404
7405       if test "$GCC" = yes; then
7406         case $host_os in aix4.[012]|aix4.[012].*)
7407         # We only want to do this on AIX 4.2 and lower, the check
7408         # below for broken collect2 doesn't work under 4.3+
7409           collect2name=`${CC} -print-prog-name=collect2`
7410           if test -f "$collect2name" && \
7411            strings "$collect2name" | grep resolve_lib_name >/dev/null
7412           then
7413           # We have reworked collect2
7414           hardcode_direct=yes
7415           else
7416           # We have old collect2
7417           hardcode_direct=unsupported
7418           # It fails to find uninstalled libraries when the uninstalled
7419           # path is not listed in the libpath.  Setting hardcode_minus_L
7420           # to unsupported forces relinking
7421           hardcode_minus_L=yes
7422           hardcode_libdir_flag_spec='-L$libdir'
7423           hardcode_libdir_separator=
7424           fi
7425           ;;
7426         esac
7427         shared_flag='-shared'
7428         if test "$aix_use_runtimelinking" = yes; then
7429           shared_flag="$shared_flag "'${wl}-G'
7430         fi
7431       else
7432         # not using gcc
7433         if test "$host_cpu" = ia64; then
7434         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7435         # chokes on -Wl,-G. The following line is correct:
7436           shared_flag='-G'
7437         else
7438           if test "$aix_use_runtimelinking" = yes; then
7439             shared_flag='${wl}-G'
7440           else
7441             shared_flag='${wl}-bM:SRE'
7442           fi
7443         fi
7444       fi
7445
7446       # It seems that -bexpall does not export symbols beginning with
7447       # underscore (_), so it is better to generate a list of symbols to export.
7448       always_export_symbols=yes
7449       if test "$aix_use_runtimelinking" = yes; then
7450         # Warning - without using the other runtime loading flags (-brtl),
7451         # -berok will link without error, but may produce a broken library.
7452         allow_undefined_flag='-berok'
7453        # Determine the default libpath from the value encoded in an empty executable.
7454        cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h.  */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h.  */
7460
7461 int
7462 main ()
7463 {
7464
7465   ;
7466   return 0;
7467 }
7468 _ACEOF
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7471   (eval $ac_link) 2>conftest.er1
7472   ac_status=$?
7473   grep -v '^ *+' conftest.er1 >conftest.err
7474   rm -f conftest.er1
7475   cat conftest.err >&5
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); } &&
7478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480   (eval $ac_try) 2>&5
7481   ac_status=$?
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); }; } &&
7484          { ac_try='test -s conftest$ac_exeext'
7485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486   (eval $ac_try) 2>&5
7487   ac_status=$?
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); }; }; then
7490
7491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7492 }'`
7493 # Check for a 64-bit object if we didn't find anything.
7494 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; }
7495 }'`; fi
7496 else
7497   echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7499
7500 fi
7501 rm -f conftest.err conftest.$ac_objext \
7502       conftest$ac_exeext conftest.$ac_ext
7503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7504
7505        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7506         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7507        else
7508         if test "$host_cpu" = ia64; then
7509           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7510           allow_undefined_flag="-z nodefs"
7511           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7512         else
7513          # Determine the default libpath from the value encoded in an empty executable.
7514          cat >conftest.$ac_ext <<_ACEOF
7515 /* confdefs.h.  */
7516 _ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h.  */
7520
7521 int
7522 main ()
7523 {
7524
7525   ;
7526   return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext conftest$ac_exeext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531   (eval $ac_link) 2>conftest.er1
7532   ac_status=$?
7533   grep -v '^ *+' conftest.er1 >conftest.err
7534   rm -f conftest.er1
7535   cat conftest.err >&5
7536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); } &&
7538          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540   (eval $ac_try) 2>&5
7541   ac_status=$?
7542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543   (exit $ac_status); }; } &&
7544          { ac_try='test -s conftest$ac_exeext'
7545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546   (eval $ac_try) 2>&5
7547   ac_status=$?
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); }; }; then
7550
7551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7552 }'`
7553 # Check for a 64-bit object if we didn't find anything.
7554 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; }
7555 }'`; fi
7556 else
7557   echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 fi
7561 rm -f conftest.err conftest.$ac_objext \
7562       conftest$ac_exeext conftest.$ac_ext
7563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7564
7565          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7566           # Warning - without using the other run time loading flags,
7567           # -berok will link without error, but may produce a broken library.
7568           no_undefined_flag=' ${wl}-bernotok'
7569           allow_undefined_flag=' ${wl}-berok'
7570           # Exported symbols can be pulled into shared objects from archives
7571           whole_archive_flag_spec='$convenience'
7572           archive_cmds_need_lc=yes
7573           # This is similar to how AIX traditionally builds its shared libraries.
7574           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7575         fi
7576       fi
7577       ;;
7578
7579     amigaos*)
7580       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)'
7581       hardcode_libdir_flag_spec='-L$libdir'
7582       hardcode_minus_L=yes
7583       # see comment about different semantics on the GNU ld section
7584       ld_shlibs=no
7585       ;;
7586
7587     bsdi[45]*)
7588       export_dynamic_flag_spec=-rdynamic
7589       ;;
7590
7591     cygwin* | mingw* | pw32*)
7592       # When not using gcc, we currently assume that we are using
7593       # Microsoft Visual C++.
7594       # hardcode_libdir_flag_spec is actually meaningless, as there is
7595       # no search path for DLLs.
7596       hardcode_libdir_flag_spec=' '
7597       allow_undefined_flag=unsupported
7598       # Tell ltmain to make .lib files, not .a files.
7599       libext=lib
7600       # Tell ltmain to make .dll files, not .so files.
7601       shrext_cmds=".dll"
7602       # FIXME: Setting linknames here is a bad hack.
7603       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7604       # The linker will automatically build a .lib file if we build a DLL.
7605       old_archive_From_new_cmds='true'
7606       # FIXME: Should let the user specify the lib program.
7607       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7608       fix_srcfile_path='`cygpath -w "$srcfile"`'
7609       enable_shared_with_static_runtimes=yes
7610       ;;
7611
7612     darwin* | rhapsody*)
7613       case $host_os in
7614         rhapsody* | darwin1.[012])
7615          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7616          ;;
7617        *) # Darwin 1.3 on
7618          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7619            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7620          else
7621            case ${MACOSX_DEPLOYMENT_TARGET} in
7622              10.[012])
7623                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7624                ;;
7625              10.*)
7626                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7627                ;;
7628            esac
7629          fi
7630          ;;
7631       esac
7632       archive_cmds_need_lc=no
7633       hardcode_direct=no
7634       hardcode_automatic=yes
7635       hardcode_shlibpath_var=unsupported
7636       whole_archive_flag_spec=''
7637       link_all_deplibs=yes
7638     if test "$GCC" = yes ; then
7639         output_verbose_link_cmd='echo'
7640         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7641       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7642       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7643       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}'
7644       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}'
7645     else
7646       case $cc_basename in
7647         xlc*)
7648          output_verbose_link_cmd='echo'
7649          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7650          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7651           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7652          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7653           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}'
7654           ;;
7655        *)
7656          ld_shlibs=no
7657           ;;
7658       esac
7659     fi
7660       ;;
7661
7662     dgux*)
7663       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7664       hardcode_libdir_flag_spec='-L$libdir'
7665       hardcode_shlibpath_var=no
7666       ;;
7667
7668     freebsd1*)
7669       ld_shlibs=no
7670       ;;
7671
7672     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7673     # support.  Future versions do this automatically, but an explicit c++rt0.o
7674     # does not break anything, and helps significantly (at the cost of a little
7675     # extra space).
7676     freebsd2.2*)
7677       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7678       hardcode_libdir_flag_spec='-R$libdir'
7679       hardcode_direct=yes
7680       hardcode_shlibpath_var=no
7681       ;;
7682
7683     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7684     freebsd2*)
7685       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7686       hardcode_direct=yes
7687       hardcode_minus_L=yes
7688       hardcode_shlibpath_var=no
7689       ;;
7690
7691     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7692     freebsd* | dragonfly*)
7693       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7694       hardcode_libdir_flag_spec='-R$libdir'
7695       hardcode_direct=yes
7696       hardcode_shlibpath_var=no
7697       ;;
7698
7699     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7700     kfreebsd*-gnu)
7701       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7702       hardcode_libdir_flag_spec='-R$libdir'
7703       hardcode_direct=yes
7704       hardcode_shlibpath_var=no
7705       link_all_deplibs=no
7706       ;;
7707
7708     hpux9*)
7709       if test "$GCC" = yes; then
7710         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'
7711       else
7712         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'
7713       fi
7714       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7715       hardcode_libdir_separator=:
7716       hardcode_direct=yes
7717
7718       # hardcode_minus_L: Not really in the search PATH,
7719       # but as the default location of the library.
7720       hardcode_minus_L=yes
7721       export_dynamic_flag_spec='${wl}-E'
7722       ;;
7723
7724     hpux10*)
7725       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7726         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7727       else
7728         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7729       fi
7730       if test "$with_gnu_ld" = no; then
7731         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7732         hardcode_libdir_separator=:
7733
7734         hardcode_direct=yes
7735         export_dynamic_flag_spec='${wl}-E'
7736
7737         # hardcode_minus_L: Not really in the search PATH,
7738         # but as the default location of the library.
7739         hardcode_minus_L=yes
7740       fi
7741       ;;
7742
7743     hpux11*)
7744       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7745         case $host_cpu in
7746         hppa*64*)
7747           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7748           ;;
7749         ia64*)
7750           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7751           ;;
7752         *)
7753           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7754           ;;
7755         esac
7756       else
7757         case $host_cpu in
7758         hppa*64*)
7759           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7760           ;;
7761         ia64*)
7762           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7763           ;;
7764         *)
7765           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7766           ;;
7767         esac
7768       fi
7769       if test "$with_gnu_ld" = no; then
7770         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7771         hardcode_libdir_separator=:
7772
7773         case $host_cpu in
7774         hppa*64*|ia64*)
7775           hardcode_libdir_flag_spec_ld='+b $libdir'
7776           hardcode_direct=no
7777           hardcode_shlibpath_var=no
7778           ;;
7779         *)
7780           hardcode_direct=yes
7781           export_dynamic_flag_spec='${wl}-E'
7782
7783           # hardcode_minus_L: Not really in the search PATH,
7784           # but as the default location of the library.
7785           hardcode_minus_L=yes
7786           ;;
7787         esac
7788       fi
7789       ;;
7790
7791     irix5* | irix6* | nonstopux*)
7792       if test "$GCC" = yes; then
7793         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'
7794       else
7795         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'
7796         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7797       fi
7798       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7799       hardcode_libdir_separator=:
7800       link_all_deplibs=yes
7801       ;;
7802
7803     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7804       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7805         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7806       else
7807         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7808       fi
7809       hardcode_libdir_flag_spec='-R$libdir'
7810       hardcode_direct=yes
7811       hardcode_shlibpath_var=no
7812       ;;
7813
7814     newsos6)
7815       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816       hardcode_direct=yes
7817       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7818       hardcode_libdir_separator=:
7819       hardcode_shlibpath_var=no
7820       ;;
7821
7822     openbsd*)
7823       hardcode_direct=yes
7824       hardcode_shlibpath_var=no
7825       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7827         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7828         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7829         export_dynamic_flag_spec='${wl}-E'
7830       else
7831        case $host_os in
7832          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7833            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7834            hardcode_libdir_flag_spec='-R$libdir'
7835            ;;
7836          *)
7837            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7838            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7839            ;;
7840        esac
7841       fi
7842       ;;
7843
7844     os2*)
7845       hardcode_libdir_flag_spec='-L$libdir'
7846       hardcode_minus_L=yes
7847       allow_undefined_flag=unsupported
7848       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'
7849       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7850       ;;
7851
7852     osf3*)
7853       if test "$GCC" = yes; then
7854         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7855         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'
7856       else
7857         allow_undefined_flag=' -expect_unresolved \*'
7858         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'
7859       fi
7860       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7861       hardcode_libdir_separator=:
7862       ;;
7863
7864     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7865       if test "$GCC" = yes; then
7866         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7867         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'
7868         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7869       else
7870         allow_undefined_flag=' -expect_unresolved \*'
7871         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'
7872         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7873         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7874
7875         # Both c and cxx compiler support -rpath directly
7876         hardcode_libdir_flag_spec='-rpath $libdir'
7877       fi
7878       hardcode_libdir_separator=:
7879       ;;
7880
7881     solaris*)
7882       no_undefined_flag=' -z text'
7883       if test "$GCC" = yes; then
7884         wlarc='${wl}'
7885         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7886         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7887           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7888       else
7889         wlarc=''
7890         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7892         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7893       fi
7894       hardcode_libdir_flag_spec='-R$libdir'
7895       hardcode_shlibpath_var=no
7896       case $host_os in
7897       solaris2.[0-5] | solaris2.[0-5].*) ;;
7898       *)
7899         # The compiler driver will combine linker options so we
7900         # cannot just pass the convience library names through
7901         # without $wl, iff we do not link with $LD.
7902         # Luckily, gcc supports the same syntax we need for Sun Studio.
7903         # Supported since Solaris 2.6 (maybe 2.5.1?)
7904         case $wlarc in
7905         '')
7906           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7907         *)
7908           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7909         esac ;;
7910       esac
7911       link_all_deplibs=yes
7912       ;;
7913
7914     sunos4*)
7915       if test "x$host_vendor" = xsequent; then
7916         # Use $CC to link under sequent, because it throws in some extra .o
7917         # files that make .init and .fini sections work.
7918         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7919       else
7920         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7921       fi
7922       hardcode_libdir_flag_spec='-L$libdir'
7923       hardcode_direct=yes
7924       hardcode_minus_L=yes
7925       hardcode_shlibpath_var=no
7926       ;;
7927
7928     sysv4)
7929       case $host_vendor in
7930         sni)
7931           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7932           hardcode_direct=yes # is this really true???
7933         ;;
7934         siemens)
7935           ## LD is ld it makes a PLAMLIB
7936           ## CC just makes a GrossModule.
7937           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7938           reload_cmds='$CC -r -o $output$reload_objs'
7939           hardcode_direct=no
7940         ;;
7941         motorola)
7942           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7943           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7944         ;;
7945       esac
7946       runpath_var='LD_RUN_PATH'
7947       hardcode_shlibpath_var=no
7948       ;;
7949
7950     sysv4.3*)
7951       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7952       hardcode_shlibpath_var=no
7953       export_dynamic_flag_spec='-Bexport'
7954       ;;
7955
7956     sysv4*MP*)
7957       if test -d /usr/nec; then
7958         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7959         hardcode_shlibpath_var=no
7960         runpath_var=LD_RUN_PATH
7961         hardcode_runpath_var=yes
7962         ld_shlibs=yes
7963       fi
7964       ;;
7965
7966     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7967       no_undefined_flag='${wl}-z,text'
7968       archive_cmds_need_lc=no
7969       hardcode_shlibpath_var=no
7970       runpath_var='LD_RUN_PATH'
7971
7972       if test "$GCC" = yes; then
7973         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7974         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7975       else
7976         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7977         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7978       fi
7979       ;;
7980
7981     sysv5* | sco3.2v5* | sco5v6*)
7982       # Note: We can NOT use -z defs as we might desire, because we do not
7983       # link with -lc, and that would cause any symbols used from libc to
7984       # always be unresolved, which means just about no library would
7985       # ever link correctly.  If we're not using GNU ld we use -z text
7986       # though, which does catch some bad symbols but isn't as heavy-handed
7987       # as -z defs.
7988       no_undefined_flag='${wl}-z,text'
7989       allow_undefined_flag='${wl}-z,nodefs'
7990       archive_cmds_need_lc=no
7991       hardcode_shlibpath_var=no
7992       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7993       hardcode_libdir_separator=':'
7994       link_all_deplibs=yes
7995       export_dynamic_flag_spec='${wl}-Bexport'
7996       runpath_var='LD_RUN_PATH'
7997
7998       if test "$GCC" = yes; then
7999         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8000         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8001       else
8002         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8003         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8004       fi
8005       ;;
8006
8007     uts4*)
8008       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8009       hardcode_libdir_flag_spec='-L$libdir'
8010       hardcode_shlibpath_var=no
8011       ;;
8012
8013     *)
8014       ld_shlibs=no
8015       ;;
8016     esac
8017   fi
8018
8019 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8020 echo "${ECHO_T}$ld_shlibs" >&6
8021 test "$ld_shlibs" = no && can_build_shared=no
8022
8023 #
8024 # Do we need to explicitly link libc?
8025 #
8026 case "x$archive_cmds_need_lc" in
8027 x|xyes)
8028   # Assume -lc should be added
8029   archive_cmds_need_lc=yes
8030
8031   if test "$enable_shared" = yes && test "$GCC" = yes; then
8032     case $archive_cmds in
8033     *'~'*)
8034       # FIXME: we may have to deal with multi-command sequences.
8035       ;;
8036     '$CC '*)
8037       # Test whether the compiler implicitly links with -lc since on some
8038       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8039       # to ld, don't add -lc before -lgcc.
8040       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8041 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8042       $rm conftest*
8043       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8044
8045       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8046   (eval $ac_compile) 2>&5
8047   ac_status=$?
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } 2>conftest.err; then
8050         soname=conftest
8051         lib=conftest
8052         libobjs=conftest.$ac_objext
8053         deplibs=
8054         wl=$lt_prog_compiler_wl
8055         pic_flag=$lt_prog_compiler_pic
8056         compiler_flags=-v
8057         linker_flags=-v
8058         verstring=
8059         output_objdir=.
8060         libname=conftest
8061         lt_save_allow_undefined_flag=$allow_undefined_flag
8062         allow_undefined_flag=
8063         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8064   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); }
8068         then
8069           archive_cmds_need_lc=no
8070         else
8071           archive_cmds_need_lc=yes
8072         fi
8073         allow_undefined_flag=$lt_save_allow_undefined_flag
8074       else
8075         cat conftest.err 1>&5
8076       fi
8077       $rm conftest*
8078       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8079 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8080       ;;
8081     esac
8082   fi
8083   ;;
8084 esac
8085
8086 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8087 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8088 library_names_spec=
8089 libname_spec='lib$name'
8090 soname_spec=
8091 shrext_cmds=".so"
8092 postinstall_cmds=
8093 postuninstall_cmds=
8094 finish_cmds=
8095 finish_eval=
8096 shlibpath_var=
8097 shlibpath_overrides_runpath=unknown
8098 version_type=none
8099 dynamic_linker="$host_os ld.so"
8100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8101 if test "$GCC" = yes; then
8102   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8103   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8104     # if the path contains ";" then we assume it to be the separator
8105     # otherwise default to the standard path separator (i.e. ":") - it is
8106     # assumed that no part of a normal pathname contains ";" but that should
8107     # okay in the real world where ";" in dirpaths is itself problematic.
8108     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8109   else
8110     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8111   fi
8112 else
8113   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8114 fi
8115 need_lib_prefix=unknown
8116 hardcode_into_libs=no
8117
8118 # when you set need_version to no, make sure it does not cause -set_version
8119 # flags to be left without arguments
8120 need_version=unknown
8121
8122 case $host_os in
8123 aix3*)
8124   version_type=linux
8125   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8126   shlibpath_var=LIBPATH
8127
8128   # AIX 3 has no versioning support, so we append a major version to the name.
8129   soname_spec='${libname}${release}${shared_ext}$major'
8130   ;;
8131
8132 aix4* | aix5*)
8133   version_type=linux
8134   need_lib_prefix=no
8135   need_version=no
8136   hardcode_into_libs=yes
8137   if test "$host_cpu" = ia64; then
8138     # AIX 5 supports IA64
8139     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8140     shlibpath_var=LD_LIBRARY_PATH
8141   else
8142     # With GCC up to 2.95.x, collect2 would create an import file
8143     # for dependence libraries.  The import file would start with
8144     # the line `#! .'.  This would cause the generated library to
8145     # depend on `.', always an invalid library.  This was fixed in
8146     # development snapshots of GCC prior to 3.0.
8147     case $host_os in
8148       aix4 | aix4.[01] | aix4.[01].*)
8149       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8150            echo ' yes '
8151            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8152         :
8153       else
8154         can_build_shared=no
8155       fi
8156       ;;
8157     esac
8158     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8159     # soname into executable. Probably we can add versioning support to
8160     # collect2, so additional links can be useful in future.
8161     if test "$aix_use_runtimelinking" = yes; then
8162       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8163       # instead of lib<name>.a to let people know that these are not
8164       # typical AIX shared libraries.
8165       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8166     else
8167       # We preserve .a as extension for shared libraries through AIX4.2
8168       # and later when we are not doing run time linking.
8169       library_names_spec='${libname}${release}.a $libname.a'
8170       soname_spec='${libname}${release}${shared_ext}$major'
8171     fi
8172     shlibpath_var=LIBPATH
8173   fi
8174   ;;
8175
8176 amigaos*)
8177   library_names_spec='$libname.ixlibrary $libname.a'
8178   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8179   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'
8180   ;;
8181
8182 beos*)
8183   library_names_spec='${libname}${shared_ext}'
8184   dynamic_linker="$host_os ld.so"
8185   shlibpath_var=LIBRARY_PATH
8186   ;;
8187
8188 bsdi[45]*)
8189   version_type=linux
8190   need_version=no
8191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8192   soname_spec='${libname}${release}${shared_ext}$major'
8193   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8194   shlibpath_var=LD_LIBRARY_PATH
8195   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8196   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8197   # the default ld.so.conf also contains /usr/contrib/lib and
8198   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8199   # libtool to hard-code these into programs
8200   ;;
8201
8202 cygwin* | mingw* | pw32*)
8203   version_type=windows
8204   shrext_cmds=".dll"
8205   need_version=no
8206   need_lib_prefix=no
8207
8208   case $GCC,$host_os in
8209   yes,cygwin* | yes,mingw* | yes,pw32*)
8210     library_names_spec='$libname.dll.a'
8211     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8212     postinstall_cmds='base_file=`basename \${file}`~
8213       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8214       dldir=$destdir/`dirname \$dlpath`~
8215       test -d \$dldir || mkdir -p \$dldir~
8216       $install_prog $dir/$dlname \$dldir/$dlname~
8217       chmod a+x \$dldir/$dlname'
8218     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8219       dlpath=$dir/\$dldll~
8220        $rm \$dlpath'
8221     shlibpath_overrides_runpath=yes
8222
8223     case $host_os in
8224     cygwin*)
8225       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8226       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8227       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8228       ;;
8229     mingw*)
8230       # MinGW DLLs use traditional 'lib' prefix
8231       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8232       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8233       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8234         # It is most probably a Windows format PATH printed by
8235         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8236         # path with ; separators, and with drive letters. We can handle the
8237         # drive letters (cygwin fileutils understands them), so leave them,
8238         # especially as we might pass files found there to a mingw objdump,
8239         # which wouldn't understand a cygwinified path. Ahh.
8240         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8241       else
8242         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8243       fi
8244       ;;
8245     pw32*)
8246       # pw32 DLLs use 'pw' prefix rather than 'lib'
8247       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8248       ;;
8249     esac
8250     ;;
8251
8252   *)
8253     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8254     ;;
8255   esac
8256   dynamic_linker='Win32 ld.exe'
8257   # FIXME: first we should search . and the directory the executable is in
8258   shlibpath_var=PATH
8259   ;;
8260
8261 darwin* | rhapsody*)
8262   dynamic_linker="$host_os dyld"
8263   version_type=darwin
8264   need_lib_prefix=no
8265   need_version=no
8266   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8267   soname_spec='${libname}${release}${major}$shared_ext'
8268   shlibpath_overrides_runpath=yes
8269   shlibpath_var=DYLD_LIBRARY_PATH
8270   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8271   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8272   if test "$GCC" = yes; then
8273     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"`
8274   else
8275     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8276   fi
8277   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8278   ;;
8279
8280 dgux*)
8281   version_type=linux
8282   need_lib_prefix=no
8283   need_version=no
8284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8285   soname_spec='${libname}${release}${shared_ext}$major'
8286   shlibpath_var=LD_LIBRARY_PATH
8287   ;;
8288
8289 freebsd1*)
8290   dynamic_linker=no
8291   ;;
8292
8293 kfreebsd*-gnu)
8294   version_type=linux
8295   need_lib_prefix=no
8296   need_version=no
8297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8298   soname_spec='${libname}${release}${shared_ext}$major'
8299   shlibpath_var=LD_LIBRARY_PATH
8300   shlibpath_overrides_runpath=no
8301   hardcode_into_libs=yes
8302   dynamic_linker='GNU ld.so'
8303   ;;
8304
8305 freebsd* | dragonfly*)
8306   # DragonFly does not have aout.  When/if they implement a new
8307   # versioning mechanism, adjust this.
8308   if test -x /usr/bin/objformat; then
8309     objformat=`/usr/bin/objformat`
8310   else
8311     case $host_os in
8312     freebsd[123]*) objformat=aout ;;
8313     *) objformat=elf ;;
8314     esac
8315   fi
8316   version_type=freebsd-$objformat
8317   case $version_type in
8318     freebsd-elf*)
8319       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8320       need_version=no
8321       need_lib_prefix=no
8322       ;;
8323     freebsd-*)
8324       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8325       need_version=yes
8326       ;;
8327   esac
8328   shlibpath_var=LD_LIBRARY_PATH
8329   case $host_os in
8330   freebsd2*)
8331     shlibpath_overrides_runpath=yes
8332     ;;
8333   freebsd3.[01]* | freebsdelf3.[01]*)
8334     shlibpath_overrides_runpath=yes
8335     hardcode_into_libs=yes
8336     ;;
8337   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8338   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8339     shlibpath_overrides_runpath=no
8340     hardcode_into_libs=yes
8341     ;;
8342   freebsd*) # from 4.6 on
8343     shlibpath_overrides_runpath=yes
8344     hardcode_into_libs=yes
8345     ;;
8346   esac
8347   ;;
8348
8349 gnu*)
8350   version_type=linux
8351   need_lib_prefix=no
8352   need_version=no
8353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8354   soname_spec='${libname}${release}${shared_ext}$major'
8355   shlibpath_var=LD_LIBRARY_PATH
8356   hardcode_into_libs=yes
8357   ;;
8358
8359 hpux9* | hpux10* | hpux11*)
8360   # Give a soname corresponding to the major version so that dld.sl refuses to
8361   # link against other versions.
8362   version_type=sunos
8363   need_lib_prefix=no
8364   need_version=no
8365   case $host_cpu in
8366   ia64*)
8367     shrext_cmds='.so'
8368     hardcode_into_libs=yes
8369     dynamic_linker="$host_os dld.so"
8370     shlibpath_var=LD_LIBRARY_PATH
8371     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8373     soname_spec='${libname}${release}${shared_ext}$major'
8374     if test "X$HPUX_IA64_MODE" = X32; then
8375       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8376     else
8377       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8378     fi
8379     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8380     ;;
8381    hppa*64*)
8382      shrext_cmds='.sl'
8383      hardcode_into_libs=yes
8384      dynamic_linker="$host_os dld.sl"
8385      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8386      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8387      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8388      soname_spec='${libname}${release}${shared_ext}$major'
8389      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8390      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8391      ;;
8392    *)
8393     shrext_cmds='.sl'
8394     dynamic_linker="$host_os dld.sl"
8395     shlibpath_var=SHLIB_PATH
8396     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398     soname_spec='${libname}${release}${shared_ext}$major'
8399     ;;
8400   esac
8401   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8402   postinstall_cmds='chmod 555 $lib'
8403   ;;
8404
8405 interix3*)
8406   version_type=linux
8407   need_lib_prefix=no
8408   need_version=no
8409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8410   soname_spec='${libname}${release}${shared_ext}$major'
8411   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8412   shlibpath_var=LD_LIBRARY_PATH
8413   shlibpath_overrides_runpath=no
8414   hardcode_into_libs=yes
8415   ;;
8416
8417 irix5* | irix6* | nonstopux*)
8418   case $host_os in
8419     nonstopux*) version_type=nonstopux ;;
8420     *)
8421         if test "$lt_cv_prog_gnu_ld" = yes; then
8422                 version_type=linux
8423         else
8424                 version_type=irix
8425         fi ;;
8426   esac
8427   need_lib_prefix=no
8428   need_version=no
8429   soname_spec='${libname}${release}${shared_ext}$major'
8430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8431   case $host_os in
8432   irix5* | nonstopux*)
8433     libsuff= shlibsuff=
8434     ;;
8435   *)
8436     case $LD in # libtool.m4 will add one of these switches to LD
8437     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8438       libsuff= shlibsuff= libmagic=32-bit;;
8439     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8440       libsuff=32 shlibsuff=N32 libmagic=N32;;
8441     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8442       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8443     *) libsuff= shlibsuff= libmagic=never-match;;
8444     esac
8445     ;;
8446   esac
8447   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8448   shlibpath_overrides_runpath=no
8449   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8450   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8451   hardcode_into_libs=yes
8452   ;;
8453
8454 # No shared lib support for Linux oldld, aout, or coff.
8455 linux*oldld* | linux*aout* | linux*coff*)
8456   dynamic_linker=no
8457   ;;
8458
8459 # This must be Linux ELF.
8460 linux*)
8461   version_type=linux
8462   need_lib_prefix=no
8463   need_version=no
8464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465   soname_spec='${libname}${release}${shared_ext}$major'
8466   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8467   shlibpath_var=LD_LIBRARY_PATH
8468   shlibpath_overrides_runpath=no
8469   # This implies no fast_install, which is unacceptable.
8470   # Some rework will be needed to allow for fast_install
8471   # before this can be enabled.
8472   hardcode_into_libs=yes
8473
8474   # Append ld.so.conf contents to the search path
8475   if test -f /etc/ld.so.conf; then
8476     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8477     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8478   fi
8479
8480   # We used to test for /lib/ld.so.1 and disable shared libraries on
8481   # powerpc, because MkLinux only supported shared libraries with the
8482   # GNU dynamic linker.  Since this was broken with cross compilers,
8483   # most powerpc-linux boxes support dynamic linking these days and
8484   # people can always --disable-shared, the test was removed, and we
8485   # assume the GNU/Linux dynamic linker is in use.
8486   dynamic_linker='GNU/Linux ld.so'
8487   ;;
8488
8489 netbsdelf*-gnu)
8490   version_type=linux
8491   need_lib_prefix=no
8492   need_version=no
8493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8494   soname_spec='${libname}${release}${shared_ext}$major'
8495   shlibpath_var=LD_LIBRARY_PATH
8496   shlibpath_overrides_runpath=no
8497   hardcode_into_libs=yes
8498   dynamic_linker='NetBSD ld.elf_so'
8499   ;;
8500
8501 knetbsd*-gnu)
8502   version_type=linux
8503   need_lib_prefix=no
8504   need_version=no
8505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8506   soname_spec='${libname}${release}${shared_ext}$major'
8507   shlibpath_var=LD_LIBRARY_PATH
8508   shlibpath_overrides_runpath=no
8509   hardcode_into_libs=yes
8510   dynamic_linker='GNU ld.so'
8511   ;;
8512
8513 netbsd*)
8514   version_type=sunos
8515   need_lib_prefix=no
8516   need_version=no
8517   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8519     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8520     dynamic_linker='NetBSD (a.out) ld.so'
8521   else
8522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8523     soname_spec='${libname}${release}${shared_ext}$major'
8524     dynamic_linker='NetBSD ld.elf_so'
8525   fi
8526   shlibpath_var=LD_LIBRARY_PATH
8527   shlibpath_overrides_runpath=yes
8528   hardcode_into_libs=yes
8529   ;;
8530
8531 newsos6)
8532   version_type=linux
8533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8534   shlibpath_var=LD_LIBRARY_PATH
8535   shlibpath_overrides_runpath=yes
8536   ;;
8537
8538 nto-qnx*)
8539   version_type=linux
8540   need_lib_prefix=no
8541   need_version=no
8542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8543   soname_spec='${libname}${release}${shared_ext}$major'
8544   shlibpath_var=LD_LIBRARY_PATH
8545   shlibpath_overrides_runpath=yes
8546   ;;
8547
8548 openbsd*)
8549   version_type=sunos
8550   sys_lib_dlsearch_path_spec="/usr/lib"
8551   need_lib_prefix=no
8552   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8553   case $host_os in
8554     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8555     *)                         need_version=no  ;;
8556   esac
8557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8558   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8559   shlibpath_var=LD_LIBRARY_PATH
8560   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8561     case $host_os in
8562       openbsd2.[89] | openbsd2.[89].*)
8563         shlibpath_overrides_runpath=no
8564         ;;
8565       *)
8566         shlibpath_overrides_runpath=yes
8567         ;;
8568       esac
8569   else
8570     shlibpath_overrides_runpath=yes
8571   fi
8572   ;;
8573
8574 os2*)
8575   libname_spec='$name'
8576   shrext_cmds=".dll"
8577   need_lib_prefix=no
8578   library_names_spec='$libname${shared_ext} $libname.a'
8579   dynamic_linker='OS/2 ld.exe'
8580   shlibpath_var=LIBPATH
8581   ;;
8582
8583 osf3* | osf4* | osf5*)
8584   version_type=osf
8585   need_lib_prefix=no
8586   need_version=no
8587   soname_spec='${libname}${release}${shared_ext}$major'
8588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8589   shlibpath_var=LD_LIBRARY_PATH
8590   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8591   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8592   ;;
8593
8594 solaris*)
8595   version_type=linux
8596   need_lib_prefix=no
8597   need_version=no
8598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8599   soname_spec='${libname}${release}${shared_ext}$major'
8600   shlibpath_var=LD_LIBRARY_PATH
8601   shlibpath_overrides_runpath=yes
8602   hardcode_into_libs=yes
8603   # ldd complains unless libraries are executable
8604   postinstall_cmds='chmod +x $lib'
8605   ;;
8606
8607 sunos4*)
8608   version_type=sunos
8609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8610   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8611   shlibpath_var=LD_LIBRARY_PATH
8612   shlibpath_overrides_runpath=yes
8613   if test "$with_gnu_ld" = yes; then
8614     need_lib_prefix=no
8615   fi
8616   need_version=yes
8617   ;;
8618
8619 sysv4 | sysv4.3*)
8620   version_type=linux
8621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622   soname_spec='${libname}${release}${shared_ext}$major'
8623   shlibpath_var=LD_LIBRARY_PATH
8624   case $host_vendor in
8625     sni)
8626       shlibpath_overrides_runpath=no
8627       need_lib_prefix=no
8628       export_dynamic_flag_spec='${wl}-Blargedynsym'
8629       runpath_var=LD_RUN_PATH
8630       ;;
8631     siemens)
8632       need_lib_prefix=no
8633       ;;
8634     motorola)
8635       need_lib_prefix=no
8636       need_version=no
8637       shlibpath_overrides_runpath=no
8638       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8639       ;;
8640   esac
8641   ;;
8642
8643 sysv4*MP*)
8644   if test -d /usr/nec ;then
8645     version_type=linux
8646     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8647     soname_spec='$libname${shared_ext}.$major'
8648     shlibpath_var=LD_LIBRARY_PATH
8649   fi
8650   ;;
8651
8652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8653   version_type=freebsd-elf
8654   need_lib_prefix=no
8655   need_version=no
8656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8657   soname_spec='${libname}${release}${shared_ext}$major'
8658   shlibpath_var=LD_LIBRARY_PATH
8659   hardcode_into_libs=yes
8660   if test "$with_gnu_ld" = yes; then
8661     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8662     shlibpath_overrides_runpath=no
8663   else
8664     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8665     shlibpath_overrides_runpath=yes
8666     case $host_os in
8667       sco3.2v5*)
8668         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8669         ;;
8670     esac
8671   fi
8672   sys_lib_dlsearch_path_spec='/usr/lib'
8673   ;;
8674
8675 uts4*)
8676   version_type=linux
8677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8678   soname_spec='${libname}${release}${shared_ext}$major'
8679   shlibpath_var=LD_LIBRARY_PATH
8680   ;;
8681
8682 *)
8683   dynamic_linker=no
8684   ;;
8685 esac
8686 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8687 echo "${ECHO_T}$dynamic_linker" >&6
8688 test "$dynamic_linker" = no && can_build_shared=no
8689
8690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8691 if test "$GCC" = yes; then
8692   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8693 fi
8694
8695 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8696 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8697 hardcode_action=
8698 if test -n "$hardcode_libdir_flag_spec" || \
8699    test -n "$runpath_var" || \
8700    test "X$hardcode_automatic" = "Xyes" ; then
8701
8702   # We can hardcode non-existant directories.
8703   if test "$hardcode_direct" != no &&
8704      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8705      # have to relink, otherwise we might link with an installed library
8706      # when we should be linking with a yet-to-be-installed one
8707      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8708      test "$hardcode_minus_L" != no; then
8709     # Linking always hardcodes the temporary library directory.
8710     hardcode_action=relink
8711   else
8712     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8713     hardcode_action=immediate
8714   fi
8715 else
8716   # We cannot hardcode anything, or else we can only hardcode existing
8717   # directories.
8718   hardcode_action=unsupported
8719 fi
8720 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8721 echo "${ECHO_T}$hardcode_action" >&6
8722
8723 if test "$hardcode_action" = relink; then
8724   # Fast installation is not supported
8725   enable_fast_install=no
8726 elif test "$shlibpath_overrides_runpath" = yes ||
8727      test "$enable_shared" = no; then
8728   # Fast installation is not necessary
8729   enable_fast_install=needless
8730 fi
8731
8732 striplib=
8733 old_striplib=
8734 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8735 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8736 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8737   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8738   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8739   echo "$as_me:$LINENO: result: yes" >&5
8740 echo "${ECHO_T}yes" >&6
8741 else
8742 # FIXME - insert some real tests, host_os isn't really good enough
8743   case $host_os in
8744    darwin*)
8745        if test -n "$STRIP" ; then
8746          striplib="$STRIP -x"
8747          echo "$as_me:$LINENO: result: yes" >&5
8748 echo "${ECHO_T}yes" >&6
8749        else
8750   echo "$as_me:$LINENO: result: no" >&5
8751 echo "${ECHO_T}no" >&6
8752 fi
8753        ;;
8754    *)
8755   echo "$as_me:$LINENO: result: no" >&5
8756 echo "${ECHO_T}no" >&6
8757     ;;
8758   esac
8759 fi
8760
8761 if test "x$enable_dlopen" != xyes; then
8762   enable_dlopen=unknown
8763   enable_dlopen_self=unknown
8764   enable_dlopen_self_static=unknown
8765 else
8766   lt_cv_dlopen=no
8767   lt_cv_dlopen_libs=
8768
8769   case $host_os in
8770   beos*)
8771     lt_cv_dlopen="load_add_on"
8772     lt_cv_dlopen_libs=
8773     lt_cv_dlopen_self=yes
8774     ;;
8775
8776   mingw* | pw32*)
8777     lt_cv_dlopen="LoadLibrary"
8778     lt_cv_dlopen_libs=
8779    ;;
8780
8781   cygwin*)
8782     lt_cv_dlopen="dlopen"
8783     lt_cv_dlopen_libs=
8784    ;;
8785
8786   darwin*)
8787   # if libdl is installed we need to link against it
8788     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8789 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-ldl  $LIBS"
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801
8802 /* Override any gcc2 internal prototype to avoid an error.  */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 /* We use char because int might match the return type of a gcc2
8807    builtin and then its argument prototype would still apply.  */
8808 char dlopen ();
8809 int
8810 main ()
8811 {
8812 dlopen ();
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819   (eval $ac_link) 2>conftest.er1
8820   ac_status=$?
8821   grep -v '^ *+' conftest.er1 >conftest.err
8822   rm -f conftest.er1
8823   cat conftest.err >&5
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); } &&
8826          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828   (eval $ac_try) 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; } &&
8832          { ac_try='test -s conftest$ac_exeext'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; }; then
8838   ac_cv_lib_dl_dlopen=yes
8839 else
8840   echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 ac_cv_lib_dl_dlopen=no
8844 fi
8845 rm -f conftest.err conftest.$ac_objext \
8846       conftest$ac_exeext conftest.$ac_ext
8847 LIBS=$ac_check_lib_save_LIBS
8848 fi
8849 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8850 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8851 if test $ac_cv_lib_dl_dlopen = yes; then
8852   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8853 else
8854
8855     lt_cv_dlopen="dyld"
8856     lt_cv_dlopen_libs=
8857     lt_cv_dlopen_self=yes
8858
8859 fi
8860
8861    ;;
8862
8863   *)
8864     echo "$as_me:$LINENO: checking for shl_load" >&5
8865 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8866 if test "${ac_cv_func_shl_load+set}" = set; then
8867   echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869   cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h.  */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h.  */
8875 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8877 #define shl_load innocuous_shl_load
8878
8879 /* System header to define __stub macros and hopefully few prototypes,
8880     which can conflict with char shl_load (); below.
8881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8882     <limits.h> exists even on freestanding compilers.  */
8883
8884 #ifdef __STDC__
8885 # include <limits.h>
8886 #else
8887 # include <assert.h>
8888 #endif
8889
8890 #undef shl_load
8891
8892 /* Override any gcc2 internal prototype to avoid an error.  */
8893 #ifdef __cplusplus
8894 extern "C"
8895 {
8896 #endif
8897 /* We use char because int might match the return type of a gcc2
8898    builtin and then its argument prototype would still apply.  */
8899 char shl_load ();
8900 /* The GNU C library defines this for functions which it implements
8901     to always fail with ENOSYS.  Some functions are actually named
8902     something starting with __ and the normal name is an alias.  */
8903 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8904 choke me
8905 #else
8906 char (*f) () = shl_load;
8907 #endif
8908 #ifdef __cplusplus
8909 }
8910 #endif
8911
8912 int
8913 main ()
8914 {
8915 return f != shl_load;
8916   ;
8917   return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922   (eval $ac_link) 2>conftest.er1
8923   ac_status=$?
8924   grep -v '^ *+' conftest.er1 >conftest.err
8925   rm -f conftest.er1
8926   cat conftest.err >&5
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } &&
8929          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931   (eval $ac_try) 2>&5
8932   ac_status=$?
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); }; } &&
8935          { ac_try='test -s conftest$ac_exeext'
8936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937   (eval $ac_try) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; }; then
8941   ac_cv_func_shl_load=yes
8942 else
8943   echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946 ac_cv_func_shl_load=no
8947 fi
8948 rm -f conftest.err conftest.$ac_objext \
8949       conftest$ac_exeext conftest.$ac_ext
8950 fi
8951 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8952 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8953 if test $ac_cv_func_shl_load = yes; then
8954   lt_cv_dlopen="shl_load"
8955 else
8956   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8957 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8958 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8959   echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961   ac_check_lib_save_LIBS=$LIBS
8962 LIBS="-ldld  $LIBS"
8963 cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h.  */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h.  */
8969
8970 /* Override any gcc2 internal prototype to avoid an error.  */
8971 #ifdef __cplusplus
8972 extern "C"
8973 #endif
8974 /* We use char because int might match the return type of a gcc2
8975    builtin and then its argument prototype would still apply.  */
8976 char shl_load ();
8977 int
8978 main ()
8979 {
8980 shl_load ();
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987   (eval $ac_link) 2>conftest.er1
8988   ac_status=$?
8989   grep -v '^ *+' conftest.er1 >conftest.err
8990   rm -f conftest.er1
8991   cat conftest.err >&5
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); } &&
8994          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996   (eval $ac_try) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); }; } &&
9000          { ac_try='test -s conftest$ac_exeext'
9001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002   (eval $ac_try) 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); }; }; then
9006   ac_cv_lib_dld_shl_load=yes
9007 else
9008   echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 ac_cv_lib_dld_shl_load=no
9012 fi
9013 rm -f conftest.err conftest.$ac_objext \
9014       conftest$ac_exeext conftest.$ac_ext
9015 LIBS=$ac_check_lib_save_LIBS
9016 fi
9017 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9018 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9019 if test $ac_cv_lib_dld_shl_load = yes; then
9020   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9021 else
9022   echo "$as_me:$LINENO: checking for dlopen" >&5
9023 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9024 if test "${ac_cv_func_dlopen+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9035 #define dlopen innocuous_dlopen
9036
9037 /* System header to define __stub macros and hopefully few prototypes,
9038     which can conflict with char dlopen (); below.
9039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040     <limits.h> exists even on freestanding compilers.  */
9041
9042 #ifdef __STDC__
9043 # include <limits.h>
9044 #else
9045 # include <assert.h>
9046 #endif
9047
9048 #undef dlopen
9049
9050 /* Override any gcc2 internal prototype to avoid an error.  */
9051 #ifdef __cplusplus
9052 extern "C"
9053 {
9054 #endif
9055 /* We use char because int might match the return type of a gcc2
9056    builtin and then its argument prototype would still apply.  */
9057 char dlopen ();
9058 /* The GNU C library defines this for functions which it implements
9059     to always fail with ENOSYS.  Some functions are actually named
9060     something starting with __ and the normal name is an alias.  */
9061 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9062 choke me
9063 #else
9064 char (*f) () = dlopen;
9065 #endif
9066 #ifdef __cplusplus
9067 }
9068 #endif
9069
9070 int
9071 main ()
9072 {
9073 return f != dlopen;
9074   ;
9075   return 0;
9076 }
9077 _ACEOF
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080   (eval $ac_link) 2>conftest.er1
9081   ac_status=$?
9082   grep -v '^ *+' conftest.er1 >conftest.err
9083   rm -f conftest.er1
9084   cat conftest.err >&5
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); } &&
9087          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089   (eval $ac_try) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; } &&
9093          { ac_try='test -s conftest$ac_exeext'
9094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095   (eval $ac_try) 2>&5
9096   ac_status=$?
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); }; }; then
9099   ac_cv_func_dlopen=yes
9100 else
9101   echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104 ac_cv_func_dlopen=no
9105 fi
9106 rm -f conftest.err conftest.$ac_objext \
9107       conftest$ac_exeext conftest.$ac_ext
9108 fi
9109 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9110 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9111 if test $ac_cv_func_dlopen = yes; then
9112   lt_cv_dlopen="dlopen"
9113 else
9114   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9115 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9116 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   ac_check_lib_save_LIBS=$LIBS
9120 LIBS="-ldl  $LIBS"
9121 cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h.  */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h.  */
9127
9128 /* Override any gcc2 internal prototype to avoid an error.  */
9129 #ifdef __cplusplus
9130 extern "C"
9131 #endif
9132 /* We use char because int might match the return type of a gcc2
9133    builtin and then its argument prototype would still apply.  */
9134 char dlopen ();
9135 int
9136 main ()
9137 {
9138 dlopen ();
9139   ;
9140   return 0;
9141 }
9142 _ACEOF
9143 rm -f conftest.$ac_objext conftest$ac_exeext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145   (eval $ac_link) 2>conftest.er1
9146   ac_status=$?
9147   grep -v '^ *+' conftest.er1 >conftest.err
9148   rm -f conftest.er1
9149   cat conftest.err >&5
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); } &&
9152          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154   (eval $ac_try) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; } &&
9158          { ac_try='test -s conftest$ac_exeext'
9159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160   (eval $ac_try) 2>&5
9161   ac_status=$?
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); }; }; then
9164   ac_cv_lib_dl_dlopen=yes
9165 else
9166   echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9168
9169 ac_cv_lib_dl_dlopen=no
9170 fi
9171 rm -f conftest.err conftest.$ac_objext \
9172       conftest$ac_exeext conftest.$ac_ext
9173 LIBS=$ac_check_lib_save_LIBS
9174 fi
9175 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9176 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9177 if test $ac_cv_lib_dl_dlopen = yes; then
9178   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9179 else
9180   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9181 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9182 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9183   echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185   ac_check_lib_save_LIBS=$LIBS
9186 LIBS="-lsvld  $LIBS"
9187 cat >conftest.$ac_ext <<_ACEOF
9188 /* confdefs.h.  */
9189 _ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h.  */
9193
9194 /* Override any gcc2 internal prototype to avoid an error.  */
9195 #ifdef __cplusplus
9196 extern "C"
9197 #endif
9198 /* We use char because int might match the return type of a gcc2
9199    builtin and then its argument prototype would still apply.  */
9200 char dlopen ();
9201 int
9202 main ()
9203 {
9204 dlopen ();
9205   ;
9206   return 0;
9207 }
9208 _ACEOF
9209 rm -f conftest.$ac_objext conftest$ac_exeext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9211   (eval $ac_link) 2>conftest.er1
9212   ac_status=$?
9213   grep -v '^ *+' conftest.er1 >conftest.err
9214   rm -f conftest.er1
9215   cat conftest.err >&5
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); } &&
9218          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220   (eval $ac_try) 2>&5
9221   ac_status=$?
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); }; } &&
9224          { ac_try='test -s conftest$ac_exeext'
9225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226   (eval $ac_try) 2>&5
9227   ac_status=$?
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); }; }; then
9230   ac_cv_lib_svld_dlopen=yes
9231 else
9232   echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9234
9235 ac_cv_lib_svld_dlopen=no
9236 fi
9237 rm -f conftest.err conftest.$ac_objext \
9238       conftest$ac_exeext conftest.$ac_ext
9239 LIBS=$ac_check_lib_save_LIBS
9240 fi
9241 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9242 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9243 if test $ac_cv_lib_svld_dlopen = yes; then
9244   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9245 else
9246   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9247 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9248 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9249   echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251   ac_check_lib_save_LIBS=$LIBS
9252 LIBS="-ldld  $LIBS"
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259
9260 /* Override any gcc2 internal prototype to avoid an error.  */
9261 #ifdef __cplusplus
9262 extern "C"
9263 #endif
9264 /* We use char because int might match the return type of a gcc2
9265    builtin and then its argument prototype would still apply.  */
9266 char dld_link ();
9267 int
9268 main ()
9269 {
9270 dld_link ();
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277   (eval $ac_link) 2>conftest.er1
9278   ac_status=$?
9279   grep -v '^ *+' conftest.er1 >conftest.err
9280   rm -f conftest.er1
9281   cat conftest.err >&5
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } &&
9284          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286   (eval $ac_try) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; } &&
9290          { ac_try='test -s conftest$ac_exeext'
9291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292   (eval $ac_try) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); }; }; then
9296   ac_cv_lib_dld_dld_link=yes
9297 else
9298   echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9300
9301 ac_cv_lib_dld_dld_link=no
9302 fi
9303 rm -f conftest.err conftest.$ac_objext \
9304       conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9306 fi
9307 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9308 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9309 if test $ac_cv_lib_dld_dld_link = yes; then
9310   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9311 fi
9312
9313
9314 fi
9315
9316
9317 fi
9318
9319
9320 fi
9321
9322
9323 fi
9324
9325
9326 fi
9327
9328     ;;
9329   esac
9330
9331   if test "x$lt_cv_dlopen" != xno; then
9332     enable_dlopen=yes
9333   else
9334     enable_dlopen=no
9335   fi
9336
9337   case $lt_cv_dlopen in
9338   dlopen)
9339     save_CPPFLAGS="$CPPFLAGS"
9340     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9341
9342     save_LDFLAGS="$LDFLAGS"
9343     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9344
9345     save_LIBS="$LIBS"
9346     LIBS="$lt_cv_dlopen_libs $LIBS"
9347
9348     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9349 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9350 if test "${lt_cv_dlopen_self+set}" = set; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353           if test "$cross_compiling" = yes; then :
9354   lt_cv_dlopen_self=cross
9355 else
9356   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9357   lt_status=$lt_dlunknown
9358   cat > conftest.$ac_ext <<EOF
9359 #line 9359 "configure"
9360 #include "confdefs.h"
9361
9362 #if HAVE_DLFCN_H
9363 #include <dlfcn.h>
9364 #endif
9365
9366 #include <stdio.h>
9367
9368 #ifdef RTLD_GLOBAL
9369 #  define LT_DLGLOBAL           RTLD_GLOBAL
9370 #else
9371 #  ifdef DL_GLOBAL
9372 #    define LT_DLGLOBAL         DL_GLOBAL
9373 #  else
9374 #    define LT_DLGLOBAL         0
9375 #  endif
9376 #endif
9377
9378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9379    find out it does not work in some platform. */
9380 #ifndef LT_DLLAZY_OR_NOW
9381 #  ifdef RTLD_LAZY
9382 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9383 #  else
9384 #    ifdef DL_LAZY
9385 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9386 #    else
9387 #      ifdef RTLD_NOW
9388 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9389 #      else
9390 #        ifdef DL_NOW
9391 #          define LT_DLLAZY_OR_NOW      DL_NOW
9392 #        else
9393 #          define LT_DLLAZY_OR_NOW      0
9394 #        endif
9395 #      endif
9396 #    endif
9397 #  endif
9398 #endif
9399
9400 #ifdef __cplusplus
9401 extern "C" void exit (int);
9402 #endif
9403
9404 void fnord() { int i=42;}
9405 int main ()
9406 {
9407   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9408   int status = $lt_dlunknown;
9409
9410   if (self)
9411     {
9412       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9413       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9414       /* dlclose (self); */
9415     }
9416   else
9417     puts (dlerror ());
9418
9419     exit (status);
9420 }
9421 EOF
9422   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9423   (eval $ac_link) 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9427     (./conftest; exit; ) >&5 2>/dev/null
9428     lt_status=$?
9429     case x$lt_status in
9430       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9431       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9432       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9433     esac
9434   else :
9435     # compilation failed
9436     lt_cv_dlopen_self=no
9437   fi
9438 fi
9439 rm -fr conftest*
9440
9441
9442 fi
9443 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9444 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9445
9446     if test "x$lt_cv_dlopen_self" = xyes; then
9447       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9448       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9449 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9450 if test "${lt_cv_dlopen_self_static+set}" = set; then
9451   echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453           if test "$cross_compiling" = yes; then :
9454   lt_cv_dlopen_self_static=cross
9455 else
9456   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9457   lt_status=$lt_dlunknown
9458   cat > conftest.$ac_ext <<EOF
9459 #line 9459 "configure"
9460 #include "confdefs.h"
9461
9462 #if HAVE_DLFCN_H
9463 #include <dlfcn.h>
9464 #endif
9465
9466 #include <stdio.h>
9467
9468 #ifdef RTLD_GLOBAL
9469 #  define LT_DLGLOBAL           RTLD_GLOBAL
9470 #else
9471 #  ifdef DL_GLOBAL
9472 #    define LT_DLGLOBAL         DL_GLOBAL
9473 #  else
9474 #    define LT_DLGLOBAL         0
9475 #  endif
9476 #endif
9477
9478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9479    find out it does not work in some platform. */
9480 #ifndef LT_DLLAZY_OR_NOW
9481 #  ifdef RTLD_LAZY
9482 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9483 #  else
9484 #    ifdef DL_LAZY
9485 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9486 #    else
9487 #      ifdef RTLD_NOW
9488 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9489 #      else
9490 #        ifdef DL_NOW
9491 #          define LT_DLLAZY_OR_NOW      DL_NOW
9492 #        else
9493 #          define LT_DLLAZY_OR_NOW      0
9494 #        endif
9495 #      endif
9496 #    endif
9497 #  endif
9498 #endif
9499
9500 #ifdef __cplusplus
9501 extern "C" void exit (int);
9502 #endif
9503
9504 void fnord() { int i=42;}
9505 int main ()
9506 {
9507   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9508   int status = $lt_dlunknown;
9509
9510   if (self)
9511     {
9512       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9513       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9514       /* dlclose (self); */
9515     }
9516   else
9517     puts (dlerror ());
9518
9519     exit (status);
9520 }
9521 EOF
9522   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9523   (eval $ac_link) 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9527     (./conftest; exit; ) >&5 2>/dev/null
9528     lt_status=$?
9529     case x$lt_status in
9530       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9531       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9532       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9533     esac
9534   else :
9535     # compilation failed
9536     lt_cv_dlopen_self_static=no
9537   fi
9538 fi
9539 rm -fr conftest*
9540
9541
9542 fi
9543 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9544 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9545     fi
9546
9547     CPPFLAGS="$save_CPPFLAGS"
9548     LDFLAGS="$save_LDFLAGS"
9549     LIBS="$save_LIBS"
9550     ;;
9551   esac
9552
9553   case $lt_cv_dlopen_self in
9554   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9555   *) enable_dlopen_self=unknown ;;
9556   esac
9557
9558   case $lt_cv_dlopen_self_static in
9559   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9560   *) enable_dlopen_self_static=unknown ;;
9561   esac
9562 fi
9563
9564
9565 # Report which library types will actually be built
9566 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9567 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9568 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9569 echo "${ECHO_T}$can_build_shared" >&6
9570
9571 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9572 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9573 test "$can_build_shared" = "no" && enable_shared=no
9574
9575 # On AIX, shared libraries and static libraries use the same namespace, and
9576 # are all built from PIC.
9577 case $host_os in
9578 aix3*)
9579   test "$enable_shared" = yes && enable_static=no
9580   if test -n "$RANLIB"; then
9581     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9582     postinstall_cmds='$RANLIB $lib'
9583   fi
9584   ;;
9585
9586 aix4* | aix5*)
9587   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9588     test "$enable_shared" = yes && enable_static=no
9589   fi
9590     ;;
9591 esac
9592 echo "$as_me:$LINENO: result: $enable_shared" >&5
9593 echo "${ECHO_T}$enable_shared" >&6
9594
9595 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9596 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9597 # Make sure either enable_shared or enable_static is yes.
9598 test "$enable_shared" = yes || enable_static=yes
9599 echo "$as_me:$LINENO: result: $enable_static" >&5
9600 echo "${ECHO_T}$enable_static" >&6
9601
9602 # The else clause should only fire when bootstrapping the
9603 # libtool distribution, otherwise you forgot to ship ltmain.sh
9604 # with your package, and you will get complaints that there are
9605 # no rules to generate ltmain.sh.
9606 if test -f "$ltmain"; then
9607   # See if we are running on zsh, and set the options which allow our commands through
9608   # without removal of \ escapes.
9609   if test -n "${ZSH_VERSION+set}" ; then
9610     setopt NO_GLOB_SUBST
9611   fi
9612   # Now quote all the things that may contain metacharacters while being
9613   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9614   # variables and quote the copies for generation of the libtool script.
9615   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9616     SED SHELL STRIP \
9617     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9618     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9619     deplibs_check_method reload_flag reload_cmds need_locks \
9620     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9621     lt_cv_sys_global_symbol_to_c_name_address \
9622     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9623     old_postinstall_cmds old_postuninstall_cmds \
9624     compiler \
9625     CC \
9626     LD \
9627     lt_prog_compiler_wl \
9628     lt_prog_compiler_pic \
9629     lt_prog_compiler_static \
9630     lt_prog_compiler_no_builtin_flag \
9631     export_dynamic_flag_spec \
9632     thread_safe_flag_spec \
9633     whole_archive_flag_spec \
9634     enable_shared_with_static_runtimes \
9635     old_archive_cmds \
9636     old_archive_from_new_cmds \
9637     predep_objects \
9638     postdep_objects \
9639     predeps \
9640     postdeps \
9641     compiler_lib_search_path \
9642     archive_cmds \
9643     archive_expsym_cmds \
9644     postinstall_cmds \
9645     postuninstall_cmds \
9646     old_archive_from_expsyms_cmds \
9647     allow_undefined_flag \
9648     no_undefined_flag \
9649     export_symbols_cmds \
9650     hardcode_libdir_flag_spec \
9651     hardcode_libdir_flag_spec_ld \
9652     hardcode_libdir_separator \
9653     hardcode_automatic \
9654     module_cmds \
9655     module_expsym_cmds \
9656     lt_cv_prog_compiler_c_o \
9657     exclude_expsyms \
9658     include_expsyms; do
9659
9660     case $var in
9661     old_archive_cmds | \
9662     old_archive_from_new_cmds | \
9663     archive_cmds | \
9664     archive_expsym_cmds | \
9665     module_cmds | \
9666     module_expsym_cmds | \
9667     old_archive_from_expsyms_cmds | \
9668     export_symbols_cmds | \
9669     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9670     postinstall_cmds | postuninstall_cmds | \
9671     old_postinstall_cmds | old_postuninstall_cmds | \
9672     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9673       # Double-quote double-evaled strings.
9674       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9675       ;;
9676     *)
9677       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9678       ;;
9679     esac
9680   done
9681
9682   case $lt_echo in
9683   *'\$0 --fallback-echo"')
9684     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9685     ;;
9686   esac
9687
9688 cfgfile="${ofile}T"
9689   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9690   $rm -f "$cfgfile"
9691   { echo "$as_me:$LINENO: creating $ofile" >&5
9692 echo "$as_me: creating $ofile" >&6;}
9693
9694   cat <<__EOF__ >> "$cfgfile"
9695 #! $SHELL
9696
9697 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9698 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9699 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9700 #
9701 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9702 # Free Software Foundation, Inc.
9703 #
9704 # This file is part of GNU Libtool:
9705 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9706 #
9707 # This program is free software; you can redistribute it and/or modify
9708 # it under the terms of the GNU General Public License as published by
9709 # the Free Software Foundation; either version 2 of the License, or
9710 # (at your option) any later version.
9711 #
9712 # This program is distributed in the hope that it will be useful, but
9713 # WITHOUT ANY WARRANTY; without even the implied warranty of
9714 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9715 # General Public License for more details.
9716 #
9717 # You should have received a copy of the GNU General Public License
9718 # along with this program; if not, write to the Free Software
9719 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9720 #
9721 # As a special exception to the GNU General Public License, if you
9722 # distribute this file as part of a program that contains a
9723 # configuration script generated by Autoconf, you may include it under
9724 # the same distribution terms that you use for the rest of that program.
9725
9726 # A sed program that does not truncate output.
9727 SED=$lt_SED
9728
9729 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9730 Xsed="$SED -e 1s/^X//"
9731
9732 # The HP-UX ksh and POSIX shell print the target directory to stdout
9733 # if CDPATH is set.
9734 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9735
9736 # The names of the tagged configurations supported by this script.
9737 available_tags=
9738
9739 # ### BEGIN LIBTOOL CONFIG
9740
9741 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9742
9743 # Shell to use when invoking shell scripts.
9744 SHELL=$lt_SHELL
9745
9746 # Whether or not to build shared libraries.
9747 build_libtool_libs=$enable_shared
9748
9749 # Whether or not to build static libraries.
9750 build_old_libs=$enable_static
9751
9752 # Whether or not to add -lc for building shared libraries.
9753 build_libtool_need_lc=$archive_cmds_need_lc
9754
9755 # Whether or not to disallow shared libs when runtime libs are static
9756 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9757
9758 # Whether or not to optimize for fast installation.
9759 fast_install=$enable_fast_install
9760
9761 # The host system.
9762 host_alias=$host_alias
9763 host=$host
9764 host_os=$host_os
9765
9766 # The build system.
9767 build_alias=$build_alias
9768 build=$build
9769 build_os=$build_os
9770
9771 # An echo program that does not interpret backslashes.
9772 echo=$lt_echo
9773
9774 # The archiver.
9775 AR=$lt_AR
9776 AR_FLAGS=$lt_AR_FLAGS
9777
9778 # A C compiler.
9779 LTCC=$lt_LTCC
9780
9781 # LTCC compiler flags.
9782 LTCFLAGS=$lt_LTCFLAGS
9783
9784 # A language-specific compiler.
9785 CC=$lt_compiler
9786
9787 # Is the compiler the GNU C compiler?
9788 with_gcc=$GCC
9789
9790 # An ERE matcher.
9791 EGREP=$lt_EGREP
9792
9793 # The linker used to build libraries.
9794 LD=$lt_LD
9795
9796 # Whether we need hard or soft links.
9797 LN_S=$lt_LN_S
9798
9799 # A BSD-compatible nm program.
9800 NM=$lt_NM
9801
9802 # A symbol stripping program
9803 STRIP=$lt_STRIP
9804
9805 # Used to examine libraries when file_magic_cmd begins "file"
9806 MAGIC_CMD=$MAGIC_CMD
9807
9808 # Used on cygwin: DLL creation program.
9809 DLLTOOL="$DLLTOOL"
9810
9811 # Used on cygwin: object dumper.
9812 OBJDUMP="$OBJDUMP"
9813
9814 # Used on cygwin: assembler.
9815 AS="$AS"
9816
9817 # The name of the directory that contains temporary libtool files.
9818 objdir=$objdir
9819
9820 # How to create reloadable object files.
9821 reload_flag=$lt_reload_flag
9822 reload_cmds=$lt_reload_cmds
9823
9824 # How to pass a linker flag through the compiler.
9825 wl=$lt_lt_prog_compiler_wl
9826
9827 # Object file suffix (normally "o").
9828 objext="$ac_objext"
9829
9830 # Old archive suffix (normally "a").
9831 libext="$libext"
9832
9833 # Shared library suffix (normally ".so").
9834 shrext_cmds='$shrext_cmds'
9835
9836 # Executable file suffix (normally "").
9837 exeext="$exeext"
9838
9839 # Additional compiler flags for building library objects.
9840 pic_flag=$lt_lt_prog_compiler_pic
9841 pic_mode=$pic_mode
9842
9843 # What is the maximum length of a command?
9844 max_cmd_len=$lt_cv_sys_max_cmd_len
9845
9846 # Does compiler simultaneously support -c and -o options?
9847 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9848
9849 # Must we lock files when doing compilation?
9850 need_locks=$lt_need_locks
9851
9852 # Do we need the lib prefix for modules?
9853 need_lib_prefix=$need_lib_prefix
9854
9855 # Do we need a version for libraries?
9856 need_version=$need_version
9857
9858 # Whether dlopen is supported.
9859 dlopen_support=$enable_dlopen
9860
9861 # Whether dlopen of programs is supported.
9862 dlopen_self=$enable_dlopen_self
9863
9864 # Whether dlopen of statically linked programs is supported.
9865 dlopen_self_static=$enable_dlopen_self_static
9866
9867 # Compiler flag to prevent dynamic linking.
9868 link_static_flag=$lt_lt_prog_compiler_static
9869
9870 # Compiler flag to turn off builtin functions.
9871 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9872
9873 # Compiler flag to allow reflexive dlopens.
9874 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9875
9876 # Compiler flag to generate shared objects directly from archives.
9877 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9878
9879 # Compiler flag to generate thread-safe objects.
9880 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9881
9882 # Library versioning type.
9883 version_type=$version_type
9884
9885 # Format of library name prefix.
9886 libname_spec=$lt_libname_spec
9887
9888 # List of archive names.  First name is the real one, the rest are links.
9889 # The last name is the one that the linker finds with -lNAME.
9890 library_names_spec=$lt_library_names_spec
9891
9892 # The coded name of the library, if different from the real name.
9893 soname_spec=$lt_soname_spec
9894
9895 # Commands used to build and install an old-style archive.
9896 RANLIB=$lt_RANLIB
9897 old_archive_cmds=$lt_old_archive_cmds
9898 old_postinstall_cmds=$lt_old_postinstall_cmds
9899 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9900
9901 # Create an old-style archive from a shared archive.
9902 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9903
9904 # Create a temporary old-style archive to link instead of a shared archive.
9905 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9906
9907 # Commands used to build and install a shared archive.
9908 archive_cmds=$lt_archive_cmds
9909 archive_expsym_cmds=$lt_archive_expsym_cmds
9910 postinstall_cmds=$lt_postinstall_cmds
9911 postuninstall_cmds=$lt_postuninstall_cmds
9912
9913 # Commands used to build a loadable module (assumed same as above if empty)
9914 module_cmds=$lt_module_cmds
9915 module_expsym_cmds=$lt_module_expsym_cmds
9916
9917 # Commands to strip libraries.
9918 old_striplib=$lt_old_striplib
9919 striplib=$lt_striplib
9920
9921 # Dependencies to place before the objects being linked to create a
9922 # shared library.
9923 predep_objects=$lt_predep_objects
9924
9925 # Dependencies to place after the objects being linked to create a
9926 # shared library.
9927 postdep_objects=$lt_postdep_objects
9928
9929 # Dependencies to place before the objects being linked to create a
9930 # shared library.
9931 predeps=$lt_predeps
9932
9933 # Dependencies to place after the objects being linked to create a
9934 # shared library.
9935 postdeps=$lt_postdeps
9936
9937 # The library search path used internally by the compiler when linking
9938 # a shared library.
9939 compiler_lib_search_path=$lt_compiler_lib_search_path
9940
9941 # Method to check whether dependent libraries are shared objects.
9942 deplibs_check_method=$lt_deplibs_check_method
9943
9944 # Command to use when deplibs_check_method == file_magic.
9945 file_magic_cmd=$lt_file_magic_cmd
9946
9947 # Flag that allows shared libraries with undefined symbols to be built.
9948 allow_undefined_flag=$lt_allow_undefined_flag
9949
9950 # Flag that forces no undefined symbols.
9951 no_undefined_flag=$lt_no_undefined_flag
9952
9953 # Commands used to finish a libtool library installation in a directory.
9954 finish_cmds=$lt_finish_cmds
9955
9956 # Same as above, but a single script fragment to be evaled but not shown.
9957 finish_eval=$lt_finish_eval
9958
9959 # Take the output of nm and produce a listing of raw symbols and C names.
9960 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9961
9962 # Transform the output of nm in a proper C declaration
9963 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9964
9965 # Transform the output of nm in a C name address pair
9966 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9967
9968 # This is the shared library runtime path variable.
9969 runpath_var=$runpath_var
9970
9971 # This is the shared library path variable.
9972 shlibpath_var=$shlibpath_var
9973
9974 # Is shlibpath searched before the hard-coded library search path?
9975 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9976
9977 # How to hardcode a shared library path into an executable.
9978 hardcode_action=$hardcode_action
9979
9980 # Whether we should hardcode library paths into libraries.
9981 hardcode_into_libs=$hardcode_into_libs
9982
9983 # Flag to hardcode \$libdir into a binary during linking.
9984 # This must work even if \$libdir does not exist.
9985 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9986
9987 # If ld is used when linking, flag to hardcode \$libdir into
9988 # a binary during linking. This must work even if \$libdir does
9989 # not exist.
9990 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9991
9992 # Whether we need a single -rpath flag with a separated argument.
9993 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9994
9995 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9996 # resulting binary.
9997 hardcode_direct=$hardcode_direct
9998
9999 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10000 # resulting binary.
10001 hardcode_minus_L=$hardcode_minus_L
10002
10003 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10004 # the resulting binary.
10005 hardcode_shlibpath_var=$hardcode_shlibpath_var
10006
10007 # Set to yes if building a shared library automatically hardcodes DIR into the library
10008 # and all subsequent libraries and executables linked against it.
10009 hardcode_automatic=$hardcode_automatic
10010
10011 # Variables whose values should be saved in libtool wrapper scripts and
10012 # restored at relink time.
10013 variables_saved_for_relink="$variables_saved_for_relink"
10014
10015 # Whether libtool must link a program against all its dependency libraries.
10016 link_all_deplibs=$link_all_deplibs
10017
10018 # Compile-time system search path for libraries
10019 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10020
10021 # Run-time system search path for libraries
10022 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10023
10024 # Fix the shell variable \$srcfile for the compiler.
10025 fix_srcfile_path="$fix_srcfile_path"
10026
10027 # Set to yes if exported symbols are required.
10028 always_export_symbols=$always_export_symbols
10029
10030 # The commands to list exported symbols.
10031 export_symbols_cmds=$lt_export_symbols_cmds
10032
10033 # The commands to extract the exported symbol list from a shared archive.
10034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10035
10036 # Symbols that should not be listed in the preloaded symbols.
10037 exclude_expsyms=$lt_exclude_expsyms
10038
10039 # Symbols that must always be exported.
10040 include_expsyms=$lt_include_expsyms
10041
10042 # ### END LIBTOOL CONFIG
10043
10044 __EOF__
10045
10046
10047   case $host_os in
10048   aix3*)
10049     cat <<\EOF >> "$cfgfile"
10050
10051 # AIX sometimes has problems with the GCC collect2 program.  For some
10052 # reason, if we set the COLLECT_NAMES environment variable, the problems
10053 # vanish in a puff of smoke.
10054 if test "X${COLLECT_NAMES+set}" != Xset; then
10055   COLLECT_NAMES=
10056   export COLLECT_NAMES
10057 fi
10058 EOF
10059     ;;
10060   esac
10061
10062   # We use sed instead of cat because bash on DJGPP gets confused if
10063   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10064   # text mode, it properly converts lines to CR/LF.  This bash problem
10065   # is reportedly fixed, but why not run on old versions too?
10066   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10067
10068   mv -f "$cfgfile" "$ofile" || \
10069     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10070   chmod +x "$ofile"
10071
10072 else
10073   # If there is no Makefile yet, we rely on a make rule to execute
10074   # `config.status --recheck' to rerun these tests and create the
10075   # libtool script then.
10076   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10077   if test -f "$ltmain_in"; then
10078     test -f Makefile && make "$ltmain"
10079   fi
10080 fi
10081
10082
10083 ac_ext=c
10084 ac_cpp='$CPP $CPPFLAGS'
10085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10088
10089 CC="$lt_save_CC"
10090
10091
10092 # Check whether --with-tags or --without-tags was given.
10093 if test "${with_tags+set}" = set; then
10094   withval="$with_tags"
10095   tagnames="$withval"
10096 fi;
10097
10098 if test -f "$ltmain" && test -n "$tagnames"; then
10099   if test ! -f "${ofile}"; then
10100     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10101 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10102   fi
10103
10104   if test -z "$LTCC"; then
10105     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10106     if test -z "$LTCC"; then
10107       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10108 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10109     else
10110       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10111 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10112     fi
10113   fi
10114   if test -z "$LTCFLAGS"; then
10115     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10116   fi
10117
10118   # Extract list of available tagged configurations in $ofile.
10119   # Note that this assumes the entire list is on one line.
10120   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10121
10122   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10123   for tagname in $tagnames; do
10124     IFS="$lt_save_ifs"
10125     # Check whether tagname contains only valid characters
10126     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10127     "") ;;
10128     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10129 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10130    { (exit 1); exit 1; }; }
10131         ;;
10132     esac
10133
10134     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10135     then
10136       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10137 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10138    { (exit 1); exit 1; }; }
10139     fi
10140
10141     # Update the list of available tags.
10142     if test -n "$tagname"; then
10143       echo appending configuration tag \"$tagname\" to $ofile
10144
10145       case $tagname in
10146       CXX)
10147         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10148             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10149             (test "X$CXX" != "Xg++"))) ; then
10150           ac_ext=cc
10151 ac_cpp='$CXXCPP $CPPFLAGS'
10152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10155
10156
10157
10158
10159 archive_cmds_need_lc_CXX=no
10160 allow_undefined_flag_CXX=
10161 always_export_symbols_CXX=no
10162 archive_expsym_cmds_CXX=
10163 export_dynamic_flag_spec_CXX=
10164 hardcode_direct_CXX=no
10165 hardcode_libdir_flag_spec_CXX=
10166 hardcode_libdir_flag_spec_ld_CXX=
10167 hardcode_libdir_separator_CXX=
10168 hardcode_minus_L_CXX=no
10169 hardcode_shlibpath_var_CXX=unsupported
10170 hardcode_automatic_CXX=no
10171 module_cmds_CXX=
10172 module_expsym_cmds_CXX=
10173 link_all_deplibs_CXX=unknown
10174 old_archive_cmds_CXX=$old_archive_cmds
10175 no_undefined_flag_CXX=
10176 whole_archive_flag_spec_CXX=
10177 enable_shared_with_static_runtimes_CXX=no
10178
10179 # Dependencies to place before and after the object being linked:
10180 predep_objects_CXX=
10181 postdep_objects_CXX=
10182 predeps_CXX=
10183 postdeps_CXX=
10184 compiler_lib_search_path_CXX=
10185
10186 # Source file extension for C++ test sources.
10187 ac_ext=cpp
10188
10189 # Object file extension for compiled C++ test sources.
10190 objext=o
10191 objext_CXX=$objext
10192
10193 # Code to be used in simple compile tests
10194 lt_simple_compile_test_code="int some_variable = 0;\n"
10195
10196 # Code to be used in simple link tests
10197 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10198
10199 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10200
10201 # If no C compiler was specified, use CC.
10202 LTCC=${LTCC-"$CC"}
10203
10204 # If no C compiler flags were specified, use CFLAGS.
10205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10206
10207 # Allow CC to be a program name with arguments.
10208 compiler=$CC
10209
10210
10211 # save warnings/boilerplate of simple test code
10212 ac_outfile=conftest.$ac_objext
10213 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10214 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10215 _lt_compiler_boilerplate=`cat conftest.err`
10216 $rm conftest*
10217
10218 ac_outfile=conftest.$ac_objext
10219 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10220 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10221 _lt_linker_boilerplate=`cat conftest.err`
10222 $rm conftest*
10223
10224
10225 # Allow CC to be a program name with arguments.
10226 lt_save_CC=$CC
10227 lt_save_LD=$LD
10228 lt_save_GCC=$GCC
10229 GCC=$GXX
10230 lt_save_with_gnu_ld=$with_gnu_ld
10231 lt_save_path_LD=$lt_cv_path_LD
10232 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10233   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10234 else
10235   $as_unset lt_cv_prog_gnu_ld
10236 fi
10237 if test -n "${lt_cv_path_LDCXX+set}"; then
10238   lt_cv_path_LD=$lt_cv_path_LDCXX
10239 else
10240   $as_unset lt_cv_path_LD
10241 fi
10242 test -z "${LDCXX+set}" || LD=$LDCXX
10243 CC=${CXX-"c++"}
10244 compiler=$CC
10245 compiler_CXX=$CC
10246 for cc_temp in $compiler""; do
10247   case $cc_temp in
10248     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10249     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10250     \-*) ;;
10251     *) break;;
10252   esac
10253 done
10254 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10255
10256
10257 # We don't want -fno-exception wen compiling C++ code, so set the
10258 # no_builtin_flag separately
10259 if test "$GXX" = yes; then
10260   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10261 else
10262   lt_prog_compiler_no_builtin_flag_CXX=
10263 fi
10264
10265 if test "$GXX" = yes; then
10266   # Set up default GNU C++ configuration
10267
10268
10269 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10270 if test "${with_gnu_ld+set}" = set; then
10271   withval="$with_gnu_ld"
10272   test "$withval" = no || with_gnu_ld=yes
10273 else
10274   with_gnu_ld=no
10275 fi;
10276 ac_prog=ld
10277 if test "$GCC" = yes; then
10278   # Check if gcc -print-prog-name=ld gives a path.
10279   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10280 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10281   case $host in
10282   *-*-mingw*)
10283     # gcc leaves a trailing carriage return which upsets mingw
10284     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10285   *)
10286     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10287   esac
10288   case $ac_prog in
10289     # Accept absolute paths.
10290     [\\/]* | ?:[\\/]*)
10291       re_direlt='/[^/][^/]*/\.\./'
10292       # Canonicalize the pathname of ld
10293       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10294       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10295         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10296       done
10297       test -z "$LD" && LD="$ac_prog"
10298       ;;
10299   "")
10300     # If it fails, then pretend we aren't using GCC.
10301     ac_prog=ld
10302     ;;
10303   *)
10304     # If it is relative, then search for the first ld in PATH.
10305     with_gnu_ld=unknown
10306     ;;
10307   esac
10308 elif test "$with_gnu_ld" = yes; then
10309   echo "$as_me:$LINENO: checking for GNU ld" >&5
10310 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10311 else
10312   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10313 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10314 fi
10315 if test "${lt_cv_path_LD+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   if test -z "$LD"; then
10319   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10320   for ac_dir in $PATH; do
10321     IFS="$lt_save_ifs"
10322     test -z "$ac_dir" && ac_dir=.
10323     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10324       lt_cv_path_LD="$ac_dir/$ac_prog"
10325       # Check to see if the program is GNU ld.  I'd rather use --version,
10326       # but apparently some variants of GNU ld only accept -v.
10327       # Break only if it was the GNU/non-GNU ld that we prefer.
10328       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10329       *GNU* | *'with BFD'*)
10330         test "$with_gnu_ld" != no && break
10331         ;;
10332       *)
10333         test "$with_gnu_ld" != yes && break
10334         ;;
10335       esac
10336     fi
10337   done
10338   IFS="$lt_save_ifs"
10339 else
10340   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10341 fi
10342 fi
10343
10344 LD="$lt_cv_path_LD"
10345 if test -n "$LD"; then
10346   echo "$as_me:$LINENO: result: $LD" >&5
10347 echo "${ECHO_T}$LD" >&6
10348 else
10349   echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6
10351 fi
10352 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10353 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10354    { (exit 1); exit 1; }; }
10355 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10356 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10357 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10361 case `$LD -v 2>&1 </dev/null` in
10362 *GNU* | *'with BFD'*)
10363   lt_cv_prog_gnu_ld=yes
10364   ;;
10365 *)
10366   lt_cv_prog_gnu_ld=no
10367   ;;
10368 esac
10369 fi
10370 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10371 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10372 with_gnu_ld=$lt_cv_prog_gnu_ld
10373
10374
10375
10376   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10377   # archiving commands below assume that GNU ld is being used.
10378   if test "$with_gnu_ld" = yes; then
10379     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10380     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'
10381
10382     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10383     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10384
10385     # If archive_cmds runs LD, not CC, wlarc should be empty
10386     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10387     #     investigate it a little bit more. (MM)
10388     wlarc='${wl}'
10389
10390     # ancient GNU ld didn't support --whole-archive et. al.
10391     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10392         grep 'no-whole-archive' > /dev/null; then
10393       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10394     else
10395       whole_archive_flag_spec_CXX=
10396     fi
10397   else
10398     with_gnu_ld=no
10399     wlarc=
10400
10401     # A generic and very simple default shared library creation
10402     # command for GNU C++ for the case where it uses the native
10403     # linker, instead of GNU ld.  If possible, this setting should
10404     # overridden to take advantage of the native linker features on
10405     # the platform it is being used on.
10406     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10407   fi
10408
10409   # Commands to make compiler produce verbose output that lists
10410   # what "hidden" libraries, object files and flags are used when
10411   # linking a shared library.
10412   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10413
10414 else
10415   GXX=no
10416   with_gnu_ld=no
10417   wlarc=
10418 fi
10419
10420 # PORTME: fill in a description of your system's C++ link characteristics
10421 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10422 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10423 ld_shlibs_CXX=yes
10424 case $host_os in
10425   aix3*)
10426     # FIXME: insert proper C++ library support
10427     ld_shlibs_CXX=no
10428     ;;
10429   aix4* | aix5*)
10430     if test "$host_cpu" = ia64; then
10431       # On IA64, the linker does run time linking by default, so we don't
10432       # have to do anything special.
10433       aix_use_runtimelinking=no
10434       exp_sym_flag='-Bexport'
10435       no_entry_flag=""
10436     else
10437       aix_use_runtimelinking=no
10438
10439       # Test if we are trying to use run time linking or normal
10440       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10441       # need to do runtime linking.
10442       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10443         for ld_flag in $LDFLAGS; do
10444           case $ld_flag in
10445           *-brtl*)
10446             aix_use_runtimelinking=yes
10447             break
10448             ;;
10449           esac
10450         done
10451         ;;
10452       esac
10453
10454       exp_sym_flag='-bexport'
10455       no_entry_flag='-bnoentry'
10456     fi
10457
10458     # When large executables or shared objects are built, AIX ld can
10459     # have problems creating the table of contents.  If linking a library
10460     # or program results in "error TOC overflow" add -mminimal-toc to
10461     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10462     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10463
10464     archive_cmds_CXX=''
10465     hardcode_direct_CXX=yes
10466     hardcode_libdir_separator_CXX=':'
10467     link_all_deplibs_CXX=yes
10468
10469     if test "$GXX" = yes; then
10470       case $host_os in aix4.[012]|aix4.[012].*)
10471       # We only want to do this on AIX 4.2 and lower, the check
10472       # below for broken collect2 doesn't work under 4.3+
10473         collect2name=`${CC} -print-prog-name=collect2`
10474         if test -f "$collect2name" && \
10475            strings "$collect2name" | grep resolve_lib_name >/dev/null
10476         then
10477           # We have reworked collect2
10478           hardcode_direct_CXX=yes
10479         else
10480           # We have old collect2
10481           hardcode_direct_CXX=unsupported
10482           # It fails to find uninstalled libraries when the uninstalled
10483           # path is not listed in the libpath.  Setting hardcode_minus_L
10484           # to unsupported forces relinking
10485           hardcode_minus_L_CXX=yes
10486           hardcode_libdir_flag_spec_CXX='-L$libdir'
10487           hardcode_libdir_separator_CXX=
10488         fi
10489         ;;
10490       esac
10491       shared_flag='-shared'
10492       if test "$aix_use_runtimelinking" = yes; then
10493         shared_flag="$shared_flag "'${wl}-G'
10494       fi
10495     else
10496       # not using gcc
10497       if test "$host_cpu" = ia64; then
10498         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10499         # chokes on -Wl,-G. The following line is correct:
10500         shared_flag='-G'
10501       else
10502         if test "$aix_use_runtimelinking" = yes; then
10503           shared_flag='${wl}-G'
10504         else
10505           shared_flag='${wl}-bM:SRE'
10506         fi
10507       fi
10508     fi
10509
10510     # It seems that -bexpall does not export symbols beginning with
10511     # underscore (_), so it is better to generate a list of symbols to export.
10512     always_export_symbols_CXX=yes
10513     if test "$aix_use_runtimelinking" = yes; then
10514       # Warning - without using the other runtime loading flags (-brtl),
10515       # -berok will link without error, but may produce a broken library.
10516       allow_undefined_flag_CXX='-berok'
10517       # Determine the default libpath from the value encoded in an empty executable.
10518       cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524
10525 int
10526 main ()
10527 {
10528
10529   ;
10530   return 0;
10531 }
10532 _ACEOF
10533 rm -f conftest.$ac_objext conftest$ac_exeext
10534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10535   (eval $ac_link) 2>conftest.er1
10536   ac_status=$?
10537   grep -v '^ *+' conftest.er1 >conftest.err
10538   rm -f conftest.er1
10539   cat conftest.err >&5
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); } &&
10542          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544   (eval $ac_try) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); }; } &&
10548          { ac_try='test -s conftest$ac_exeext'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; }; then
10554
10555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10556 }'`
10557 # Check for a 64-bit object if we didn't find anything.
10558 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; }
10559 }'`; fi
10560 else
10561   echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564 fi
10565 rm -f conftest.err conftest.$ac_objext \
10566       conftest$ac_exeext conftest.$ac_ext
10567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10568
10569       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10570
10571       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10572      else
10573       if test "$host_cpu" = ia64; then
10574         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10575         allow_undefined_flag_CXX="-z nodefs"
10576         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10577       else
10578         # Determine the default libpath from the value encoded in an empty executable.
10579         cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585
10586 int
10587 main ()
10588 {
10589
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596   (eval $ac_link) 2>conftest.er1
10597   ac_status=$?
10598   grep -v '^ *+' conftest.er1 >conftest.err
10599   rm -f conftest.er1
10600   cat conftest.err >&5
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } &&
10603          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; } &&
10609          { ac_try='test -s conftest$ac_exeext'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615
10616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10617 }'`
10618 # Check for a 64-bit object if we didn't find anything.
10619 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; }
10620 }'`; fi
10621 else
10622   echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 fi
10626 rm -f conftest.err conftest.$ac_objext \
10627       conftest$ac_exeext conftest.$ac_ext
10628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10629
10630         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10631         # Warning - without using the other run time loading flags,
10632         # -berok will link without error, but may produce a broken library.
10633         no_undefined_flag_CXX=' ${wl}-bernotok'
10634         allow_undefined_flag_CXX=' ${wl}-berok'
10635         # Exported symbols can be pulled into shared objects from archives
10636         whole_archive_flag_spec_CXX='$convenience'
10637         archive_cmds_need_lc_CXX=yes
10638         # This is similar to how AIX traditionally builds its shared libraries.
10639         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10640       fi
10641     fi
10642     ;;
10643
10644   beos*)
10645     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10646       allow_undefined_flag_CXX=unsupported
10647       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10648       # support --undefined.  This deserves some investigation.  FIXME
10649       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10650     else
10651       ld_shlibs_CXX=no
10652     fi
10653     ;;
10654
10655   chorus*)
10656     case $cc_basename in
10657       *)
10658         # FIXME: insert proper C++ library support
10659         ld_shlibs_CXX=no
10660         ;;
10661     esac
10662     ;;
10663
10664   cygwin* | mingw* | pw32*)
10665     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10666     # as there is no search path for DLLs.
10667     hardcode_libdir_flag_spec_CXX='-L$libdir'
10668     allow_undefined_flag_CXX=unsupported
10669     always_export_symbols_CXX=no
10670     enable_shared_with_static_runtimes_CXX=yes
10671
10672     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10673       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10674       # If the export-symbols file already is a .def file (1st line
10675       # is EXPORTS), use it as is; otherwise, prepend...
10676       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10677         cp $export_symbols $output_objdir/$soname.def;
10678       else
10679         echo EXPORTS > $output_objdir/$soname.def;
10680         cat $export_symbols >> $output_objdir/$soname.def;
10681       fi~
10682       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10683     else
10684       ld_shlibs_CXX=no
10685     fi
10686   ;;
10687       darwin* | rhapsody*)
10688         case $host_os in
10689         rhapsody* | darwin1.[012])
10690          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10691          ;;
10692        *) # Darwin 1.3 on
10693          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10694            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10695          else
10696            case ${MACOSX_DEPLOYMENT_TARGET} in
10697              10.[012])
10698                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10699                ;;
10700              10.*)
10701                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10702                ;;
10703            esac
10704          fi
10705          ;;
10706         esac
10707       archive_cmds_need_lc_CXX=no
10708       hardcode_direct_CXX=no
10709       hardcode_automatic_CXX=yes
10710       hardcode_shlibpath_var_CXX=unsupported
10711       whole_archive_flag_spec_CXX=''
10712       link_all_deplibs_CXX=yes
10713
10714     if test "$GXX" = yes ; then
10715       lt_int_apple_cc_single_mod=no
10716       output_verbose_link_cmd='echo'
10717       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10718        lt_int_apple_cc_single_mod=yes
10719       fi
10720       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10721        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10722       else
10723           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10724         fi
10725         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10726         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10727           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10728             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}'
10729           else
10730             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10731           fi
10732             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}'
10733       else
10734       case $cc_basename in
10735         xlc*)
10736          output_verbose_link_cmd='echo'
10737           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10738           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10739           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10740           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10741           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}'
10742           ;;
10743        *)
10744          ld_shlibs_CXX=no
10745           ;;
10746       esac
10747       fi
10748         ;;
10749
10750   dgux*)
10751     case $cc_basename in
10752       ec++*)
10753         # FIXME: insert proper C++ library support
10754         ld_shlibs_CXX=no
10755         ;;
10756       ghcx*)
10757         # Green Hills C++ Compiler
10758         # FIXME: insert proper C++ library support
10759         ld_shlibs_CXX=no
10760         ;;
10761       *)
10762         # FIXME: insert proper C++ library support
10763         ld_shlibs_CXX=no
10764         ;;
10765     esac
10766     ;;
10767   freebsd[12]*)
10768     # C++ shared libraries reported to be fairly broken before switch to ELF
10769     ld_shlibs_CXX=no
10770     ;;
10771   freebsd-elf*)
10772     archive_cmds_need_lc_CXX=no
10773     ;;
10774   freebsd* | kfreebsd*-gnu | dragonfly*)
10775     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10776     # conventions
10777     ld_shlibs_CXX=yes
10778     ;;
10779   gnu*)
10780     ;;
10781   hpux9*)
10782     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10783     hardcode_libdir_separator_CXX=:
10784     export_dynamic_flag_spec_CXX='${wl}-E'
10785     hardcode_direct_CXX=yes
10786     hardcode_minus_L_CXX=yes # Not in the search PATH,
10787                                 # but as the default
10788                                 # location of the library.
10789
10790     case $cc_basename in
10791     CC*)
10792       # FIXME: insert proper C++ library support
10793       ld_shlibs_CXX=no
10794       ;;
10795     aCC*)
10796       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'
10797       # Commands to make compiler produce verbose output that lists
10798       # what "hidden" libraries, object files and flags are used when
10799       # linking a shared library.
10800       #
10801       # There doesn't appear to be a way to prevent this compiler from
10802       # explicitly linking system object files so we need to strip them
10803       # from the output so that they don't get included in the library
10804       # dependencies.
10805       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'
10806       ;;
10807     *)
10808       if test "$GXX" = yes; then
10809         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'
10810       else
10811         # FIXME: insert proper C++ library support
10812         ld_shlibs_CXX=no
10813       fi
10814       ;;
10815     esac
10816     ;;
10817   hpux10*|hpux11*)
10818     if test $with_gnu_ld = no; then
10819       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10820       hardcode_libdir_separator_CXX=:
10821
10822       case $host_cpu in
10823       hppa*64*|ia64*)
10824         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10825         ;;
10826       *)
10827         export_dynamic_flag_spec_CXX='${wl}-E'
10828         ;;
10829       esac
10830     fi
10831     case $host_cpu in
10832     hppa*64*|ia64*)
10833       hardcode_direct_CXX=no
10834       hardcode_shlibpath_var_CXX=no
10835       ;;
10836     *)
10837       hardcode_direct_CXX=yes
10838       hardcode_minus_L_CXX=yes # Not in the search PATH,
10839                                               # but as the default
10840                                               # location of the library.
10841       ;;
10842     esac
10843
10844     case $cc_basename in
10845       CC*)
10846         # FIXME: insert proper C++ library support
10847         ld_shlibs_CXX=no
10848         ;;
10849       aCC*)
10850         case $host_cpu in
10851         hppa*64*)
10852           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10853           ;;
10854         ia64*)
10855           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10856           ;;
10857         *)
10858           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10859           ;;
10860         esac
10861         # Commands to make compiler produce verbose output that lists
10862         # what "hidden" libraries, object files and flags are used when
10863         # linking a shared library.
10864         #
10865         # There doesn't appear to be a way to prevent this compiler from
10866         # explicitly linking system object files so we need to strip them
10867         # from the output so that they don't get included in the library
10868         # dependencies.
10869         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'
10870         ;;
10871       *)
10872         if test "$GXX" = yes; then
10873           if test $with_gnu_ld = no; then
10874             case $host_cpu in
10875             hppa*64*)
10876               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10877               ;;
10878             ia64*)
10879               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10880               ;;
10881             *)
10882               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'
10883               ;;
10884             esac
10885           fi
10886         else
10887           # FIXME: insert proper C++ library support
10888           ld_shlibs_CXX=no
10889         fi
10890         ;;
10891     esac
10892     ;;
10893   interix3*)
10894     hardcode_direct_CXX=no
10895     hardcode_shlibpath_var_CXX=no
10896     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10897     export_dynamic_flag_spec_CXX='${wl}-E'
10898     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10899     # Instead, shared libraries are loaded at an image base (0x10000000 by
10900     # default) and relocated if they conflict, which is a slow very memory
10901     # consuming and fragmenting process.  To avoid this, we pick a random,
10902     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10903     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10904     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10905     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10906     ;;
10907   irix5* | irix6*)
10908     case $cc_basename in
10909       CC*)
10910         # SGI C++
10911         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10912
10913         # Archives containing C++ object files must be created using
10914         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10915         # necessary to make sure instantiated templates are included
10916         # in the archive.
10917         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10918         ;;
10919       *)
10920         if test "$GXX" = yes; then
10921           if test "$with_gnu_ld" = no; then
10922             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10923           else
10924             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'
10925           fi
10926         fi
10927         link_all_deplibs_CXX=yes
10928         ;;
10929     esac
10930     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10931     hardcode_libdir_separator_CXX=:
10932     ;;
10933   linux*)
10934     case $cc_basename in
10935       KCC*)
10936         # Kuck and Associates, Inc. (KAI) C++ Compiler
10937
10938         # KCC will only create a shared library if the output file
10939         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10940         # to its proper name (with version) after linking.
10941         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'
10942         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'
10943         # Commands to make compiler produce verbose output that lists
10944         # what "hidden" libraries, object files and flags are used when
10945         # linking a shared library.
10946         #
10947         # There doesn't appear to be a way to prevent this compiler from
10948         # explicitly linking system object files so we need to strip them
10949         # from the output so that they don't get included in the library
10950         # dependencies.
10951         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'
10952
10953         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10954         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10955
10956         # Archives containing C++ object files must be created using
10957         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10958         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10959         ;;
10960       icpc*)
10961         # Intel C++
10962         with_gnu_ld=yes
10963         # version 8.0 and above of icpc choke on multiply defined symbols
10964         # if we add $predep_objects and $postdep_objects, however 7.1 and
10965         # earlier do not add the objects themselves.
10966         case `$CC -V 2>&1` in
10967         *"Version 7."*)
10968           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10969           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'
10970           ;;
10971         *)  # Version 8.0 or newer
10972           tmp_idyn=
10973           case $host_cpu in
10974             ia64*) tmp_idyn=' -i_dynamic';;
10975           esac
10976           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10977           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10978           ;;
10979         esac
10980         archive_cmds_need_lc_CXX=no
10981         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10982         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10983         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10984         ;;
10985       pgCC*)
10986         # Portland Group C++ compiler
10987         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10988         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10989
10990         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10991         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10992         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10993         ;;
10994       cxx*)
10995         # Compaq C++
10996         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10997         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'
10998
10999         runpath_var=LD_RUN_PATH
11000         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11001         hardcode_libdir_separator_CXX=:
11002
11003         # Commands to make compiler produce verbose output that lists
11004         # what "hidden" libraries, object files and flags are used when
11005         # linking a shared library.
11006         #
11007         # There doesn't appear to be a way to prevent this compiler from
11008         # explicitly linking system object files so we need to strip them
11009         # from the output so that they don't get included in the library
11010         # dependencies.
11011         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'
11012         ;;
11013     esac
11014     ;;
11015   lynxos*)
11016     # FIXME: insert proper C++ library support
11017     ld_shlibs_CXX=no
11018     ;;
11019   m88k*)
11020     # FIXME: insert proper C++ library support
11021     ld_shlibs_CXX=no
11022     ;;
11023   mvs*)
11024     case $cc_basename in
11025       cxx*)
11026         # FIXME: insert proper C++ library support
11027         ld_shlibs_CXX=no
11028         ;;
11029       *)
11030         # FIXME: insert proper C++ library support
11031         ld_shlibs_CXX=no
11032         ;;
11033     esac
11034     ;;
11035   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11036     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11037       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11038       wlarc=
11039       hardcode_libdir_flag_spec_CXX='-R$libdir'
11040       hardcode_direct_CXX=yes
11041       hardcode_shlibpath_var_CXX=no
11042     fi
11043     # Workaround some broken pre-1.5 toolchains
11044     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11045     ;;
11046   openbsd2*)
11047     # C++ shared libraries are fairly broken
11048     ld_shlibs_CXX=no
11049     ;;
11050   openbsd*)
11051     hardcode_direct_CXX=yes
11052     hardcode_shlibpath_var_CXX=no
11053     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11054     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11055     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11056       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11057       export_dynamic_flag_spec_CXX='${wl}-E'
11058       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11059     fi
11060     output_verbose_link_cmd='echo'
11061     ;;
11062   osf3*)
11063     case $cc_basename in
11064       KCC*)
11065         # Kuck and Associates, Inc. (KAI) C++ Compiler
11066
11067         # KCC will only create a shared library if the output file
11068         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11069         # to its proper name (with version) after linking.
11070         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'
11071
11072         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11073         hardcode_libdir_separator_CXX=:
11074
11075         # Archives containing C++ object files must be created using
11076         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11077         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11078
11079         ;;
11080       RCC*)
11081         # Rational C++ 2.4.1
11082         # FIXME: insert proper C++ library support
11083         ld_shlibs_CXX=no
11084         ;;
11085       cxx*)
11086         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11087         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11088
11089         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11090         hardcode_libdir_separator_CXX=:
11091
11092         # Commands to make compiler produce verbose output that lists
11093         # what "hidden" libraries, object files and flags are used when
11094         # linking a shared library.
11095         #
11096         # There doesn't appear to be a way to prevent this compiler from
11097         # explicitly linking system object files so we need to strip them
11098         # from the output so that they don't get included in the library
11099         # dependencies.
11100         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'
11101         ;;
11102       *)
11103         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11104           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11105           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11106
11107           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11108           hardcode_libdir_separator_CXX=:
11109
11110           # Commands to make compiler produce verbose output that lists
11111           # what "hidden" libraries, object files and flags are used when
11112           # linking a shared library.
11113           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11114
11115         else
11116           # FIXME: insert proper C++ library support
11117           ld_shlibs_CXX=no
11118         fi
11119         ;;
11120     esac
11121     ;;
11122   osf4* | osf5*)
11123     case $cc_basename in
11124       KCC*)
11125         # Kuck and Associates, Inc. (KAI) C++ Compiler
11126
11127         # KCC will only create a shared library if the output file
11128         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11129         # to its proper name (with version) after linking.
11130         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'
11131
11132         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11133         hardcode_libdir_separator_CXX=:
11134
11135         # Archives containing C++ object files must be created using
11136         # the KAI C++ compiler.
11137         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11138         ;;
11139       RCC*)
11140         # Rational C++ 2.4.1
11141         # FIXME: insert proper C++ library support
11142         ld_shlibs_CXX=no
11143         ;;
11144       cxx*)
11145         allow_undefined_flag_CXX=' -expect_unresolved \*'
11146         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11147         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11148           echo "-hidden">> $lib.exp~
11149           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11150           $rm $lib.exp'
11151
11152         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11153         hardcode_libdir_separator_CXX=:
11154
11155         # Commands to make compiler produce verbose output that lists
11156         # what "hidden" libraries, object files and flags are used when
11157         # linking a shared library.
11158         #
11159         # There doesn't appear to be a way to prevent this compiler from
11160         # explicitly linking system object files so we need to strip them
11161         # from the output so that they don't get included in the library
11162         # dependencies.
11163         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'
11164         ;;
11165       *)
11166         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11167           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11168          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11169
11170           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11171           hardcode_libdir_separator_CXX=:
11172
11173           # Commands to make compiler produce verbose output that lists
11174           # what "hidden" libraries, object files and flags are used when
11175           # linking a shared library.
11176           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11177
11178         else
11179           # FIXME: insert proper C++ library support
11180           ld_shlibs_CXX=no
11181         fi
11182         ;;
11183     esac
11184     ;;
11185   psos*)
11186     # FIXME: insert proper C++ library support
11187     ld_shlibs_CXX=no
11188     ;;
11189   sunos4*)
11190     case $cc_basename in
11191       CC*)
11192         # Sun C++ 4.x
11193         # FIXME: insert proper C++ library support
11194         ld_shlibs_CXX=no
11195         ;;
11196       lcc*)
11197         # Lucid
11198         # FIXME: insert proper C++ library support
11199         ld_shlibs_CXX=no
11200         ;;
11201       *)
11202         # FIXME: insert proper C++ library support
11203         ld_shlibs_CXX=no
11204         ;;
11205     esac
11206     ;;
11207   solaris*)
11208     case $cc_basename in
11209       CC*)
11210         # Sun C++ 4.2, 5.x and Centerline C++
11211         archive_cmds_need_lc_CXX=yes
11212         no_undefined_flag_CXX=' -zdefs'
11213         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11214         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11215         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11216
11217         hardcode_libdir_flag_spec_CXX='-R$libdir'
11218         hardcode_shlibpath_var_CXX=no
11219         case $host_os in
11220           solaris2.[0-5] | solaris2.[0-5].*) ;;
11221           *)
11222             # The C++ compiler is used as linker so we must use $wl
11223             # flag to pass the commands to the underlying system
11224             # linker. We must also pass each convience library through
11225             # to the system linker between allextract/defaultextract.
11226             # The C++ compiler will combine linker options so we
11227             # cannot just pass the convience library names through
11228             # without $wl.
11229             # Supported since Solaris 2.6 (maybe 2.5.1?)
11230             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11231             ;;
11232         esac
11233         link_all_deplibs_CXX=yes
11234
11235         output_verbose_link_cmd='echo'
11236
11237         # Archives containing C++ object files must be created using
11238         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11239         # necessary to make sure instantiated templates are included
11240         # in the archive.
11241         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11242         ;;
11243       gcx*)
11244         # Green Hills C++ Compiler
11245         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11246
11247         # The C++ compiler must be used to create the archive.
11248         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11249         ;;
11250       *)
11251         # GNU C++ compiler with Solaris linker
11252         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11253           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11254           if $CC --version | grep -v '^2\.7' > /dev/null; then
11255             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11256             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11257                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11258
11259             # Commands to make compiler produce verbose output that lists
11260             # what "hidden" libraries, object files and flags are used when
11261             # linking a shared library.
11262             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11263           else
11264             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11265             # platform.
11266             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11267             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11268                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11269
11270             # Commands to make compiler produce verbose output that lists
11271             # what "hidden" libraries, object files and flags are used when
11272             # linking a shared library.
11273             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11274           fi
11275
11276           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11277         fi
11278         ;;
11279     esac
11280     ;;
11281   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11282     no_undefined_flag_CXX='${wl}-z,text'
11283     archive_cmds_need_lc_CXX=no
11284     hardcode_shlibpath_var_CXX=no
11285     runpath_var='LD_RUN_PATH'
11286
11287     case $cc_basename in
11288       CC*)
11289         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11290         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291         ;;
11292       *)
11293         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295         ;;
11296     esac
11297     ;;
11298   sysv5* | sco3.2v5* | sco5v6*)
11299     # Note: We can NOT use -z defs as we might desire, because we do not
11300     # link with -lc, and that would cause any symbols used from libc to
11301     # always be unresolved, which means just about no library would
11302     # ever link correctly.  If we're not using GNU ld we use -z text
11303     # though, which does catch some bad symbols but isn't as heavy-handed
11304     # as -z defs.
11305     # For security reasons, it is highly recommended that you always
11306     # use absolute paths for naming shared libraries, and exclude the
11307     # DT_RUNPATH tag from executables and libraries.  But doing so
11308     # requires that you compile everything twice, which is a pain.
11309     # So that behaviour is only enabled if SCOABSPATH is set to a
11310     # non-empty value in the environment.  Most likely only useful for
11311     # creating official distributions of packages.
11312     # This is a hack until libtool officially supports absolute path
11313     # names for shared libraries.
11314     no_undefined_flag_CXX='${wl}-z,text'
11315     allow_undefined_flag_CXX='${wl}-z,nodefs'
11316     archive_cmds_need_lc_CXX=no
11317     hardcode_shlibpath_var_CXX=no
11318     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11319     hardcode_libdir_separator_CXX=':'
11320     link_all_deplibs_CXX=yes
11321     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11322     runpath_var='LD_RUN_PATH'
11323
11324     case $cc_basename in
11325       CC*)
11326         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11327         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11328         ;;
11329       *)
11330         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11331         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11332         ;;
11333     esac
11334     ;;
11335   tandem*)
11336     case $cc_basename in
11337       NCC*)
11338         # NonStop-UX NCC 3.20
11339         # FIXME: insert proper C++ library support
11340         ld_shlibs_CXX=no
11341         ;;
11342       *)
11343         # FIXME: insert proper C++ library support
11344         ld_shlibs_CXX=no
11345         ;;
11346     esac
11347     ;;
11348   vxworks*)
11349     # FIXME: insert proper C++ library support
11350     ld_shlibs_CXX=no
11351     ;;
11352   *)
11353     # FIXME: insert proper C++ library support
11354     ld_shlibs_CXX=no
11355     ;;
11356 esac
11357 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11358 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11359 test "$ld_shlibs_CXX" = no && can_build_shared=no
11360
11361 GCC_CXX="$GXX"
11362 LD_CXX="$LD"
11363
11364
11365 cat > conftest.$ac_ext <<EOF
11366 class Foo
11367 {
11368 public:
11369   Foo (void) { a = 0; }
11370 private:
11371   int a;
11372 };
11373 EOF
11374
11375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11376   (eval $ac_compile) 2>&5
11377   ac_status=$?
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); }; then
11380   # Parse the compiler output and extract the necessary
11381   # objects, libraries and library flags.
11382
11383   # Sentinel used to keep track of whether or not we are before
11384   # the conftest object file.
11385   pre_test_object_deps_done=no
11386
11387   # The `*' in the case matches for architectures that use `case' in
11388   # $output_verbose_cmd can trigger glob expansion during the loop
11389   # eval without this substitution.
11390   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11391
11392   for p in `eval $output_verbose_link_cmd`; do
11393     case $p in
11394
11395     -L* | -R* | -l*)
11396        # Some compilers place space between "-{L,R}" and the path.
11397        # Remove the space.
11398        if test $p = "-L" \
11399           || test $p = "-R"; then
11400          prev=$p
11401          continue
11402        else
11403          prev=
11404        fi
11405
11406        if test "$pre_test_object_deps_done" = no; then
11407          case $p in
11408          -L* | -R*)
11409            # Internal compiler library paths should come after those
11410            # provided the user.  The postdeps already come after the
11411            # user supplied libs so there is no need to process them.
11412            if test -z "$compiler_lib_search_path_CXX"; then
11413              compiler_lib_search_path_CXX="${prev}${p}"
11414            else
11415              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11416            fi
11417            ;;
11418          # The "-l" case would never come before the object being
11419          # linked, so don't bother handling this case.
11420          esac
11421        else
11422          if test -z "$postdeps_CXX"; then
11423            postdeps_CXX="${prev}${p}"
11424          else
11425            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11426          fi
11427        fi
11428        ;;
11429
11430     *.$objext)
11431        # This assumes that the test object file only shows up
11432        # once in the compiler output.
11433        if test "$p" = "conftest.$objext"; then
11434          pre_test_object_deps_done=yes
11435          continue
11436        fi
11437
11438        if test "$pre_test_object_deps_done" = no; then
11439          if test -z "$predep_objects_CXX"; then
11440            predep_objects_CXX="$p"
11441          else
11442            predep_objects_CXX="$predep_objects_CXX $p"
11443          fi
11444        else
11445          if test -z "$postdep_objects_CXX"; then
11446            postdep_objects_CXX="$p"
11447          else
11448            postdep_objects_CXX="$postdep_objects_CXX $p"
11449          fi
11450        fi
11451        ;;
11452
11453     *) ;; # Ignore the rest.
11454
11455     esac
11456   done
11457
11458   # Clean up.
11459   rm -f a.out a.exe
11460 else
11461   echo "libtool.m4: error: problem compiling CXX test program"
11462 fi
11463
11464 $rm -f confest.$objext
11465
11466 # PORTME: override above test on systems where it is broken
11467 case $host_os in
11468 interix3*)
11469   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11470   # hack all around it, let's just trust "g++" to DTRT.
11471   predep_objects_CXX=
11472   postdep_objects_CXX=
11473   postdeps_CXX=
11474   ;;
11475
11476 solaris*)
11477   case $cc_basename in
11478   CC*)
11479     # Adding this requires a known-good setup of shared libraries for
11480     # Sun compiler versions before 5.6, else PIC objects from an old
11481     # archive will be linked into the output, leading to subtle bugs.
11482     postdeps_CXX='-lCstd -lCrun'
11483     ;;
11484   esac
11485   ;;
11486 esac
11487
11488
11489 case " $postdeps_CXX " in
11490 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11491 esac
11492
11493 lt_prog_compiler_wl_CXX=
11494 lt_prog_compiler_pic_CXX=
11495 lt_prog_compiler_static_CXX=
11496
11497 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11498 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11499
11500   # C++ specific cases for pic, static, wl, etc.
11501   if test "$GXX" = yes; then
11502     lt_prog_compiler_wl_CXX='-Wl,'
11503     lt_prog_compiler_static_CXX='-static'
11504
11505     case $host_os in
11506     aix*)
11507       # All AIX code is PIC.
11508       if test "$host_cpu" = ia64; then
11509         # AIX 5 now supports IA64 processor
11510         lt_prog_compiler_static_CXX='-Bstatic'
11511       fi
11512       ;;
11513     amigaos*)
11514       # FIXME: we need at least 68020 code to build shared libraries, but
11515       # adding the `-m68020' flag to GCC prevents building anything better,
11516       # like `-m68040'.
11517       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11518       ;;
11519     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11520       # PIC is the default for these OSes.
11521       ;;
11522     mingw* | os2* | pw32*)
11523       # This hack is so that the source file can tell whether it is being
11524       # built for inclusion in a dll (and should export symbols for example).
11525       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11526       ;;
11527     darwin* | rhapsody*)
11528       # PIC is the default on this platform
11529       # Common symbols not allowed in MH_DYLIB files
11530       lt_prog_compiler_pic_CXX='-fno-common'
11531       ;;
11532     *djgpp*)
11533       # DJGPP does not support shared libraries at all
11534       lt_prog_compiler_pic_CXX=
11535       ;;
11536     interix3*)
11537       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11538       # Instead, we relocate shared libraries at runtime.
11539       ;;
11540     sysv4*MP*)
11541       if test -d /usr/nec; then
11542         lt_prog_compiler_pic_CXX=-Kconform_pic
11543       fi
11544       ;;
11545     hpux*)
11546       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11547       # not for PA HP-UX.
11548       case $host_cpu in
11549       hppa*64*|ia64*)
11550         ;;
11551       *)
11552         lt_prog_compiler_pic_CXX='-fPIC'
11553         ;;
11554       esac
11555       ;;
11556     *)
11557       lt_prog_compiler_pic_CXX='-fPIC'
11558       ;;
11559     esac
11560   else
11561     case $host_os in
11562       aix4* | aix5*)
11563         # All AIX code is PIC.
11564         if test "$host_cpu" = ia64; then
11565           # AIX 5 now supports IA64 processor
11566           lt_prog_compiler_static_CXX='-Bstatic'
11567         else
11568           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11569         fi
11570         ;;
11571       chorus*)
11572         case $cc_basename in
11573         cxch68*)
11574           # Green Hills C++ Compiler
11575           # _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"
11576           ;;
11577         esac
11578         ;;
11579        darwin*)
11580          # PIC is the default on this platform
11581          # Common symbols not allowed in MH_DYLIB files
11582          case $cc_basename in
11583            xlc*)
11584            lt_prog_compiler_pic_CXX='-qnocommon'
11585            lt_prog_compiler_wl_CXX='-Wl,'
11586            ;;
11587          esac
11588        ;;
11589       dgux*)
11590         case $cc_basename in
11591           ec++*)
11592             lt_prog_compiler_pic_CXX='-KPIC'
11593             ;;
11594           ghcx*)
11595             # Green Hills C++ Compiler
11596             lt_prog_compiler_pic_CXX='-pic'
11597             ;;
11598           *)
11599             ;;
11600         esac
11601         ;;
11602       freebsd* | kfreebsd*-gnu | dragonfly*)
11603         # FreeBSD uses GNU C++
11604         ;;
11605       hpux9* | hpux10* | hpux11*)
11606         case $cc_basename in
11607           CC*)
11608             lt_prog_compiler_wl_CXX='-Wl,'
11609             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11610             if test "$host_cpu" != ia64; then
11611               lt_prog_compiler_pic_CXX='+Z'
11612             fi
11613             ;;
11614           aCC*)
11615             lt_prog_compiler_wl_CXX='-Wl,'
11616             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11617             case $host_cpu in
11618             hppa*64*|ia64*)
11619               # +Z the default
11620               ;;
11621             *)
11622               lt_prog_compiler_pic_CXX='+Z'
11623               ;;
11624             esac
11625             ;;
11626           *)
11627             ;;
11628         esac
11629         ;;
11630       interix*)
11631         # This is c89, which is MS Visual C++ (no shared libs)
11632         # Anyone wants to do a port?
11633         ;;
11634       irix5* | irix6* | nonstopux*)
11635         case $cc_basename in
11636           CC*)
11637             lt_prog_compiler_wl_CXX='-Wl,'
11638             lt_prog_compiler_static_CXX='-non_shared'
11639             # CC pic flag -KPIC is the default.
11640             ;;
11641           *)
11642             ;;
11643         esac
11644         ;;
11645       linux*)
11646         case $cc_basename in
11647           KCC*)
11648             # KAI C++ Compiler
11649             lt_prog_compiler_wl_CXX='--backend -Wl,'
11650             lt_prog_compiler_pic_CXX='-fPIC'
11651             ;;
11652           icpc* | ecpc*)
11653             # Intel C++
11654             lt_prog_compiler_wl_CXX='-Wl,'
11655             lt_prog_compiler_pic_CXX='-KPIC'
11656             lt_prog_compiler_static_CXX='-static'
11657             ;;
11658           pgCC*)
11659             # Portland Group C++ compiler.
11660             lt_prog_compiler_wl_CXX='-Wl,'
11661             lt_prog_compiler_pic_CXX='-fpic'
11662             lt_prog_compiler_static_CXX='-Bstatic'
11663             ;;
11664           cxx*)
11665             # Compaq C++
11666             # Make sure the PIC flag is empty.  It appears that all Alpha
11667             # Linux and Compaq Tru64 Unix objects are PIC.
11668             lt_prog_compiler_pic_CXX=
11669             lt_prog_compiler_static_CXX='-non_shared'
11670             ;;
11671           *)
11672             ;;
11673         esac
11674         ;;
11675       lynxos*)
11676         ;;
11677       m88k*)
11678         ;;
11679       mvs*)
11680         case $cc_basename in
11681           cxx*)
11682             lt_prog_compiler_pic_CXX='-W c,exportall'
11683             ;;
11684           *)
11685             ;;
11686         esac
11687         ;;
11688       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11689         ;;
11690       osf3* | osf4* | osf5*)
11691         case $cc_basename in
11692           KCC*)
11693             lt_prog_compiler_wl_CXX='--backend -Wl,'
11694             ;;
11695           RCC*)
11696             # Rational C++ 2.4.1
11697             lt_prog_compiler_pic_CXX='-pic'
11698             ;;
11699           cxx*)
11700             # Digital/Compaq C++
11701             lt_prog_compiler_wl_CXX='-Wl,'
11702             # Make sure the PIC flag is empty.  It appears that all Alpha
11703             # Linux and Compaq Tru64 Unix objects are PIC.
11704             lt_prog_compiler_pic_CXX=
11705             lt_prog_compiler_static_CXX='-non_shared'
11706             ;;
11707           *)
11708             ;;
11709         esac
11710         ;;
11711       psos*)
11712         ;;
11713       solaris*)
11714         case $cc_basename in
11715           CC*)
11716             # Sun C++ 4.2, 5.x and Centerline C++
11717             lt_prog_compiler_pic_CXX='-KPIC'
11718             lt_prog_compiler_static_CXX='-Bstatic'
11719             lt_prog_compiler_wl_CXX='-Qoption ld '
11720             ;;
11721           gcx*)
11722             # Green Hills C++ Compiler
11723             lt_prog_compiler_pic_CXX='-PIC'
11724             ;;
11725           *)
11726             ;;
11727         esac
11728         ;;
11729       sunos4*)
11730         case $cc_basename in
11731           CC*)
11732             # Sun C++ 4.x
11733             lt_prog_compiler_pic_CXX='-pic'
11734             lt_prog_compiler_static_CXX='-Bstatic'
11735             ;;
11736           lcc*)
11737             # Lucid
11738             lt_prog_compiler_pic_CXX='-pic'
11739             ;;
11740           *)
11741             ;;
11742         esac
11743         ;;
11744       tandem*)
11745         case $cc_basename in
11746           NCC*)
11747             # NonStop-UX NCC 3.20
11748             lt_prog_compiler_pic_CXX='-KPIC'
11749             ;;
11750           *)
11751             ;;
11752         esac
11753         ;;
11754       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11755         case $cc_basename in
11756           CC*)
11757             lt_prog_compiler_wl_CXX='-Wl,'
11758             lt_prog_compiler_pic_CXX='-KPIC'
11759             lt_prog_compiler_static_CXX='-Bstatic'
11760             ;;
11761         esac
11762         ;;
11763       vxworks*)
11764         ;;
11765       *)
11766         lt_prog_compiler_can_build_shared_CXX=no
11767         ;;
11768     esac
11769   fi
11770
11771 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11772 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11773
11774 #
11775 # Check to make sure the PIC flag actually works.
11776 #
11777 if test -n "$lt_prog_compiler_pic_CXX"; then
11778
11779 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11780 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11781 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11782   echo $ECHO_N "(cached) $ECHO_C" >&6
11783 else
11784   lt_prog_compiler_pic_works_CXX=no
11785   ac_outfile=conftest.$ac_objext
11786    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11787    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11788    # Insert the option either (1) after the last *FLAGS variable, or
11789    # (2) before a word containing "conftest.", or (3) at the end.
11790    # Note that $ac_compile itself does not contain backslashes and begins
11791    # with a dollar sign (not a hyphen), so the echo should work correctly.
11792    # The option is referenced via a variable to avoid confusing sed.
11793    lt_compile=`echo "$ac_compile" | $SED \
11794    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11796    -e 's:$: $lt_compiler_flag:'`
11797    (eval echo "\"\$as_me:11797: $lt_compile\"" >&5)
11798    (eval "$lt_compile" 2>conftest.err)
11799    ac_status=$?
11800    cat conftest.err >&5
11801    echo "$as_me:11801: \$? = $ac_status" >&5
11802    if (exit $ac_status) && test -s "$ac_outfile"; then
11803      # The compiler can only warn and ignore the option if not recognized
11804      # So say no if there are warnings other than the usual output.
11805      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11806      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11807      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11808        lt_prog_compiler_pic_works_CXX=yes
11809      fi
11810    fi
11811    $rm conftest*
11812
11813 fi
11814 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11815 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11816
11817 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11818     case $lt_prog_compiler_pic_CXX in
11819      "" | " "*) ;;
11820      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11821      esac
11822 else
11823     lt_prog_compiler_pic_CXX=
11824      lt_prog_compiler_can_build_shared_CXX=no
11825 fi
11826
11827 fi
11828 case $host_os in
11829   # For platforms which do not support PIC, -DPIC is meaningless:
11830   *djgpp*)
11831     lt_prog_compiler_pic_CXX=
11832     ;;
11833   *)
11834     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11835     ;;
11836 esac
11837
11838 #
11839 # Check to make sure the static flag actually works.
11840 #
11841 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11842 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11843 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11844 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11845   echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847   lt_prog_compiler_static_works_CXX=no
11848    save_LDFLAGS="$LDFLAGS"
11849    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11850    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11851    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11852      # The linker can only warn and ignore the option if not recognized
11853      # So say no if there are warnings
11854      if test -s conftest.err; then
11855        # Append any errors to the config.log.
11856        cat conftest.err 1>&5
11857        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11858        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11859        if diff conftest.exp conftest.er2 >/dev/null; then
11860          lt_prog_compiler_static_works_CXX=yes
11861        fi
11862      else
11863        lt_prog_compiler_static_works_CXX=yes
11864      fi
11865    fi
11866    $rm conftest*
11867    LDFLAGS="$save_LDFLAGS"
11868
11869 fi
11870 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11871 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11872
11873 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11874     :
11875 else
11876     lt_prog_compiler_static_CXX=
11877 fi
11878
11879
11880 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11881 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11882 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   lt_cv_prog_compiler_c_o_CXX=no
11886    $rm -r conftest 2>/dev/null
11887    mkdir conftest
11888    cd conftest
11889    mkdir out
11890    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11891
11892    lt_compiler_flag="-o out/conftest2.$ac_objext"
11893    # Insert the option either (1) after the last *FLAGS variable, or
11894    # (2) before a word containing "conftest.", or (3) at the end.
11895    # Note that $ac_compile itself does not contain backslashes and begins
11896    # with a dollar sign (not a hyphen), so the echo should work correctly.
11897    lt_compile=`echo "$ac_compile" | $SED \
11898    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11900    -e 's:$: $lt_compiler_flag:'`
11901    (eval echo "\"\$as_me:11901: $lt_compile\"" >&5)
11902    (eval "$lt_compile" 2>out/conftest.err)
11903    ac_status=$?
11904    cat out/conftest.err >&5
11905    echo "$as_me:11905: \$? = $ac_status" >&5
11906    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11907    then
11908      # The compiler can only warn and ignore the option if not recognized
11909      # So say no if there are warnings
11910      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11911      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11912      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11913        lt_cv_prog_compiler_c_o_CXX=yes
11914      fi
11915    fi
11916    chmod u+w . 2>&5
11917    $rm conftest*
11918    # SGI C++ compiler will create directory out/ii_files/ for
11919    # template instantiation
11920    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11921    $rm out/* && rmdir out
11922    cd ..
11923    rmdir conftest
11924    $rm conftest*
11925
11926 fi
11927 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11928 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11929
11930
11931 hard_links="nottested"
11932 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11933   # do not overwrite the value of need_locks provided by the user
11934   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11935 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11936   hard_links=yes
11937   $rm conftest*
11938   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11939   touch conftest.a
11940   ln conftest.a conftest.b 2>&5 || hard_links=no
11941   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11942   echo "$as_me:$LINENO: result: $hard_links" >&5
11943 echo "${ECHO_T}$hard_links" >&6
11944   if test "$hard_links" = no; then
11945     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11946 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11947     need_locks=warn
11948   fi
11949 else
11950   need_locks=no
11951 fi
11952
11953 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11954 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11955
11956   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11957   case $host_os in
11958   aix4* | aix5*)
11959     # If we're using GNU nm, then we don't want the "-C" option.
11960     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11961     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11962       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'
11963     else
11964       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'
11965     fi
11966     ;;
11967   pw32*)
11968     export_symbols_cmds_CXX="$ltdll_cmds"
11969   ;;
11970   cygwin* | mingw*)
11971     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11972   ;;
11973   kfreebsd*-gnu)
11974     link_all_deplibs_CXX=no
11975   ;;
11976   linux*)
11977     link_all_deplibs_CXX=no
11978   ;;
11979   *)
11980     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11981   ;;
11982   esac
11983
11984 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11985 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11986 test "$ld_shlibs_CXX" = no && can_build_shared=no
11987
11988 #
11989 # Do we need to explicitly link libc?
11990 #
11991 case "x$archive_cmds_need_lc_CXX" in
11992 x|xyes)
11993   # Assume -lc should be added
11994   archive_cmds_need_lc_CXX=yes
11995
11996   if test "$enable_shared" = yes && test "$GCC" = yes; then
11997     case $archive_cmds_CXX in
11998     *'~'*)
11999       # FIXME: we may have to deal with multi-command sequences.
12000       ;;
12001     '$CC '*)
12002       # Test whether the compiler implicitly links with -lc since on some
12003       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12004       # to ld, don't add -lc before -lgcc.
12005       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12006 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12007       $rm conftest*
12008       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12009
12010       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12011   (eval $ac_compile) 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); } 2>conftest.err; then
12015         soname=conftest
12016         lib=conftest
12017         libobjs=conftest.$ac_objext
12018         deplibs=
12019         wl=$lt_prog_compiler_wl_CXX
12020         pic_flag=$lt_prog_compiler_pic_CXX
12021         compiler_flags=-v
12022         linker_flags=-v
12023         verstring=
12024         output_objdir=.
12025         libname=conftest
12026         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12027         allow_undefined_flag_CXX=
12028         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12029   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); }
12033         then
12034           archive_cmds_need_lc_CXX=no
12035         else
12036           archive_cmds_need_lc_CXX=yes
12037         fi
12038         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12039       else
12040         cat conftest.err 1>&5
12041       fi
12042       $rm conftest*
12043       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12044 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12045       ;;
12046     esac
12047   fi
12048   ;;
12049 esac
12050
12051 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12052 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12053 library_names_spec=
12054 libname_spec='lib$name'
12055 soname_spec=
12056 shrext_cmds=".so"
12057 postinstall_cmds=
12058 postuninstall_cmds=
12059 finish_cmds=
12060 finish_eval=
12061 shlibpath_var=
12062 shlibpath_overrides_runpath=unknown
12063 version_type=none
12064 dynamic_linker="$host_os ld.so"
12065 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12066 if test "$GCC" = yes; then
12067   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12068   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12069     # if the path contains ";" then we assume it to be the separator
12070     # otherwise default to the standard path separator (i.e. ":") - it is
12071     # assumed that no part of a normal pathname contains ";" but that should
12072     # okay in the real world where ";" in dirpaths is itself problematic.
12073     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12074   else
12075     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12076   fi
12077 else
12078   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12079 fi
12080 need_lib_prefix=unknown
12081 hardcode_into_libs=no
12082
12083 # when you set need_version to no, make sure it does not cause -set_version
12084 # flags to be left without arguments
12085 need_version=unknown
12086
12087 case $host_os in
12088 aix3*)
12089   version_type=linux
12090   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12091   shlibpath_var=LIBPATH
12092
12093   # AIX 3 has no versioning support, so we append a major version to the name.
12094   soname_spec='${libname}${release}${shared_ext}$major'
12095   ;;
12096
12097 aix4* | aix5*)
12098   version_type=linux
12099   need_lib_prefix=no
12100   need_version=no
12101   hardcode_into_libs=yes
12102   if test "$host_cpu" = ia64; then
12103     # AIX 5 supports IA64
12104     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12105     shlibpath_var=LD_LIBRARY_PATH
12106   else
12107     # With GCC up to 2.95.x, collect2 would create an import file
12108     # for dependence libraries.  The import file would start with
12109     # the line `#! .'.  This would cause the generated library to
12110     # depend on `.', always an invalid library.  This was fixed in
12111     # development snapshots of GCC prior to 3.0.
12112     case $host_os in
12113       aix4 | aix4.[01] | aix4.[01].*)
12114       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12115            echo ' yes '
12116            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12117         :
12118       else
12119         can_build_shared=no
12120       fi
12121       ;;
12122     esac
12123     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12124     # soname into executable. Probably we can add versioning support to
12125     # collect2, so additional links can be useful in future.
12126     if test "$aix_use_runtimelinking" = yes; then
12127       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12128       # instead of lib<name>.a to let people know that these are not
12129       # typical AIX shared libraries.
12130       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12131     else
12132       # We preserve .a as extension for shared libraries through AIX4.2
12133       # and later when we are not doing run time linking.
12134       library_names_spec='${libname}${release}.a $libname.a'
12135       soname_spec='${libname}${release}${shared_ext}$major'
12136     fi
12137     shlibpath_var=LIBPATH
12138   fi
12139   ;;
12140
12141 amigaos*)
12142   library_names_spec='$libname.ixlibrary $libname.a'
12143   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12144   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'
12145   ;;
12146
12147 beos*)
12148   library_names_spec='${libname}${shared_ext}'
12149   dynamic_linker="$host_os ld.so"
12150   shlibpath_var=LIBRARY_PATH
12151   ;;
12152
12153 bsdi[45]*)
12154   version_type=linux
12155   need_version=no
12156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12157   soname_spec='${libname}${release}${shared_ext}$major'
12158   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12159   shlibpath_var=LD_LIBRARY_PATH
12160   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12161   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12162   # the default ld.so.conf also contains /usr/contrib/lib and
12163   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12164   # libtool to hard-code these into programs
12165   ;;
12166
12167 cygwin* | mingw* | pw32*)
12168   version_type=windows
12169   shrext_cmds=".dll"
12170   need_version=no
12171   need_lib_prefix=no
12172
12173   case $GCC,$host_os in
12174   yes,cygwin* | yes,mingw* | yes,pw32*)
12175     library_names_spec='$libname.dll.a'
12176     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12177     postinstall_cmds='base_file=`basename \${file}`~
12178       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12179       dldir=$destdir/`dirname \$dlpath`~
12180       test -d \$dldir || mkdir -p \$dldir~
12181       $install_prog $dir/$dlname \$dldir/$dlname~
12182       chmod a+x \$dldir/$dlname'
12183     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12184       dlpath=$dir/\$dldll~
12185        $rm \$dlpath'
12186     shlibpath_overrides_runpath=yes
12187
12188     case $host_os in
12189     cygwin*)
12190       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12191       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12192       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12193       ;;
12194     mingw*)
12195       # MinGW DLLs use traditional 'lib' prefix
12196       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12197       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12198       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12199         # It is most probably a Windows format PATH printed by
12200         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12201         # path with ; separators, and with drive letters. We can handle the
12202         # drive letters (cygwin fileutils understands them), so leave them,
12203         # especially as we might pass files found there to a mingw objdump,
12204         # which wouldn't understand a cygwinified path. Ahh.
12205         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12206       else
12207         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12208       fi
12209       ;;
12210     pw32*)
12211       # pw32 DLLs use 'pw' prefix rather than 'lib'
12212       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12213       ;;
12214     esac
12215     ;;
12216
12217   *)
12218     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12219     ;;
12220   esac
12221   dynamic_linker='Win32 ld.exe'
12222   # FIXME: first we should search . and the directory the executable is in
12223   shlibpath_var=PATH
12224   ;;
12225
12226 darwin* | rhapsody*)
12227   dynamic_linker="$host_os dyld"
12228   version_type=darwin
12229   need_lib_prefix=no
12230   need_version=no
12231   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12232   soname_spec='${libname}${release}${major}$shared_ext'
12233   shlibpath_overrides_runpath=yes
12234   shlibpath_var=DYLD_LIBRARY_PATH
12235   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12236   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12237   if test "$GCC" = yes; then
12238     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"`
12239   else
12240     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12241   fi
12242   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12243   ;;
12244
12245 dgux*)
12246   version_type=linux
12247   need_lib_prefix=no
12248   need_version=no
12249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12250   soname_spec='${libname}${release}${shared_ext}$major'
12251   shlibpath_var=LD_LIBRARY_PATH
12252   ;;
12253
12254 freebsd1*)
12255   dynamic_linker=no
12256   ;;
12257
12258 kfreebsd*-gnu)
12259   version_type=linux
12260   need_lib_prefix=no
12261   need_version=no
12262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12263   soname_spec='${libname}${release}${shared_ext}$major'
12264   shlibpath_var=LD_LIBRARY_PATH
12265   shlibpath_overrides_runpath=no
12266   hardcode_into_libs=yes
12267   dynamic_linker='GNU ld.so'
12268   ;;
12269
12270 freebsd* | dragonfly*)
12271   # DragonFly does not have aout.  When/if they implement a new
12272   # versioning mechanism, adjust this.
12273   if test -x /usr/bin/objformat; then
12274     objformat=`/usr/bin/objformat`
12275   else
12276     case $host_os in
12277     freebsd[123]*) objformat=aout ;;
12278     *) objformat=elf ;;
12279     esac
12280   fi
12281   version_type=freebsd-$objformat
12282   case $version_type in
12283     freebsd-elf*)
12284       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12285       need_version=no
12286       need_lib_prefix=no
12287       ;;
12288     freebsd-*)
12289       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12290       need_version=yes
12291       ;;
12292   esac
12293   shlibpath_var=LD_LIBRARY_PATH
12294   case $host_os in
12295   freebsd2*)
12296     shlibpath_overrides_runpath=yes
12297     ;;
12298   freebsd3.[01]* | freebsdelf3.[01]*)
12299     shlibpath_overrides_runpath=yes
12300     hardcode_into_libs=yes
12301     ;;
12302   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12303   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12304     shlibpath_overrides_runpath=no
12305     hardcode_into_libs=yes
12306     ;;
12307   freebsd*) # from 4.6 on
12308     shlibpath_overrides_runpath=yes
12309     hardcode_into_libs=yes
12310     ;;
12311   esac
12312   ;;
12313
12314 gnu*)
12315   version_type=linux
12316   need_lib_prefix=no
12317   need_version=no
12318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12319   soname_spec='${libname}${release}${shared_ext}$major'
12320   shlibpath_var=LD_LIBRARY_PATH
12321   hardcode_into_libs=yes
12322   ;;
12323
12324 hpux9* | hpux10* | hpux11*)
12325   # Give a soname corresponding to the major version so that dld.sl refuses to
12326   # link against other versions.
12327   version_type=sunos
12328   need_lib_prefix=no
12329   need_version=no
12330   case $host_cpu in
12331   ia64*)
12332     shrext_cmds='.so'
12333     hardcode_into_libs=yes
12334     dynamic_linker="$host_os dld.so"
12335     shlibpath_var=LD_LIBRARY_PATH
12336     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12338     soname_spec='${libname}${release}${shared_ext}$major'
12339     if test "X$HPUX_IA64_MODE" = X32; then
12340       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12341     else
12342       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12343     fi
12344     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12345     ;;
12346    hppa*64*)
12347      shrext_cmds='.sl'
12348      hardcode_into_libs=yes
12349      dynamic_linker="$host_os dld.sl"
12350      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12351      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12352      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353      soname_spec='${libname}${release}${shared_ext}$major'
12354      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12355      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12356      ;;
12357    *)
12358     shrext_cmds='.sl'
12359     dynamic_linker="$host_os dld.sl"
12360     shlibpath_var=SHLIB_PATH
12361     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363     soname_spec='${libname}${release}${shared_ext}$major'
12364     ;;
12365   esac
12366   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12367   postinstall_cmds='chmod 555 $lib'
12368   ;;
12369
12370 interix3*)
12371   version_type=linux
12372   need_lib_prefix=no
12373   need_version=no
12374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12375   soname_spec='${libname}${release}${shared_ext}$major'
12376   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12377   shlibpath_var=LD_LIBRARY_PATH
12378   shlibpath_overrides_runpath=no
12379   hardcode_into_libs=yes
12380   ;;
12381
12382 irix5* | irix6* | nonstopux*)
12383   case $host_os in
12384     nonstopux*) version_type=nonstopux ;;
12385     *)
12386         if test "$lt_cv_prog_gnu_ld" = yes; then
12387                 version_type=linux
12388         else
12389                 version_type=irix
12390         fi ;;
12391   esac
12392   need_lib_prefix=no
12393   need_version=no
12394   soname_spec='${libname}${release}${shared_ext}$major'
12395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12396   case $host_os in
12397   irix5* | nonstopux*)
12398     libsuff= shlibsuff=
12399     ;;
12400   *)
12401     case $LD in # libtool.m4 will add one of these switches to LD
12402     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12403       libsuff= shlibsuff= libmagic=32-bit;;
12404     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12405       libsuff=32 shlibsuff=N32 libmagic=N32;;
12406     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12407       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12408     *) libsuff= shlibsuff= libmagic=never-match;;
12409     esac
12410     ;;
12411   esac
12412   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12413   shlibpath_overrides_runpath=no
12414   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12415   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12416   hardcode_into_libs=yes
12417   ;;
12418
12419 # No shared lib support for Linux oldld, aout, or coff.
12420 linux*oldld* | linux*aout* | linux*coff*)
12421   dynamic_linker=no
12422   ;;
12423
12424 # This must be Linux ELF.
12425 linux*)
12426   version_type=linux
12427   need_lib_prefix=no
12428   need_version=no
12429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12430   soname_spec='${libname}${release}${shared_ext}$major'
12431   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12432   shlibpath_var=LD_LIBRARY_PATH
12433   shlibpath_overrides_runpath=no
12434   # This implies no fast_install, which is unacceptable.
12435   # Some rework will be needed to allow for fast_install
12436   # before this can be enabled.
12437   hardcode_into_libs=yes
12438
12439   # Append ld.so.conf contents to the search path
12440   if test -f /etc/ld.so.conf; then
12441     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12442     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12443   fi
12444
12445   # We used to test for /lib/ld.so.1 and disable shared libraries on
12446   # powerpc, because MkLinux only supported shared libraries with the
12447   # GNU dynamic linker.  Since this was broken with cross compilers,
12448   # most powerpc-linux boxes support dynamic linking these days and
12449   # people can always --disable-shared, the test was removed, and we
12450   # assume the GNU/Linux dynamic linker is in use.
12451   dynamic_linker='GNU/Linux ld.so'
12452   ;;
12453
12454 netbsdelf*-gnu)
12455   version_type=linux
12456   need_lib_prefix=no
12457   need_version=no
12458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12459   soname_spec='${libname}${release}${shared_ext}$major'
12460   shlibpath_var=LD_LIBRARY_PATH
12461   shlibpath_overrides_runpath=no
12462   hardcode_into_libs=yes
12463   dynamic_linker='NetBSD ld.elf_so'
12464   ;;
12465
12466 knetbsd*-gnu)
12467   version_type=linux
12468   need_lib_prefix=no
12469   need_version=no
12470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12471   soname_spec='${libname}${release}${shared_ext}$major'
12472   shlibpath_var=LD_LIBRARY_PATH
12473   shlibpath_overrides_runpath=no
12474   hardcode_into_libs=yes
12475   dynamic_linker='GNU ld.so'
12476   ;;
12477
12478 netbsd*)
12479   version_type=sunos
12480   need_lib_prefix=no
12481   need_version=no
12482   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12484     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12485     dynamic_linker='NetBSD (a.out) ld.so'
12486   else
12487     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12488     soname_spec='${libname}${release}${shared_ext}$major'
12489     dynamic_linker='NetBSD ld.elf_so'
12490   fi
12491   shlibpath_var=LD_LIBRARY_PATH
12492   shlibpath_overrides_runpath=yes
12493   hardcode_into_libs=yes
12494   ;;
12495
12496 newsos6)
12497   version_type=linux
12498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12499   shlibpath_var=LD_LIBRARY_PATH
12500   shlibpath_overrides_runpath=yes
12501   ;;
12502
12503 nto-qnx*)
12504   version_type=linux
12505   need_lib_prefix=no
12506   need_version=no
12507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12508   soname_spec='${libname}${release}${shared_ext}$major'
12509   shlibpath_var=LD_LIBRARY_PATH
12510   shlibpath_overrides_runpath=yes
12511   ;;
12512
12513 openbsd*)
12514   version_type=sunos
12515   sys_lib_dlsearch_path_spec="/usr/lib"
12516   need_lib_prefix=no
12517   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12518   case $host_os in
12519     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12520     *)                         need_version=no  ;;
12521   esac
12522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12523   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12524   shlibpath_var=LD_LIBRARY_PATH
12525   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12526     case $host_os in
12527       openbsd2.[89] | openbsd2.[89].*)
12528         shlibpath_overrides_runpath=no
12529         ;;
12530       *)
12531         shlibpath_overrides_runpath=yes
12532         ;;
12533       esac
12534   else
12535     shlibpath_overrides_runpath=yes
12536   fi
12537   ;;
12538
12539 os2*)
12540   libname_spec='$name'
12541   shrext_cmds=".dll"
12542   need_lib_prefix=no
12543   library_names_spec='$libname${shared_ext} $libname.a'
12544   dynamic_linker='OS/2 ld.exe'
12545   shlibpath_var=LIBPATH
12546   ;;
12547
12548 osf3* | osf4* | osf5*)
12549   version_type=osf
12550   need_lib_prefix=no
12551   need_version=no
12552   soname_spec='${libname}${release}${shared_ext}$major'
12553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12554   shlibpath_var=LD_LIBRARY_PATH
12555   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12556   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12557   ;;
12558
12559 solaris*)
12560   version_type=linux
12561   need_lib_prefix=no
12562   need_version=no
12563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12564   soname_spec='${libname}${release}${shared_ext}$major'
12565   shlibpath_var=LD_LIBRARY_PATH
12566   shlibpath_overrides_runpath=yes
12567   hardcode_into_libs=yes
12568   # ldd complains unless libraries are executable
12569   postinstall_cmds='chmod +x $lib'
12570   ;;
12571
12572 sunos4*)
12573   version_type=sunos
12574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12575   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12576   shlibpath_var=LD_LIBRARY_PATH
12577   shlibpath_overrides_runpath=yes
12578   if test "$with_gnu_ld" = yes; then
12579     need_lib_prefix=no
12580   fi
12581   need_version=yes
12582   ;;
12583
12584 sysv4 | sysv4.3*)
12585   version_type=linux
12586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12587   soname_spec='${libname}${release}${shared_ext}$major'
12588   shlibpath_var=LD_LIBRARY_PATH
12589   case $host_vendor in
12590     sni)
12591       shlibpath_overrides_runpath=no
12592       need_lib_prefix=no
12593       export_dynamic_flag_spec='${wl}-Blargedynsym'
12594       runpath_var=LD_RUN_PATH
12595       ;;
12596     siemens)
12597       need_lib_prefix=no
12598       ;;
12599     motorola)
12600       need_lib_prefix=no
12601       need_version=no
12602       shlibpath_overrides_runpath=no
12603       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12604       ;;
12605   esac
12606   ;;
12607
12608 sysv4*MP*)
12609   if test -d /usr/nec ;then
12610     version_type=linux
12611     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12612     soname_spec='$libname${shared_ext}.$major'
12613     shlibpath_var=LD_LIBRARY_PATH
12614   fi
12615   ;;
12616
12617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12618   version_type=freebsd-elf
12619   need_lib_prefix=no
12620   need_version=no
12621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12622   soname_spec='${libname}${release}${shared_ext}$major'
12623   shlibpath_var=LD_LIBRARY_PATH
12624   hardcode_into_libs=yes
12625   if test "$with_gnu_ld" = yes; then
12626     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12627     shlibpath_overrides_runpath=no
12628   else
12629     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12630     shlibpath_overrides_runpath=yes
12631     case $host_os in
12632       sco3.2v5*)
12633         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12634         ;;
12635     esac
12636   fi
12637   sys_lib_dlsearch_path_spec='/usr/lib'
12638   ;;
12639
12640 uts4*)
12641   version_type=linux
12642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12643   soname_spec='${libname}${release}${shared_ext}$major'
12644   shlibpath_var=LD_LIBRARY_PATH
12645   ;;
12646
12647 *)
12648   dynamic_linker=no
12649   ;;
12650 esac
12651 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12652 echo "${ECHO_T}$dynamic_linker" >&6
12653 test "$dynamic_linker" = no && can_build_shared=no
12654
12655 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12656 if test "$GCC" = yes; then
12657   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12658 fi
12659
12660 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12661 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12662 hardcode_action_CXX=
12663 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12664    test -n "$runpath_var_CXX" || \
12665    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12666
12667   # We can hardcode non-existant directories.
12668   if test "$hardcode_direct_CXX" != no &&
12669      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12670      # have to relink, otherwise we might link with an installed library
12671      # when we should be linking with a yet-to-be-installed one
12672      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12673      test "$hardcode_minus_L_CXX" != no; then
12674     # Linking always hardcodes the temporary library directory.
12675     hardcode_action_CXX=relink
12676   else
12677     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12678     hardcode_action_CXX=immediate
12679   fi
12680 else
12681   # We cannot hardcode anything, or else we can only hardcode existing
12682   # directories.
12683   hardcode_action_CXX=unsupported
12684 fi
12685 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12686 echo "${ECHO_T}$hardcode_action_CXX" >&6
12687
12688 if test "$hardcode_action_CXX" = relink; then
12689   # Fast installation is not supported
12690   enable_fast_install=no
12691 elif test "$shlibpath_overrides_runpath" = yes ||
12692      test "$enable_shared" = no; then
12693   # Fast installation is not necessary
12694   enable_fast_install=needless
12695 fi
12696
12697
12698 # The else clause should only fire when bootstrapping the
12699 # libtool distribution, otherwise you forgot to ship ltmain.sh
12700 # with your package, and you will get complaints that there are
12701 # no rules to generate ltmain.sh.
12702 if test -f "$ltmain"; then
12703   # See if we are running on zsh, and set the options which allow our commands through
12704   # without removal of \ escapes.
12705   if test -n "${ZSH_VERSION+set}" ; then
12706     setopt NO_GLOB_SUBST
12707   fi
12708   # Now quote all the things that may contain metacharacters while being
12709   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12710   # variables and quote the copies for generation of the libtool script.
12711   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12712     SED SHELL STRIP \
12713     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12714     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12715     deplibs_check_method reload_flag reload_cmds need_locks \
12716     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12717     lt_cv_sys_global_symbol_to_c_name_address \
12718     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12719     old_postinstall_cmds old_postuninstall_cmds \
12720     compiler_CXX \
12721     CC_CXX \
12722     LD_CXX \
12723     lt_prog_compiler_wl_CXX \
12724     lt_prog_compiler_pic_CXX \
12725     lt_prog_compiler_static_CXX \
12726     lt_prog_compiler_no_builtin_flag_CXX \
12727     export_dynamic_flag_spec_CXX \
12728     thread_safe_flag_spec_CXX \
12729     whole_archive_flag_spec_CXX \
12730     enable_shared_with_static_runtimes_CXX \
12731     old_archive_cmds_CXX \
12732     old_archive_from_new_cmds_CXX \
12733     predep_objects_CXX \
12734     postdep_objects_CXX \
12735     predeps_CXX \
12736     postdeps_CXX \
12737     compiler_lib_search_path_CXX \
12738     archive_cmds_CXX \
12739     archive_expsym_cmds_CXX \
12740     postinstall_cmds_CXX \
12741     postuninstall_cmds_CXX \
12742     old_archive_from_expsyms_cmds_CXX \
12743     allow_undefined_flag_CXX \
12744     no_undefined_flag_CXX \
12745     export_symbols_cmds_CXX \
12746     hardcode_libdir_flag_spec_CXX \
12747     hardcode_libdir_flag_spec_ld_CXX \
12748     hardcode_libdir_separator_CXX \
12749     hardcode_automatic_CXX \
12750     module_cmds_CXX \
12751     module_expsym_cmds_CXX \
12752     lt_cv_prog_compiler_c_o_CXX \
12753     exclude_expsyms_CXX \
12754     include_expsyms_CXX; do
12755
12756     case $var in
12757     old_archive_cmds_CXX | \
12758     old_archive_from_new_cmds_CXX | \
12759     archive_cmds_CXX | \
12760     archive_expsym_cmds_CXX | \
12761     module_cmds_CXX | \
12762     module_expsym_cmds_CXX | \
12763     old_archive_from_expsyms_cmds_CXX | \
12764     export_symbols_cmds_CXX | \
12765     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12766     postinstall_cmds | postuninstall_cmds | \
12767     old_postinstall_cmds | old_postuninstall_cmds | \
12768     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12769       # Double-quote double-evaled strings.
12770       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12771       ;;
12772     *)
12773       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12774       ;;
12775     esac
12776   done
12777
12778   case $lt_echo in
12779   *'\$0 --fallback-echo"')
12780     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12781     ;;
12782   esac
12783
12784 cfgfile="$ofile"
12785
12786   cat <<__EOF__ >> "$cfgfile"
12787 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12788
12789 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12790
12791 # Shell to use when invoking shell scripts.
12792 SHELL=$lt_SHELL
12793
12794 # Whether or not to build shared libraries.
12795 build_libtool_libs=$enable_shared
12796
12797 # Whether or not to build static libraries.
12798 build_old_libs=$enable_static
12799
12800 # Whether or not to add -lc for building shared libraries.
12801 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12802
12803 # Whether or not to disallow shared libs when runtime libs are static
12804 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12805
12806 # Whether or not to optimize for fast installation.
12807 fast_install=$enable_fast_install
12808
12809 # The host system.
12810 host_alias=$host_alias
12811 host=$host
12812 host_os=$host_os
12813
12814 # The build system.
12815 build_alias=$build_alias
12816 build=$build
12817 build_os=$build_os
12818
12819 # An echo program that does not interpret backslashes.
12820 echo=$lt_echo
12821
12822 # The archiver.
12823 AR=$lt_AR
12824 AR_FLAGS=$lt_AR_FLAGS
12825
12826 # A C compiler.
12827 LTCC=$lt_LTCC
12828
12829 # LTCC compiler flags.
12830 LTCFLAGS=$lt_LTCFLAGS
12831
12832 # A language-specific compiler.
12833 CC=$lt_compiler_CXX
12834
12835 # Is the compiler the GNU C compiler?
12836 with_gcc=$GCC_CXX
12837
12838 # An ERE matcher.
12839 EGREP=$lt_EGREP
12840
12841 # The linker used to build libraries.
12842 LD=$lt_LD_CXX
12843
12844 # Whether we need hard or soft links.
12845 LN_S=$lt_LN_S
12846
12847 # A BSD-compatible nm program.
12848 NM=$lt_NM
12849
12850 # A symbol stripping program
12851 STRIP=$lt_STRIP
12852
12853 # Used to examine libraries when file_magic_cmd begins "file"
12854 MAGIC_CMD=$MAGIC_CMD
12855
12856 # Used on cygwin: DLL creation program.
12857 DLLTOOL="$DLLTOOL"
12858
12859 # Used on cygwin: object dumper.
12860 OBJDUMP="$OBJDUMP"
12861
12862 # Used on cygwin: assembler.
12863 AS="$AS"
12864
12865 # The name of the directory that contains temporary libtool files.
12866 objdir=$objdir
12867
12868 # How to create reloadable object files.
12869 reload_flag=$lt_reload_flag
12870 reload_cmds=$lt_reload_cmds
12871
12872 # How to pass a linker flag through the compiler.
12873 wl=$lt_lt_prog_compiler_wl_CXX
12874
12875 # Object file suffix (normally "o").
12876 objext="$ac_objext"
12877
12878 # Old archive suffix (normally "a").
12879 libext="$libext"
12880
12881 # Shared library suffix (normally ".so").
12882 shrext_cmds='$shrext_cmds'
12883
12884 # Executable file suffix (normally "").
12885 exeext="$exeext"
12886
12887 # Additional compiler flags for building library objects.
12888 pic_flag=$lt_lt_prog_compiler_pic_CXX
12889 pic_mode=$pic_mode
12890
12891 # What is the maximum length of a command?
12892 max_cmd_len=$lt_cv_sys_max_cmd_len
12893
12894 # Does compiler simultaneously support -c and -o options?
12895 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12896
12897 # Must we lock files when doing compilation?
12898 need_locks=$lt_need_locks
12899
12900 # Do we need the lib prefix for modules?
12901 need_lib_prefix=$need_lib_prefix
12902
12903 # Do we need a version for libraries?
12904 need_version=$need_version
12905
12906 # Whether dlopen is supported.
12907 dlopen_support=$enable_dlopen
12908
12909 # Whether dlopen of programs is supported.
12910 dlopen_self=$enable_dlopen_self
12911
12912 # Whether dlopen of statically linked programs is supported.
12913 dlopen_self_static=$enable_dlopen_self_static
12914
12915 # Compiler flag to prevent dynamic linking.
12916 link_static_flag=$lt_lt_prog_compiler_static_CXX
12917
12918 # Compiler flag to turn off builtin functions.
12919 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12920
12921 # Compiler flag to allow reflexive dlopens.
12922 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12923
12924 # Compiler flag to generate shared objects directly from archives.
12925 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12926
12927 # Compiler flag to generate thread-safe objects.
12928 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12929
12930 # Library versioning type.
12931 version_type=$version_type
12932
12933 # Format of library name prefix.
12934 libname_spec=$lt_libname_spec
12935
12936 # List of archive names.  First name is the real one, the rest are links.
12937 # The last name is the one that the linker finds with -lNAME.
12938 library_names_spec=$lt_library_names_spec
12939
12940 # The coded name of the library, if different from the real name.
12941 soname_spec=$lt_soname_spec
12942
12943 # Commands used to build and install an old-style archive.
12944 RANLIB=$lt_RANLIB
12945 old_archive_cmds=$lt_old_archive_cmds_CXX
12946 old_postinstall_cmds=$lt_old_postinstall_cmds
12947 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12948
12949 # Create an old-style archive from a shared archive.
12950 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12951
12952 # Create a temporary old-style archive to link instead of a shared archive.
12953 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12954
12955 # Commands used to build and install a shared archive.
12956 archive_cmds=$lt_archive_cmds_CXX
12957 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12958 postinstall_cmds=$lt_postinstall_cmds
12959 postuninstall_cmds=$lt_postuninstall_cmds
12960
12961 # Commands used to build a loadable module (assumed same as above if empty)
12962 module_cmds=$lt_module_cmds_CXX
12963 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12964
12965 # Commands to strip libraries.
12966 old_striplib=$lt_old_striplib
12967 striplib=$lt_striplib
12968
12969 # Dependencies to place before the objects being linked to create a
12970 # shared library.
12971 predep_objects=$lt_predep_objects_CXX
12972
12973 # Dependencies to place after the objects being linked to create a
12974 # shared library.
12975 postdep_objects=$lt_postdep_objects_CXX
12976
12977 # Dependencies to place before the objects being linked to create a
12978 # shared library.
12979 predeps=$lt_predeps_CXX
12980
12981 # Dependencies to place after the objects being linked to create a
12982 # shared library.
12983 postdeps=$lt_postdeps_CXX
12984
12985 # The library search path used internally by the compiler when linking
12986 # a shared library.
12987 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12988
12989 # Method to check whether dependent libraries are shared objects.
12990 deplibs_check_method=$lt_deplibs_check_method
12991
12992 # Command to use when deplibs_check_method == file_magic.
12993 file_magic_cmd=$lt_file_magic_cmd
12994
12995 # Flag that allows shared libraries with undefined symbols to be built.
12996 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12997
12998 # Flag that forces no undefined symbols.
12999 no_undefined_flag=$lt_no_undefined_flag_CXX
13000
13001 # Commands used to finish a libtool library installation in a directory.
13002 finish_cmds=$lt_finish_cmds
13003
13004 # Same as above, but a single script fragment to be evaled but not shown.
13005 finish_eval=$lt_finish_eval
13006
13007 # Take the output of nm and produce a listing of raw symbols and C names.
13008 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13009
13010 # Transform the output of nm in a proper C declaration
13011 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13012
13013 # Transform the output of nm in a C name address pair
13014 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13015
13016 # This is the shared library runtime path variable.
13017 runpath_var=$runpath_var
13018
13019 # This is the shared library path variable.
13020 shlibpath_var=$shlibpath_var
13021
13022 # Is shlibpath searched before the hard-coded library search path?
13023 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13024
13025 # How to hardcode a shared library path into an executable.
13026 hardcode_action=$hardcode_action_CXX
13027
13028 # Whether we should hardcode library paths into libraries.
13029 hardcode_into_libs=$hardcode_into_libs
13030
13031 # Flag to hardcode \$libdir into a binary during linking.
13032 # This must work even if \$libdir does not exist.
13033 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13034
13035 # If ld is used when linking, flag to hardcode \$libdir into
13036 # a binary during linking. This must work even if \$libdir does
13037 # not exist.
13038 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13039
13040 # Whether we need a single -rpath flag with a separated argument.
13041 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13042
13043 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13044 # resulting binary.
13045 hardcode_direct=$hardcode_direct_CXX
13046
13047 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13048 # resulting binary.
13049 hardcode_minus_L=$hardcode_minus_L_CXX
13050
13051 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13052 # the resulting binary.
13053 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13054
13055 # Set to yes if building a shared library automatically hardcodes DIR into the library
13056 # and all subsequent libraries and executables linked against it.
13057 hardcode_automatic=$hardcode_automatic_CXX
13058
13059 # Variables whose values should be saved in libtool wrapper scripts and
13060 # restored at relink time.
13061 variables_saved_for_relink="$variables_saved_for_relink"
13062
13063 # Whether libtool must link a program against all its dependency libraries.
13064 link_all_deplibs=$link_all_deplibs_CXX
13065
13066 # Compile-time system search path for libraries
13067 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13068
13069 # Run-time system search path for libraries
13070 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13071
13072 # Fix the shell variable \$srcfile for the compiler.
13073 fix_srcfile_path="$fix_srcfile_path_CXX"
13074
13075 # Set to yes if exported symbols are required.
13076 always_export_symbols=$always_export_symbols_CXX
13077
13078 # The commands to list exported symbols.
13079 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13080
13081 # The commands to extract the exported symbol list from a shared archive.
13082 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13083
13084 # Symbols that should not be listed in the preloaded symbols.
13085 exclude_expsyms=$lt_exclude_expsyms_CXX
13086
13087 # Symbols that must always be exported.
13088 include_expsyms=$lt_include_expsyms_CXX
13089
13090 # ### END LIBTOOL TAG CONFIG: $tagname
13091
13092 __EOF__
13093
13094
13095 else
13096   # If there is no Makefile yet, we rely on a make rule to execute
13097   # `config.status --recheck' to rerun these tests and create the
13098   # libtool script then.
13099   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13100   if test -f "$ltmain_in"; then
13101     test -f Makefile && make "$ltmain"
13102   fi
13103 fi
13104
13105
13106 ac_ext=c
13107 ac_cpp='$CPP $CPPFLAGS'
13108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13111
13112 CC=$lt_save_CC
13113 LDCXX=$LD
13114 LD=$lt_save_LD
13115 GCC=$lt_save_GCC
13116 with_gnu_ldcxx=$with_gnu_ld
13117 with_gnu_ld=$lt_save_with_gnu_ld
13118 lt_cv_path_LDCXX=$lt_cv_path_LD
13119 lt_cv_path_LD=$lt_save_path_LD
13120 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13121 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13122
13123         else
13124           tagname=""
13125         fi
13126         ;;
13127
13128       F77)
13129         if test -n "$F77" && test "X$F77" != "Xno"; then
13130
13131 ac_ext=f
13132 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13133 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13135
13136
13137 archive_cmds_need_lc_F77=no
13138 allow_undefined_flag_F77=
13139 always_export_symbols_F77=no
13140 archive_expsym_cmds_F77=
13141 export_dynamic_flag_spec_F77=
13142 hardcode_direct_F77=no
13143 hardcode_libdir_flag_spec_F77=
13144 hardcode_libdir_flag_spec_ld_F77=
13145 hardcode_libdir_separator_F77=
13146 hardcode_minus_L_F77=no
13147 hardcode_automatic_F77=no
13148 module_cmds_F77=
13149 module_expsym_cmds_F77=
13150 link_all_deplibs_F77=unknown
13151 old_archive_cmds_F77=$old_archive_cmds
13152 no_undefined_flag_F77=
13153 whole_archive_flag_spec_F77=
13154 enable_shared_with_static_runtimes_F77=no
13155
13156 # Source file extension for f77 test sources.
13157 ac_ext=f
13158
13159 # Object file extension for compiled f77 test sources.
13160 objext=o
13161 objext_F77=$objext
13162
13163 # Code to be used in simple compile tests
13164 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13165
13166 # Code to be used in simple link tests
13167 lt_simple_link_test_code="      program t\n      end\n"
13168
13169 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13170
13171 # If no C compiler was specified, use CC.
13172 LTCC=${LTCC-"$CC"}
13173
13174 # If no C compiler flags were specified, use CFLAGS.
13175 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13176
13177 # Allow CC to be a program name with arguments.
13178 compiler=$CC
13179
13180
13181 # save warnings/boilerplate of simple test code
13182 ac_outfile=conftest.$ac_objext
13183 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13184 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13185 _lt_compiler_boilerplate=`cat conftest.err`
13186 $rm conftest*
13187
13188 ac_outfile=conftest.$ac_objext
13189 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13190 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13191 _lt_linker_boilerplate=`cat conftest.err`
13192 $rm conftest*
13193
13194
13195 # Allow CC to be a program name with arguments.
13196 lt_save_CC="$CC"
13197 CC=${F77-"f77"}
13198 compiler=$CC
13199 compiler_F77=$CC
13200 for cc_temp in $compiler""; do
13201   case $cc_temp in
13202     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13203     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13204     \-*) ;;
13205     *) break;;
13206   esac
13207 done
13208 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13209
13210
13211 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13212 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13213 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13214 echo "${ECHO_T}$can_build_shared" >&6
13215
13216 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13217 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13218 test "$can_build_shared" = "no" && enable_shared=no
13219
13220 # On AIX, shared libraries and static libraries use the same namespace, and
13221 # are all built from PIC.
13222 case $host_os in
13223 aix3*)
13224   test "$enable_shared" = yes && enable_static=no
13225   if test -n "$RANLIB"; then
13226     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13227     postinstall_cmds='$RANLIB $lib'
13228   fi
13229   ;;
13230 aix4* | aix5*)
13231   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13232     test "$enable_shared" = yes && enable_static=no
13233   fi
13234   ;;
13235 esac
13236 echo "$as_me:$LINENO: result: $enable_shared" >&5
13237 echo "${ECHO_T}$enable_shared" >&6
13238
13239 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13240 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13241 # Make sure either enable_shared or enable_static is yes.
13242 test "$enable_shared" = yes || enable_static=yes
13243 echo "$as_me:$LINENO: result: $enable_static" >&5
13244 echo "${ECHO_T}$enable_static" >&6
13245
13246 GCC_F77="$G77"
13247 LD_F77="$LD"
13248
13249 lt_prog_compiler_wl_F77=
13250 lt_prog_compiler_pic_F77=
13251 lt_prog_compiler_static_F77=
13252
13253 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13254 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13255
13256   if test "$GCC" = yes; then
13257     lt_prog_compiler_wl_F77='-Wl,'
13258     lt_prog_compiler_static_F77='-static'
13259
13260     case $host_os in
13261       aix*)
13262       # All AIX code is PIC.
13263       if test "$host_cpu" = ia64; then
13264         # AIX 5 now supports IA64 processor
13265         lt_prog_compiler_static_F77='-Bstatic'
13266       fi
13267       ;;
13268
13269     amigaos*)
13270       # FIXME: we need at least 68020 code to build shared libraries, but
13271       # adding the `-m68020' flag to GCC prevents building anything better,
13272       # like `-m68040'.
13273       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13274       ;;
13275
13276     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13277       # PIC is the default for these OSes.
13278       ;;
13279
13280     mingw* | pw32* | os2*)
13281       # This hack is so that the source file can tell whether it is being
13282       # built for inclusion in a dll (and should export symbols for example).
13283       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13284       ;;
13285
13286     darwin* | rhapsody*)
13287       # PIC is the default on this platform
13288       # Common symbols not allowed in MH_DYLIB files
13289       lt_prog_compiler_pic_F77='-fno-common'
13290       ;;
13291
13292     interix3*)
13293       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13294       # Instead, we relocate shared libraries at runtime.
13295       ;;
13296
13297     msdosdjgpp*)
13298       # Just because we use GCC doesn't mean we suddenly get shared libraries
13299       # on systems that don't support them.
13300       lt_prog_compiler_can_build_shared_F77=no
13301       enable_shared=no
13302       ;;
13303
13304     sysv4*MP*)
13305       if test -d /usr/nec; then
13306         lt_prog_compiler_pic_F77=-Kconform_pic
13307       fi
13308       ;;
13309
13310     hpux*)
13311       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13312       # not for PA HP-UX.
13313       case $host_cpu in
13314       hppa*64*|ia64*)
13315         # +Z the default
13316         ;;
13317       *)
13318         lt_prog_compiler_pic_F77='-fPIC'
13319         ;;
13320       esac
13321       ;;
13322
13323     *)
13324       lt_prog_compiler_pic_F77='-fPIC'
13325       ;;
13326     esac
13327   else
13328     # PORTME Check for flag to pass linker flags through the system compiler.
13329     case $host_os in
13330     aix*)
13331       lt_prog_compiler_wl_F77='-Wl,'
13332       if test "$host_cpu" = ia64; then
13333         # AIX 5 now supports IA64 processor
13334         lt_prog_compiler_static_F77='-Bstatic'
13335       else
13336         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13337       fi
13338       ;;
13339       darwin*)
13340         # PIC is the default on this platform
13341         # Common symbols not allowed in MH_DYLIB files
13342        case $cc_basename in
13343          xlc*)
13344          lt_prog_compiler_pic_F77='-qnocommon'
13345          lt_prog_compiler_wl_F77='-Wl,'
13346          ;;
13347        esac
13348        ;;
13349
13350     mingw* | pw32* | os2*)
13351       # This hack is so that the source file can tell whether it is being
13352       # built for inclusion in a dll (and should export symbols for example).
13353       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13354       ;;
13355
13356     hpux9* | hpux10* | hpux11*)
13357       lt_prog_compiler_wl_F77='-Wl,'
13358       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13359       # not for PA HP-UX.
13360       case $host_cpu in
13361       hppa*64*|ia64*)
13362         # +Z the default
13363         ;;
13364       *)
13365         lt_prog_compiler_pic_F77='+Z'
13366         ;;
13367       esac
13368       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13369       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13370       ;;
13371
13372     irix5* | irix6* | nonstopux*)
13373       lt_prog_compiler_wl_F77='-Wl,'
13374       # PIC (with -KPIC) is the default.
13375       lt_prog_compiler_static_F77='-non_shared'
13376       ;;
13377
13378     newsos6)
13379       lt_prog_compiler_pic_F77='-KPIC'
13380       lt_prog_compiler_static_F77='-Bstatic'
13381       ;;
13382
13383     linux*)
13384       case $cc_basename in
13385       icc* | ecc*)
13386         lt_prog_compiler_wl_F77='-Wl,'
13387         lt_prog_compiler_pic_F77='-KPIC'
13388         lt_prog_compiler_static_F77='-static'
13389         ;;
13390       pgcc* | pgf77* | pgf90* | pgf95*)
13391         # Portland Group compilers (*not* the Pentium gcc compiler,
13392         # which looks to be a dead project)
13393         lt_prog_compiler_wl_F77='-Wl,'
13394         lt_prog_compiler_pic_F77='-fpic'
13395         lt_prog_compiler_static_F77='-Bstatic'
13396         ;;
13397       ccc*)
13398         lt_prog_compiler_wl_F77='-Wl,'
13399         # All Alpha code is PIC.
13400         lt_prog_compiler_static_F77='-non_shared'
13401         ;;
13402       esac
13403       ;;
13404
13405     osf3* | osf4* | osf5*)
13406       lt_prog_compiler_wl_F77='-Wl,'
13407       # All OSF/1 code is PIC.
13408       lt_prog_compiler_static_F77='-non_shared'
13409       ;;
13410
13411     solaris*)
13412       lt_prog_compiler_pic_F77='-KPIC'
13413       lt_prog_compiler_static_F77='-Bstatic'
13414       case $cc_basename in
13415       f77* | f90* | f95*)
13416         lt_prog_compiler_wl_F77='-Qoption ld ';;
13417       *)
13418         lt_prog_compiler_wl_F77='-Wl,';;
13419       esac
13420       ;;
13421
13422     sunos4*)
13423       lt_prog_compiler_wl_F77='-Qoption ld '
13424       lt_prog_compiler_pic_F77='-PIC'
13425       lt_prog_compiler_static_F77='-Bstatic'
13426       ;;
13427
13428     sysv4 | sysv4.2uw2* | sysv4.3*)
13429       lt_prog_compiler_wl_F77='-Wl,'
13430       lt_prog_compiler_pic_F77='-KPIC'
13431       lt_prog_compiler_static_F77='-Bstatic'
13432       ;;
13433
13434     sysv4*MP*)
13435       if test -d /usr/nec ;then
13436         lt_prog_compiler_pic_F77='-Kconform_pic'
13437         lt_prog_compiler_static_F77='-Bstatic'
13438       fi
13439       ;;
13440
13441     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13442       lt_prog_compiler_wl_F77='-Wl,'
13443       lt_prog_compiler_pic_F77='-KPIC'
13444       lt_prog_compiler_static_F77='-Bstatic'
13445       ;;
13446
13447     unicos*)
13448       lt_prog_compiler_wl_F77='-Wl,'
13449       lt_prog_compiler_can_build_shared_F77=no
13450       ;;
13451
13452     uts4*)
13453       lt_prog_compiler_pic_F77='-pic'
13454       lt_prog_compiler_static_F77='-Bstatic'
13455       ;;
13456
13457     *)
13458       lt_prog_compiler_can_build_shared_F77=no
13459       ;;
13460     esac
13461   fi
13462
13463 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13464 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13465
13466 #
13467 # Check to make sure the PIC flag actually works.
13468 #
13469 if test -n "$lt_prog_compiler_pic_F77"; then
13470
13471 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13472 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13473 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13474   echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476   lt_prog_compiler_pic_works_F77=no
13477   ac_outfile=conftest.$ac_objext
13478    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13479    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13480    # Insert the option either (1) after the last *FLAGS variable, or
13481    # (2) before a word containing "conftest.", or (3) at the end.
13482    # Note that $ac_compile itself does not contain backslashes and begins
13483    # with a dollar sign (not a hyphen), so the echo should work correctly.
13484    # The option is referenced via a variable to avoid confusing sed.
13485    lt_compile=`echo "$ac_compile" | $SED \
13486    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13487    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488    -e 's:$: $lt_compiler_flag:'`
13489    (eval echo "\"\$as_me:13489: $lt_compile\"" >&5)
13490    (eval "$lt_compile" 2>conftest.err)
13491    ac_status=$?
13492    cat conftest.err >&5
13493    echo "$as_me:13493: \$? = $ac_status" >&5
13494    if (exit $ac_status) && test -s "$ac_outfile"; then
13495      # The compiler can only warn and ignore the option if not recognized
13496      # So say no if there are warnings other than the usual output.
13497      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13498      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13499      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13500        lt_prog_compiler_pic_works_F77=yes
13501      fi
13502    fi
13503    $rm conftest*
13504
13505 fi
13506 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13507 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13508
13509 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13510     case $lt_prog_compiler_pic_F77 in
13511      "" | " "*) ;;
13512      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13513      esac
13514 else
13515     lt_prog_compiler_pic_F77=
13516      lt_prog_compiler_can_build_shared_F77=no
13517 fi
13518
13519 fi
13520 case $host_os in
13521   # For platforms which do not support PIC, -DPIC is meaningless:
13522   *djgpp*)
13523     lt_prog_compiler_pic_F77=
13524     ;;
13525   *)
13526     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13527     ;;
13528 esac
13529
13530 #
13531 # Check to make sure the static flag actually works.
13532 #
13533 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13534 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13535 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13536 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13537   echo $ECHO_N "(cached) $ECHO_C" >&6
13538 else
13539   lt_prog_compiler_static_works_F77=no
13540    save_LDFLAGS="$LDFLAGS"
13541    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13542    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13543    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13544      # The linker can only warn and ignore the option if not recognized
13545      # So say no if there are warnings
13546      if test -s conftest.err; then
13547        # Append any errors to the config.log.
13548        cat conftest.err 1>&5
13549        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13550        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13551        if diff conftest.exp conftest.er2 >/dev/null; then
13552          lt_prog_compiler_static_works_F77=yes
13553        fi
13554      else
13555        lt_prog_compiler_static_works_F77=yes
13556      fi
13557    fi
13558    $rm conftest*
13559    LDFLAGS="$save_LDFLAGS"
13560
13561 fi
13562 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13563 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13564
13565 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13566     :
13567 else
13568     lt_prog_compiler_static_F77=
13569 fi
13570
13571
13572 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13573 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13574 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13575   echo $ECHO_N "(cached) $ECHO_C" >&6
13576 else
13577   lt_cv_prog_compiler_c_o_F77=no
13578    $rm -r conftest 2>/dev/null
13579    mkdir conftest
13580    cd conftest
13581    mkdir out
13582    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13583
13584    lt_compiler_flag="-o out/conftest2.$ac_objext"
13585    # Insert the option either (1) after the last *FLAGS variable, or
13586    # (2) before a word containing "conftest.", or (3) at the end.
13587    # Note that $ac_compile itself does not contain backslashes and begins
13588    # with a dollar sign (not a hyphen), so the echo should work correctly.
13589    lt_compile=`echo "$ac_compile" | $SED \
13590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13592    -e 's:$: $lt_compiler_flag:'`
13593    (eval echo "\"\$as_me:13593: $lt_compile\"" >&5)
13594    (eval "$lt_compile" 2>out/conftest.err)
13595    ac_status=$?
13596    cat out/conftest.err >&5
13597    echo "$as_me:13597: \$? = $ac_status" >&5
13598    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13599    then
13600      # The compiler can only warn and ignore the option if not recognized
13601      # So say no if there are warnings
13602      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13603      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13604      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13605        lt_cv_prog_compiler_c_o_F77=yes
13606      fi
13607    fi
13608    chmod u+w . 2>&5
13609    $rm conftest*
13610    # SGI C++ compiler will create directory out/ii_files/ for
13611    # template instantiation
13612    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13613    $rm out/* && rmdir out
13614    cd ..
13615    rmdir conftest
13616    $rm conftest*
13617
13618 fi
13619 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13620 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13621
13622
13623 hard_links="nottested"
13624 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13625   # do not overwrite the value of need_locks provided by the user
13626   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13627 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13628   hard_links=yes
13629   $rm conftest*
13630   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13631   touch conftest.a
13632   ln conftest.a conftest.b 2>&5 || hard_links=no
13633   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13634   echo "$as_me:$LINENO: result: $hard_links" >&5
13635 echo "${ECHO_T}$hard_links" >&6
13636   if test "$hard_links" = no; then
13637     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13638 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13639     need_locks=warn
13640   fi
13641 else
13642   need_locks=no
13643 fi
13644
13645 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13646 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13647
13648   runpath_var=
13649   allow_undefined_flag_F77=
13650   enable_shared_with_static_runtimes_F77=no
13651   archive_cmds_F77=
13652   archive_expsym_cmds_F77=
13653   old_archive_From_new_cmds_F77=
13654   old_archive_from_expsyms_cmds_F77=
13655   export_dynamic_flag_spec_F77=
13656   whole_archive_flag_spec_F77=
13657   thread_safe_flag_spec_F77=
13658   hardcode_libdir_flag_spec_F77=
13659   hardcode_libdir_flag_spec_ld_F77=
13660   hardcode_libdir_separator_F77=
13661   hardcode_direct_F77=no
13662   hardcode_minus_L_F77=no
13663   hardcode_shlibpath_var_F77=unsupported
13664   link_all_deplibs_F77=unknown
13665   hardcode_automatic_F77=no
13666   module_cmds_F77=
13667   module_expsym_cmds_F77=
13668   always_export_symbols_F77=no
13669   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13670   # include_expsyms should be a list of space-separated symbols to be *always*
13671   # included in the symbol list
13672   include_expsyms_F77=
13673   # exclude_expsyms can be an extended regexp of symbols to exclude
13674   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13675   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13676   # as well as any symbol that contains `d'.
13677   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13678   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13679   # platforms (ab)use it in PIC code, but their linkers get confused if
13680   # the symbol is explicitly referenced.  Since portable code cannot
13681   # rely on this symbol name, it's probably fine to never include it in
13682   # preloaded symbol tables.
13683   extract_expsyms_cmds=
13684   # Just being paranoid about ensuring that cc_basename is set.
13685   for cc_temp in $compiler""; do
13686   case $cc_temp in
13687     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13688     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13689     \-*) ;;
13690     *) break;;
13691   esac
13692 done
13693 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13694
13695   case $host_os in
13696   cygwin* | mingw* | pw32*)
13697     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13698     # When not using gcc, we currently assume that we are using
13699     # Microsoft Visual C++.
13700     if test "$GCC" != yes; then
13701       with_gnu_ld=no
13702     fi
13703     ;;
13704   interix*)
13705     # we just hope/assume this is gcc and not c89 (= MSVC++)
13706     with_gnu_ld=yes
13707     ;;
13708   openbsd*)
13709     with_gnu_ld=no
13710     ;;
13711   esac
13712
13713   ld_shlibs_F77=yes
13714   if test "$with_gnu_ld" = yes; then
13715     # If archive_cmds runs LD, not CC, wlarc should be empty
13716     wlarc='${wl}'
13717
13718     # Set some defaults for GNU ld with shared library support. These
13719     # are reset later if shared libraries are not supported. Putting them
13720     # here allows them to be overridden if necessary.
13721     runpath_var=LD_RUN_PATH
13722     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13723     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13724     # ancient GNU ld didn't support --whole-archive et. al.
13725     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13726         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13727       else
13728         whole_archive_flag_spec_F77=
13729     fi
13730     supports_anon_versioning=no
13731     case `$LD -v 2>/dev/null` in
13732       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13733       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13734       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13735       *\ 2.11.*) ;; # other 2.11 versions
13736       *) supports_anon_versioning=yes ;;
13737     esac
13738
13739     # See if GNU ld supports shared libraries.
13740     case $host_os in
13741     aix3* | aix4* | aix5*)
13742       # On AIX/PPC, the GNU linker is very broken
13743       if test "$host_cpu" != ia64; then
13744         ld_shlibs_F77=no
13745         cat <<EOF 1>&2
13746
13747 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13748 *** to be unable to reliably create shared libraries on AIX.
13749 *** Therefore, libtool is disabling shared libraries support.  If you
13750 *** really care for shared libraries, you may want to modify your PATH
13751 *** so that a non-GNU linker is found, and then restart.
13752
13753 EOF
13754       fi
13755       ;;
13756
13757     amigaos*)
13758       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)'
13759       hardcode_libdir_flag_spec_F77='-L$libdir'
13760       hardcode_minus_L_F77=yes
13761
13762       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13763       # that the semantics of dynamic libraries on AmigaOS, at least up
13764       # to version 4, is to share data among multiple programs linked
13765       # with the same dynamic library.  Since this doesn't match the
13766       # behavior of shared libraries on other platforms, we can't use
13767       # them.
13768       ld_shlibs_F77=no
13769       ;;
13770
13771     beos*)
13772       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13773         allow_undefined_flag_F77=unsupported
13774         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13775         # support --undefined.  This deserves some investigation.  FIXME
13776         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13777       else
13778         ld_shlibs_F77=no
13779       fi
13780       ;;
13781
13782     cygwin* | mingw* | pw32*)
13783       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13784       # as there is no search path for DLLs.
13785       hardcode_libdir_flag_spec_F77='-L$libdir'
13786       allow_undefined_flag_F77=unsupported
13787       always_export_symbols_F77=no
13788       enable_shared_with_static_runtimes_F77=yes
13789       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13790
13791       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13792         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13793         # If the export-symbols file already is a .def file (1st line
13794         # is EXPORTS), use it as is; otherwise, prepend...
13795         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13796           cp $export_symbols $output_objdir/$soname.def;
13797         else
13798           echo EXPORTS > $output_objdir/$soname.def;
13799           cat $export_symbols >> $output_objdir/$soname.def;
13800         fi~
13801         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13802       else
13803         ld_shlibs_F77=no
13804       fi
13805       ;;
13806
13807     interix3*)
13808       hardcode_direct_F77=no
13809       hardcode_shlibpath_var_F77=no
13810       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13811       export_dynamic_flag_spec_F77='${wl}-E'
13812       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13813       # Instead, shared libraries are loaded at an image base (0x10000000 by
13814       # default) and relocated if they conflict, which is a slow very memory
13815       # consuming and fragmenting process.  To avoid this, we pick a random,
13816       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13817       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13818       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13819       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13820       ;;
13821
13822     linux*)
13823       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13824         tmp_addflag=
13825         case $cc_basename,$host_cpu in
13826         pgcc*)                          # Portland Group C compiler
13827           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13828           tmp_addflag=' $pic_flag'
13829           ;;
13830         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13831           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13832           tmp_addflag=' $pic_flag -Mnomain' ;;
13833         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13834           tmp_addflag=' -i_dynamic' ;;
13835         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13836           tmp_addflag=' -i_dynamic -nofor_main' ;;
13837         ifc* | ifort*)                  # Intel Fortran compiler
13838           tmp_addflag=' -nofor_main' ;;
13839         esac
13840         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13841
13842         if test $supports_anon_versioning = yes; then
13843           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13844   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13845   $echo "local: *; };" >> $output_objdir/$libname.ver~
13846           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13847         fi
13848         link_all_deplibs_F77=no
13849       else
13850         ld_shlibs_F77=no
13851       fi
13852       ;;
13853
13854     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13855       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13856         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13857         wlarc=
13858       else
13859         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13860         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13861       fi
13862       ;;
13863
13864     solaris*)
13865       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13866         ld_shlibs_F77=no
13867         cat <<EOF 1>&2
13868
13869 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13870 *** create shared libraries on Solaris systems.  Therefore, libtool
13871 *** is disabling shared libraries support.  We urge you to upgrade GNU
13872 *** binutils to release 2.9.1 or newer.  Another option is to modify
13873 *** your PATH or compiler configuration so that the native linker is
13874 *** used, and then restart.
13875
13876 EOF
13877       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13878         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13879         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13880       else
13881         ld_shlibs_F77=no
13882       fi
13883       ;;
13884
13885     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13886       case `$LD -v 2>&1` in
13887         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13888         ld_shlibs_F77=no
13889         cat <<_LT_EOF 1>&2
13890
13891 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13892 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13893 *** is disabling shared libraries support.  We urge you to upgrade GNU
13894 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13895 *** your PATH or compiler configuration so that the native linker is
13896 *** used, and then restart.
13897
13898 _LT_EOF
13899         ;;
13900         *)
13901           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13902             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13903             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13904             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13905           else
13906             ld_shlibs_F77=no
13907           fi
13908         ;;
13909       esac
13910       ;;
13911
13912     sunos4*)
13913       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13914       wlarc=
13915       hardcode_direct_F77=yes
13916       hardcode_shlibpath_var_F77=no
13917       ;;
13918
13919     *)
13920       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13921         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13922         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13923       else
13924         ld_shlibs_F77=no
13925       fi
13926       ;;
13927     esac
13928
13929     if test "$ld_shlibs_F77" = no; then
13930       runpath_var=
13931       hardcode_libdir_flag_spec_F77=
13932       export_dynamic_flag_spec_F77=
13933       whole_archive_flag_spec_F77=
13934     fi
13935   else
13936     # PORTME fill in a description of your system's linker (not GNU ld)
13937     case $host_os in
13938     aix3*)
13939       allow_undefined_flag_F77=unsupported
13940       always_export_symbols_F77=yes
13941       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'
13942       # Note: this linker hardcodes the directories in LIBPATH if there
13943       # are no directories specified by -L.
13944       hardcode_minus_L_F77=yes
13945       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13946         # Neither direct hardcoding nor static linking is supported with a
13947         # broken collect2.
13948         hardcode_direct_F77=unsupported
13949       fi
13950       ;;
13951
13952     aix4* | aix5*)
13953       if test "$host_cpu" = ia64; then
13954         # On IA64, the linker does run time linking by default, so we don't
13955         # have to do anything special.
13956         aix_use_runtimelinking=no
13957         exp_sym_flag='-Bexport'
13958         no_entry_flag=""
13959       else
13960         # If we're using GNU nm, then we don't want the "-C" option.
13961         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13962         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13963           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'
13964         else
13965           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'
13966         fi
13967         aix_use_runtimelinking=no
13968
13969         # Test if we are trying to use run time linking or normal
13970         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13971         # need to do runtime linking.
13972         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13973           for ld_flag in $LDFLAGS; do
13974           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13975             aix_use_runtimelinking=yes
13976             break
13977           fi
13978           done
13979           ;;
13980         esac
13981
13982         exp_sym_flag='-bexport'
13983         no_entry_flag='-bnoentry'
13984       fi
13985
13986       # When large executables or shared objects are built, AIX ld can
13987       # have problems creating the table of contents.  If linking a library
13988       # or program results in "error TOC overflow" add -mminimal-toc to
13989       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13990       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13991
13992       archive_cmds_F77=''
13993       hardcode_direct_F77=yes
13994       hardcode_libdir_separator_F77=':'
13995       link_all_deplibs_F77=yes
13996
13997       if test "$GCC" = yes; then
13998         case $host_os in aix4.[012]|aix4.[012].*)
13999         # We only want to do this on AIX 4.2 and lower, the check
14000         # below for broken collect2 doesn't work under 4.3+
14001           collect2name=`${CC} -print-prog-name=collect2`
14002           if test -f "$collect2name" && \
14003            strings "$collect2name" | grep resolve_lib_name >/dev/null
14004           then
14005           # We have reworked collect2
14006           hardcode_direct_F77=yes
14007           else
14008           # We have old collect2
14009           hardcode_direct_F77=unsupported
14010           # It fails to find uninstalled libraries when the uninstalled
14011           # path is not listed in the libpath.  Setting hardcode_minus_L
14012           # to unsupported forces relinking
14013           hardcode_minus_L_F77=yes
14014           hardcode_libdir_flag_spec_F77='-L$libdir'
14015           hardcode_libdir_separator_F77=
14016           fi
14017           ;;
14018         esac
14019         shared_flag='-shared'
14020         if test "$aix_use_runtimelinking" = yes; then
14021           shared_flag="$shared_flag "'${wl}-G'
14022         fi
14023       else
14024         # not using gcc
14025         if test "$host_cpu" = ia64; then
14026         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14027         # chokes on -Wl,-G. The following line is correct:
14028           shared_flag='-G'
14029         else
14030           if test "$aix_use_runtimelinking" = yes; then
14031             shared_flag='${wl}-G'
14032           else
14033             shared_flag='${wl}-bM:SRE'
14034           fi
14035         fi
14036       fi
14037
14038       # It seems that -bexpall does not export symbols beginning with
14039       # underscore (_), so it is better to generate a list of symbols to export.
14040       always_export_symbols_F77=yes
14041       if test "$aix_use_runtimelinking" = yes; then
14042         # Warning - without using the other runtime loading flags (-brtl),
14043         # -berok will link without error, but may produce a broken library.
14044         allow_undefined_flag_F77='-berok'
14045        # Determine the default libpath from the value encoded in an empty executable.
14046        cat >conftest.$ac_ext <<_ACEOF
14047       program main
14048
14049       end
14050 _ACEOF
14051 rm -f conftest.$ac_objext conftest$ac_exeext
14052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053   (eval $ac_link) 2>conftest.er1
14054   ac_status=$?
14055   grep -v '^ *+' conftest.er1 >conftest.err
14056   rm -f conftest.er1
14057   cat conftest.err >&5
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); } &&
14060          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062   (eval $ac_try) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; } &&
14066          { ac_try='test -s conftest$ac_exeext'
14067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068   (eval $ac_try) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; }; then
14072
14073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14074 }'`
14075 # Check for a 64-bit object if we didn't find anything.
14076 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; }
14077 }'`; fi
14078 else
14079   echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14081
14082 fi
14083 rm -f conftest.err conftest.$ac_objext \
14084       conftest$ac_exeext conftest.$ac_ext
14085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14086
14087        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14088         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14089        else
14090         if test "$host_cpu" = ia64; then
14091           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14092           allow_undefined_flag_F77="-z nodefs"
14093           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14094         else
14095          # Determine the default libpath from the value encoded in an empty executable.
14096          cat >conftest.$ac_ext <<_ACEOF
14097       program main
14098
14099       end
14100 _ACEOF
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14103   (eval $ac_link) 2>conftest.er1
14104   ac_status=$?
14105   grep -v '^ *+' conftest.er1 >conftest.err
14106   rm -f conftest.er1
14107   cat conftest.err >&5
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); } &&
14110          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112   (eval $ac_try) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); }; } &&
14116          { ac_try='test -s conftest$ac_exeext'
14117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118   (eval $ac_try) 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; }; then
14122
14123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14124 }'`
14125 # Check for a 64-bit object if we didn't find anything.
14126 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; }
14127 }'`; fi
14128 else
14129   echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132 fi
14133 rm -f conftest.err conftest.$ac_objext \
14134       conftest$ac_exeext conftest.$ac_ext
14135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14136
14137          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14138           # Warning - without using the other run time loading flags,
14139           # -berok will link without error, but may produce a broken library.
14140           no_undefined_flag_F77=' ${wl}-bernotok'
14141           allow_undefined_flag_F77=' ${wl}-berok'
14142           # Exported symbols can be pulled into shared objects from archives
14143           whole_archive_flag_spec_F77='$convenience'
14144           archive_cmds_need_lc_F77=yes
14145           # This is similar to how AIX traditionally builds its shared libraries.
14146           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14147         fi
14148       fi
14149       ;;
14150
14151     amigaos*)
14152       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)'
14153       hardcode_libdir_flag_spec_F77='-L$libdir'
14154       hardcode_minus_L_F77=yes
14155       # see comment about different semantics on the GNU ld section
14156       ld_shlibs_F77=no
14157       ;;
14158
14159     bsdi[45]*)
14160       export_dynamic_flag_spec_F77=-rdynamic
14161       ;;
14162
14163     cygwin* | mingw* | pw32*)
14164       # When not using gcc, we currently assume that we are using
14165       # Microsoft Visual C++.
14166       # hardcode_libdir_flag_spec is actually meaningless, as there is
14167       # no search path for DLLs.
14168       hardcode_libdir_flag_spec_F77=' '
14169       allow_undefined_flag_F77=unsupported
14170       # Tell ltmain to make .lib files, not .a files.
14171       libext=lib
14172       # Tell ltmain to make .dll files, not .so files.
14173       shrext_cmds=".dll"
14174       # FIXME: Setting linknames here is a bad hack.
14175       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14176       # The linker will automatically build a .lib file if we build a DLL.
14177       old_archive_From_new_cmds_F77='true'
14178       # FIXME: Should let the user specify the lib program.
14179       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14180       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14181       enable_shared_with_static_runtimes_F77=yes
14182       ;;
14183
14184     darwin* | rhapsody*)
14185       case $host_os in
14186         rhapsody* | darwin1.[012])
14187          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14188          ;;
14189        *) # Darwin 1.3 on
14190          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14191            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14192          else
14193            case ${MACOSX_DEPLOYMENT_TARGET} in
14194              10.[012])
14195                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14196                ;;
14197              10.*)
14198                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14199                ;;
14200            esac
14201          fi
14202          ;;
14203       esac
14204       archive_cmds_need_lc_F77=no
14205       hardcode_direct_F77=no
14206       hardcode_automatic_F77=yes
14207       hardcode_shlibpath_var_F77=unsupported
14208       whole_archive_flag_spec_F77=''
14209       link_all_deplibs_F77=yes
14210     if test "$GCC" = yes ; then
14211         output_verbose_link_cmd='echo'
14212         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14213       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14214       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14215       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14216       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}'
14217     else
14218       case $cc_basename in
14219         xlc*)
14220          output_verbose_link_cmd='echo'
14221          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14222          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14223           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14224          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14225           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}'
14226           ;;
14227        *)
14228          ld_shlibs_F77=no
14229           ;;
14230       esac
14231     fi
14232       ;;
14233
14234     dgux*)
14235       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14236       hardcode_libdir_flag_spec_F77='-L$libdir'
14237       hardcode_shlibpath_var_F77=no
14238       ;;
14239
14240     freebsd1*)
14241       ld_shlibs_F77=no
14242       ;;
14243
14244     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14245     # support.  Future versions do this automatically, but an explicit c++rt0.o
14246     # does not break anything, and helps significantly (at the cost of a little
14247     # extra space).
14248     freebsd2.2*)
14249       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14250       hardcode_libdir_flag_spec_F77='-R$libdir'
14251       hardcode_direct_F77=yes
14252       hardcode_shlibpath_var_F77=no
14253       ;;
14254
14255     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14256     freebsd2*)
14257       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14258       hardcode_direct_F77=yes
14259       hardcode_minus_L_F77=yes
14260       hardcode_shlibpath_var_F77=no
14261       ;;
14262
14263     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14264     freebsd* | dragonfly*)
14265       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14266       hardcode_libdir_flag_spec_F77='-R$libdir'
14267       hardcode_direct_F77=yes
14268       hardcode_shlibpath_var_F77=no
14269       ;;
14270
14271     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14272     kfreebsd*-gnu)
14273       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14274       hardcode_libdir_flag_spec_F77='-R$libdir'
14275       hardcode_direct_F77=yes
14276       hardcode_shlibpath_var_F77=no
14277       link_all_deplibs_F77=no
14278       ;;
14279
14280     hpux9*)
14281       if test "$GCC" = yes; then
14282         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'
14283       else
14284         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'
14285       fi
14286       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14287       hardcode_libdir_separator_F77=:
14288       hardcode_direct_F77=yes
14289
14290       # hardcode_minus_L: Not really in the search PATH,
14291       # but as the default location of the library.
14292       hardcode_minus_L_F77=yes
14293       export_dynamic_flag_spec_F77='${wl}-E'
14294       ;;
14295
14296     hpux10*)
14297       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14298         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14299       else
14300         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14301       fi
14302       if test "$with_gnu_ld" = no; then
14303         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14304         hardcode_libdir_separator_F77=:
14305
14306         hardcode_direct_F77=yes
14307         export_dynamic_flag_spec_F77='${wl}-E'
14308
14309         # hardcode_minus_L: Not really in the search PATH,
14310         # but as the default location of the library.
14311         hardcode_minus_L_F77=yes
14312       fi
14313       ;;
14314
14315     hpux11*)
14316       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14317         case $host_cpu in
14318         hppa*64*)
14319           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14320           ;;
14321         ia64*)
14322           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14323           ;;
14324         *)
14325           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14326           ;;
14327         esac
14328       else
14329         case $host_cpu in
14330         hppa*64*)
14331           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14332           ;;
14333         ia64*)
14334           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14335           ;;
14336         *)
14337           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14338           ;;
14339         esac
14340       fi
14341       if test "$with_gnu_ld" = no; then
14342         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14343         hardcode_libdir_separator_F77=:
14344
14345         case $host_cpu in
14346         hppa*64*|ia64*)
14347           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14348           hardcode_direct_F77=no
14349           hardcode_shlibpath_var_F77=no
14350           ;;
14351         *)
14352           hardcode_direct_F77=yes
14353           export_dynamic_flag_spec_F77='${wl}-E'
14354
14355           # hardcode_minus_L: Not really in the search PATH,
14356           # but as the default location of the library.
14357           hardcode_minus_L_F77=yes
14358           ;;
14359         esac
14360       fi
14361       ;;
14362
14363     irix5* | irix6* | nonstopux*)
14364       if test "$GCC" = yes; then
14365         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'
14366       else
14367         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'
14368         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14369       fi
14370       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14371       hardcode_libdir_separator_F77=:
14372       link_all_deplibs_F77=yes
14373       ;;
14374
14375     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14376       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14377         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14378       else
14379         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14380       fi
14381       hardcode_libdir_flag_spec_F77='-R$libdir'
14382       hardcode_direct_F77=yes
14383       hardcode_shlibpath_var_F77=no
14384       ;;
14385
14386     newsos6)
14387       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14388       hardcode_direct_F77=yes
14389       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14390       hardcode_libdir_separator_F77=:
14391       hardcode_shlibpath_var_F77=no
14392       ;;
14393
14394     openbsd*)
14395       hardcode_direct_F77=yes
14396       hardcode_shlibpath_var_F77=no
14397       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14398         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14399         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14400         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14401         export_dynamic_flag_spec_F77='${wl}-E'
14402       else
14403        case $host_os in
14404          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14405            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14406            hardcode_libdir_flag_spec_F77='-R$libdir'
14407            ;;
14408          *)
14409            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14410            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14411            ;;
14412        esac
14413       fi
14414       ;;
14415
14416     os2*)
14417       hardcode_libdir_flag_spec_F77='-L$libdir'
14418       hardcode_minus_L_F77=yes
14419       allow_undefined_flag_F77=unsupported
14420       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'
14421       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14422       ;;
14423
14424     osf3*)
14425       if test "$GCC" = yes; then
14426         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14427         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'
14428       else
14429         allow_undefined_flag_F77=' -expect_unresolved \*'
14430         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'
14431       fi
14432       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14433       hardcode_libdir_separator_F77=:
14434       ;;
14435
14436     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14437       if test "$GCC" = yes; then
14438         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14439         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'
14440         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14441       else
14442         allow_undefined_flag_F77=' -expect_unresolved \*'
14443         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'
14444         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~
14445         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14446
14447         # Both c and cxx compiler support -rpath directly
14448         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14449       fi
14450       hardcode_libdir_separator_F77=:
14451       ;;
14452
14453     solaris*)
14454       no_undefined_flag_F77=' -z text'
14455       if test "$GCC" = yes; then
14456         wlarc='${wl}'
14457         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14458         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14459           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14460       else
14461         wlarc=''
14462         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14463         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14464         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14465       fi
14466       hardcode_libdir_flag_spec_F77='-R$libdir'
14467       hardcode_shlibpath_var_F77=no
14468       case $host_os in
14469       solaris2.[0-5] | solaris2.[0-5].*) ;;
14470       *)
14471         # The compiler driver will combine linker options so we
14472         # cannot just pass the convience library names through
14473         # without $wl, iff we do not link with $LD.
14474         # Luckily, gcc supports the same syntax we need for Sun Studio.
14475         # Supported since Solaris 2.6 (maybe 2.5.1?)
14476         case $wlarc in
14477         '')
14478           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14479         *)
14480           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14481         esac ;;
14482       esac
14483       link_all_deplibs_F77=yes
14484       ;;
14485
14486     sunos4*)
14487       if test "x$host_vendor" = xsequent; then
14488         # Use $CC to link under sequent, because it throws in some extra .o
14489         # files that make .init and .fini sections work.
14490         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14491       else
14492         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14493       fi
14494       hardcode_libdir_flag_spec_F77='-L$libdir'
14495       hardcode_direct_F77=yes
14496       hardcode_minus_L_F77=yes
14497       hardcode_shlibpath_var_F77=no
14498       ;;
14499
14500     sysv4)
14501       case $host_vendor in
14502         sni)
14503           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14504           hardcode_direct_F77=yes # is this really true???
14505         ;;
14506         siemens)
14507           ## LD is ld it makes a PLAMLIB
14508           ## CC just makes a GrossModule.
14509           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14510           reload_cmds_F77='$CC -r -o $output$reload_objs'
14511           hardcode_direct_F77=no
14512         ;;
14513         motorola)
14514           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14515           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14516         ;;
14517       esac
14518       runpath_var='LD_RUN_PATH'
14519       hardcode_shlibpath_var_F77=no
14520       ;;
14521
14522     sysv4.3*)
14523       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14524       hardcode_shlibpath_var_F77=no
14525       export_dynamic_flag_spec_F77='-Bexport'
14526       ;;
14527
14528     sysv4*MP*)
14529       if test -d /usr/nec; then
14530         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14531         hardcode_shlibpath_var_F77=no
14532         runpath_var=LD_RUN_PATH
14533         hardcode_runpath_var=yes
14534         ld_shlibs_F77=yes
14535       fi
14536       ;;
14537
14538     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14539       no_undefined_flag_F77='${wl}-z,text'
14540       archive_cmds_need_lc_F77=no
14541       hardcode_shlibpath_var_F77=no
14542       runpath_var='LD_RUN_PATH'
14543
14544       if test "$GCC" = yes; then
14545         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547       else
14548         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14549         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14550       fi
14551       ;;
14552
14553     sysv5* | sco3.2v5* | sco5v6*)
14554       # Note: We can NOT use -z defs as we might desire, because we do not
14555       # link with -lc, and that would cause any symbols used from libc to
14556       # always be unresolved, which means just about no library would
14557       # ever link correctly.  If we're not using GNU ld we use -z text
14558       # though, which does catch some bad symbols but isn't as heavy-handed
14559       # as -z defs.
14560       no_undefined_flag_F77='${wl}-z,text'
14561       allow_undefined_flag_F77='${wl}-z,nodefs'
14562       archive_cmds_need_lc_F77=no
14563       hardcode_shlibpath_var_F77=no
14564       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14565       hardcode_libdir_separator_F77=':'
14566       link_all_deplibs_F77=yes
14567       export_dynamic_flag_spec_F77='${wl}-Bexport'
14568       runpath_var='LD_RUN_PATH'
14569
14570       if test "$GCC" = yes; then
14571         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14572         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14573       else
14574         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14575         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14576       fi
14577       ;;
14578
14579     uts4*)
14580       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14581       hardcode_libdir_flag_spec_F77='-L$libdir'
14582       hardcode_shlibpath_var_F77=no
14583       ;;
14584
14585     *)
14586       ld_shlibs_F77=no
14587       ;;
14588     esac
14589   fi
14590
14591 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14592 echo "${ECHO_T}$ld_shlibs_F77" >&6
14593 test "$ld_shlibs_F77" = no && can_build_shared=no
14594
14595 #
14596 # Do we need to explicitly link libc?
14597 #
14598 case "x$archive_cmds_need_lc_F77" in
14599 x|xyes)
14600   # Assume -lc should be added
14601   archive_cmds_need_lc_F77=yes
14602
14603   if test "$enable_shared" = yes && test "$GCC" = yes; then
14604     case $archive_cmds_F77 in
14605     *'~'*)
14606       # FIXME: we may have to deal with multi-command sequences.
14607       ;;
14608     '$CC '*)
14609       # Test whether the compiler implicitly links with -lc since on some
14610       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14611       # to ld, don't add -lc before -lgcc.
14612       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14613 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14614       $rm conftest*
14615       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14616
14617       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618   (eval $ac_compile) 2>&5
14619   ac_status=$?
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); } 2>conftest.err; then
14622         soname=conftest
14623         lib=conftest
14624         libobjs=conftest.$ac_objext
14625         deplibs=
14626         wl=$lt_prog_compiler_wl_F77
14627         pic_flag=$lt_prog_compiler_pic_F77
14628         compiler_flags=-v
14629         linker_flags=-v
14630         verstring=
14631         output_objdir=.
14632         libname=conftest
14633         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14634         allow_undefined_flag_F77=
14635         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14636   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); }
14640         then
14641           archive_cmds_need_lc_F77=no
14642         else
14643           archive_cmds_need_lc_F77=yes
14644         fi
14645         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14646       else
14647         cat conftest.err 1>&5
14648       fi
14649       $rm conftest*
14650       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14651 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14652       ;;
14653     esac
14654   fi
14655   ;;
14656 esac
14657
14658 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14659 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14660 library_names_spec=
14661 libname_spec='lib$name'
14662 soname_spec=
14663 shrext_cmds=".so"
14664 postinstall_cmds=
14665 postuninstall_cmds=
14666 finish_cmds=
14667 finish_eval=
14668 shlibpath_var=
14669 shlibpath_overrides_runpath=unknown
14670 version_type=none
14671 dynamic_linker="$host_os ld.so"
14672 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14673 if test "$GCC" = yes; then
14674   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14675   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14676     # if the path contains ";" then we assume it to be the separator
14677     # otherwise default to the standard path separator (i.e. ":") - it is
14678     # assumed that no part of a normal pathname contains ";" but that should
14679     # okay in the real world where ";" in dirpaths is itself problematic.
14680     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14681   else
14682     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14683   fi
14684 else
14685   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14686 fi
14687 need_lib_prefix=unknown
14688 hardcode_into_libs=no
14689
14690 # when you set need_version to no, make sure it does not cause -set_version
14691 # flags to be left without arguments
14692 need_version=unknown
14693
14694 case $host_os in
14695 aix3*)
14696   version_type=linux
14697   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14698   shlibpath_var=LIBPATH
14699
14700   # AIX 3 has no versioning support, so we append a major version to the name.
14701   soname_spec='${libname}${release}${shared_ext}$major'
14702   ;;
14703
14704 aix4* | aix5*)
14705   version_type=linux
14706   need_lib_prefix=no
14707   need_version=no
14708   hardcode_into_libs=yes
14709   if test "$host_cpu" = ia64; then
14710     # AIX 5 supports IA64
14711     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14712     shlibpath_var=LD_LIBRARY_PATH
14713   else
14714     # With GCC up to 2.95.x, collect2 would create an import file
14715     # for dependence libraries.  The import file would start with
14716     # the line `#! .'.  This would cause the generated library to
14717     # depend on `.', always an invalid library.  This was fixed in
14718     # development snapshots of GCC prior to 3.0.
14719     case $host_os in
14720       aix4 | aix4.[01] | aix4.[01].*)
14721       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14722            echo ' yes '
14723            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14724         :
14725       else
14726         can_build_shared=no
14727       fi
14728       ;;
14729     esac
14730     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14731     # soname into executable. Probably we can add versioning support to
14732     # collect2, so additional links can be useful in future.
14733     if test "$aix_use_runtimelinking" = yes; then
14734       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14735       # instead of lib<name>.a to let people know that these are not
14736       # typical AIX shared libraries.
14737       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738     else
14739       # We preserve .a as extension for shared libraries through AIX4.2
14740       # and later when we are not doing run time linking.
14741       library_names_spec='${libname}${release}.a $libname.a'
14742       soname_spec='${libname}${release}${shared_ext}$major'
14743     fi
14744     shlibpath_var=LIBPATH
14745   fi
14746   ;;
14747
14748 amigaos*)
14749   library_names_spec='$libname.ixlibrary $libname.a'
14750   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14751   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'
14752   ;;
14753
14754 beos*)
14755   library_names_spec='${libname}${shared_ext}'
14756   dynamic_linker="$host_os ld.so"
14757   shlibpath_var=LIBRARY_PATH
14758   ;;
14759
14760 bsdi[45]*)
14761   version_type=linux
14762   need_version=no
14763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764   soname_spec='${libname}${release}${shared_ext}$major'
14765   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14766   shlibpath_var=LD_LIBRARY_PATH
14767   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14768   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14769   # the default ld.so.conf also contains /usr/contrib/lib and
14770   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14771   # libtool to hard-code these into programs
14772   ;;
14773
14774 cygwin* | mingw* | pw32*)
14775   version_type=windows
14776   shrext_cmds=".dll"
14777   need_version=no
14778   need_lib_prefix=no
14779
14780   case $GCC,$host_os in
14781   yes,cygwin* | yes,mingw* | yes,pw32*)
14782     library_names_spec='$libname.dll.a'
14783     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14784     postinstall_cmds='base_file=`basename \${file}`~
14785       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14786       dldir=$destdir/`dirname \$dlpath`~
14787       test -d \$dldir || mkdir -p \$dldir~
14788       $install_prog $dir/$dlname \$dldir/$dlname~
14789       chmod a+x \$dldir/$dlname'
14790     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14791       dlpath=$dir/\$dldll~
14792        $rm \$dlpath'
14793     shlibpath_overrides_runpath=yes
14794
14795     case $host_os in
14796     cygwin*)
14797       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14798       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14799       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14800       ;;
14801     mingw*)
14802       # MinGW DLLs use traditional 'lib' prefix
14803       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14804       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14805       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14806         # It is most probably a Windows format PATH printed by
14807         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14808         # path with ; separators, and with drive letters. We can handle the
14809         # drive letters (cygwin fileutils understands them), so leave them,
14810         # especially as we might pass files found there to a mingw objdump,
14811         # which wouldn't understand a cygwinified path. Ahh.
14812         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14813       else
14814         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14815       fi
14816       ;;
14817     pw32*)
14818       # pw32 DLLs use 'pw' prefix rather than 'lib'
14819       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14820       ;;
14821     esac
14822     ;;
14823
14824   *)
14825     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14826     ;;
14827   esac
14828   dynamic_linker='Win32 ld.exe'
14829   # FIXME: first we should search . and the directory the executable is in
14830   shlibpath_var=PATH
14831   ;;
14832
14833 darwin* | rhapsody*)
14834   dynamic_linker="$host_os dyld"
14835   version_type=darwin
14836   need_lib_prefix=no
14837   need_version=no
14838   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14839   soname_spec='${libname}${release}${major}$shared_ext'
14840   shlibpath_overrides_runpath=yes
14841   shlibpath_var=DYLD_LIBRARY_PATH
14842   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14843   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14844   if test "$GCC" = yes; then
14845     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"`
14846   else
14847     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14848   fi
14849   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14850   ;;
14851
14852 dgux*)
14853   version_type=linux
14854   need_lib_prefix=no
14855   need_version=no
14856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14857   soname_spec='${libname}${release}${shared_ext}$major'
14858   shlibpath_var=LD_LIBRARY_PATH
14859   ;;
14860
14861 freebsd1*)
14862   dynamic_linker=no
14863   ;;
14864
14865 kfreebsd*-gnu)
14866   version_type=linux
14867   need_lib_prefix=no
14868   need_version=no
14869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14870   soname_spec='${libname}${release}${shared_ext}$major'
14871   shlibpath_var=LD_LIBRARY_PATH
14872   shlibpath_overrides_runpath=no
14873   hardcode_into_libs=yes
14874   dynamic_linker='GNU ld.so'
14875   ;;
14876
14877 freebsd* | dragonfly*)
14878   # DragonFly does not have aout.  When/if they implement a new
14879   # versioning mechanism, adjust this.
14880   if test -x /usr/bin/objformat; then
14881     objformat=`/usr/bin/objformat`
14882   else
14883     case $host_os in
14884     freebsd[123]*) objformat=aout ;;
14885     *) objformat=elf ;;
14886     esac
14887   fi
14888   version_type=freebsd-$objformat
14889   case $version_type in
14890     freebsd-elf*)
14891       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14892       need_version=no
14893       need_lib_prefix=no
14894       ;;
14895     freebsd-*)
14896       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14897       need_version=yes
14898       ;;
14899   esac
14900   shlibpath_var=LD_LIBRARY_PATH
14901   case $host_os in
14902   freebsd2*)
14903     shlibpath_overrides_runpath=yes
14904     ;;
14905   freebsd3.[01]* | freebsdelf3.[01]*)
14906     shlibpath_overrides_runpath=yes
14907     hardcode_into_libs=yes
14908     ;;
14909   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14910   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14911     shlibpath_overrides_runpath=no
14912     hardcode_into_libs=yes
14913     ;;
14914   freebsd*) # from 4.6 on
14915     shlibpath_overrides_runpath=yes
14916     hardcode_into_libs=yes
14917     ;;
14918   esac
14919   ;;
14920
14921 gnu*)
14922   version_type=linux
14923   need_lib_prefix=no
14924   need_version=no
14925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14926   soname_spec='${libname}${release}${shared_ext}$major'
14927   shlibpath_var=LD_LIBRARY_PATH
14928   hardcode_into_libs=yes
14929   ;;
14930
14931 hpux9* | hpux10* | hpux11*)
14932   # Give a soname corresponding to the major version so that dld.sl refuses to
14933   # link against other versions.
14934   version_type=sunos
14935   need_lib_prefix=no
14936   need_version=no
14937   case $host_cpu in
14938   ia64*)
14939     shrext_cmds='.so'
14940     hardcode_into_libs=yes
14941     dynamic_linker="$host_os dld.so"
14942     shlibpath_var=LD_LIBRARY_PATH
14943     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945     soname_spec='${libname}${release}${shared_ext}$major'
14946     if test "X$HPUX_IA64_MODE" = X32; then
14947       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14948     else
14949       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14950     fi
14951     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14952     ;;
14953    hppa*64*)
14954      shrext_cmds='.sl'
14955      hardcode_into_libs=yes
14956      dynamic_linker="$host_os dld.sl"
14957      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14958      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14959      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14960      soname_spec='${libname}${release}${shared_ext}$major'
14961      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14962      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14963      ;;
14964    *)
14965     shrext_cmds='.sl'
14966     dynamic_linker="$host_os dld.sl"
14967     shlibpath_var=SHLIB_PATH
14968     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970     soname_spec='${libname}${release}${shared_ext}$major'
14971     ;;
14972   esac
14973   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14974   postinstall_cmds='chmod 555 $lib'
14975   ;;
14976
14977 interix3*)
14978   version_type=linux
14979   need_lib_prefix=no
14980   need_version=no
14981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14982   soname_spec='${libname}${release}${shared_ext}$major'
14983   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14984   shlibpath_var=LD_LIBRARY_PATH
14985   shlibpath_overrides_runpath=no
14986   hardcode_into_libs=yes
14987   ;;
14988
14989 irix5* | irix6* | nonstopux*)
14990   case $host_os in
14991     nonstopux*) version_type=nonstopux ;;
14992     *)
14993         if test "$lt_cv_prog_gnu_ld" = yes; then
14994                 version_type=linux
14995         else
14996                 version_type=irix
14997         fi ;;
14998   esac
14999   need_lib_prefix=no
15000   need_version=no
15001   soname_spec='${libname}${release}${shared_ext}$major'
15002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15003   case $host_os in
15004   irix5* | nonstopux*)
15005     libsuff= shlibsuff=
15006     ;;
15007   *)
15008     case $LD in # libtool.m4 will add one of these switches to LD
15009     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15010       libsuff= shlibsuff= libmagic=32-bit;;
15011     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15012       libsuff=32 shlibsuff=N32 libmagic=N32;;
15013     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15014       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15015     *) libsuff= shlibsuff= libmagic=never-match;;
15016     esac
15017     ;;
15018   esac
15019   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15020   shlibpath_overrides_runpath=no
15021   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15022   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15023   hardcode_into_libs=yes
15024   ;;
15025
15026 # No shared lib support for Linux oldld, aout, or coff.
15027 linux*oldld* | linux*aout* | linux*coff*)
15028   dynamic_linker=no
15029   ;;
15030
15031 # This must be Linux ELF.
15032 linux*)
15033   version_type=linux
15034   need_lib_prefix=no
15035   need_version=no
15036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037   soname_spec='${libname}${release}${shared_ext}$major'
15038   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15039   shlibpath_var=LD_LIBRARY_PATH
15040   shlibpath_overrides_runpath=no
15041   # This implies no fast_install, which is unacceptable.
15042   # Some rework will be needed to allow for fast_install
15043   # before this can be enabled.
15044   hardcode_into_libs=yes
15045
15046   # Append ld.so.conf contents to the search path
15047   if test -f /etc/ld.so.conf; then
15048     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15049     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15050   fi
15051
15052   # We used to test for /lib/ld.so.1 and disable shared libraries on
15053   # powerpc, because MkLinux only supported shared libraries with the
15054   # GNU dynamic linker.  Since this was broken with cross compilers,
15055   # most powerpc-linux boxes support dynamic linking these days and
15056   # people can always --disable-shared, the test was removed, and we
15057   # assume the GNU/Linux dynamic linker is in use.
15058   dynamic_linker='GNU/Linux ld.so'
15059   ;;
15060
15061 netbsdelf*-gnu)
15062   version_type=linux
15063   need_lib_prefix=no
15064   need_version=no
15065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15066   soname_spec='${libname}${release}${shared_ext}$major'
15067   shlibpath_var=LD_LIBRARY_PATH
15068   shlibpath_overrides_runpath=no
15069   hardcode_into_libs=yes
15070   dynamic_linker='NetBSD ld.elf_so'
15071   ;;
15072
15073 knetbsd*-gnu)
15074   version_type=linux
15075   need_lib_prefix=no
15076   need_version=no
15077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15078   soname_spec='${libname}${release}${shared_ext}$major'
15079   shlibpath_var=LD_LIBRARY_PATH
15080   shlibpath_overrides_runpath=no
15081   hardcode_into_libs=yes
15082   dynamic_linker='GNU ld.so'
15083   ;;
15084
15085 netbsd*)
15086   version_type=sunos
15087   need_lib_prefix=no
15088   need_version=no
15089   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15091     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15092     dynamic_linker='NetBSD (a.out) ld.so'
15093   else
15094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15095     soname_spec='${libname}${release}${shared_ext}$major'
15096     dynamic_linker='NetBSD ld.elf_so'
15097   fi
15098   shlibpath_var=LD_LIBRARY_PATH
15099   shlibpath_overrides_runpath=yes
15100   hardcode_into_libs=yes
15101   ;;
15102
15103 newsos6)
15104   version_type=linux
15105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106   shlibpath_var=LD_LIBRARY_PATH
15107   shlibpath_overrides_runpath=yes
15108   ;;
15109
15110 nto-qnx*)
15111   version_type=linux
15112   need_lib_prefix=no
15113   need_version=no
15114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115   soname_spec='${libname}${release}${shared_ext}$major'
15116   shlibpath_var=LD_LIBRARY_PATH
15117   shlibpath_overrides_runpath=yes
15118   ;;
15119
15120 openbsd*)
15121   version_type=sunos
15122   sys_lib_dlsearch_path_spec="/usr/lib"
15123   need_lib_prefix=no
15124   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15125   case $host_os in
15126     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15127     *)                         need_version=no  ;;
15128   esac
15129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15130   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15131   shlibpath_var=LD_LIBRARY_PATH
15132   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15133     case $host_os in
15134       openbsd2.[89] | openbsd2.[89].*)
15135         shlibpath_overrides_runpath=no
15136         ;;
15137       *)
15138         shlibpath_overrides_runpath=yes
15139         ;;
15140       esac
15141   else
15142     shlibpath_overrides_runpath=yes
15143   fi
15144   ;;
15145
15146 os2*)
15147   libname_spec='$name'
15148   shrext_cmds=".dll"
15149   need_lib_prefix=no
15150   library_names_spec='$libname${shared_ext} $libname.a'
15151   dynamic_linker='OS/2 ld.exe'
15152   shlibpath_var=LIBPATH
15153   ;;
15154
15155 osf3* | osf4* | osf5*)
15156   version_type=osf
15157   need_lib_prefix=no
15158   need_version=no
15159   soname_spec='${libname}${release}${shared_ext}$major'
15160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161   shlibpath_var=LD_LIBRARY_PATH
15162   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15163   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15164   ;;
15165
15166 solaris*)
15167   version_type=linux
15168   need_lib_prefix=no
15169   need_version=no
15170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15171   soname_spec='${libname}${release}${shared_ext}$major'
15172   shlibpath_var=LD_LIBRARY_PATH
15173   shlibpath_overrides_runpath=yes
15174   hardcode_into_libs=yes
15175   # ldd complains unless libraries are executable
15176   postinstall_cmds='chmod +x $lib'
15177   ;;
15178
15179 sunos4*)
15180   version_type=sunos
15181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15182   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15183   shlibpath_var=LD_LIBRARY_PATH
15184   shlibpath_overrides_runpath=yes
15185   if test "$with_gnu_ld" = yes; then
15186     need_lib_prefix=no
15187   fi
15188   need_version=yes
15189   ;;
15190
15191 sysv4 | sysv4.3*)
15192   version_type=linux
15193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194   soname_spec='${libname}${release}${shared_ext}$major'
15195   shlibpath_var=LD_LIBRARY_PATH
15196   case $host_vendor in
15197     sni)
15198       shlibpath_overrides_runpath=no
15199       need_lib_prefix=no
15200       export_dynamic_flag_spec='${wl}-Blargedynsym'
15201       runpath_var=LD_RUN_PATH
15202       ;;
15203     siemens)
15204       need_lib_prefix=no
15205       ;;
15206     motorola)
15207       need_lib_prefix=no
15208       need_version=no
15209       shlibpath_overrides_runpath=no
15210       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15211       ;;
15212   esac
15213   ;;
15214
15215 sysv4*MP*)
15216   if test -d /usr/nec ;then
15217     version_type=linux
15218     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15219     soname_spec='$libname${shared_ext}.$major'
15220     shlibpath_var=LD_LIBRARY_PATH
15221   fi
15222   ;;
15223
15224 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15225   version_type=freebsd-elf
15226   need_lib_prefix=no
15227   need_version=no
15228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15229   soname_spec='${libname}${release}${shared_ext}$major'
15230   shlibpath_var=LD_LIBRARY_PATH
15231   hardcode_into_libs=yes
15232   if test "$with_gnu_ld" = yes; then
15233     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15234     shlibpath_overrides_runpath=no
15235   else
15236     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15237     shlibpath_overrides_runpath=yes
15238     case $host_os in
15239       sco3.2v5*)
15240         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15241         ;;
15242     esac
15243   fi
15244   sys_lib_dlsearch_path_spec='/usr/lib'
15245   ;;
15246
15247 uts4*)
15248   version_type=linux
15249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250   soname_spec='${libname}${release}${shared_ext}$major'
15251   shlibpath_var=LD_LIBRARY_PATH
15252   ;;
15253
15254 *)
15255   dynamic_linker=no
15256   ;;
15257 esac
15258 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15259 echo "${ECHO_T}$dynamic_linker" >&6
15260 test "$dynamic_linker" = no && can_build_shared=no
15261
15262 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15263 if test "$GCC" = yes; then
15264   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15265 fi
15266
15267 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15268 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15269 hardcode_action_F77=
15270 if test -n "$hardcode_libdir_flag_spec_F77" || \
15271    test -n "$runpath_var_F77" || \
15272    test "X$hardcode_automatic_F77" = "Xyes" ; then
15273
15274   # We can hardcode non-existant directories.
15275   if test "$hardcode_direct_F77" != no &&
15276      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15277      # have to relink, otherwise we might link with an installed library
15278      # when we should be linking with a yet-to-be-installed one
15279      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15280      test "$hardcode_minus_L_F77" != no; then
15281     # Linking always hardcodes the temporary library directory.
15282     hardcode_action_F77=relink
15283   else
15284     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15285     hardcode_action_F77=immediate
15286   fi
15287 else
15288   # We cannot hardcode anything, or else we can only hardcode existing
15289   # directories.
15290   hardcode_action_F77=unsupported
15291 fi
15292 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15293 echo "${ECHO_T}$hardcode_action_F77" >&6
15294
15295 if test "$hardcode_action_F77" = relink; then
15296   # Fast installation is not supported
15297   enable_fast_install=no
15298 elif test "$shlibpath_overrides_runpath" = yes ||
15299      test "$enable_shared" = no; then
15300   # Fast installation is not necessary
15301   enable_fast_install=needless
15302 fi
15303
15304
15305 # The else clause should only fire when bootstrapping the
15306 # libtool distribution, otherwise you forgot to ship ltmain.sh
15307 # with your package, and you will get complaints that there are
15308 # no rules to generate ltmain.sh.
15309 if test -f "$ltmain"; then
15310   # See if we are running on zsh, and set the options which allow our commands through
15311   # without removal of \ escapes.
15312   if test -n "${ZSH_VERSION+set}" ; then
15313     setopt NO_GLOB_SUBST
15314   fi
15315   # Now quote all the things that may contain metacharacters while being
15316   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15317   # variables and quote the copies for generation of the libtool script.
15318   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15319     SED SHELL STRIP \
15320     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15321     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15322     deplibs_check_method reload_flag reload_cmds need_locks \
15323     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15324     lt_cv_sys_global_symbol_to_c_name_address \
15325     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15326     old_postinstall_cmds old_postuninstall_cmds \
15327     compiler_F77 \
15328     CC_F77 \
15329     LD_F77 \
15330     lt_prog_compiler_wl_F77 \
15331     lt_prog_compiler_pic_F77 \
15332     lt_prog_compiler_static_F77 \
15333     lt_prog_compiler_no_builtin_flag_F77 \
15334     export_dynamic_flag_spec_F77 \
15335     thread_safe_flag_spec_F77 \
15336     whole_archive_flag_spec_F77 \
15337     enable_shared_with_static_runtimes_F77 \
15338     old_archive_cmds_F77 \
15339     old_archive_from_new_cmds_F77 \
15340     predep_objects_F77 \
15341     postdep_objects_F77 \
15342     predeps_F77 \
15343     postdeps_F77 \
15344     compiler_lib_search_path_F77 \
15345     archive_cmds_F77 \
15346     archive_expsym_cmds_F77 \
15347     postinstall_cmds_F77 \
15348     postuninstall_cmds_F77 \
15349     old_archive_from_expsyms_cmds_F77 \
15350     allow_undefined_flag_F77 \
15351     no_undefined_flag_F77 \
15352     export_symbols_cmds_F77 \
15353     hardcode_libdir_flag_spec_F77 \
15354     hardcode_libdir_flag_spec_ld_F77 \
15355     hardcode_libdir_separator_F77 \
15356     hardcode_automatic_F77 \
15357     module_cmds_F77 \
15358     module_expsym_cmds_F77 \
15359     lt_cv_prog_compiler_c_o_F77 \
15360     exclude_expsyms_F77 \
15361     include_expsyms_F77; do
15362
15363     case $var in
15364     old_archive_cmds_F77 | \
15365     old_archive_from_new_cmds_F77 | \
15366     archive_cmds_F77 | \
15367     archive_expsym_cmds_F77 | \
15368     module_cmds_F77 | \
15369     module_expsym_cmds_F77 | \
15370     old_archive_from_expsyms_cmds_F77 | \
15371     export_symbols_cmds_F77 | \
15372     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15373     postinstall_cmds | postuninstall_cmds | \
15374     old_postinstall_cmds | old_postuninstall_cmds | \
15375     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15376       # Double-quote double-evaled strings.
15377       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15378       ;;
15379     *)
15380       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15381       ;;
15382     esac
15383   done
15384
15385   case $lt_echo in
15386   *'\$0 --fallback-echo"')
15387     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15388     ;;
15389   esac
15390
15391 cfgfile="$ofile"
15392
15393   cat <<__EOF__ >> "$cfgfile"
15394 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15395
15396 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15397
15398 # Shell to use when invoking shell scripts.
15399 SHELL=$lt_SHELL
15400
15401 # Whether or not to build shared libraries.
15402 build_libtool_libs=$enable_shared
15403
15404 # Whether or not to build static libraries.
15405 build_old_libs=$enable_static
15406
15407 # Whether or not to add -lc for building shared libraries.
15408 build_libtool_need_lc=$archive_cmds_need_lc_F77
15409
15410 # Whether or not to disallow shared libs when runtime libs are static
15411 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15412
15413 # Whether or not to optimize for fast installation.
15414 fast_install=$enable_fast_install
15415
15416 # The host system.
15417 host_alias=$host_alias
15418 host=$host
15419 host_os=$host_os
15420
15421 # The build system.
15422 build_alias=$build_alias
15423 build=$build
15424 build_os=$build_os
15425
15426 # An echo program that does not interpret backslashes.
15427 echo=$lt_echo
15428
15429 # The archiver.
15430 AR=$lt_AR
15431 AR_FLAGS=$lt_AR_FLAGS
15432
15433 # A C compiler.
15434 LTCC=$lt_LTCC
15435
15436 # LTCC compiler flags.
15437 LTCFLAGS=$lt_LTCFLAGS
15438
15439 # A language-specific compiler.
15440 CC=$lt_compiler_F77
15441
15442 # Is the compiler the GNU C compiler?
15443 with_gcc=$GCC_F77
15444
15445 # An ERE matcher.
15446 EGREP=$lt_EGREP
15447
15448 # The linker used to build libraries.
15449 LD=$lt_LD_F77
15450
15451 # Whether we need hard or soft links.
15452 LN_S=$lt_LN_S
15453
15454 # A BSD-compatible nm program.
15455 NM=$lt_NM
15456
15457 # A symbol stripping program
15458 STRIP=$lt_STRIP
15459
15460 # Used to examine libraries when file_magic_cmd begins "file"
15461 MAGIC_CMD=$MAGIC_CMD
15462
15463 # Used on cygwin: DLL creation program.
15464 DLLTOOL="$DLLTOOL"
15465
15466 # Used on cygwin: object dumper.
15467 OBJDUMP="$OBJDUMP"
15468
15469 # Used on cygwin: assembler.
15470 AS="$AS"
15471
15472 # The name of the directory that contains temporary libtool files.
15473 objdir=$objdir
15474
15475 # How to create reloadable object files.
15476 reload_flag=$lt_reload_flag
15477 reload_cmds=$lt_reload_cmds
15478
15479 # How to pass a linker flag through the compiler.
15480 wl=$lt_lt_prog_compiler_wl_F77
15481
15482 # Object file suffix (normally "o").
15483 objext="$ac_objext"
15484
15485 # Old archive suffix (normally "a").
15486 libext="$libext"
15487
15488 # Shared library suffix (normally ".so").
15489 shrext_cmds='$shrext_cmds'
15490
15491 # Executable file suffix (normally "").
15492 exeext="$exeext"
15493
15494 # Additional compiler flags for building library objects.
15495 pic_flag=$lt_lt_prog_compiler_pic_F77
15496 pic_mode=$pic_mode
15497
15498 # What is the maximum length of a command?
15499 max_cmd_len=$lt_cv_sys_max_cmd_len
15500
15501 # Does compiler simultaneously support -c and -o options?
15502 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15503
15504 # Must we lock files when doing compilation?
15505 need_locks=$lt_need_locks
15506
15507 # Do we need the lib prefix for modules?
15508 need_lib_prefix=$need_lib_prefix
15509
15510 # Do we need a version for libraries?
15511 need_version=$need_version
15512
15513 # Whether dlopen is supported.
15514 dlopen_support=$enable_dlopen
15515
15516 # Whether dlopen of programs is supported.
15517 dlopen_self=$enable_dlopen_self
15518
15519 # Whether dlopen of statically linked programs is supported.
15520 dlopen_self_static=$enable_dlopen_self_static
15521
15522 # Compiler flag to prevent dynamic linking.
15523 link_static_flag=$lt_lt_prog_compiler_static_F77
15524
15525 # Compiler flag to turn off builtin functions.
15526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15527
15528 # Compiler flag to allow reflexive dlopens.
15529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15530
15531 # Compiler flag to generate shared objects directly from archives.
15532 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15533
15534 # Compiler flag to generate thread-safe objects.
15535 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15536
15537 # Library versioning type.
15538 version_type=$version_type
15539
15540 # Format of library name prefix.
15541 libname_spec=$lt_libname_spec
15542
15543 # List of archive names.  First name is the real one, the rest are links.
15544 # The last name is the one that the linker finds with -lNAME.
15545 library_names_spec=$lt_library_names_spec
15546
15547 # The coded name of the library, if different from the real name.
15548 soname_spec=$lt_soname_spec
15549
15550 # Commands used to build and install an old-style archive.
15551 RANLIB=$lt_RANLIB
15552 old_archive_cmds=$lt_old_archive_cmds_F77
15553 old_postinstall_cmds=$lt_old_postinstall_cmds
15554 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15555
15556 # Create an old-style archive from a shared archive.
15557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15558
15559 # Create a temporary old-style archive to link instead of a shared archive.
15560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15561
15562 # Commands used to build and install a shared archive.
15563 archive_cmds=$lt_archive_cmds_F77
15564 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15565 postinstall_cmds=$lt_postinstall_cmds
15566 postuninstall_cmds=$lt_postuninstall_cmds
15567
15568 # Commands used to build a loadable module (assumed same as above if empty)
15569 module_cmds=$lt_module_cmds_F77
15570 module_expsym_cmds=$lt_module_expsym_cmds_F77
15571
15572 # Commands to strip libraries.
15573 old_striplib=$lt_old_striplib
15574 striplib=$lt_striplib
15575
15576 # Dependencies to place before the objects being linked to create a
15577 # shared library.
15578 predep_objects=$lt_predep_objects_F77
15579
15580 # Dependencies to place after the objects being linked to create a
15581 # shared library.
15582 postdep_objects=$lt_postdep_objects_F77
15583
15584 # Dependencies to place before the objects being linked to create a
15585 # shared library.
15586 predeps=$lt_predeps_F77
15587
15588 # Dependencies to place after the objects being linked to create a
15589 # shared library.
15590 postdeps=$lt_postdeps_F77
15591
15592 # The library search path used internally by the compiler when linking
15593 # a shared library.
15594 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15595
15596 # Method to check whether dependent libraries are shared objects.
15597 deplibs_check_method=$lt_deplibs_check_method
15598
15599 # Command to use when deplibs_check_method == file_magic.
15600 file_magic_cmd=$lt_file_magic_cmd
15601
15602 # Flag that allows shared libraries with undefined symbols to be built.
15603 allow_undefined_flag=$lt_allow_undefined_flag_F77
15604
15605 # Flag that forces no undefined symbols.
15606 no_undefined_flag=$lt_no_undefined_flag_F77
15607
15608 # Commands used to finish a libtool library installation in a directory.
15609 finish_cmds=$lt_finish_cmds
15610
15611 # Same as above, but a single script fragment to be evaled but not shown.
15612 finish_eval=$lt_finish_eval
15613
15614 # Take the output of nm and produce a listing of raw symbols and C names.
15615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15616
15617 # Transform the output of nm in a proper C declaration
15618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15619
15620 # Transform the output of nm in a C name address pair
15621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15622
15623 # This is the shared library runtime path variable.
15624 runpath_var=$runpath_var
15625
15626 # This is the shared library path variable.
15627 shlibpath_var=$shlibpath_var
15628
15629 # Is shlibpath searched before the hard-coded library search path?
15630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15631
15632 # How to hardcode a shared library path into an executable.
15633 hardcode_action=$hardcode_action_F77
15634
15635 # Whether we should hardcode library paths into libraries.
15636 hardcode_into_libs=$hardcode_into_libs
15637
15638 # Flag to hardcode \$libdir into a binary during linking.
15639 # This must work even if \$libdir does not exist.
15640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15641
15642 # If ld is used when linking, flag to hardcode \$libdir into
15643 # a binary during linking. This must work even if \$libdir does
15644 # not exist.
15645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15646
15647 # Whether we need a single -rpath flag with a separated argument.
15648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15649
15650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15651 # resulting binary.
15652 hardcode_direct=$hardcode_direct_F77
15653
15654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15655 # resulting binary.
15656 hardcode_minus_L=$hardcode_minus_L_F77
15657
15658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15659 # the resulting binary.
15660 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15661
15662 # Set to yes if building a shared library automatically hardcodes DIR into the library
15663 # and all subsequent libraries and executables linked against it.
15664 hardcode_automatic=$hardcode_automatic_F77
15665
15666 # Variables whose values should be saved in libtool wrapper scripts and
15667 # restored at relink time.
15668 variables_saved_for_relink="$variables_saved_for_relink"
15669
15670 # Whether libtool must link a program against all its dependency libraries.
15671 link_all_deplibs=$link_all_deplibs_F77
15672
15673 # Compile-time system search path for libraries
15674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15675
15676 # Run-time system search path for libraries
15677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15678
15679 # Fix the shell variable \$srcfile for the compiler.
15680 fix_srcfile_path="$fix_srcfile_path_F77"
15681
15682 # Set to yes if exported symbols are required.
15683 always_export_symbols=$always_export_symbols_F77
15684
15685 # The commands to list exported symbols.
15686 export_symbols_cmds=$lt_export_symbols_cmds_F77
15687
15688 # The commands to extract the exported symbol list from a shared archive.
15689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15690
15691 # Symbols that should not be listed in the preloaded symbols.
15692 exclude_expsyms=$lt_exclude_expsyms_F77
15693
15694 # Symbols that must always be exported.
15695 include_expsyms=$lt_include_expsyms_F77
15696
15697 # ### END LIBTOOL TAG CONFIG: $tagname
15698
15699 __EOF__
15700
15701
15702 else
15703   # If there is no Makefile yet, we rely on a make rule to execute
15704   # `config.status --recheck' to rerun these tests and create the
15705   # libtool script then.
15706   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15707   if test -f "$ltmain_in"; then
15708     test -f Makefile && make "$ltmain"
15709   fi
15710 fi
15711
15712
15713 ac_ext=c
15714 ac_cpp='$CPP $CPPFLAGS'
15715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15718
15719 CC="$lt_save_CC"
15720
15721         else
15722           tagname=""
15723         fi
15724         ;;
15725
15726       GCJ)
15727         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15728
15729
15730
15731 # Source file extension for Java test sources.
15732 ac_ext=java
15733
15734 # Object file extension for compiled Java test sources.
15735 objext=o
15736 objext_GCJ=$objext
15737
15738 # Code to be used in simple compile tests
15739 lt_simple_compile_test_code="class foo {}\n"
15740
15741 # Code to be used in simple link tests
15742 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15743
15744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15745
15746 # If no C compiler was specified, use CC.
15747 LTCC=${LTCC-"$CC"}
15748
15749 # If no C compiler flags were specified, use CFLAGS.
15750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15751
15752 # Allow CC to be a program name with arguments.
15753 compiler=$CC
15754
15755
15756 # save warnings/boilerplate of simple test code
15757 ac_outfile=conftest.$ac_objext
15758 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15759 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15760 _lt_compiler_boilerplate=`cat conftest.err`
15761 $rm conftest*
15762
15763 ac_outfile=conftest.$ac_objext
15764 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15765 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15766 _lt_linker_boilerplate=`cat conftest.err`
15767 $rm conftest*
15768
15769
15770 # Allow CC to be a program name with arguments.
15771 lt_save_CC="$CC"
15772 CC=${GCJ-"gcj"}
15773 compiler=$CC
15774 compiler_GCJ=$CC
15775 for cc_temp in $compiler""; do
15776   case $cc_temp in
15777     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15778     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15779     \-*) ;;
15780     *) break;;
15781   esac
15782 done
15783 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15784
15785
15786 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15787 archive_cmds_need_lc_GCJ=no
15788
15789 old_archive_cmds_GCJ=$old_archive_cmds
15790
15791
15792 lt_prog_compiler_no_builtin_flag_GCJ=
15793
15794 if test "$GCC" = yes; then
15795   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15796
15797
15798 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15799 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15800 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15801   echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803   lt_cv_prog_compiler_rtti_exceptions=no
15804   ac_outfile=conftest.$ac_objext
15805    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15806    lt_compiler_flag="-fno-rtti -fno-exceptions"
15807    # Insert the option either (1) after the last *FLAGS variable, or
15808    # (2) before a word containing "conftest.", or (3) at the end.
15809    # Note that $ac_compile itself does not contain backslashes and begins
15810    # with a dollar sign (not a hyphen), so the echo should work correctly.
15811    # The option is referenced via a variable to avoid confusing sed.
15812    lt_compile=`echo "$ac_compile" | $SED \
15813    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15815    -e 's:$: $lt_compiler_flag:'`
15816    (eval echo "\"\$as_me:15816: $lt_compile\"" >&5)
15817    (eval "$lt_compile" 2>conftest.err)
15818    ac_status=$?
15819    cat conftest.err >&5
15820    echo "$as_me:15820: \$? = $ac_status" >&5
15821    if (exit $ac_status) && test -s "$ac_outfile"; then
15822      # The compiler can only warn and ignore the option if not recognized
15823      # So say no if there are warnings other than the usual output.
15824      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15825      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15826      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15827        lt_cv_prog_compiler_rtti_exceptions=yes
15828      fi
15829    fi
15830    $rm conftest*
15831
15832 fi
15833 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15834 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15835
15836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15837     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15838 else
15839     :
15840 fi
15841
15842 fi
15843
15844 lt_prog_compiler_wl_GCJ=
15845 lt_prog_compiler_pic_GCJ=
15846 lt_prog_compiler_static_GCJ=
15847
15848 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15850
15851   if test "$GCC" = yes; then
15852     lt_prog_compiler_wl_GCJ='-Wl,'
15853     lt_prog_compiler_static_GCJ='-static'
15854
15855     case $host_os in
15856       aix*)
15857       # All AIX code is PIC.
15858       if test "$host_cpu" = ia64; then
15859         # AIX 5 now supports IA64 processor
15860         lt_prog_compiler_static_GCJ='-Bstatic'
15861       fi
15862       ;;
15863
15864     amigaos*)
15865       # FIXME: we need at least 68020 code to build shared libraries, but
15866       # adding the `-m68020' flag to GCC prevents building anything better,
15867       # like `-m68040'.
15868       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15869       ;;
15870
15871     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15872       # PIC is the default for these OSes.
15873       ;;
15874
15875     mingw* | pw32* | os2*)
15876       # This hack is so that the source file can tell whether it is being
15877       # built for inclusion in a dll (and should export symbols for example).
15878       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15879       ;;
15880
15881     darwin* | rhapsody*)
15882       # PIC is the default on this platform
15883       # Common symbols not allowed in MH_DYLIB files
15884       lt_prog_compiler_pic_GCJ='-fno-common'
15885       ;;
15886
15887     interix3*)
15888       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15889       # Instead, we relocate shared libraries at runtime.
15890       ;;
15891
15892     msdosdjgpp*)
15893       # Just because we use GCC doesn't mean we suddenly get shared libraries
15894       # on systems that don't support them.
15895       lt_prog_compiler_can_build_shared_GCJ=no
15896       enable_shared=no
15897       ;;
15898
15899     sysv4*MP*)
15900       if test -d /usr/nec; then
15901         lt_prog_compiler_pic_GCJ=-Kconform_pic
15902       fi
15903       ;;
15904
15905     hpux*)
15906       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15907       # not for PA HP-UX.
15908       case $host_cpu in
15909       hppa*64*|ia64*)
15910         # +Z the default
15911         ;;
15912       *)
15913         lt_prog_compiler_pic_GCJ='-fPIC'
15914         ;;
15915       esac
15916       ;;
15917
15918     *)
15919       lt_prog_compiler_pic_GCJ='-fPIC'
15920       ;;
15921     esac
15922   else
15923     # PORTME Check for flag to pass linker flags through the system compiler.
15924     case $host_os in
15925     aix*)
15926       lt_prog_compiler_wl_GCJ='-Wl,'
15927       if test "$host_cpu" = ia64; then
15928         # AIX 5 now supports IA64 processor
15929         lt_prog_compiler_static_GCJ='-Bstatic'
15930       else
15931         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15932       fi
15933       ;;
15934       darwin*)
15935         # PIC is the default on this platform
15936         # Common symbols not allowed in MH_DYLIB files
15937        case $cc_basename in
15938          xlc*)
15939          lt_prog_compiler_pic_GCJ='-qnocommon'
15940          lt_prog_compiler_wl_GCJ='-Wl,'
15941          ;;
15942        esac
15943        ;;
15944
15945     mingw* | pw32* | os2*)
15946       # This hack is so that the source file can tell whether it is being
15947       # built for inclusion in a dll (and should export symbols for example).
15948       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15949       ;;
15950
15951     hpux9* | hpux10* | hpux11*)
15952       lt_prog_compiler_wl_GCJ='-Wl,'
15953       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15954       # not for PA HP-UX.
15955       case $host_cpu in
15956       hppa*64*|ia64*)
15957         # +Z the default
15958         ;;
15959       *)
15960         lt_prog_compiler_pic_GCJ='+Z'
15961         ;;
15962       esac
15963       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15964       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15965       ;;
15966
15967     irix5* | irix6* | nonstopux*)
15968       lt_prog_compiler_wl_GCJ='-Wl,'
15969       # PIC (with -KPIC) is the default.
15970       lt_prog_compiler_static_GCJ='-non_shared'
15971       ;;
15972
15973     newsos6)
15974       lt_prog_compiler_pic_GCJ='-KPIC'
15975       lt_prog_compiler_static_GCJ='-Bstatic'
15976       ;;
15977
15978     linux*)
15979       case $cc_basename in
15980       icc* | ecc*)
15981         lt_prog_compiler_wl_GCJ='-Wl,'
15982         lt_prog_compiler_pic_GCJ='-KPIC'
15983         lt_prog_compiler_static_GCJ='-static'
15984         ;;
15985       pgcc* | pgf77* | pgf90* | pgf95*)
15986         # Portland Group compilers (*not* the Pentium gcc compiler,
15987         # which looks to be a dead project)
15988         lt_prog_compiler_wl_GCJ='-Wl,'
15989         lt_prog_compiler_pic_GCJ='-fpic'
15990         lt_prog_compiler_static_GCJ='-Bstatic'
15991         ;;
15992       ccc*)
15993         lt_prog_compiler_wl_GCJ='-Wl,'
15994         # All Alpha code is PIC.
15995         lt_prog_compiler_static_GCJ='-non_shared'
15996         ;;
15997       esac
15998       ;;
15999
16000     osf3* | osf4* | osf5*)
16001       lt_prog_compiler_wl_GCJ='-Wl,'
16002       # All OSF/1 code is PIC.
16003       lt_prog_compiler_static_GCJ='-non_shared'
16004       ;;
16005
16006     solaris*)
16007       lt_prog_compiler_pic_GCJ='-KPIC'
16008       lt_prog_compiler_static_GCJ='-Bstatic'
16009       case $cc_basename in
16010       f77* | f90* | f95*)
16011         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16012       *)
16013         lt_prog_compiler_wl_GCJ='-Wl,';;
16014       esac
16015       ;;
16016
16017     sunos4*)
16018       lt_prog_compiler_wl_GCJ='-Qoption ld '
16019       lt_prog_compiler_pic_GCJ='-PIC'
16020       lt_prog_compiler_static_GCJ='-Bstatic'
16021       ;;
16022
16023     sysv4 | sysv4.2uw2* | sysv4.3*)
16024       lt_prog_compiler_wl_GCJ='-Wl,'
16025       lt_prog_compiler_pic_GCJ='-KPIC'
16026       lt_prog_compiler_static_GCJ='-Bstatic'
16027       ;;
16028
16029     sysv4*MP*)
16030       if test -d /usr/nec ;then
16031         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16032         lt_prog_compiler_static_GCJ='-Bstatic'
16033       fi
16034       ;;
16035
16036     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16037       lt_prog_compiler_wl_GCJ='-Wl,'
16038       lt_prog_compiler_pic_GCJ='-KPIC'
16039       lt_prog_compiler_static_GCJ='-Bstatic'
16040       ;;
16041
16042     unicos*)
16043       lt_prog_compiler_wl_GCJ='-Wl,'
16044       lt_prog_compiler_can_build_shared_GCJ=no
16045       ;;
16046
16047     uts4*)
16048       lt_prog_compiler_pic_GCJ='-pic'
16049       lt_prog_compiler_static_GCJ='-Bstatic'
16050       ;;
16051
16052     *)
16053       lt_prog_compiler_can_build_shared_GCJ=no
16054       ;;
16055     esac
16056   fi
16057
16058 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16059 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16060
16061 #
16062 # Check to make sure the PIC flag actually works.
16063 #
16064 if test -n "$lt_prog_compiler_pic_GCJ"; then
16065
16066 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16067 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16068 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16069   echo $ECHO_N "(cached) $ECHO_C" >&6
16070 else
16071   lt_prog_compiler_pic_works_GCJ=no
16072   ac_outfile=conftest.$ac_objext
16073    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16074    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16075    # Insert the option either (1) after the last *FLAGS variable, or
16076    # (2) before a word containing "conftest.", or (3) at the end.
16077    # Note that $ac_compile itself does not contain backslashes and begins
16078    # with a dollar sign (not a hyphen), so the echo should work correctly.
16079    # The option is referenced via a variable to avoid confusing sed.
16080    lt_compile=`echo "$ac_compile" | $SED \
16081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083    -e 's:$: $lt_compiler_flag:'`
16084    (eval echo "\"\$as_me:16084: $lt_compile\"" >&5)
16085    (eval "$lt_compile" 2>conftest.err)
16086    ac_status=$?
16087    cat conftest.err >&5
16088    echo "$as_me:16088: \$? = $ac_status" >&5
16089    if (exit $ac_status) && test -s "$ac_outfile"; then
16090      # The compiler can only warn and ignore the option if not recognized
16091      # So say no if there are warnings other than the usual output.
16092      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16093      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16094      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16095        lt_prog_compiler_pic_works_GCJ=yes
16096      fi
16097    fi
16098    $rm conftest*
16099
16100 fi
16101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16102 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16103
16104 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16105     case $lt_prog_compiler_pic_GCJ in
16106      "" | " "*) ;;
16107      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16108      esac
16109 else
16110     lt_prog_compiler_pic_GCJ=
16111      lt_prog_compiler_can_build_shared_GCJ=no
16112 fi
16113
16114 fi
16115 case $host_os in
16116   # For platforms which do not support PIC, -DPIC is meaningless:
16117   *djgpp*)
16118     lt_prog_compiler_pic_GCJ=
16119     ;;
16120   *)
16121     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16122     ;;
16123 esac
16124
16125 #
16126 # Check to make sure the static flag actually works.
16127 #
16128 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16129 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16130 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16131 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16132   echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134   lt_prog_compiler_static_works_GCJ=no
16135    save_LDFLAGS="$LDFLAGS"
16136    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16137    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16138    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16139      # The linker can only warn and ignore the option if not recognized
16140      # So say no if there are warnings
16141      if test -s conftest.err; then
16142        # Append any errors to the config.log.
16143        cat conftest.err 1>&5
16144        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16145        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16146        if diff conftest.exp conftest.er2 >/dev/null; then
16147          lt_prog_compiler_static_works_GCJ=yes
16148        fi
16149      else
16150        lt_prog_compiler_static_works_GCJ=yes
16151      fi
16152    fi
16153    $rm conftest*
16154    LDFLAGS="$save_LDFLAGS"
16155
16156 fi
16157 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16158 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16159
16160 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16161     :
16162 else
16163     lt_prog_compiler_static_GCJ=
16164 fi
16165
16166
16167 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16168 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16169 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16170   echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172   lt_cv_prog_compiler_c_o_GCJ=no
16173    $rm -r conftest 2>/dev/null
16174    mkdir conftest
16175    cd conftest
16176    mkdir out
16177    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16178
16179    lt_compiler_flag="-o out/conftest2.$ac_objext"
16180    # Insert the option either (1) after the last *FLAGS variable, or
16181    # (2) before a word containing "conftest.", or (3) at the end.
16182    # Note that $ac_compile itself does not contain backslashes and begins
16183    # with a dollar sign (not a hyphen), so the echo should work correctly.
16184    lt_compile=`echo "$ac_compile" | $SED \
16185    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16186    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16187    -e 's:$: $lt_compiler_flag:'`
16188    (eval echo "\"\$as_me:16188: $lt_compile\"" >&5)
16189    (eval "$lt_compile" 2>out/conftest.err)
16190    ac_status=$?
16191    cat out/conftest.err >&5
16192    echo "$as_me:16192: \$? = $ac_status" >&5
16193    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16194    then
16195      # The compiler can only warn and ignore the option if not recognized
16196      # So say no if there are warnings
16197      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16198      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16199      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16200        lt_cv_prog_compiler_c_o_GCJ=yes
16201      fi
16202    fi
16203    chmod u+w . 2>&5
16204    $rm conftest*
16205    # SGI C++ compiler will create directory out/ii_files/ for
16206    # template instantiation
16207    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16208    $rm out/* && rmdir out
16209    cd ..
16210    rmdir conftest
16211    $rm conftest*
16212
16213 fi
16214 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16215 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16216
16217
16218 hard_links="nottested"
16219 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16220   # do not overwrite the value of need_locks provided by the user
16221   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16222 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16223   hard_links=yes
16224   $rm conftest*
16225   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16226   touch conftest.a
16227   ln conftest.a conftest.b 2>&5 || hard_links=no
16228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16229   echo "$as_me:$LINENO: result: $hard_links" >&5
16230 echo "${ECHO_T}$hard_links" >&6
16231   if test "$hard_links" = no; then
16232     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16233 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16234     need_locks=warn
16235   fi
16236 else
16237   need_locks=no
16238 fi
16239
16240 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16241 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16242
16243   runpath_var=
16244   allow_undefined_flag_GCJ=
16245   enable_shared_with_static_runtimes_GCJ=no
16246   archive_cmds_GCJ=
16247   archive_expsym_cmds_GCJ=
16248   old_archive_From_new_cmds_GCJ=
16249   old_archive_from_expsyms_cmds_GCJ=
16250   export_dynamic_flag_spec_GCJ=
16251   whole_archive_flag_spec_GCJ=
16252   thread_safe_flag_spec_GCJ=
16253   hardcode_libdir_flag_spec_GCJ=
16254   hardcode_libdir_flag_spec_ld_GCJ=
16255   hardcode_libdir_separator_GCJ=
16256   hardcode_direct_GCJ=no
16257   hardcode_minus_L_GCJ=no
16258   hardcode_shlibpath_var_GCJ=unsupported
16259   link_all_deplibs_GCJ=unknown
16260   hardcode_automatic_GCJ=no
16261   module_cmds_GCJ=
16262   module_expsym_cmds_GCJ=
16263   always_export_symbols_GCJ=no
16264   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16265   # include_expsyms should be a list of space-separated symbols to be *always*
16266   # included in the symbol list
16267   include_expsyms_GCJ=
16268   # exclude_expsyms can be an extended regexp of symbols to exclude
16269   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16270   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16271   # as well as any symbol that contains `d'.
16272   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16273   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16274   # platforms (ab)use it in PIC code, but their linkers get confused if
16275   # the symbol is explicitly referenced.  Since portable code cannot
16276   # rely on this symbol name, it's probably fine to never include it in
16277   # preloaded symbol tables.
16278   extract_expsyms_cmds=
16279   # Just being paranoid about ensuring that cc_basename is set.
16280   for cc_temp in $compiler""; do
16281   case $cc_temp in
16282     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16283     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16284     \-*) ;;
16285     *) break;;
16286   esac
16287 done
16288 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16289
16290   case $host_os in
16291   cygwin* | mingw* | pw32*)
16292     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16293     # When not using gcc, we currently assume that we are using
16294     # Microsoft Visual C++.
16295     if test "$GCC" != yes; then
16296       with_gnu_ld=no
16297     fi
16298     ;;
16299   interix*)
16300     # we just hope/assume this is gcc and not c89 (= MSVC++)
16301     with_gnu_ld=yes
16302     ;;
16303   openbsd*)
16304     with_gnu_ld=no
16305     ;;
16306   esac
16307
16308   ld_shlibs_GCJ=yes
16309   if test "$with_gnu_ld" = yes; then
16310     # If archive_cmds runs LD, not CC, wlarc should be empty
16311     wlarc='${wl}'
16312
16313     # Set some defaults for GNU ld with shared library support. These
16314     # are reset later if shared libraries are not supported. Putting them
16315     # here allows them to be overridden if necessary.
16316     runpath_var=LD_RUN_PATH
16317     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16318     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16319     # ancient GNU ld didn't support --whole-archive et. al.
16320     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16321         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16322       else
16323         whole_archive_flag_spec_GCJ=
16324     fi
16325     supports_anon_versioning=no
16326     case `$LD -v 2>/dev/null` in
16327       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16328       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16329       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16330       *\ 2.11.*) ;; # other 2.11 versions
16331       *) supports_anon_versioning=yes ;;
16332     esac
16333
16334     # See if GNU ld supports shared libraries.
16335     case $host_os in
16336     aix3* | aix4* | aix5*)
16337       # On AIX/PPC, the GNU linker is very broken
16338       if test "$host_cpu" != ia64; then
16339         ld_shlibs_GCJ=no
16340         cat <<EOF 1>&2
16341
16342 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16343 *** to be unable to reliably create shared libraries on AIX.
16344 *** Therefore, libtool is disabling shared libraries support.  If you
16345 *** really care for shared libraries, you may want to modify your PATH
16346 *** so that a non-GNU linker is found, and then restart.
16347
16348 EOF
16349       fi
16350       ;;
16351
16352     amigaos*)
16353       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)'
16354       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16355       hardcode_minus_L_GCJ=yes
16356
16357       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16358       # that the semantics of dynamic libraries on AmigaOS, at least up
16359       # to version 4, is to share data among multiple programs linked
16360       # with the same dynamic library.  Since this doesn't match the
16361       # behavior of shared libraries on other platforms, we can't use
16362       # them.
16363       ld_shlibs_GCJ=no
16364       ;;
16365
16366     beos*)
16367       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16368         allow_undefined_flag_GCJ=unsupported
16369         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16370         # support --undefined.  This deserves some investigation.  FIXME
16371         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16372       else
16373         ld_shlibs_GCJ=no
16374       fi
16375       ;;
16376
16377     cygwin* | mingw* | pw32*)
16378       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16379       # as there is no search path for DLLs.
16380       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16381       allow_undefined_flag_GCJ=unsupported
16382       always_export_symbols_GCJ=no
16383       enable_shared_with_static_runtimes_GCJ=yes
16384       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16385
16386       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16387         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16388         # If the export-symbols file already is a .def file (1st line
16389         # is EXPORTS), use it as is; otherwise, prepend...
16390         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16391           cp $export_symbols $output_objdir/$soname.def;
16392         else
16393           echo EXPORTS > $output_objdir/$soname.def;
16394           cat $export_symbols >> $output_objdir/$soname.def;
16395         fi~
16396         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16397       else
16398         ld_shlibs_GCJ=no
16399       fi
16400       ;;
16401
16402     interix3*)
16403       hardcode_direct_GCJ=no
16404       hardcode_shlibpath_var_GCJ=no
16405       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16406       export_dynamic_flag_spec_GCJ='${wl}-E'
16407       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16408       # Instead, shared libraries are loaded at an image base (0x10000000 by
16409       # default) and relocated if they conflict, which is a slow very memory
16410       # consuming and fragmenting process.  To avoid this, we pick a random,
16411       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16412       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16413       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16414       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16415       ;;
16416
16417     linux*)
16418       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16419         tmp_addflag=
16420         case $cc_basename,$host_cpu in
16421         pgcc*)                          # Portland Group C compiler
16422           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16423           tmp_addflag=' $pic_flag'
16424           ;;
16425         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16426           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16427           tmp_addflag=' $pic_flag -Mnomain' ;;
16428         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16429           tmp_addflag=' -i_dynamic' ;;
16430         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16431           tmp_addflag=' -i_dynamic -nofor_main' ;;
16432         ifc* | ifort*)                  # Intel Fortran compiler
16433           tmp_addflag=' -nofor_main' ;;
16434         esac
16435         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16436
16437         if test $supports_anon_versioning = yes; then
16438           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16439   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16440   $echo "local: *; };" >> $output_objdir/$libname.ver~
16441           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16442         fi
16443         link_all_deplibs_GCJ=no
16444       else
16445         ld_shlibs_GCJ=no
16446       fi
16447       ;;
16448
16449     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16450       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16451         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16452         wlarc=
16453       else
16454         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16455         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16456       fi
16457       ;;
16458
16459     solaris*)
16460       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16461         ld_shlibs_GCJ=no
16462         cat <<EOF 1>&2
16463
16464 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16465 *** create shared libraries on Solaris systems.  Therefore, libtool
16466 *** is disabling shared libraries support.  We urge you to upgrade GNU
16467 *** binutils to release 2.9.1 or newer.  Another option is to modify
16468 *** your PATH or compiler configuration so that the native linker is
16469 *** used, and then restart.
16470
16471 EOF
16472       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16473         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16474         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16475       else
16476         ld_shlibs_GCJ=no
16477       fi
16478       ;;
16479
16480     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16481       case `$LD -v 2>&1` in
16482         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16483         ld_shlibs_GCJ=no
16484         cat <<_LT_EOF 1>&2
16485
16486 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16487 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16488 *** is disabling shared libraries support.  We urge you to upgrade GNU
16489 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16490 *** your PATH or compiler configuration so that the native linker is
16491 *** used, and then restart.
16492
16493 _LT_EOF
16494         ;;
16495         *)
16496           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16497             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16498             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16499             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16500           else
16501             ld_shlibs_GCJ=no
16502           fi
16503         ;;
16504       esac
16505       ;;
16506
16507     sunos4*)
16508       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16509       wlarc=
16510       hardcode_direct_GCJ=yes
16511       hardcode_shlibpath_var_GCJ=no
16512       ;;
16513
16514     *)
16515       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16516         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16517         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16518       else
16519         ld_shlibs_GCJ=no
16520       fi
16521       ;;
16522     esac
16523
16524     if test "$ld_shlibs_GCJ" = no; then
16525       runpath_var=
16526       hardcode_libdir_flag_spec_GCJ=
16527       export_dynamic_flag_spec_GCJ=
16528       whole_archive_flag_spec_GCJ=
16529     fi
16530   else
16531     # PORTME fill in a description of your system's linker (not GNU ld)
16532     case $host_os in
16533     aix3*)
16534       allow_undefined_flag_GCJ=unsupported
16535       always_export_symbols_GCJ=yes
16536       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'
16537       # Note: this linker hardcodes the directories in LIBPATH if there
16538       # are no directories specified by -L.
16539       hardcode_minus_L_GCJ=yes
16540       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16541         # Neither direct hardcoding nor static linking is supported with a
16542         # broken collect2.
16543         hardcode_direct_GCJ=unsupported
16544       fi
16545       ;;
16546
16547     aix4* | aix5*)
16548       if test "$host_cpu" = ia64; then
16549         # On IA64, the linker does run time linking by default, so we don't
16550         # have to do anything special.
16551         aix_use_runtimelinking=no
16552         exp_sym_flag='-Bexport'
16553         no_entry_flag=""
16554       else
16555         # If we're using GNU nm, then we don't want the "-C" option.
16556         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16557         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16558           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'
16559         else
16560           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'
16561         fi
16562         aix_use_runtimelinking=no
16563
16564         # Test if we are trying to use run time linking or normal
16565         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16566         # need to do runtime linking.
16567         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16568           for ld_flag in $LDFLAGS; do
16569           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16570             aix_use_runtimelinking=yes
16571             break
16572           fi
16573           done
16574           ;;
16575         esac
16576
16577         exp_sym_flag='-bexport'
16578         no_entry_flag='-bnoentry'
16579       fi
16580
16581       # When large executables or shared objects are built, AIX ld can
16582       # have problems creating the table of contents.  If linking a library
16583       # or program results in "error TOC overflow" add -mminimal-toc to
16584       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16585       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16586
16587       archive_cmds_GCJ=''
16588       hardcode_direct_GCJ=yes
16589       hardcode_libdir_separator_GCJ=':'
16590       link_all_deplibs_GCJ=yes
16591
16592       if test "$GCC" = yes; then
16593         case $host_os in aix4.[012]|aix4.[012].*)
16594         # We only want to do this on AIX 4.2 and lower, the check
16595         # below for broken collect2 doesn't work under 4.3+
16596           collect2name=`${CC} -print-prog-name=collect2`
16597           if test -f "$collect2name" && \
16598            strings "$collect2name" | grep resolve_lib_name >/dev/null
16599           then
16600           # We have reworked collect2
16601           hardcode_direct_GCJ=yes
16602           else
16603           # We have old collect2
16604           hardcode_direct_GCJ=unsupported
16605           # It fails to find uninstalled libraries when the uninstalled
16606           # path is not listed in the libpath.  Setting hardcode_minus_L
16607           # to unsupported forces relinking
16608           hardcode_minus_L_GCJ=yes
16609           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16610           hardcode_libdir_separator_GCJ=
16611           fi
16612           ;;
16613         esac
16614         shared_flag='-shared'
16615         if test "$aix_use_runtimelinking" = yes; then
16616           shared_flag="$shared_flag "'${wl}-G'
16617         fi
16618       else
16619         # not using gcc
16620         if test "$host_cpu" = ia64; then
16621         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16622         # chokes on -Wl,-G. The following line is correct:
16623           shared_flag='-G'
16624         else
16625           if test "$aix_use_runtimelinking" = yes; then
16626             shared_flag='${wl}-G'
16627           else
16628             shared_flag='${wl}-bM:SRE'
16629           fi
16630         fi
16631       fi
16632
16633       # It seems that -bexpall does not export symbols beginning with
16634       # underscore (_), so it is better to generate a list of symbols to export.
16635       always_export_symbols_GCJ=yes
16636       if test "$aix_use_runtimelinking" = yes; then
16637         # Warning - without using the other runtime loading flags (-brtl),
16638         # -berok will link without error, but may produce a broken library.
16639         allow_undefined_flag_GCJ='-berok'
16640        # Determine the default libpath from the value encoded in an empty executable.
16641        cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h.  */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h.  */
16647
16648 int
16649 main ()
16650 {
16651
16652   ;
16653   return 0;
16654 }
16655 _ACEOF
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16658   (eval $ac_link) 2>conftest.er1
16659   ac_status=$?
16660   grep -v '^ *+' conftest.er1 >conftest.err
16661   rm -f conftest.er1
16662   cat conftest.err >&5
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); } &&
16665          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667   (eval $ac_try) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; } &&
16671          { ac_try='test -s conftest$ac_exeext'
16672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673   (eval $ac_try) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; }; then
16677
16678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16679 }'`
16680 # Check for a 64-bit object if we didn't find anything.
16681 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; }
16682 }'`; fi
16683 else
16684   echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16686
16687 fi
16688 rm -f conftest.err conftest.$ac_objext \
16689       conftest$ac_exeext conftest.$ac_ext
16690 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16691
16692        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16693         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16694        else
16695         if test "$host_cpu" = ia64; then
16696           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16697           allow_undefined_flag_GCJ="-z nodefs"
16698           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16699         else
16700          # Determine the default libpath from the value encoded in an empty executable.
16701          cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h.  */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h.  */
16707
16708 int
16709 main ()
16710 {
16711
16712   ;
16713   return 0;
16714 }
16715 _ACEOF
16716 rm -f conftest.$ac_objext conftest$ac_exeext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16718   (eval $ac_link) 2>conftest.er1
16719   ac_status=$?
16720   grep -v '^ *+' conftest.er1 >conftest.err
16721   rm -f conftest.er1
16722   cat conftest.err >&5
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); } &&
16725          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727   (eval $ac_try) 2>&5
16728   ac_status=$?
16729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730   (exit $ac_status); }; } &&
16731          { ac_try='test -s conftest$ac_exeext'
16732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733   (eval $ac_try) 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); }; }; then
16737
16738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16739 }'`
16740 # Check for a 64-bit object if we didn't find anything.
16741 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; }
16742 }'`; fi
16743 else
16744   echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747 fi
16748 rm -f conftest.err conftest.$ac_objext \
16749       conftest$ac_exeext conftest.$ac_ext
16750 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16751
16752          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16753           # Warning - without using the other run time loading flags,
16754           # -berok will link without error, but may produce a broken library.
16755           no_undefined_flag_GCJ=' ${wl}-bernotok'
16756           allow_undefined_flag_GCJ=' ${wl}-berok'
16757           # Exported symbols can be pulled into shared objects from archives
16758           whole_archive_flag_spec_GCJ='$convenience'
16759           archive_cmds_need_lc_GCJ=yes
16760           # This is similar to how AIX traditionally builds its shared libraries.
16761           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16762         fi
16763       fi
16764       ;;
16765
16766     amigaos*)
16767       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)'
16768       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16769       hardcode_minus_L_GCJ=yes
16770       # see comment about different semantics on the GNU ld section
16771       ld_shlibs_GCJ=no
16772       ;;
16773
16774     bsdi[45]*)
16775       export_dynamic_flag_spec_GCJ=-rdynamic
16776       ;;
16777
16778     cygwin* | mingw* | pw32*)
16779       # When not using gcc, we currently assume that we are using
16780       # Microsoft Visual C++.
16781       # hardcode_libdir_flag_spec is actually meaningless, as there is
16782       # no search path for DLLs.
16783       hardcode_libdir_flag_spec_GCJ=' '
16784       allow_undefined_flag_GCJ=unsupported
16785       # Tell ltmain to make .lib files, not .a files.
16786       libext=lib
16787       # Tell ltmain to make .dll files, not .so files.
16788       shrext_cmds=".dll"
16789       # FIXME: Setting linknames here is a bad hack.
16790       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16791       # The linker will automatically build a .lib file if we build a DLL.
16792       old_archive_From_new_cmds_GCJ='true'
16793       # FIXME: Should let the user specify the lib program.
16794       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16795       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16796       enable_shared_with_static_runtimes_GCJ=yes
16797       ;;
16798
16799     darwin* | rhapsody*)
16800       case $host_os in
16801         rhapsody* | darwin1.[012])
16802          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16803          ;;
16804        *) # Darwin 1.3 on
16805          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16806            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16807          else
16808            case ${MACOSX_DEPLOYMENT_TARGET} in
16809              10.[012])
16810                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16811                ;;
16812              10.*)
16813                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16814                ;;
16815            esac
16816          fi
16817          ;;
16818       esac
16819       archive_cmds_need_lc_GCJ=no
16820       hardcode_direct_GCJ=no
16821       hardcode_automatic_GCJ=yes
16822       hardcode_shlibpath_var_GCJ=unsupported
16823       whole_archive_flag_spec_GCJ=''
16824       link_all_deplibs_GCJ=yes
16825     if test "$GCC" = yes ; then
16826         output_verbose_link_cmd='echo'
16827         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16828       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16829       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16830       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16831       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}'
16832     else
16833       case $cc_basename in
16834         xlc*)
16835          output_verbose_link_cmd='echo'
16836          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16837          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16838           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16839          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16840           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}'
16841           ;;
16842        *)
16843          ld_shlibs_GCJ=no
16844           ;;
16845       esac
16846     fi
16847       ;;
16848
16849     dgux*)
16850       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16851       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16852       hardcode_shlibpath_var_GCJ=no
16853       ;;
16854
16855     freebsd1*)
16856       ld_shlibs_GCJ=no
16857       ;;
16858
16859     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16860     # support.  Future versions do this automatically, but an explicit c++rt0.o
16861     # does not break anything, and helps significantly (at the cost of a little
16862     # extra space).
16863     freebsd2.2*)
16864       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16865       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16866       hardcode_direct_GCJ=yes
16867       hardcode_shlibpath_var_GCJ=no
16868       ;;
16869
16870     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16871     freebsd2*)
16872       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16873       hardcode_direct_GCJ=yes
16874       hardcode_minus_L_GCJ=yes
16875       hardcode_shlibpath_var_GCJ=no
16876       ;;
16877
16878     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16879     freebsd* | dragonfly*)
16880       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16881       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16882       hardcode_direct_GCJ=yes
16883       hardcode_shlibpath_var_GCJ=no
16884       ;;
16885
16886     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16887     kfreebsd*-gnu)
16888       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16889       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16890       hardcode_direct_GCJ=yes
16891       hardcode_shlibpath_var_GCJ=no
16892       link_all_deplibs_GCJ=no
16893       ;;
16894
16895     hpux9*)
16896       if test "$GCC" = yes; then
16897         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'
16898       else
16899         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'
16900       fi
16901       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16902       hardcode_libdir_separator_GCJ=:
16903       hardcode_direct_GCJ=yes
16904
16905       # hardcode_minus_L: Not really in the search PATH,
16906       # but as the default location of the library.
16907       hardcode_minus_L_GCJ=yes
16908       export_dynamic_flag_spec_GCJ='${wl}-E'
16909       ;;
16910
16911     hpux10*)
16912       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16913         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16914       else
16915         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16916       fi
16917       if test "$with_gnu_ld" = no; then
16918         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16919         hardcode_libdir_separator_GCJ=:
16920
16921         hardcode_direct_GCJ=yes
16922         export_dynamic_flag_spec_GCJ='${wl}-E'
16923
16924         # hardcode_minus_L: Not really in the search PATH,
16925         # but as the default location of the library.
16926         hardcode_minus_L_GCJ=yes
16927       fi
16928       ;;
16929
16930     hpux11*)
16931       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16932         case $host_cpu in
16933         hppa*64*)
16934           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16935           ;;
16936         ia64*)
16937           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16938           ;;
16939         *)
16940           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16941           ;;
16942         esac
16943       else
16944         case $host_cpu in
16945         hppa*64*)
16946           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16947           ;;
16948         ia64*)
16949           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16950           ;;
16951         *)
16952           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16953           ;;
16954         esac
16955       fi
16956       if test "$with_gnu_ld" = no; then
16957         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16958         hardcode_libdir_separator_GCJ=:
16959
16960         case $host_cpu in
16961         hppa*64*|ia64*)
16962           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16963           hardcode_direct_GCJ=no
16964           hardcode_shlibpath_var_GCJ=no
16965           ;;
16966         *)
16967           hardcode_direct_GCJ=yes
16968           export_dynamic_flag_spec_GCJ='${wl}-E'
16969
16970           # hardcode_minus_L: Not really in the search PATH,
16971           # but as the default location of the library.
16972           hardcode_minus_L_GCJ=yes
16973           ;;
16974         esac
16975       fi
16976       ;;
16977
16978     irix5* | irix6* | nonstopux*)
16979       if test "$GCC" = yes; then
16980         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'
16981       else
16982         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'
16983         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16984       fi
16985       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16986       hardcode_libdir_separator_GCJ=:
16987       link_all_deplibs_GCJ=yes
16988       ;;
16989
16990     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16991       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16992         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16993       else
16994         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16995       fi
16996       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16997       hardcode_direct_GCJ=yes
16998       hardcode_shlibpath_var_GCJ=no
16999       ;;
17000
17001     newsos6)
17002       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17003       hardcode_direct_GCJ=yes
17004       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17005       hardcode_libdir_separator_GCJ=:
17006       hardcode_shlibpath_var_GCJ=no
17007       ;;
17008
17009     openbsd*)
17010       hardcode_direct_GCJ=yes
17011       hardcode_shlibpath_var_GCJ=no
17012       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17013         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17014         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17015         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17016         export_dynamic_flag_spec_GCJ='${wl}-E'
17017       else
17018        case $host_os in
17019          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17020            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17021            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17022            ;;
17023          *)
17024            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17025            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17026            ;;
17027        esac
17028       fi
17029       ;;
17030
17031     os2*)
17032       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17033       hardcode_minus_L_GCJ=yes
17034       allow_undefined_flag_GCJ=unsupported
17035       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'
17036       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17037       ;;
17038
17039     osf3*)
17040       if test "$GCC" = yes; then
17041         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17042         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'
17043       else
17044         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17045         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'
17046       fi
17047       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17048       hardcode_libdir_separator_GCJ=:
17049       ;;
17050
17051     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17052       if test "$GCC" = yes; then
17053         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17054         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'
17055         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17056       else
17057         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17058         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'
17059         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~
17060         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17061
17062         # Both c and cxx compiler support -rpath directly
17063         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17064       fi
17065       hardcode_libdir_separator_GCJ=:
17066       ;;
17067
17068     solaris*)
17069       no_undefined_flag_GCJ=' -z text'
17070       if test "$GCC" = yes; then
17071         wlarc='${wl}'
17072         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17073         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17074           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17075       else
17076         wlarc=''
17077         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17078         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17079         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17080       fi
17081       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17082       hardcode_shlibpath_var_GCJ=no
17083       case $host_os in
17084       solaris2.[0-5] | solaris2.[0-5].*) ;;
17085       *)
17086         # The compiler driver will combine linker options so we
17087         # cannot just pass the convience library names through
17088         # without $wl, iff we do not link with $LD.
17089         # Luckily, gcc supports the same syntax we need for Sun Studio.
17090         # Supported since Solaris 2.6 (maybe 2.5.1?)
17091         case $wlarc in
17092         '')
17093           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17094         *)
17095           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17096         esac ;;
17097       esac
17098       link_all_deplibs_GCJ=yes
17099       ;;
17100
17101     sunos4*)
17102       if test "x$host_vendor" = xsequent; then
17103         # Use $CC to link under sequent, because it throws in some extra .o
17104         # files that make .init and .fini sections work.
17105         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17106       else
17107         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17108       fi
17109       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17110       hardcode_direct_GCJ=yes
17111       hardcode_minus_L_GCJ=yes
17112       hardcode_shlibpath_var_GCJ=no
17113       ;;
17114
17115     sysv4)
17116       case $host_vendor in
17117         sni)
17118           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17119           hardcode_direct_GCJ=yes # is this really true???
17120         ;;
17121         siemens)
17122           ## LD is ld it makes a PLAMLIB
17123           ## CC just makes a GrossModule.
17124           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17125           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17126           hardcode_direct_GCJ=no
17127         ;;
17128         motorola)
17129           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17130           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17131         ;;
17132       esac
17133       runpath_var='LD_RUN_PATH'
17134       hardcode_shlibpath_var_GCJ=no
17135       ;;
17136
17137     sysv4.3*)
17138       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17139       hardcode_shlibpath_var_GCJ=no
17140       export_dynamic_flag_spec_GCJ='-Bexport'
17141       ;;
17142
17143     sysv4*MP*)
17144       if test -d /usr/nec; then
17145         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17146         hardcode_shlibpath_var_GCJ=no
17147         runpath_var=LD_RUN_PATH
17148         hardcode_runpath_var=yes
17149         ld_shlibs_GCJ=yes
17150       fi
17151       ;;
17152
17153     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17154       no_undefined_flag_GCJ='${wl}-z,text'
17155       archive_cmds_need_lc_GCJ=no
17156       hardcode_shlibpath_var_GCJ=no
17157       runpath_var='LD_RUN_PATH'
17158
17159       if test "$GCC" = yes; then
17160         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17161         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17162       else
17163         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17164         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17165       fi
17166       ;;
17167
17168     sysv5* | sco3.2v5* | sco5v6*)
17169       # Note: We can NOT use -z defs as we might desire, because we do not
17170       # link with -lc, and that would cause any symbols used from libc to
17171       # always be unresolved, which means just about no library would
17172       # ever link correctly.  If we're not using GNU ld we use -z text
17173       # though, which does catch some bad symbols but isn't as heavy-handed
17174       # as -z defs.
17175       no_undefined_flag_GCJ='${wl}-z,text'
17176       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17177       archive_cmds_need_lc_GCJ=no
17178       hardcode_shlibpath_var_GCJ=no
17179       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17180       hardcode_libdir_separator_GCJ=':'
17181       link_all_deplibs_GCJ=yes
17182       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17183       runpath_var='LD_RUN_PATH'
17184
17185       if test "$GCC" = yes; then
17186         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17187         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17188       else
17189         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17190         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17191       fi
17192       ;;
17193
17194     uts4*)
17195       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17196       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17197       hardcode_shlibpath_var_GCJ=no
17198       ;;
17199
17200     *)
17201       ld_shlibs_GCJ=no
17202       ;;
17203     esac
17204   fi
17205
17206 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17207 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17208 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17209
17210 #
17211 # Do we need to explicitly link libc?
17212 #
17213 case "x$archive_cmds_need_lc_GCJ" in
17214 x|xyes)
17215   # Assume -lc should be added
17216   archive_cmds_need_lc_GCJ=yes
17217
17218   if test "$enable_shared" = yes && test "$GCC" = yes; then
17219     case $archive_cmds_GCJ in
17220     *'~'*)
17221       # FIXME: we may have to deal with multi-command sequences.
17222       ;;
17223     '$CC '*)
17224       # Test whether the compiler implicitly links with -lc since on some
17225       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17226       # to ld, don't add -lc before -lgcc.
17227       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17228 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17229       $rm conftest*
17230       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17231
17232       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17233   (eval $ac_compile) 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); } 2>conftest.err; then
17237         soname=conftest
17238         lib=conftest
17239         libobjs=conftest.$ac_objext
17240         deplibs=
17241         wl=$lt_prog_compiler_wl_GCJ
17242         pic_flag=$lt_prog_compiler_pic_GCJ
17243         compiler_flags=-v
17244         linker_flags=-v
17245         verstring=
17246         output_objdir=.
17247         libname=conftest
17248         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17249         allow_undefined_flag_GCJ=
17250         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17251   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17252   ac_status=$?
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); }
17255         then
17256           archive_cmds_need_lc_GCJ=no
17257         else
17258           archive_cmds_need_lc_GCJ=yes
17259         fi
17260         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17261       else
17262         cat conftest.err 1>&5
17263       fi
17264       $rm conftest*
17265       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17266 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17267       ;;
17268     esac
17269   fi
17270   ;;
17271 esac
17272
17273 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17274 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17275 library_names_spec=
17276 libname_spec='lib$name'
17277 soname_spec=
17278 shrext_cmds=".so"
17279 postinstall_cmds=
17280 postuninstall_cmds=
17281 finish_cmds=
17282 finish_eval=
17283 shlibpath_var=
17284 shlibpath_overrides_runpath=unknown
17285 version_type=none
17286 dynamic_linker="$host_os ld.so"
17287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17288 if test "$GCC" = yes; then
17289   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17290   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17291     # if the path contains ";" then we assume it to be the separator
17292     # otherwise default to the standard path separator (i.e. ":") - it is
17293     # assumed that no part of a normal pathname contains ";" but that should
17294     # okay in the real world where ";" in dirpaths is itself problematic.
17295     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17296   else
17297     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17298   fi
17299 else
17300   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17301 fi
17302 need_lib_prefix=unknown
17303 hardcode_into_libs=no
17304
17305 # when you set need_version to no, make sure it does not cause -set_version
17306 # flags to be left without arguments
17307 need_version=unknown
17308
17309 case $host_os in
17310 aix3*)
17311   version_type=linux
17312   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17313   shlibpath_var=LIBPATH
17314
17315   # AIX 3 has no versioning support, so we append a major version to the name.
17316   soname_spec='${libname}${release}${shared_ext}$major'
17317   ;;
17318
17319 aix4* | aix5*)
17320   version_type=linux
17321   need_lib_prefix=no
17322   need_version=no
17323   hardcode_into_libs=yes
17324   if test "$host_cpu" = ia64; then
17325     # AIX 5 supports IA64
17326     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17327     shlibpath_var=LD_LIBRARY_PATH
17328   else
17329     # With GCC up to 2.95.x, collect2 would create an import file
17330     # for dependence libraries.  The import file would start with
17331     # the line `#! .'.  This would cause the generated library to
17332     # depend on `.', always an invalid library.  This was fixed in
17333     # development snapshots of GCC prior to 3.0.
17334     case $host_os in
17335       aix4 | aix4.[01] | aix4.[01].*)
17336       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17337            echo ' yes '
17338            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17339         :
17340       else
17341         can_build_shared=no
17342       fi
17343       ;;
17344     esac
17345     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17346     # soname into executable. Probably we can add versioning support to
17347     # collect2, so additional links can be useful in future.
17348     if test "$aix_use_runtimelinking" = yes; then
17349       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17350       # instead of lib<name>.a to let people know that these are not
17351       # typical AIX shared libraries.
17352       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17353     else
17354       # We preserve .a as extension for shared libraries through AIX4.2
17355       # and later when we are not doing run time linking.
17356       library_names_spec='${libname}${release}.a $libname.a'
17357       soname_spec='${libname}${release}${shared_ext}$major'
17358     fi
17359     shlibpath_var=LIBPATH
17360   fi
17361   ;;
17362
17363 amigaos*)
17364   library_names_spec='$libname.ixlibrary $libname.a'
17365   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17366   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'
17367   ;;
17368
17369 beos*)
17370   library_names_spec='${libname}${shared_ext}'
17371   dynamic_linker="$host_os ld.so"
17372   shlibpath_var=LIBRARY_PATH
17373   ;;
17374
17375 bsdi[45]*)
17376   version_type=linux
17377   need_version=no
17378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379   soname_spec='${libname}${release}${shared_ext}$major'
17380   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17381   shlibpath_var=LD_LIBRARY_PATH
17382   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17383   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17384   # the default ld.so.conf also contains /usr/contrib/lib and
17385   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17386   # libtool to hard-code these into programs
17387   ;;
17388
17389 cygwin* | mingw* | pw32*)
17390   version_type=windows
17391   shrext_cmds=".dll"
17392   need_version=no
17393   need_lib_prefix=no
17394
17395   case $GCC,$host_os in
17396   yes,cygwin* | yes,mingw* | yes,pw32*)
17397     library_names_spec='$libname.dll.a'
17398     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17399     postinstall_cmds='base_file=`basename \${file}`~
17400       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17401       dldir=$destdir/`dirname \$dlpath`~
17402       test -d \$dldir || mkdir -p \$dldir~
17403       $install_prog $dir/$dlname \$dldir/$dlname~
17404       chmod a+x \$dldir/$dlname'
17405     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17406       dlpath=$dir/\$dldll~
17407        $rm \$dlpath'
17408     shlibpath_overrides_runpath=yes
17409
17410     case $host_os in
17411     cygwin*)
17412       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17413       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17414       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17415       ;;
17416     mingw*)
17417       # MinGW DLLs use traditional 'lib' prefix
17418       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17419       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17420       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17421         # It is most probably a Windows format PATH printed by
17422         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17423         # path with ; separators, and with drive letters. We can handle the
17424         # drive letters (cygwin fileutils understands them), so leave them,
17425         # especially as we might pass files found there to a mingw objdump,
17426         # which wouldn't understand a cygwinified path. Ahh.
17427         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17428       else
17429         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17430       fi
17431       ;;
17432     pw32*)
17433       # pw32 DLLs use 'pw' prefix rather than 'lib'
17434       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17435       ;;
17436     esac
17437     ;;
17438
17439   *)
17440     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17441     ;;
17442   esac
17443   dynamic_linker='Win32 ld.exe'
17444   # FIXME: first we should search . and the directory the executable is in
17445   shlibpath_var=PATH
17446   ;;
17447
17448 darwin* | rhapsody*)
17449   dynamic_linker="$host_os dyld"
17450   version_type=darwin
17451   need_lib_prefix=no
17452   need_version=no
17453   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17454   soname_spec='${libname}${release}${major}$shared_ext'
17455   shlibpath_overrides_runpath=yes
17456   shlibpath_var=DYLD_LIBRARY_PATH
17457   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17458   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17459   if test "$GCC" = yes; then
17460     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"`
17461   else
17462     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17463   fi
17464   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17465   ;;
17466
17467 dgux*)
17468   version_type=linux
17469   need_lib_prefix=no
17470   need_version=no
17471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17472   soname_spec='${libname}${release}${shared_ext}$major'
17473   shlibpath_var=LD_LIBRARY_PATH
17474   ;;
17475
17476 freebsd1*)
17477   dynamic_linker=no
17478   ;;
17479
17480 kfreebsd*-gnu)
17481   version_type=linux
17482   need_lib_prefix=no
17483   need_version=no
17484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17485   soname_spec='${libname}${release}${shared_ext}$major'
17486   shlibpath_var=LD_LIBRARY_PATH
17487   shlibpath_overrides_runpath=no
17488   hardcode_into_libs=yes
17489   dynamic_linker='GNU ld.so'
17490   ;;
17491
17492 freebsd* | dragonfly*)
17493   # DragonFly does not have aout.  When/if they implement a new
17494   # versioning mechanism, adjust this.
17495   if test -x /usr/bin/objformat; then
17496     objformat=`/usr/bin/objformat`
17497   else
17498     case $host_os in
17499     freebsd[123]*) objformat=aout ;;
17500     *) objformat=elf ;;
17501     esac
17502   fi
17503   version_type=freebsd-$objformat
17504   case $version_type in
17505     freebsd-elf*)
17506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17507       need_version=no
17508       need_lib_prefix=no
17509       ;;
17510     freebsd-*)
17511       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17512       need_version=yes
17513       ;;
17514   esac
17515   shlibpath_var=LD_LIBRARY_PATH
17516   case $host_os in
17517   freebsd2*)
17518     shlibpath_overrides_runpath=yes
17519     ;;
17520   freebsd3.[01]* | freebsdelf3.[01]*)
17521     shlibpath_overrides_runpath=yes
17522     hardcode_into_libs=yes
17523     ;;
17524   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17525   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17526     shlibpath_overrides_runpath=no
17527     hardcode_into_libs=yes
17528     ;;
17529   freebsd*) # from 4.6 on
17530     shlibpath_overrides_runpath=yes
17531     hardcode_into_libs=yes
17532     ;;
17533   esac
17534   ;;
17535
17536 gnu*)
17537   version_type=linux
17538   need_lib_prefix=no
17539   need_version=no
17540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17541   soname_spec='${libname}${release}${shared_ext}$major'
17542   shlibpath_var=LD_LIBRARY_PATH
17543   hardcode_into_libs=yes
17544   ;;
17545
17546 hpux9* | hpux10* | hpux11*)
17547   # Give a soname corresponding to the major version so that dld.sl refuses to
17548   # link against other versions.
17549   version_type=sunos
17550   need_lib_prefix=no
17551   need_version=no
17552   case $host_cpu in
17553   ia64*)
17554     shrext_cmds='.so'
17555     hardcode_into_libs=yes
17556     dynamic_linker="$host_os dld.so"
17557     shlibpath_var=LD_LIBRARY_PATH
17558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560     soname_spec='${libname}${release}${shared_ext}$major'
17561     if test "X$HPUX_IA64_MODE" = X32; then
17562       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17563     else
17564       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17565     fi
17566     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17567     ;;
17568    hppa*64*)
17569      shrext_cmds='.sl'
17570      hardcode_into_libs=yes
17571      dynamic_linker="$host_os dld.sl"
17572      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17573      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17574      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17575      soname_spec='${libname}${release}${shared_ext}$major'
17576      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17577      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17578      ;;
17579    *)
17580     shrext_cmds='.sl'
17581     dynamic_linker="$host_os dld.sl"
17582     shlibpath_var=SHLIB_PATH
17583     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17585     soname_spec='${libname}${release}${shared_ext}$major'
17586     ;;
17587   esac
17588   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17589   postinstall_cmds='chmod 555 $lib'
17590   ;;
17591
17592 interix3*)
17593   version_type=linux
17594   need_lib_prefix=no
17595   need_version=no
17596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17597   soname_spec='${libname}${release}${shared_ext}$major'
17598   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17599   shlibpath_var=LD_LIBRARY_PATH
17600   shlibpath_overrides_runpath=no
17601   hardcode_into_libs=yes
17602   ;;
17603
17604 irix5* | irix6* | nonstopux*)
17605   case $host_os in
17606     nonstopux*) version_type=nonstopux ;;
17607     *)
17608         if test "$lt_cv_prog_gnu_ld" = yes; then
17609                 version_type=linux
17610         else
17611                 version_type=irix
17612         fi ;;
17613   esac
17614   need_lib_prefix=no
17615   need_version=no
17616   soname_spec='${libname}${release}${shared_ext}$major'
17617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17618   case $host_os in
17619   irix5* | nonstopux*)
17620     libsuff= shlibsuff=
17621     ;;
17622   *)
17623     case $LD in # libtool.m4 will add one of these switches to LD
17624     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17625       libsuff= shlibsuff= libmagic=32-bit;;
17626     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17627       libsuff=32 shlibsuff=N32 libmagic=N32;;
17628     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17629       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17630     *) libsuff= shlibsuff= libmagic=never-match;;
17631     esac
17632     ;;
17633   esac
17634   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17635   shlibpath_overrides_runpath=no
17636   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17637   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17638   hardcode_into_libs=yes
17639   ;;
17640
17641 # No shared lib support for Linux oldld, aout, or coff.
17642 linux*oldld* | linux*aout* | linux*coff*)
17643   dynamic_linker=no
17644   ;;
17645
17646 # This must be Linux ELF.
17647 linux*)
17648   version_type=linux
17649   need_lib_prefix=no
17650   need_version=no
17651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17652   soname_spec='${libname}${release}${shared_ext}$major'
17653   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17654   shlibpath_var=LD_LIBRARY_PATH
17655   shlibpath_overrides_runpath=no
17656   # This implies no fast_install, which is unacceptable.
17657   # Some rework will be needed to allow for fast_install
17658   # before this can be enabled.
17659   hardcode_into_libs=yes
17660
17661   # Append ld.so.conf contents to the search path
17662   if test -f /etc/ld.so.conf; then
17663     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17664     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17665   fi
17666
17667   # We used to test for /lib/ld.so.1 and disable shared libraries on
17668   # powerpc, because MkLinux only supported shared libraries with the
17669   # GNU dynamic linker.  Since this was broken with cross compilers,
17670   # most powerpc-linux boxes support dynamic linking these days and
17671   # people can always --disable-shared, the test was removed, and we
17672   # assume the GNU/Linux dynamic linker is in use.
17673   dynamic_linker='GNU/Linux ld.so'
17674   ;;
17675
17676 netbsdelf*-gnu)
17677   version_type=linux
17678   need_lib_prefix=no
17679   need_version=no
17680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17681   soname_spec='${libname}${release}${shared_ext}$major'
17682   shlibpath_var=LD_LIBRARY_PATH
17683   shlibpath_overrides_runpath=no
17684   hardcode_into_libs=yes
17685   dynamic_linker='NetBSD ld.elf_so'
17686   ;;
17687
17688 knetbsd*-gnu)
17689   version_type=linux
17690   need_lib_prefix=no
17691   need_version=no
17692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17693   soname_spec='${libname}${release}${shared_ext}$major'
17694   shlibpath_var=LD_LIBRARY_PATH
17695   shlibpath_overrides_runpath=no
17696   hardcode_into_libs=yes
17697   dynamic_linker='GNU ld.so'
17698   ;;
17699
17700 netbsd*)
17701   version_type=sunos
17702   need_lib_prefix=no
17703   need_version=no
17704   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17706     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17707     dynamic_linker='NetBSD (a.out) ld.so'
17708   else
17709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17710     soname_spec='${libname}${release}${shared_ext}$major'
17711     dynamic_linker='NetBSD ld.elf_so'
17712   fi
17713   shlibpath_var=LD_LIBRARY_PATH
17714   shlibpath_overrides_runpath=yes
17715   hardcode_into_libs=yes
17716   ;;
17717
17718 newsos6)
17719   version_type=linux
17720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17721   shlibpath_var=LD_LIBRARY_PATH
17722   shlibpath_overrides_runpath=yes
17723   ;;
17724
17725 nto-qnx*)
17726   version_type=linux
17727   need_lib_prefix=no
17728   need_version=no
17729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17730   soname_spec='${libname}${release}${shared_ext}$major'
17731   shlibpath_var=LD_LIBRARY_PATH
17732   shlibpath_overrides_runpath=yes
17733   ;;
17734
17735 openbsd*)
17736   version_type=sunos
17737   sys_lib_dlsearch_path_spec="/usr/lib"
17738   need_lib_prefix=no
17739   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17740   case $host_os in
17741     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17742     *)                         need_version=no  ;;
17743   esac
17744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17745   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17746   shlibpath_var=LD_LIBRARY_PATH
17747   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17748     case $host_os in
17749       openbsd2.[89] | openbsd2.[89].*)
17750         shlibpath_overrides_runpath=no
17751         ;;
17752       *)
17753         shlibpath_overrides_runpath=yes
17754         ;;
17755       esac
17756   else
17757     shlibpath_overrides_runpath=yes
17758   fi
17759   ;;
17760
17761 os2*)
17762   libname_spec='$name'
17763   shrext_cmds=".dll"
17764   need_lib_prefix=no
17765   library_names_spec='$libname${shared_ext} $libname.a'
17766   dynamic_linker='OS/2 ld.exe'
17767   shlibpath_var=LIBPATH
17768   ;;
17769
17770 osf3* | osf4* | osf5*)
17771   version_type=osf
17772   need_lib_prefix=no
17773   need_version=no
17774   soname_spec='${libname}${release}${shared_ext}$major'
17775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17776   shlibpath_var=LD_LIBRARY_PATH
17777   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17778   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17779   ;;
17780
17781 solaris*)
17782   version_type=linux
17783   need_lib_prefix=no
17784   need_version=no
17785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17786   soname_spec='${libname}${release}${shared_ext}$major'
17787   shlibpath_var=LD_LIBRARY_PATH
17788   shlibpath_overrides_runpath=yes
17789   hardcode_into_libs=yes
17790   # ldd complains unless libraries are executable
17791   postinstall_cmds='chmod +x $lib'
17792   ;;
17793
17794 sunos4*)
17795   version_type=sunos
17796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17797   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17798   shlibpath_var=LD_LIBRARY_PATH
17799   shlibpath_overrides_runpath=yes
17800   if test "$with_gnu_ld" = yes; then
17801     need_lib_prefix=no
17802   fi
17803   need_version=yes
17804   ;;
17805
17806 sysv4 | sysv4.3*)
17807   version_type=linux
17808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17809   soname_spec='${libname}${release}${shared_ext}$major'
17810   shlibpath_var=LD_LIBRARY_PATH
17811   case $host_vendor in
17812     sni)
17813       shlibpath_overrides_runpath=no
17814       need_lib_prefix=no
17815       export_dynamic_flag_spec='${wl}-Blargedynsym'
17816       runpath_var=LD_RUN_PATH
17817       ;;
17818     siemens)
17819       need_lib_prefix=no
17820       ;;
17821     motorola)
17822       need_lib_prefix=no
17823       need_version=no
17824       shlibpath_overrides_runpath=no
17825       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17826       ;;
17827   esac
17828   ;;
17829
17830 sysv4*MP*)
17831   if test -d /usr/nec ;then
17832     version_type=linux
17833     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17834     soname_spec='$libname${shared_ext}.$major'
17835     shlibpath_var=LD_LIBRARY_PATH
17836   fi
17837   ;;
17838
17839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17840   version_type=freebsd-elf
17841   need_lib_prefix=no
17842   need_version=no
17843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17844   soname_spec='${libname}${release}${shared_ext}$major'
17845   shlibpath_var=LD_LIBRARY_PATH
17846   hardcode_into_libs=yes
17847   if test "$with_gnu_ld" = yes; then
17848     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17849     shlibpath_overrides_runpath=no
17850   else
17851     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17852     shlibpath_overrides_runpath=yes
17853     case $host_os in
17854       sco3.2v5*)
17855         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17856         ;;
17857     esac
17858   fi
17859   sys_lib_dlsearch_path_spec='/usr/lib'
17860   ;;
17861
17862 uts4*)
17863   version_type=linux
17864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17865   soname_spec='${libname}${release}${shared_ext}$major'
17866   shlibpath_var=LD_LIBRARY_PATH
17867   ;;
17868
17869 *)
17870   dynamic_linker=no
17871   ;;
17872 esac
17873 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17874 echo "${ECHO_T}$dynamic_linker" >&6
17875 test "$dynamic_linker" = no && can_build_shared=no
17876
17877 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17878 if test "$GCC" = yes; then
17879   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17880 fi
17881
17882 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17883 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17884 hardcode_action_GCJ=
17885 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17886    test -n "$runpath_var_GCJ" || \
17887    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17888
17889   # We can hardcode non-existant directories.
17890   if test "$hardcode_direct_GCJ" != no &&
17891      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17892      # have to relink, otherwise we might link with an installed library
17893      # when we should be linking with a yet-to-be-installed one
17894      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17895      test "$hardcode_minus_L_GCJ" != no; then
17896     # Linking always hardcodes the temporary library directory.
17897     hardcode_action_GCJ=relink
17898   else
17899     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17900     hardcode_action_GCJ=immediate
17901   fi
17902 else
17903   # We cannot hardcode anything, or else we can only hardcode existing
17904   # directories.
17905   hardcode_action_GCJ=unsupported
17906 fi
17907 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17908 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17909
17910 if test "$hardcode_action_GCJ" = relink; then
17911   # Fast installation is not supported
17912   enable_fast_install=no
17913 elif test "$shlibpath_overrides_runpath" = yes ||
17914      test "$enable_shared" = no; then
17915   # Fast installation is not necessary
17916   enable_fast_install=needless
17917 fi
17918
17919
17920 # The else clause should only fire when bootstrapping the
17921 # libtool distribution, otherwise you forgot to ship ltmain.sh
17922 # with your package, and you will get complaints that there are
17923 # no rules to generate ltmain.sh.
17924 if test -f "$ltmain"; then
17925   # See if we are running on zsh, and set the options which allow our commands through
17926   # without removal of \ escapes.
17927   if test -n "${ZSH_VERSION+set}" ; then
17928     setopt NO_GLOB_SUBST
17929   fi
17930   # Now quote all the things that may contain metacharacters while being
17931   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17932   # variables and quote the copies for generation of the libtool script.
17933   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17934     SED SHELL STRIP \
17935     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17936     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17937     deplibs_check_method reload_flag reload_cmds need_locks \
17938     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17939     lt_cv_sys_global_symbol_to_c_name_address \
17940     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17941     old_postinstall_cmds old_postuninstall_cmds \
17942     compiler_GCJ \
17943     CC_GCJ \
17944     LD_GCJ \
17945     lt_prog_compiler_wl_GCJ \
17946     lt_prog_compiler_pic_GCJ \
17947     lt_prog_compiler_static_GCJ \
17948     lt_prog_compiler_no_builtin_flag_GCJ \
17949     export_dynamic_flag_spec_GCJ \
17950     thread_safe_flag_spec_GCJ \
17951     whole_archive_flag_spec_GCJ \
17952     enable_shared_with_static_runtimes_GCJ \
17953     old_archive_cmds_GCJ \
17954     old_archive_from_new_cmds_GCJ \
17955     predep_objects_GCJ \
17956     postdep_objects_GCJ \
17957     predeps_GCJ \
17958     postdeps_GCJ \
17959     compiler_lib_search_path_GCJ \
17960     archive_cmds_GCJ \
17961     archive_expsym_cmds_GCJ \
17962     postinstall_cmds_GCJ \
17963     postuninstall_cmds_GCJ \
17964     old_archive_from_expsyms_cmds_GCJ \
17965     allow_undefined_flag_GCJ \
17966     no_undefined_flag_GCJ \
17967     export_symbols_cmds_GCJ \
17968     hardcode_libdir_flag_spec_GCJ \
17969     hardcode_libdir_flag_spec_ld_GCJ \
17970     hardcode_libdir_separator_GCJ \
17971     hardcode_automatic_GCJ \
17972     module_cmds_GCJ \
17973     module_expsym_cmds_GCJ \
17974     lt_cv_prog_compiler_c_o_GCJ \
17975     exclude_expsyms_GCJ \
17976     include_expsyms_GCJ; do
17977
17978     case $var in
17979     old_archive_cmds_GCJ | \
17980     old_archive_from_new_cmds_GCJ | \
17981     archive_cmds_GCJ | \
17982     archive_expsym_cmds_GCJ | \
17983     module_cmds_GCJ | \
17984     module_expsym_cmds_GCJ | \
17985     old_archive_from_expsyms_cmds_GCJ | \
17986     export_symbols_cmds_GCJ | \
17987     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17988     postinstall_cmds | postuninstall_cmds | \
17989     old_postinstall_cmds | old_postuninstall_cmds | \
17990     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17991       # Double-quote double-evaled strings.
17992       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17993       ;;
17994     *)
17995       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17996       ;;
17997     esac
17998   done
17999
18000   case $lt_echo in
18001   *'\$0 --fallback-echo"')
18002     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18003     ;;
18004   esac
18005
18006 cfgfile="$ofile"
18007
18008   cat <<__EOF__ >> "$cfgfile"
18009 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18010
18011 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18012
18013 # Shell to use when invoking shell scripts.
18014 SHELL=$lt_SHELL
18015
18016 # Whether or not to build shared libraries.
18017 build_libtool_libs=$enable_shared
18018
18019 # Whether or not to build static libraries.
18020 build_old_libs=$enable_static
18021
18022 # Whether or not to add -lc for building shared libraries.
18023 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18024
18025 # Whether or not to disallow shared libs when runtime libs are static
18026 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18027
18028 # Whether or not to optimize for fast installation.
18029 fast_install=$enable_fast_install
18030
18031 # The host system.
18032 host_alias=$host_alias
18033 host=$host
18034 host_os=$host_os
18035
18036 # The build system.
18037 build_alias=$build_alias
18038 build=$build
18039 build_os=$build_os
18040
18041 # An echo program that does not interpret backslashes.
18042 echo=$lt_echo
18043
18044 # The archiver.
18045 AR=$lt_AR
18046 AR_FLAGS=$lt_AR_FLAGS
18047
18048 # A C compiler.
18049 LTCC=$lt_LTCC
18050
18051 # LTCC compiler flags.
18052 LTCFLAGS=$lt_LTCFLAGS
18053
18054 # A language-specific compiler.
18055 CC=$lt_compiler_GCJ
18056
18057 # Is the compiler the GNU C compiler?
18058 with_gcc=$GCC_GCJ
18059
18060 # An ERE matcher.
18061 EGREP=$lt_EGREP
18062
18063 # The linker used to build libraries.
18064 LD=$lt_LD_GCJ
18065
18066 # Whether we need hard or soft links.
18067 LN_S=$lt_LN_S
18068
18069 # A BSD-compatible nm program.
18070 NM=$lt_NM
18071
18072 # A symbol stripping program
18073 STRIP=$lt_STRIP
18074
18075 # Used to examine libraries when file_magic_cmd begins "file"
18076 MAGIC_CMD=$MAGIC_CMD
18077
18078 # Used on cygwin: DLL creation program.
18079 DLLTOOL="$DLLTOOL"
18080
18081 # Used on cygwin: object dumper.
18082 OBJDUMP="$OBJDUMP"
18083
18084 # Used on cygwin: assembler.
18085 AS="$AS"
18086
18087 # The name of the directory that contains temporary libtool files.
18088 objdir=$objdir
18089
18090 # How to create reloadable object files.
18091 reload_flag=$lt_reload_flag
18092 reload_cmds=$lt_reload_cmds
18093
18094 # How to pass a linker flag through the compiler.
18095 wl=$lt_lt_prog_compiler_wl_GCJ
18096
18097 # Object file suffix (normally "o").
18098 objext="$ac_objext"
18099
18100 # Old archive suffix (normally "a").
18101 libext="$libext"
18102
18103 # Shared library suffix (normally ".so").
18104 shrext_cmds='$shrext_cmds'
18105
18106 # Executable file suffix (normally "").
18107 exeext="$exeext"
18108
18109 # Additional compiler flags for building library objects.
18110 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18111 pic_mode=$pic_mode
18112
18113 # What is the maximum length of a command?
18114 max_cmd_len=$lt_cv_sys_max_cmd_len
18115
18116 # Does compiler simultaneously support -c and -o options?
18117 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18118
18119 # Must we lock files when doing compilation?
18120 need_locks=$lt_need_locks
18121
18122 # Do we need the lib prefix for modules?
18123 need_lib_prefix=$need_lib_prefix
18124
18125 # Do we need a version for libraries?
18126 need_version=$need_version
18127
18128 # Whether dlopen is supported.
18129 dlopen_support=$enable_dlopen
18130
18131 # Whether dlopen of programs is supported.
18132 dlopen_self=$enable_dlopen_self
18133
18134 # Whether dlopen of statically linked programs is supported.
18135 dlopen_self_static=$enable_dlopen_self_static
18136
18137 # Compiler flag to prevent dynamic linking.
18138 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18139
18140 # Compiler flag to turn off builtin functions.
18141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18142
18143 # Compiler flag to allow reflexive dlopens.
18144 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18145
18146 # Compiler flag to generate shared objects directly from archives.
18147 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18148
18149 # Compiler flag to generate thread-safe objects.
18150 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18151
18152 # Library versioning type.
18153 version_type=$version_type
18154
18155 # Format of library name prefix.
18156 libname_spec=$lt_libname_spec
18157
18158 # List of archive names.  First name is the real one, the rest are links.
18159 # The last name is the one that the linker finds with -lNAME.
18160 library_names_spec=$lt_library_names_spec
18161
18162 # The coded name of the library, if different from the real name.
18163 soname_spec=$lt_soname_spec
18164
18165 # Commands used to build and install an old-style archive.
18166 RANLIB=$lt_RANLIB
18167 old_archive_cmds=$lt_old_archive_cmds_GCJ
18168 old_postinstall_cmds=$lt_old_postinstall_cmds
18169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18170
18171 # Create an old-style archive from a shared archive.
18172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18173
18174 # Create a temporary old-style archive to link instead of a shared archive.
18175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18176
18177 # Commands used to build and install a shared archive.
18178 archive_cmds=$lt_archive_cmds_GCJ
18179 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18180 postinstall_cmds=$lt_postinstall_cmds
18181 postuninstall_cmds=$lt_postuninstall_cmds
18182
18183 # Commands used to build a loadable module (assumed same as above if empty)
18184 module_cmds=$lt_module_cmds_GCJ
18185 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18186
18187 # Commands to strip libraries.
18188 old_striplib=$lt_old_striplib
18189 striplib=$lt_striplib
18190
18191 # Dependencies to place before the objects being linked to create a
18192 # shared library.
18193 predep_objects=$lt_predep_objects_GCJ
18194
18195 # Dependencies to place after the objects being linked to create a
18196 # shared library.
18197 postdep_objects=$lt_postdep_objects_GCJ
18198
18199 # Dependencies to place before the objects being linked to create a
18200 # shared library.
18201 predeps=$lt_predeps_GCJ
18202
18203 # Dependencies to place after the objects being linked to create a
18204 # shared library.
18205 postdeps=$lt_postdeps_GCJ
18206
18207 # The library search path used internally by the compiler when linking
18208 # a shared library.
18209 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18210
18211 # Method to check whether dependent libraries are shared objects.
18212 deplibs_check_method=$lt_deplibs_check_method
18213
18214 # Command to use when deplibs_check_method == file_magic.
18215 file_magic_cmd=$lt_file_magic_cmd
18216
18217 # Flag that allows shared libraries with undefined symbols to be built.
18218 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18219
18220 # Flag that forces no undefined symbols.
18221 no_undefined_flag=$lt_no_undefined_flag_GCJ
18222
18223 # Commands used to finish a libtool library installation in a directory.
18224 finish_cmds=$lt_finish_cmds
18225
18226 # Same as above, but a single script fragment to be evaled but not shown.
18227 finish_eval=$lt_finish_eval
18228
18229 # Take the output of nm and produce a listing of raw symbols and C names.
18230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18231
18232 # Transform the output of nm in a proper C declaration
18233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18234
18235 # Transform the output of nm in a C name address pair
18236 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18237
18238 # This is the shared library runtime path variable.
18239 runpath_var=$runpath_var
18240
18241 # This is the shared library path variable.
18242 shlibpath_var=$shlibpath_var
18243
18244 # Is shlibpath searched before the hard-coded library search path?
18245 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18246
18247 # How to hardcode a shared library path into an executable.
18248 hardcode_action=$hardcode_action_GCJ
18249
18250 # Whether we should hardcode library paths into libraries.
18251 hardcode_into_libs=$hardcode_into_libs
18252
18253 # Flag to hardcode \$libdir into a binary during linking.
18254 # This must work even if \$libdir does not exist.
18255 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18256
18257 # If ld is used when linking, flag to hardcode \$libdir into
18258 # a binary during linking. This must work even if \$libdir does
18259 # not exist.
18260 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18261
18262 # Whether we need a single -rpath flag with a separated argument.
18263 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18264
18265 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18266 # resulting binary.
18267 hardcode_direct=$hardcode_direct_GCJ
18268
18269 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18270 # resulting binary.
18271 hardcode_minus_L=$hardcode_minus_L_GCJ
18272
18273 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18274 # the resulting binary.
18275 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18276
18277 # Set to yes if building a shared library automatically hardcodes DIR into the library
18278 # and all subsequent libraries and executables linked against it.
18279 hardcode_automatic=$hardcode_automatic_GCJ
18280
18281 # Variables whose values should be saved in libtool wrapper scripts and
18282 # restored at relink time.
18283 variables_saved_for_relink="$variables_saved_for_relink"
18284
18285 # Whether libtool must link a program against all its dependency libraries.
18286 link_all_deplibs=$link_all_deplibs_GCJ
18287
18288 # Compile-time system search path for libraries
18289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18290
18291 # Run-time system search path for libraries
18292 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18293
18294 # Fix the shell variable \$srcfile for the compiler.
18295 fix_srcfile_path="$fix_srcfile_path_GCJ"
18296
18297 # Set to yes if exported symbols are required.
18298 always_export_symbols=$always_export_symbols_GCJ
18299
18300 # The commands to list exported symbols.
18301 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18302
18303 # The commands to extract the exported symbol list from a shared archive.
18304 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18305
18306 # Symbols that should not be listed in the preloaded symbols.
18307 exclude_expsyms=$lt_exclude_expsyms_GCJ
18308
18309 # Symbols that must always be exported.
18310 include_expsyms=$lt_include_expsyms_GCJ
18311
18312 # ### END LIBTOOL TAG CONFIG: $tagname
18313
18314 __EOF__
18315
18316
18317 else
18318   # If there is no Makefile yet, we rely on a make rule to execute
18319   # `config.status --recheck' to rerun these tests and create the
18320   # libtool script then.
18321   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18322   if test -f "$ltmain_in"; then
18323     test -f Makefile && make "$ltmain"
18324   fi
18325 fi
18326
18327
18328 ac_ext=c
18329 ac_cpp='$CPP $CPPFLAGS'
18330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18333
18334 CC="$lt_save_CC"
18335
18336         else
18337           tagname=""
18338         fi
18339         ;;
18340
18341       RC)
18342
18343
18344
18345 # Source file extension for RC test sources.
18346 ac_ext=rc
18347
18348 # Object file extension for compiled RC test sources.
18349 objext=o
18350 objext_RC=$objext
18351
18352 # Code to be used in simple compile tests
18353 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18354
18355 # Code to be used in simple link tests
18356 lt_simple_link_test_code="$lt_simple_compile_test_code"
18357
18358 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18359
18360 # If no C compiler was specified, use CC.
18361 LTCC=${LTCC-"$CC"}
18362
18363 # If no C compiler flags were specified, use CFLAGS.
18364 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18365
18366 # Allow CC to be a program name with arguments.
18367 compiler=$CC
18368
18369
18370 # save warnings/boilerplate of simple test code
18371 ac_outfile=conftest.$ac_objext
18372 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18373 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18374 _lt_compiler_boilerplate=`cat conftest.err`
18375 $rm conftest*
18376
18377 ac_outfile=conftest.$ac_objext
18378 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18379 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18380 _lt_linker_boilerplate=`cat conftest.err`
18381 $rm conftest*
18382
18383
18384 # Allow CC to be a program name with arguments.
18385 lt_save_CC="$CC"
18386 CC=${RC-"windres"}
18387 compiler=$CC
18388 compiler_RC=$CC
18389 for cc_temp in $compiler""; do
18390   case $cc_temp in
18391     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18392     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18393     \-*) ;;
18394     *) break;;
18395   esac
18396 done
18397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18398
18399 lt_cv_prog_compiler_c_o_RC=yes
18400
18401 # The else clause should only fire when bootstrapping the
18402 # libtool distribution, otherwise you forgot to ship ltmain.sh
18403 # with your package, and you will get complaints that there are
18404 # no rules to generate ltmain.sh.
18405 if test -f "$ltmain"; then
18406   # See if we are running on zsh, and set the options which allow our commands through
18407   # without removal of \ escapes.
18408   if test -n "${ZSH_VERSION+set}" ; then
18409     setopt NO_GLOB_SUBST
18410   fi
18411   # Now quote all the things that may contain metacharacters while being
18412   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18413   # variables and quote the copies for generation of the libtool script.
18414   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18415     SED SHELL STRIP \
18416     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18417     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18418     deplibs_check_method reload_flag reload_cmds need_locks \
18419     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18420     lt_cv_sys_global_symbol_to_c_name_address \
18421     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18422     old_postinstall_cmds old_postuninstall_cmds \
18423     compiler_RC \
18424     CC_RC \
18425     LD_RC \
18426     lt_prog_compiler_wl_RC \
18427     lt_prog_compiler_pic_RC \
18428     lt_prog_compiler_static_RC \
18429     lt_prog_compiler_no_builtin_flag_RC \
18430     export_dynamic_flag_spec_RC \
18431     thread_safe_flag_spec_RC \
18432     whole_archive_flag_spec_RC \
18433     enable_shared_with_static_runtimes_RC \
18434     old_archive_cmds_RC \
18435     old_archive_from_new_cmds_RC \
18436     predep_objects_RC \
18437     postdep_objects_RC \
18438     predeps_RC \
18439     postdeps_RC \
18440     compiler_lib_search_path_RC \
18441     archive_cmds_RC \
18442     archive_expsym_cmds_RC \
18443     postinstall_cmds_RC \
18444     postuninstall_cmds_RC \
18445     old_archive_from_expsyms_cmds_RC \
18446     allow_undefined_flag_RC \
18447     no_undefined_flag_RC \
18448     export_symbols_cmds_RC \
18449     hardcode_libdir_flag_spec_RC \
18450     hardcode_libdir_flag_spec_ld_RC \
18451     hardcode_libdir_separator_RC \
18452     hardcode_automatic_RC \
18453     module_cmds_RC \
18454     module_expsym_cmds_RC \
18455     lt_cv_prog_compiler_c_o_RC \
18456     exclude_expsyms_RC \
18457     include_expsyms_RC; do
18458
18459     case $var in
18460     old_archive_cmds_RC | \
18461     old_archive_from_new_cmds_RC | \
18462     archive_cmds_RC | \
18463     archive_expsym_cmds_RC | \
18464     module_cmds_RC | \
18465     module_expsym_cmds_RC | \
18466     old_archive_from_expsyms_cmds_RC | \
18467     export_symbols_cmds_RC | \
18468     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18469     postinstall_cmds | postuninstall_cmds | \
18470     old_postinstall_cmds | old_postuninstall_cmds | \
18471     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18472       # Double-quote double-evaled strings.
18473       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18474       ;;
18475     *)
18476       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18477       ;;
18478     esac
18479   done
18480
18481   case $lt_echo in
18482   *'\$0 --fallback-echo"')
18483     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18484     ;;
18485   esac
18486
18487 cfgfile="$ofile"
18488
18489   cat <<__EOF__ >> "$cfgfile"
18490 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18491
18492 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18493
18494 # Shell to use when invoking shell scripts.
18495 SHELL=$lt_SHELL
18496
18497 # Whether or not to build shared libraries.
18498 build_libtool_libs=$enable_shared
18499
18500 # Whether or not to build static libraries.
18501 build_old_libs=$enable_static
18502
18503 # Whether or not to add -lc for building shared libraries.
18504 build_libtool_need_lc=$archive_cmds_need_lc_RC
18505
18506 # Whether or not to disallow shared libs when runtime libs are static
18507 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18508
18509 # Whether or not to optimize for fast installation.
18510 fast_install=$enable_fast_install
18511
18512 # The host system.
18513 host_alias=$host_alias
18514 host=$host
18515 host_os=$host_os
18516
18517 # The build system.
18518 build_alias=$build_alias
18519 build=$build
18520 build_os=$build_os
18521
18522 # An echo program that does not interpret backslashes.
18523 echo=$lt_echo
18524
18525 # The archiver.
18526 AR=$lt_AR
18527 AR_FLAGS=$lt_AR_FLAGS
18528
18529 # A C compiler.
18530 LTCC=$lt_LTCC
18531
18532 # LTCC compiler flags.
18533 LTCFLAGS=$lt_LTCFLAGS
18534
18535 # A language-specific compiler.
18536 CC=$lt_compiler_RC
18537
18538 # Is the compiler the GNU C compiler?
18539 with_gcc=$GCC_RC
18540
18541 # An ERE matcher.
18542 EGREP=$lt_EGREP
18543
18544 # The linker used to build libraries.
18545 LD=$lt_LD_RC
18546
18547 # Whether we need hard or soft links.
18548 LN_S=$lt_LN_S
18549
18550 # A BSD-compatible nm program.
18551 NM=$lt_NM
18552
18553 # A symbol stripping program
18554 STRIP=$lt_STRIP
18555
18556 # Used to examine libraries when file_magic_cmd begins "file"
18557 MAGIC_CMD=$MAGIC_CMD
18558
18559 # Used on cygwin: DLL creation program.
18560 DLLTOOL="$DLLTOOL"
18561
18562 # Used on cygwin: object dumper.
18563 OBJDUMP="$OBJDUMP"
18564
18565 # Used on cygwin: assembler.
18566 AS="$AS"
18567
18568 # The name of the directory that contains temporary libtool files.
18569 objdir=$objdir
18570
18571 # How to create reloadable object files.
18572 reload_flag=$lt_reload_flag
18573 reload_cmds=$lt_reload_cmds
18574
18575 # How to pass a linker flag through the compiler.
18576 wl=$lt_lt_prog_compiler_wl_RC
18577
18578 # Object file suffix (normally "o").
18579 objext="$ac_objext"
18580
18581 # Old archive suffix (normally "a").
18582 libext="$libext"
18583
18584 # Shared library suffix (normally ".so").
18585 shrext_cmds='$shrext_cmds'
18586
18587 # Executable file suffix (normally "").
18588 exeext="$exeext"
18589
18590 # Additional compiler flags for building library objects.
18591 pic_flag=$lt_lt_prog_compiler_pic_RC
18592 pic_mode=$pic_mode
18593
18594 # What is the maximum length of a command?
18595 max_cmd_len=$lt_cv_sys_max_cmd_len
18596
18597 # Does compiler simultaneously support -c and -o options?
18598 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18599
18600 # Must we lock files when doing compilation?
18601 need_locks=$lt_need_locks
18602
18603 # Do we need the lib prefix for modules?
18604 need_lib_prefix=$need_lib_prefix
18605
18606 # Do we need a version for libraries?
18607 need_version=$need_version
18608
18609 # Whether dlopen is supported.
18610 dlopen_support=$enable_dlopen
18611
18612 # Whether dlopen of programs is supported.
18613 dlopen_self=$enable_dlopen_self
18614
18615 # Whether dlopen of statically linked programs is supported.
18616 dlopen_self_static=$enable_dlopen_self_static
18617
18618 # Compiler flag to prevent dynamic linking.
18619 link_static_flag=$lt_lt_prog_compiler_static_RC
18620
18621 # Compiler flag to turn off builtin functions.
18622 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18623
18624 # Compiler flag to allow reflexive dlopens.
18625 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18626
18627 # Compiler flag to generate shared objects directly from archives.
18628 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18629
18630 # Compiler flag to generate thread-safe objects.
18631 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18632
18633 # Library versioning type.
18634 version_type=$version_type
18635
18636 # Format of library name prefix.
18637 libname_spec=$lt_libname_spec
18638
18639 # List of archive names.  First name is the real one, the rest are links.
18640 # The last name is the one that the linker finds with -lNAME.
18641 library_names_spec=$lt_library_names_spec
18642
18643 # The coded name of the library, if different from the real name.
18644 soname_spec=$lt_soname_spec
18645
18646 # Commands used to build and install an old-style archive.
18647 RANLIB=$lt_RANLIB
18648 old_archive_cmds=$lt_old_archive_cmds_RC
18649 old_postinstall_cmds=$lt_old_postinstall_cmds
18650 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18651
18652 # Create an old-style archive from a shared archive.
18653 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18654
18655 # Create a temporary old-style archive to link instead of a shared archive.
18656 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18657
18658 # Commands used to build and install a shared archive.
18659 archive_cmds=$lt_archive_cmds_RC
18660 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18661 postinstall_cmds=$lt_postinstall_cmds
18662 postuninstall_cmds=$lt_postuninstall_cmds
18663
18664 # Commands used to build a loadable module (assumed same as above if empty)
18665 module_cmds=$lt_module_cmds_RC
18666 module_expsym_cmds=$lt_module_expsym_cmds_RC
18667
18668 # Commands to strip libraries.
18669 old_striplib=$lt_old_striplib
18670 striplib=$lt_striplib
18671
18672 # Dependencies to place before the objects being linked to create a
18673 # shared library.
18674 predep_objects=$lt_predep_objects_RC
18675
18676 # Dependencies to place after the objects being linked to create a
18677 # shared library.
18678 postdep_objects=$lt_postdep_objects_RC
18679
18680 # Dependencies to place before the objects being linked to create a
18681 # shared library.
18682 predeps=$lt_predeps_RC
18683
18684 # Dependencies to place after the objects being linked to create a
18685 # shared library.
18686 postdeps=$lt_postdeps_RC
18687
18688 # The library search path used internally by the compiler when linking
18689 # a shared library.
18690 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18691
18692 # Method to check whether dependent libraries are shared objects.
18693 deplibs_check_method=$lt_deplibs_check_method
18694
18695 # Command to use when deplibs_check_method == file_magic.
18696 file_magic_cmd=$lt_file_magic_cmd
18697
18698 # Flag that allows shared libraries with undefined symbols to be built.
18699 allow_undefined_flag=$lt_allow_undefined_flag_RC
18700
18701 # Flag that forces no undefined symbols.
18702 no_undefined_flag=$lt_no_undefined_flag_RC
18703
18704 # Commands used to finish a libtool library installation in a directory.
18705 finish_cmds=$lt_finish_cmds
18706
18707 # Same as above, but a single script fragment to be evaled but not shown.
18708 finish_eval=$lt_finish_eval
18709
18710 # Take the output of nm and produce a listing of raw symbols and C names.
18711 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18712
18713 # Transform the output of nm in a proper C declaration
18714 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18715
18716 # Transform the output of nm in a C name address pair
18717 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18718
18719 # This is the shared library runtime path variable.
18720 runpath_var=$runpath_var
18721
18722 # This is the shared library path variable.
18723 shlibpath_var=$shlibpath_var
18724
18725 # Is shlibpath searched before the hard-coded library search path?
18726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18727
18728 # How to hardcode a shared library path into an executable.
18729 hardcode_action=$hardcode_action_RC
18730
18731 # Whether we should hardcode library paths into libraries.
18732 hardcode_into_libs=$hardcode_into_libs
18733
18734 # Flag to hardcode \$libdir into a binary during linking.
18735 # This must work even if \$libdir does not exist.
18736 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18737
18738 # If ld is used when linking, flag to hardcode \$libdir into
18739 # a binary during linking. This must work even if \$libdir does
18740 # not exist.
18741 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18742
18743 # Whether we need a single -rpath flag with a separated argument.
18744 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18745
18746 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18747 # resulting binary.
18748 hardcode_direct=$hardcode_direct_RC
18749
18750 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18751 # resulting binary.
18752 hardcode_minus_L=$hardcode_minus_L_RC
18753
18754 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18755 # the resulting binary.
18756 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18757
18758 # Set to yes if building a shared library automatically hardcodes DIR into the library
18759 # and all subsequent libraries and executables linked against it.
18760 hardcode_automatic=$hardcode_automatic_RC
18761
18762 # Variables whose values should be saved in libtool wrapper scripts and
18763 # restored at relink time.
18764 variables_saved_for_relink="$variables_saved_for_relink"
18765
18766 # Whether libtool must link a program against all its dependency libraries.
18767 link_all_deplibs=$link_all_deplibs_RC
18768
18769 # Compile-time system search path for libraries
18770 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18771
18772 # Run-time system search path for libraries
18773 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18774
18775 # Fix the shell variable \$srcfile for the compiler.
18776 fix_srcfile_path="$fix_srcfile_path_RC"
18777
18778 # Set to yes if exported symbols are required.
18779 always_export_symbols=$always_export_symbols_RC
18780
18781 # The commands to list exported symbols.
18782 export_symbols_cmds=$lt_export_symbols_cmds_RC
18783
18784 # The commands to extract the exported symbol list from a shared archive.
18785 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18786
18787 # Symbols that should not be listed in the preloaded symbols.
18788 exclude_expsyms=$lt_exclude_expsyms_RC
18789
18790 # Symbols that must always be exported.
18791 include_expsyms=$lt_include_expsyms_RC
18792
18793 # ### END LIBTOOL TAG CONFIG: $tagname
18794
18795 __EOF__
18796
18797
18798 else
18799   # If there is no Makefile yet, we rely on a make rule to execute
18800   # `config.status --recheck' to rerun these tests and create the
18801   # libtool script then.
18802   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18803   if test -f "$ltmain_in"; then
18804     test -f Makefile && make "$ltmain"
18805   fi
18806 fi
18807
18808
18809 ac_ext=c
18810 ac_cpp='$CPP $CPPFLAGS'
18811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18814
18815 CC="$lt_save_CC"
18816
18817         ;;
18818
18819       *)
18820         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18821 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18822    { (exit 1); exit 1; }; }
18823         ;;
18824       esac
18825
18826       # Append the new tag name to the list of available tags.
18827       if test -n "$tagname" ; then
18828       available_tags="$available_tags $tagname"
18829     fi
18830     fi
18831   done
18832   IFS="$lt_save_ifs"
18833
18834   # Now substitute the updated list of available tags.
18835   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18836     mv "${ofile}T" "$ofile"
18837     chmod +x "$ofile"
18838   else
18839     rm -f "${ofile}T"
18840     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18841 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18842    { (exit 1); exit 1; }; }
18843   fi
18844 fi
18845
18846
18847
18848 # This can be used to rebuild libtool when needed
18849 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18850
18851 # Always use our own libtool.
18852 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18853
18854 # Prevent multiple expansion
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876 ###############
18877 ## System checks
18878 ##
18879
18880   echo "$as_me:$LINENO: result: " >&5
18881 echo "${ECHO_T}" >&6
18882   echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
18883 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6
18884
18885 ac_ext=c
18886 ac_cpp='$CPP $CPPFLAGS'
18887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18890 if test -n "$ac_tool_prefix"; then
18891   for ac_prog in xlC gcc cc
18892   do
18893     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18895 echo "$as_me:$LINENO: checking for $ac_word" >&5
18896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18897 if test "${ac_cv_prog_CC+set}" = set; then
18898   echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900   if test -n "$CC"; then
18901   ac_cv_prog_CC="$CC" # Let the user override the test.
18902 else
18903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18904 for as_dir in $PATH
18905 do
18906   IFS=$as_save_IFS
18907   test -z "$as_dir" && as_dir=.
18908   for ac_exec_ext in '' $ac_executable_extensions; do
18909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18910     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18912     break 2
18913   fi
18914 done
18915 done
18916
18917 fi
18918 fi
18919 CC=$ac_cv_prog_CC
18920 if test -n "$CC"; then
18921   echo "$as_me:$LINENO: result: $CC" >&5
18922 echo "${ECHO_T}$CC" >&6
18923 else
18924   echo "$as_me:$LINENO: result: no" >&5
18925 echo "${ECHO_T}no" >&6
18926 fi
18927
18928     test -n "$CC" && break
18929   done
18930 fi
18931 if test -z "$CC"; then
18932   ac_ct_CC=$CC
18933   for ac_prog in xlC gcc cc
18934 do
18935   # Extract the first word of "$ac_prog", so it can be a program name with args.
18936 set dummy $ac_prog; ac_word=$2
18937 echo "$as_me:$LINENO: checking for $ac_word" >&5
18938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18940   echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942   if test -n "$ac_ct_CC"; then
18943   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18944 else
18945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18946 for as_dir in $PATH
18947 do
18948   IFS=$as_save_IFS
18949   test -z "$as_dir" && as_dir=.
18950   for ac_exec_ext in '' $ac_executable_extensions; do
18951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18952     ac_cv_prog_ac_ct_CC="$ac_prog"
18953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18954     break 2
18955   fi
18956 done
18957 done
18958
18959 fi
18960 fi
18961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18962 if test -n "$ac_ct_CC"; then
18963   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18964 echo "${ECHO_T}$ac_ct_CC" >&6
18965 else
18966   echo "$as_me:$LINENO: result: no" >&5
18967 echo "${ECHO_T}no" >&6
18968 fi
18969
18970   test -n "$ac_ct_CC" && break
18971 done
18972
18973   CC=$ac_ct_CC
18974 fi
18975
18976
18977 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18978 See \`config.log' for more details." >&5
18979 echo "$as_me: error: no acceptable C compiler found in \$PATH
18980 See \`config.log' for more details." >&2;}
18981    { (exit 1); exit 1; }; }
18982
18983 # Provide some information about the compiler.
18984 echo "$as_me:$LINENO:" \
18985      "checking for C compiler version" >&5
18986 ac_compiler=`set X $ac_compile; echo $2`
18987 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18988   (eval $ac_compiler --version </dev/null >&5) 2>&5
18989   ac_status=$?
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); }
18992 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18993   (eval $ac_compiler -v </dev/null >&5) 2>&5
18994   ac_status=$?
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); }
18997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18998   (eval $ac_compiler -V </dev/null >&5) 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); }
19002
19003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19006   echo $ECHO_N "(cached) $ECHO_C" >&6
19007 else
19008   cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h.  */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h.  */
19014
19015 int
19016 main ()
19017 {
19018 #ifndef __GNUC__
19019        choke me
19020 #endif
19021
19022   ;
19023   return 0;
19024 }
19025 _ACEOF
19026 rm -f conftest.$ac_objext
19027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19028   (eval $ac_compile) 2>conftest.er1
19029   ac_status=$?
19030   grep -v '^ *+' conftest.er1 >conftest.err
19031   rm -f conftest.er1
19032   cat conftest.err >&5
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); } &&
19035          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037   (eval $ac_try) 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); }; } &&
19041          { ac_try='test -s conftest.$ac_objext'
19042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043   (eval $ac_try) 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }; }; then
19047   ac_compiler_gnu=yes
19048 else
19049   echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19051
19052 ac_compiler_gnu=no
19053 fi
19054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19056
19057 fi
19058 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19060 GCC=`test $ac_compiler_gnu = yes && echo yes`
19061 ac_test_CFLAGS=${CFLAGS+set}
19062 ac_save_CFLAGS=$CFLAGS
19063 CFLAGS="-g"
19064 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19066 if test "${ac_cv_prog_cc_g+set}" = set; then
19067   echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069   cat >conftest.$ac_ext <<_ACEOF
19070 /* confdefs.h.  */
19071 _ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h.  */
19075
19076 int
19077 main ()
19078 {
19079
19080   ;
19081   return 0;
19082 }
19083 _ACEOF
19084 rm -f conftest.$ac_objext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086   (eval $ac_compile) 2>conftest.er1
19087   ac_status=$?
19088   grep -v '^ *+' conftest.er1 >conftest.err
19089   rm -f conftest.er1
19090   cat conftest.err >&5
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); } &&
19093          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095   (eval $ac_try) 2>&5
19096   ac_status=$?
19097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098   (exit $ac_status); }; } &&
19099          { ac_try='test -s conftest.$ac_objext'
19100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101   (eval $ac_try) 2>&5
19102   ac_status=$?
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); }; }; then
19105   ac_cv_prog_cc_g=yes
19106 else
19107   echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110 ac_cv_prog_cc_g=no
19111 fi
19112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19113 fi
19114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19116 if test "$ac_test_CFLAGS" = set; then
19117   CFLAGS=$ac_save_CFLAGS
19118 elif test $ac_cv_prog_cc_g = yes; then
19119   if test "$GCC" = yes; then
19120     CFLAGS="-g -O2"
19121   else
19122     CFLAGS="-g"
19123   fi
19124 else
19125   if test "$GCC" = yes; then
19126     CFLAGS="-O2"
19127   else
19128     CFLAGS=
19129   fi
19130 fi
19131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19134   echo $ECHO_N "(cached) $ECHO_C" >&6
19135 else
19136   ac_cv_prog_cc_stdc=no
19137 ac_save_CC=$CC
19138 cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h.  */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h.  */
19144 #include <stdarg.h>
19145 #include <stdio.h>
19146 #include <sys/types.h>
19147 #include <sys/stat.h>
19148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19149 struct buf { int x; };
19150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19151 static char *e (p, i)
19152      char **p;
19153      int i;
19154 {
19155   return p[i];
19156 }
19157 static char *f (char * (*g) (char **, int), char **p, ...)
19158 {
19159   char *s;
19160   va_list v;
19161   va_start (v,p);
19162   s = g (p, va_arg (v,int));
19163   va_end (v);
19164   return s;
19165 }
19166
19167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19168    function prototypes and stuff, but not '\xHH' hex character constants.
19169    These don't provoke an error unfortunately, instead are silently treated
19170    as 'x'.  The following induces an error, until -std1 is added to get
19171    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19172    array size at least.  It's necessary to write '\x00'==0 to get something
19173    that's true only with -std1.  */
19174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19175
19176 int test (int i, double x);
19177 struct s1 {int (*f) (int a);};
19178 struct s2 {int (*f) (double a);};
19179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19180 int argc;
19181 char **argv;
19182 int
19183 main ()
19184 {
19185 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 # Don't try gcc -ansi; that turns off useful extensions and
19191 # breaks some systems' header files.
19192 # AIX                   -qlanglvl=ansi
19193 # Ultrix and OSF/1      -std1
19194 # HP-UX 10.20 and later -Ae
19195 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19196 # SVR4                  -Xc -D__EXTENSIONS__
19197 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19198 do
19199   CC="$ac_save_CC $ac_arg"
19200   rm -f conftest.$ac_objext
19201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19202   (eval $ac_compile) 2>conftest.er1
19203   ac_status=$?
19204   grep -v '^ *+' conftest.er1 >conftest.err
19205   rm -f conftest.er1
19206   cat conftest.err >&5
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); } &&
19209          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211   (eval $ac_try) 2>&5
19212   ac_status=$?
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); }; } &&
19215          { ac_try='test -s conftest.$ac_objext'
19216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217   (eval $ac_try) 2>&5
19218   ac_status=$?
19219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); }; }; then
19221   ac_cv_prog_cc_stdc=$ac_arg
19222 break
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227 fi
19228 rm -f conftest.err conftest.$ac_objext
19229 done
19230 rm -f conftest.$ac_ext conftest.$ac_objext
19231 CC=$ac_save_CC
19232
19233 fi
19234
19235 case "x$ac_cv_prog_cc_stdc" in
19236   x|xno)
19237     echo "$as_me:$LINENO: result: none needed" >&5
19238 echo "${ECHO_T}none needed" >&6 ;;
19239   *)
19240     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19241 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19242     CC="$CC $ac_cv_prog_cc_stdc" ;;
19243 esac
19244
19245 # Some people use a C++ compiler to compile C.  Since we use `exit',
19246 # in C++ we need to declare it.  In case someone uses the same compiler
19247 # for both compiling C and C++ we need to have the C++ compiler decide
19248 # the declaration of exit, since it's the most demanding environment.
19249 cat >conftest.$ac_ext <<_ACEOF
19250 #ifndef __cplusplus
19251   choke me
19252 #endif
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19256   (eval $ac_compile) 2>conftest.er1
19257   ac_status=$?
19258   grep -v '^ *+' conftest.er1 >conftest.err
19259   rm -f conftest.er1
19260   cat conftest.err >&5
19261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); } &&
19263          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265   (eval $ac_try) 2>&5
19266   ac_status=$?
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); }; } &&
19269          { ac_try='test -s conftest.$ac_objext'
19270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271   (eval $ac_try) 2>&5
19272   ac_status=$?
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); }; }; then
19275   for ac_declaration in \
19276    '' \
19277    'extern "C" void std::exit (int) throw (); using std::exit;' \
19278    'extern "C" void std::exit (int); using std::exit;' \
19279    'extern "C" void exit (int) throw ();' \
19280    'extern "C" void exit (int);' \
19281    'void exit (int);'
19282 do
19283   cat >conftest.$ac_ext <<_ACEOF
19284 /* confdefs.h.  */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h.  */
19289 $ac_declaration
19290 #include <stdlib.h>
19291 int
19292 main ()
19293 {
19294 exit (42);
19295   ;
19296   return 0;
19297 }
19298 _ACEOF
19299 rm -f conftest.$ac_objext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19301   (eval $ac_compile) 2>conftest.er1
19302   ac_status=$?
19303   grep -v '^ *+' conftest.er1 >conftest.err
19304   rm -f conftest.er1
19305   cat conftest.err >&5
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); } &&
19308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310   (eval $ac_try) 2>&5
19311   ac_status=$?
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); }; } &&
19314          { ac_try='test -s conftest.$ac_objext'
19315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316   (eval $ac_try) 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); }; }; then
19320   :
19321 else
19322   echo "$as_me: failed program was:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19324
19325 continue
19326 fi
19327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19328   cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h.  */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h.  */
19334 $ac_declaration
19335 int
19336 main ()
19337 {
19338 exit (42);
19339   ;
19340   return 0;
19341 }
19342 _ACEOF
19343 rm -f conftest.$ac_objext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345   (eval $ac_compile) 2>conftest.er1
19346   ac_status=$?
19347   grep -v '^ *+' conftest.er1 >conftest.err
19348   rm -f conftest.er1
19349   cat conftest.err >&5
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); } &&
19352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354   (eval $ac_try) 2>&5
19355   ac_status=$?
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); }; } &&
19358          { ac_try='test -s conftest.$ac_objext'
19359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360   (eval $ac_try) 2>&5
19361   ac_status=$?
19362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363   (exit $ac_status); }; }; then
19364   break
19365 else
19366   echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19368
19369 fi
19370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19371 done
19372 rm -f conftest*
19373 if test -n "$ac_declaration"; then
19374   echo '#ifdef __cplusplus' >>confdefs.h
19375   echo $ac_declaration      >>confdefs.h
19376   echo '#endif'             >>confdefs.h
19377 fi
19378
19379 else
19380   echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 fi
19384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19385 ac_ext=c
19386 ac_cpp='$CPP $CPPFLAGS'
19387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390
19391 depcc="$CC"   am_compiler_list=
19392
19393 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19394 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19395 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19396   echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19399   # We make a subdir and do the tests there.  Otherwise we can end up
19400   # making bogus files that we don't know about and never remove.  For
19401   # instance it was reported that on HP-UX the gcc test will end up
19402   # making a dummy file named `D' -- because `-MD' means `put the output
19403   # in D'.
19404   mkdir conftest.dir
19405   # Copy depcomp to subdir because otherwise we won't find it if we're
19406   # using a relative directory.
19407   cp "$am_depcomp" conftest.dir
19408   cd conftest.dir
19409   # We will build objects and dependencies in a subdirectory because
19410   # it helps to detect inapplicable dependency modes.  For instance
19411   # both Tru64's cc and ICC support -MD to output dependencies as a
19412   # side effect of compilation, but ICC will put the dependencies in
19413   # the current directory while Tru64 will put them in the object
19414   # directory.
19415   mkdir sub
19416
19417   am_cv_CC_dependencies_compiler_type=none
19418   if test "$am_compiler_list" = ""; then
19419      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19420   fi
19421   for depmode in $am_compiler_list; do
19422     # Setup a source with many dependencies, because some compilers
19423     # like to wrap large dependency lists on column 80 (with \), and
19424     # we should not choose a depcomp mode which is confused by this.
19425     #
19426     # We need to recreate these files for each test, as the compiler may
19427     # overwrite some of them when testing with obscure command lines.
19428     # This happens at least with the AIX C compiler.
19429     : > sub/conftest.c
19430     for i in 1 2 3 4 5 6; do
19431       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19432       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19433       # Solaris 8's {/usr,}/bin/sh.
19434       touch sub/conftst$i.h
19435     done
19436     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19437
19438     case $depmode in
19439     nosideeffect)
19440       # after this tag, mechanisms are not by side-effect, so they'll
19441       # only be used when explicitly requested
19442       if test "x$enable_dependency_tracking" = xyes; then
19443         continue
19444       else
19445         break
19446       fi
19447       ;;
19448     none) break ;;
19449     esac
19450     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19451     # mode.  It turns out that the SunPro C++ compiler does not properly
19452     # handle `-M -o', and we need to detect this.
19453     if depmode=$depmode \
19454        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19455        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19456        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19457          >/dev/null 2>conftest.err &&
19458        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19459        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19460        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19461       # icc doesn't choke on unknown options, it will just issue warnings
19462       # or remarks (even with -Werror).  So we grep stderr for any message
19463       # that says an option was ignored or not supported.
19464       # When given -MP, icc 7.0 and 7.1 complain thusly:
19465       #   icc: Command line warning: ignoring option '-M'; no argument required
19466       # The diagnosis changed in icc 8.0:
19467       #   icc: Command line remark: option '-MP' not supported
19468       if (grep 'ignoring option' conftest.err ||
19469           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19470         am_cv_CC_dependencies_compiler_type=$depmode
19471         break
19472       fi
19473     fi
19474   done
19475
19476   cd ..
19477   rm -rf conftest.dir
19478 else
19479   am_cv_CC_dependencies_compiler_type=none
19480 fi
19481
19482 fi
19483 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19484 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19485 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19486
19487
19488
19489 if
19490   test "x$enable_dependency_tracking" != xno \
19491   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19492   am__fastdepCC_TRUE=
19493   am__fastdepCC_FALSE='#'
19494 else
19495   am__fastdepCC_TRUE='#'
19496   am__fastdepCC_FALSE=
19497 fi
19498
19499
19500 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19501 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19502 # Just in case
19503 sleep 1
19504 echo timestamp > conftest.file
19505 # Do `set' in a subshell so we don't clobber the current shell's
19506 # arguments.  Must try -L first in case configure is actually a
19507 # symlink; some systems play weird games with the mod time of symlinks
19508 # (eg FreeBSD returns the mod time of the symlink's containing
19509 # directory).
19510 if (
19511    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19512    if test "$*" = "X"; then
19513       # -L didn't work.
19514       set X `ls -t $srcdir/configure conftest.file`
19515    fi
19516    rm -f conftest.file
19517    if test "$*" != "X $srcdir/configure conftest.file" \
19518       && test "$*" != "X conftest.file $srcdir/configure"; then
19519
19520       # If neither matched, then we have a broken ls.  This can happen
19521       # if, for instance, CONFIG_SHELL is bash and it inherits a
19522       # broken ls alias from the environment.  This has actually
19523       # happened.  Such a system could not be considered "sane".
19524       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19525 alias in your environment" >&5
19526 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19527 alias in your environment" >&2;}
19528    { (exit 1); exit 1; }; }
19529    fi
19530
19531    test "$2" = conftest.file
19532    )
19533 then
19534    # Ok.
19535    :
19536 else
19537    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19538 Check your system clock" >&5
19539 echo "$as_me: error: newly created file is older than distributed files!
19540 Check your system clock" >&2;}
19541    { (exit 1); exit 1; }; }
19542 fi
19543 echo "$as_me:$LINENO: result: yes" >&5
19544 echo "${ECHO_T}yes" >&6
19545 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19546 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19547 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19548 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19549   echo $ECHO_N "(cached) $ECHO_C" >&6
19550 else
19551   cat >conftest.make <<\_ACEOF
19552 all:
19553         @echo 'ac_maketemp="$(MAKE)"'
19554 _ACEOF
19555 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19556 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19557 if test -n "$ac_maketemp"; then
19558   eval ac_cv_prog_make_${ac_make}_set=yes
19559 else
19560   eval ac_cv_prog_make_${ac_make}_set=no
19561 fi
19562 rm -f conftest.make
19563 fi
19564 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19565   echo "$as_me:$LINENO: result: yes" >&5
19566 echo "${ECHO_T}yes" >&6
19567   SET_MAKE=
19568 else
19569   echo "$as_me:$LINENO: result: no" >&5
19570 echo "${ECHO_T}no" >&6
19571   SET_MAKE="MAKE=${MAKE-make}"
19572 fi
19573
19574
19575 echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
19576 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6
19577 if test "$cross_compiling" = yes; then
19578   echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
19579 echo "${ECHO_T}assuming the worse in cross-compilation" >&6
19580 else
19581   cat >conftest.$ac_ext <<_ACEOF
19582 /* confdefs.h.  */
19583 _ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h.  */
19587 #include <stdio.h>
19588 int
19589 main ()
19590 {
19591 printf("%s",NULL);
19592   ;
19593   return 0;
19594 }
19595 _ACEOF
19596 rm -f conftest$ac_exeext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19598   (eval $ac_link) 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603   (eval $ac_try) 2>&5
19604   ac_status=$?
19605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606   (exit $ac_status); }; }; then
19607
19608 cat >>confdefs.h <<\_ACEOF
19609 #define PRINTF_NULL_WORKING 1
19610 _ACEOF
19611
19612               echo "$as_me:$LINENO: result: yes" >&5
19613 echo "${ECHO_T}yes" >&6
19614 else
19615   echo "$as_me: program exited with status $ac_status" >&5
19616 echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19618
19619 ( exit $ac_status )
19620 echo "$as_me:$LINENO: result: no" >&5
19621 echo "${ECHO_T}no" >&6
19622 fi
19623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19624 fi
19625
19626
19627     echo "$as_me:$LINENO: checking for va_copy() function" >&5
19628 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6
19629     if test "${ac_cv_va_copy+set}" = set; then
19630   echo $ECHO_N "(cached) $ECHO_C" >&6
19631 else
19632
19633     ac_cv_va_copy=""
19634
19635
19636
19637     if test ".$ac_cv_va_copy" = .; then
19638         if test "$cross_compiling" = yes; then
19639   ac_cv_va_copy="C99"
19640 else
19641   cat >conftest.$ac_ext <<_ACEOF
19642 /* confdefs.h.  */
19643 _ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h.  */
19647
19648 #include <stdlib.h>
19649 #include <stdarg.h>
19650 #include <string.h>
19651 #define DO_VA_COPY(d, s) va_copy((d), (s))
19652 void test(char *str, ...)
19653 {
19654     va_list ap, ap2;
19655     int i;
19656     va_start(ap, str);
19657     DO_VA_COPY(ap2, ap);
19658     for (i = 1; i <= 9; i++) {
19659         int k = (int)va_arg(ap, int);
19660         if (k != i)
19661             abort();
19662     }
19663     DO_VA_COPY(ap, ap2);
19664     for (i = 1; i <= 9; i++) {
19665         int k = (int)va_arg(ap, int);
19666         if (k != i)
19667             abort();
19668     }
19669     va_end(ap);
19670 }
19671 int main(int argc, char *argv[])
19672 {
19673     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19674     exit(0);
19675 }
19676
19677 _ACEOF
19678 rm -f conftest$ac_exeext
19679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19680   (eval $ac_link) 2>&5
19681   ac_status=$?
19682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685   (eval $ac_try) 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }; }; then
19689   ac_cv_va_copy="C99"
19690 else
19691   echo "$as_me: program exited with status $ac_status" >&5
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19694
19695 fi
19696 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19697 fi
19698             fi
19699
19700
19701
19702
19703     if test ".$ac_cv_va_copy" = .; then
19704         if test "$cross_compiling" = yes; then
19705   ac_cv_va_copy="GCM"
19706 else
19707   cat >conftest.$ac_ext <<_ACEOF
19708 /* confdefs.h.  */
19709 _ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h.  */
19713
19714 #include <stdlib.h>
19715 #include <stdarg.h>
19716 #include <string.h>
19717 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
19718 void test(char *str, ...)
19719 {
19720     va_list ap, ap2;
19721     int i;
19722     va_start(ap, str);
19723     DO_VA_COPY(ap2, ap);
19724     for (i = 1; i <= 9; i++) {
19725         int k = (int)va_arg(ap, int);
19726         if (k != i)
19727             abort();
19728     }
19729     DO_VA_COPY(ap, ap2);
19730     for (i = 1; i <= 9; i++) {
19731         int k = (int)va_arg(ap, int);
19732         if (k != i)
19733             abort();
19734     }
19735     va_end(ap);
19736 }
19737 int main(int argc, char *argv[])
19738 {
19739     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19740     exit(0);
19741 }
19742
19743 _ACEOF
19744 rm -f conftest$ac_exeext
19745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19746   (eval $ac_link) 2>&5
19747   ac_status=$?
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751   (eval $ac_try) 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; }; then
19755   ac_cv_va_copy="GCM"
19756 else
19757   echo "$as_me: program exited with status $ac_status" >&5
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761 fi
19762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19763 fi
19764             fi
19765
19766
19767
19768
19769     if test ".$ac_cv_va_copy" = .; then
19770         if test "$cross_compiling" = yes; then
19771   ac_cv_va_copy="GCH"
19772 else
19773   cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h.  */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h.  */
19779
19780 #include <stdlib.h>
19781 #include <stdarg.h>
19782 #include <string.h>
19783 #define DO_VA_COPY(d, s) __va_copy((d), (s))
19784 void test(char *str, ...)
19785 {
19786     va_list ap, ap2;
19787     int i;
19788     va_start(ap, str);
19789     DO_VA_COPY(ap2, ap);
19790     for (i = 1; i <= 9; i++) {
19791         int k = (int)va_arg(ap, int);
19792         if (k != i)
19793             abort();
19794     }
19795     DO_VA_COPY(ap, ap2);
19796     for (i = 1; i <= 9; i++) {
19797         int k = (int)va_arg(ap, int);
19798         if (k != i)
19799             abort();
19800     }
19801     va_end(ap);
19802 }
19803 int main(int argc, char *argv[])
19804 {
19805     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19806     exit(0);
19807 }
19808
19809 _ACEOF
19810 rm -f conftest$ac_exeext
19811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812   (eval $ac_link) 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817   (eval $ac_try) 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; }; then
19821   ac_cv_va_copy="GCH"
19822 else
19823   echo "$as_me: program exited with status $ac_status" >&5
19824 echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827 fi
19828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19829 fi
19830             fi
19831
19832
19833
19834
19835     if test ".$ac_cv_va_copy" = .; then
19836         if test "$cross_compiling" = yes; then
19837   ac_cv_va_copy="GCB"
19838 else
19839   cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h.  */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h.  */
19845
19846 #include <stdlib.h>
19847 #include <stdarg.h>
19848 #include <string.h>
19849 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
19850 void test(char *str, ...)
19851 {
19852     va_list ap, ap2;
19853     int i;
19854     va_start(ap, str);
19855     DO_VA_COPY(ap2, ap);
19856     for (i = 1; i <= 9; i++) {
19857         int k = (int)va_arg(ap, int);
19858         if (k != i)
19859             abort();
19860     }
19861     DO_VA_COPY(ap, ap2);
19862     for (i = 1; i <= 9; i++) {
19863         int k = (int)va_arg(ap, int);
19864         if (k != i)
19865             abort();
19866     }
19867     va_end(ap);
19868 }
19869 int main(int argc, char *argv[])
19870 {
19871     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19872     exit(0);
19873 }
19874
19875 _ACEOF
19876 rm -f conftest$ac_exeext
19877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19878   (eval $ac_link) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883   (eval $ac_try) 2>&5
19884   ac_status=$?
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); }; }; then
19887   ac_cv_va_copy="GCB"
19888 else
19889   echo "$as_me: program exited with status $ac_status" >&5
19890 echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 fi
19894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19895 fi
19896             fi
19897
19898
19899
19900
19901     if test ".$ac_cv_va_copy" = .; then
19902         if test "$cross_compiling" = yes; then
19903   ac_cv_va_copy="ASS"
19904 else
19905   cat >conftest.$ac_ext <<_ACEOF
19906 /* confdefs.h.  */
19907 _ACEOF
19908 cat confdefs.h >>conftest.$ac_ext
19909 cat >>conftest.$ac_ext <<_ACEOF
19910 /* end confdefs.h.  */
19911
19912 #include <stdlib.h>
19913 #include <stdarg.h>
19914 #include <string.h>
19915 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
19916 void test(char *str, ...)
19917 {
19918     va_list ap, ap2;
19919     int i;
19920     va_start(ap, str);
19921     DO_VA_COPY(ap2, ap);
19922     for (i = 1; i <= 9; i++) {
19923         int k = (int)va_arg(ap, int);
19924         if (k != i)
19925             abort();
19926     }
19927     DO_VA_COPY(ap, ap2);
19928     for (i = 1; i <= 9; i++) {
19929         int k = (int)va_arg(ap, int);
19930         if (k != i)
19931             abort();
19932     }
19933     va_end(ap);
19934 }
19935 int main(int argc, char *argv[])
19936 {
19937     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19938     exit(0);
19939 }
19940
19941 _ACEOF
19942 rm -f conftest$ac_exeext
19943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19944   (eval $ac_link) 2>&5
19945   ac_status=$?
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949   (eval $ac_try) 2>&5
19950   ac_status=$?
19951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952   (exit $ac_status); }; }; then
19953   ac_cv_va_copy="ASS"
19954 else
19955   echo "$as_me: program exited with status $ac_status" >&5
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19958
19959 fi
19960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19961 fi
19962             fi
19963
19964
19965
19966
19967     if test ".$ac_cv_va_copy" = .; then
19968         if test "$cross_compiling" = yes; then
19969   ac_cv_va_copy="ASP"
19970 else
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
19978 #include <stdlib.h>
19979 #include <stdarg.h>
19980 #include <string.h>
19981 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
19982 void test(char *str, ...)
19983 {
19984     va_list ap, ap2;
19985     int i;
19986     va_start(ap, str);
19987     DO_VA_COPY(ap2, ap);
19988     for (i = 1; i <= 9; i++) {
19989         int k = (int)va_arg(ap, int);
19990         if (k != i)
19991             abort();
19992     }
19993     DO_VA_COPY(ap, ap2);
19994     for (i = 1; i <= 9; i++) {
19995         int k = (int)va_arg(ap, int);
19996         if (k != i)
19997             abort();
19998     }
19999     va_end(ap);
20000 }
20001 int main(int argc, char *argv[])
20002 {
20003     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20004     exit(0);
20005 }
20006
20007 _ACEOF
20008 rm -f conftest$ac_exeext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20010   (eval $ac_link) 2>&5
20011   ac_status=$?
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015   (eval $ac_try) 2>&5
20016   ac_status=$?
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); }; }; then
20019   ac_cv_va_copy="ASP"
20020 else
20021   echo "$as_me: program exited with status $ac_status" >&5
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 fi
20026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20027 fi
20028             fi
20029
20030
20031
20032
20033     if test ".$ac_cv_va_copy" = .; then
20034         if test "$cross_compiling" = yes; then
20035   ac_cv_va_copy="CPS"
20036 else
20037   cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h.  */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h.  */
20043
20044 #include <stdlib.h>
20045 #include <stdarg.h>
20046 #include <string.h>
20047 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20048 void test(char *str, ...)
20049 {
20050     va_list ap, ap2;
20051     int i;
20052     va_start(ap, str);
20053     DO_VA_COPY(ap2, ap);
20054     for (i = 1; i <= 9; i++) {
20055         int k = (int)va_arg(ap, int);
20056         if (k != i)
20057             abort();
20058     }
20059     DO_VA_COPY(ap, ap2);
20060     for (i = 1; i <= 9; i++) {
20061         int k = (int)va_arg(ap, int);
20062         if (k != i)
20063             abort();
20064     }
20065     va_end(ap);
20066 }
20067 int main(int argc, char *argv[])
20068 {
20069     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20070     exit(0);
20071 }
20072
20073 _ACEOF
20074 rm -f conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076   (eval $ac_link) 2>&5
20077   ac_status=$?
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081   (eval $ac_try) 2>&5
20082   ac_status=$?
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); }; }; then
20085   ac_cv_va_copy="CPS"
20086 else
20087   echo "$as_me: program exited with status $ac_status" >&5
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091 fi
20092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20093 fi
20094             fi
20095
20096
20097
20098
20099     if test ".$ac_cv_va_copy" = .; then
20100         if test "$cross_compiling" = yes; then
20101   ac_cv_va_copy="CPP"
20102 else
20103   cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109
20110 #include <stdlib.h>
20111 #include <stdarg.h>
20112 #include <string.h>
20113 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20114 void test(char *str, ...)
20115 {
20116     va_list ap, ap2;
20117     int i;
20118     va_start(ap, str);
20119     DO_VA_COPY(ap2, ap);
20120     for (i = 1; i <= 9; i++) {
20121         int k = (int)va_arg(ap, int);
20122         if (k != i)
20123             abort();
20124     }
20125     DO_VA_COPY(ap, ap2);
20126     for (i = 1; i <= 9; i++) {
20127         int k = (int)va_arg(ap, int);
20128         if (k != i)
20129             abort();
20130     }
20131     va_end(ap);
20132 }
20133 int main(int argc, char *argv[])
20134 {
20135     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20136     exit(0);
20137 }
20138
20139 _ACEOF
20140 rm -f conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142   (eval $ac_link) 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147   (eval $ac_try) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; }; then
20151   ac_cv_va_copy="CPP"
20152 else
20153   echo "$as_me: program exited with status $ac_status" >&5
20154 echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20156
20157 fi
20158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20159 fi
20160             fi
20161
20162     if test ".$ac_cv_va_copy" = .; then
20163         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20164 echo "$as_me: error: no working implementation found" >&2;}
20165    { (exit 1); exit 1; }; }
20166     fi
20167
20168 fi
20169
20170     if test ".$ac_cv_va_copy" = ".C99"; then
20171
20172 cat >>confdefs.h <<\_ACEOF
20173 #define HAVE_VA_COPY 1
20174 _ACEOF
20175
20176   fi
20177
20178 cat >>confdefs.h <<_ACEOF
20179 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20180 _ACEOF
20181
20182
20183
20184     if test ".$ac_cv_va_copy" = ".C99"; then
20185       echo "$as_me:$LINENO: result: yes" >&5
20186 echo "${ECHO_T}yes" >&6
20187   else
20188       echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20189 echo "${ECHO_T}no (using fallback implementation)" >&6
20190   fi
20191
20192
20193 # Checks for header files.
20194 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20196 if test "${ac_cv_header_stdc+set}" = set; then
20197   echo $ECHO_N "(cached) $ECHO_C" >&6
20198 else
20199   cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205 #include <stdlib.h>
20206 #include <stdarg.h>
20207 #include <string.h>
20208 #include <float.h>
20209
20210 int
20211 main ()
20212 {
20213
20214   ;
20215   return 0;
20216 }
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20220   (eval $ac_compile) 2>conftest.er1
20221   ac_status=$?
20222   grep -v '^ *+' conftest.er1 >conftest.err
20223   rm -f conftest.er1
20224   cat conftest.err >&5
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); } &&
20227          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229   (eval $ac_try) 2>&5
20230   ac_status=$?
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); }; } &&
20233          { ac_try='test -s conftest.$ac_objext'
20234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235   (eval $ac_try) 2>&5
20236   ac_status=$?
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); }; }; then
20239   ac_cv_header_stdc=yes
20240 else
20241   echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.$ac_ext >&5
20243
20244 ac_cv_header_stdc=no
20245 fi
20246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20247
20248 if test $ac_cv_header_stdc = yes; then
20249   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20250   cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h.  */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h.  */
20256 #include <string.h>
20257
20258 _ACEOF
20259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20260   $EGREP "memchr" >/dev/null 2>&1; then
20261   :
20262 else
20263   ac_cv_header_stdc=no
20264 fi
20265 rm -f conftest*
20266
20267 fi
20268
20269 if test $ac_cv_header_stdc = yes; then
20270   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20271   cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h.  */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h.  */
20277 #include <stdlib.h>
20278
20279 _ACEOF
20280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20281   $EGREP "free" >/dev/null 2>&1; then
20282   :
20283 else
20284   ac_cv_header_stdc=no
20285 fi
20286 rm -f conftest*
20287
20288 fi
20289
20290 if test $ac_cv_header_stdc = yes; then
20291   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20292   if test "$cross_compiling" = yes; then
20293   :
20294 else
20295   cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301 #include <ctype.h>
20302 #if ((' ' & 0x0FF) == 0x020)
20303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20305 #else
20306 # define ISLOWER(c) \
20307                    (('a' <= (c) && (c) <= 'i') \
20308                      || ('j' <= (c) && (c) <= 'r') \
20309                      || ('s' <= (c) && (c) <= 'z'))
20310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20311 #endif
20312
20313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20314 int
20315 main ()
20316 {
20317   int i;
20318   for (i = 0; i < 256; i++)
20319     if (XOR (islower (i), ISLOWER (i))
20320         || toupper (i) != TOUPPER (i))
20321       exit(2);
20322   exit (0);
20323 }
20324 _ACEOF
20325 rm -f conftest$ac_exeext
20326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20327   (eval $ac_link) 2>&5
20328   ac_status=$?
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332   (eval $ac_try) 2>&5
20333   ac_status=$?
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); }; }; then
20336   :
20337 else
20338   echo "$as_me: program exited with status $ac_status" >&5
20339 echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20341
20342 ( exit $ac_status )
20343 ac_cv_header_stdc=no
20344 fi
20345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20346 fi
20347 fi
20348 fi
20349 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20350 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20351 if test $ac_cv_header_stdc = yes; then
20352
20353 cat >>confdefs.h <<\_ACEOF
20354 #define STDC_HEADERS 1
20355 _ACEOF
20356
20357 fi
20358
20359 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20360 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20361 if test "${ac_cv_header_time+set}" = set; then
20362   echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364   cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h.  */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h.  */
20370 #include <sys/types.h>
20371 #include <sys/time.h>
20372 #include <time.h>
20373
20374 int
20375 main ()
20376 {
20377 if ((struct tm *) 0)
20378 return 0;
20379   ;
20380   return 0;
20381 }
20382 _ACEOF
20383 rm -f conftest.$ac_objext
20384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20385   (eval $ac_compile) 2>conftest.er1
20386   ac_status=$?
20387   grep -v '^ *+' conftest.er1 >conftest.err
20388   rm -f conftest.er1
20389   cat conftest.err >&5
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); } &&
20392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394   (eval $ac_try) 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); }; } &&
20398          { ac_try='test -s conftest.$ac_objext'
20399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400   (eval $ac_try) 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; }; then
20404   ac_cv_header_time=yes
20405 else
20406   echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20408
20409 ac_cv_header_time=no
20410 fi
20411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20412 fi
20413 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20414 echo "${ECHO_T}$ac_cv_header_time" >&6
20415 if test $ac_cv_header_time = yes; then
20416
20417 cat >>confdefs.h <<\_ACEOF
20418 #define TIME_WITH_SYS_TIME 1
20419 _ACEOF
20420
20421 fi
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433 for ac_header in sys/socket.h \
20434                   sys/stat.h \
20435                   windows.h winsock.h winsock2.h \
20436                   sys/time.h \
20437                   errno.h unistd.h \
20438                   execinfo.h\
20439                   signal.h
20440 do
20441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20443   echo "$as_me:$LINENO: checking for $ac_header" >&5
20444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20446   echo $ECHO_N "(cached) $ECHO_C" >&6
20447 fi
20448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20450 else
20451   # Is the header compilable?
20452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20454 cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h.  */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h.  */
20460 $ac_includes_default
20461 #include <$ac_header>
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465   (eval $ac_compile) 2>conftest.er1
20466   ac_status=$?
20467   grep -v '^ *+' conftest.er1 >conftest.err
20468   rm -f conftest.er1
20469   cat conftest.err >&5
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } &&
20472          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; } &&
20478          { ac_try='test -s conftest.$ac_objext'
20479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480   (eval $ac_try) 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); }; }; then
20484   ac_header_compiler=yes
20485 else
20486   echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 ac_header_compiler=no
20490 fi
20491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20493 echo "${ECHO_T}$ac_header_compiler" >&6
20494
20495 # Is the header present?
20496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20498 cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h.  */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h.  */
20504 #include <$ac_header>
20505 _ACEOF
20506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20508   ac_status=$?
20509   grep -v '^ *+' conftest.er1 >conftest.err
20510   rm -f conftest.er1
20511   cat conftest.err >&5
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); } >/dev/null; then
20514   if test -s conftest.err; then
20515     ac_cpp_err=$ac_c_preproc_warn_flag
20516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20517   else
20518     ac_cpp_err=
20519   fi
20520 else
20521   ac_cpp_err=yes
20522 fi
20523 if test -z "$ac_cpp_err"; then
20524   ac_header_preproc=yes
20525 else
20526   echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529   ac_header_preproc=no
20530 fi
20531 rm -f conftest.err conftest.$ac_ext
20532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20533 echo "${ECHO_T}$ac_header_preproc" >&6
20534
20535 # So?  What about this header?
20536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20537   yes:no: )
20538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20542     ac_header_preproc=yes
20543     ;;
20544   no:yes:* )
20545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20557     (
20558       cat <<\_ASBOX
20559 ## -------------------------------------------------- ##
20560 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
20561 ## -------------------------------------------------- ##
20562 _ASBOX
20563     ) |
20564       sed "s/^/$as_me: WARNING:     /" >&2
20565     ;;
20566 esac
20567 echo "$as_me:$LINENO: checking for $ac_header" >&5
20568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20570   echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572   eval "$as_ac_Header=\$ac_header_preproc"
20573 fi
20574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20576
20577 fi
20578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20579   cat >>confdefs.h <<_ACEOF
20580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20581 _ACEOF
20582
20583 fi
20584
20585 done
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595 for ac_func in gettimeofday usleep \
20596                 getdtablesize \
20597                 sysconf\
20598                 readv\
20599                 popen\
20600                 signal\
20601                 getline
20602 do
20603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20604 echo "$as_me:$LINENO: checking for $ac_func" >&5
20605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20606 if eval "test \"\${$as_ac_var+set}\" = set"; then
20607   echo $ECHO_N "(cached) $ECHO_C" >&6
20608 else
20609   cat >conftest.$ac_ext <<_ACEOF
20610 /* confdefs.h.  */
20611 _ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h.  */
20615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20617 #define $ac_func innocuous_$ac_func
20618
20619 /* System header to define __stub macros and hopefully few prototypes,
20620     which can conflict with char $ac_func (); below.
20621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20622     <limits.h> exists even on freestanding compilers.  */
20623
20624 #ifdef __STDC__
20625 # include <limits.h>
20626 #else
20627 # include <assert.h>
20628 #endif
20629
20630 #undef $ac_func
20631
20632 /* Override any gcc2 internal prototype to avoid an error.  */
20633 #ifdef __cplusplus
20634 extern "C"
20635 {
20636 #endif
20637 /* We use char because int might match the return type of a gcc2
20638    builtin and then its argument prototype would still apply.  */
20639 char $ac_func ();
20640 /* The GNU C library defines this for functions which it implements
20641     to always fail with ENOSYS.  Some functions are actually named
20642     something starting with __ and the normal name is an alias.  */
20643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20644 choke me
20645 #else
20646 char (*f) () = $ac_func;
20647 #endif
20648 #ifdef __cplusplus
20649 }
20650 #endif
20651
20652 int
20653 main ()
20654 {
20655 return f != $ac_func;
20656   ;
20657   return 0;
20658 }
20659 _ACEOF
20660 rm -f conftest.$ac_objext conftest$ac_exeext
20661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20662   (eval $ac_link) 2>conftest.er1
20663   ac_status=$?
20664   grep -v '^ *+' conftest.er1 >conftest.err
20665   rm -f conftest.er1
20666   cat conftest.err >&5
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); } &&
20669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671   (eval $ac_try) 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; } &&
20675          { ac_try='test -s conftest$ac_exeext'
20676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677   (eval $ac_try) 2>&5
20678   ac_status=$?
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); }; }; then
20681   eval "$as_ac_var=yes"
20682 else
20683   echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20685
20686 eval "$as_ac_var=no"
20687 fi
20688 rm -f conftest.err conftest.$ac_objext \
20689       conftest$ac_exeext conftest.$ac_ext
20690 fi
20691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20693 if test `eval echo '${'$as_ac_var'}'` = yes; then
20694   cat >>confdefs.h <<_ACEOF
20695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20696 _ACEOF
20697
20698 fi
20699 done
20700
20701
20702 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
20703
20704
20705 for ac_func in snprintf vsnprintf
20706 do
20707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20708 echo "$as_me:$LINENO: checking for $ac_func" >&5
20709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20710 if eval "test \"\${$as_ac_var+set}\" = set"; then
20711   echo $ECHO_N "(cached) $ECHO_C" >&6
20712 else
20713   cat >conftest.$ac_ext <<_ACEOF
20714 /* confdefs.h.  */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h.  */
20719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20721 #define $ac_func innocuous_$ac_func
20722
20723 /* System header to define __stub macros and hopefully few prototypes,
20724     which can conflict with char $ac_func (); below.
20725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20726     <limits.h> exists even on freestanding compilers.  */
20727
20728 #ifdef __STDC__
20729 # include <limits.h>
20730 #else
20731 # include <assert.h>
20732 #endif
20733
20734 #undef $ac_func
20735
20736 /* Override any gcc2 internal prototype to avoid an error.  */
20737 #ifdef __cplusplus
20738 extern "C"
20739 {
20740 #endif
20741 /* We use char because int might match the return type of a gcc2
20742    builtin and then its argument prototype would still apply.  */
20743 char $ac_func ();
20744 /* The GNU C library defines this for functions which it implements
20745     to always fail with ENOSYS.  Some functions are actually named
20746     something starting with __ and the normal name is an alias.  */
20747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20748 choke me
20749 #else
20750 char (*f) () = $ac_func;
20751 #endif
20752 #ifdef __cplusplus
20753 }
20754 #endif
20755
20756 int
20757 main ()
20758 {
20759 return f != $ac_func;
20760   ;
20761   return 0;
20762 }
20763 _ACEOF
20764 rm -f conftest.$ac_objext conftest$ac_exeext
20765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20766   (eval $ac_link) 2>conftest.er1
20767   ac_status=$?
20768   grep -v '^ *+' conftest.er1 >conftest.err
20769   rm -f conftest.er1
20770   cat conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } &&
20773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775   (eval $ac_try) 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); }; } &&
20779          { ac_try='test -s conftest$ac_exeext'
20780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781   (eval $ac_try) 2>&5
20782   ac_status=$?
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); }; }; then
20785   eval "$as_ac_var=yes"
20786 else
20787   echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790 eval "$as_ac_var=no"
20791 fi
20792 rm -f conftest.err conftest.$ac_objext \
20793       conftest$ac_exeext conftest.$ac_ext
20794 fi
20795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20797 if test `eval echo '${'$as_ac_var'}'` = yes; then
20798   cat >>confdefs.h <<_ACEOF
20799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20800 _ACEOF
20801
20802 fi
20803 done
20804
20805 echo "$as_me:$LINENO: checking for working snprintf" >&5
20806 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
20807 if test "${ac_cv_have_working_snprintf+set}" = set; then
20808   echo $ECHO_N "(cached) $ECHO_C" >&6
20809 else
20810   if test "$cross_compiling" = yes; then
20811   ac_cv_have_working_snprintf=cross
20812 else
20813   cat >conftest.$ac_ext <<_ACEOF
20814 /* confdefs.h.  */
20815 _ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h.  */
20819 #include <stdio.h>
20820
20821 int main(void)
20822 {
20823     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20824     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20825     int i;
20826     i = snprintf (bufs, 2, "%s", "111");
20827     if (strcmp (bufs, "1")) exit (1);
20828     if (i != 3) exit (1);
20829     i = snprintf (bufd, 2, "%d", 111);
20830     if (strcmp (bufd, "1")) exit (1);
20831     if (i != 3) exit (1);
20832     exit(0);
20833 }
20834 _ACEOF
20835 rm -f conftest$ac_exeext
20836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20837   (eval $ac_link) 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842   (eval $ac_try) 2>&5
20843   ac_status=$?
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); }; }; then
20846   ac_cv_have_working_snprintf=yes
20847 else
20848   echo "$as_me: program exited with status $ac_status" >&5
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20851
20852 ( exit $ac_status )
20853 ac_cv_have_working_snprintf=no
20854 fi
20855 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20856 fi
20857 fi
20858
20859 echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
20860 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6
20861 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
20862 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
20863 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
20864   echo $ECHO_N "(cached) $ECHO_C" >&6
20865 else
20866   if test "$cross_compiling" = yes; then
20867   ac_cv_have_working_vsnprintf=cross
20868 else
20869   cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875 #include <stdio.h>
20876 #include <stdarg.h>
20877
20878 int my_vsnprintf (char *buf, const char *tmpl, ...)
20879 {
20880     int i;
20881     va_list args;
20882     va_start (args, tmpl);
20883     i = vsnprintf (buf, 2, tmpl, args);
20884     va_end (args);
20885     return i;
20886 }
20887
20888 int main(void)
20889 {
20890     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20891     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20892     int i;
20893     i = my_vsnprintf (bufs, "%s", "111");
20894     if (strcmp (bufs, "1")) exit (1);
20895     if (i != 3) exit (1);
20896     i = my_vsnprintf (bufd, "%d", 111);
20897     if (strcmp (bufd, "1")) exit (1);
20898     if (i != 3) exit (1);
20899     exit(0);
20900 }
20901 _ACEOF
20902 rm -f conftest$ac_exeext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20904   (eval $ac_link) 2>&5
20905   ac_status=$?
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909   (eval $ac_try) 2>&5
20910   ac_status=$?
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); }; }; then
20913   ac_cv_have_working_vsnprintf=yes
20914 else
20915   echo "$as_me: program exited with status $ac_status" >&5
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919 ( exit $ac_status )
20920 ac_cv_have_working_vsnprintf=no
20921 fi
20922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20923 fi
20924 fi
20925
20926 echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
20927 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6
20928 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
20929   case $LIBOBJS in
20930     "snprintf.$ac_objext"   | \
20931   *" snprintf.$ac_objext"   | \
20932     "snprintf.$ac_objext "* | \
20933   *" snprintf.$ac_objext "* ) ;;
20934   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
20935 esac
20936
20937   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
20938 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
20939
20940 cat >>confdefs.h <<\_ACEOF
20941 #define PREFER_PORTABLE_SNPRINTF 1
20942 _ACEOF
20943
20944 fi
20945 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
20946 echo "$as_me:$LINENO: checking for asprintf" >&5
20947 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6
20948 if test "${ac_cv_func_asprintf+set}" = set; then
20949   echo $ECHO_N "(cached) $ECHO_C" >&6
20950 else
20951   cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
20958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20959 #define asprintf innocuous_asprintf
20960
20961 /* System header to define __stub macros and hopefully few prototypes,
20962     which can conflict with char asprintf (); below.
20963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20964     <limits.h> exists even on freestanding compilers.  */
20965
20966 #ifdef __STDC__
20967 # include <limits.h>
20968 #else
20969 # include <assert.h>
20970 #endif
20971
20972 #undef asprintf
20973
20974 /* Override any gcc2 internal prototype to avoid an error.  */
20975 #ifdef __cplusplus
20976 extern "C"
20977 {
20978 #endif
20979 /* We use char because int might match the return type of a gcc2
20980    builtin and then its argument prototype would still apply.  */
20981 char asprintf ();
20982 /* The GNU C library defines this for functions which it implements
20983     to always fail with ENOSYS.  Some functions are actually named
20984     something starting with __ and the normal name is an alias.  */
20985 #if defined (__stub_asprintf) || defined (__stub___asprintf)
20986 choke me
20987 #else
20988 char (*f) () = asprintf;
20989 #endif
20990 #ifdef __cplusplus
20991 }
20992 #endif
20993
20994 int
20995 main ()
20996 {
20997 return f != asprintf;
20998   ;
20999   return 0;
21000 }
21001 _ACEOF
21002 rm -f conftest.$ac_objext conftest$ac_exeext
21003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21004   (eval $ac_link) 2>conftest.er1
21005   ac_status=$?
21006   grep -v '^ *+' conftest.er1 >conftest.err
21007   rm -f conftest.er1
21008   cat conftest.err >&5
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); } &&
21011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013   (eval $ac_try) 2>&5
21014   ac_status=$?
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); }; } &&
21017          { ac_try='test -s conftest$ac_exeext'
21018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019   (eval $ac_try) 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); }; }; then
21023   ac_cv_func_asprintf=yes
21024 else
21025   echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028 ac_cv_func_asprintf=no
21029 fi
21030 rm -f conftest.err conftest.$ac_objext \
21031       conftest$ac_exeext conftest.$ac_ext
21032 fi
21033 echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21034 echo "${ECHO_T}$ac_cv_func_asprintf" >&6
21035 if test $ac_cv_func_asprintf = yes; then
21036   :
21037 else
21038
21039 cat >>confdefs.h <<\_ACEOF
21040 #define NEED_ASPRINTF 1
21041 _ACEOF
21042
21043 fi
21044
21045 echo "$as_me:$LINENO: checking for vasprintf" >&5
21046 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6
21047 if test "${ac_cv_func_vasprintf+set}" = set; then
21048   echo $ECHO_N "(cached) $ECHO_C" >&6
21049 else
21050   cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h.  */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h.  */
21056 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21058 #define vasprintf innocuous_vasprintf
21059
21060 /* System header to define __stub macros and hopefully few prototypes,
21061     which can conflict with char vasprintf (); below.
21062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21063     <limits.h> exists even on freestanding compilers.  */
21064
21065 #ifdef __STDC__
21066 # include <limits.h>
21067 #else
21068 # include <assert.h>
21069 #endif
21070
21071 #undef vasprintf
21072
21073 /* Override any gcc2 internal prototype to avoid an error.  */
21074 #ifdef __cplusplus
21075 extern "C"
21076 {
21077 #endif
21078 /* We use char because int might match the return type of a gcc2
21079    builtin and then its argument prototype would still apply.  */
21080 char vasprintf ();
21081 /* The GNU C library defines this for functions which it implements
21082     to always fail with ENOSYS.  Some functions are actually named
21083     something starting with __ and the normal name is an alias.  */
21084 #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
21085 choke me
21086 #else
21087 char (*f) () = vasprintf;
21088 #endif
21089 #ifdef __cplusplus
21090 }
21091 #endif
21092
21093 int
21094 main ()
21095 {
21096 return f != vasprintf;
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext conftest$ac_exeext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21103   (eval $ac_link) 2>conftest.er1
21104   ac_status=$?
21105   grep -v '^ *+' conftest.er1 >conftest.err
21106   rm -f conftest.er1
21107   cat conftest.err >&5
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); } &&
21110          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112   (eval $ac_try) 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; } &&
21116          { ac_try='test -s conftest$ac_exeext'
21117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118   (eval $ac_try) 2>&5
21119   ac_status=$?
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); }; }; then
21122   ac_cv_func_vasprintf=yes
21123 else
21124   echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21126
21127 ac_cv_func_vasprintf=no
21128 fi
21129 rm -f conftest.err conftest.$ac_objext \
21130       conftest$ac_exeext conftest.$ac_ext
21131 fi
21132 echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21133 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6
21134 if test $ac_cv_func_vasprintf = yes; then
21135   :
21136 else
21137
21138 cat >>confdefs.h <<\_ACEOF
21139 #define NEED_VASPRINTF 1
21140 _ACEOF
21141
21142 fi
21143
21144
21145 # Checks for typedefs, structures, and compiler characteristics.
21146 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21147 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21148 if test "${ac_cv_c_const+set}" = set; then
21149   echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151   cat >conftest.$ac_ext <<_ACEOF
21152 /* confdefs.h.  */
21153 _ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h.  */
21157
21158 int
21159 main ()
21160 {
21161 /* FIXME: Include the comments suggested by Paul. */
21162 #ifndef __cplusplus
21163   /* Ultrix mips cc rejects this.  */
21164   typedef int charset[2];
21165   const charset x;
21166   /* SunOS 4.1.1 cc rejects this.  */
21167   char const *const *ccp;
21168   char **p;
21169   /* NEC SVR4.0.2 mips cc rejects this.  */
21170   struct point {int x, y;};
21171   static struct point const zero = {0,0};
21172   /* AIX XL C 1.02.0.0 rejects this.
21173      It does not let you subtract one const X* pointer from another in
21174      an arm of an if-expression whose if-part is not a constant
21175      expression */
21176   const char *g = "string";
21177   ccp = &g + (g ? g-g : 0);
21178   /* HPUX 7.0 cc rejects these. */
21179   ++ccp;
21180   p = (char**) ccp;
21181   ccp = (char const *const *) p;
21182   { /* SCO 3.2v4 cc rejects this.  */
21183     char *t;
21184     char const *s = 0 ? (char *) 0 : (char const *) 0;
21185
21186     *t++ = 0;
21187   }
21188   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21189     int x[] = {25, 17};
21190     const int *foo = &x[0];
21191     ++foo;
21192   }
21193   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21194     typedef const int *iptr;
21195     iptr p = 0;
21196     ++p;
21197   }
21198   { /* AIX XL C 1.02.0.0 rejects this saying
21199        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21200     struct s { int j; const int *ap[3]; };
21201     struct s *b; b->j = 5;
21202   }
21203   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21204     const int foo = 10;
21205   }
21206 #endif
21207
21208   ;
21209   return 0;
21210 }
21211 _ACEOF
21212 rm -f conftest.$ac_objext
21213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21214   (eval $ac_compile) 2>conftest.er1
21215   ac_status=$?
21216   grep -v '^ *+' conftest.er1 >conftest.err
21217   rm -f conftest.er1
21218   cat conftest.err >&5
21219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220   (exit $ac_status); } &&
21221          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223   (eval $ac_try) 2>&5
21224   ac_status=$?
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); }; } &&
21227          { ac_try='test -s conftest.$ac_objext'
21228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229   (eval $ac_try) 2>&5
21230   ac_status=$?
21231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232   (exit $ac_status); }; }; then
21233   ac_cv_c_const=yes
21234 else
21235   echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21237
21238 ac_cv_c_const=no
21239 fi
21240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21241 fi
21242 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21243 echo "${ECHO_T}$ac_cv_c_const" >&6
21244 if test $ac_cv_c_const = no; then
21245
21246 cat >>confdefs.h <<\_ACEOF
21247 #define const
21248 _ACEOF
21249
21250 fi
21251
21252 echo "$as_me:$LINENO: checking for inline" >&5
21253 echo $ECHO_N "checking for inline... $ECHO_C" >&6
21254 if test "${ac_cv_c_inline+set}" = set; then
21255   echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257   ac_cv_c_inline=no
21258 for ac_kw in inline __inline__ __inline; do
21259   cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h.  */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h.  */
21265 #ifndef __cplusplus
21266 typedef int foo_t;
21267 static $ac_kw foo_t static_foo () {return 0; }
21268 $ac_kw foo_t foo () {return 0; }
21269 #endif
21270
21271 _ACEOF
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274   (eval $ac_compile) 2>conftest.er1
21275   ac_status=$?
21276   grep -v '^ *+' conftest.er1 >conftest.err
21277   rm -f conftest.er1
21278   cat conftest.err >&5
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); } &&
21281          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283   (eval $ac_try) 2>&5
21284   ac_status=$?
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); }; } &&
21287          { ac_try='test -s conftest.$ac_objext'
21288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289   (eval $ac_try) 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); }; }; then
21293   ac_cv_c_inline=$ac_kw; break
21294 else
21295   echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298 fi
21299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21300 done
21301
21302 fi
21303 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21304 echo "${ECHO_T}$ac_cv_c_inline" >&6
21305
21306
21307 case $ac_cv_c_inline in
21308   inline | yes) ;;
21309   *)
21310     case $ac_cv_c_inline in
21311       no) ac_val=;;
21312       *) ac_val=$ac_cv_c_inline;;
21313     esac
21314     cat >>confdefs.h <<_ACEOF
21315 #ifndef __cplusplus
21316 #define inline $ac_val
21317 #endif
21318 _ACEOF
21319     ;;
21320 esac
21321
21322 echo "$as_me:$LINENO: checking for size_t" >&5
21323 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21324 if test "${ac_cv_type_size_t+set}" = set; then
21325   echo $ECHO_N "(cached) $ECHO_C" >&6
21326 else
21327   cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h.  */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h.  */
21333 $ac_includes_default
21334 int
21335 main ()
21336 {
21337 if ((size_t *) 0)
21338   return 0;
21339 if (sizeof (size_t))
21340   return 0;
21341   ;
21342   return 0;
21343 }
21344 _ACEOF
21345 rm -f conftest.$ac_objext
21346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21347   (eval $ac_compile) 2>conftest.er1
21348   ac_status=$?
21349   grep -v '^ *+' conftest.er1 >conftest.err
21350   rm -f conftest.er1
21351   cat conftest.err >&5
21352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353   (exit $ac_status); } &&
21354          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356   (eval $ac_try) 2>&5
21357   ac_status=$?
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); }; } &&
21360          { ac_try='test -s conftest.$ac_objext'
21361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362   (eval $ac_try) 2>&5
21363   ac_status=$?
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); }; }; then
21366   ac_cv_type_size_t=yes
21367 else
21368   echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21370
21371 ac_cv_type_size_t=no
21372 fi
21373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21374 fi
21375 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21376 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21377 if test $ac_cv_type_size_t = yes; then
21378   :
21379 else
21380
21381 cat >>confdefs.h <<_ACEOF
21382 #define size_t unsigned
21383 _ACEOF
21384
21385 fi
21386
21387
21388 ###################################
21389 ## SimGrid and GRAS specific checks
21390 ##
21391
21392
21393   echo "$as_me:$LINENO: result: " >&5
21394 echo "${ECHO_T}" >&6
21395   echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
21396 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6
21397
21398 # Check architecture signature begin
21399
21400 # Check for the architecture
21401 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21402 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21403 if test "${ac_cv_c_bigendian+set}" = set; then
21404   echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406   # See if sys/param.h defines the BYTE_ORDER macro.
21407 cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h.  */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h.  */
21413 #include <sys/types.h>
21414 #include <sys/param.h>
21415
21416 int
21417 main ()
21418 {
21419 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21420  bogus endian macros
21421 #endif
21422
21423   ;
21424   return 0;
21425 }
21426 _ACEOF
21427 rm -f conftest.$ac_objext
21428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21429   (eval $ac_compile) 2>conftest.er1
21430   ac_status=$?
21431   grep -v '^ *+' conftest.er1 >conftest.err
21432   rm -f conftest.er1
21433   cat conftest.err >&5
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); } &&
21436          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438   (eval $ac_try) 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); }; } &&
21442          { ac_try='test -s conftest.$ac_objext'
21443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444   (eval $ac_try) 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); }; }; then
21448   # It does; now see whether it defined to BIG_ENDIAN or not.
21449 cat >conftest.$ac_ext <<_ACEOF
21450 /* confdefs.h.  */
21451 _ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h.  */
21455 #include <sys/types.h>
21456 #include <sys/param.h>
21457
21458 int
21459 main ()
21460 {
21461 #if BYTE_ORDER != BIG_ENDIAN
21462  not big endian
21463 #endif
21464
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 rm -f conftest.$ac_objext
21470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21471   (eval $ac_compile) 2>conftest.er1
21472   ac_status=$?
21473   grep -v '^ *+' conftest.er1 >conftest.err
21474   rm -f conftest.er1
21475   cat conftest.err >&5
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); } &&
21478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480   (eval $ac_try) 2>&5
21481   ac_status=$?
21482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483   (exit $ac_status); }; } &&
21484          { ac_try='test -s conftest.$ac_objext'
21485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486   (eval $ac_try) 2>&5
21487   ac_status=$?
21488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489   (exit $ac_status); }; }; then
21490   ac_cv_c_bigendian=yes
21491 else
21492   echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21494
21495 ac_cv_c_bigendian=no
21496 fi
21497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21498 else
21499   echo "$as_me: failed program was:" >&5
21500 sed 's/^/| /' conftest.$ac_ext >&5
21501
21502 # It does not; compile a test program.
21503 if test "$cross_compiling" = yes; then
21504   # try to guess the endianness by grepping values into an object file
21505   ac_cv_c_bigendian=unknown
21506   cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21513 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21514 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21515 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21516 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21517 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21518 int
21519 main ()
21520 {
21521  _ascii (); _ebcdic ();
21522   ;
21523   return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest.$ac_objext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528   (eval $ac_compile) 2>conftest.er1
21529   ac_status=$?
21530   grep -v '^ *+' conftest.er1 >conftest.err
21531   rm -f conftest.er1
21532   cat conftest.err >&5
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); } &&
21535          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537   (eval $ac_try) 2>&5
21538   ac_status=$?
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); }; } &&
21541          { ac_try='test -s conftest.$ac_objext'
21542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543   (eval $ac_try) 2>&5
21544   ac_status=$?
21545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546   (exit $ac_status); }; }; then
21547   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21548   ac_cv_c_bigendian=yes
21549 fi
21550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21551   if test "$ac_cv_c_bigendian" = unknown; then
21552     ac_cv_c_bigendian=no
21553   else
21554     # finding both strings is unlikely to happen, but who knows?
21555     ac_cv_c_bigendian=unknown
21556   fi
21557 fi
21558 else
21559   echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21561
21562 fi
21563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21564 else
21565   cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h.  */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h.  */
21571 int
21572 main ()
21573 {
21574   /* Are we little or big endian?  From Harbison&Steele.  */
21575   union
21576   {
21577     long l;
21578     char c[sizeof (long)];
21579   } u;
21580   u.l = 1;
21581   exit (u.c[sizeof (long) - 1] == 1);
21582 }
21583 _ACEOF
21584 rm -f conftest$ac_exeext
21585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21586   (eval $ac_link) 2>&5
21587   ac_status=$?
21588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591   (eval $ac_try) 2>&5
21592   ac_status=$?
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); }; }; then
21595   ac_cv_c_bigendian=no
21596 else
21597   echo "$as_me: program exited with status $ac_status" >&5
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21600
21601 ( exit $ac_status )
21602 ac_cv_c_bigendian=yes
21603 fi
21604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21605 fi
21606 fi
21607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21608 fi
21609 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21610 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21611 case $ac_cv_c_bigendian in
21612   yes)
21613     endian=1 ;;
21614   no)
21615     endian=0 ;;
21616   *)
21617     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21618 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21619    { (exit 1); exit 1; }; } ;;
21620 esac
21621
21622
21623 cat >>confdefs.h <<_ACEOF
21624 #define GRAS_BIGENDIAN $endian
21625 _ACEOF
21626
21627
21628 echo "$as_me:$LINENO: checking size of char" >&5
21629 echo $ECHO_N "checking size of char... $ECHO_C" >&6
21630     if test "${ac_cv_sizeof_char+set}" = set; then
21631   echo $ECHO_N "(cached) $ECHO_C" >&6
21632 else
21633   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21634    cat >conftest.$ac_ext <<_ACEOF
21635 /* confdefs.h.  */
21636 _ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h.  */
21640 #include "confdefs.h"
21641    #include <sys/types.h>
21642
21643
21644 int
21645 main ()
21646 {
21647 switch (0) case 0: case (sizeof (char) == $ac_size):;
21648   ;
21649   return 0;
21650 }
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654   (eval $ac_compile) 2>conftest.er1
21655   ac_status=$?
21656   grep -v '^ *+' conftest.er1 >conftest.err
21657   rm -f conftest.er1
21658   cat conftest.err >&5
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); } &&
21661          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663   (eval $ac_try) 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); }; } &&
21667          { ac_try='test -s conftest.$ac_objext'
21668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669   (eval $ac_try) 2>&5
21670   ac_status=$?
21671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672   (exit $ac_status); }; }; then
21673   ac_cv_sizeof_char=$ac_size
21674 else
21675   echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21677
21678 fi
21679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21680    if test x$ac_cv_sizeof_char != x ; then break; fi
21681   done
21682
21683 fi
21684
21685
21686 unspecif=$ac_cv_sizeof_char
21687 if test x$unspecif = x ; then
21688   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
21689 echo "$as_me: error: cannot determine a size for char" >&2;}
21690    { (exit 1); exit 1; }; }
21691 fi
21692
21693     if test "${ac_cv_sizeof_signed_char+set}" = set; then
21694   echo $ECHO_N "(cached) $ECHO_C" >&6
21695 else
21696   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21697    cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h.  */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h.  */
21703 #include "confdefs.h"
21704    #include <sys/types.h>
21705
21706
21707 int
21708 main ()
21709 {
21710 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
21711   ;
21712   return 0;
21713 }
21714 _ACEOF
21715 rm -f conftest.$ac_objext
21716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717   (eval $ac_compile) 2>conftest.er1
21718   ac_status=$?
21719   grep -v '^ *+' conftest.er1 >conftest.err
21720   rm -f conftest.er1
21721   cat conftest.err >&5
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); } &&
21724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726   (eval $ac_try) 2>&5
21727   ac_status=$?
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); }; } &&
21730          { ac_try='test -s conftest.$ac_objext'
21731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732   (eval $ac_try) 2>&5
21733   ac_status=$?
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); }; }; then
21736   ac_cv_sizeof_signed_char=$ac_size
21737 else
21738   echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21740
21741 fi
21742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21743    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
21744   done
21745
21746 fi
21747
21748
21749 signed=$ac_cv_sizeof_signed_char
21750 if test x$signed = x ; then
21751   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
21752 echo "$as_me: error: cannot determine a size for signed char" >&2;}
21753    { (exit 1); exit 1; }; }
21754 fi
21755 if test x$unspecif != x$signed ; then
21756   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
21757 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
21758    { (exit 1); exit 1; }; }
21759 fi
21760
21761     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
21762   echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21765    cat >conftest.$ac_ext <<_ACEOF
21766 /* confdefs.h.  */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h.  */
21771 #include "confdefs.h"
21772    #include <sys/types.h>
21773
21774
21775 int
21776 main ()
21777 {
21778 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
21779   ;
21780   return 0;
21781 }
21782 _ACEOF
21783 rm -f conftest.$ac_objext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21785   (eval $ac_compile) 2>conftest.er1
21786   ac_status=$?
21787   grep -v '^ *+' conftest.er1 >conftest.err
21788   rm -f conftest.er1
21789   cat conftest.err >&5
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } &&
21792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794   (eval $ac_try) 2>&5
21795   ac_status=$?
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); }; } &&
21798          { ac_try='test -s conftest.$ac_objext'
21799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21800   (eval $ac_try) 2>&5
21801   ac_status=$?
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); }; }; then
21804   ac_cv_sizeof_unsigned_char=$ac_size
21805 else
21806   echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21808
21809 fi
21810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21811    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
21812   done
21813
21814 fi
21815
21816
21817 unsigned=$ac_cv_sizeof_unsigned_char
21818 if test x$unsigned = x ; then
21819   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
21820 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
21821    { (exit 1); exit 1; }; }
21822 fi
21823 if test x$unsigned != x$signed ; then
21824   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
21825 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
21826    { (exit 1); exit 1; }; }
21827 fi
21828
21829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
21830 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
21831                   echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
21832 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6
21833
21834  if test "${ac_cv_struct_boundary_char+set}" = set; then
21835   echo $ECHO_N "(cached) $ECHO_C" >&6
21836 else
21837   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
21838    cat >conftest.$ac_ext <<_ACEOF
21839 /* confdefs.h.  */
21840 _ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h.  */
21844 #include "confdefs.h"
21845      #include <sys/types.h>
21846      struct s { char c; char i; };
21847
21848 int
21849 main ()
21850 {
21851 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
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   ac_cv_struct_boundary_char=$ac_size
21878 else
21879   echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882 fi
21883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21884    if test x$ac_cv_struct_boundary_char != x ; then break; fi
21885   done
21886
21887 fi
21888
21889  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
21890 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6
21891  if test x$ac_cv_struct_boundary_char = x ; then
21892    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
21893 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
21894    { (exit 1); exit 1; }; }
21895  fi
21896
21897 echo "$as_me:$LINENO: checking size of short int" >&5
21898 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
21899     if test "${ac_cv_sizeof_short_int+set}" = set; then
21900   echo $ECHO_N "(cached) $ECHO_C" >&6
21901 else
21902   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21903    cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909 #include "confdefs.h"
21910    #include <sys/types.h>
21911
21912
21913 int
21914 main ()
21915 {
21916 switch (0) case 0: case (sizeof (short int) == $ac_size):;
21917   ;
21918   return 0;
21919 }
21920 _ACEOF
21921 rm -f conftest.$ac_objext
21922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21923   (eval $ac_compile) 2>conftest.er1
21924   ac_status=$?
21925   grep -v '^ *+' conftest.er1 >conftest.err
21926   rm -f conftest.er1
21927   cat conftest.err >&5
21928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929   (exit $ac_status); } &&
21930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932   (eval $ac_try) 2>&5
21933   ac_status=$?
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); }; } &&
21936          { ac_try='test -s conftest.$ac_objext'
21937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938   (eval $ac_try) 2>&5
21939   ac_status=$?
21940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941   (exit $ac_status); }; }; then
21942   ac_cv_sizeof_short_int=$ac_size
21943 else
21944   echo "$as_me: failed program was:" >&5
21945 sed 's/^/| /' conftest.$ac_ext >&5
21946
21947 fi
21948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21949    if test x$ac_cv_sizeof_short_int != x ; then break; fi
21950   done
21951
21952 fi
21953
21954
21955 unspecif=$ac_cv_sizeof_short_int
21956 if test x$unspecif = x ; then
21957   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
21958 echo "$as_me: error: cannot determine a size for short int" >&2;}
21959    { (exit 1); exit 1; }; }
21960 fi
21961
21962     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
21963   echo $ECHO_N "(cached) $ECHO_C" >&6
21964 else
21965   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
21966    cat >conftest.$ac_ext <<_ACEOF
21967 /* confdefs.h.  */
21968 _ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h.  */
21972 #include "confdefs.h"
21973    #include <sys/types.h>
21974
21975
21976 int
21977 main ()
21978 {
21979 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
21980   ;
21981   return 0;
21982 }
21983 _ACEOF
21984 rm -f conftest.$ac_objext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21986   (eval $ac_compile) 2>conftest.er1
21987   ac_status=$?
21988   grep -v '^ *+' conftest.er1 >conftest.err
21989   rm -f conftest.er1
21990   cat conftest.err >&5
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } &&
21993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21995   (eval $ac_try) 2>&5
21996   ac_status=$?
21997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998   (exit $ac_status); }; } &&
21999          { ac_try='test -s conftest.$ac_objext'
22000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001   (eval $ac_try) 2>&5
22002   ac_status=$?
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); }; }; then
22005   ac_cv_sizeof_signed_short_int=$ac_size
22006 else
22007   echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010 fi
22011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22012    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22013   done
22014
22015 fi
22016
22017
22018 signed=$ac_cv_sizeof_signed_short_int
22019 if test x$signed = x ; then
22020   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22021 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22022    { (exit 1); exit 1; }; }
22023 fi
22024 if test x$unspecif != x$signed ; then
22025   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22026 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22027    { (exit 1); exit 1; }; }
22028 fi
22029
22030     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22031   echo $ECHO_N "(cached) $ECHO_C" >&6
22032 else
22033   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22034    cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h.  */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h.  */
22040 #include "confdefs.h"
22041    #include <sys/types.h>
22042
22043
22044 int
22045 main ()
22046 {
22047 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22048   ;
22049   return 0;
22050 }
22051 _ACEOF
22052 rm -f conftest.$ac_objext
22053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22054   (eval $ac_compile) 2>conftest.er1
22055   ac_status=$?
22056   grep -v '^ *+' conftest.er1 >conftest.err
22057   rm -f conftest.er1
22058   cat conftest.err >&5
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); } &&
22061          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063   (eval $ac_try) 2>&5
22064   ac_status=$?
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); }; } &&
22067          { ac_try='test -s conftest.$ac_objext'
22068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069   (eval $ac_try) 2>&5
22070   ac_status=$?
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); }; }; then
22073   ac_cv_sizeof_unsigned_short_int=$ac_size
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078 fi
22079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22080    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22081   done
22082
22083 fi
22084
22085
22086 unsigned=$ac_cv_sizeof_unsigned_short_int
22087 if test x$unsigned = x ; then
22088   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22089 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22090    { (exit 1); exit 1; }; }
22091 fi
22092 if test x$unsigned != x$signed ; then
22093   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22094 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22095    { (exit 1); exit 1; }; }
22096 fi
22097
22098 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22099 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
22100              echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22101 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6
22102
22103  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22104   echo $ECHO_N "(cached) $ECHO_C" >&6
22105 else
22106   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22107    cat >conftest.$ac_ext <<_ACEOF
22108 /* confdefs.h.  */
22109 _ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h.  */
22113 #include "confdefs.h"
22114      #include <sys/types.h>
22115      struct s { char c; short int i; };
22116
22117 int
22118 main ()
22119 {
22120 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22121   ;
22122   return 0;
22123 }
22124 _ACEOF
22125 rm -f conftest.$ac_objext
22126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22127   (eval $ac_compile) 2>conftest.er1
22128   ac_status=$?
22129   grep -v '^ *+' conftest.er1 >conftest.err
22130   rm -f conftest.er1
22131   cat conftest.err >&5
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); } &&
22134          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136   (eval $ac_try) 2>&5
22137   ac_status=$?
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); }; } &&
22140          { ac_try='test -s conftest.$ac_objext'
22141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142   (eval $ac_try) 2>&5
22143   ac_status=$?
22144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145   (exit $ac_status); }; }; then
22146   ac_cv_struct_boundary_short_int=$ac_size
22147 else
22148   echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151 fi
22152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22153    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22154   done
22155
22156 fi
22157
22158  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22159 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6
22160  if test x$ac_cv_struct_boundary_short_int = x ; then
22161    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22162 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22163    { (exit 1); exit 1; }; }
22164  fi
22165
22166 echo "$as_me:$LINENO: checking size of int" >&5
22167 echo $ECHO_N "checking size of int... $ECHO_C" >&6
22168     if test "${ac_cv_sizeof_int+set}" = set; then
22169   echo $ECHO_N "(cached) $ECHO_C" >&6
22170 else
22171   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22172    cat >conftest.$ac_ext <<_ACEOF
22173 /* confdefs.h.  */
22174 _ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h.  */
22178 #include "confdefs.h"
22179    #include <sys/types.h>
22180
22181
22182 int
22183 main ()
22184 {
22185 switch (0) case 0: case (sizeof (int) == $ac_size):;
22186   ;
22187   return 0;
22188 }
22189 _ACEOF
22190 rm -f conftest.$ac_objext
22191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22192   (eval $ac_compile) 2>conftest.er1
22193   ac_status=$?
22194   grep -v '^ *+' conftest.er1 >conftest.err
22195   rm -f conftest.er1
22196   cat conftest.err >&5
22197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198   (exit $ac_status); } &&
22199          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201   (eval $ac_try) 2>&5
22202   ac_status=$?
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); }; } &&
22205          { ac_try='test -s conftest.$ac_objext'
22206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207   (eval $ac_try) 2>&5
22208   ac_status=$?
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); }; }; then
22211   ac_cv_sizeof_int=$ac_size
22212 else
22213   echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22215
22216 fi
22217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22218    if test x$ac_cv_sizeof_int != x ; then break; fi
22219   done
22220
22221 fi
22222
22223
22224 unspecif=$ac_cv_sizeof_int
22225 if test x$unspecif = x ; then
22226   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22227 echo "$as_me: error: cannot determine a size for int" >&2;}
22228    { (exit 1); exit 1; }; }
22229 fi
22230
22231     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22232   echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22235    cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h.  */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h.  */
22241 #include "confdefs.h"
22242    #include <sys/types.h>
22243
22244
22245 int
22246 main ()
22247 {
22248 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22249   ;
22250   return 0;
22251 }
22252 _ACEOF
22253 rm -f conftest.$ac_objext
22254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22255   (eval $ac_compile) 2>conftest.er1
22256   ac_status=$?
22257   grep -v '^ *+' conftest.er1 >conftest.err
22258   rm -f conftest.er1
22259   cat conftest.err >&5
22260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); } &&
22262          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264   (eval $ac_try) 2>&5
22265   ac_status=$?
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); }; } &&
22268          { ac_try='test -s conftest.$ac_objext'
22269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270   (eval $ac_try) 2>&5
22271   ac_status=$?
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); }; }; then
22274   ac_cv_sizeof_signed_int=$ac_size
22275 else
22276   echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22278
22279 fi
22280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22281    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22282   done
22283
22284 fi
22285
22286
22287 signed=$ac_cv_sizeof_signed_int
22288 if test x$signed = x ; then
22289   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22290 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22291    { (exit 1); exit 1; }; }
22292 fi
22293 if test x$unspecif != x$signed ; then
22294   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22295 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22296    { (exit 1); exit 1; }; }
22297 fi
22298
22299     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22300   echo $ECHO_N "(cached) $ECHO_C" >&6
22301 else
22302   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22303    cat >conftest.$ac_ext <<_ACEOF
22304 /* confdefs.h.  */
22305 _ACEOF
22306 cat confdefs.h >>conftest.$ac_ext
22307 cat >>conftest.$ac_ext <<_ACEOF
22308 /* end confdefs.h.  */
22309 #include "confdefs.h"
22310    #include <sys/types.h>
22311
22312
22313 int
22314 main ()
22315 {
22316 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22317   ;
22318   return 0;
22319 }
22320 _ACEOF
22321 rm -f conftest.$ac_objext
22322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22323   (eval $ac_compile) 2>conftest.er1
22324   ac_status=$?
22325   grep -v '^ *+' conftest.er1 >conftest.err
22326   rm -f conftest.er1
22327   cat conftest.err >&5
22328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329   (exit $ac_status); } &&
22330          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22332   (eval $ac_try) 2>&5
22333   ac_status=$?
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); }; } &&
22336          { ac_try='test -s conftest.$ac_objext'
22337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22338   (eval $ac_try) 2>&5
22339   ac_status=$?
22340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341   (exit $ac_status); }; }; then
22342   ac_cv_sizeof_unsigned_int=$ac_size
22343 else
22344   echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22346
22347 fi
22348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22349    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22350   done
22351
22352 fi
22353
22354
22355 unsigned=$ac_cv_sizeof_unsigned_int
22356 if test x$unsigned = x ; then
22357   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22358 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22359    { (exit 1); exit 1; }; }
22360 fi
22361 if test x$unsigned != x$signed ; then
22362   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22363 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22364    { (exit 1); exit 1; }; }
22365 fi
22366
22367 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22368 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
22369                    echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22370 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6
22371
22372  if test "${ac_cv_struct_boundary_int+set}" = set; then
22373   echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22376    cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h.  */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h.  */
22382 #include "confdefs.h"
22383      #include <sys/types.h>
22384      struct s { char c; int i; };
22385
22386 int
22387 main ()
22388 {
22389 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
22390   ;
22391   return 0;
22392 }
22393 _ACEOF
22394 rm -f conftest.$ac_objext
22395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22396   (eval $ac_compile) 2>conftest.er1
22397   ac_status=$?
22398   grep -v '^ *+' conftest.er1 >conftest.err
22399   rm -f conftest.er1
22400   cat conftest.err >&5
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); } &&
22403          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405   (eval $ac_try) 2>&5
22406   ac_status=$?
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); }; } &&
22409          { ac_try='test -s conftest.$ac_objext'
22410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22411   (eval $ac_try) 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); }; }; then
22415   ac_cv_struct_boundary_int=$ac_size
22416 else
22417   echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22419
22420 fi
22421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22422    if test x$ac_cv_struct_boundary_int != x ; then break; fi
22423   done
22424
22425 fi
22426
22427  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
22428 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6
22429  if test x$ac_cv_struct_boundary_int = x ; then
22430    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
22431 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
22432    { (exit 1); exit 1; }; }
22433  fi
22434
22435 echo "$as_me:$LINENO: checking size of long int" >&5
22436 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
22437     if test "${ac_cv_sizeof_long_int+set}" = set; then
22438   echo $ECHO_N "(cached) $ECHO_C" >&6
22439 else
22440   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
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 #include "confdefs.h"
22448    #include <sys/types.h>
22449
22450
22451 int
22452 main ()
22453 {
22454 switch (0) case 0: case (sizeof (long int) == $ac_size):;
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_sizeof_long_int=$ac_size
22481 else
22482   echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22484
22485 fi
22486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22487    if test x$ac_cv_sizeof_long_int != x ; then break; fi
22488   done
22489
22490 fi
22491
22492
22493 unspecif=$ac_cv_sizeof_long_int
22494 if test x$unspecif = x ; then
22495   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
22496 echo "$as_me: error: cannot determine a size for long int" >&2;}
22497    { (exit 1); exit 1; }; }
22498 fi
22499
22500     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
22501   echo $ECHO_N "(cached) $ECHO_C" >&6
22502 else
22503   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22504    cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510 #include "confdefs.h"
22511    #include <sys/types.h>
22512
22513
22514 int
22515 main ()
22516 {
22517 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
22518   ;
22519   return 0;
22520 }
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22524   (eval $ac_compile) 2>conftest.er1
22525   ac_status=$?
22526   grep -v '^ *+' conftest.er1 >conftest.err
22527   rm -f conftest.er1
22528   cat conftest.err >&5
22529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530   (exit $ac_status); } &&
22531          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533   (eval $ac_try) 2>&5
22534   ac_status=$?
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); }; } &&
22537          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22543   ac_cv_sizeof_signed_long_int=$ac_size
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548 fi
22549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22550    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
22551   done
22552
22553 fi
22554
22555
22556 signed=$ac_cv_sizeof_signed_long_int
22557 if test x$signed = x ; then
22558   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
22559 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
22560    { (exit 1); exit 1; }; }
22561 fi
22562 if test x$unspecif != x$signed ; then
22563   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
22564 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
22565    { (exit 1); exit 1; }; }
22566 fi
22567
22568     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
22569   echo $ECHO_N "(cached) $ECHO_C" >&6
22570 else
22571   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22572    cat >conftest.$ac_ext <<_ACEOF
22573 /* confdefs.h.  */
22574 _ACEOF
22575 cat confdefs.h >>conftest.$ac_ext
22576 cat >>conftest.$ac_ext <<_ACEOF
22577 /* end confdefs.h.  */
22578 #include "confdefs.h"
22579    #include <sys/types.h>
22580
22581
22582 int
22583 main ()
22584 {
22585 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
22586   ;
22587   return 0;
22588 }
22589 _ACEOF
22590 rm -f conftest.$ac_objext
22591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22592   (eval $ac_compile) 2>conftest.er1
22593   ac_status=$?
22594   grep -v '^ *+' conftest.er1 >conftest.err
22595   rm -f conftest.er1
22596   cat conftest.err >&5
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); } &&
22599          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22601   (eval $ac_try) 2>&5
22602   ac_status=$?
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); }; } &&
22605          { ac_try='test -s conftest.$ac_objext'
22606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607   (eval $ac_try) 2>&5
22608   ac_status=$?
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); }; }; then
22611   ac_cv_sizeof_unsigned_long_int=$ac_size
22612 else
22613   echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22615
22616 fi
22617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22618    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
22619   done
22620
22621 fi
22622
22623
22624 unsigned=$ac_cv_sizeof_unsigned_long_int
22625 if test x$unsigned = x ; then
22626   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
22627 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
22628    { (exit 1); exit 1; }; }
22629 fi
22630 if test x$unsigned != x$signed ; then
22631   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
22632 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
22633    { (exit 1); exit 1; }; }
22634 fi
22635
22636 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
22637 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
22638               echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
22639 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6
22640
22641  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
22642   echo $ECHO_N "(cached) $ECHO_C" >&6
22643 else
22644   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22645    cat >conftest.$ac_ext <<_ACEOF
22646 /* confdefs.h.  */
22647 _ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h.  */
22651 #include "confdefs.h"
22652      #include <sys/types.h>
22653      struct s { char c; long int i; };
22654
22655 int
22656 main ()
22657 {
22658 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
22659   ;
22660   return 0;
22661 }
22662 _ACEOF
22663 rm -f conftest.$ac_objext
22664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22665   (eval $ac_compile) 2>conftest.er1
22666   ac_status=$?
22667   grep -v '^ *+' conftest.er1 >conftest.err
22668   rm -f conftest.er1
22669   cat conftest.err >&5
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); } &&
22672          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674   (eval $ac_try) 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); }; } &&
22678          { ac_try='test -s conftest.$ac_objext'
22679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680   (eval $ac_try) 2>&5
22681   ac_status=$?
22682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); }; }; then
22684   ac_cv_struct_boundary_long_int=$ac_size
22685 else
22686   echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22688
22689 fi
22690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22691    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
22692   done
22693
22694 fi
22695
22696  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
22697 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6
22698  if test x$ac_cv_struct_boundary_long_int = x ; then
22699    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
22700 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
22701    { (exit 1); exit 1; }; }
22702  fi
22703
22704 echo "$as_me:$LINENO: checking size of long long int" >&5
22705 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
22706     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
22707   echo $ECHO_N "(cached) $ECHO_C" >&6
22708 else
22709   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22710    cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h.  */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h.  */
22716 #include "confdefs.h"
22717    #include <sys/types.h>
22718
22719
22720 int
22721 main ()
22722 {
22723 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
22724   ;
22725   return 0;
22726 }
22727 _ACEOF
22728 rm -f conftest.$ac_objext
22729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22730   (eval $ac_compile) 2>conftest.er1
22731   ac_status=$?
22732   grep -v '^ *+' conftest.er1 >conftest.err
22733   rm -f conftest.er1
22734   cat conftest.err >&5
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); } &&
22737          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739   (eval $ac_try) 2>&5
22740   ac_status=$?
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); }; } &&
22743          { ac_try='test -s conftest.$ac_objext'
22744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745   (eval $ac_try) 2>&5
22746   ac_status=$?
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); }; }; then
22749   ac_cv_sizeof_long_long_int=$ac_size
22750 else
22751   echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22753
22754 fi
22755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22756    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
22757   done
22758
22759 fi
22760
22761
22762 unspecif=$ac_cv_sizeof_long_long_int
22763 if test x$unspecif = x ; then
22764   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
22765 echo "$as_me: error: cannot determine a size for long long int" >&2;}
22766    { (exit 1); exit 1; }; }
22767 fi
22768
22769     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
22770   echo $ECHO_N "(cached) $ECHO_C" >&6
22771 else
22772   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22773    cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h.  */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h.  */
22779 #include "confdefs.h"
22780    #include <sys/types.h>
22781
22782
22783 int
22784 main ()
22785 {
22786 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
22787   ;
22788   return 0;
22789 }
22790 _ACEOF
22791 rm -f conftest.$ac_objext
22792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22793   (eval $ac_compile) 2>conftest.er1
22794   ac_status=$?
22795   grep -v '^ *+' conftest.er1 >conftest.err
22796   rm -f conftest.er1
22797   cat conftest.err >&5
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); } &&
22800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802   (eval $ac_try) 2>&5
22803   ac_status=$?
22804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805   (exit $ac_status); }; } &&
22806          { ac_try='test -s conftest.$ac_objext'
22807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808   (eval $ac_try) 2>&5
22809   ac_status=$?
22810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811   (exit $ac_status); }; }; then
22812   ac_cv_sizeof_signed_long_long_int=$ac_size
22813 else
22814   echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22816
22817 fi
22818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22819    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
22820   done
22821
22822 fi
22823
22824
22825 signed=$ac_cv_sizeof_signed_long_long_int
22826 if test x$signed = x ; then
22827   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
22828 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
22829    { (exit 1); exit 1; }; }
22830 fi
22831 if test x$unspecif != x$signed ; then
22832   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
22833 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
22834    { (exit 1); exit 1; }; }
22835 fi
22836
22837     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
22838   echo $ECHO_N "(cached) $ECHO_C" >&6
22839 else
22840   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22841    cat >conftest.$ac_ext <<_ACEOF
22842 /* confdefs.h.  */
22843 _ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h.  */
22847 #include "confdefs.h"
22848    #include <sys/types.h>
22849
22850
22851 int
22852 main ()
22853 {
22854 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
22855   ;
22856   return 0;
22857 }
22858 _ACEOF
22859 rm -f conftest.$ac_objext
22860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22861   (eval $ac_compile) 2>conftest.er1
22862   ac_status=$?
22863   grep -v '^ *+' conftest.er1 >conftest.err
22864   rm -f conftest.er1
22865   cat conftest.err >&5
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); } &&
22868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870   (eval $ac_try) 2>&5
22871   ac_status=$?
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); }; } &&
22874          { ac_try='test -s conftest.$ac_objext'
22875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876   (eval $ac_try) 2>&5
22877   ac_status=$?
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); }; }; then
22880   ac_cv_sizeof_unsigned_long_long_int=$ac_size
22881 else
22882   echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22884
22885 fi
22886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22887    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
22888   done
22889
22890 fi
22891
22892
22893 unsigned=$ac_cv_sizeof_unsigned_long_long_int
22894 if test x$unsigned = x ; then
22895   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
22896 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
22897    { (exit 1); exit 1; }; }
22898 fi
22899 if test x$unsigned != x$signed ; then
22900   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
22901 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
22902    { (exit 1); exit 1; }; }
22903 fi
22904
22905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
22906 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
22907          echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
22908 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6
22909
22910  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
22911   echo $ECHO_N "(cached) $ECHO_C" >&6
22912 else
22913   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22914    cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 #include "confdefs.h"
22921      #include <sys/types.h>
22922      struct s { char c; long long int i; };
22923
22924 int
22925 main ()
22926 {
22927 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
22928   ;
22929   return 0;
22930 }
22931 _ACEOF
22932 rm -f conftest.$ac_objext
22933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22934   (eval $ac_compile) 2>conftest.er1
22935   ac_status=$?
22936   grep -v '^ *+' conftest.er1 >conftest.err
22937   rm -f conftest.er1
22938   cat conftest.err >&5
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); } &&
22941          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943   (eval $ac_try) 2>&5
22944   ac_status=$?
22945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946   (exit $ac_status); }; } &&
22947          { ac_try='test -s conftest.$ac_objext'
22948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22949   (eval $ac_try) 2>&5
22950   ac_status=$?
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); }; }; then
22953   ac_cv_struct_boundary_long_long_int=$ac_size
22954 else
22955   echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22957
22958 fi
22959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22960    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
22961   done
22962
22963 fi
22964
22965  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
22966 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6
22967  if test x$ac_cv_struct_boundary_long_long_int = x ; then
22968    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
22969 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
22970    { (exit 1); exit 1; }; }
22971  fi
22972
22973
22974     echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
22975 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6
22976
22977  if test "${ac_cv_struct_boundary_float+set}" = set; then
22978   echo $ECHO_N "(cached) $ECHO_C" >&6
22979 else
22980   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22981    cat >conftest.$ac_ext <<_ACEOF
22982 /* confdefs.h.  */
22983 _ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h.  */
22987 #include "confdefs.h"
22988      #include <sys/types.h>
22989      struct s { char c; float i; };
22990
22991 int
22992 main ()
22993 {
22994 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
22995   ;
22996   return 0;
22997 }
22998 _ACEOF
22999 rm -f conftest.$ac_objext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23001   (eval $ac_compile) 2>conftest.er1
23002   ac_status=$?
23003   grep -v '^ *+' conftest.er1 >conftest.err
23004   rm -f conftest.er1
23005   cat conftest.err >&5
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); } &&
23008          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010   (eval $ac_try) 2>&5
23011   ac_status=$?
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); }; } &&
23014          { ac_try='test -s conftest.$ac_objext'
23015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016   (eval $ac_try) 2>&5
23017   ac_status=$?
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); }; }; then
23020   ac_cv_struct_boundary_float=$ac_size
23021 else
23022   echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23024
23025 fi
23026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23027    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23028   done
23029
23030 fi
23031
23032  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23033 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6
23034  if test x$ac_cv_struct_boundary_float = x ; then
23035    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23036 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23037    { (exit 1); exit 1; }; }
23038  fi
23039                echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23040 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6
23041
23042  if test "${ac_cv_struct_boundary_double+set}" = set; then
23043   echo $ECHO_N "(cached) $ECHO_C" >&6
23044 else
23045   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23046    cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052 #include "confdefs.h"
23053      #include <sys/types.h>
23054      struct s { char c; double i; };
23055
23056 int
23057 main ()
23058 {
23059 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23060   ;
23061   return 0;
23062 }
23063 _ACEOF
23064 rm -f conftest.$ac_objext
23065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23066   (eval $ac_compile) 2>conftest.er1
23067   ac_status=$?
23068   grep -v '^ *+' conftest.er1 >conftest.err
23069   rm -f conftest.er1
23070   cat conftest.err >&5
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); } &&
23073          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075   (eval $ac_try) 2>&5
23076   ac_status=$?
23077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078   (exit $ac_status); }; } &&
23079          { ac_try='test -s conftest.$ac_objext'
23080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081   (eval $ac_try) 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }; }; then
23085   ac_cv_struct_boundary_double=$ac_size
23086 else
23087   echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23089
23090 fi
23091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23092    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23093   done
23094
23095 fi
23096
23097  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23098 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6
23099  if test x$ac_cv_struct_boundary_double = x ; then
23100    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23101 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23102    { (exit 1); exit 1; }; }
23103  fi
23104
23105
23106 echo "$as_me:$LINENO: checking size of void *" >&5
23107 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
23108     if test "${ac_cv_sizeof_void_p+set}" = set; then
23109   echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23112    cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h.  */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h.  */
23118 #include "confdefs.h"
23119    #include <sys/types.h>
23120
23121
23122 int
23123 main ()
23124 {
23125 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23126   ;
23127   return 0;
23128 }
23129 _ACEOF
23130 rm -f conftest.$ac_objext
23131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23132   (eval $ac_compile) 2>conftest.er1
23133   ac_status=$?
23134   grep -v '^ *+' conftest.er1 >conftest.err
23135   rm -f conftest.er1
23136   cat conftest.err >&5
23137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138   (exit $ac_status); } &&
23139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23141   (eval $ac_try) 2>&5
23142   ac_status=$?
23143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144   (exit $ac_status); }; } &&
23145          { ac_try='test -s conftest.$ac_objext'
23146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23147   (eval $ac_try) 2>&5
23148   ac_status=$?
23149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150   (exit $ac_status); }; }; then
23151   ac_cv_sizeof_void_p=$ac_size
23152 else
23153   echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23155
23156 fi
23157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23158    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23159   done
23160
23161 fi
23162
23163
23164 if test x$ac_cv_sizeof_void_p = x ; then
23165   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23166 echo "$as_me: error: cannot determine a size for void *" >&2;}
23167    { (exit 1); exit 1; }; }
23168 fi
23169 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23170 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
23171                  echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23172 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6
23173
23174  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23175   echo $ECHO_N "(cached) $ECHO_C" >&6
23176 else
23177   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23178    cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h.  */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h.  */
23184 #include "confdefs.h"
23185      #include <sys/types.h>
23186      struct s { char c; void * i; };
23187
23188 int
23189 main ()
23190 {
23191 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23192   ;
23193   return 0;
23194 }
23195 _ACEOF
23196 rm -f conftest.$ac_objext
23197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23198   (eval $ac_compile) 2>conftest.er1
23199   ac_status=$?
23200   grep -v '^ *+' conftest.er1 >conftest.err
23201   rm -f conftest.er1
23202   cat conftest.err >&5
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); } &&
23205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207   (eval $ac_try) 2>&5
23208   ac_status=$?
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); }; } &&
23211          { ac_try='test -s conftest.$ac_objext'
23212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213   (eval $ac_try) 2>&5
23214   ac_status=$?
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); }; }; then
23217   ac_cv_struct_boundary_void_p=$ac_size
23218 else
23219   echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222 fi
23223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23224    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23225   done
23226
23227 fi
23228
23229  echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23230 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6
23231  if test x$ac_cv_struct_boundary_void_p = x ; then
23232    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23233 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23234    { (exit 1); exit 1; }; }
23235  fi
23236
23237 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23238 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
23239     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23240   echo $ECHO_N "(cached) $ECHO_C" >&6
23241 else
23242   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23243    cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h.  */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h.  */
23249 #include "confdefs.h"
23250    #include <sys/types.h>
23251
23252
23253 int
23254 main ()
23255 {
23256 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23257   ;
23258   return 0;
23259 }
23260 _ACEOF
23261 rm -f conftest.$ac_objext
23262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23263   (eval $ac_compile) 2>conftest.er1
23264   ac_status=$?
23265   grep -v '^ *+' conftest.er1 >conftest.err
23266   rm -f conftest.er1
23267   cat conftest.err >&5
23268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); } &&
23270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272   (eval $ac_try) 2>&5
23273   ac_status=$?
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); }; } &&
23276          { ac_try='test -s conftest.$ac_objext'
23277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278   (eval $ac_try) 2>&5
23279   ac_status=$?
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); }; }; then
23282   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23283 else
23284   echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23286
23287 fi
23288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23289    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23290   done
23291
23292 fi
23293
23294
23295 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23296   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23297 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23298    { (exit 1); exit 1; }; }
23299 fi
23300 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23301 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
23302
23303
23304
23305 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23306 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
23307 if test x$endian = x1 ; then
23308   trace_endian=B
23309 else
23310   trace_endian=l
23311 fi
23312 gras_arch=unknown
23313 trace="$trace_endian"
23314
23315 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23316
23317 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23318 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23319 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23320 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23321
23322 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23323 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23324
23325 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23326
23327 # sizeof float/double are not tested since IEEE 754 is assumed.
23328 # Check README.IEEE for rational.
23329
23330 # The numbers after the _ in the arch name are the maximal packing boundary.
23331 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23332 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23333 case $trace in
23334   l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_arch_name=little32_1;;
23335   l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_arch_name=little32_2;;
23336   l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_arch_name=little32_4;;
23337   l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_arch_name=little32_8;;
23338
23339   l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_arch_name=little64;;
23340
23341   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_arch_name=big32;;
23342   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_arch_name=big32_8_4;;
23343   B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_arch_name=big32_4;;
23344   B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_arch_name=big32_2;;
23345
23346   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_arch_name=big64;;
23347   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_arch_name=big64_8_4;;
23348 esac
23349 if test x$gras_arch = xunknown ; then
23350   echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23351 echo "${ECHO_T}damnit ($trace)" >&6
23352   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23353 Please report this architecture trace ($trace) and what it corresponds to." >&5
23354 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23355 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23356    { (exit 1); exit 1; }; }
23357 fi
23358 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23359
23360 cat >>confdefs.h <<_ACEOF
23361 #define GRAS_THISARCH $gras_arch
23362 _ACEOF
23363
23364 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23365 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
23366
23367 echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23368 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6
23369 ac_cv_sizeof_max=0
23370 for s in $ac_cv_sizeof_char \
23371          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23372          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23373          4 8; do
23374
23375   if test $ac_cv_sizeof_max -lt $s ; then
23376     ac_cv_sizeof_max=$s
23377   fi
23378 done
23379 echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23380 echo "${ECHO_T}$ac_cv_sizeof_max" >&6
23381
23382 cat >>confdefs.h <<_ACEOF
23383 #define SIZEOF_MAX $ac_cv_sizeof_max
23384 _ACEOF
23385
23386
23387
23388 # Check architecture signature end
23389   echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23390 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6
23391    cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h.  */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h.  */
23397 #include "confdefs.h"
23398         #include <sys/types.h>
23399         #include <stddef.h> /* offsetof() */
23400         struct s {char c; double d;};
23401
23402 int
23403 main ()
23404 {
23405 switch (0)
23406         case 0:
23407         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
23408
23409   ;
23410   return 0;
23411 }
23412 _ACEOF
23413 rm -f conftest.$ac_objext
23414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23415   (eval $ac_compile) 2>conftest.er1
23416   ac_status=$?
23417   grep -v '^ *+' conftest.er1 >conftest.err
23418   rm -f conftest.er1
23419   cat conftest.err >&5
23420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421   (exit $ac_status); } &&
23422          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424   (eval $ac_try) 2>&5
23425   ac_status=$?
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); }; } &&
23428          { ac_try='test -s conftest.$ac_objext'
23429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430   (eval $ac_try) 2>&5
23431   ac_status=$?
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); }; }; then
23434   gras_struct_packed=yes
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439 gras_struct_packed=no
23440 fi
23441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23442
23443    echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
23444 echo "${ECHO_T}$gras_struct_packed" >&6
23445    if test x$gras_struct_packed = "xyes" ; then
23446      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
23447 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
23448    { (exit 1); exit 1; }; }
23449    fi
23450
23451    echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
23452 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6
23453    cat >conftest.$ac_ext <<_ACEOF
23454 /* confdefs.h.  */
23455 _ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h.  */
23459 #include "confdefs.h"
23460         #include <sys/types.h>
23461         #include <stddef.h> /* offsetof() */
23462         struct s {double d; int i; char c;};
23463
23464 int
23465 main ()
23466 {
23467 switch (0)
23468         case 0:
23469         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23470
23471   ;
23472   return 0;
23473 }
23474 _ACEOF
23475 rm -f conftest.$ac_objext
23476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23477   (eval $ac_compile) 2>conftest.er1
23478   ac_status=$?
23479   grep -v '^ *+' conftest.er1 >conftest.err
23480   rm -f conftest.er1
23481   cat conftest.err >&5
23482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483   (exit $ac_status); } &&
23484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486   (eval $ac_try) 2>&5
23487   ac_status=$?
23488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489   (exit $ac_status); }; } &&
23490          { ac_try='test -s conftest.$ac_objext'
23491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23492   (eval $ac_try) 2>&5
23493   ac_status=$?
23494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495   (exit $ac_status); }; }; then
23496   gras_struct_compact=yes
23497 else
23498   echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23500
23501 gras_struct_compact=no
23502 fi
23503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23504
23505    echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
23506 echo "${ECHO_T}$gras_struct_compact" >&6
23507
23508    if test x$gras_struct_compact != xyes ; then
23509      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
23510 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
23511    { (exit 1); exit 1; }; }
23512    fi
23513
23514 cat >>confdefs.h <<_ACEOF
23515 #define GRAS_STRUCT_COMPACT 1
23516 _ACEOF
23517
23518    echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
23519 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6
23520
23521    cat >conftest.$ac_ext <<_ACEOF
23522 /* confdefs.h.  */
23523 _ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h.  */
23527 #include "confdefs.h"
23528       #include <sys/types.h>
23529         #include <stddef.h> /* offsetof() */
23530         struct s { double d; int i; char c[6]; };
23531
23532 int
23533 main ()
23534 {
23535 switch (0)
23536       case 0:
23537       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23538
23539   ;
23540   return 0;
23541 }
23542 _ACEOF
23543 rm -f conftest.$ac_objext
23544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23545   (eval $ac_compile) 2>conftest.er1
23546   ac_status=$?
23547   grep -v '^ *+' conftest.er1 >conftest.err
23548   rm -f conftest.er1
23549   cat conftest.err >&5
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); } &&
23552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554   (eval $ac_try) 2>&5
23555   ac_status=$?
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); }; } &&
23558          { ac_try='test -s conftest.$ac_objext'
23559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560   (eval $ac_try) 2>&5
23561   ac_status=$?
23562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563   (exit $ac_status); }; }; then
23564   gras_array_straddle_struct=yes
23565 else
23566   echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23568
23569 gras_array_straddle_struct=no
23570 fi
23571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23572
23573    echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
23574 echo "${ECHO_T}$gras_array_straddle_struct" >&6
23575
23576    if test x$gras_array_straddle_struct = xyes ; then
23577
23578 cat >>confdefs.h <<_ACEOF
23579 #define GRAS_ARRAY_STRADDLE_STRUCT 1
23580 _ACEOF
23581
23582    else
23583      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
23584 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
23585    { (exit 1); exit 1; }; }
23586    fi
23587
23588
23589
23590
23591
23592   echo "$as_me:$LINENO: result: " >&5
23593 echo "${ECHO_T}" >&6
23594   echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
23595 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6
23596
23597
23598
23599
23600 echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
23601 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6
23602 if test "${ac_cv_check_mcsc+set}" = set; then
23603   echo $ECHO_N "(cached) $ECHO_C" >&6
23604 else
23605
23606 if test "$cross_compiling" = yes; then
23607   ac_cv_check_mcsc=no
23608
23609 else
23610   cat >conftest.$ac_ext <<_ACEOF
23611 /* confdefs.h.  */
23612 _ACEOF
23613 cat confdefs.h >>conftest.$ac_ext
23614 cat >>conftest.$ac_ext <<_ACEOF
23615 /* end confdefs.h.  */
23616
23617
23618 #include <stdio.h>
23619 #include <stdlib.h>
23620 #include <ucontext.h>
23621
23622 ucontext_t uc_child;
23623 ucontext_t uc_main;
23624
23625 void child(void *arg)
23626 {
23627     if (arg != (void *)2147483648)
23628         exit(1);
23629     if (swapcontext(&uc_child, &uc_main) != 0)
23630         exit(2);
23631 }
23632
23633 int main(int argc, char *argv[])
23634 {
23635     FILE *fp;
23636     void *stack;
23637
23638     /* the default is that it fails */
23639     if ((fp = fopen("conftestval", "w")) == NULL)
23640         exit(3);
23641     fprintf(fp, "no\n");
23642     fclose(fp);
23643
23644     /* configure a child user-space context */
23645     if ((stack = malloc(64*1024)) == NULL)
23646         exit(4);
23647     if (getcontext(&uc_child) != 0)
23648         exit(5);
23649     uc_child.uc_link = NULL;
23650     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
23651     uc_child.uc_stack.ss_size = 32*1024;
23652     uc_child.uc_stack.ss_flags = 0;
23653     makecontext(&uc_child, child, 2, (void *)2147483648);
23654
23655     /* switch into the user context */
23656     if (swapcontext(&uc_main, &uc_child) != 0)
23657         exit(6);
23658
23659     /* Fine, child came home */
23660     if ((fp = fopen("conftestval", "w")) == NULL)
23661         exit(7);
23662     fprintf(fp, "yes\n");
23663     fclose(fp);
23664
23665     /* die successfully */
23666     exit(0);
23667 }
23668
23669 _ACEOF
23670 rm -f conftest$ac_exeext
23671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23672   (eval $ac_link) 2>&5
23673   ac_status=$?
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677   (eval $ac_try) 2>&5
23678   ac_status=$?
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); }; }; then
23681   ac_cv_check_mcsc=`cat conftestval`
23682 else
23683   echo "$as_me: program exited with status $ac_status" >&5
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687 ( exit $ac_status )
23688 ac_cv_check_mcsc=no
23689 fi
23690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23691 fi
23692 fi
23693 echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
23694 echo "${ECHO_T}$ac_cv_check_mcsc" >&6
23695 if test ".$ac_cv_check_mcsc" = .yes; then
23696     mcsc=yes
23697 else
23698     mcsc=no
23699 fi
23700
23701
23702
23703 for ac_header in pthread.h
23704 do
23705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23707   echo "$as_me:$LINENO: checking for $ac_header" >&5
23708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23710   echo $ECHO_N "(cached) $ECHO_C" >&6
23711 fi
23712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23714 else
23715   # Is the header compilable?
23716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23718 cat >conftest.$ac_ext <<_ACEOF
23719 /* confdefs.h.  */
23720 _ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h.  */
23724 $ac_includes_default
23725 #include <$ac_header>
23726 _ACEOF
23727 rm -f conftest.$ac_objext
23728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23729   (eval $ac_compile) 2>conftest.er1
23730   ac_status=$?
23731   grep -v '^ *+' conftest.er1 >conftest.err
23732   rm -f conftest.er1
23733   cat conftest.err >&5
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } &&
23736          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738   (eval $ac_try) 2>&5
23739   ac_status=$?
23740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741   (exit $ac_status); }; } &&
23742          { ac_try='test -s conftest.$ac_objext'
23743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23744   (eval $ac_try) 2>&5
23745   ac_status=$?
23746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747   (exit $ac_status); }; }; then
23748   ac_header_compiler=yes
23749 else
23750   echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23752
23753 ac_header_compiler=no
23754 fi
23755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23757 echo "${ECHO_T}$ac_header_compiler" >&6
23758
23759 # Is the header present?
23760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23762 cat >conftest.$ac_ext <<_ACEOF
23763 /* confdefs.h.  */
23764 _ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h.  */
23768 #include <$ac_header>
23769 _ACEOF
23770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23771   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23772   ac_status=$?
23773   grep -v '^ *+' conftest.er1 >conftest.err
23774   rm -f conftest.er1
23775   cat conftest.err >&5
23776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777   (exit $ac_status); } >/dev/null; then
23778   if test -s conftest.err; then
23779     ac_cpp_err=$ac_c_preproc_warn_flag
23780     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23781   else
23782     ac_cpp_err=
23783   fi
23784 else
23785   ac_cpp_err=yes
23786 fi
23787 if test -z "$ac_cpp_err"; then
23788   ac_header_preproc=yes
23789 else
23790   echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23792
23793   ac_header_preproc=no
23794 fi
23795 rm -f conftest.err conftest.$ac_ext
23796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23797 echo "${ECHO_T}$ac_header_preproc" >&6
23798
23799 # So?  What about this header?
23800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23801   yes:no: )
23802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23806     ac_header_preproc=yes
23807     ;;
23808   no:yes:* )
23809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23821     (
23822       cat <<\_ASBOX
23823 ## -------------------------------------------------- ##
23824 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
23825 ## -------------------------------------------------- ##
23826 _ASBOX
23827     ) |
23828       sed "s/^/$as_me: WARNING:     /" >&2
23829     ;;
23830 esac
23831 echo "$as_me:$LINENO: checking for $ac_header" >&5
23832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23834   echo $ECHO_N "(cached) $ECHO_C" >&6
23835 else
23836   eval "$as_ac_Header=\$ac_header_preproc"
23837 fi
23838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23840
23841 fi
23842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23843   cat >>confdefs.h <<_ACEOF
23844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23845 _ACEOF
23846
23847 fi
23848
23849 done
23850
23851 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
23852 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
23853 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
23854   echo $ECHO_N "(cached) $ECHO_C" >&6
23855 else
23856   ac_check_lib_save_LIBS=$LIBS
23857 LIBS="-lpthread  $LIBS"
23858 cat >conftest.$ac_ext <<_ACEOF
23859 /* confdefs.h.  */
23860 _ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h.  */
23864
23865 /* Override any gcc2 internal prototype to avoid an error.  */
23866 #ifdef __cplusplus
23867 extern "C"
23868 #endif
23869 /* We use char because int might match the return type of a gcc2
23870    builtin and then its argument prototype would still apply.  */
23871 char pthread_create ();
23872 int
23873 main ()
23874 {
23875 pthread_create ();
23876   ;
23877   return 0;
23878 }
23879 _ACEOF
23880 rm -f conftest.$ac_objext conftest$ac_exeext
23881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23882   (eval $ac_link) 2>conftest.er1
23883   ac_status=$?
23884   grep -v '^ *+' conftest.er1 >conftest.err
23885   rm -f conftest.er1
23886   cat conftest.err >&5
23887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888   (exit $ac_status); } &&
23889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891   (eval $ac_try) 2>&5
23892   ac_status=$?
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); }; } &&
23895          { ac_try='test -s conftest$ac_exeext'
23896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23897   (eval $ac_try) 2>&5
23898   ac_status=$?
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); }; }; then
23901   ac_cv_lib_pthread_pthread_create=yes
23902 else
23903   echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23905
23906 ac_cv_lib_pthread_pthread_create=no
23907 fi
23908 rm -f conftest.err conftest.$ac_objext \
23909       conftest$ac_exeext conftest.$ac_ext
23910 LIBS=$ac_check_lib_save_LIBS
23911 fi
23912 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23913 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23914 if test $ac_cv_lib_pthread_pthread_create = yes; then
23915   pthread=yes
23916 else
23917   pthread=no
23918 fi
23919
23920
23921
23922 if test ".$mcsc" = .yes; then
23923    mcsc=yes
23924 elif test ".$pthread" = .yes; then
23925    pthread=yes
23926 else
23927     ac_header=windows.h
23928     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23929     if test `eval echo '${'$as_ac_Header'}'` = yes; then
23930       windows_context=yes
23931     else
23932       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
23933 echo "$as_me: error: no appropriate backend found" >&2;}
23934    { (exit 1); exit 1; }; }
23935     fi
23936 fi
23937
23938
23939 echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
23940 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6
23941
23942
23943 # Check whether --with-pthread or --without-pthread was given.
23944 if test "${with_pthread+set}" = set; then
23945   withval="$with_pthread"
23946   with_context=pthread
23947 fi;
23948
23949
23950 # Check whether --with-context or --without-context was given.
23951 if test "${with_context+set}" = set; then
23952   withval="$with_context"
23953
23954 else
23955   with_context=auto
23956 fi;
23957
23958 if test "x$with_context$mcsc" = "xucontextno" ; then
23959   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
23960 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
23961    { (exit 77); exit 77; }; }
23962 fi
23963
23964 case $with_context in
23965  ucontext) ;;
23966  pthread) ;;
23967  windows) ;;
23968  auto) with_context=ucontext;;
23969  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
23970 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
23971    { (exit 1); exit 1; }; } ;;
23972 esac
23973
23974 if test "x$with_context" = "xucontext" ; then
23975   if test ".$mcsc" = .yes; then
23976     echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
23977 echo "${ECHO_T}found working ucontext. Great!" >&6
23978
23979 cat >>confdefs.h <<\_ACEOF
23980 #define USE_UCONTEXT 1
23981 _ACEOF
23982
23983   else
23984     if test ".$windows_context" = .yes ; then
23985       echo "$as_me:$LINENO: result: use windows context portability layer." >&5
23986 echo "${ECHO_T}use windows context portability layer." >&6
23987       with_context=windows
23988     else
23989       echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
23990 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6
23991       with_context=pthread
23992     fi
23993   fi
23994 fi
23995
23996 if test "x$with_context" = "xpthread"; then
23997
23998 for ac_header in pthread.h
23999 do
24000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24002   echo "$as_me:$LINENO: checking for $ac_header" >&5
24003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24005   echo $ECHO_N "(cached) $ECHO_C" >&6
24006 fi
24007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24009 else
24010   # Is the header compilable?
24011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24013 cat >conftest.$ac_ext <<_ACEOF
24014 /* confdefs.h.  */
24015 _ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h.  */
24019 $ac_includes_default
24020 #include <$ac_header>
24021 _ACEOF
24022 rm -f conftest.$ac_objext
24023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24024   (eval $ac_compile) 2>conftest.er1
24025   ac_status=$?
24026   grep -v '^ *+' conftest.er1 >conftest.err
24027   rm -f conftest.er1
24028   cat conftest.err >&5
24029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030   (exit $ac_status); } &&
24031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033   (eval $ac_try) 2>&5
24034   ac_status=$?
24035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036   (exit $ac_status); }; } &&
24037          { ac_try='test -s conftest.$ac_objext'
24038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24039   (eval $ac_try) 2>&5
24040   ac_status=$?
24041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042   (exit $ac_status); }; }; then
24043   ac_header_compiler=yes
24044 else
24045   echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24047
24048 ac_header_compiler=no
24049 fi
24050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24052 echo "${ECHO_T}$ac_header_compiler" >&6
24053
24054 # Is the header present?
24055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24057 cat >conftest.$ac_ext <<_ACEOF
24058 /* confdefs.h.  */
24059 _ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h.  */
24063 #include <$ac_header>
24064 _ACEOF
24065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24066   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24067   ac_status=$?
24068   grep -v '^ *+' conftest.er1 >conftest.err
24069   rm -f conftest.er1
24070   cat conftest.err >&5
24071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072   (exit $ac_status); } >/dev/null; then
24073   if test -s conftest.err; then
24074     ac_cpp_err=$ac_c_preproc_warn_flag
24075     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24076   else
24077     ac_cpp_err=
24078   fi
24079 else
24080   ac_cpp_err=yes
24081 fi
24082 if test -z "$ac_cpp_err"; then
24083   ac_header_preproc=yes
24084 else
24085   echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24087
24088   ac_header_preproc=no
24089 fi
24090 rm -f conftest.err conftest.$ac_ext
24091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24092 echo "${ECHO_T}$ac_header_preproc" >&6
24093
24094 # So?  What about this header?
24095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24096   yes:no: )
24097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24101     ac_header_preproc=yes
24102     ;;
24103   no:yes:* )
24104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24116     (
24117       cat <<\_ASBOX
24118 ## -------------------------------------------------- ##
24119 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24120 ## -------------------------------------------------- ##
24121 _ASBOX
24122     ) |
24123       sed "s/^/$as_me: WARNING:     /" >&2
24124     ;;
24125 esac
24126 echo "$as_me:$LINENO: checking for $ac_header" >&5
24127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24129   echo $ECHO_N "(cached) $ECHO_C" >&6
24130 else
24131   eval "$as_ac_Header=\$ac_header_preproc"
24132 fi
24133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24135
24136 fi
24137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24138   cat >>confdefs.h <<_ACEOF
24139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24140 _ACEOF
24141
24142 fi
24143
24144 done
24145
24146
24147 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24148 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
24149 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24150   echo $ECHO_N "(cached) $ECHO_C" >&6
24151 else
24152   ac_check_lib_save_LIBS=$LIBS
24153 LIBS="-lpthread  $LIBS"
24154 cat >conftest.$ac_ext <<_ACEOF
24155 /* confdefs.h.  */
24156 _ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h.  */
24160
24161 /* Override any gcc2 internal prototype to avoid an error.  */
24162 #ifdef __cplusplus
24163 extern "C"
24164 #endif
24165 /* We use char because int might match the return type of a gcc2
24166    builtin and then its argument prototype would still apply.  */
24167 char pthread_create ();
24168 int
24169 main ()
24170 {
24171 pthread_create ();
24172   ;
24173   return 0;
24174 }
24175 _ACEOF
24176 rm -f conftest.$ac_objext conftest$ac_exeext
24177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24178   (eval $ac_link) 2>conftest.er1
24179   ac_status=$?
24180   grep -v '^ *+' conftest.er1 >conftest.err
24181   rm -f conftest.er1
24182   cat conftest.err >&5
24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184   (exit $ac_status); } &&
24185          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24187   (eval $ac_try) 2>&5
24188   ac_status=$?
24189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); }; } &&
24191          { ac_try='test -s conftest$ac_exeext'
24192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24193   (eval $ac_try) 2>&5
24194   ac_status=$?
24195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196   (exit $ac_status); }; }; then
24197   ac_cv_lib_pthread_pthread_create=yes
24198 else
24199   echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24201
24202 ac_cv_lib_pthread_pthread_create=no
24203 fi
24204 rm -f conftest.err conftest.$ac_objext \
24205       conftest$ac_exeext conftest.$ac_ext
24206 LIBS=$ac_check_lib_save_LIBS
24207 fi
24208 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24209 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
24210 if test $ac_cv_lib_pthread_pthread_create = yes; then
24211   cat >>confdefs.h <<_ACEOF
24212 #define HAVE_LIBPTHREAD 1
24213 _ACEOF
24214
24215   LIBS="-lpthread $LIBS"
24216
24217 else
24218   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24219 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24220    { (exit 1); exit 1; }; }
24221 fi
24222
24223
24224 cat >>confdefs.h <<\_ACEOF
24225 #define USE_PTHREADS 1
24226 _ACEOF
24227
24228   echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24229 echo "${ECHO_T}You have pthreads. Let's use them." >&6
24230 fi
24231
24232
24233 if test "x$with_context" = "xucontext" ; then
24234   echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24235 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6
24236 if test "${ac_cv_check_stackgrowth+set}" = set; then
24237   echo $ECHO_N "(cached) $ECHO_C" >&6
24238 else
24239
24240 cross_compiling=no
24241 if test "$cross_compiling" = yes; then
24242   ac_cv_check_stackgrowth=down
24243
24244 else
24245   cat >conftest.$ac_ext <<_ACEOF
24246 /* confdefs.h.  */
24247 _ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h.  */
24251
24252 #include <stdio.h>
24253 #include <stdlib.h>
24254 static int iterate = 10;
24255 static int growsdown(int *x)
24256 {
24257     auto int y;
24258     y = (x > &y);
24259     if (--iterate > 0)
24260         y = growsdown(&y);
24261     if (y != (x > &y))
24262         exit(1);
24263     return y;
24264 }
24265 int main(int argc, char *argv[])
24266 {
24267     FILE *f;
24268     auto int x;
24269     if ((f = fopen("conftestval", "w")) == NULL)
24270         exit(1);
24271     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24272     fclose(f);
24273     exit(0);
24274 }
24275
24276
24277 _ACEOF
24278 rm -f conftest$ac_exeext
24279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24280   (eval $ac_link) 2>&5
24281   ac_status=$?
24282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24285   (eval $ac_try) 2>&5
24286   ac_status=$?
24287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288   (exit $ac_status); }; }; then
24289   ac_cv_check_stackgrowth=`cat conftestval`
24290 else
24291   echo "$as_me: program exited with status $ac_status" >&5
24292 echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24294
24295 ( exit $ac_status )
24296 ac_cv_check_stackgrowth=down
24297 fi
24298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24299 fi
24300 fi
24301 echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24302 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6
24303 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24304     val="-1"
24305 else
24306     val="+1"
24307 fi
24308
24309 cat >>confdefs.h <<_ACEOF
24310 #define PTH_STACKGROWTH $val
24311 _ACEOF
24312
24313
24314   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24315       PTH_STACK_GROWTH="down"
24316   else
24317       PTH_STACK_GROWTH="up"
24318   fi
24319
24320
24321
24322
24323
24324
24325 for ac_func in makecontext
24326 do
24327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24328 echo "$as_me:$LINENO: checking for $ac_func" >&5
24329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24330 if eval "test \"\${$as_ac_var+set}\" = set"; then
24331   echo $ECHO_N "(cached) $ECHO_C" >&6
24332 else
24333   cat >conftest.$ac_ext <<_ACEOF
24334 /* confdefs.h.  */
24335 _ACEOF
24336 cat confdefs.h >>conftest.$ac_ext
24337 cat >>conftest.$ac_ext <<_ACEOF
24338 /* end confdefs.h.  */
24339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24341 #define $ac_func innocuous_$ac_func
24342
24343 /* System header to define __stub macros and hopefully few prototypes,
24344     which can conflict with char $ac_func (); below.
24345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24346     <limits.h> exists even on freestanding compilers.  */
24347
24348 #ifdef __STDC__
24349 # include <limits.h>
24350 #else
24351 # include <assert.h>
24352 #endif
24353
24354 #undef $ac_func
24355
24356 /* Override any gcc2 internal prototype to avoid an error.  */
24357 #ifdef __cplusplus
24358 extern "C"
24359 {
24360 #endif
24361 /* We use char because int might match the return type of a gcc2
24362    builtin and then its argument prototype would still apply.  */
24363 char $ac_func ();
24364 /* The GNU C library defines this for functions which it implements
24365     to always fail with ENOSYS.  Some functions are actually named
24366     something starting with __ and the normal name is an alias.  */
24367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24368 choke me
24369 #else
24370 char (*f) () = $ac_func;
24371 #endif
24372 #ifdef __cplusplus
24373 }
24374 #endif
24375
24376 int
24377 main ()
24378 {
24379 return f != $ac_func;
24380   ;
24381   return 0;
24382 }
24383 _ACEOF
24384 rm -f conftest.$ac_objext conftest$ac_exeext
24385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24386   (eval $ac_link) 2>conftest.er1
24387   ac_status=$?
24388   grep -v '^ *+' conftest.er1 >conftest.err
24389   rm -f conftest.er1
24390   cat conftest.err >&5
24391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392   (exit $ac_status); } &&
24393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395   (eval $ac_try) 2>&5
24396   ac_status=$?
24397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398   (exit $ac_status); }; } &&
24399          { ac_try='test -s conftest$ac_exeext'
24400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401   (eval $ac_try) 2>&5
24402   ac_status=$?
24403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404   (exit $ac_status); }; }; then
24405   eval "$as_ac_var=yes"
24406 else
24407   echo "$as_me: failed program was:" >&5
24408 sed 's/^/| /' conftest.$ac_ext >&5
24409
24410 eval "$as_ac_var=no"
24411 fi
24412 rm -f conftest.err conftest.$ac_objext \
24413       conftest$ac_exeext conftest.$ac_ext
24414 fi
24415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24417 if test `eval echo '${'$as_ac_var'}'` = yes; then
24418   cat >>confdefs.h <<_ACEOF
24419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24420 _ACEOF
24421
24422 fi
24423 done
24424
24425
24426 echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
24427 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6
24428 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
24429   echo $ECHO_N "(cached) $ECHO_C" >&6
24430 else
24431
24432 if test ".$ac_cv_func_makecontext" = .no; then
24433         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
24434 else
24435         OCFLAGS="$CFLAGS"
24436     CFLAGS="$CFLAGS -DTEST_makecontext"
24437     cross_compiling=no
24438         if test "$cross_compiling" = yes; then
24439
24440 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24441
24442 else
24443   cat >conftest.$ac_ext <<_ACEOF
24444 /* confdefs.h.  */
24445 _ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h.  */
24449
24450 #include <stdio.h>
24451 #include <stdlib.h>
24452 #include <string.h>
24453 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24454 #include <sys/types.h>
24455 #include <signal.h>
24456 #include <unistd.h>
24457 #endif
24458 #if defined(TEST_makecontext)
24459 #include <ucontext.h>
24460 #endif
24461 union alltypes {
24462     long   l;
24463     double d;
24464     void  *vp;
24465     void (*fp)(void);
24466     char  *cp;
24467 };
24468 static volatile char *handler_addr = (char *)0xDEAD;
24469 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24470 static volatile int handler_done = 0;
24471 void handler(int sig)
24472 {
24473     char garbage[1024];
24474     int i;
24475     auto int dummy;
24476     for (i = 0; i < 1024; i++)
24477         garbage[i] = 'X';
24478     handler_addr = (char *)&dummy;
24479     handler_done = 1;
24480     return;
24481 }
24482 #endif
24483 #if defined(TEST_makecontext)
24484 static ucontext_t uc_handler;
24485 static ucontext_t uc_main;
24486 void handler(void)
24487 {
24488     char garbage[1024];
24489     int i;
24490     auto int dummy;
24491     for (i = 0; i < 1024; i++)
24492         garbage[i] = 'X';
24493     handler_addr = (char *)&dummy;
24494     swapcontext(&uc_handler, &uc_main);
24495     return;
24496 }
24497 #endif
24498 int main(int argc, char *argv[])
24499 {
24500     FILE *f;
24501     char *skaddr;
24502     char *skbuf;
24503     int sksize;
24504     char result[1024];
24505     int i;
24506     sksize = 32768;
24507     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
24508     if (skbuf == NULL)
24509         exit(1);
24510     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
24511         skbuf[i] = 'A';
24512     skaddr = skbuf+sizeof(union alltypes);
24513 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24514     {
24515         struct sigaction sa;
24516 #if defined(TEST_sigstack)
24517         struct sigstack ss;
24518 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
24519         stack_t ss;
24520 #else
24521         struct sigaltstack ss;
24522 #endif
24523 #if defined(TEST_sigstack)
24524         ss.ss_sp      = (void *)(skaddr + sksize);
24525         ss.ss_onstack = 0;
24526         if (sigstack(&ss, NULL) < 0)
24527             exit(1);
24528 #elif defined(TEST_sigaltstack)
24529         ss.ss_sp    = (void *)(skaddr + sksize);
24530         ss.ss_size  = sksize;
24531         ss.ss_flags = 0;
24532         if (sigaltstack(&ss, NULL) < 0)
24533             exit(1);
24534 #endif
24535         memset((void *)&sa, 0, sizeof(struct sigaction));
24536         sa.sa_handler = handler;
24537         sa.sa_flags = SA_ONSTACK;
24538         sigemptyset(&sa.sa_mask);
24539         sigaction(SIGUSR1, &sa, NULL);
24540         kill(getpid(), SIGUSR1);
24541         while (!handler_done)
24542             /*nop*/;
24543     }
24544 #endif
24545 #if defined(TEST_makecontext)
24546     {
24547         if (getcontext(&uc_handler) != 0)
24548             exit(1);
24549         uc_handler.uc_link = NULL;
24550         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
24551         uc_handler.uc_stack.ss_size  = sksize;
24552         uc_handler.uc_stack.ss_flags = 0;
24553         makecontext(&uc_handler, handler, 1);
24554         swapcontext(&uc_main, &uc_handler);
24555     }
24556 #endif
24557     if (handler_addr == (char *)0xDEAD)
24558         exit(1);
24559     if (handler_addr < skaddr+sksize) {
24560         /* stack was placed into lower area */
24561         if (*(skaddr+sksize) != 'A')
24562              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
24563                      sizeof(union alltypes), sizeof(union alltypes));
24564         else
24565              strcpy(result, "(skaddr)+(sksize),(sksize)");
24566     }
24567     else {
24568         /* stack was placed into higher area */
24569         if (*(skaddr+sksize*2) != 'A')
24570             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
24571         else
24572             strcpy(result, "(skaddr),(sksize)");
24573     }
24574     if ((f = fopen("conftestval", "w")) == NULL)
24575         exit(1);
24576     fprintf(f, "%s\n", result);
24577     fclose(f);
24578     exit(0);
24579 }
24580
24581 _ACEOF
24582 rm -f conftest$ac_exeext
24583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24584   (eval $ac_link) 2>&5
24585   ac_status=$?
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589   (eval $ac_try) 2>&5
24590   ac_status=$?
24591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592   (exit $ac_status); }; }; then
24593
24594 ac_cv_stacksetup_makecontext=`cat conftestval`
24595 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
24596
24597 else
24598   echo "$as_me: program exited with status $ac_status" >&5
24599 echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24601
24602 ( exit $ac_status )
24603
24604 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24605
24606 fi
24607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24608 fi
24609 CFLAGS="$OCFLAGS"
24610
24611 fi
24612 fi
24613 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
24614 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
24615 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
24616 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
24617 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
24618 echo "$as_me:$LINENO: result: $type" >&5
24619 echo "${ECHO_T}$type" >&6
24620 if test ".$verbose" = .yes; then
24621     echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
24622 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6
24623 fi
24624
24625 if test ".$verbose" = .yes; then
24626     echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
24627 echo "${ECHO_T}  $pth_sksize_makecontext" >&6
24628 fi
24629
24630
24631 fi
24632
24633
24634 #########################################
24635 ## Build optional modules (simix)
24636 ##
24637
24638   echo "$as_me:$LINENO: result: " >&5
24639 echo "${ECHO_T}" >&6
24640   echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
24641 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6
24642
24643 # Check whether --enable-simix or --disable-simix was given.
24644 if test "${enable_simix+set}" = set; then
24645   enableval="$enable_simix"
24646   enable_simix=$enableval
24647 else
24648   enable_simix=no
24649 fi;
24650 if test "x$enable_simix" = "xyes" ; then
24651   echo "$as_me:$LINENO: result: \"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&5
24652 echo "${ECHO_T}\"***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****\"" >&6
24653
24654 cat >>confdefs.h <<\_ACEOF
24655 #define USE_SIMIX 1
24656 _ACEOF
24657
24658 else
24659   echo "$as_me:$LINENO: result: Eventually you will come to SimIX: x$enable_simix" >&5
24660 echo "${ECHO_T}Eventually you will come to SimIX: x$enable_simix" >&6
24661 fi
24662
24663
24664 if test x$enable_simix != xno; then
24665   USE_SIMIX_TRUE=
24666   USE_SIMIX_FALSE='#'
24667 else
24668   USE_SIMIX_TRUE='#'
24669   USE_SIMIX_FALSE=
24670 fi
24671
24672
24673 #########################################
24674 ## Check for libraries extra-dependencies
24675 ##
24676
24677
24678   echo "$as_me:$LINENO: result: " >&5
24679 echo "${ECHO_T}" >&6
24680   echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
24681 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6
24682
24683
24684 SIMGRID_DEP=""
24685 GRAS_DEP=""
24686 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24687 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
24688 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24689   echo $ECHO_N "(cached) $ECHO_C" >&6
24690 else
24691   ac_check_lib_save_LIBS=$LIBS
24692 LIBS="-lpthread  $LIBS"
24693 cat >conftest.$ac_ext <<_ACEOF
24694 /* confdefs.h.  */
24695 _ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h.  */
24699
24700 /* Override any gcc2 internal prototype to avoid an error.  */
24701 #ifdef __cplusplus
24702 extern "C"
24703 #endif
24704 /* We use char because int might match the return type of a gcc2
24705    builtin and then its argument prototype would still apply.  */
24706 char pthread_create ();
24707 int
24708 main ()
24709 {
24710 pthread_create ();
24711   ;
24712   return 0;
24713 }
24714 _ACEOF
24715 rm -f conftest.$ac_objext conftest$ac_exeext
24716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24717   (eval $ac_link) 2>conftest.er1
24718   ac_status=$?
24719   grep -v '^ *+' conftest.er1 >conftest.err
24720   rm -f conftest.er1
24721   cat conftest.err >&5
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); } &&
24724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726   (eval $ac_try) 2>&5
24727   ac_status=$?
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); }; } &&
24730          { ac_try='test -s conftest$ac_exeext'
24731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732   (eval $ac_try) 2>&5
24733   ac_status=$?
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); }; }; then
24736   ac_cv_lib_pthread_pthread_create=yes
24737 else
24738   echo "$as_me: failed program was:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24740
24741 ac_cv_lib_pthread_pthread_create=no
24742 fi
24743 rm -f conftest.err conftest.$ac_objext \
24744       conftest$ac_exeext conftest.$ac_ext
24745 LIBS=$ac_check_lib_save_LIBS
24746 fi
24747 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24748 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
24749 if test $ac_cv_lib_pthread_pthread_create = yes; then
24750   SIMGRID_DEP="-lpthread"; GRAS_DEP="-lpthread"
24751 fi
24752
24753
24754 echo "$as_me:$LINENO: checking for csdp" >&5
24755 echo $ECHO_N "checking for csdp... $ECHO_C" >&6
24756 sdp=no
24757 echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
24758 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6
24759 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
24760   echo $ECHO_N "(cached) $ECHO_C" >&6
24761 else
24762   ac_check_lib_save_LIBS=$LIBS
24763 LIBS="-lsdp -llapack -lblas -lm $LIBS"
24764 cat >conftest.$ac_ext <<_ACEOF
24765 /* confdefs.h.  */
24766 _ACEOF
24767 cat confdefs.h >>conftest.$ac_ext
24768 cat >>conftest.$ac_ext <<_ACEOF
24769 /* end confdefs.h.  */
24770
24771 /* Override any gcc2 internal prototype to avoid an error.  */
24772 #ifdef __cplusplus
24773 extern "C"
24774 #endif
24775 /* We use char because int might match the return type of a gcc2
24776    builtin and then its argument prototype would still apply.  */
24777 char sdp ();
24778 int
24779 main ()
24780 {
24781 sdp ();
24782   ;
24783   return 0;
24784 }
24785 _ACEOF
24786 rm -f conftest.$ac_objext conftest$ac_exeext
24787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24788   (eval $ac_link) 2>conftest.er1
24789   ac_status=$?
24790   grep -v '^ *+' conftest.er1 >conftest.err
24791   rm -f conftest.er1
24792   cat conftest.err >&5
24793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794   (exit $ac_status); } &&
24795          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24797   (eval $ac_try) 2>&5
24798   ac_status=$?
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); }; } &&
24801          { ac_try='test -s conftest$ac_exeext'
24802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803   (eval $ac_try) 2>&5
24804   ac_status=$?
24805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806   (exit $ac_status); }; }; then
24807   ac_cv_lib_sdp_sdp=yes
24808 else
24809   echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.$ac_ext >&5
24811
24812 ac_cv_lib_sdp_sdp=no
24813 fi
24814 rm -f conftest.err conftest.$ac_objext \
24815       conftest$ac_exeext conftest.$ac_ext
24816 LIBS=$ac_check_lib_save_LIBS
24817 fi
24818 echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
24819 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6
24820 if test $ac_cv_lib_sdp_sdp = yes; then
24821   csdp=yes
24822 else
24823   csdp=no
24824 fi
24825
24826 if test "x$csdp" = xyes; then
24827   SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
24828   echo "$as_me:$LINENO: result: Found working sdp library." >&5
24829 echo "${ECHO_T}Found working sdp library." >&6
24830
24831 cat >>confdefs.h <<\_ACEOF
24832 #define HAVE_SDP 1
24833 _ACEOF
24834
24835 else
24836   echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
24837 echo "${ECHO_T}Could not find any working sdp library." >&6
24838 fi;
24839
24840
24841 if test x$csdp != xno; then
24842   HAVE_SDP_TRUE=
24843   HAVE_SDP_FALSE='#'
24844 else
24845   HAVE_SDP_TRUE='#'
24846   HAVE_SDP_FALSE=
24847 fi
24848
24849
24850
24851
24852 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24853 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24854 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24855   echo $ECHO_N "(cached) $ECHO_C" >&6
24856 else
24857   ac_check_lib_save_LIBS=$LIBS
24858 LIBS="-lnsl  $LIBS"
24859 cat >conftest.$ac_ext <<_ACEOF
24860 /* confdefs.h.  */
24861 _ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h.  */
24865
24866 /* Override any gcc2 internal prototype to avoid an error.  */
24867 #ifdef __cplusplus
24868 extern "C"
24869 #endif
24870 /* We use char because int might match the return type of a gcc2
24871    builtin and then its argument prototype would still apply.  */
24872 char gethostbyname ();
24873 int
24874 main ()
24875 {
24876 gethostbyname ();
24877   ;
24878   return 0;
24879 }
24880 _ACEOF
24881 rm -f conftest.$ac_objext conftest$ac_exeext
24882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24883   (eval $ac_link) 2>conftest.er1
24884   ac_status=$?
24885   grep -v '^ *+' conftest.er1 >conftest.err
24886   rm -f conftest.er1
24887   cat conftest.err >&5
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); } &&
24890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892   (eval $ac_try) 2>&5
24893   ac_status=$?
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); }; } &&
24896          { ac_try='test -s conftest$ac_exeext'
24897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898   (eval $ac_try) 2>&5
24899   ac_status=$?
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); }; }; then
24902   ac_cv_lib_nsl_gethostbyname=yes
24903 else
24904   echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24906
24907 ac_cv_lib_nsl_gethostbyname=no
24908 fi
24909 rm -f conftest.err conftest.$ac_objext \
24910       conftest$ac_exeext conftest.$ac_ext
24911 LIBS=$ac_check_lib_save_LIBS
24912 fi
24913 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24914 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24915 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24916   GRAS_DEP="$GRAS_DEP -lnsl"
24917 fi
24918
24919 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24920 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24921 if test "${ac_cv_lib_socket_connect+set}" = set; then
24922   echo $ECHO_N "(cached) $ECHO_C" >&6
24923 else
24924   ac_check_lib_save_LIBS=$LIBS
24925 LIBS="-lsocket  $LIBS"
24926 cat >conftest.$ac_ext <<_ACEOF
24927 /* confdefs.h.  */
24928 _ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h.  */
24932
24933 /* Override any gcc2 internal prototype to avoid an error.  */
24934 #ifdef __cplusplus
24935 extern "C"
24936 #endif
24937 /* We use char because int might match the return type of a gcc2
24938    builtin and then its argument prototype would still apply.  */
24939 char connect ();
24940 int
24941 main ()
24942 {
24943 connect ();
24944   ;
24945   return 0;
24946 }
24947 _ACEOF
24948 rm -f conftest.$ac_objext conftest$ac_exeext
24949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24950   (eval $ac_link) 2>conftest.er1
24951   ac_status=$?
24952   grep -v '^ *+' conftest.er1 >conftest.err
24953   rm -f conftest.er1
24954   cat conftest.err >&5
24955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956   (exit $ac_status); } &&
24957          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24959   (eval $ac_try) 2>&5
24960   ac_status=$?
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); }; } &&
24963          { ac_try='test -s conftest$ac_exeext'
24964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965   (eval $ac_try) 2>&5
24966   ac_status=$?
24967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968   (exit $ac_status); }; }; then
24969   ac_cv_lib_socket_connect=yes
24970 else
24971   echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24973
24974 ac_cv_lib_socket_connect=no
24975 fi
24976 rm -f conftest.err conftest.$ac_objext \
24977       conftest$ac_exeext conftest.$ac_ext
24978 LIBS=$ac_check_lib_save_LIBS
24979 fi
24980 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24981 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24982 if test $ac_cv_lib_socket_connect = yes; then
24983   GRAS_DEP="$GRAS_DEP -lsocket"
24984 fi
24985
24986
24987 echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
24988 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6
24989 case $host_os in
24990   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
24991             AM_CFLAGS=-DDLL_EXPORT
24992 ;;
24993 esac
24994
24995 if test "x$GRAS_DEP" = x; then
24996    echo "$as_me:$LINENO: result: none" >&5
24997 echo "${ECHO_T}none" >&6
24998 else
24999    echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25000 echo "${ECHO_T}$GRAS_DEP" >&6
25001 fi
25002
25003
25004
25005 ##############################################
25006 ## Enhance maintainer mode and SUBST variables
25007 ## (must be placed after any compilation tests since our overprotective flags
25008 ##  let some tests fail)
25009
25010 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25011 # Next line is modified by sed when building gramine source tree
25012 gramine_mode=no
25013 if test x$gramine_mode = xyes
25014 then
25015   USE_MAINTAINER_MODE=no
25016 fi
25017
25018
25019 if test x$gramine_mode != xno; then
25020   GRAMINE_MODE_TRUE=
25021   GRAMINE_MODE_FALSE='#'
25022 else
25023   GRAMINE_MODE_TRUE='#'
25024   GRAMINE_MODE_FALSE=
25025 fi
25026
25027
25028
25029 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25030 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
25031     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
25032 if test "${enable_maintainer_mode+set}" = set; then
25033   enableval="$enable_maintainer_mode"
25034   USE_MAINTAINER_MODE=$enableval
25035 else
25036   USE_MAINTAINER_MODE=no
25037 fi;
25038   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25039 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
25040
25041
25042 if test $USE_MAINTAINER_MODE = yes; then
25043   MAINTAINER_MODE_TRUE=
25044   MAINTAINER_MODE_FALSE='#'
25045 else
25046   MAINTAINER_MODE_TRUE='#'
25047   MAINTAINER_MODE_FALSE=
25048 fi
25049
25050   MAINT=$MAINTAINER_MODE_TRUE
25051
25052
25053 if test x$USE_MAINTAINER_MODE = xyes
25054 then
25055    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25056    enable_compile_warnings=yes
25057 fi
25058
25059   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
25060 if test "${enable_compile_warnings+set}" = set; then
25061   enableval="$enable_compile_warnings"
25062   enable_compile_warnings=$enableval
25063 else
25064   enable_compile_warnings=no
25065 fi;
25066
25067   # Check whether --enable-compile-optimizations or --disable-compile-optimizations was given.
25068 if test "${enable_compile_optimizations+set}" = set; then
25069   enableval="$enable_compile_optimizations"
25070   enable_compile_optimizations=$enableval
25071 else
25072   enable_compile_optimizations=auto
25073 fi;
25074
25075   if test "x$cflags_set" != "xyes" ; then
25076     # if user didn't specify CFLAGS explicitely
25077
25078     # AC PROG CC tests whether -g is accepted.
25079     # Cool, but it also tries to set -O2. I don't want it with gcc
25080     saveCFLAGS="$CFLAGS"
25081     CFLAGS=
25082     case " $saveCFLAGS " in
25083     *-g*) CFLAGS="-g" ;;
25084     esac
25085     case " $saveCFLAGS " in
25086     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25087     esac
25088
25089     # damn AC PROG CC, why did you set -O??
25090     CFLAGS="-g"
25091   fi
25092
25093   if test "x$enable_compile_warnings" = "xyes" ; then
25094     echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25095 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6
25096     warnCFLAGS=
25097     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25098       case " $CFLAGS " in
25099       *-Wall*) ;;
25100       *) warnCFLAGS="-Wall -Wunused" ;;
25101       esac
25102
25103       ## -W is not all that useful.  And it cannot be controlled
25104       ## with individual -Wno-xxx flags, unlike -Wall
25105
25106       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25107       ## -Wshadow chokes on try{ try{} } constructs
25108       if test "x$enable_compile_warnings" = "xyes"; then
25109         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25110         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25111         -Wno-unused-function  \
25112         -Werror \
25113         | sed 's/ +/ /g'`
25114         # -Wno-unused-variable  -Wno-unused-label
25115       fi
25116     fi
25117     echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25118 echo "${ECHO_T}$warnCFLAGS" >&6
25119     # placed before since gcc remembers the last one on conflict
25120     CFLAGS="$warnCFLAGS $CFLAGS"
25121   fi
25122
25123   if test "x$enable_compile_optimizations" = "xyes" ||
25124      test "x$enable_compile_optimizations" = "xauto" ; then
25125     echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25126 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6
25127     optCFLAGS=
25128     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25129         case " $CFLAGS " in
25130         *-O*) ;;
25131         *) optCFLAGS="$optCFLAGS -O3" ;;
25132         esac
25133         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25134
25135         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25136         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25137         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25138           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25139           # isn't propagated enough to desserve an extra check
25140
25141           # Note that the flag didn't exist before gcc 3.0
25142           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25143         fi
25144             fi
25145     echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25146 echo "${ECHO_T}$optCFLAGS" >&6
25147     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25148     if test "x$cflags_set" != "xyes" ; then
25149       CFLAGS="$optCFLAGS $CFLAGS"
25150     fi
25151   fi
25152
25153   if test x$lt_cv_prog_gnu_ld = xyes ; then
25154     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25155   else
25156     LD_DYNAMIC_FLAGS=
25157   fi
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170 #####################
25171 ## Check for programs
25172 ##
25173
25174
25175   echo "$as_me:$LINENO: result: " >&5
25176 echo "${ECHO_T}" >&6
25177   echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25178 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6
25179
25180 # Extract the first word of "bash", so it can be a program name with args.
25181 set dummy bash; ac_word=$2
25182 echo "$as_me:$LINENO: checking for $ac_word" >&5
25183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25184 if test "${ac_cv_prog_BASH+set}" = set; then
25185   echo $ECHO_N "(cached) $ECHO_C" >&6
25186 else
25187   if test -n "$BASH"; then
25188   ac_cv_prog_BASH="$BASH" # Let the user override the test.
25189 else
25190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25191 for as_dir in $PATH
25192 do
25193   IFS=$as_save_IFS
25194   test -z "$as_dir" && as_dir=.
25195   for ac_exec_ext in '' $ac_executable_extensions; do
25196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25197     ac_cv_prog_BASH="`which bash`"
25198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25199     break 2
25200   fi
25201 done
25202 done
25203
25204   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25205 fi
25206 fi
25207 BASH=$ac_cv_prog_BASH
25208 if test -n "$BASH"; then
25209   echo "$as_me:$LINENO: result: $BASH" >&5
25210 echo "${ECHO_T}$BASH" >&6
25211 else
25212   echo "$as_me:$LINENO: result: no" >&5
25213 echo "${ECHO_T}no" >&6
25214 fi
25215
25216 WARNING="This file is generated, do not edit"
25217
25218
25219
25220 # Can we rebuild the parsers?
25221 # We really want flex and refuse other lex. So, the parser is portable and
25222 # does not induce extra lib dependency
25223 for ac_prog in flex lex
25224 do
25225   # Extract the first word of "$ac_prog", so it can be a program name with args.
25226 set dummy $ac_prog; ac_word=$2
25227 echo "$as_me:$LINENO: checking for $ac_word" >&5
25228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25229 if test "${ac_cv_prog_LEX+set}" = set; then
25230   echo $ECHO_N "(cached) $ECHO_C" >&6
25231 else
25232   if test -n "$LEX"; then
25233   ac_cv_prog_LEX="$LEX" # Let the user override the test.
25234 else
25235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25236 for as_dir in $PATH
25237 do
25238   IFS=$as_save_IFS
25239   test -z "$as_dir" && as_dir=.
25240   for ac_exec_ext in '' $ac_executable_extensions; do
25241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25242     ac_cv_prog_LEX="$ac_prog"
25243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25244     break 2
25245   fi
25246 done
25247 done
25248
25249 fi
25250 fi
25251 LEX=$ac_cv_prog_LEX
25252 if test -n "$LEX"; then
25253   echo "$as_me:$LINENO: result: $LEX" >&5
25254 echo "${ECHO_T}$LEX" >&6
25255 else
25256   echo "$as_me:$LINENO: result: no" >&5
25257 echo "${ECHO_T}no" >&6
25258 fi
25259
25260   test -n "$LEX" && break
25261 done
25262 test -n "$LEX" || LEX=":"
25263
25264 if test -z "$LEXLIB"
25265 then
25266   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
25267 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
25268 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
25269   echo $ECHO_N "(cached) $ECHO_C" >&6
25270 else
25271   ac_check_lib_save_LIBS=$LIBS
25272 LIBS="-lfl  $LIBS"
25273 cat >conftest.$ac_ext <<_ACEOF
25274 /* confdefs.h.  */
25275 _ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h.  */
25279
25280 /* Override any gcc2 internal prototype to avoid an error.  */
25281 #ifdef __cplusplus
25282 extern "C"
25283 #endif
25284 /* We use char because int might match the return type of a gcc2
25285    builtin and then its argument prototype would still apply.  */
25286 char yywrap ();
25287 int
25288 main ()
25289 {
25290 yywrap ();
25291   ;
25292   return 0;
25293 }
25294 _ACEOF
25295 rm -f conftest.$ac_objext conftest$ac_exeext
25296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25297   (eval $ac_link) 2>conftest.er1
25298   ac_status=$?
25299   grep -v '^ *+' conftest.er1 >conftest.err
25300   rm -f conftest.er1
25301   cat conftest.err >&5
25302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303   (exit $ac_status); } &&
25304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25306   (eval $ac_try) 2>&5
25307   ac_status=$?
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); }; } &&
25310          { ac_try='test -s conftest$ac_exeext'
25311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25312   (eval $ac_try) 2>&5
25313   ac_status=$?
25314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315   (exit $ac_status); }; }; then
25316   ac_cv_lib_fl_yywrap=yes
25317 else
25318   echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25320
25321 ac_cv_lib_fl_yywrap=no
25322 fi
25323 rm -f conftest.err conftest.$ac_objext \
25324       conftest$ac_exeext conftest.$ac_ext
25325 LIBS=$ac_check_lib_save_LIBS
25326 fi
25327 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
25328 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
25329 if test $ac_cv_lib_fl_yywrap = yes; then
25330   LEXLIB="-lfl"
25331 else
25332   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
25333 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
25334 if test "${ac_cv_lib_l_yywrap+set}" = set; then
25335   echo $ECHO_N "(cached) $ECHO_C" >&6
25336 else
25337   ac_check_lib_save_LIBS=$LIBS
25338 LIBS="-ll  $LIBS"
25339 cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345
25346 /* Override any gcc2 internal prototype to avoid an error.  */
25347 #ifdef __cplusplus
25348 extern "C"
25349 #endif
25350 /* We use char because int might match the return type of a gcc2
25351    builtin and then its argument prototype would still apply.  */
25352 char yywrap ();
25353 int
25354 main ()
25355 {
25356 yywrap ();
25357   ;
25358   return 0;
25359 }
25360 _ACEOF
25361 rm -f conftest.$ac_objext conftest$ac_exeext
25362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25363   (eval $ac_link) 2>conftest.er1
25364   ac_status=$?
25365   grep -v '^ *+' conftest.er1 >conftest.err
25366   rm -f conftest.er1
25367   cat conftest.err >&5
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); } &&
25370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25372   (eval $ac_try) 2>&5
25373   ac_status=$?
25374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); }; } &&
25376          { ac_try='test -s conftest$ac_exeext'
25377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378   (eval $ac_try) 2>&5
25379   ac_status=$?
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); }; }; then
25382   ac_cv_lib_l_yywrap=yes
25383 else
25384   echo "$as_me: failed program was:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25386
25387 ac_cv_lib_l_yywrap=no
25388 fi
25389 rm -f conftest.err conftest.$ac_objext \
25390       conftest$ac_exeext conftest.$ac_ext
25391 LIBS=$ac_check_lib_save_LIBS
25392 fi
25393 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
25394 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
25395 if test $ac_cv_lib_l_yywrap = yes; then
25396   LEXLIB="-ll"
25397 fi
25398
25399 fi
25400
25401 fi
25402
25403 if test "x$LEX" != "x:"; then
25404   echo "$as_me:$LINENO: checking lex output file root" >&5
25405 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
25406 if test "${ac_cv_prog_lex_root+set}" = set; then
25407   echo $ECHO_N "(cached) $ECHO_C" >&6
25408 else
25409   # The minimal lex program is just a single line: %%.  But some broken lexes
25410 # (Solaris, I think it was) want two %% lines, so accommodate them.
25411 cat >conftest.l <<_ACEOF
25412 %%
25413 %%
25414 _ACEOF
25415 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
25416   (eval $LEX conftest.l) 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }
25420 if test -f lex.yy.c; then
25421   ac_cv_prog_lex_root=lex.yy
25422 elif test -f lexyy.c; then
25423   ac_cv_prog_lex_root=lexyy
25424 else
25425   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25426 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25427    { (exit 1); exit 1; }; }
25428 fi
25429 fi
25430 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25431 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
25432 rm -f conftest.l
25433 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25434
25435 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25436 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
25437 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25438   echo $ECHO_N "(cached) $ECHO_C" >&6
25439 else
25440   # POSIX says lex can declare yytext either as a pointer or an array; the
25441 # default is implementation-dependent. Figure out which it is, since
25442 # not all implementations provide the %pointer and %array declarations.
25443 ac_cv_prog_lex_yytext_pointer=no
25444 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
25445 ac_save_LIBS=$LIBS
25446 LIBS="$LIBS $LEXLIB"
25447 cat >conftest.$ac_ext <<_ACEOF
25448 `cat $LEX_OUTPUT_ROOT.c`
25449 _ACEOF
25450 rm -f conftest.$ac_objext conftest$ac_exeext
25451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25452   (eval $ac_link) 2>conftest.er1
25453   ac_status=$?
25454   grep -v '^ *+' conftest.er1 >conftest.err
25455   rm -f conftest.er1
25456   cat conftest.err >&5
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); } &&
25459          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25461   (eval $ac_try) 2>&5
25462   ac_status=$?
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); }; } &&
25465          { ac_try='test -s conftest$ac_exeext'
25466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25467   (eval $ac_try) 2>&5
25468   ac_status=$?
25469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470   (exit $ac_status); }; }; then
25471   ac_cv_prog_lex_yytext_pointer=yes
25472 else
25473   echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25475
25476 fi
25477 rm -f conftest.err conftest.$ac_objext \
25478       conftest$ac_exeext conftest.$ac_ext
25479 LIBS=$ac_save_LIBS
25480 rm -f "${LEX_OUTPUT_ROOT}.c"
25481
25482 fi
25483 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25484 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
25485 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25486
25487 cat >>confdefs.h <<\_ACEOF
25488 #define YYTEXT_POINTER 1
25489 _ACEOF
25490
25491 fi
25492
25493 fi
25494
25495   if test "$LEX" != flex; then
25496     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25497 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25498     LEX=${am_missing_run}flex
25499     LEXLIB=''
25500
25501   else
25502     if test "x2.5.30" != "x" ; then
25503                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25504
25505       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25506       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25507       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25508
25509       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25510       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25511       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25512
25513       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25514          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
25515          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25516       then
25517         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25518 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25519         LEX=${am_missing_run}flex
25520         LEXLIB=''
25521
25522       else
25523         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25524 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25525       fi
25526     fi
25527   fi
25528
25529
25530 # Can we rebuild the xml-lexers from the XML specification?
25531 # if not, simply touch the flex source files (which are distributed in
25532 #  tarballs even if generated by flexml) and hope for the best.
25533 # Extract the first word of "flexml", so it can be a program name with args.
25534 set dummy flexml; ac_word=$2
25535 echo "$as_me:$LINENO: checking for $ac_word" >&5
25536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25537 if test "${ac_cv_prog_FLEXML+set}" = set; then
25538   echo $ECHO_N "(cached) $ECHO_C" >&6
25539 else
25540   if test -n "$FLEXML"; then
25541   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25542 else
25543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25544 for as_dir in $PATH
25545 do
25546   IFS=$as_save_IFS
25547   test -z "$as_dir" && as_dir=.
25548   for ac_exec_ext in '' $ac_executable_extensions; do
25549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25550     ac_cv_prog_FLEXML="`which flexml`"
25551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25552     break 2
25553   fi
25554 done
25555 done
25556
25557   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25558 fi
25559 fi
25560 FLEXML=$ac_cv_prog_FLEXML
25561 if test -n "$FLEXML"; then
25562   echo "$as_me:$LINENO: result: $FLEXML" >&5
25563 echo "${ECHO_T}$FLEXML" >&6
25564 else
25565   echo "$as_me:$LINENO: result: no" >&5
25566 echo "${ECHO_T}no" >&6
25567 fi
25568
25569
25570
25571 if test x$FLEXML != xNOTFOUND; then
25572   HAVE_FLEXML_TRUE=
25573   HAVE_FLEXML_FALSE='#'
25574 else
25575   HAVE_FLEXML_TRUE='#'
25576   HAVE_FLEXML_FALSE=
25577 fi
25578
25579
25580 if test x$USE_MAINTAINER_MODE = xyes
25581 then
25582    # Check for doxygen when in maintainer mode since dist* targets fail
25583    # without it
25584    # Extract the first word of "doxygen", so it can be a program name with args.
25585 set dummy doxygen; ac_word=$2
25586 echo "$as_me:$LINENO: checking for $ac_word" >&5
25587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25588 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25589   echo $ECHO_N "(cached) $ECHO_C" >&6
25590 else
25591   case $DOXYGEN in
25592   [\\/]* | ?:[\\/]*)
25593   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25594   ;;
25595   *)
25596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25597 for as_dir in $PATH
25598 do
25599   IFS=$as_save_IFS
25600   test -z "$as_dir" && as_dir=.
25601   for ac_exec_ext in '' $ac_executable_extensions; do
25602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25603     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25605     break 2
25606   fi
25607 done
25608 done
25609
25610   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25611   ;;
25612 esac
25613 fi
25614 DOXYGEN=$ac_cv_path_DOXYGEN
25615
25616 if test -n "$DOXYGEN"; then
25617   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25618 echo "${ECHO_T}$DOXYGEN" >&6
25619 else
25620   echo "$as_me:$LINENO: result: no" >&5
25621 echo "${ECHO_T}no" >&6
25622 fi
25623
25624    if test x$DOXYGEN = x ; then
25625      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
25626 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
25627    { (exit 1); exit 1; }; }
25628    fi
25629 fi
25630
25631 # Can we extract really usable backtraces? (also need the popen function)
25632 # Extract the first word of "addr2line", so it can be a program name with args.
25633 set dummy addr2line; ac_word=$2
25634 echo "$as_me:$LINENO: checking for $ac_word" >&5
25635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25636 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
25637   echo $ECHO_N "(cached) $ECHO_C" >&6
25638 else
25639   case $ADDR2LINE in
25640   [\\/]* | ?:[\\/]*)
25641   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
25642   ;;
25643   *)
25644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25645 for as_dir in $PATH
25646 do
25647   IFS=$as_save_IFS
25648   test -z "$as_dir" && as_dir=.
25649   for ac_exec_ext in '' $ac_executable_extensions; do
25650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25651     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
25652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25653     break 2
25654   fi
25655 done
25656 done
25657
25658   ;;
25659 esac
25660 fi
25661 ADDR2LINE=$ac_cv_path_ADDR2LINE
25662
25663 if test -n "$ADDR2LINE"; then
25664   echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
25665 echo "${ECHO_T}$ADDR2LINE" >&6
25666 else
25667   echo "$as_me:$LINENO: result: no" >&5
25668 echo "${ECHO_T}no" >&6
25669 fi
25670
25671 if test x$ADDR2LINE != x ; then
25672
25673 cat >>confdefs.h <<_ACEOF
25674 #define ADDR2LINE "$ADDR2LINE"
25675 _ACEOF
25676
25677 fi
25678
25679
25680 # Can we make status line about the compilation result?
25681 # Extract the first word of "md5sum", so it can be a program name with args.
25682 set dummy md5sum; ac_word=$2
25683 echo "$as_me:$LINENO: checking for $ac_word" >&5
25684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25685 if test "${ac_cv_prog_MD5SUM+set}" = set; then
25686   echo $ECHO_N "(cached) $ECHO_C" >&6
25687 else
25688   if test -n "$MD5SUM"; then
25689   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
25690 else
25691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25692 for as_dir in $PATH
25693 do
25694   IFS=$as_save_IFS
25695   test -z "$as_dir" && as_dir=.
25696   for ac_exec_ext in '' $ac_executable_extensions; do
25697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25698     ac_cv_prog_MD5SUM="`which md5sum`"
25699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25700     break 2
25701   fi
25702 done
25703 done
25704
25705 fi
25706 fi
25707 MD5SUM=$ac_cv_prog_MD5SUM
25708 if test -n "$MD5SUM"; then
25709   echo "$as_me:$LINENO: result: $MD5SUM" >&5
25710 echo "${ECHO_T}$MD5SUM" >&6
25711 else
25712   echo "$as_me:$LINENO: result: no" >&5
25713 echo "${ECHO_T}no" >&6
25714 fi
25715
25716 if test x$MD5SUM != xno ; then
25717   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
25718                  xargs cat| $MD5SUM | sed 's/ .*$//'`
25719 else
25720   build_version="no_md5sum_binary"
25721 fi
25722 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
25723
25724
25725 ###################
25726 ## Makes the output
25727 ##
25728
25729
25730 #
25731 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
25732 #  src/amok/Makefile
25733
25734
25735   echo "$as_me:$LINENO: result: " >&5
25736 echo "${ECHO_T}" >&6
25737   echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
25738 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6
25739
25740
25741 # Core of the libraries
25742
25743                                         ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
25744
25745
25746 # Tools being embeeded in gramine (stub generator)
25747                     ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile"
25748
25749
25750
25751 # GRAMINE_CUT_BEGIN
25752
25753 # Tools NOT being embeeded in gramine
25754           ac_config_files="$ac_config_files tools/graspe-slave"
25755
25756
25757 # Testsuite
25758
25759                                         ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
25760
25761
25762 # Documentation
25763                     ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
25764
25765
25766 # Examples
25767
25768                                                                                                                                                                                                                                                                                                                                                                                                                                                         ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/run_msg_test examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/ping/test_sg examples/gras/ping/test_rl examples/gras/rpc/Makefile examples/gras/rpc/test_sg examples/gras/rpc/test_rl examples/gras/timer/Makefile examples/gras/timer/test_sg examples/gras/timer/test_rl examples/gras/chrono/Makefile examples/gras/chrono/test_sg examples/gras/chrono/test_rl examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl examples/gras/mmrpc/Makefile examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl examples/gras/pmm/Makefile examples/gras/pmm/test_sg examples/gras/pmm/test_rl examples/gras/all2all/Makefile examples/gras/all2all/test_sg examples/gras/all2all/test_rl examples/gras/p2p/Makefile examples/gras/p2p/chord/Makefile examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl examples/gras/p2p/can/Makefile examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
25769
25770
25771 #     examples/gras/chord/test_sg  examples/gras/chord/test_rl   \
25772 #    examples/gras/pastry/test_sg
25773
25774
25775
25776 #    examples/gras/saturate/Makefile  examples/gras/saturate/test_sg
25777 #    examples/gras/alnem/Makefile     examples/gras/alnem/test_sg
25778
25779
25780 # GRAMINE_CUT_END
25781
25782 cat >confcache <<\_ACEOF
25783 # This file is a shell script that caches the results of configure
25784 # tests run on this system so they can be shared between configure
25785 # scripts and configure runs, see configure's option --config-cache.
25786 # It is not useful on other systems.  If it contains results you don't
25787 # want to keep, you may remove or edit it.
25788 #
25789 # config.status only pays attention to the cache file if you give it
25790 # the --recheck option to rerun configure.
25791 #
25792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25794 # following values.
25795
25796 _ACEOF
25797
25798 # The following way of writing the cache mishandles newlines in values,
25799 # but we know of no workaround that is simple, portable, and efficient.
25800 # So, don't put newlines in cache variables' values.
25801 # Ultrix sh set writes to stderr and can't be redirected directly,
25802 # and sets the high bit in the cache file unless we assign to the vars.
25803 {
25804   (set) 2>&1 |
25805     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25806     *ac_space=\ *)
25807       # `set' does not quote correctly, so add quotes (double-quote
25808       # substitution turns \\\\ into \\, and sed turns \\ into \).
25809       sed -n \
25810         "s/'/'\\\\''/g;
25811           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25812       ;;
25813     *)
25814       # `set' quotes correctly as required by POSIX, so do not add quotes.
25815       sed -n \
25816         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25817       ;;
25818     esac;
25819 } |
25820   sed '
25821      t clear
25822      : clear
25823      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25824      t end
25825      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25826      : end' >>confcache
25827 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25828   if test -w $cache_file; then
25829     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25830     cat confcache >$cache_file
25831   else
25832     echo "not updating unwritable cache $cache_file"
25833   fi
25834 fi
25835 rm -f confcache
25836
25837 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25838 # Let make expand exec_prefix.
25839 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25840
25841 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25842 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25843 # trailing colons and then remove the whole line if VPATH becomes empty
25844 # (actually we leave an empty line to preserve line numbers).
25845 if test "x$srcdir" = x.; then
25846   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25847 s/:*\$(srcdir):*/:/;
25848 s/:*\${srcdir}:*/:/;
25849 s/:*@srcdir@:*/:/;
25850 s/^\([^=]*=[     ]*\):*/\1/;
25851 s/:*$//;
25852 s/^[^=]*=[       ]*$//;
25853 }'
25854 fi
25855
25856 DEFS=-DHAVE_CONFIG_H
25857
25858 ac_libobjs=
25859 ac_ltlibobjs=
25860 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25861   # 1. Remove the extension, and $U if already installed.
25862   ac_i=`echo "$ac_i" |
25863          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25864   # 2. Add them.
25865   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25866   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25867 done
25868 LIBOBJS=$ac_libobjs
25869
25870 LTLIBOBJS=$ac_ltlibobjs
25871
25872
25873 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25874   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25875 Usually this means the macro was only invoked conditionally." >&5
25876 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25877 Usually this means the macro was only invoked conditionally." >&2;}
25878    { (exit 1); exit 1; }; }
25879 fi
25880 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25881   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25882 Usually this means the macro was only invoked conditionally." >&5
25883 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25884 Usually this means the macro was only invoked conditionally." >&2;}
25885    { (exit 1); exit 1; }; }
25886 fi
25887 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25888   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25889 Usually this means the macro was only invoked conditionally." >&5
25890 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25891 Usually this means the macro was only invoked conditionally." >&2;}
25892    { (exit 1); exit 1; }; }
25893 fi
25894 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25895   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25896 Usually this means the macro was only invoked conditionally." >&5
25897 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25898 Usually this means the macro was only invoked conditionally." >&2;}
25899    { (exit 1); exit 1; }; }
25900 fi
25901 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
25902   { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
25903 Usually this means the macro was only invoked conditionally." >&5
25904 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
25905 Usually this means the macro was only invoked conditionally." >&2;}
25906    { (exit 1); exit 1; }; }
25907 fi
25908 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
25909   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
25910 Usually this means the macro was only invoked conditionally." >&5
25911 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
25912 Usually this means the macro was only invoked conditionally." >&2;}
25913    { (exit 1); exit 1; }; }
25914 fi
25915 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
25916   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
25917 Usually this means the macro was only invoked conditionally." >&5
25918 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
25919 Usually this means the macro was only invoked conditionally." >&2;}
25920    { (exit 1); exit 1; }; }
25921 fi
25922 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25923   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25924 Usually this means the macro was only invoked conditionally." >&5
25925 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25926 Usually this means the macro was only invoked conditionally." >&2;}
25927    { (exit 1); exit 1; }; }
25928 fi
25929 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
25930   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
25931 Usually this means the macro was only invoked conditionally." >&5
25932 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
25933 Usually this means the macro was only invoked conditionally." >&2;}
25934    { (exit 1); exit 1; }; }
25935 fi
25936
25937 : ${CONFIG_STATUS=./config.status}
25938 ac_clean_files_save=$ac_clean_files
25939 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25940 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25941 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25942 cat >$CONFIG_STATUS <<_ACEOF
25943 #! $SHELL
25944 # Generated by $as_me.
25945 # Run this file to recreate the current configuration.
25946 # Compiler output produced by configure, useful for debugging
25947 # configure, is in config.log if it exists.
25948
25949 debug=false
25950 ac_cs_recheck=false
25951 ac_cs_silent=false
25952 SHELL=\${CONFIG_SHELL-$SHELL}
25953 _ACEOF
25954
25955 cat >>$CONFIG_STATUS <<\_ACEOF
25956 ## --------------------- ##
25957 ## M4sh Initialization.  ##
25958 ## --------------------- ##
25959
25960 # Be Bourne compatible
25961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25962   emulate sh
25963   NULLCMD=:
25964   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25965   # is contrary to our usage.  Disable this feature.
25966   alias -g '${1+"$@"}'='"$@"'
25967 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25968   set -o posix
25969 fi
25970 DUALCASE=1; export DUALCASE # for MKS sh
25971
25972 # Support unset when possible.
25973 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25974   as_unset=unset
25975 else
25976   as_unset=false
25977 fi
25978
25979
25980 # Work around bugs in pre-3.0 UWIN ksh.
25981 $as_unset ENV MAIL MAILPATH
25982 PS1='$ '
25983 PS2='> '
25984 PS4='+ '
25985
25986 # NLS nuisances.
25987 for as_var in \
25988   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25989   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25990   LC_TELEPHONE LC_TIME
25991 do
25992   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25993     eval $as_var=C; export $as_var
25994   else
25995     $as_unset $as_var
25996   fi
25997 done
25998
25999 # Required to use basename.
26000 if expr a : '\(a\)' >/dev/null 2>&1; then
26001   as_expr=expr
26002 else
26003   as_expr=false
26004 fi
26005
26006 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26007   as_basename=basename
26008 else
26009   as_basename=false
26010 fi
26011
26012
26013 # Name of the executable.
26014 as_me=`$as_basename "$0" ||
26015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26016          X"$0" : 'X\(//\)$' \| \
26017          X"$0" : 'X\(/\)$' \| \
26018          .     : '\(.\)' 2>/dev/null ||
26019 echo X/"$0" |
26020     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26021           /^X\/\(\/\/\)$/{ s//\1/; q; }
26022           /^X\/\(\/\).*/{ s//\1/; q; }
26023           s/.*/./; q'`
26024
26025
26026 # PATH needs CR, and LINENO needs CR and PATH.
26027 # Avoid depending upon Character Ranges.
26028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26031 as_cr_digits='0123456789'
26032 as_cr_alnum=$as_cr_Letters$as_cr_digits
26033
26034 # The user is always right.
26035 if test "${PATH_SEPARATOR+set}" != set; then
26036   echo "#! /bin/sh" >conf$$.sh
26037   echo  "exit 0"   >>conf$$.sh
26038   chmod +x conf$$.sh
26039   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26040     PATH_SEPARATOR=';'
26041   else
26042     PATH_SEPARATOR=:
26043   fi
26044   rm -f conf$$.sh
26045 fi
26046
26047
26048   as_lineno_1=$LINENO
26049   as_lineno_2=$LINENO
26050   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26051   test "x$as_lineno_1" != "x$as_lineno_2" &&
26052   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26053   # Find who we are.  Look in the path if we contain no path at all
26054   # relative or not.
26055   case $0 in
26056     *[\\/]* ) as_myself=$0 ;;
26057     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26058 for as_dir in $PATH
26059 do
26060   IFS=$as_save_IFS
26061   test -z "$as_dir" && as_dir=.
26062   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26063 done
26064
26065        ;;
26066   esac
26067   # We did not find ourselves, most probably we were run as `sh COMMAND'
26068   # in which case we are not to be found in the path.
26069   if test "x$as_myself" = x; then
26070     as_myself=$0
26071   fi
26072   if test ! -f "$as_myself"; then
26073     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26074 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26075    { (exit 1); exit 1; }; }
26076   fi
26077   case $CONFIG_SHELL in
26078   '')
26079     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26080 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26081 do
26082   IFS=$as_save_IFS
26083   test -z "$as_dir" && as_dir=.
26084   for as_base in sh bash ksh sh5; do
26085          case $as_dir in
26086          /*)
26087            if ("$as_dir/$as_base" -c '
26088   as_lineno_1=$LINENO
26089   as_lineno_2=$LINENO
26090   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26091   test "x$as_lineno_1" != "x$as_lineno_2" &&
26092   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26093              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26094              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26095              CONFIG_SHELL=$as_dir/$as_base
26096              export CONFIG_SHELL
26097              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26098            fi;;
26099          esac
26100        done
26101 done
26102 ;;
26103   esac
26104
26105   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26106   # uniformly replaced by the line number.  The first 'sed' inserts a
26107   # line-number line before each line; the second 'sed' does the real
26108   # work.  The second script uses 'N' to pair each line-number line
26109   # with the numbered line, and appends trailing '-' during
26110   # substitution so that $LINENO is not a special case at line end.
26111   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26112   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26113   sed '=' <$as_myself |
26114     sed '
26115       N
26116       s,$,-,
26117       : loop
26118       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26119       t loop
26120       s,-$,,
26121       s,^['$as_cr_digits']*\n,,
26122     ' >$as_me.lineno &&
26123   chmod +x $as_me.lineno ||
26124     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26125 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26126    { (exit 1); exit 1; }; }
26127
26128   # Don't try to exec as it changes $[0], causing all sort of problems
26129   # (the dirname of $[0] is not the place where we might find the
26130   # original and so on.  Autoconf is especially sensible to this).
26131   . ./$as_me.lineno
26132   # Exit status is that of the last command.
26133   exit
26134 }
26135
26136
26137 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26138   *c*,-n*) ECHO_N= ECHO_C='
26139 ' ECHO_T='      ' ;;
26140   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26141   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26142 esac
26143
26144 if expr a : '\(a\)' >/dev/null 2>&1; then
26145   as_expr=expr
26146 else
26147   as_expr=false
26148 fi
26149
26150 rm -f conf$$ conf$$.exe conf$$.file
26151 echo >conf$$.file
26152 if ln -s conf$$.file conf$$ 2>/dev/null; then
26153   # We could just check for DJGPP; but this test a) works b) is more generic
26154   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26155   if test -f conf$$.exe; then
26156     # Don't use ln at all; we don't have any links
26157     as_ln_s='cp -p'
26158   else
26159     as_ln_s='ln -s'
26160   fi
26161 elif ln conf$$.file conf$$ 2>/dev/null; then
26162   as_ln_s=ln
26163 else
26164   as_ln_s='cp -p'
26165 fi
26166 rm -f conf$$ conf$$.exe conf$$.file
26167
26168 if mkdir -p . 2>/dev/null; then
26169   as_mkdir_p=:
26170 else
26171   test -d ./-p && rmdir ./-p
26172   as_mkdir_p=false
26173 fi
26174
26175 as_executable_p="test -f"
26176
26177 # Sed expression to map a string onto a valid CPP name.
26178 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26179
26180 # Sed expression to map a string onto a valid variable name.
26181 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26182
26183
26184 # IFS
26185 # We need space, tab and new line, in precisely that order.
26186 as_nl='
26187 '
26188 IFS="   $as_nl"
26189
26190 # CDPATH.
26191 $as_unset CDPATH
26192
26193 exec 6>&1
26194
26195 # Open the log real soon, to keep \$[0] and so on meaningful, and to
26196 # report actual input values of CONFIG_FILES etc. instead of their
26197 # values after options handling.  Logging --version etc. is OK.
26198 exec 5>>config.log
26199 {
26200   echo
26201   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26202 ## Running $as_me. ##
26203 _ASBOX
26204 } >&5
26205 cat >&5 <<_CSEOF
26206
26207 This file was extended by simgrid $as_me 3.1.1-cvs, which was
26208 generated by GNU Autoconf 2.59.  Invocation command line was
26209
26210   CONFIG_FILES    = $CONFIG_FILES
26211   CONFIG_HEADERS  = $CONFIG_HEADERS
26212   CONFIG_LINKS    = $CONFIG_LINKS
26213   CONFIG_COMMANDS = $CONFIG_COMMANDS
26214   $ $0 $@
26215
26216 _CSEOF
26217 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26218 echo >&5
26219 _ACEOF
26220
26221 # Files that config.status was made for.
26222 if test -n "$ac_config_files"; then
26223   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26224 fi
26225
26226 if test -n "$ac_config_headers"; then
26227   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26228 fi
26229
26230 if test -n "$ac_config_links"; then
26231   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26232 fi
26233
26234 if test -n "$ac_config_commands"; then
26235   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26236 fi
26237
26238 cat >>$CONFIG_STATUS <<\_ACEOF
26239
26240 ac_cs_usage="\
26241 \`$as_me' instantiates files from templates according to the
26242 current configuration.
26243
26244 Usage: $0 [OPTIONS] [FILE]...
26245
26246   -h, --help       print this help, then exit
26247   -V, --version    print version number, then exit
26248   -q, --quiet      do not print progress messages
26249   -d, --debug      don't remove temporary files
26250       --recheck    update $as_me by reconfiguring in the same conditions
26251   --file=FILE[:TEMPLATE]
26252                    instantiate the configuration file FILE
26253   --header=FILE[:TEMPLATE]
26254                    instantiate the configuration header FILE
26255
26256 Configuration files:
26257 $config_files
26258
26259 Configuration headers:
26260 $config_headers
26261
26262 Configuration commands:
26263 $config_commands
26264
26265 Report bugs to <bug-autoconf@gnu.org>."
26266 _ACEOF
26267
26268 cat >>$CONFIG_STATUS <<_ACEOF
26269 ac_cs_version="\\
26270 simgrid config.status 3.1.1-cvs
26271 configured by $0, generated by GNU Autoconf 2.59,
26272   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26273
26274 Copyright (C) 2003 Free Software Foundation, Inc.
26275 This config.status script is free software; the Free Software Foundation
26276 gives unlimited permission to copy, distribute and modify it."
26277 srcdir=$srcdir
26278 INSTALL="$INSTALL"
26279 _ACEOF
26280
26281 cat >>$CONFIG_STATUS <<\_ACEOF
26282 # If no file are specified by the user, then we need to provide default
26283 # value.  By we need to know if files were specified by the user.
26284 ac_need_defaults=:
26285 while test $# != 0
26286 do
26287   case $1 in
26288   --*=*)
26289     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26290     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26291     ac_shift=:
26292     ;;
26293   -*)
26294     ac_option=$1
26295     ac_optarg=$2
26296     ac_shift=shift
26297     ;;
26298   *) # This is not an option, so the user has probably given explicit
26299      # arguments.
26300      ac_option=$1
26301      ac_need_defaults=false;;
26302   esac
26303
26304   case $ac_option in
26305   # Handling of the options.
26306 _ACEOF
26307 cat >>$CONFIG_STATUS <<\_ACEOF
26308   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26309     ac_cs_recheck=: ;;
26310   --version | --vers* | -V )
26311     echo "$ac_cs_version"; exit 0 ;;
26312   --he | --h)
26313     # Conflict between --help and --header
26314     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26315 Try \`$0 --help' for more information." >&5
26316 echo "$as_me: error: ambiguous option: $1
26317 Try \`$0 --help' for more information." >&2;}
26318    { (exit 1); exit 1; }; };;
26319   --help | --hel | -h )
26320     echo "$ac_cs_usage"; exit 0 ;;
26321   --debug | --d* | -d )
26322     debug=: ;;
26323   --file | --fil | --fi | --f )
26324     $ac_shift
26325     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26326     ac_need_defaults=false;;
26327   --header | --heade | --head | --hea )
26328     $ac_shift
26329     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26330     ac_need_defaults=false;;
26331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26332   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26333     ac_cs_silent=: ;;
26334
26335   # This is an error.
26336   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26337 Try \`$0 --help' for more information." >&5
26338 echo "$as_me: error: unrecognized option: $1
26339 Try \`$0 --help' for more information." >&2;}
26340    { (exit 1); exit 1; }; } ;;
26341
26342   *) ac_config_targets="$ac_config_targets $1" ;;
26343
26344   esac
26345   shift
26346 done
26347
26348 ac_configure_extra_args=
26349
26350 if $ac_cs_silent; then
26351   exec 6>/dev/null
26352   ac_configure_extra_args="$ac_configure_extra_args --silent"
26353 fi
26354
26355 _ACEOF
26356 cat >>$CONFIG_STATUS <<_ACEOF
26357 if \$ac_cs_recheck; then
26358   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26359   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26360 fi
26361
26362 _ACEOF
26363
26364 cat >>$CONFIG_STATUS <<_ACEOF
26365 #
26366 # INIT-COMMANDS section.
26367 #
26368
26369 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26370
26371 _ACEOF
26372
26373
26374
26375 cat >>$CONFIG_STATUS <<\_ACEOF
26376 for ac_config_target in $ac_config_targets
26377 do
26378   case "$ac_config_target" in
26379   # Handling of arguments.
26380   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26381   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26382   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26383   "src/ucontext_stack.h" ) CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26384   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26385   "tools/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26386   "tools/graspe-slave" ) CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26387   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26388   "testsuite/run_tests" ) CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26389   "testsuite/gras/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26390   "testsuite/gras/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26391   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26392   "doc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26393   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26394   "examples/msg/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26395   "examples/msg/run_msg_test" ) CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26396   "examples/simdag/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26397   "examples/simdag/test_simdag" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26398   "examples/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26399   "examples/gras/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26400   "examples/gras/ping/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26401   "examples/gras/ping/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26402   "examples/gras/rpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26403   "examples/gras/rpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26404   "examples/gras/rpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26405   "examples/gras/timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26406   "examples/gras/timer/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26407   "examples/gras/timer/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26408   "examples/gras/chrono/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26409   "examples/gras/chrono/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26410   "examples/gras/chrono/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26411   "examples/gras/mutual_exclusion/simple_token/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26412   "examples/gras/mutual_exclusion/simple_token/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26413   "examples/gras/mutual_exclusion/simple_token/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26414   "examples/gras/mmrpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26415   "examples/gras/mmrpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26416   "examples/gras/mmrpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26417   "examples/gras/pmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26418   "examples/gras/pmm/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26419   "examples/gras/pmm/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26420   "examples/gras/all2all/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26421   "examples/gras/all2all/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26422   "examples/gras/all2all/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26423   "examples/gras/p2p/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26424   "examples/gras/p2p/chord/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26425   "examples/gras/p2p/chord/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26426   "examples/gras/p2p/chord/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26427   "examples/gras/p2p/can/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26428   "examples/gras/p2p/can/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26429   "examples/gras/p2p/can/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26430   "examples/amok/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26431   "examples/amok/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26432   "examples/amok/bandwidth/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26433   "examples/amok/bandwidth/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26434   "examples/amok/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26435   "examples/amok/saturate/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26436   "examples/amok/saturate/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26437   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26438   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26439   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26440 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26441    { (exit 1); exit 1; }; };;
26442   esac
26443 done
26444
26445 # If the user did not use the arguments to specify the items to instantiate,
26446 # then the envvar interface is used.  Set only those that are not.
26447 # We use the long form for the default assignment because of an extremely
26448 # bizarre bug on SunOS 4.1.3.
26449 if $ac_need_defaults; then
26450   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26451   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26452   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26453 fi
26454
26455 # Have a temporary directory for convenience.  Make it in the build tree
26456 # simply because there is no reason to put it here, and in addition,
26457 # creating and moving files from /tmp can sometimes cause problems.
26458 # Create a temporary directory, and hook for its removal unless debugging.
26459 $debug ||
26460 {
26461   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26462   trap '{ (exit 1); exit 1; }' 1 2 13 15
26463 }
26464
26465 # Create a (secure) tmp directory for tmp files.
26466
26467 {
26468   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26469   test -n "$tmp" && test -d "$tmp"
26470 }  ||
26471 {
26472   tmp=./confstat$$-$RANDOM
26473   (umask 077 && mkdir $tmp)
26474 } ||
26475 {
26476    echo "$me: cannot create a temporary directory in ." >&2
26477    { (exit 1); exit 1; }
26478 }
26479
26480 _ACEOF
26481
26482 cat >>$CONFIG_STATUS <<_ACEOF
26483
26484 #
26485 # CONFIG_FILES section.
26486 #
26487
26488 # No need to generate the scripts if there are no CONFIG_FILES.
26489 # This happens for instance when ./config.status config.h
26490 if test -n "\$CONFIG_FILES"; then
26491   # Protect against being on the right side of a sed subst in config.status.
26492   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26493    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26494 s,@SHELL@,$SHELL,;t t
26495 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26496 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26497 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26498 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26499 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26500 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26501 s,@exec_prefix@,$exec_prefix,;t t
26502 s,@prefix@,$prefix,;t t
26503 s,@program_transform_name@,$program_transform_name,;t t
26504 s,@bindir@,$bindir,;t t
26505 s,@sbindir@,$sbindir,;t t
26506 s,@libexecdir@,$libexecdir,;t t
26507 s,@datadir@,$datadir,;t t
26508 s,@sysconfdir@,$sysconfdir,;t t
26509 s,@sharedstatedir@,$sharedstatedir,;t t
26510 s,@localstatedir@,$localstatedir,;t t
26511 s,@libdir@,$libdir,;t t
26512 s,@includedir@,$includedir,;t t
26513 s,@oldincludedir@,$oldincludedir,;t t
26514 s,@infodir@,$infodir,;t t
26515 s,@mandir@,$mandir,;t t
26516 s,@build_alias@,$build_alias,;t t
26517 s,@host_alias@,$host_alias,;t t
26518 s,@target_alias@,$target_alias,;t t
26519 s,@DEFS@,$DEFS,;t t
26520 s,@ECHO_C@,$ECHO_C,;t t
26521 s,@ECHO_N@,$ECHO_N,;t t
26522 s,@ECHO_T@,$ECHO_T,;t t
26523 s,@LIBS@,$LIBS,;t t
26524 s,@build@,$build,;t t
26525 s,@build_cpu@,$build_cpu,;t t
26526 s,@build_vendor@,$build_vendor,;t t
26527 s,@build_os@,$build_os,;t t
26528 s,@host@,$host,;t t
26529 s,@host_cpu@,$host_cpu,;t t
26530 s,@host_vendor@,$host_vendor,;t t
26531 s,@host_os@,$host_os,;t t
26532 s,@target@,$target,;t t
26533 s,@target_cpu@,$target_cpu,;t t
26534 s,@target_vendor@,$target_vendor,;t t
26535 s,@target_os@,$target_os,;t t
26536 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26537 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26538 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26539 s,@CYGPATH_W@,$CYGPATH_W,;t t
26540 s,@PACKAGE@,$PACKAGE,;t t
26541 s,@VERSION@,$VERSION,;t t
26542 s,@ACLOCAL@,$ACLOCAL,;t t
26543 s,@AUTOCONF@,$AUTOCONF,;t t
26544 s,@AUTOMAKE@,$AUTOMAKE,;t t
26545 s,@AUTOHEADER@,$AUTOHEADER,;t t
26546 s,@MAKEINFO@,$MAKEINFO,;t t
26547 s,@install_sh@,$install_sh,;t t
26548 s,@STRIP@,$STRIP,;t t
26549 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26550 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26551 s,@mkdir_p@,$mkdir_p,;t t
26552 s,@AWK@,$AWK,;t t
26553 s,@SET_MAKE@,$SET_MAKE,;t t
26554 s,@am__leading_dot@,$am__leading_dot,;t t
26555 s,@AMTAR@,$AMTAR,;t t
26556 s,@am__tar@,$am__tar,;t t
26557 s,@am__untar@,$am__untar,;t t
26558 s,@CC@,$CC,;t t
26559 s,@CFLAGS@,$CFLAGS,;t t
26560 s,@LDFLAGS@,$LDFLAGS,;t t
26561 s,@CPPFLAGS@,$CPPFLAGS,;t t
26562 s,@ac_ct_CC@,$ac_ct_CC,;t t
26563 s,@EXEEXT@,$EXEEXT,;t t
26564 s,@OBJEXT@,$OBJEXT,;t t
26565 s,@DEPDIR@,$DEPDIR,;t t
26566 s,@am__include@,$am__include,;t t
26567 s,@am__quote@,$am__quote,;t t
26568 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26569 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26570 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26571 s,@CCDEPMODE@,$CCDEPMODE,;t t
26572 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26573 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26574 s,@EGREP@,$EGREP,;t t
26575 s,@LN_S@,$LN_S,;t t
26576 s,@ECHO@,$ECHO,;t t
26577 s,@AR@,$AR,;t t
26578 s,@ac_ct_AR@,$ac_ct_AR,;t t
26579 s,@RANLIB@,$RANLIB,;t t
26580 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26581 s,@DLLTOOL@,$DLLTOOL,;t t
26582 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26583 s,@AS@,$AS,;t t
26584 s,@ac_ct_AS@,$ac_ct_AS,;t t
26585 s,@OBJDUMP@,$OBJDUMP,;t t
26586 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
26587 s,@CPP@,$CPP,;t t
26588 s,@CXX@,$CXX,;t t
26589 s,@CXXFLAGS@,$CXXFLAGS,;t t
26590 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26591 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26592 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26593 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26594 s,@CXXCPP@,$CXXCPP,;t t
26595 s,@F77@,$F77,;t t
26596 s,@FFLAGS@,$FFLAGS,;t t
26597 s,@ac_ct_F77@,$ac_ct_F77,;t t
26598 s,@LIBTOOL@,$LIBTOOL,;t t
26599 s,@LIBOBJS@,$LIBOBJS,;t t
26600 s,@PTH_STACK_GROWTH@,$PTH_STACK_GROWTH,;t t
26601 s,@pth_skaddr_makecontext@,$pth_skaddr_makecontext,;t t
26602 s,@pth_sksize_makecontext@,$pth_sksize_makecontext,;t t
26603 s,@USE_SIMIX_TRUE@,$USE_SIMIX_TRUE,;t t
26604 s,@USE_SIMIX_FALSE@,$USE_SIMIX_FALSE,;t t
26605 s,@HAVE_SDP_TRUE@,$HAVE_SDP_TRUE,;t t
26606 s,@HAVE_SDP_FALSE@,$HAVE_SDP_FALSE,;t t
26607 s,@SIMGRID_DEP@,$SIMGRID_DEP,;t t
26608 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
26609 s,@GRAS_DEP@,$GRAS_DEP,;t t
26610 s,@GRAMINE_MODE_TRUE@,$GRAMINE_MODE_TRUE,;t t
26611 s,@GRAMINE_MODE_FALSE@,$GRAMINE_MODE_FALSE,;t t
26612 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26613 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26614 s,@MAINT@,$MAINT,;t t
26615 s,@LD_DYNAMIC_FLAGS@,$LD_DYNAMIC_FLAGS,;t t
26616 s,@abs_builddir@,$abs_builddir,;t t
26617 s,@abs_srcdir@,$abs_srcdir,;t t
26618 s,@abs_top_builddir@,$abs_top_builddir,;t t
26619 s,@abs_top_srcdir@,$abs_top_srcdir,;t t
26620 s,@BASH@,$BASH,;t t
26621 s,@WARNING@,$WARNING,;t t
26622 s,@LEX@,$LEX,;t t
26623 s,@LEXLIB@,$LEXLIB,;t t
26624 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26625 s,@FLEXML@,$FLEXML,;t t
26626 s,@HAVE_FLEXML_TRUE@,$HAVE_FLEXML_TRUE,;t t
26627 s,@HAVE_FLEXML_FALSE@,$HAVE_FLEXML_FALSE,;t t
26628 s,@DOXYGEN@,$DOXYGEN,;t t
26629 s,@ADDR2LINE@,$ADDR2LINE,;t t
26630 s,@ac_configure_args@,$ac_configure_args,;t t
26631 s,@MD5SUM@,$MD5SUM,;t t
26632 s,@build_id@,$build_id,;t t
26633 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26634 CEOF
26635
26636 _ACEOF
26637
26638   cat >>$CONFIG_STATUS <<\_ACEOF
26639   # Split the substitutions into bite-sized pieces for seds with
26640   # small command number limits, like on Digital OSF/1 and HP-UX.
26641   ac_max_sed_lines=48
26642   ac_sed_frag=1 # Number of current file.
26643   ac_beg=1 # First line for current file.
26644   ac_end=$ac_max_sed_lines # Line after last line for current file.
26645   ac_more_lines=:
26646   ac_sed_cmds=
26647   while $ac_more_lines; do
26648     if test $ac_beg -gt 1; then
26649       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26650     else
26651       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26652     fi
26653     if test ! -s $tmp/subs.frag; then
26654       ac_more_lines=false
26655     else
26656       # The purpose of the label and of the branching condition is to
26657       # speed up the sed processing (if there are no `@' at all, there
26658       # is no need to browse any of the substitutions).
26659       # These are the two extra sed commands mentioned above.
26660       (echo ':t
26661   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26662       if test -z "$ac_sed_cmds"; then
26663         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26664       else
26665         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26666       fi
26667       ac_sed_frag=`expr $ac_sed_frag + 1`
26668       ac_beg=$ac_end
26669       ac_end=`expr $ac_end + $ac_max_sed_lines`
26670     fi
26671   done
26672   if test -z "$ac_sed_cmds"; then
26673     ac_sed_cmds=cat
26674   fi
26675 fi # test -n "$CONFIG_FILES"
26676
26677 _ACEOF
26678 cat >>$CONFIG_STATUS <<\_ACEOF
26679 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26680   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26681   case $ac_file in
26682   - | *:- | *:-:* ) # input from stdin
26683         cat >$tmp/stdin
26684         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26685         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26686   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26687         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26688   * )   ac_file_in=$ac_file.in ;;
26689   esac
26690
26691   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26692   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26694          X"$ac_file" : 'X\(//\)[^/]' \| \
26695          X"$ac_file" : 'X\(//\)$' \| \
26696          X"$ac_file" : 'X\(/\)' \| \
26697          .     : '\(.\)' 2>/dev/null ||
26698 echo X"$ac_file" |
26699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26700           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26701           /^X\(\/\/\)$/{ s//\1/; q; }
26702           /^X\(\/\).*/{ s//\1/; q; }
26703           s/.*/./; q'`
26704   { if $as_mkdir_p; then
26705     mkdir -p "$ac_dir"
26706   else
26707     as_dir="$ac_dir"
26708     as_dirs=
26709     while test ! -d "$as_dir"; do
26710       as_dirs="$as_dir $as_dirs"
26711       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26713          X"$as_dir" : 'X\(//\)[^/]' \| \
26714          X"$as_dir" : 'X\(//\)$' \| \
26715          X"$as_dir" : 'X\(/\)' \| \
26716          .     : '\(.\)' 2>/dev/null ||
26717 echo X"$as_dir" |
26718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26720           /^X\(\/\/\)$/{ s//\1/; q; }
26721           /^X\(\/\).*/{ s//\1/; q; }
26722           s/.*/./; q'`
26723     done
26724     test ! -n "$as_dirs" || mkdir $as_dirs
26725   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26726 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26727    { (exit 1); exit 1; }; }; }
26728
26729   ac_builddir=.
26730
26731 if test "$ac_dir" != .; then
26732   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26733   # A "../" for each directory in $ac_dir_suffix.
26734   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26735 else
26736   ac_dir_suffix= ac_top_builddir=
26737 fi
26738
26739 case $srcdir in
26740   .)  # No --srcdir option.  We are building in place.
26741     ac_srcdir=.
26742     if test -z "$ac_top_builddir"; then
26743        ac_top_srcdir=.
26744     else
26745        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26746     fi ;;
26747   [\\/]* | ?:[\\/]* )  # Absolute path.
26748     ac_srcdir=$srcdir$ac_dir_suffix;
26749     ac_top_srcdir=$srcdir ;;
26750   *) # Relative path.
26751     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26752     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26753 esac
26754
26755 # Do not use `cd foo && pwd` to compute absolute paths, because
26756 # the directories may not exist.
26757 case `pwd` in
26758 .) ac_abs_builddir="$ac_dir";;
26759 *)
26760   case "$ac_dir" in
26761   .) ac_abs_builddir=`pwd`;;
26762   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26763   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26764   esac;;
26765 esac
26766 case $ac_abs_builddir in
26767 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26768 *)
26769   case ${ac_top_builddir}. in
26770   .) ac_abs_top_builddir=$ac_abs_builddir;;
26771   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26772   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26773   esac;;
26774 esac
26775 case $ac_abs_builddir in
26776 .) ac_abs_srcdir=$ac_srcdir;;
26777 *)
26778   case $ac_srcdir in
26779   .) ac_abs_srcdir=$ac_abs_builddir;;
26780   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26781   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26782   esac;;
26783 esac
26784 case $ac_abs_builddir in
26785 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26786 *)
26787   case $ac_top_srcdir in
26788   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26789   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26790   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26791   esac;;
26792 esac
26793
26794
26795   case $INSTALL in
26796   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26797   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26798   esac
26799
26800   # Let's still pretend it is `configure' which instantiates (i.e., don't
26801   # use $as_me), people would be surprised to read:
26802   #    /* config.h.  Generated by config.status.  */
26803   if test x"$ac_file" = x-; then
26804     configure_input=
26805   else
26806     configure_input="$ac_file.  "
26807   fi
26808   configure_input=$configure_input"Generated from `echo $ac_file_in |
26809                                      sed 's,.*/,,'` by configure."
26810
26811   # First look for the input files in the build tree, otherwise in the
26812   # src tree.
26813   ac_file_inputs=`IFS=:
26814     for f in $ac_file_in; do
26815       case $f in
26816       -) echo $tmp/stdin ;;
26817       [\\/$]*)
26818          # Absolute (can't be DOS-style, as IFS=:)
26819          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26820 echo "$as_me: error: cannot find input file: $f" >&2;}
26821    { (exit 1); exit 1; }; }
26822          echo "$f";;
26823       *) # Relative
26824          if test -f "$f"; then
26825            # Build tree
26826            echo "$f"
26827          elif test -f "$srcdir/$f"; then
26828            # Source tree
26829            echo "$srcdir/$f"
26830          else
26831            # /dev/null tree
26832            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26833 echo "$as_me: error: cannot find input file: $f" >&2;}
26834    { (exit 1); exit 1; }; }
26835          fi;;
26836       esac
26837     done` || { (exit 1); exit 1; }
26838
26839   if test x"$ac_file" != x-; then
26840     { echo "$as_me:$LINENO: creating $ac_file" >&5
26841 echo "$as_me: creating $ac_file" >&6;}
26842     rm -f "$ac_file"
26843   fi
26844 _ACEOF
26845 cat >>$CONFIG_STATUS <<_ACEOF
26846   sed "$ac_vpsub
26847 $extrasub
26848 _ACEOF
26849 cat >>$CONFIG_STATUS <<\_ACEOF
26850 :t
26851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26852 s,@configure_input@,$configure_input,;t t
26853 s,@srcdir@,$ac_srcdir,;t t
26854 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26855 s,@top_srcdir@,$ac_top_srcdir,;t t
26856 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26857 s,@builddir@,$ac_builddir,;t t
26858 s,@abs_builddir@,$ac_abs_builddir,;t t
26859 s,@top_builddir@,$ac_top_builddir,;t t
26860 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26861 s,@INSTALL@,$ac_INSTALL,;t t
26862 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26863   rm -f $tmp/stdin
26864   if test x"$ac_file" != x-; then
26865     mv $tmp/out $ac_file
26866   else
26867     cat $tmp/out
26868     rm -f $tmp/out
26869   fi
26870
26871   # Run the commands associated with the file.
26872   case $ac_file in
26873     tools/graspe-slave )
26874     for file in                                                 \
26875      tools/graspe-slave           tools/graspe-master           \
26876     ; do                                                        \
26877       test -e $file && chmod +x $file;                          \
26878     done
26879  ;;
26880     testsuite/Makefile )
26881     for file in                                                 \
26882      testsuite/run_tests                                        \
26883      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26884     ; do                                                        \
26885       test -e $file && chmod +x $file;                          \
26886     done
26887  ;;
26888     testsuite/run_tests )
26889     for file in                                                 \
26890      testsuite/run_tests                                        \
26891      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26892     ; do                                                        \
26893       test -e $file && chmod +x $file;                          \
26894     done
26895  ;;
26896     testsuite/gras/trp_tcp_usage )
26897     for file in                                                 \
26898      testsuite/run_tests                                        \
26899      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26900     ; do                                                        \
26901       test -e $file && chmod +x $file;                          \
26902     done
26903  ;;
26904     testsuite/gras/trp_file_usage )
26905     for file in                                                 \
26906      testsuite/run_tests                                        \
26907      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26908     ; do                                                        \
26909       test -e $file && chmod +x $file;                          \
26910     done
26911  ;;
26912     examples/Makefile )
26913     for file in                                                 \
26914      \
26915      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26916      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26917      \
26918      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26919      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26920      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26921      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26922      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26923      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26924      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26925      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26926      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26927      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26928      examples/msg/run_msg_test                                  \
26929      examples/simdag/test_simdag                                \
26930     ; do                                                        \
26931       test -e $file && chmod +x $file;                          \
26932     done
26933  ;;
26934     examples/msg/Makefile )
26935     for file in                                                 \
26936      \
26937      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26938      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26939      \
26940      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26941      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26942      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26943      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26944      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26945      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26946      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26947      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26948      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26949      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26950      examples/msg/run_msg_test                                  \
26951      examples/simdag/test_simdag                                \
26952     ; do                                                        \
26953       test -e $file && chmod +x $file;                          \
26954     done
26955  ;;
26956     examples/msg/run_msg_test )
26957     for file in                                                 \
26958      \
26959      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26960      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26961      \
26962      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26963      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26964      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26965      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26966      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26967      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26968      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26969      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26970      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26971      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26972      examples/msg/run_msg_test                                  \
26973      examples/simdag/test_simdag                                \
26974     ; do                                                        \
26975       test -e $file && chmod +x $file;                          \
26976     done
26977  ;;
26978     examples/simdag/Makefile )
26979     for file in                                                 \
26980      \
26981      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26982      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26983      \
26984      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26985      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26986      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26987      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26988      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26989      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26990      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26991      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26992      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26993      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26994      examples/msg/run_msg_test                                  \
26995      examples/simdag/test_simdag                                \
26996     ; do                                                        \
26997       test -e $file && chmod +x $file;                          \
26998     done
26999  ;;
27000     examples/simdag/test_simdag )
27001     for file in                                                 \
27002      \
27003      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27004      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27005      \
27006      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27007      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27008      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27009      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27010      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27011      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27012      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27013      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27014      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27015      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27016      examples/msg/run_msg_test                                  \
27017      examples/simdag/test_simdag                                \
27018     ; do                                                        \
27019       test -e $file && chmod +x $file;                          \
27020     done
27021  ;;
27022     examples/gras/Makefile )
27023     for file in                                                 \
27024      \
27025      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27026      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27027      \
27028      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27029      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27030      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27031      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27032      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27033      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27034      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27035      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27036      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27037      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27038      examples/msg/run_msg_test                                  \
27039      examples/simdag/test_simdag                                \
27040     ; do                                                        \
27041       test -e $file && chmod +x $file;                          \
27042     done
27043  ;;
27044     examples/gras/ping/Makefile )
27045     for file in                                                 \
27046      \
27047      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27048      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27049      \
27050      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27051      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27052      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27053      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27054      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27055      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27056      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27057      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27058      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27059      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27060      examples/msg/run_msg_test                                  \
27061      examples/simdag/test_simdag                                \
27062     ; do                                                        \
27063       test -e $file && chmod +x $file;                          \
27064     done
27065  ;;
27066     examples/gras/ping/test_sg )
27067     for file in                                                 \
27068      \
27069      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27070      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27071      \
27072      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27073      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27074      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27075      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27076      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27077      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27078      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27079      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27080      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27081      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27082      examples/msg/run_msg_test                                  \
27083      examples/simdag/test_simdag                                \
27084     ; do                                                        \
27085       test -e $file && chmod +x $file;                          \
27086     done
27087  ;;
27088     examples/gras/ping/test_rl )
27089     for file in                                                 \
27090      \
27091      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27092      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27093      \
27094      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27095      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27096      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27097      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27098      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27099      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27100      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27101      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27102      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27103      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27104      examples/msg/run_msg_test                                  \
27105      examples/simdag/test_simdag                                \
27106     ; do                                                        \
27107       test -e $file && chmod +x $file;                          \
27108     done
27109  ;;
27110     examples/gras/rpc/Makefile )
27111     for file in                                                 \
27112      \
27113      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27114      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27115      \
27116      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27117      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27118      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27119      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27120      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27121      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27122      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27123      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27124      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27125      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27126      examples/msg/run_msg_test                                  \
27127      examples/simdag/test_simdag                                \
27128     ; do                                                        \
27129       test -e $file && chmod +x $file;                          \
27130     done
27131  ;;
27132     examples/gras/rpc/test_sg )
27133     for file in                                                 \
27134      \
27135      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27136      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27137      \
27138      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27139      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27140      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27141      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27142      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27143      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27144      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27145      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27146      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27147      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27148      examples/msg/run_msg_test                                  \
27149      examples/simdag/test_simdag                                \
27150     ; do                                                        \
27151       test -e $file && chmod +x $file;                          \
27152     done
27153  ;;
27154     examples/gras/rpc/test_rl )
27155     for file in                                                 \
27156      \
27157      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27158      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27159      \
27160      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27161      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27162      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27163      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27164      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27165      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27166      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27167      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27168      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27169      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27170      examples/msg/run_msg_test                                  \
27171      examples/simdag/test_simdag                                \
27172     ; do                                                        \
27173       test -e $file && chmod +x $file;                          \
27174     done
27175  ;;
27176     examples/gras/timer/Makefile )
27177     for file in                                                 \
27178      \
27179      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27180      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27181      \
27182      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27183      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27184      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27185      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27186      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27187      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27188      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27189      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27190      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27191      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27192      examples/msg/run_msg_test                                  \
27193      examples/simdag/test_simdag                                \
27194     ; do                                                        \
27195       test -e $file && chmod +x $file;                          \
27196     done
27197  ;;
27198     examples/gras/timer/test_sg )
27199     for file in                                                 \
27200      \
27201      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27202      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27203      \
27204      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27205      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27206      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27207      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27208      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27209      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27210      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27211      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27212      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27213      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27214      examples/msg/run_msg_test                                  \
27215      examples/simdag/test_simdag                                \
27216     ; do                                                        \
27217       test -e $file && chmod +x $file;                          \
27218     done
27219  ;;
27220     examples/gras/timer/test_rl )
27221     for file in                                                 \
27222      \
27223      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27224      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27225      \
27226      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27227      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27228      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27229      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27230      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27231      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27232      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27233      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27234      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27235      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27236      examples/msg/run_msg_test                                  \
27237      examples/simdag/test_simdag                                \
27238     ; do                                                        \
27239       test -e $file && chmod +x $file;                          \
27240     done
27241  ;;
27242     examples/gras/chrono/Makefile )
27243     for file in                                                 \
27244      \
27245      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27246      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27247      \
27248      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27249      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27250      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27251      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27252      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27253      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27254      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27255      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27256      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27257      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27258      examples/msg/run_msg_test                                  \
27259      examples/simdag/test_simdag                                \
27260     ; do                                                        \
27261       test -e $file && chmod +x $file;                          \
27262     done
27263  ;;
27264     examples/gras/chrono/test_sg )
27265     for file in                                                 \
27266      \
27267      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27268      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27269      \
27270      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27271      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27272      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27273      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27274      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27275      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27276      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27277      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27278      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27279      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27280      examples/msg/run_msg_test                                  \
27281      examples/simdag/test_simdag                                \
27282     ; do                                                        \
27283       test -e $file && chmod +x $file;                          \
27284     done
27285  ;;
27286     examples/gras/chrono/test_rl )
27287     for file in                                                 \
27288      \
27289      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27290      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27291      \
27292      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27293      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27294      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27295      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27296      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27297      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27298      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27299      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27300      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27301      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27302      examples/msg/run_msg_test                                  \
27303      examples/simdag/test_simdag                                \
27304     ; do                                                        \
27305       test -e $file && chmod +x $file;                          \
27306     done
27307  ;;
27308     examples/gras/mutual_exclusion/simple_token/Makefile )
27309     for file in                                                 \
27310      \
27311      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27312      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27313      \
27314      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27315      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27316      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27317      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27318      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27319      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27320      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27321      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27322      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27323      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27324      examples/msg/run_msg_test                                  \
27325      examples/simdag/test_simdag                                \
27326     ; do                                                        \
27327       test -e $file && chmod +x $file;                          \
27328     done
27329  ;;
27330     examples/gras/mutual_exclusion/simple_token/test_sg )
27331     for file in                                                 \
27332      \
27333      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27334      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27335      \
27336      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27337      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27338      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27339      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27340      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27341      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27342      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27343      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27344      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27345      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27346      examples/msg/run_msg_test                                  \
27347      examples/simdag/test_simdag                                \
27348     ; do                                                        \
27349       test -e $file && chmod +x $file;                          \
27350     done
27351  ;;
27352     examples/gras/mutual_exclusion/simple_token/test_rl )
27353     for file in                                                 \
27354      \
27355      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27356      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27357      \
27358      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27359      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27360      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27361      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27362      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27363      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27364      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27365      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27366      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27367      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27368      examples/msg/run_msg_test                                  \
27369      examples/simdag/test_simdag                                \
27370     ; do                                                        \
27371       test -e $file && chmod +x $file;                          \
27372     done
27373  ;;
27374     examples/gras/mmrpc/Makefile )
27375     for file in                                                 \
27376      \
27377      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27378      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27379      \
27380      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27381      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27382      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27383      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27384      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27385      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27386      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27387      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27388      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27389      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27390      examples/msg/run_msg_test                                  \
27391      examples/simdag/test_simdag                                \
27392     ; do                                                        \
27393       test -e $file && chmod +x $file;                          \
27394     done
27395  ;;
27396     examples/gras/mmrpc/test_sg )
27397     for file in                                                 \
27398      \
27399      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27400      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27401      \
27402      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27403      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27404      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27405      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27406      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27407      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27408      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27409      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27410      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27411      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27412      examples/msg/run_msg_test                                  \
27413      examples/simdag/test_simdag                                \
27414     ; do                                                        \
27415       test -e $file && chmod +x $file;                          \
27416     done
27417  ;;
27418     examples/gras/mmrpc/test_rl )
27419     for file in                                                 \
27420      \
27421      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27422      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27423      \
27424      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27425      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27426      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27427      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27428      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27429      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27430      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27431      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27432      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27433      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27434      examples/msg/run_msg_test                                  \
27435      examples/simdag/test_simdag                                \
27436     ; do                                                        \
27437       test -e $file && chmod +x $file;                          \
27438     done
27439  ;;
27440     examples/gras/pmm/Makefile )
27441     for file in                                                 \
27442      \
27443      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27444      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27445      \
27446      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27447      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27448      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27449      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27450      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27451      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27452      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27453      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27454      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27455      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27456      examples/msg/run_msg_test                                  \
27457      examples/simdag/test_simdag                                \
27458     ; do                                                        \
27459       test -e $file && chmod +x $file;                          \
27460     done
27461  ;;
27462     examples/gras/pmm/test_sg )
27463     for file in                                                 \
27464      \
27465      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27466      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27467      \
27468      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27469      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27470      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27471      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27472      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27473      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27474      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27475      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27476      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27477      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27478      examples/msg/run_msg_test                                  \
27479      examples/simdag/test_simdag                                \
27480     ; do                                                        \
27481       test -e $file && chmod +x $file;                          \
27482     done
27483  ;;
27484     examples/gras/pmm/test_rl )
27485     for file in                                                 \
27486      \
27487      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27488      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27489      \
27490      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27491      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27492      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27493      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27494      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27495      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27496      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27497      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27498      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27499      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27500      examples/msg/run_msg_test                                  \
27501      examples/simdag/test_simdag                                \
27502     ; do                                                        \
27503       test -e $file && chmod +x $file;                          \
27504     done
27505  ;;
27506     examples/gras/all2all/Makefile )
27507     for file in                                                 \
27508      \
27509      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27510      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27511      \
27512      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27513      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27514      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27515      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27516      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27517      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27518      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27519      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27520      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27521      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27522      examples/msg/run_msg_test                                  \
27523      examples/simdag/test_simdag                                \
27524     ; do                                                        \
27525       test -e $file && chmod +x $file;                          \
27526     done
27527  ;;
27528     examples/gras/all2all/test_sg )
27529     for file in                                                 \
27530      \
27531      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27532      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27533      \
27534      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27535      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27536      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27537      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27538      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27539      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27540      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27541      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27542      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27543      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27544      examples/msg/run_msg_test                                  \
27545      examples/simdag/test_simdag                                \
27546     ; do                                                        \
27547       test -e $file && chmod +x $file;                          \
27548     done
27549  ;;
27550     examples/gras/all2all/test_rl )
27551     for file in                                                 \
27552      \
27553      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27554      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27555      \
27556      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27557      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27558      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27559      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27560      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27561      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27562      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27563      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27564      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27565      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27566      examples/msg/run_msg_test                                  \
27567      examples/simdag/test_simdag                                \
27568     ; do                                                        \
27569       test -e $file && chmod +x $file;                          \
27570     done
27571  ;;
27572     examples/gras/p2p/Makefile )
27573     for file in                                                 \
27574      \
27575      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27576      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27577      \
27578      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27579      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27580      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27581      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27582      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27583      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27584      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27585      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27586      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27587      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27588      examples/msg/run_msg_test                                  \
27589      examples/simdag/test_simdag                                \
27590     ; do                                                        \
27591       test -e $file && chmod +x $file;                          \
27592     done
27593  ;;
27594     examples/gras/p2p/chord/Makefile )
27595     for file in                                                 \
27596      \
27597      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27598      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27599      \
27600      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27601      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27602      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27603      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27604      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27605      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27606      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27607      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27608      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27609      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27610      examples/msg/run_msg_test                                  \
27611      examples/simdag/test_simdag                                \
27612     ; do                                                        \
27613       test -e $file && chmod +x $file;                          \
27614     done
27615  ;;
27616     examples/gras/p2p/chord/test_sg )
27617     for file in                                                 \
27618      \
27619      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27620      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27621      \
27622      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27623      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27624      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27625      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27626      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27627      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27628      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27629      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27630      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27631      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27632      examples/msg/run_msg_test                                  \
27633      examples/simdag/test_simdag                                \
27634     ; do                                                        \
27635       test -e $file && chmod +x $file;                          \
27636     done
27637  ;;
27638     examples/gras/p2p/chord/test_rl )
27639     for file in                                                 \
27640      \
27641      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27642      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27643      \
27644      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27645      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27646      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27647      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27648      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27649      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27650      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27651      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27652      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27653      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27654      examples/msg/run_msg_test                                  \
27655      examples/simdag/test_simdag                                \
27656     ; do                                                        \
27657       test -e $file && chmod +x $file;                          \
27658     done
27659  ;;
27660     examples/gras/p2p/can/Makefile )
27661     for file in                                                 \
27662      \
27663      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27664      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27665      \
27666      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27667      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27668      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27669      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27670      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27671      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27672      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27673      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27674      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27675      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27676      examples/msg/run_msg_test                                  \
27677      examples/simdag/test_simdag                                \
27678     ; do                                                        \
27679       test -e $file && chmod +x $file;                          \
27680     done
27681  ;;
27682     examples/gras/p2p/can/test_sg )
27683     for file in                                                 \
27684      \
27685      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27686      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27687      \
27688      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27689      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27690      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27691      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27692      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27693      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27694      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27695      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27696      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27697      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27698      examples/msg/run_msg_test                                  \
27699      examples/simdag/test_simdag                                \
27700     ; do                                                        \
27701       test -e $file && chmod +x $file;                          \
27702     done
27703  ;;
27704     examples/gras/p2p/can/test_rl )
27705     for file in                                                 \
27706      \
27707      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27708      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27709      \
27710      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27711      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27712      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27713      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27714      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27715      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27716      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27717      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27718      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27719      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27720      examples/msg/run_msg_test                                  \
27721      examples/simdag/test_simdag                                \
27722     ; do                                                        \
27723       test -e $file && chmod +x $file;                          \
27724     done
27725  ;;
27726     examples/amok/Makefile )
27727     for file in                                                 \
27728      \
27729      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27730      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27731      \
27732      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27733      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27734      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27735      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27736      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27737      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27738      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27739      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27740      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27741      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27742      examples/msg/run_msg_test                                  \
27743      examples/simdag/test_simdag                                \
27744     ; do                                                        \
27745       test -e $file && chmod +x $file;                          \
27746     done
27747  ;;
27748     examples/amok/bandwidth/Makefile )
27749     for file in                                                 \
27750      \
27751      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27752      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27753      \
27754      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27755      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27756      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27757      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27758      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27759      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27760      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27761      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27762      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27763      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27764      examples/msg/run_msg_test                                  \
27765      examples/simdag/test_simdag                                \
27766     ; do                                                        \
27767       test -e $file && chmod +x $file;                          \
27768     done
27769  ;;
27770     examples/amok/bandwidth/test_sg )
27771     for file in                                                 \
27772      \
27773      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27774      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27775      \
27776      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27777      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27778      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27779      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27780      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27781      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27782      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27783      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27784      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27785      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27786      examples/msg/run_msg_test                                  \
27787      examples/simdag/test_simdag                                \
27788     ; do                                                        \
27789       test -e $file && chmod +x $file;                          \
27790     done
27791  ;;
27792     examples/amok/bandwidth/test_rl )
27793     for file in                                                 \
27794      \
27795      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27796      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27797      \
27798      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27799      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27800      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27801      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27802      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27803      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27804      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27805      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27806      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27807      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27808      examples/msg/run_msg_test                                  \
27809      examples/simdag/test_simdag                                \
27810     ; do                                                        \
27811       test -e $file && chmod +x $file;                          \
27812     done
27813  ;;
27814     examples/amok/saturate/Makefile )
27815     for file in                                                 \
27816      \
27817      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27818      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27819      \
27820      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27821      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27822      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27823      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27824      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27825      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27826      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27827      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27828      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27829      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27830      examples/msg/run_msg_test                                  \
27831      examples/simdag/test_simdag                                \
27832     ; do                                                        \
27833       test -e $file && chmod +x $file;                          \
27834     done
27835  ;;
27836     examples/amok/saturate/test_sg )
27837     for file in                                                 \
27838      \
27839      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27840      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27841      \
27842      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27843      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27844      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27845      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27846      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27847      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27848      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27849      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27850      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27851      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27852      examples/msg/run_msg_test                                  \
27853      examples/simdag/test_simdag                                \
27854     ; do                                                        \
27855       test -e $file && chmod +x $file;                          \
27856     done
27857  ;;
27858     examples/amok/saturate/test_rl )
27859     for file in                                                 \
27860      \
27861      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27862      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27863      \
27864      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27865      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27866      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27867      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27868      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27869      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27870      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27871      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27872      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27873      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27874      examples/msg/run_msg_test                                  \
27875      examples/simdag/test_simdag                                \
27876     ; do                                                        \
27877       test -e $file && chmod +x $file;                          \
27878     done
27879  ;;
27880   esac
27881 done
27882 _ACEOF
27883 cat >>$CONFIG_STATUS <<\_ACEOF
27884
27885 #
27886 # CONFIG_HEADER section.
27887 #
27888
27889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27891 #
27892 # ac_d sets the value in "#define NAME VALUE" lines.
27893 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27894 ac_dB='[         ].*$,\1#\2'
27895 ac_dC=' '
27896 ac_dD=',;t'
27897 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27898 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27899 ac_uB='$,\1#\2define\3'
27900 ac_uC=' '
27901 ac_uD=',;t'
27902
27903 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27904   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27905   case $ac_file in
27906   - | *:- | *:-:* ) # input from stdin
27907         cat >$tmp/stdin
27908         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27909         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27910   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27911         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27912   * )   ac_file_in=$ac_file.in ;;
27913   esac
27914
27915   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27916 echo "$as_me: creating $ac_file" >&6;}
27917
27918   # First look for the input files in the build tree, otherwise in the
27919   # src tree.
27920   ac_file_inputs=`IFS=:
27921     for f in $ac_file_in; do
27922       case $f in
27923       -) echo $tmp/stdin ;;
27924       [\\/$]*)
27925          # Absolute (can't be DOS-style, as IFS=:)
27926          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27927 echo "$as_me: error: cannot find input file: $f" >&2;}
27928    { (exit 1); exit 1; }; }
27929          # Do quote $f, to prevent DOS paths from being IFS'd.
27930          echo "$f";;
27931       *) # Relative
27932          if test -f "$f"; then
27933            # Build tree
27934            echo "$f"
27935          elif test -f "$srcdir/$f"; then
27936            # Source tree
27937            echo "$srcdir/$f"
27938          else
27939            # /dev/null tree
27940            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27941 echo "$as_me: error: cannot find input file: $f" >&2;}
27942    { (exit 1); exit 1; }; }
27943          fi;;
27944       esac
27945     done` || { (exit 1); exit 1; }
27946   # Remove the trailing spaces.
27947   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27948
27949 _ACEOF
27950
27951 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27952 # `conftest.undefs', that substitutes the proper values into
27953 # config.h.in to produce config.h.  The first handles `#define'
27954 # templates, and the second `#undef' templates.
27955 # And first: Protect against being on the right side of a sed subst in
27956 # config.status.  Protect against being in an unquoted here document
27957 # in config.status.
27958 rm -f conftest.defines conftest.undefs
27959 # Using a here document instead of a string reduces the quoting nightmare.
27960 # Putting comments in sed scripts is not portable.
27961 #
27962 # `end' is used to avoid that the second main sed command (meant for
27963 # 0-ary CPP macros) applies to n-ary macro definitions.
27964 # See the Autoconf documentation for `clear'.
27965 cat >confdef2sed.sed <<\_ACEOF
27966 s/[\\&,]/\\&/g
27967 s,[\\$`],\\&,g
27968 t clear
27969 : clear
27970 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27971 t end
27972 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27973 : end
27974 _ACEOF
27975 # If some macros were called several times there might be several times
27976 # the same #defines, which is useless.  Nevertheless, we may not want to
27977 # sort them, since we want the *last* AC-DEFINE to be honored.
27978 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27979 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27980 rm -f confdef2sed.sed
27981
27982 # This sed command replaces #undef with comments.  This is necessary, for
27983 # example, in the case of _POSIX_SOURCE, which is predefined and required
27984 # on some systems where configure will not decide to define it.
27985 cat >>conftest.undefs <<\_ACEOF
27986 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27987 _ACEOF
27988
27989 # Break up conftest.defines because some shells have a limit on the size
27990 # of here documents, and old seds have small limits too (100 cmds).
27991 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27992 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27993 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27994 echo '  :' >>$CONFIG_STATUS
27995 rm -f conftest.tail
27996 while grep . conftest.defines >/dev/null
27997 do
27998   # Write a limited-size here document to $tmp/defines.sed.
27999   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28000   # Speed up: don't consider the non `#define' lines.
28001   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
28002   # Work around the forget-to-reset-the-flag bug.
28003   echo 't clr' >>$CONFIG_STATUS
28004   echo ': clr' >>$CONFIG_STATUS
28005   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28006   echo 'CEOF
28007   sed -f $tmp/defines.sed $tmp/in >$tmp/out
28008   rm -f $tmp/in
28009   mv $tmp/out $tmp/in
28010 ' >>$CONFIG_STATUS
28011   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28012   rm -f conftest.defines
28013   mv conftest.tail conftest.defines
28014 done
28015 rm -f conftest.defines
28016 echo '  fi # grep' >>$CONFIG_STATUS
28017 echo >>$CONFIG_STATUS
28018
28019 # Break up conftest.undefs because some shells have a limit on the size
28020 # of here documents, and old seds have small limits too (100 cmds).
28021 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
28022 rm -f conftest.tail
28023 while grep . conftest.undefs >/dev/null
28024 do
28025   # Write a limited-size here document to $tmp/undefs.sed.
28026   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28027   # Speed up: don't consider the non `#undef'
28028   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
28029   # Work around the forget-to-reset-the-flag bug.
28030   echo 't clr' >>$CONFIG_STATUS
28031   echo ': clr' >>$CONFIG_STATUS
28032   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28033   echo 'CEOF
28034   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28035   rm -f $tmp/in
28036   mv $tmp/out $tmp/in
28037 ' >>$CONFIG_STATUS
28038   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28039   rm -f conftest.undefs
28040   mv conftest.tail conftest.undefs
28041 done
28042 rm -f conftest.undefs
28043
28044 cat >>$CONFIG_STATUS <<\_ACEOF
28045   # Let's still pretend it is `configure' which instantiates (i.e., don't
28046   # use $as_me), people would be surprised to read:
28047   #    /* config.h.  Generated by config.status.  */
28048   if test x"$ac_file" = x-; then
28049     echo "/* Generated by configure.  */" >$tmp/config.h
28050   else
28051     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
28052   fi
28053   cat $tmp/in >>$tmp/config.h
28054   rm -f $tmp/in
28055   if test x"$ac_file" != x-; then
28056     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28057       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28058 echo "$as_me: $ac_file is unchanged" >&6;}
28059     else
28060       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28061 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28062          X"$ac_file" : 'X\(//\)[^/]' \| \
28063          X"$ac_file" : 'X\(//\)$' \| \
28064          X"$ac_file" : 'X\(/\)' \| \
28065          .     : '\(.\)' 2>/dev/null ||
28066 echo X"$ac_file" |
28067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28068           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28069           /^X\(\/\/\)$/{ s//\1/; q; }
28070           /^X\(\/\).*/{ s//\1/; q; }
28071           s/.*/./; q'`
28072       { if $as_mkdir_p; then
28073     mkdir -p "$ac_dir"
28074   else
28075     as_dir="$ac_dir"
28076     as_dirs=
28077     while test ! -d "$as_dir"; do
28078       as_dirs="$as_dir $as_dirs"
28079       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28081          X"$as_dir" : 'X\(//\)[^/]' \| \
28082          X"$as_dir" : 'X\(//\)$' \| \
28083          X"$as_dir" : 'X\(/\)' \| \
28084          .     : '\(.\)' 2>/dev/null ||
28085 echo X"$as_dir" |
28086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28087           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28088           /^X\(\/\/\)$/{ s//\1/; q; }
28089           /^X\(\/\).*/{ s//\1/; q; }
28090           s/.*/./; q'`
28091     done
28092     test ! -n "$as_dirs" || mkdir $as_dirs
28093   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28094 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28095    { (exit 1); exit 1; }; }; }
28096
28097       rm -f $ac_file
28098       mv $tmp/config.h $ac_file
28099     fi
28100   else
28101     cat $tmp/config.h
28102     rm -f $tmp/config.h
28103   fi
28104 # Compute $ac_file's index in $config_headers.
28105 _am_stamp_count=1
28106 for _am_header in $config_headers :; do
28107   case $_am_header in
28108     $ac_file | $ac_file:* )
28109       break ;;
28110     * )
28111       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28112   esac
28113 done
28114 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28115 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28116          X$ac_file : 'X\(//\)[^/]' \| \
28117          X$ac_file : 'X\(//\)$' \| \
28118          X$ac_file : 'X\(/\)' \| \
28119          .     : '\(.\)' 2>/dev/null ||
28120 echo X$ac_file |
28121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28122           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28123           /^X\(\/\/\)$/{ s//\1/; q; }
28124           /^X\(\/\).*/{ s//\1/; q; }
28125           s/.*/./; q'`/stamp-h$_am_stamp_count
28126 done
28127 _ACEOF
28128 cat >>$CONFIG_STATUS <<\_ACEOF
28129
28130 #
28131 # CONFIG_COMMANDS section.
28132 #
28133 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28134   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28135   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28136   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28137 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28138          X"$ac_dest" : 'X\(//\)[^/]' \| \
28139          X"$ac_dest" : 'X\(//\)$' \| \
28140          X"$ac_dest" : 'X\(/\)' \| \
28141          .     : '\(.\)' 2>/dev/null ||
28142 echo X"$ac_dest" |
28143     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28144           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28145           /^X\(\/\/\)$/{ s//\1/; q; }
28146           /^X\(\/\).*/{ s//\1/; q; }
28147           s/.*/./; q'`
28148   { if $as_mkdir_p; then
28149     mkdir -p "$ac_dir"
28150   else
28151     as_dir="$ac_dir"
28152     as_dirs=
28153     while test ! -d "$as_dir"; do
28154       as_dirs="$as_dir $as_dirs"
28155       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28157          X"$as_dir" : 'X\(//\)[^/]' \| \
28158          X"$as_dir" : 'X\(//\)$' \| \
28159          X"$as_dir" : 'X\(/\)' \| \
28160          .     : '\(.\)' 2>/dev/null ||
28161 echo X"$as_dir" |
28162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28163           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28164           /^X\(\/\/\)$/{ s//\1/; q; }
28165           /^X\(\/\).*/{ s//\1/; q; }
28166           s/.*/./; q'`
28167     done
28168     test ! -n "$as_dirs" || mkdir $as_dirs
28169   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28171    { (exit 1); exit 1; }; }; }
28172
28173   ac_builddir=.
28174
28175 if test "$ac_dir" != .; then
28176   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28177   # A "../" for each directory in $ac_dir_suffix.
28178   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28179 else
28180   ac_dir_suffix= ac_top_builddir=
28181 fi
28182
28183 case $srcdir in
28184   .)  # No --srcdir option.  We are building in place.
28185     ac_srcdir=.
28186     if test -z "$ac_top_builddir"; then
28187        ac_top_srcdir=.
28188     else
28189        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28190     fi ;;
28191   [\\/]* | ?:[\\/]* )  # Absolute path.
28192     ac_srcdir=$srcdir$ac_dir_suffix;
28193     ac_top_srcdir=$srcdir ;;
28194   *) # Relative path.
28195     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28196     ac_top_srcdir=$ac_top_builddir$srcdir ;;
28197 esac
28198
28199 # Do not use `cd foo && pwd` to compute absolute paths, because
28200 # the directories may not exist.
28201 case `pwd` in
28202 .) ac_abs_builddir="$ac_dir";;
28203 *)
28204   case "$ac_dir" in
28205   .) ac_abs_builddir=`pwd`;;
28206   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28207   *) ac_abs_builddir=`pwd`/"$ac_dir";;
28208   esac;;
28209 esac
28210 case $ac_abs_builddir in
28211 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28212 *)
28213   case ${ac_top_builddir}. in
28214   .) ac_abs_top_builddir=$ac_abs_builddir;;
28215   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28216   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28217   esac;;
28218 esac
28219 case $ac_abs_builddir in
28220 .) ac_abs_srcdir=$ac_srcdir;;
28221 *)
28222   case $ac_srcdir in
28223   .) ac_abs_srcdir=$ac_abs_builddir;;
28224   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28225   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28226   esac;;
28227 esac
28228 case $ac_abs_builddir in
28229 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28230 *)
28231   case $ac_top_srcdir in
28232   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28233   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28234   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28235   esac;;
28236 esac
28237
28238
28239   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28240 echo "$as_me: executing $ac_dest commands" >&6;}
28241   case $ac_dest in
28242     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28243   # Strip MF so we end up with the name of the file.
28244   mf=`echo "$mf" | sed -e 's/:.*$//'`
28245   # Check whether this is an Automake generated Makefile or not.
28246   # We used to match only the files named `Makefile.in', but
28247   # some people rename them; so instead we look at the file content.
28248   # Grep'ing the first line is not enough: some people post-process
28249   # each Makefile.in and add a new line on top of each file to say so.
28250   # So let's grep whole file.
28251   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28252     dirpart=`(dirname "$mf") 2>/dev/null ||
28253 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28254          X"$mf" : 'X\(//\)[^/]' \| \
28255          X"$mf" : 'X\(//\)$' \| \
28256          X"$mf" : 'X\(/\)' \| \
28257          .     : '\(.\)' 2>/dev/null ||
28258 echo X"$mf" |
28259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28260           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28261           /^X\(\/\/\)$/{ s//\1/; q; }
28262           /^X\(\/\).*/{ s//\1/; q; }
28263           s/.*/./; q'`
28264   else
28265     continue
28266   fi
28267   # Extract the definition of DEPDIR, am__include, and am__quote
28268   # from the Makefile without running `make'.
28269   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28270   test -z "$DEPDIR" && continue
28271   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28272   test -z "am__include" && continue
28273   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28274   # When using ansi2knr, U may be empty or an underscore; expand it
28275   U=`sed -n 's/^U = //p' < "$mf"`
28276   # Find all dependency output files, they are included files with
28277   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28278   # simplest approach to changing $(DEPDIR) to its actual value in the
28279   # expansion.
28280   for file in `sed -n "
28281     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28282        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28283     # Make sure the directory exists.
28284     test -f "$dirpart/$file" && continue
28285     fdir=`(dirname "$file") 2>/dev/null ||
28286 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28287          X"$file" : 'X\(//\)[^/]' \| \
28288          X"$file" : 'X\(//\)$' \| \
28289          X"$file" : 'X\(/\)' \| \
28290          .     : '\(.\)' 2>/dev/null ||
28291 echo X"$file" |
28292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28293           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28294           /^X\(\/\/\)$/{ s//\1/; q; }
28295           /^X\(\/\).*/{ s//\1/; q; }
28296           s/.*/./; q'`
28297     { if $as_mkdir_p; then
28298     mkdir -p $dirpart/$fdir
28299   else
28300     as_dir=$dirpart/$fdir
28301     as_dirs=
28302     while test ! -d "$as_dir"; do
28303       as_dirs="$as_dir $as_dirs"
28304       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28306          X"$as_dir" : 'X\(//\)[^/]' \| \
28307          X"$as_dir" : 'X\(//\)$' \| \
28308          X"$as_dir" : 'X\(/\)' \| \
28309          .     : '\(.\)' 2>/dev/null ||
28310 echo X"$as_dir" |
28311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28312           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28313           /^X\(\/\/\)$/{ s//\1/; q; }
28314           /^X\(\/\).*/{ s//\1/; q; }
28315           s/.*/./; q'`
28316     done
28317     test ! -n "$as_dirs" || mkdir $as_dirs
28318   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28319 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28320    { (exit 1); exit 1; }; }; }
28321
28322     # echo "creating $dirpart/$file"
28323     echo '# dummy' > "$dirpart/$file"
28324   done
28325 done
28326  ;;
28327   esac
28328 done
28329 _ACEOF
28330
28331 cat >>$CONFIG_STATUS <<\_ACEOF
28332
28333 { (exit 0); exit 0; }
28334 _ACEOF
28335 chmod +x $CONFIG_STATUS
28336 ac_clean_files=$ac_clean_files_save
28337
28338
28339 # configure is writing to config.log, and then calls config.status.
28340 # config.status does its own redirection, appending to config.log.
28341 # Unfortunately, on DOS this fails, as config.log is still kept open
28342 # by configure, so config.status won't be able to write to it; its
28343 # output is simply discarded.  So we exec the FD to /dev/null,
28344 # effectively closing config.log, so it can be properly (re)opened and
28345 # appended to by config.status.  When coming back to configure, we
28346 # need to make the FD available again.
28347 if test "$no_create" != yes; then
28348   ac_cs_success=:
28349   ac_config_status_args=
28350   test "$silent" = yes &&
28351     ac_config_status_args="$ac_config_status_args --quiet"
28352   exec 5>/dev/null
28353   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28354   exec 5>>config.log
28355   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28356   # would make configure fail if this is the last instruction.
28357   $ac_cs_success || { (exit 1); exit 1; }
28358 fi
28359
28360
28361 echo "
28362
28363 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28364
28365         Compiler:        ${CC} (version: ${GCC_VERSION})
28366
28367         CFlags:          ${CFLAGS}
28368         CPPFlags:        ${CPPFLAGS}
28369         LDFlags:         ${LDFLAGS}
28370
28371         Context backend: ${with_context}
28372 "
28373
28374 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28375   echo "WARNING:"
28376   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28377   echo "WARNING: You may want to enable this by specifying:"
28378   echo "WARNING:"
28379   echo "WARNING: ./configure --enable-maintainer-mode  $ac_configure_args"
28380   echo "WARNING:"
28381 fi
28382 echo $build_id > stamp.configure
28383
28384 exit 0;