OSDN Git Service

* Makefile.tpl ($(srcdir)/configure): Update dependencies.
[pf3gnuchains/gcc-fork.git] / libmudflap / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libmudflap 1.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='libmudflap'
418 PACKAGE_TARNAME='libmudflap'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='libmudflap 1.0'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="mf-runtime.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 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 target_noncanonical 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO enable_shared enable_static MF_HAVE_STDINT_H MF_HAVE_UINTPTR_T LIBMUDFLAPTH_TRUE LIBMUDFLAPTH_FALSE build_libmudflapth toolexecdir toolexeclibdir ac_ct_NM SECTION_FLAGS LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911
912 #
913 # Report the --help message.
914 #
915 if test "$ac_init_help" = "long"; then
916   # Omit some internal or obsolete options to make the list less imposing.
917   # This message is too long to be a string in the A/UX 3.1 sh.
918   cat <<_ACEOF
919 \`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
920
921 Usage: $0 [OPTION]... [VAR=VALUE]...
922
923 To assign environment variables (e.g., CC, CFLAGS...), specify them as
924 VAR=VALUE.  See below for descriptions of some of the useful variables.
925
926 Defaults for the options are specified in brackets.
927
928 Configuration:
929   -h, --help              display this help and exit
930       --help=short        display options specific to this package
931       --help=recursive    display the short help of all the included packages
932   -V, --version           display version information and exit
933   -q, --quiet, --silent   do not print \`checking...' messages
934       --cache-file=FILE   cache test results in FILE [disabled]
935   -C, --config-cache      alias for \`--cache-file=config.cache'
936   -n, --no-create         do not create output files
937       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
938
939 _ACEOF
940
941   cat <<_ACEOF
942 Installation directories:
943   --prefix=PREFIX         install architecture-independent files in PREFIX
944                           [$ac_default_prefix]
945   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
946                           [PREFIX]
947
948 By default, \`make install' will install all the files in
949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951 for instance \`--prefix=\$HOME'.
952
953 For better control, use the options below.
954
955 Fine tuning of the installation directories:
956   --bindir=DIR           user executables [EPREFIX/bin]
957   --sbindir=DIR          system admin executables [EPREFIX/sbin]
958   --libexecdir=DIR       program executables [EPREFIX/libexec]
959   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
960   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
961   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
962   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
963   --libdir=DIR           object code libraries [EPREFIX/lib]
964   --includedir=DIR       C header files [PREFIX/include]
965   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
966   --infodir=DIR          info documentation [PREFIX/info]
967   --mandir=DIR           man documentation [PREFIX/man]
968 _ACEOF
969
970   cat <<\_ACEOF
971
972 Program names:
973   --program-prefix=PREFIX            prepend PREFIX to installed program names
974   --program-suffix=SUFFIX            append SUFFIX to installed program names
975   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
976
977 System types:
978   --build=BUILD     configure for building on BUILD [guessed]
979   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
980   --target=TARGET   configure for building compilers for TARGET [HOST]
981 _ACEOF
982 fi
983
984 if test -n "$ac_init_help"; then
985   case $ac_init_help in
986      short | recursive ) echo "Configuration of libmudflap 1.0:";;
987    esac
988   cat <<\_ACEOF
989
990 Optional Features:
991   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
992   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
993   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
994   --enable-maintainer-mode  enable make rules and dependencies not useful
995                           (and sometimes confusing) to the casual installer
996   --enable-multilib       build many library versions (default)
997   --disable-dependency-tracking  speeds up one-time build
998   --enable-dependency-tracking   do not reject slow dependency extractors
999   --enable-shared[=PKGS]
1000                           build shared libraries [default=yes]
1001   --enable-static[=PKGS]
1002                           build static libraries [default=yes]
1003   --enable-fast-install[=PKGS]
1004                           optimize for fast installation [default=yes]
1005   --disable-libtool-lock  avoid locking (might break parallel builds)
1006   --enable-tls            Use thread-local storage [default=yes]
1007
1008 Optional Packages:
1009   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1010   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1011   --with-pic              try to use only PIC/non-PIC objects [default=use
1012                           both]
1013   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1014
1015 Some influential environment variables:
1016   CC          C compiler command
1017   CFLAGS      C compiler flags
1018   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1019               nonstandard directory <lib dir>
1020   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021               headers in a nonstandard directory <include dir>
1022   CPP         C preprocessor
1023
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1026
1027 _ACEOF
1028 fi
1029
1030 if test "$ac_init_help" = "recursive"; then
1031   # If there are subdirs, report their specific --help.
1032   ac_popdir=`pwd`
1033   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034     test -d $ac_dir || continue
1035     ac_builddir=.
1036
1037 if test "$ac_dir" != .; then
1038   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039   # A "../" for each directory in $ac_dir_suffix.
1040   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041 else
1042   ac_dir_suffix= ac_top_builddir=
1043 fi
1044
1045 case $srcdir in
1046   .)  # No --srcdir option.  We are building in place.
1047     ac_srcdir=.
1048     if test -z "$ac_top_builddir"; then
1049        ac_top_srcdir=.
1050     else
1051        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052     fi ;;
1053   [\\/]* | ?:[\\/]* )  # Absolute path.
1054     ac_srcdir=$srcdir$ac_dir_suffix;
1055     ac_top_srcdir=$srcdir ;;
1056   *) # Relative path.
1057     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 esac
1060
1061 # Do not use `cd foo && pwd` to compute absolute paths, because
1062 # the directories may not exist.
1063 case `pwd` in
1064 .) ac_abs_builddir="$ac_dir";;
1065 *)
1066   case "$ac_dir" in
1067   .) ac_abs_builddir=`pwd`;;
1068   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070   esac;;
1071 esac
1072 case $ac_abs_builddir in
1073 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1074 *)
1075   case ${ac_top_builddir}. in
1076   .) ac_abs_top_builddir=$ac_abs_builddir;;
1077   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079   esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_srcdir=$ac_srcdir;;
1083 *)
1084   case $ac_srcdir in
1085   .) ac_abs_srcdir=$ac_abs_builddir;;
1086   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088   esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1092 *)
1093   case $ac_top_srcdir in
1094   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097   esac;;
1098 esac
1099
1100     cd $ac_dir
1101     # Check for guested configure; otherwise get Cygnus style configure.
1102     if test -f $ac_srcdir/configure.gnu; then
1103       echo
1104       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1105     elif test -f $ac_srcdir/configure; then
1106       echo
1107       $SHELL $ac_srcdir/configure  --help=recursive
1108     elif test -f $ac_srcdir/configure.ac ||
1109            test -f $ac_srcdir/configure.in; then
1110       echo
1111       $ac_configure --help
1112     else
1113       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114     fi
1115     cd $ac_popdir
1116   done
1117 fi
1118
1119 test -n "$ac_init_help" && exit 0
1120 if $ac_init_version; then
1121   cat <<\_ACEOF
1122 libmudflap configure 1.0
1123 generated by GNU Autoconf 2.59
1124
1125 Copyright (C) 2003 Free Software Foundation, Inc.
1126 This configure script is free software; the Free Software Foundation
1127 gives unlimited permission to copy, distribute and modify it.
1128 _ACEOF
1129   exit 0
1130 fi
1131 exec 5>config.log
1132 cat >&5 <<_ACEOF
1133 This file contains any messages produced by compilers while
1134 running configure, to aid debugging if configure makes a mistake.
1135
1136 It was created by libmudflap $as_me 1.0, which was
1137 generated by GNU Autoconf 2.59.  Invocation command line was
1138
1139   $ $0 $@
1140
1141 _ACEOF
1142 {
1143 cat <<_ASUNAME
1144 ## --------- ##
1145 ## Platform. ##
1146 ## --------- ##
1147
1148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1153
1154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1155 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1156
1157 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1158 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1160 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1161 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1162 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1163 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1164
1165 _ASUNAME
1166
1167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168 for as_dir in $PATH
1169 do
1170   IFS=$as_save_IFS
1171   test -z "$as_dir" && as_dir=.
1172   echo "PATH: $as_dir"
1173 done
1174
1175 } >&5
1176
1177 cat >&5 <<_ACEOF
1178
1179
1180 ## ----------- ##
1181 ## Core tests. ##
1182 ## ----------- ##
1183
1184 _ACEOF
1185
1186
1187 # Keep a trace of the command line.
1188 # Strip out --no-create and --no-recursion so they do not pile up.
1189 # Strip out --silent because we don't want to record it for future runs.
1190 # Also quote any args containing shell meta-characters.
1191 # Make two passes to allow for proper duplicate-argument suppression.
1192 ac_configure_args=
1193 ac_configure_args0=
1194 ac_configure_args1=
1195 ac_sep=
1196 ac_must_keep_next=false
1197 for ac_pass in 1 2
1198 do
1199   for ac_arg
1200   do
1201     case $ac_arg in
1202     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1203     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204     | -silent | --silent | --silen | --sile | --sil)
1205       continue ;;
1206     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208     esac
1209     case $ac_pass in
1210     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1211     2)
1212       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213       if test $ac_must_keep_next = true; then
1214         ac_must_keep_next=false # Got value, back to normal.
1215       else
1216         case $ac_arg in
1217           *=* | --config-cache | -C | -disable-* | --disable-* \
1218           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220           | -with-* | --with-* | -without-* | --without-* | --x)
1221             case "$ac_configure_args0 " in
1222               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1223             esac
1224             ;;
1225           -* ) ac_must_keep_next=true ;;
1226         esac
1227       fi
1228       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229       # Get rid of the leading space.
1230       ac_sep=" "
1231       ;;
1232     esac
1233   done
1234 done
1235 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1236 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1237
1238 # When interrupted or exit'd, cleanup temporary files, and complete
1239 # config.log.  We remove comments because anyway the quotes in there
1240 # would cause problems or look ugly.
1241 # WARNING: Be sure not to use single quotes in there, as some shells,
1242 # such as our DU 5.0 friend, will then `close' the trap.
1243 trap 'exit_status=$?
1244   # Save into config.log some information that might help in debugging.
1245   {
1246     echo
1247
1248     cat <<\_ASBOX
1249 ## ---------------- ##
1250 ## Cache variables. ##
1251 ## ---------------- ##
1252 _ASBOX
1253     echo
1254     # The following way of writing the cache mishandles newlines in values,
1255 {
1256   (set) 2>&1 |
1257     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1258     *ac_space=\ *)
1259       sed -n \
1260         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1262       ;;
1263     *)
1264       sed -n \
1265         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1266       ;;
1267     esac;
1268 }
1269     echo
1270
1271     cat <<\_ASBOX
1272 ## ----------------- ##
1273 ## Output variables. ##
1274 ## ----------------- ##
1275 _ASBOX
1276     echo
1277     for ac_var in $ac_subst_vars
1278     do
1279       eval ac_val=$`echo $ac_var`
1280       echo "$ac_var='"'"'$ac_val'"'"'"
1281     done | sort
1282     echo
1283
1284     if test -n "$ac_subst_files"; then
1285       cat <<\_ASBOX
1286 ## ------------- ##
1287 ## Output files. ##
1288 ## ------------- ##
1289 _ASBOX
1290       echo
1291       for ac_var in $ac_subst_files
1292       do
1293         eval ac_val=$`echo $ac_var`
1294         echo "$ac_var='"'"'$ac_val'"'"'"
1295       done | sort
1296       echo
1297     fi
1298
1299     if test -s confdefs.h; then
1300       cat <<\_ASBOX
1301 ## ----------- ##
1302 ## confdefs.h. ##
1303 ## ----------- ##
1304 _ASBOX
1305       echo
1306       sed "/^$/d" confdefs.h | sort
1307       echo
1308     fi
1309     test "$ac_signal" != 0 &&
1310       echo "$as_me: caught signal $ac_signal"
1311     echo "$as_me: exit $exit_status"
1312   } >&5
1313   rm -f core *.core &&
1314   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1315     exit $exit_status
1316      ' 0
1317 for ac_signal in 1 2 13 15; do
1318   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1319 done
1320 ac_signal=0
1321
1322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1323 rm -rf conftest* confdefs.h
1324 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1325 echo >confdefs.h
1326
1327 # Predefined preprocessor variables.
1328
1329 cat >>confdefs.h <<_ACEOF
1330 #define PACKAGE_NAME "$PACKAGE_NAME"
1331 _ACEOF
1332
1333
1334 cat >>confdefs.h <<_ACEOF
1335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1336 _ACEOF
1337
1338
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1341 _ACEOF
1342
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_STRING "$PACKAGE_STRING"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1351 _ACEOF
1352
1353
1354 # Let the site file select an alternate cache file if it wants to.
1355 # Prefer explicitly selected file to automatically selected ones.
1356 if test -z "$CONFIG_SITE"; then
1357   if test "x$prefix" != xNONE; then
1358     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1359   else
1360     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1361   fi
1362 fi
1363 for ac_site_file in $CONFIG_SITE; do
1364   if test -r "$ac_site_file"; then
1365     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1366 echo "$as_me: loading site script $ac_site_file" >&6;}
1367     sed 's/^/| /' "$ac_site_file" >&5
1368     . "$ac_site_file"
1369   fi
1370 done
1371
1372 if test -r "$cache_file"; then
1373   # Some versions of bash will fail to source /dev/null (special
1374   # files actually), so we avoid doing that.
1375   if test -f "$cache_file"; then
1376     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1377 echo "$as_me: loading cache $cache_file" >&6;}
1378     case $cache_file in
1379       [\\/]* | ?:[\\/]* ) . $cache_file;;
1380       *)                      . ./$cache_file;;
1381     esac
1382   fi
1383 else
1384   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1385 echo "$as_me: creating cache $cache_file" >&6;}
1386   >$cache_file
1387 fi
1388
1389 # Check that the precious variables saved in the cache have kept the same
1390 # value.
1391 ac_cache_corrupted=false
1392 for ac_var in `(set) 2>&1 |
1393                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395   eval ac_new_set=\$ac_env_${ac_var}_set
1396   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1397   eval ac_new_val="\$ac_env_${ac_var}_value"
1398   case $ac_old_set,$ac_new_set in
1399     set,)
1400       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1401 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1402       ac_cache_corrupted=: ;;
1403     ,set)
1404       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1406       ac_cache_corrupted=: ;;
1407     ,);;
1408     *)
1409       if test "x$ac_old_val" != "x$ac_new_val"; then
1410         # differences in whitespace do not lead to failure.
1411         ac_old_val_w=`echo x $ac_old_val`
1412         ac_new_val_w=`echo x $ac_new_val`
1413         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1414           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416           ac_cache_corrupted=:
1417         else
1418           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1419 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1420           eval $ac_var=\$ac_old_val
1421         fi
1422         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1423 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1424         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1425 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1426       fi;;
1427   esac
1428   # Pass precious variables to config.status.
1429   if test "$ac_new_set" = set; then
1430     case $ac_new_val in
1431     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1432       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1433     *) ac_arg=$ac_var=$ac_new_val ;;
1434     esac
1435     case " $ac_configure_args " in
1436       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1437       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1438     esac
1439   fi
1440 done
1441 if $ac_cache_corrupted; then
1442   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1443 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1444   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487 ac_aux_dir=
1488 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489   if test -f $ac_dir/install-sh; then
1490     ac_aux_dir=$ac_dir
1491     ac_install_sh="$ac_aux_dir/install-sh -c"
1492     break
1493   elif test -f $ac_dir/install.sh; then
1494     ac_aux_dir=$ac_dir
1495     ac_install_sh="$ac_aux_dir/install.sh -c"
1496     break
1497   elif test -f $ac_dir/shtool; then
1498     ac_aux_dir=$ac_dir
1499     ac_install_sh="$ac_aux_dir/shtool install -c"
1500     break
1501   fi
1502 done
1503 if test -z "$ac_aux_dir"; then
1504   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4 >/dev/null 2>&1 ||
1514   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516    { (exit 1); exit 1; }; }
1517
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   ac_cv_build_alias=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525   ac_cv_build_alias=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529    { (exit 1); exit 1; }; }
1530 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533    { (exit 1); exit 1; }; }
1534
1535 fi
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1538 build=$ac_cv_build
1539 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1542
1543
1544 echo "$as_me:$LINENO: checking host system type" >&5
1545 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546 if test "${ac_cv_host+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   ac_cv_host_alias=$host_alias
1550 test -z "$ac_cv_host_alias" &&
1551   ac_cv_host_alias=$ac_cv_build_alias
1552 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1553   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555    { (exit 1); exit 1; }; }
1556
1557 fi
1558 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559 echo "${ECHO_T}$ac_cv_host" >&6
1560 host=$ac_cv_host
1561 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564
1565
1566 echo "$as_me:$LINENO: checking target system type" >&5
1567 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1568 if test "${ac_cv_target+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   ac_cv_target_alias=$target_alias
1572 test "x$ac_cv_target_alias" = "x" &&
1573   ac_cv_target_alias=$ac_cv_host_alias
1574 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1575   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1576 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1577    { (exit 1); exit 1; }; }
1578
1579 fi
1580 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1581 echo "${ECHO_T}$ac_cv_target" >&6
1582 target=$ac_cv_target
1583 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
1587
1588 # The aliases save the names the user supplied, while $host etc.
1589 # will get canonicalized.
1590 test -n "$target_alias" &&
1591   test "$program_prefix$program_suffix$program_transform_name" = \
1592     NONENONEs,x,x, &&
1593   program_prefix=${target_alias}-
1594  case ${build_alias} in
1595   "") build_noncanonical=${build} ;;
1596   *) build_noncanonical=${build_alias} ;;
1597 esac
1598
1599  case ${host_alias} in
1600   "") host_noncanonical=${build_noncanonical} ;;
1601   *) host_noncanonical=${host_alias} ;;
1602 esac
1603
1604  case ${target_alias} in
1605   "") target_noncanonical=${host_noncanonical} ;;
1606   *) target_noncanonical=${target_alias} ;;
1607 esac
1608
1609
1610
1611
1612 am__api_version="1.9"
1613 # Find a good install program.  We prefer a C program (faster),
1614 # so one script is as good as another.  But avoid the broken or
1615 # incompatible versions:
1616 # SysV /etc/install, /usr/sbin/install
1617 # SunOS /usr/etc/install
1618 # IRIX /sbin/install
1619 # AIX /bin/install
1620 # AmigaOS /C/install, which installs bootblocks on floppy discs
1621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1624 # OS/2's system install, which has a completely different semantic
1625 # ./install, which can be erroneously created by make from ./install.sh.
1626 # Reject install programs that cannot install multiple files.
1627 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1628 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1629 if test -z "$INSTALL"; then
1630 if test "${ac_cv_path_install+set}" = set; then
1631   echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1635 do
1636   IFS=$as_save_IFS
1637   test -z "$as_dir" && as_dir=.
1638   # Account for people who put trailing slashes in PATH elements.
1639 case $as_dir/ in
1640   ./ | .// | /cC/* | \
1641   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1642   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1643   /usr/ucb/* ) ;;
1644   *)
1645     # OSF1 and SCO ODT 3.0 have their own names for install.
1646     # Don't use installbsd from OSF since it installs stuff as root
1647     # by default.
1648     for ac_prog in ginstall scoinst install; do
1649       for ac_exec_ext in '' $ac_executable_extensions; do
1650         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1651           if test $ac_prog = install &&
1652             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1653             # AIX install.  It has an incompatible calling convention.
1654             :
1655           elif test $ac_prog = install &&
1656             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1657             # program-specific install script used by HP pwplus--don't use.
1658             :
1659           else
1660             rm -rf conftest.one conftest.two conftest.dir
1661             echo one > conftest.one
1662             echo two > conftest.two
1663             mkdir conftest.dir
1664             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1665               test -s conftest.one && test -s conftest.two &&
1666               test -s conftest.dir/conftest.one &&
1667               test -s conftest.dir/conftest.two
1668             then
1669               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1670               break 3
1671             fi
1672           fi
1673         fi
1674       done
1675     done
1676     ;;
1677 esac
1678 done
1679
1680 rm -rf conftest.one conftest.two conftest.dir
1681
1682 fi
1683   if test "${ac_cv_path_install+set}" = set; then
1684     INSTALL=$ac_cv_path_install
1685   else
1686     # As a last resort, use the slow shell script.  Don't cache a
1687     # value for INSTALL within a source directory, because that will
1688     # break other packages using the cache if that directory is
1689     # removed, or if the value is a relative name.
1690     INSTALL=$ac_install_sh
1691   fi
1692 fi
1693 echo "$as_me:$LINENO: result: $INSTALL" >&5
1694 echo "${ECHO_T}$INSTALL" >&6
1695
1696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1697 # It thinks the first close brace ends the variable substitution.
1698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1699
1700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1701
1702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1703
1704 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1705 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1706 # Just in case
1707 sleep 1
1708 echo timestamp > conftest.file
1709 # Do `set' in a subshell so we don't clobber the current shell's
1710 # arguments.  Must try -L first in case configure is actually a
1711 # symlink; some systems play weird games with the mod time of symlinks
1712 # (eg FreeBSD returns the mod time of the symlink's containing
1713 # directory).
1714 if (
1715    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1716    if test "$*" = "X"; then
1717       # -L didn't work.
1718       set X `ls -t $srcdir/configure conftest.file`
1719    fi
1720    rm -f conftest.file
1721    if test "$*" != "X $srcdir/configure conftest.file" \
1722       && test "$*" != "X conftest.file $srcdir/configure"; then
1723
1724       # If neither matched, then we have a broken ls.  This can happen
1725       # if, for instance, CONFIG_SHELL is bash and it inherits a
1726       # broken ls alias from the environment.  This has actually
1727       # happened.  Such a system could not be considered "sane".
1728       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1729 alias in your environment" >&5
1730 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1731 alias in your environment" >&2;}
1732    { (exit 1); exit 1; }; }
1733    fi
1734
1735    test "$2" = conftest.file
1736    )
1737 then
1738    # Ok.
1739    :
1740 else
1741    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1742 Check your system clock" >&5
1743 echo "$as_me: error: newly created file is older than distributed files!
1744 Check your system clock" >&2;}
1745    { (exit 1); exit 1; }; }
1746 fi
1747 echo "$as_me:$LINENO: result: yes" >&5
1748 echo "${ECHO_T}yes" >&6
1749 test "$program_prefix" != NONE &&
1750   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1751 # Use a double $ so make ignores it.
1752 test "$program_suffix" != NONE &&
1753   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1754 # Double any \ or $.  echo might interpret backslashes.
1755 # By default was `s,x,x', remove it if useless.
1756 cat <<\_ACEOF >conftest.sed
1757 s/[\\$]/&&/g;s/;s,x,x,$//
1758 _ACEOF
1759 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1760 rm conftest.sed
1761
1762 # expand $ac_aux_dir to an absolute path
1763 am_aux_dir=`cd $ac_aux_dir && pwd`
1764
1765 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1766 # Use eval to expand $SHELL
1767 if eval "$MISSING --run true"; then
1768   am_missing_run="$MISSING --run "
1769 else
1770   am_missing_run=
1771   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1772 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1773 fi
1774
1775 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1776   # We used to keeping the `.' as first argument, in order to
1777   # allow $(mkdir_p) to be used without argument.  As in
1778   #   $(mkdir_p) $(somedir)
1779   # where $(somedir) is conditionally defined.  However this is wrong
1780   # for two reasons:
1781   #  1. if the package is installed by a user who cannot write `.'
1782   #     make install will fail,
1783   #  2. the above comment should most certainly read
1784   #     $(mkdir_p) $(DESTDIR)$(somedir)
1785   #     so it does not work when $(somedir) is undefined and
1786   #     $(DESTDIR) is not.
1787   #  To support the latter case, we have to write
1788   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1789   #  so the `.' trick is pointless.
1790   mkdir_p='mkdir -p --'
1791 else
1792   # On NextStep and OpenStep, the `mkdir' command does not
1793   # recognize any option.  It will interpret all options as
1794   # directories to create, and then abort because `.' already
1795   # exists.
1796   for d in ./-p ./--version;
1797   do
1798     test -d $d && rmdir $d
1799   done
1800   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1801   if test -f "$ac_aux_dir/mkinstalldirs"; then
1802     mkdir_p='$(mkinstalldirs)'
1803   else
1804     mkdir_p='$(install_sh) -d'
1805   fi
1806 fi
1807
1808 for ac_prog in gawk mawk nawk awk
1809 do
1810   # Extract the first word of "$ac_prog", so it can be a program name with args.
1811 set dummy $ac_prog; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_AWK+set}" = set; then
1815   echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817   if test -n "$AWK"; then
1818   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823   IFS=$as_save_IFS
1824   test -z "$as_dir" && as_dir=.
1825   for ac_exec_ext in '' $ac_executable_extensions; do
1826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827     ac_cv_prog_AWK="$ac_prog"
1828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829     break 2
1830   fi
1831 done
1832 done
1833
1834 fi
1835 fi
1836 AWK=$ac_cv_prog_AWK
1837 if test -n "$AWK"; then
1838   echo "$as_me:$LINENO: result: $AWK" >&5
1839 echo "${ECHO_T}$AWK" >&6
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845   test -n "$AWK" && break
1846 done
1847
1848 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1849 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1851 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   cat >conftest.make <<\_ACEOF
1855 all:
1856         @echo 'ac_maketemp="$(MAKE)"'
1857 _ACEOF
1858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1859 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1860 if test -n "$ac_maketemp"; then
1861   eval ac_cv_prog_make_${ac_make}_set=yes
1862 else
1863   eval ac_cv_prog_make_${ac_make}_set=no
1864 fi
1865 rm -f conftest.make
1866 fi
1867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1868   echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1870   SET_MAKE=
1871 else
1872   echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874   SET_MAKE="MAKE=${MAKE-make}"
1875 fi
1876
1877 rm -rf .tst 2>/dev/null
1878 mkdir .tst 2>/dev/null
1879 if test -d .tst; then
1880   am__leading_dot=.
1881 else
1882   am__leading_dot=_
1883 fi
1884 rmdir .tst 2>/dev/null
1885
1886 # test to see if srcdir already configured
1887 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1888    test -f $srcdir/config.status; then
1889   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1890 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1891    { (exit 1); exit 1; }; }
1892 fi
1893
1894 # test whether we have cygpath
1895 if test -z "$CYGPATH_W"; then
1896   if (cygpath --version) >/dev/null 2>/dev/null; then
1897     CYGPATH_W='cygpath -w'
1898   else
1899     CYGPATH_W=echo
1900   fi
1901 fi
1902
1903
1904 # Define the identity of the package.
1905  PACKAGE='libmudflap'
1906  VERSION='1.0'
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE "$PACKAGE"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define VERSION "$VERSION"
1916 _ACEOF
1917
1918 # Some tools Automake needs.
1919
1920 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1921
1922
1923 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1924
1925
1926 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1927
1928
1929 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1930
1931
1932 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1933
1934 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1935
1936 # Installed binaries are usually stripped using `strip' when the user
1937 # run `make install-strip'.  However `strip' might not be the right
1938 # tool to use in cross-compilation environments, therefore Automake
1939 # will honor the `STRIP' environment variable to overrule this program.
1940 if test "$cross_compiling" != no; then
1941   if test -n "$ac_tool_prefix"; then
1942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}strip; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_STRIP+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   if test -n "$STRIP"; then
1950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955   IFS=$as_save_IFS
1956   test -z "$as_dir" && as_dir=.
1957   for ac_exec_ext in '' $ac_executable_extensions; do
1958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961     break 2
1962   fi
1963 done
1964 done
1965
1966 fi
1967 fi
1968 STRIP=$ac_cv_prog_STRIP
1969 if test -n "$STRIP"; then
1970   echo "$as_me:$LINENO: result: $STRIP" >&5
1971 echo "${ECHO_T}$STRIP" >&6
1972 else
1973   echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1975 fi
1976
1977 fi
1978 if test -z "$ac_cv_prog_STRIP"; then
1979   ac_ct_STRIP=$STRIP
1980   # Extract the first word of "strip", so it can be a program name with args.
1981 set dummy strip; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$ac_ct_STRIP"; then
1988   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995   for ac_exec_ext in '' $ac_executable_extensions; do
1996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997     ac_cv_prog_ac_ct_STRIP="strip"
1998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999     break 2
2000   fi
2001 done
2002 done
2003
2004   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2005 fi
2006 fi
2007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2008 if test -n "$ac_ct_STRIP"; then
2009   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2010 echo "${ECHO_T}$ac_ct_STRIP" >&6
2011 else
2012   echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2014 fi
2015
2016   STRIP=$ac_ct_STRIP
2017 else
2018   STRIP="$ac_cv_prog_STRIP"
2019 fi
2020
2021 fi
2022 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2023
2024 # We need awk for the "check" target.  The system "awk" is bad on
2025 # some platforms.
2026 # Always define AMTAR for backward compatibility.
2027
2028 AMTAR=${AMTAR-"${am_missing_run}tar"}
2029
2030 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2031
2032
2033
2034
2035
2036
2037 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2038 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2039 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2040 if test "${enable_version_specific_runtime_libs+set}" = set; then
2041   enableval="$enable_version_specific_runtime_libs"
2042   case "$enableval" in
2043  yes) version_specific_libs=yes ;;
2044  no)  version_specific_libs=no ;;
2045  *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2046 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2047    { (exit 1); exit 1; }; };;
2048  esac
2049 else
2050   version_specific_libs=no
2051 fi;
2052 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2053 echo "${ECHO_T}$version_specific_libs" >&6
2054
2055 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2056 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2057     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2058 if test "${enable_maintainer_mode+set}" = set; then
2059   enableval="$enable_maintainer_mode"
2060   USE_MAINTAINER_MODE=$enableval
2061 else
2062   USE_MAINTAINER_MODE=no
2063 fi;
2064   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2065 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2066
2067
2068 if test $USE_MAINTAINER_MODE = yes; then
2069   MAINTAINER_MODE_TRUE=
2070   MAINTAINER_MODE_FALSE='#'
2071 else
2072   MAINTAINER_MODE_TRUE='#'
2073   MAINTAINER_MODE_FALSE=
2074 fi
2075
2076   MAINT=$MAINTAINER_MODE_TRUE
2077
2078
2079
2080
2081 # Default to --enable-multilib
2082 # Check whether --enable-multilib or --disable-multilib was given.
2083 if test "${enable_multilib+set}" = set; then
2084   enableval="$enable_multilib"
2085   case "$enableval" in
2086   yes) multilib=yes ;;
2087   no)  multilib=no ;;
2088   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2089 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2090    { (exit 1); exit 1; }; } ;;
2091  esac
2092 else
2093   multilib=yes
2094 fi;
2095
2096 # We may get other options which we leave undocumented:
2097 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2098 # See config-ml.in if you want the gory details.
2099
2100 if test "$srcdir" = "."; then
2101   if test "$with_target_subdir" != "."; then
2102     multi_basedir="$srcdir/$with_multisrctop../.."
2103   else
2104     multi_basedir="$srcdir/$with_multisrctop.."
2105   fi
2106 else
2107   multi_basedir="$srcdir/.."
2108 fi
2109
2110
2111 # Even if the default multilib is not a cross compilation,
2112 # it may be that some of the other multilibs are.
2113 if test $cross_compiling = no && test $multilib = yes \
2114    && test "x${with_multisubdir}" != x ; then
2115    cross_compiling=maybe
2116 fi
2117
2118           ac_config_commands="$ac_config_commands default-1"
2119
2120
2121 target_alias=${target_alias-$host_alias}
2122
2123
2124           ac_config_headers="$ac_config_headers config.h"
2125
2126
2127 ac_ext=c
2128 ac_cpp='$CPP $CPPFLAGS'
2129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132
2133 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2134 # We must force CC to /not/ be precious variables; otherwise
2135 # the wrong, non-multilib-adjusted value will be used in multilibs.
2136 # As a side effect, we have to subst CFLAGS ourselves.
2137
2138
2139
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if test -n "$ac_tool_prefix"; then
2146   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   if test -n "$CC"; then
2154   ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161   for ac_exec_ext in '' $ac_executable_extensions; do
2162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165     break 2
2166   fi
2167 done
2168 done
2169
2170 fi
2171 fi
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174   echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177   echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2179 fi
2180
2181 fi
2182 if test -z "$ac_cv_prog_CC"; then
2183   ac_ct_CC=$CC
2184   # Extract the first word of "gcc", so it can be a program name with args.
2185 set dummy gcc; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test -n "$ac_ct_CC"; then
2192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197   IFS=$as_save_IFS
2198   test -z "$as_dir" && as_dir=.
2199   for ac_exec_ext in '' $ac_executable_extensions; do
2200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201     ac_cv_prog_ac_ct_CC="gcc"
2202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203     break 2
2204   fi
2205 done
2206 done
2207
2208 fi
2209 fi
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6
2214 else
2215   echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2217 fi
2218
2219   CC=$ac_ct_CC
2220 else
2221   CC="$ac_cv_prog_CC"
2222 fi
2223
2224 if test -z "$CC"; then
2225   if test -n "$ac_tool_prefix"; then
2226   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2227 set dummy ${ac_tool_prefix}cc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$CC"; then
2234   ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   for ac_exec_ext in '' $ac_executable_extensions; do
2242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243     ac_cv_prog_CC="${ac_tool_prefix}cc"
2244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245     break 2
2246   fi
2247 done
2248 done
2249
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257   echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261 fi
2262 if test -z "$ac_cv_prog_CC"; then
2263   ac_ct_CC=$CC
2264   # Extract the first word of "cc", so it can be a program name with args.
2265 set dummy cc; ac_word=$2
2266 echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2269   echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271   if test -n "$ac_ct_CC"; then
2272   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2276 do
2277   IFS=$as_save_IFS
2278   test -z "$as_dir" && as_dir=.
2279   for ac_exec_ext in '' $ac_executable_extensions; do
2280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281     ac_cv_prog_ac_ct_CC="cc"
2282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283     break 2
2284   fi
2285 done
2286 done
2287
2288 fi
2289 fi
2290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2291 if test -n "$ac_ct_CC"; then
2292   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2293 echo "${ECHO_T}$ac_ct_CC" >&6
2294 else
2295   echo "$as_me:$LINENO: result: no" >&5
2296 echo "${ECHO_T}no" >&6
2297 fi
2298
2299   CC=$ac_ct_CC
2300 else
2301   CC="$ac_cv_prog_CC"
2302 fi
2303
2304 fi
2305 if test -z "$CC"; then
2306   # Extract the first word of "cc", so it can be a program name with args.
2307 set dummy cc; ac_word=$2
2308 echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311   echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313   if test -n "$CC"; then
2314   ac_cv_prog_CC="$CC" # Let the user override the test.
2315 else
2316   ac_prog_rejected=no
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322   for ac_exec_ext in '' $ac_executable_extensions; do
2323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2325        ac_prog_rejected=yes
2326        continue
2327      fi
2328     ac_cv_prog_CC="cc"
2329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330     break 2
2331   fi
2332 done
2333 done
2334
2335 if test $ac_prog_rejected = yes; then
2336   # We found a bogon in the path, so make sure we never use it.
2337   set dummy $ac_cv_prog_CC
2338   shift
2339   if test $# != 0; then
2340     # We chose a different compiler from the bogus one.
2341     # However, it has the same basename, so the bogon will be chosen
2342     # first if we set CC to just the basename; use the full file name.
2343     shift
2344     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2345   fi
2346 fi
2347 fi
2348 fi
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351   echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2353 else
2354   echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2356 fi
2357
2358 fi
2359 if test -z "$CC"; then
2360   if test -n "$ac_tool_prefix"; then
2361   for ac_prog in cl
2362   do
2363     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$CC"; then
2371   ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386
2387 fi
2388 fi
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391   echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6
2393 else
2394   echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2396 fi
2397
2398     test -n "$CC" && break
2399   done
2400 fi
2401 if test -z "$CC"; then
2402   ac_ct_CC=$CC
2403   for ac_prog in cl
2404 do
2405   # Extract the first word of "$ac_prog", so it can be a program name with args.
2406 set dummy $ac_prog; ac_word=$2
2407 echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   if test -n "$ac_ct_CC"; then
2413   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420   for ac_exec_ext in '' $ac_executable_extensions; do
2421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422     ac_cv_prog_ac_ct_CC="$ac_prog"
2423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424     break 2
2425   fi
2426 done
2427 done
2428
2429 fi
2430 fi
2431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2432 if test -n "$ac_ct_CC"; then
2433   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2434 echo "${ECHO_T}$ac_ct_CC" >&6
2435 else
2436   echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2438 fi
2439
2440   test -n "$ac_ct_CC" && break
2441 done
2442
2443   CC=$ac_ct_CC
2444 fi
2445
2446 fi
2447
2448
2449 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2450 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&2;}
2455    { (exit 1); exit 1; }; }; }
2456
2457 # Provide some information about the compiler.
2458 echo "$as_me:$LINENO:" \
2459      "checking for C compiler version" >&5
2460 ac_compiler=`set X $ac_compile; echo $2`
2461 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2462   (eval $ac_compiler --version </dev/null >&5) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }
2466 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2467   (eval $ac_compiler -v </dev/null >&5) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }
2471 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2472   (eval $ac_compiler -V </dev/null >&5) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }
2476
2477 cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h.  */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h.  */
2483
2484 int
2485 main ()
2486 {
2487
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 ac_clean_files_save=$ac_clean_files
2493 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2494 # Try to create an executable without -o first, disregard a.out.
2495 # It will help us diagnose broken compilers, and finding out an intuition
2496 # of exeext.
2497 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2498 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2499 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2500 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2501   (eval $ac_link_default) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; then
2505   # Find the output, starting from the most likely.  This scheme is
2506 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2507 # resort.
2508
2509 # Be careful to initialize this variable, since it used to be cached.
2510 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2511 ac_cv_exeext=
2512 # b.out is created by i960 compilers.
2513 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2514 do
2515   test -f "$ac_file" || continue
2516   case $ac_file in
2517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2518         ;;
2519     conftest.$ac_ext )
2520         # This is the source file.
2521         ;;
2522     [ab].out )
2523         # We found the default executable, but exeext='' is most
2524         # certainly right.
2525         break;;
2526     *.* )
2527         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528         # FIXME: I believe we export ac_cv_exeext for Libtool,
2529         # but it would be cool to find out if it's true.  Does anybody
2530         # maintain Libtool? --akim.
2531         export ac_cv_exeext
2532         break;;
2533     * )
2534         break;;
2535   esac
2536 done
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2542 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2544 See \`config.log' for more details." >&5
2545 echo "$as_me: error: C compiler cannot create executables
2546 See \`config.log' for more details." >&2;}
2547    { (exit 77); exit 77; }; }; }
2548 fi
2549
2550 ac_exeext=$ac_cv_exeext
2551 echo "$as_me:$LINENO: result: $ac_file" >&5
2552 echo "${ECHO_T}$ac_file" >&6
2553
2554 # Check the compiler produces executables we can run.  If not, either
2555 # the compiler is broken, or we cross compile.
2556 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2557 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2558 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2559 # If not cross compiling, check that we can run a simple program.
2560 if test "$cross_compiling" != yes; then
2561   if { ac_try='./$ac_file'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567     cross_compiling=no
2568   else
2569     if test "$cross_compiling" = maybe; then
2570         cross_compiling=yes
2571     else
2572         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2573 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot run C compiled programs.
2578 If you meant to cross compile, use \`--host'.
2579 See \`config.log' for more details." >&2;}
2580    { (exit 1); exit 1; }; }; }
2581     fi
2582   fi
2583 fi
2584 echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6
2586
2587 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2588 ac_clean_files=$ac_clean_files_save
2589 # Check the compiler produces executables we can run.  If not, either
2590 # the compiler is broken, or we cross compile.
2591 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2593 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2594 echo "${ECHO_T}$cross_compiling" >&6
2595
2596 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2597 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599   (eval $ac_link) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; then
2603   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2604 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2605 # work properly (i.e., refer to `conftest.exe'), while it won't with
2606 # `rm'.
2607 for ac_file in conftest.exe conftest conftest.*; do
2608   test -f "$ac_file" || continue
2609   case $ac_file in
2610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2611     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612           export ac_cv_exeext
2613           break;;
2614     * ) break;;
2615   esac
2616 done
2617 else
2618   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2619 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2623 See \`config.log' for more details." >&2;}
2624    { (exit 1); exit 1; }; }; }
2625 fi
2626
2627 rm -f conftest$ac_cv_exeext
2628 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2629 echo "${ECHO_T}$ac_cv_exeext" >&6
2630
2631 rm -f conftest.$ac_ext
2632 EXEEXT=$ac_cv_exeext
2633 ac_exeext=$EXEEXT
2634 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2635 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2636 if test "${ac_cv_objext+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645
2646 int
2647 main ()
2648 {
2649
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.o conftest.obj
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656   (eval $ac_compile) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; then
2660   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2661   case $ac_file in
2662     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2663     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664        break;;
2665   esac
2666 done
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2672 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&5
2675 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2676 See \`config.log' for more details." >&2;}
2677    { (exit 1); exit 1; }; }; }
2678 fi
2679
2680 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2681 fi
2682 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2683 echo "${ECHO_T}$ac_cv_objext" >&6
2684 OBJEXT=$ac_cv_objext
2685 ac_objext=$OBJEXT
2686 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2687 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2688 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2689   echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691   cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h.  */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h.  */
2697
2698 int
2699 main ()
2700 {
2701 #ifndef __GNUC__
2702        choke me
2703 #endif
2704
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711   (eval $ac_compile) 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag"
2719                          || test ! -s conftest.err'
2720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721   (eval $ac_try) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; } &&
2725          { ac_try='test -s conftest.$ac_objext'
2726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727   (eval $ac_try) 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; }; then
2731   ac_compiler_gnu=yes
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 ac_compiler_gnu=no
2737 fi
2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2740
2741 fi
2742 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2743 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2744 GCC=`test $ac_compiler_gnu = yes && echo yes`
2745 ac_test_CFLAGS=${CFLAGS+set}
2746 ac_save_CFLAGS=$CFLAGS
2747 CFLAGS="-g"
2748 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2749 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2750 if test "${ac_cv_prog_cc_g+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759
2760 int
2761 main ()
2762 {
2763
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770   (eval $ac_compile) 2>conftest.er1
2771   ac_status=$?
2772   grep -v '^ *+' conftest.er1 >conftest.err
2773   rm -f conftest.er1
2774   cat conftest.err >&5
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); } &&
2777          { ac_try='test -z "$ac_c_werror_flag"
2778                          || test ! -s conftest.err'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; } &&
2784          { ac_try='test -s conftest.$ac_objext'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; }; then
2790   ac_cv_prog_cc_g=yes
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 ac_cv_prog_cc_g=no
2796 fi
2797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2798 fi
2799 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2800 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2801 if test "$ac_test_CFLAGS" = set; then
2802   CFLAGS=$ac_save_CFLAGS
2803 elif test $ac_cv_prog_cc_g = yes; then
2804   if test "$GCC" = yes; then
2805     CFLAGS="-g -O2"
2806   else
2807     CFLAGS="-g"
2808   fi
2809 else
2810   if test "$GCC" = yes; then
2811     CFLAGS="-O2"
2812   else
2813     CFLAGS=
2814   fi
2815 fi
2816 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2817 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2818 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   ac_cv_prog_cc_stdc=no
2822 ac_save_CC=$CC
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829 #include <stdarg.h>
2830 #include <stdio.h>
2831 #include <sys/types.h>
2832 #include <sys/stat.h>
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2837      char **p;
2838      int i;
2839 {
2840   return p[i];
2841 }
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2843 {
2844   char *s;
2845   va_list v;
2846   va_start (v,p);
2847   s = g (p, va_arg (v,int));
2848   va_end (v);
2849   return s;
2850 }
2851
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2853    function prototypes and stuff, but not '\xHH' hex character constants.
2854    These don't provoke an error unfortunately, instead are silently treated
2855    as 'x'.  The following induces an error, until -std1 is added to get
2856    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2857    array size at least.  It's necessary to write '\x00'==0 to get something
2858    that's true only with -std1.  */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2860
2861 int test (int i, double x);
2862 struct s1 {int (*f) (int a);};
2863 struct s2 {int (*f) (double a);};
2864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2865 int argc;
2866 char **argv;
2867 int
2868 main ()
2869 {
2870 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2871   ;
2872   return 0;
2873 }
2874 _ACEOF
2875 # Don't try gcc -ansi; that turns off useful extensions and
2876 # breaks some systems' header files.
2877 # AIX                   -qlanglvl=ansi
2878 # Ultrix and OSF/1      -std1
2879 # HP-UX 10.20 and later -Ae
2880 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2881 # SVR4                  -Xc -D__EXTENSIONS__
2882 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2883 do
2884   CC="$ac_save_CC $ac_arg"
2885   rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887   (eval $ac_compile) 2>conftest.er1
2888   ac_status=$?
2889   grep -v '^ *+' conftest.er1 >conftest.err
2890   rm -f conftest.er1
2891   cat conftest.err >&5
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); } &&
2894          { ac_try='test -z "$ac_c_werror_flag"
2895                          || test ! -s conftest.err'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; } &&
2901          { ac_try='test -s conftest.$ac_objext'
2902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903   (eval $ac_try) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }; }; then
2907   ac_cv_prog_cc_stdc=$ac_arg
2908 break
2909 else
2910   echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 fi
2914 rm -f conftest.err conftest.$ac_objext
2915 done
2916 rm -f conftest.$ac_ext conftest.$ac_objext
2917 CC=$ac_save_CC
2918
2919 fi
2920
2921 case "x$ac_cv_prog_cc_stdc" in
2922   x|xno)
2923     echo "$as_me:$LINENO: result: none needed" >&5
2924 echo "${ECHO_T}none needed" >&6 ;;
2925   *)
2926     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2927 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2928     CC="$CC $ac_cv_prog_cc_stdc" ;;
2929 esac
2930
2931 # Some people use a C++ compiler to compile C.  Since we use `exit',
2932 # in C++ we need to declare it.  In case someone uses the same compiler
2933 # for both compiling C and C++ we need to have the C++ compiler decide
2934 # the declaration of exit, since it's the most demanding environment.
2935 cat >conftest.$ac_ext <<_ACEOF
2936 #ifndef __cplusplus
2937   choke me
2938 #endif
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942   (eval $ac_compile) 2>conftest.er1
2943   ac_status=$?
2944   grep -v '^ *+' conftest.er1 >conftest.err
2945   rm -f conftest.er1
2946   cat conftest.err >&5
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -z "$ac_c_werror_flag"
2950                          || 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   for ac_declaration in \
2963    '' \
2964    'extern "C" void std::exit (int) throw (); using std::exit;' \
2965    'extern "C" void std::exit (int); using std::exit;' \
2966    'extern "C" void exit (int) throw ();' \
2967    'extern "C" void exit (int);' \
2968    'void exit (int);'
2969 do
2970   cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976 $ac_declaration
2977 #include <stdlib.h>
2978 int
2979 main ()
2980 {
2981 exit (42);
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2988   (eval $ac_compile) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } &&
2995          { ac_try='test -z "$ac_c_werror_flag"
2996                          || test ! -s conftest.err'
2997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998   (eval $ac_try) 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; } &&
3002          { ac_try='test -s conftest.$ac_objext'
3003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004   (eval $ac_try) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; }; then
3008   :
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013 continue
3014 fi
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016   cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h.  */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h.  */
3022 $ac_declaration
3023 int
3024 main ()
3025 {
3026 exit (42);
3027   ;
3028   return 0;
3029 }
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033   (eval $ac_compile) 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } &&
3040          { ac_try='test -z "$ac_c_werror_flag"
3041                          || test ! -s conftest.err'
3042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043   (eval $ac_try) 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; } &&
3047          { ac_try='test -s conftest.$ac_objext'
3048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049   (eval $ac_try) 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; }; then
3053   break
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058 fi
3059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060 done
3061 rm -f conftest*
3062 if test -n "$ac_declaration"; then
3063   echo '#ifdef __cplusplus' >>confdefs.h
3064   echo $ac_declaration      >>confdefs.h
3065   echo '#endif'             >>confdefs.h
3066 fi
3067
3068 else
3069   echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 fi
3073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3074 ac_ext=c
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079 DEPDIR="${am__leading_dot}deps"
3080
3081           ac_config_commands="$ac_config_commands depfiles"
3082
3083
3084 am_make=${MAKE-make}
3085 cat > confinc << 'END'
3086 am__doit:
3087         @echo done
3088 .PHONY: am__doit
3089 END
3090 # If we don't find an include directive, just comment out the code.
3091 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3092 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3093 am__include="#"
3094 am__quote=
3095 _am_result=none
3096 # First try GNU make style include.
3097 echo "include confinc" > confmf
3098 # We grep out `Entering directory' and `Leaving directory'
3099 # messages which can occur if `w' ends up in MAKEFLAGS.
3100 # In particular we don't look at `^make:' because GNU make might
3101 # be invoked under some other name (usually "gmake"), in which
3102 # case it prints its new name instead of `make'.
3103 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3104    am__include=include
3105    am__quote=
3106    _am_result=GNU
3107 fi
3108 # Now try BSD make style include.
3109 if test "$am__include" = "#"; then
3110    echo '.include "confinc"' > confmf
3111    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3112       am__include=.include
3113       am__quote="\""
3114       _am_result=BSD
3115    fi
3116 fi
3117
3118
3119 echo "$as_me:$LINENO: result: $_am_result" >&5
3120 echo "${ECHO_T}$_am_result" >&6
3121 rm -f confinc confmf
3122
3123 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3124 if test "${enable_dependency_tracking+set}" = set; then
3125   enableval="$enable_dependency_tracking"
3126
3127 fi;
3128 if test "x$enable_dependency_tracking" != xno; then
3129   am_depcomp="$ac_aux_dir/depcomp"
3130   AMDEPBACKSLASH='\'
3131 fi
3132
3133
3134 if test "x$enable_dependency_tracking" != xno; then
3135   AMDEP_TRUE=
3136   AMDEP_FALSE='#'
3137 else
3138   AMDEP_TRUE='#'
3139   AMDEP_FALSE=
3140 fi
3141
3142
3143
3144
3145 depcc="$CC"   am_compiler_list=
3146
3147 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3148 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3149 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3153   # We make a subdir and do the tests there.  Otherwise we can end up
3154   # making bogus files that we don't know about and never remove.  For
3155   # instance it was reported that on HP-UX the gcc test will end up
3156   # making a dummy file named `D' -- because `-MD' means `put the output
3157   # in D'.
3158   mkdir conftest.dir
3159   # Copy depcomp to subdir because otherwise we won't find it if we're
3160   # using a relative directory.
3161   cp "$am_depcomp" conftest.dir
3162   cd conftest.dir
3163   # We will build objects and dependencies in a subdirectory because
3164   # it helps to detect inapplicable dependency modes.  For instance
3165   # both Tru64's cc and ICC support -MD to output dependencies as a
3166   # side effect of compilation, but ICC will put the dependencies in
3167   # the current directory while Tru64 will put them in the object
3168   # directory.
3169   mkdir sub
3170
3171   am_cv_CC_dependencies_compiler_type=none
3172   if test "$am_compiler_list" = ""; then
3173      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3174   fi
3175   for depmode in $am_compiler_list; do
3176     # Setup a source with many dependencies, because some compilers
3177     # like to wrap large dependency lists on column 80 (with \), and
3178     # we should not choose a depcomp mode which is confused by this.
3179     #
3180     # We need to recreate these files for each test, as the compiler may
3181     # overwrite some of them when testing with obscure command lines.
3182     # This happens at least with the AIX C compiler.
3183     : > sub/conftest.c
3184     for i in 1 2 3 4 5 6; do
3185       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3186       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3187       # Solaris 8's {/usr,}/bin/sh.
3188       touch sub/conftst$i.h
3189     done
3190     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3191
3192     case $depmode in
3193     nosideeffect)
3194       # after this tag, mechanisms are not by side-effect, so they'll
3195       # only be used when explicitly requested
3196       if test "x$enable_dependency_tracking" = xyes; then
3197         continue
3198       else
3199         break
3200       fi
3201       ;;
3202     none) break ;;
3203     esac
3204     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3205     # mode.  It turns out that the SunPro C++ compiler does not properly
3206     # handle `-M -o', and we need to detect this.
3207     if depmode=$depmode \
3208        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3209        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3210        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3211          >/dev/null 2>conftest.err &&
3212        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3213        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3214        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3215       # icc doesn't choke on unknown options, it will just issue warnings
3216       # or remarks (even with -Werror).  So we grep stderr for any message
3217       # that says an option was ignored or not supported.
3218       # When given -MP, icc 7.0 and 7.1 complain thusly:
3219       #   icc: Command line warning: ignoring option '-M'; no argument required
3220       # The diagnosis changed in icc 8.0:
3221       #   icc: Command line remark: option '-MP' not supported
3222       if (grep 'ignoring option' conftest.err ||
3223           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3224         am_cv_CC_dependencies_compiler_type=$depmode
3225         break
3226       fi
3227     fi
3228   done
3229
3230   cd ..
3231   rm -rf conftest.dir
3232 else
3233   am_cv_CC_dependencies_compiler_type=none
3234 fi
3235
3236 fi
3237 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3238 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3239 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3240
3241
3242
3243 if
3244   test "x$enable_dependency_tracking" != xno \
3245   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3246   am__fastdepCC_TRUE=
3247   am__fastdepCC_FALSE='#'
3248 else
3249   am__fastdepCC_TRUE='#'
3250   am__fastdepCC_FALSE=
3251 fi
3252
3253
3254
3255
3256
3257
3258 if test "x$GCC" != "xyes"; then
3259   { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3260 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3261    { (exit 1); exit 1; }; }
3262 fi
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3269 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3270 # On Suns, sometimes $CPP names a directory.
3271 if test -n "$CPP" && test -d "$CPP"; then
3272   CPP=
3273 fi
3274 if test -z "$CPP"; then
3275   if test "${ac_cv_prog_CPP+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278       # Double quotes because CPP needs to be expanded
3279     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3280     do
3281       ac_preproc_ok=false
3282 for ac_c_preproc_warn_flag in '' yes
3283 do
3284   # Use a header file that comes with gcc, so configuring glibc
3285   # with a fresh cross-compiler works.
3286   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3287   # <limits.h> exists even on freestanding compilers.
3288   # On the NeXT, cc -E runs the code through the compiler's parser,
3289   # not just through cpp. "Syntax error" is here to catch this case.
3290   cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h.  */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h.  */
3296 #ifdef __STDC__
3297 # include <limits.h>
3298 #else
3299 # include <assert.h>
3300 #endif
3301                      Syntax error
3302 _ACEOF
3303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3305   ac_status=$?
3306   grep -v '^ *+' conftest.er1 >conftest.err
3307   rm -f conftest.er1
3308   cat conftest.err >&5
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } >/dev/null; then
3311   if test -s conftest.err; then
3312     ac_cpp_err=$ac_c_preproc_warn_flag
3313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3314   else
3315     ac_cpp_err=
3316   fi
3317 else
3318   ac_cpp_err=yes
3319 fi
3320 if test -z "$ac_cpp_err"; then
3321   :
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326   # Broken: fails on valid input.
3327 continue
3328 fi
3329 rm -f conftest.err conftest.$ac_ext
3330
3331   # OK, works on sane cases.  Now check whether non-existent headers
3332   # can be detected and how.
3333   cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339 #include <ac_nonexistent.h>
3340 _ACEOF
3341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } >/dev/null; then
3349   if test -s conftest.err; then
3350     ac_cpp_err=$ac_c_preproc_warn_flag
3351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3352   else
3353     ac_cpp_err=
3354   fi
3355 else
3356   ac_cpp_err=yes
3357 fi
3358 if test -z "$ac_cpp_err"; then
3359   # Broken: success on invalid input.
3360 continue
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365   # Passes both tests.
3366 ac_preproc_ok=:
3367 break
3368 fi
3369 rm -f conftest.err conftest.$ac_ext
3370
3371 done
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3375   break
3376 fi
3377
3378     done
3379     ac_cv_prog_CPP=$CPP
3380
3381 fi
3382   CPP=$ac_cv_prog_CPP
3383 else
3384   ac_cv_prog_CPP=$CPP
3385 fi
3386 echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6
3388 ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3390 do
3391   # Use a header file that comes with gcc, so configuring glibc
3392   # with a fresh cross-compiler works.
3393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394   # <limits.h> exists even on freestanding compilers.
3395   # On the NeXT, cc -E runs the code through the compiler's parser,
3396   # not just through cpp. "Syntax error" is here to catch this case.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #ifdef __STDC__
3404 # include <limits.h>
3405 #else
3406 # include <assert.h>
3407 #endif
3408                      Syntax error
3409 _ACEOF
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3412   ac_status=$?
3413   grep -v '^ *+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } >/dev/null; then
3418   if test -s conftest.err; then
3419     ac_cpp_err=$ac_c_preproc_warn_flag
3420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421   else
3422     ac_cpp_err=
3423   fi
3424 else
3425   ac_cpp_err=yes
3426 fi
3427 if test -z "$ac_cpp_err"; then
3428   :
3429 else
3430   echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433   # Broken: fails on valid input.
3434 continue
3435 fi
3436 rm -f conftest.err conftest.$ac_ext
3437
3438   # OK, works on sane cases.  Now check whether non-existent headers
3439   # can be detected and how.
3440   cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446 #include <ac_nonexistent.h>
3447 _ACEOF
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } >/dev/null; then
3456   if test -s conftest.err; then
3457     ac_cpp_err=$ac_c_preproc_warn_flag
3458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459   else
3460     ac_cpp_err=
3461   fi
3462 else
3463   ac_cpp_err=yes
3464 fi
3465 if test -z "$ac_cpp_err"; then
3466   # Broken: success on invalid input.
3467 continue
3468 else
3469   echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472   # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3475 fi
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   :
3483 else
3484   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3485 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490    { (exit 1); exit 1; }; }; }
3491 fi
3492
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
3499
3500 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3501 # symbol interposition.  We disable shared libraries for these.
3502 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3503 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3504
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511
3512 #define _GNU_SOURCE
3513 #include <dlfcn.h>
3514
3515 int
3516 main ()
3517 {
3518 void *foo = dlsym (RTLD_NEXT, "exit");
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525   (eval $ac_compile) 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } &&
3532          { ac_try='test -z "$ac_c_werror_flag"
3533                          || test ! -s conftest.err'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; } &&
3539          { ac_try='test -s conftest.$ac_objext'
3540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541   (eval $ac_try) 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; }; then
3545   echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6
3547 else
3548   echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3553 enable_shared=no
3554 fi
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556
3557
3558 echo "$as_me:$LINENO: checking for egrep" >&5
3559 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3560 if test "${ac_cv_prog_egrep+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3564     then ac_cv_prog_egrep='grep -E'
3565     else ac_cv_prog_egrep='egrep'
3566     fi
3567 fi
3568 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3569 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3570  EGREP=$ac_cv_prog_egrep
3571
3572
3573 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3574 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3575 if test "${ac_cv_header_stdc+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584 #include <stdlib.h>
3585 #include <stdarg.h>
3586 #include <string.h>
3587 #include <float.h>
3588
3589 int
3590 main ()
3591 {
3592
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599   (eval $ac_compile) 2>conftest.er1
3600   ac_status=$?
3601   grep -v '^ *+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } &&
3606          { ac_try='test -z "$ac_c_werror_flag"
3607                          || test ! -s conftest.err'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; } &&
3613          { ac_try='test -s conftest.$ac_objext'
3614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615   (eval $ac_try) 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }; }; then
3619   ac_cv_header_stdc=yes
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 ac_cv_header_stdc=no
3625 fi
3626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627
3628 if test $ac_cv_header_stdc = yes; then
3629   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3630   cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 #include <string.h>
3637
3638 _ACEOF
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640   $EGREP "memchr" >/dev/null 2>&1; then
3641   :
3642 else
3643   ac_cv_header_stdc=no
3644 fi
3645 rm -f conftest*
3646
3647 fi
3648
3649 if test $ac_cv_header_stdc = yes; then
3650   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3651   cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657 #include <stdlib.h>
3658
3659 _ACEOF
3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661   $EGREP "free" >/dev/null 2>&1; then
3662   :
3663 else
3664   ac_cv_header_stdc=no
3665 fi
3666 rm -f conftest*
3667
3668 fi
3669
3670 if test $ac_cv_header_stdc = yes; then
3671   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3672   if test "$cross_compiling" = yes; then
3673   :
3674 else
3675   cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h.  */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h.  */
3681 #include <ctype.h>
3682 #if ((' ' & 0x0FF) == 0x020)
3683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3685 #else
3686 # define ISLOWER(c) \
3687                    (('a' <= (c) && (c) <= 'i') \
3688                      || ('j' <= (c) && (c) <= 'r') \
3689                      || ('s' <= (c) && (c) <= 'z'))
3690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3691 #endif
3692
3693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3694 int
3695 main ()
3696 {
3697   int i;
3698   for (i = 0; i < 256; i++)
3699     if (XOR (islower (i), ISLOWER (i))
3700         || toupper (i) != TOUPPER (i))
3701       exit(2);
3702   exit (0);
3703 }
3704 _ACEOF
3705 rm -f conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707   (eval $ac_link) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712   (eval $ac_try) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; }; then
3716   :
3717 else
3718   echo "$as_me: program exited with status $ac_status" >&5
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 ( exit $ac_status )
3723 ac_cv_header_stdc=no
3724 fi
3725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3726 fi
3727 fi
3728 fi
3729 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3730 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3731 if test $ac_cv_header_stdc = yes; then
3732
3733 cat >>confdefs.h <<\_ACEOF
3734 #define STDC_HEADERS 1
3735 _ACEOF
3736
3737 fi
3738
3739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3750                   inttypes.h stdint.h unistd.h
3751 do
3752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3753 echo "$as_me:$LINENO: checking for $ac_header" >&5
3754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 $ac_includes_default
3765
3766 #include <$ac_header>
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770   (eval $ac_compile) 2>conftest.er1
3771   ac_status=$?
3772   grep -v '^ *+' conftest.er1 >conftest.err
3773   rm -f conftest.er1
3774   cat conftest.err >&5
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } &&
3777          { ac_try='test -z "$ac_c_werror_flag"
3778                          || test ! -s conftest.err'
3779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780   (eval $ac_try) 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); }; } &&
3784          { ac_try='test -s conftest.$ac_objext'
3785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786   (eval $ac_try) 2>&5
3787   ac_status=$?
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); }; }; then
3790   eval "$as_ac_Header=yes"
3791 else
3792   echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 eval "$as_ac_Header=no"
3796 fi
3797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 fi
3799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3802   cat >>confdefs.h <<_ACEOF
3803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3804 _ACEOF
3805
3806 fi
3807
3808 done
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
3831   netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
3832   sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
3833 do
3834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3836   echo "$as_me:$LINENO: checking for $ac_header" >&5
3837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 fi
3841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3843 else
3844   # Is the header compilable?
3845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h.  */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h.  */
3853 $ac_includes_default
3854 #include <$ac_header>
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858   (eval $ac_compile) 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } &&
3865          { ac_try='test -z "$ac_c_werror_flag"
3866                          || test ! -s conftest.err'
3867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868   (eval $ac_try) 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); }; } &&
3872          { ac_try='test -s conftest.$ac_objext'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   ac_header_compiler=yes
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 ac_header_compiler=no
3884 fi
3885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3887 echo "${ECHO_T}$ac_header_compiler" >&6
3888
3889 # Is the header present?
3890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898 #include <$ac_header>
3899 _ACEOF
3900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3902   ac_status=$?
3903   grep -v '^ *+' conftest.er1 >conftest.err
3904   rm -f conftest.er1
3905   cat conftest.err >&5
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } >/dev/null; then
3908   if test -s conftest.err; then
3909     ac_cpp_err=$ac_c_preproc_warn_flag
3910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3911   else
3912     ac_cpp_err=
3913   fi
3914 else
3915   ac_cpp_err=yes
3916 fi
3917 if test -z "$ac_cpp_err"; then
3918   ac_header_preproc=yes
3919 else
3920   echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923   ac_header_preproc=no
3924 fi
3925 rm -f conftest.err conftest.$ac_ext
3926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3927 echo "${ECHO_T}$ac_header_preproc" >&6
3928
3929 # So?  What about this header?
3930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3931   yes:no: )
3932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3936     ac_header_preproc=yes
3937     ;;
3938   no:yes:* )
3939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3951     (
3952       cat <<\_ASBOX
3953 ## ------------------------------------- ##
3954 ## Report this to the libmudflap lists.  ##
3955 ## ------------------------------------- ##
3956 _ASBOX
3957     ) |
3958       sed "s/^/$as_me: WARNING:     /" >&2
3959     ;;
3960 esac
3961 echo "$as_me:$LINENO: checking for $ac_header" >&5
3962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   eval "$as_ac_Header=\$ac_header_preproc"
3967 fi
3968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3970
3971 fi
3972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3973   cat >>confdefs.h <<_ACEOF
3974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975 _ACEOF
3976
3977 fi
3978
3979 done
3980
3981
3982
3983
3984
3985
3986 for ac_func in backtrace backtrace_symbols gettimeofday signal
3987 do
3988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3989 echo "$as_me:$LINENO: checking for $ac_func" >&5
3990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3991 if eval "test \"\${$as_ac_var+set}\" = set"; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4002 #define $ac_func innocuous_$ac_func
4003
4004 /* System header to define __stub macros and hopefully few prototypes,
4005     which can conflict with char $ac_func (); below.
4006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007     <limits.h> exists even on freestanding compilers.  */
4008
4009 #ifdef __STDC__
4010 # include <limits.h>
4011 #else
4012 # include <assert.h>
4013 #endif
4014
4015 #undef $ac_func
4016
4017 /* Override any gcc2 internal prototype to avoid an error.  */
4018 #ifdef __cplusplus
4019 extern "C"
4020 {
4021 #endif
4022 /* We use char because int might match the return type of a gcc2
4023    builtin and then its argument prototype would still apply.  */
4024 char $ac_func ();
4025 /* The GNU C library defines this for functions which it implements
4026     to always fail with ENOSYS.  Some functions are actually named
4027     something starting with __ and the normal name is an alias.  */
4028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4029 choke me
4030 #else
4031 char (*f) () = $ac_func;
4032 #endif
4033 #ifdef __cplusplus
4034 }
4035 #endif
4036
4037 int
4038 main ()
4039 {
4040 return f != $ac_func;
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest.$ac_objext conftest$ac_exeext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4047   (eval $ac_link) 2>conftest.er1
4048   ac_status=$?
4049   grep -v '^ *+' conftest.er1 >conftest.err
4050   rm -f conftest.er1
4051   cat conftest.err >&5
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } &&
4054          { ac_try='test -z "$ac_c_werror_flag"
4055                          || test ! -s conftest.err'
4056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057   (eval $ac_try) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; } &&
4061          { ac_try='test -s conftest$ac_exeext'
4062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063   (eval $ac_try) 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }; }; then
4067   eval "$as_ac_var=yes"
4068 else
4069   echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 eval "$as_ac_var=no"
4073 fi
4074 rm -f conftest.err conftest.$ac_objext \
4075       conftest$ac_exeext conftest.$ac_ext
4076 fi
4077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4079 if test `eval echo '${'$as_ac_var'}'` = yes; then
4080   cat >>confdefs.h <<_ACEOF
4081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4082 _ACEOF
4083
4084 fi
4085 done
4086
4087
4088
4089
4090
4091
4092 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
4093 do
4094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4095 echo "$as_me:$LINENO: checking for $ac_func" >&5
4096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4097 if eval "test \"\${$as_ac_var+set}\" = set"; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h.  */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h.  */
4106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4108 #define $ac_func innocuous_$ac_func
4109
4110 /* System header to define __stub macros and hopefully few prototypes,
4111     which can conflict with char $ac_func (); below.
4112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113     <limits.h> exists even on freestanding compilers.  */
4114
4115 #ifdef __STDC__
4116 # include <limits.h>
4117 #else
4118 # include <assert.h>
4119 #endif
4120
4121 #undef $ac_func
4122
4123 /* Override any gcc2 internal prototype to avoid an error.  */
4124 #ifdef __cplusplus
4125 extern "C"
4126 {
4127 #endif
4128 /* We use char because int might match the return type of a gcc2
4129    builtin and then its argument prototype would still apply.  */
4130 char $ac_func ();
4131 /* The GNU C library defines this for functions which it implements
4132     to always fail with ENOSYS.  Some functions are actually named
4133     something starting with __ and the normal name is an alias.  */
4134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4135 choke me
4136 #else
4137 char (*f) () = $ac_func;
4138 #endif
4139 #ifdef __cplusplus
4140 }
4141 #endif
4142
4143 int
4144 main ()
4145 {
4146 return f != $ac_func;
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext conftest$ac_exeext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153   (eval $ac_link) 2>conftest.er1
4154   ac_status=$?
4155   grep -v '^ *+' conftest.er1 >conftest.err
4156   rm -f conftest.er1
4157   cat conftest.err >&5
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); } &&
4160          { ac_try='test -z "$ac_c_werror_flag"
4161                          || test ! -s conftest.err'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; } &&
4167          { ac_try='test -s conftest$ac_exeext'
4168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169   (eval $ac_try) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; }; then
4173   eval "$as_ac_var=yes"
4174 else
4175   echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4177
4178 eval "$as_ac_var=no"
4179 fi
4180 rm -f conftest.err conftest.$ac_objext \
4181       conftest$ac_exeext conftest.$ac_ext
4182 fi
4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4185 if test `eval echo '${'$as_ac_var'}'` = yes; then
4186   cat >>confdefs.h <<_ACEOF
4187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4188 _ACEOF
4189
4190 fi
4191 done
4192
4193
4194
4195
4196
4197 for ac_func in setbuf setbuffer setlinebuf setvbuf
4198 do
4199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4200 echo "$as_me:$LINENO: checking for $ac_func" >&5
4201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4202 if eval "test \"\${$as_ac_var+set}\" = set"; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4212    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4213 #define $ac_func innocuous_$ac_func
4214
4215 /* System header to define __stub macros and hopefully few prototypes,
4216     which can conflict with char $ac_func (); below.
4217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218     <limits.h> exists even on freestanding compilers.  */
4219
4220 #ifdef __STDC__
4221 # include <limits.h>
4222 #else
4223 # include <assert.h>
4224 #endif
4225
4226 #undef $ac_func
4227
4228 /* Override any gcc2 internal prototype to avoid an error.  */
4229 #ifdef __cplusplus
4230 extern "C"
4231 {
4232 #endif
4233 /* We use char because int might match the return type of a gcc2
4234    builtin and then its argument prototype would still apply.  */
4235 char $ac_func ();
4236 /* The GNU C library defines this for functions which it implements
4237     to always fail with ENOSYS.  Some functions are actually named
4238     something starting with __ and the normal name is an alias.  */
4239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4240 choke me
4241 #else
4242 char (*f) () = $ac_func;
4243 #endif
4244 #ifdef __cplusplus
4245 }
4246 #endif
4247
4248 int
4249 main ()
4250 {
4251 return f != $ac_func;
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.$ac_objext conftest$ac_exeext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258   (eval $ac_link) 2>conftest.er1
4259   ac_status=$?
4260   grep -v '^ *+' conftest.er1 >conftest.err
4261   rm -f conftest.er1
4262   cat conftest.err >&5
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } &&
4265          { ac_try='test -z "$ac_c_werror_flag"
4266                          || test ! -s conftest.err'
4267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268   (eval $ac_try) 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; } &&
4272          { ac_try='test -s conftest$ac_exeext'
4273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274   (eval $ac_try) 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; }; then
4278   eval "$as_ac_var=yes"
4279 else
4280   echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 eval "$as_ac_var=no"
4284 fi
4285 rm -f conftest.err conftest.$ac_objext \
4286       conftest$ac_exeext conftest.$ac_ext
4287 fi
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4290 if test `eval echo '${'$as_ac_var'}'` = yes; then
4291   cat >>confdefs.h <<_ACEOF
4292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4293 _ACEOF
4294
4295 fi
4296 done
4297
4298
4299
4300
4301
4302
4303 for ac_func in strnlen memrchr strncpy memmem sethostname
4304 do
4305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4306 echo "$as_me:$LINENO: checking for $ac_func" >&5
4307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4308 if eval "test \"\${$as_ac_var+set}\" = set"; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4319 #define $ac_func innocuous_$ac_func
4320
4321 /* System header to define __stub macros and hopefully few prototypes,
4322     which can conflict with char $ac_func (); below.
4323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324     <limits.h> exists even on freestanding compilers.  */
4325
4326 #ifdef __STDC__
4327 # include <limits.h>
4328 #else
4329 # include <assert.h>
4330 #endif
4331
4332 #undef $ac_func
4333
4334 /* Override any gcc2 internal prototype to avoid an error.  */
4335 #ifdef __cplusplus
4336 extern "C"
4337 {
4338 #endif
4339 /* We use char because int might match the return type of a gcc2
4340    builtin and then its argument prototype would still apply.  */
4341 char $ac_func ();
4342 /* The GNU C library defines this for functions which it implements
4343     to always fail with ENOSYS.  Some functions are actually named
4344     something starting with __ and the normal name is an alias.  */
4345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4346 choke me
4347 #else
4348 char (*f) () = $ac_func;
4349 #endif
4350 #ifdef __cplusplus
4351 }
4352 #endif
4353
4354 int
4355 main ()
4356 {
4357 return f != $ac_func;
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext conftest$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364   (eval $ac_link) 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } &&
4371          { ac_try='test -z "$ac_c_werror_flag"
4372                          || test ! -s conftest.err'
4373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374   (eval $ac_try) 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; } &&
4378          { ac_try='test -s conftest$ac_exeext'
4379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380   (eval $ac_try) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); }; }; then
4384   eval "$as_ac_var=yes"
4385 else
4386   echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 eval "$as_ac_var=no"
4390 fi
4391 rm -f conftest.err conftest.$ac_objext \
4392       conftest$ac_exeext conftest.$ac_ext
4393 fi
4394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4396 if test `eval echo '${'$as_ac_var'}'` = yes; then
4397   cat >>confdefs.h <<_ACEOF
4398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4399 _ACEOF
4400
4401 fi
4402 done
4403
4404
4405
4406
4407 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4408 do
4409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4410 echo "$as_me:$LINENO: checking for $ac_func" >&5
4411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4412 if eval "test \"\${$as_ac_var+set}\" = set"; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h.  */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h.  */
4421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4423 #define $ac_func innocuous_$ac_func
4424
4425 /* System header to define __stub macros and hopefully few prototypes,
4426     which can conflict with char $ac_func (); below.
4427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428     <limits.h> exists even on freestanding compilers.  */
4429
4430 #ifdef __STDC__
4431 # include <limits.h>
4432 #else
4433 # include <assert.h>
4434 #endif
4435
4436 #undef $ac_func
4437
4438 /* Override any gcc2 internal prototype to avoid an error.  */
4439 #ifdef __cplusplus
4440 extern "C"
4441 {
4442 #endif
4443 /* We use char because int might match the return type of a gcc2
4444    builtin and then its argument prototype would still apply.  */
4445 char $ac_func ();
4446 /* The GNU C library defines this for functions which it implements
4447     to always fail with ENOSYS.  Some functions are actually named
4448     something starting with __ and the normal name is an alias.  */
4449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4450 choke me
4451 #else
4452 char (*f) () = $ac_func;
4453 #endif
4454 #ifdef __cplusplus
4455 }
4456 #endif
4457
4458 int
4459 main ()
4460 {
4461 return f != $ac_func;
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 rm -f conftest.$ac_objext conftest$ac_exeext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468   (eval $ac_link) 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } &&
4475          { ac_try='test -z "$ac_c_werror_flag"
4476                          || test ! -s conftest.err'
4477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478   (eval $ac_try) 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; } &&
4482          { ac_try='test -s conftest$ac_exeext'
4483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484   (eval $ac_try) 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; }; then
4488   eval "$as_ac_var=yes"
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493 eval "$as_ac_var=no"
4494 fi
4495 rm -f conftest.err conftest.$ac_objext \
4496       conftest$ac_exeext conftest.$ac_ext
4497 fi
4498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4500 if test `eval echo '${'$as_ac_var'}'` = yes; then
4501   cat >>confdefs.h <<_ACEOF
4502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4503 _ACEOF
4504
4505 fi
4506 done
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4517 do
4518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4519 echo "$as_me:$LINENO: checking for $ac_func" >&5
4520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_var+set}\" = set"; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4532 #define $ac_func innocuous_$ac_func
4533
4534 /* System header to define __stub macros and hopefully few prototypes,
4535     which can conflict with char $ac_func (); below.
4536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4537     <limits.h> exists even on freestanding compilers.  */
4538
4539 #ifdef __STDC__
4540 # include <limits.h>
4541 #else
4542 # include <assert.h>
4543 #endif
4544
4545 #undef $ac_func
4546
4547 /* Override any gcc2 internal prototype to avoid an error.  */
4548 #ifdef __cplusplus
4549 extern "C"
4550 {
4551 #endif
4552 /* We use char because int might match the return type of a gcc2
4553    builtin and then its argument prototype would still apply.  */
4554 char $ac_func ();
4555 /* The GNU C library defines this for functions which it implements
4556     to always fail with ENOSYS.  Some functions are actually named
4557     something starting with __ and the normal name is an alias.  */
4558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4559 choke me
4560 #else
4561 char (*f) () = $ac_func;
4562 #endif
4563 #ifdef __cplusplus
4564 }
4565 #endif
4566
4567 int
4568 main ()
4569 {
4570 return f != $ac_func;
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577   (eval $ac_link) 2>conftest.er1
4578   ac_status=$?
4579   grep -v '^ *+' conftest.er1 >conftest.err
4580   rm -f conftest.er1
4581   cat conftest.err >&5
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); } &&
4584          { ac_try='test -z "$ac_c_werror_flag"
4585                          || test ! -s conftest.err'
4586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587   (eval $ac_try) 2>&5
4588   ac_status=$?
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); }; } &&
4591          { ac_try='test -s conftest$ac_exeext'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   eval "$as_ac_var=yes"
4598 else
4599   echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 eval "$as_ac_var=no"
4603 fi
4604 rm -f conftest.err conftest.$ac_objext \
4605       conftest$ac_exeext conftest.$ac_ext
4606 fi
4607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4609 if test `eval echo '${'$as_ac_var'}'` = yes; then
4610   cat >>confdefs.h <<_ACEOF
4611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4612 _ACEOF
4613
4614 fi
4615 done
4616
4617
4618
4619
4620
4621
4622 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4623 do
4624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4625 echo "$as_me:$LINENO: checking for $ac_func" >&5
4626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4627 if eval "test \"\${$as_ac_var+set}\" = set"; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4638 #define $ac_func innocuous_$ac_func
4639
4640 /* System header to define __stub macros and hopefully few prototypes,
4641     which can conflict with char $ac_func (); below.
4642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4643     <limits.h> exists even on freestanding compilers.  */
4644
4645 #ifdef __STDC__
4646 # include <limits.h>
4647 #else
4648 # include <assert.h>
4649 #endif
4650
4651 #undef $ac_func
4652
4653 /* Override any gcc2 internal prototype to avoid an error.  */
4654 #ifdef __cplusplus
4655 extern "C"
4656 {
4657 #endif
4658 /* We use char because int might match the return type of a gcc2
4659    builtin and then its argument prototype would still apply.  */
4660 char $ac_func ();
4661 /* The GNU C library defines this for functions which it implements
4662     to always fail with ENOSYS.  Some functions are actually named
4663     something starting with __ and the normal name is an alias.  */
4664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4665 choke me
4666 #else
4667 char (*f) () = $ac_func;
4668 #endif
4669 #ifdef __cplusplus
4670 }
4671 #endif
4672
4673 int
4674 main ()
4675 {
4676 return f != $ac_func;
4677   ;
4678   return 0;
4679 }
4680 _ACEOF
4681 rm -f conftest.$ac_objext conftest$ac_exeext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683   (eval $ac_link) 2>conftest.er1
4684   ac_status=$?
4685   grep -v '^ *+' conftest.er1 >conftest.err
4686   rm -f conftest.er1
4687   cat conftest.err >&5
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } &&
4690          { ac_try='test -z "$ac_c_werror_flag"
4691                          || test ! -s conftest.err'
4692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693   (eval $ac_try) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; } &&
4697          { ac_try='test -s conftest$ac_exeext'
4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699   (eval $ac_try) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; }; then
4703   eval "$as_ac_var=yes"
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708 eval "$as_ac_var=no"
4709 fi
4710 rm -f conftest.err conftest.$ac_objext \
4711       conftest$ac_exeext conftest.$ac_ext
4712 fi
4713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4715 if test `eval echo '${'$as_ac_var'}'` = yes; then
4716   cat >>confdefs.h <<_ACEOF
4717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4718 _ACEOF
4719
4720 fi
4721 done
4722
4723
4724
4725
4726
4727
4728 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4729 do
4730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4731 echo "$as_me:$LINENO: checking for $ac_func" >&5
4732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_var+set}\" = set"; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4744 #define $ac_func innocuous_$ac_func
4745
4746 /* System header to define __stub macros and hopefully few prototypes,
4747     which can conflict with char $ac_func (); below.
4748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749     <limits.h> exists even on freestanding compilers.  */
4750
4751 #ifdef __STDC__
4752 # include <limits.h>
4753 #else
4754 # include <assert.h>
4755 #endif
4756
4757 #undef $ac_func
4758
4759 /* Override any gcc2 internal prototype to avoid an error.  */
4760 #ifdef __cplusplus
4761 extern "C"
4762 {
4763 #endif
4764 /* We use char because int might match the return type of a gcc2
4765    builtin and then its argument prototype would still apply.  */
4766 char $ac_func ();
4767 /* The GNU C library defines this for functions which it implements
4768     to always fail with ENOSYS.  Some functions are actually named
4769     something starting with __ and the normal name is an alias.  */
4770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4771 choke me
4772 #else
4773 char (*f) () = $ac_func;
4774 #endif
4775 #ifdef __cplusplus
4776 }
4777 #endif
4778
4779 int
4780 main ()
4781 {
4782 return f != $ac_func;
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787 rm -f conftest.$ac_objext conftest$ac_exeext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789   (eval $ac_link) 2>conftest.er1
4790   ac_status=$?
4791   grep -v '^ *+' conftest.er1 >conftest.err
4792   rm -f conftest.er1
4793   cat conftest.err >&5
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); } &&
4796          { ac_try='test -z "$ac_c_werror_flag"
4797                          || test ! -s conftest.err'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; } &&
4803          { ac_try='test -s conftest$ac_exeext'
4804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805   (eval $ac_try) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); }; }; then
4809   eval "$as_ac_var=yes"
4810 else
4811   echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 eval "$as_ac_var=no"
4815 fi
4816 rm -f conftest.err conftest.$ac_objext \
4817       conftest$ac_exeext conftest.$ac_ext
4818 fi
4819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4821 if test `eval echo '${'$as_ac_var'}'` = yes; then
4822   cat >>confdefs.h <<_ACEOF
4823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4824 _ACEOF
4825
4826 fi
4827 done
4828
4829
4830
4831
4832 for ac_func in getprotoent getprotobyname getprotobynumber
4833 do
4834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4835 echo "$as_me:$LINENO: checking for $ac_func" >&5
4836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_var+set}\" = set"; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4848 #define $ac_func innocuous_$ac_func
4849
4850 /* System header to define __stub macros and hopefully few prototypes,
4851     which can conflict with char $ac_func (); below.
4852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853     <limits.h> exists even on freestanding compilers.  */
4854
4855 #ifdef __STDC__
4856 # include <limits.h>
4857 #else
4858 # include <assert.h>
4859 #endif
4860
4861 #undef $ac_func
4862
4863 /* Override any gcc2 internal prototype to avoid an error.  */
4864 #ifdef __cplusplus
4865 extern "C"
4866 {
4867 #endif
4868 /* We use char because int might match the return type of a gcc2
4869    builtin and then its argument prototype would still apply.  */
4870 char $ac_func ();
4871 /* The GNU C library defines this for functions which it implements
4872     to always fail with ENOSYS.  Some functions are actually named
4873     something starting with __ and the normal name is an alias.  */
4874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4875 choke me
4876 #else
4877 char (*f) () = $ac_func;
4878 #endif
4879 #ifdef __cplusplus
4880 }
4881 #endif
4882
4883 int
4884 main ()
4885 {
4886 return f != $ac_func;
4887   ;
4888   return 0;
4889 }
4890 _ACEOF
4891 rm -f conftest.$ac_objext conftest$ac_exeext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4893   (eval $ac_link) 2>conftest.er1
4894   ac_status=$?
4895   grep -v '^ *+' conftest.er1 >conftest.err
4896   rm -f conftest.er1
4897   cat conftest.err >&5
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); } &&
4900          { ac_try='test -z "$ac_c_werror_flag"
4901                          || test ! -s conftest.err'
4902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903   (eval $ac_try) 2>&5
4904   ac_status=$?
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); }; } &&
4907          { ac_try='test -s conftest$ac_exeext'
4908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909   (eval $ac_try) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); }; }; then
4913   eval "$as_ac_var=yes"
4914 else
4915   echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918 eval "$as_ac_var=no"
4919 fi
4920 rm -f conftest.err conftest.$ac_objext \
4921       conftest$ac_exeext conftest.$ac_ext
4922 fi
4923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4925 if test `eval echo '${'$as_ac_var'}'` = yes; then
4926   cat >>confdefs.h <<_ACEOF
4927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4928 _ACEOF
4929
4930 fi
4931 done
4932
4933
4934
4935
4936 for ac_func in getmntent setmntent addmntent
4937 do
4938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4939 echo "$as_me:$LINENO: checking for $ac_func" >&5
4940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4941 if eval "test \"\${$as_ac_var+set}\" = set"; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h.  */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h.  */
4950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4952 #define $ac_func innocuous_$ac_func
4953
4954 /* System header to define __stub macros and hopefully few prototypes,
4955     which can conflict with char $ac_func (); below.
4956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4957     <limits.h> exists even on freestanding compilers.  */
4958
4959 #ifdef __STDC__
4960 # include <limits.h>
4961 #else
4962 # include <assert.h>
4963 #endif
4964
4965 #undef $ac_func
4966
4967 /* Override any gcc2 internal prototype to avoid an error.  */
4968 #ifdef __cplusplus
4969 extern "C"
4970 {
4971 #endif
4972 /* We use char because int might match the return type of a gcc2
4973    builtin and then its argument prototype would still apply.  */
4974 char $ac_func ();
4975 /* The GNU C library defines this for functions which it implements
4976     to always fail with ENOSYS.  Some functions are actually named
4977     something starting with __ and the normal name is an alias.  */
4978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4979 choke me
4980 #else
4981 char (*f) () = $ac_func;
4982 #endif
4983 #ifdef __cplusplus
4984 }
4985 #endif
4986
4987 int
4988 main ()
4989 {
4990 return f != $ac_func;
4991   ;
4992   return 0;
4993 }
4994 _ACEOF
4995 rm -f conftest.$ac_objext conftest$ac_exeext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4997   (eval $ac_link) 2>conftest.er1
4998   ac_status=$?
4999   grep -v '^ *+' conftest.er1 >conftest.err
5000   rm -f conftest.er1
5001   cat conftest.err >&5
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); } &&
5004          { ac_try='test -z "$ac_c_werror_flag"
5005                          || test ! -s conftest.err'
5006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007   (eval $ac_try) 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); }; } &&
5011          { ac_try='test -s conftest$ac_exeext'
5012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013   (eval $ac_try) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); }; }; then
5017   eval "$as_ac_var=yes"
5018 else
5019   echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5021
5022 eval "$as_ac_var=no"
5023 fi
5024 rm -f conftest.err conftest.$ac_objext \
5025       conftest$ac_exeext conftest.$ac_ext
5026 fi
5027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5029 if test `eval echo '${'$as_ac_var'}'` = yes; then
5030   cat >>confdefs.h <<_ACEOF
5031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5032 _ACEOF
5033
5034 fi
5035 done
5036
5037
5038
5039
5040 for ac_func in inet_ntoa mmap munmap
5041 do
5042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5043 echo "$as_me:$LINENO: checking for $ac_func" >&5
5044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5045 if eval "test \"\${$as_ac_var+set}\" = set"; then
5046   echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048   cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5056 #define $ac_func innocuous_$ac_func
5057
5058 /* System header to define __stub macros and hopefully few prototypes,
5059     which can conflict with char $ac_func (); below.
5060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5061     <limits.h> exists even on freestanding compilers.  */
5062
5063 #ifdef __STDC__
5064 # include <limits.h>
5065 #else
5066 # include <assert.h>
5067 #endif
5068
5069 #undef $ac_func
5070
5071 /* Override any gcc2 internal prototype to avoid an error.  */
5072 #ifdef __cplusplus
5073 extern "C"
5074 {
5075 #endif
5076 /* We use char because int might match the return type of a gcc2
5077    builtin and then its argument prototype would still apply.  */
5078 char $ac_func ();
5079 /* The GNU C library defines this for functions which it implements
5080     to always fail with ENOSYS.  Some functions are actually named
5081     something starting with __ and the normal name is an alias.  */
5082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5083 choke me
5084 #else
5085 char (*f) () = $ac_func;
5086 #endif
5087 #ifdef __cplusplus
5088 }
5089 #endif
5090
5091 int
5092 main ()
5093 {
5094 return f != $ac_func;
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101   (eval $ac_link) 2>conftest.er1
5102   ac_status=$?
5103   grep -v '^ *+' conftest.er1 >conftest.err
5104   rm -f conftest.er1
5105   cat conftest.err >&5
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } &&
5108          { ac_try='test -z "$ac_c_werror_flag"
5109                          || test ! -s conftest.err'
5110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111   (eval $ac_try) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); }; } &&
5115          { ac_try='test -s conftest$ac_exeext'
5116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117   (eval $ac_try) 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); }; }; then
5121   eval "$as_ac_var=yes"
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126 eval "$as_ac_var=no"
5127 fi
5128 rm -f conftest.err conftest.$ac_objext \
5129       conftest$ac_exeext conftest.$ac_ext
5130 fi
5131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5133 if test `eval echo '${'$as_ac_var'}'` = yes; then
5134   cat >>confdefs.h <<_ACEOF
5135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5136 _ACEOF
5137
5138 fi
5139 done
5140
5141
5142 for ac_func in __libc_freeres
5143 do
5144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5145 echo "$as_me:$LINENO: checking for $ac_func" >&5
5146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5147 if eval "test \"\${$as_ac_var+set}\" = set"; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h.  */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h.  */
5156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5158 #define $ac_func innocuous_$ac_func
5159
5160 /* System header to define __stub macros and hopefully few prototypes,
5161     which can conflict with char $ac_func (); below.
5162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163     <limits.h> exists even on freestanding compilers.  */
5164
5165 #ifdef __STDC__
5166 # include <limits.h>
5167 #else
5168 # include <assert.h>
5169 #endif
5170
5171 #undef $ac_func
5172
5173 /* Override any gcc2 internal prototype to avoid an error.  */
5174 #ifdef __cplusplus
5175 extern "C"
5176 {
5177 #endif
5178 /* We use char because int might match the return type of a gcc2
5179    builtin and then its argument prototype would still apply.  */
5180 char $ac_func ();
5181 /* The GNU C library defines this for functions which it implements
5182     to always fail with ENOSYS.  Some functions are actually named
5183     something starting with __ and the normal name is an alias.  */
5184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5185 choke me
5186 #else
5187 char (*f) () = $ac_func;
5188 #endif
5189 #ifdef __cplusplus
5190 }
5191 #endif
5192
5193 int
5194 main ()
5195 {
5196 return f != $ac_func;
5197   ;
5198   return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203   (eval $ac_link) 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } &&
5210          { ac_try='test -z "$ac_c_werror_flag"
5211                          || test ! -s conftest.err'
5212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213   (eval $ac_try) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; } &&
5217          { ac_try='test -s conftest$ac_exeext'
5218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219   (eval $ac_try) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); }; }; then
5223   eval "$as_ac_var=yes"
5224 else
5225   echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228 eval "$as_ac_var=no"
5229 fi
5230 rm -f conftest.err conftest.$ac_objext \
5231       conftest$ac_exeext conftest.$ac_ext
5232 fi
5233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5235 if test `eval echo '${'$as_ac_var'}'` = yes; then
5236   cat >>confdefs.h <<_ACEOF
5237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5238 _ACEOF
5239
5240 fi
5241 done
5242
5243
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <sys/types.h>
5251 #include <sys/ipc.h>
5252 #include <sys/sem.h>
5253 int
5254 main ()
5255 {
5256 union semun foo;
5257   ;
5258   return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263   (eval $ac_compile) 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } &&
5270          { ac_try='test -z "$ac_c_werror_flag"
5271                          || test ! -s conftest.err'
5272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273   (eval $ac_try) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); }; } &&
5277          { ac_try='test -s conftest.$ac_objext'
5278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279   (eval $ac_try) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; }; then
5283   mf_have_semun=1
5284 else
5285   echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 mf_have_semun=0
5289 fi
5290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5291 if test $mf_have_semun = 1
5292 then
5293
5294 cat >>confdefs.h <<\_ACEOF
5295 #define HAVE_UNION_SEMUN 1
5296 _ACEOF
5297
5298 fi
5299
5300
5301 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
5302 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h.  */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h.  */
5309 #define _POSIX_PII_SOCKET
5310 #include <sys/types.h>
5311 #include <sys/socket.h>
5312 int
5313 main ()
5314 {
5315 socklen_t x = 5;
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322   (eval $ac_compile) 2>conftest.er1
5323   ac_status=$?
5324   grep -v '^ *+' conftest.er1 >conftest.err
5325   rm -f conftest.er1
5326   cat conftest.err >&5
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } &&
5329          { ac_try='test -z "$ac_c_werror_flag"
5330                          || test ! -s conftest.err'
5331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332   (eval $ac_try) 2>&5
5333   ac_status=$?
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); }; } &&
5336          { ac_try='test -s conftest.$ac_objext'
5337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338   (eval $ac_try) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }; }; then
5342
5343 cat >>confdefs.h <<\_ACEOF
5344 #define HAVE_SOCKLEN_T 1
5345 _ACEOF
5346
5347    echo "$as_me:$LINENO: result: yes" >&5
5348 echo "${ECHO_T}yes" >&6
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5355 fi
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357
5358 enable_dlopen=yes
5359
5360
5361
5362
5363
5364 macro_version='2.1a'
5365 macro_revision='1.2435'
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378 ltmain="$ac_aux_dir/ltmain.sh"
5379
5380 # Set options
5381
5382
5383 enable_win32_dll=no
5384
5385
5386 # Check whether --enable-shared or --disable-shared was given.
5387 if test "${enable_shared+set}" = set; then
5388   enableval="$enable_shared"
5389   p=${PACKAGE-default}
5390     case $enableval in
5391     yes) enable_shared=yes ;;
5392     no) enable_shared=no ;;
5393     *)
5394       enable_shared=no
5395       # Look at the argument we got.  We use all the common list separators.
5396       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5397       for pkg in $enableval; do
5398         IFS="$lt_save_ifs"
5399         if test "X$pkg" = "X$p"; then
5400           enable_shared=yes
5401         fi
5402       done
5403       IFS="$lt_save_ifs"
5404       ;;
5405     esac
5406 else
5407   enable_shared=yes
5408 fi;
5409
5410
5411
5412
5413
5414
5415
5416
5417 # Check whether --enable-static or --disable-static was given.
5418 if test "${enable_static+set}" = set; then
5419   enableval="$enable_static"
5420   p=${PACKAGE-default}
5421     case $enableval in
5422     yes) enable_static=yes ;;
5423     no) enable_static=no ;;
5424     *)
5425      enable_static=no
5426       # Look at the argument we got.  We use all the common list separators.
5427       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5428       for pkg in $enableval; do
5429         IFS="$lt_save_ifs"
5430         if test "X$pkg" = "X$p"; then
5431           enable_static=yes
5432         fi
5433       done
5434       IFS="$lt_save_ifs"
5435       ;;
5436     esac
5437 else
5438   enable_static=yes
5439 fi;
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449 # Check whether --with-pic or --without-pic was given.
5450 if test "${with_pic+set}" = set; then
5451   withval="$with_pic"
5452   pic_mode="$withval"
5453 else
5454   pic_mode=default
5455 fi;
5456
5457 test -z "$pic_mode" && pic_mode=default
5458
5459
5460
5461
5462
5463
5464
5465 # Check whether --enable-fast-install or --disable-fast-install was given.
5466 if test "${enable_fast_install+set}" = set; then
5467   enableval="$enable_fast_install"
5468   p=${PACKAGE-default}
5469     case $enableval in
5470     yes) enable_fast_install=yes ;;
5471     no) enable_fast_install=no ;;
5472     *)
5473       enable_fast_install=no
5474       # Look at the argument we got.  We use all the common list separators.
5475       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5476       for pkg in $enableval; do
5477         IFS="$lt_save_ifs"
5478         if test "X$pkg" = "X$p"; then
5479           enable_fast_install=yes
5480         fi
5481       done
5482       IFS="$lt_save_ifs"
5483       ;;
5484     esac
5485 else
5486   enable_fast_install=yes
5487 fi;
5488
5489
5490
5491
5492
5493
5494
5495
5496 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5497 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5498 if test "${lt_cv_path_SED+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   # Loop through the user's path and test for sed and gsed.
5502 # Then use that list of sed's as ones to test for truncation.
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508   for lt_ac_prog in sed gsed; do
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5511         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5512       fi
5513     done
5514   done
5515 done
5516 IFS=$as_save_IFS
5517 lt_ac_max=0
5518 lt_ac_count=0
5519 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5520 # along with /bin/sed that truncates output.
5521 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5522   test ! -f $lt_ac_sed && continue
5523   cat /dev/null > conftest.in
5524   lt_ac_count=0
5525   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5526   # Check for GNU sed and select it if it is found.
5527   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5528     lt_cv_path_SED=$lt_ac_sed
5529     break
5530   fi
5531   while true; do
5532     cat conftest.in conftest.in >conftest.tmp
5533     mv conftest.tmp conftest.in
5534     cp conftest.in conftest.nl
5535     echo >>conftest.nl
5536     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5537     cmp -s conftest.out conftest.nl || break
5538     # 10000 chars as input seems more than enough
5539     test $lt_ac_count -gt 10 && break
5540     lt_ac_count=`expr $lt_ac_count + 1`
5541     if test $lt_ac_count -gt $lt_ac_max; then
5542       lt_ac_max=$lt_ac_count
5543       lt_cv_path_SED=$lt_ac_sed
5544     fi
5545   done
5546 done
5547
5548 fi
5549
5550 SED=$lt_cv_path_SED
5551
5552 echo "$as_me:$LINENO: result: $SED" >&5
5553 echo "${ECHO_T}$SED" >&6
5554
5555 test -z "$SED" && SED=sed
5556 Xsed="$SED -e 1s/^X//"
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568 echo "$as_me:$LINENO: checking for fgrep" >&5
5569 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5570 if test "${ac_cv_prog_fgrep+set}" = set; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5574     then ac_cv_prog_fgrep='grep -F'
5575     else ac_cv_prog_fgrep='fgrep'
5576     fi
5577 fi
5578 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5579 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5580  FGREP=$ac_cv_prog_fgrep
5581
5582
5583 test -z "$GREP" && GREP=grep
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5604 if test "${with_gnu_ld+set}" = set; then
5605   withval="$with_gnu_ld"
5606   test "$withval" = no || with_gnu_ld=yes
5607 else
5608   with_gnu_ld=no
5609 fi;
5610 ac_prog=ld
5611 if test "$GCC" = yes; then
5612   # Check if gcc -print-prog-name=ld gives a path.
5613   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5614 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5615   case $host in
5616   *-*-mingw*)
5617     # gcc leaves a trailing carriage return which upsets mingw
5618     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5619   *)
5620     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5621   esac
5622   case $ac_prog in
5623     # Accept absolute paths.
5624     [\\/]* | ?:[\\/]*)
5625       re_direlt='/[^/][^/]*/\.\./'
5626       # Canonicalize the pathname of ld
5627       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5628       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5629         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5630       done
5631       test -z "$LD" && LD="$ac_prog"
5632       ;;
5633   "")
5634     # If it fails, then pretend we aren't using GCC.
5635     ac_prog=ld
5636     ;;
5637   *)
5638     # If it is relative, then search for the first ld in PATH.
5639     with_gnu_ld=unknown
5640     ;;
5641   esac
5642 elif test "$with_gnu_ld" = yes; then
5643   echo "$as_me:$LINENO: checking for GNU ld" >&5
5644 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5645 else
5646   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5647 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5648 fi
5649 if test "${lt_cv_path_LD+set}" = set; then
5650   echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652   if test -z "$LD"; then
5653   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5654   for ac_dir in $PATH; do
5655     IFS="$lt_save_ifs"
5656     test -z "$ac_dir" && ac_dir=.
5657     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5658       lt_cv_path_LD="$ac_dir/$ac_prog"
5659       # Check to see if the program is GNU ld.  I'd rather use --version,
5660       # but apparently some variants of GNU ld only accept -v.
5661       # Break only if it was the GNU/non-GNU ld that we prefer.
5662       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5663       *GNU* | *'with BFD'*)
5664         test "$with_gnu_ld" != no && break
5665         ;;
5666       *)
5667         test "$with_gnu_ld" != yes && break
5668         ;;
5669       esac
5670     fi
5671   done
5672   IFS="$lt_save_ifs"
5673 else
5674   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5675 fi
5676 fi
5677
5678 LD="$lt_cv_path_LD"
5679 if test -n "$LD"; then
5680   echo "$as_me:$LINENO: result: $LD" >&5
5681 echo "${ECHO_T}$LD" >&6
5682 else
5683   echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6
5685 fi
5686 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5687 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5688    { (exit 1); exit 1; }; }
5689 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5690 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5691 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5692   echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5695 case `$LD -v 2>&1 </dev/null` in
5696 *GNU* | *'with BFD'*)
5697   lt_cv_prog_gnu_ld=yes
5698   ;;
5699 *)
5700   lt_cv_prog_gnu_ld=no
5701   ;;
5702 esac
5703 fi
5704 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5705 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5706 with_gnu_ld=$lt_cv_prog_gnu_ld
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5718 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5719 if test "${lt_cv_path_NM+set}" = set; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722   if test -n "$NM"; then
5723   # Let the user override the test.
5724   lt_cv_path_NM="$NM"
5725 else
5726   lt_nm_to_check="${ac_tool_prefix}nm"
5727   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5728     lt_nm_to_check="$lt_nm_to_check nm"
5729   fi
5730   for lt_tmp_nm in $lt_nm_to_check; do
5731     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5732     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5733       IFS="$lt_save_ifs"
5734       test -z "$ac_dir" && ac_dir=.
5735       tmp_nm="$ac_dir/$lt_tmp_nm"
5736       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5737         # Check to see if the nm accepts a BSD-compat flag.
5738         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5739         #   nm: unknown option "B" ignored
5740         # Tru64's nm complains that /dev/null is an invalid object file
5741         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5742         */dev/null* | *'Invalid file or object type'*)
5743           lt_cv_path_NM="$tmp_nm -B"
5744           break
5745           ;;
5746         *)
5747           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5748           */dev/null*)
5749             lt_cv_path_NM="$tmp_nm -p"
5750             break
5751             ;;
5752           *)
5753             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5754             continue # so that we can try to find one that supports BSD flags
5755             ;;
5756           esac
5757           ;;
5758         esac
5759       fi
5760     done
5761     IFS="$lt_save_ifs"
5762   done
5763   : ${lt_cv_path_NM=no}
5764 fi
5765 fi
5766 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5767 echo "${ECHO_T}$lt_cv_path_NM" >&6
5768 if test "$lt_cv_path_NM" != "no"; then
5769   NM="$lt_cv_path_NM"
5770 else
5771   # Didn't find any BSD compatible name lister, look for dumpbin.
5772   if test -n "$ac_tool_prefix"; then
5773   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5774   do
5775     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5777 echo "$as_me:$LINENO: checking for $ac_word" >&5
5778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5779 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   if test -n "$DUMPBIN"; then
5783   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5787 do
5788   IFS=$as_save_IFS
5789   test -z "$as_dir" && as_dir=.
5790   for ac_exec_ext in '' $ac_executable_extensions; do
5791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5794     break 2
5795   fi
5796 done
5797 done
5798
5799 fi
5800 fi
5801 DUMPBIN=$ac_cv_prog_DUMPBIN
5802 if test -n "$DUMPBIN"; then
5803   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5804 echo "${ECHO_T}$DUMPBIN" >&6
5805 else
5806   echo "$as_me:$LINENO: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5808 fi
5809
5810     test -n "$DUMPBIN" && break
5811   done
5812 fi
5813 if test -z "$DUMPBIN"; then
5814   ac_ct_DUMPBIN=$DUMPBIN
5815   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5816 do
5817   # Extract the first word of "$ac_prog", so it can be a program name with args.
5818 set dummy $ac_prog; ac_word=$2
5819 echo "$as_me:$LINENO: checking for $ac_word" >&5
5820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5821 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5822   echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824   if test -n "$ac_ct_DUMPBIN"; then
5825   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830   IFS=$as_save_IFS
5831   test -z "$as_dir" && as_dir=.
5832   for ac_exec_ext in '' $ac_executable_extensions; do
5833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836     break 2
5837   fi
5838 done
5839 done
5840
5841 fi
5842 fi
5843 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5844 if test -n "$ac_ct_DUMPBIN"; then
5845   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5846 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5847 else
5848   echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6
5850 fi
5851
5852   test -n "$ac_ct_DUMPBIN" && break
5853 done
5854 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5855
5856   DUMPBIN=$ac_ct_DUMPBIN
5857 fi
5858
5859
5860   if test "$DUMPBIN" != ":"; then
5861     NM="$DUMPBIN"
5862   fi
5863 fi
5864 test -z "$NM" && NM=nm
5865
5866
5867
5868
5869
5870
5871 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5872 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5873 if test "${lt_cv_nm_interface+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   lt_cv_nm_interface="BSD nm"
5877   echo "int some_variable = 0;" > conftest.$ac_ext
5878   (eval echo "\"\$as_me:5878: $ac_compile\"" >&5)
5879   (eval "$ac_compile" 2>conftest.err)
5880   cat conftest.err >&5
5881   (eval echo "\"\$as_me:5881: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5882   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5883   cat conftest.err >&5
5884   (eval echo "\"\$as_me:5884: output\"" >&5)
5885   cat conftest.out >&5
5886   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5887     lt_cv_nm_interface="MS dumpbin"
5888   fi
5889   rm -f conftest*
5890 fi
5891 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5892 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5893
5894 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5895 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5896 LN_S=$as_ln_s
5897 if test "$LN_S" = "ln -s"; then
5898   echo "$as_me:$LINENO: result: yes" >&5
5899 echo "${ECHO_T}yes" >&6
5900 else
5901   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5902 echo "${ECHO_T}no, using $LN_S" >&6
5903 fi
5904
5905 # find the maximum length of command line arguments
5906 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5907 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5908 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5909   echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911     i=0
5912   teststring="ABCD"
5913
5914   case $build_os in
5915   msdosdjgpp*)
5916     # On DJGPP, this test can blow up pretty badly due to problems in libc
5917     # (any single argument exceeding 2000 bytes causes a buffer overrun
5918     # during glob expansion).  Even if it were fixed, the result of this
5919     # check would be larger than it should be.
5920     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5921     ;;
5922
5923   gnu*)
5924     # Under GNU Hurd, this test is not required because there is
5925     # no limit to the length of command line arguments.
5926     # Libtool will interpret -1 as no limit whatsoever
5927     lt_cv_sys_max_cmd_len=-1;
5928     ;;
5929
5930   cygwin* | mingw*)
5931     # On Win9x/ME, this test blows up -- it succeeds, but takes
5932     # about 5 minutes as the teststring grows exponentially.
5933     # Worse, since 9x/ME are not pre-emptively multitasking,
5934     # you end up with a "frozen" computer, even though with patience
5935     # the test eventually succeeds (with a max line length of 256k).
5936     # Instead, let's just punt: use the minimum linelength reported by
5937     # all of the supported platforms: 8192 (on NT/2K/XP).
5938     lt_cv_sys_max_cmd_len=8192;
5939     ;;
5940
5941   amigaos*)
5942     # On AmigaOS with pdksh, this test takes hours, literally.
5943     # So we just punt and use a minimum line length of 8192.
5944     lt_cv_sys_max_cmd_len=8192;
5945     ;;
5946
5947   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5948     # This has been around since 386BSD, at least.  Likely further.
5949     if test -x /sbin/sysctl; then
5950       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5951     elif test -x /usr/sbin/sysctl; then
5952       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5953     else
5954       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5955     fi
5956     # And add a safety zone
5957     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5958     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5959     ;;
5960
5961   interix*)
5962     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5963     lt_cv_sys_max_cmd_len=196608
5964     ;;
5965
5966   osf*)
5967     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5968     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5969     # nice to cause kernel panics so lets avoid the loop below.
5970     # First set a reasonable default.
5971     lt_cv_sys_max_cmd_len=16384
5972     #
5973     if test -x /sbin/sysconfig; then
5974       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5975         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5976       esac
5977     fi
5978     ;;
5979   sco3.2v5*)
5980     lt_cv_sys_max_cmd_len=102400
5981     ;;
5982   sysv5* | sco5v6* | sysv4.2uw2*)
5983     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5984     if test -n "$kargmax"; then
5985       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5986     else
5987       lt_cv_sys_max_cmd_len=32768
5988     fi
5989     ;;
5990   *)
5991     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5992     if test -n $lt_cv_sys_max_cmd_len; then
5993       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5994       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5995     else
5996       # Make teststring a little bigger before we do anything with it.
5997       # a 1K string should be a reasonable start.
5998       for i in 1 2 3 4 5 6 7 8 ; do
5999         teststring=$teststring$teststring
6000       done
6001       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6002       # If test is not a shell built-in, we'll probably end up computing a
6003       # maximum length that is only half of the actual maximum length, but
6004       # we can't tell.
6005       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6006                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6007               test $i != 17 # 1/2 MB should be enough
6008       do
6009         i=`expr $i + 1`
6010         teststring=$teststring$teststring
6011       done
6012       # Only check the string length outside the loop.
6013       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6014       teststring=
6015       # Add a significant safety factor because C++ compilers can tack on
6016       # massive amounts of additional arguments before passing them to the
6017       # linker.  It appears as though 1/2 is a usable value.
6018       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6019     fi
6020     ;;
6021   esac
6022
6023 fi
6024
6025 if test -n $lt_cv_sys_max_cmd_len ; then
6026   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6027 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6028 else
6029   echo "$as_me:$LINENO: result: none" >&5
6030 echo "${ECHO_T}none" >&6
6031 fi
6032 max_cmd_len=$lt_cv_sys_max_cmd_len
6033
6034
6035
6036
6037
6038
6039 : ${CP="cp -f"}
6040 : ${MV="mv -f"}
6041 : ${RM="rm -f"}
6042
6043 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6044 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6045 # Try some XSI features
6046 xsi_shell=no
6047 ( _lt_dummy="a/b/c"
6048   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6049       = c,a/b,, ) >/dev/null 2>&1 \
6050   && xsi_shell=yes
6051 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6052 echo "${ECHO_T}$xsi_shell" >&6
6053
6054
6055 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6056 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6057 lt_shell_append=no
6058 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6059     >/dev/null 2>&1 \
6060   && lt_shell_append=yes
6061 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6062 echo "${ECHO_T}$lt_shell_append" >&6
6063
6064
6065 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6066   lt_unset=unset
6067 else
6068   lt_unset=false
6069 fi
6070
6071
6072
6073
6074
6075 # test EBCDIC or ASCII
6076 case `echo X|tr X '\101'` in
6077  A) # ASCII based system
6078     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6079   lt_SP2NL='tr \040 \012'
6080   lt_NL2SP='tr \015\012 \040\040'
6081   ;;
6082  *) # EBCDIC based system
6083   lt_SP2NL='tr \100 \n'
6084   lt_NL2SP='tr \r\n \100\100'
6085   ;;
6086 esac
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6097 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6098 if test "${lt_cv_ld_reload_flag+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   lt_cv_ld_reload_flag='-r'
6102 fi
6103 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6104 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6105 reload_flag=$lt_cv_ld_reload_flag
6106 case $reload_flag in
6107 "" | " "*) ;;
6108 *) reload_flag=" $reload_flag" ;;
6109 esac
6110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6111 case $host_os in
6112   darwin*)
6113     if test "$GCC" = yes; then
6114       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6115     else
6116       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6117     fi
6118     ;;
6119 esac
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6131 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6132 if test "${lt_cv_deplibs_check_method+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   lt_cv_file_magic_cmd='$MAGIC_CMD'
6136 lt_cv_file_magic_test_file=
6137 lt_cv_deplibs_check_method='unknown'
6138 # Need to set the preceding variable on all platforms that support
6139 # interlibrary dependencies.
6140 # 'none' -- dependencies not supported.
6141 # `unknown' -- same as none, but documents that we really don't know.
6142 # 'pass_all' -- all dependencies passed with no checks.
6143 # 'test_compile' -- check by making test program.
6144 # 'file_magic [[regex]]' -- check by looking for files in library path
6145 # which responds to the $file_magic_cmd with a given extended regex.
6146 # If you have `file' or equivalent on your system and you're not sure
6147 # whether `pass_all' will *always* work, you probably want this one.
6148
6149 case $host_os in
6150 aix[4-9]*)
6151   lt_cv_deplibs_check_method=pass_all
6152   ;;
6153
6154 beos*)
6155   lt_cv_deplibs_check_method=pass_all
6156   ;;
6157
6158 bsdi[45]*)
6159   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6160   lt_cv_file_magic_cmd='/usr/bin/file -L'
6161   lt_cv_file_magic_test_file=/shlib/libc.so
6162   ;;
6163
6164 cygwin*)
6165   # func_win32_libid is a shell function defined in ltmain.sh
6166   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6167   lt_cv_file_magic_cmd='func_win32_libid'
6168   ;;
6169
6170 mingw* | pw32*)
6171   # Base MSYS/MinGW do not provide the 'file' command needed by
6172   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6173   # unless we find 'file', for example because we are cross-compiling.
6174   if ( file / ) >/dev/null 2>&1; then
6175     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6176     lt_cv_file_magic_cmd='func_win32_libid'
6177   else
6178     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6179     lt_cv_file_magic_cmd='$OBJDUMP -f'
6180   fi
6181   ;;
6182
6183 darwin* | rhapsody*)
6184   lt_cv_deplibs_check_method=pass_all
6185   ;;
6186
6187 freebsd* | dragonfly*)
6188   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6189     case $host_cpu in
6190     i*86 )
6191       # Not sure whether the presence of OpenBSD here was a mistake.
6192       # Let's accept both of them until this is cleared up.
6193       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6194       lt_cv_file_magic_cmd=/usr/bin/file
6195       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6196       ;;
6197     esac
6198   else
6199     lt_cv_deplibs_check_method=pass_all
6200   fi
6201   ;;
6202
6203 gnu*)
6204   lt_cv_deplibs_check_method=pass_all
6205   ;;
6206
6207 hpux10.20* | hpux11*)
6208   lt_cv_file_magic_cmd=/usr/bin/file
6209   case $host_cpu in
6210   ia64*)
6211     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6212     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6213     ;;
6214   hppa*64*)
6215     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]'
6216     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6217     ;;
6218   *)
6219     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6220     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6221     ;;
6222   esac
6223   ;;
6224
6225 interix[3-9]*)
6226   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6227   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6228   ;;
6229
6230 irix5* | irix6* | nonstopux*)
6231   case $LD in
6232   *-32|*"-32 ") libmagic=32-bit;;
6233   *-n32|*"-n32 ") libmagic=N32;;
6234   *-64|*"-64 ") libmagic=64-bit;;
6235   *) libmagic=never-match;;
6236   esac
6237   lt_cv_deplibs_check_method=pass_all
6238   ;;
6239
6240 # This must be Linux ELF.
6241 linux* | k*bsd*-gnu)
6242   lt_cv_deplibs_check_method=pass_all
6243   ;;
6244
6245 netbsd*)
6246   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6247     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6248   else
6249     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6250   fi
6251   ;;
6252
6253 newos6*)
6254   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6255   lt_cv_file_magic_cmd=/usr/bin/file
6256   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6257   ;;
6258
6259 *nto* | *qnx*)
6260   lt_cv_deplibs_check_method=pass_all
6261   ;;
6262
6263 openbsd*)
6264   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6265     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6266   else
6267     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6268   fi
6269   ;;
6270
6271 osf3* | osf4* | osf5*)
6272   lt_cv_deplibs_check_method=pass_all
6273   ;;
6274
6275 rdos*)
6276   lt_cv_deplibs_check_method=pass_all
6277   ;;
6278
6279 solaris*)
6280   lt_cv_deplibs_check_method=pass_all
6281   ;;
6282
6283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6284   lt_cv_deplibs_check_method=pass_all
6285   ;;
6286
6287 sysv4 | sysv4.3*)
6288   case $host_vendor in
6289   motorola)
6290     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]'
6291     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6292     ;;
6293   ncr)
6294     lt_cv_deplibs_check_method=pass_all
6295     ;;
6296   sequent)
6297     lt_cv_file_magic_cmd='/bin/file'
6298     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6299     ;;
6300   sni)
6301     lt_cv_file_magic_cmd='/bin/file'
6302     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6303     lt_cv_file_magic_test_file=/lib/libc.so
6304     ;;
6305   siemens)
6306     lt_cv_deplibs_check_method=pass_all
6307     ;;
6308   pc)
6309     lt_cv_deplibs_check_method=pass_all
6310     ;;
6311   esac
6312   ;;
6313
6314 tpf*)
6315   lt_cv_deplibs_check_method=pass_all
6316   ;;
6317 esac
6318
6319 fi
6320 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6321 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6322 file_magic_cmd=$lt_cv_file_magic_cmd
6323 deplibs_check_method=$lt_cv_deplibs_check_method
6324 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337 if test -n "$ac_tool_prefix"; then
6338   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6339 set dummy ${ac_tool_prefix}ar; ac_word=$2
6340 echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6342 if test "${ac_cv_prog_AR+set}" = set; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   if test -n "$AR"; then
6346   ac_cv_prog_AR="$AR" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351   IFS=$as_save_IFS
6352   test -z "$as_dir" && as_dir=.
6353   for ac_exec_ext in '' $ac_executable_extensions; do
6354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355     ac_cv_prog_AR="${ac_tool_prefix}ar"
6356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357     break 2
6358   fi
6359 done
6360 done
6361
6362 fi
6363 fi
6364 AR=$ac_cv_prog_AR
6365 if test -n "$AR"; then
6366   echo "$as_me:$LINENO: result: $AR" >&5
6367 echo "${ECHO_T}$AR" >&6
6368 else
6369   echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6
6371 fi
6372
6373 fi
6374 if test -z "$ac_cv_prog_AR"; then
6375   ac_ct_AR=$AR
6376   # Extract the first word of "ar", so it can be a program name with args.
6377 set dummy ar; ac_word=$2
6378 echo "$as_me:$LINENO: checking for $ac_word" >&5
6379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6380 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6381   echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383   if test -n "$ac_ct_AR"; then
6384   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391   for ac_exec_ext in '' $ac_executable_extensions; do
6392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393     ac_cv_prog_ac_ct_AR="ar"
6394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398 done
6399
6400   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6401 fi
6402 fi
6403 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6404 if test -n "$ac_ct_AR"; then
6405   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6406 echo "${ECHO_T}$ac_ct_AR" >&6
6407 else
6408   echo "$as_me:$LINENO: result: no" >&5
6409 echo "${ECHO_T}no" >&6
6410 fi
6411
6412   AR=$ac_ct_AR
6413 else
6414   AR="$ac_cv_prog_AR"
6415 fi
6416
6417 test -z "$AR" && AR=ar
6418 test -z "$AR_FLAGS" && AR_FLAGS=cru
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430 if test -n "$ac_tool_prefix"; then
6431   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}strip; ac_word=$2
6433 echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6435 if test "${ac_cv_prog_STRIP+set}" = set; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438   if test -n "$STRIP"; then
6439   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444   IFS=$as_save_IFS
6445   test -z "$as_dir" && as_dir=.
6446   for ac_exec_ext in '' $ac_executable_extensions; do
6447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450     break 2
6451   fi
6452 done
6453 done
6454
6455 fi
6456 fi
6457 STRIP=$ac_cv_prog_STRIP
6458 if test -n "$STRIP"; then
6459   echo "$as_me:$LINENO: result: $STRIP" >&5
6460 echo "${ECHO_T}$STRIP" >&6
6461 else
6462   echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6
6464 fi
6465
6466 fi
6467 if test -z "$ac_cv_prog_STRIP"; then
6468   ac_ct_STRIP=$STRIP
6469   # Extract the first word of "strip", so it can be a program name with args.
6470 set dummy strip; ac_word=$2
6471 echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6473 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6474   echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476   if test -n "$ac_ct_STRIP"; then
6477   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482   IFS=$as_save_IFS
6483   test -z "$as_dir" && as_dir=.
6484   for ac_exec_ext in '' $ac_executable_extensions; do
6485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6486     ac_cv_prog_ac_ct_STRIP="strip"
6487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488     break 2
6489   fi
6490 done
6491 done
6492
6493   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6494 fi
6495 fi
6496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6497 if test -n "$ac_ct_STRIP"; then
6498   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6499 echo "${ECHO_T}$ac_ct_STRIP" >&6
6500 else
6501   echo "$as_me:$LINENO: result: no" >&5
6502 echo "${ECHO_T}no" >&6
6503 fi
6504
6505   STRIP=$ac_ct_STRIP
6506 else
6507   STRIP="$ac_cv_prog_STRIP"
6508 fi
6509
6510 test -z "$STRIP" && STRIP=:
6511
6512
6513
6514
6515
6516
6517 if test -n "$ac_tool_prefix"; then
6518   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6520 echo "$as_me:$LINENO: checking for $ac_word" >&5
6521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6522 if test "${ac_cv_prog_RANLIB+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   if test -n "$RANLIB"; then
6526   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533   for ac_exec_ext in '' $ac_executable_extensions; do
6534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540 done
6541
6542 fi
6543 fi
6544 RANLIB=$ac_cv_prog_RANLIB
6545 if test -n "$RANLIB"; then
6546   echo "$as_me:$LINENO: result: $RANLIB" >&5
6547 echo "${ECHO_T}$RANLIB" >&6
6548 else
6549   echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6
6551 fi
6552
6553 fi
6554 if test -z "$ac_cv_prog_RANLIB"; then
6555   ac_ct_RANLIB=$RANLIB
6556   # Extract the first word of "ranlib", so it can be a program name with args.
6557 set dummy ranlib; ac_word=$2
6558 echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6561   echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563   if test -n "$ac_ct_RANLIB"; then
6564   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569   IFS=$as_save_IFS
6570   test -z "$as_dir" && as_dir=.
6571   for ac_exec_ext in '' $ac_executable_extensions; do
6572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6573     ac_cv_prog_ac_ct_RANLIB="ranlib"
6574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575     break 2
6576   fi
6577 done
6578 done
6579
6580   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6581 fi
6582 fi
6583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6584 if test -n "$ac_ct_RANLIB"; then
6585   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6586 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6587 else
6588   echo "$as_me:$LINENO: result: no" >&5
6589 echo "${ECHO_T}no" >&6
6590 fi
6591
6592   RANLIB=$ac_ct_RANLIB
6593 else
6594   RANLIB="$ac_cv_prog_RANLIB"
6595 fi
6596
6597 test -z "$RANLIB" && RANLIB=:
6598
6599
6600
6601
6602
6603
6604 # Determine commands to create old-style static archives.
6605 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6606 old_postinstall_cmds='chmod 644 $oldlib'
6607 old_postuninstall_cmds=
6608
6609 if test -n "$RANLIB"; then
6610   case $host_os in
6611   openbsd*)
6612     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6613     ;;
6614   *)
6615     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6616     ;;
6617   esac
6618   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6619 fi
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654 # If no C compiler was specified, use CC.
6655 LTCC=${LTCC-"$CC"}
6656
6657 # If no C compiler flags were specified, use CFLAGS.
6658 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6659
6660 # Allow CC to be a program name with arguments.
6661 compiler=$CC
6662
6663
6664 # Check for command to grab the raw symbol name followed by C symbol from nm.
6665 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6666 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6667 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670
6671 # These are sane defaults that work on at least a few old systems.
6672 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6673
6674 # Character class describing NM global symbol codes.
6675 symcode='[BCDEGRST]'
6676
6677 # Regexp to match symbols that can be accessed directly from C.
6678 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6679
6680 # Define system-specific variables.
6681 case $host_os in
6682 aix*)
6683   symcode='[BCDT]'
6684   ;;
6685 cygwin* | mingw* | pw32*)
6686   symcode='[ABCDGISTW]'
6687   ;;
6688 hpux*)
6689   if test "$host_cpu" = ia64; then
6690     symcode='[ABCDEGRST]'
6691   fi
6692   ;;
6693 irix* | nonstopux*)
6694   symcode='[BCDEGRST]'
6695   ;;
6696 osf*)
6697   symcode='[BCDEGQRST]'
6698   ;;
6699 solaris*)
6700   symcode='[BDRT]'
6701   ;;
6702 sco3.2v5*)
6703   symcode='[DT]'
6704   ;;
6705 sysv4.2uw2*)
6706   symcode='[DT]'
6707   ;;
6708 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6709   symcode='[ABDT]'
6710   ;;
6711 sysv4)
6712   symcode='[DFNSTU]'
6713   ;;
6714 esac
6715
6716 # If we're using GNU nm, then use its standard symbol codes.
6717 case `$NM -V 2>&1` in
6718 *GNU* | *'with BFD'*)
6719   symcode='[ABCDGIRSTW]' ;;
6720 esac
6721
6722 # Transform an extracted symbol line into a proper C declaration.
6723 # Some systems (esp. on ia64) link data and code symbols differently,
6724 # so use this general approach.
6725 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6726
6727 # Transform an extracted symbol line into symbol name and symbol address
6728 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6729
6730 # Handle CRLF in mingw tool chain
6731 opt_cr=
6732 case $build_os in
6733 mingw*)
6734   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6735   ;;
6736 esac
6737
6738 # Try without a prefix underscore, then with it.
6739 for ac_symprfx in "" "_"; do
6740
6741   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6742   symxfrm="\\1 $ac_symprfx\\2 \\2"
6743
6744   # Write the raw and C identifiers.
6745   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6746     # Fake it for dumpbin and say T for any non-static function
6747     # and D for any global variable.
6748     # Also find C++ and __fastcall symbols from MSVC++,
6749     # which start with @ or ?.
6750     lt_cv_sys_global_symbol_pipe="$AWK '"\
6751 "     {last_section=section; section=\$ 3};"\
6752 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6753 "     \$ 0!~/External *\|/{next};"\
6754 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6755 "     {if(hide[section]) next};"\
6756 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6757 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6758 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6759 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6760 "     ' prfx=^$ac_symprfx"
6761   else
6762     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6763   fi
6764
6765   # Check to see that the pipe works correctly.
6766   pipe_works=no
6767
6768   rm -f conftest*
6769   cat > conftest.$ac_ext <<_LT_EOF
6770 #ifdef __cplusplus
6771 extern "C" {
6772 #endif
6773 char nm_test_var;
6774 void nm_test_func(void);
6775 void nm_test_func(void){}
6776 #ifdef __cplusplus
6777 }
6778 #endif
6779 int main(){nm_test_var='a';nm_test_func();return(0);}
6780 _LT_EOF
6781
6782   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6783   (eval $ac_compile) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); }; then
6787     # Now try to grab the symbols.
6788     nlist=conftest.nm
6789     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6790   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6791   ac_status=$?
6792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793   (exit $ac_status); } && test -s "$nlist"; then
6794       # Try sorting and uniquifying the output.
6795       if sort "$nlist" | uniq > "$nlist"T; then
6796         mv -f "$nlist"T "$nlist"
6797       else
6798         rm -f "$nlist"T
6799       fi
6800
6801       # Make sure that we snagged all the symbols we need.
6802       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6803         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6804           cat <<_LT_EOF > conftest.$ac_ext
6805 #ifdef __cplusplus
6806 extern "C" {
6807 #endif
6808
6809 _LT_EOF
6810           # Now generate the symbol file.
6811           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6812
6813           cat <<_LT_EOF >> conftest.$ac_ext
6814
6815 /* The mapping between symbol names and symbols.  */
6816 const struct {
6817   const char *name;
6818   void       *address;
6819 }
6820 lt__PROGRAM__LTX_preloaded_symbols[] =
6821 {
6822   { "@PROGRAM@", (void *) 0 },
6823 _LT_EOF
6824           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6825           cat <<\_LT_EOF >> conftest.$ac_ext
6826   {0, (void *) 0}
6827 };
6828
6829 /* This works around a problem in FreeBSD linker */
6830 #ifdef FREEBSD_WORKAROUND
6831 static const void *lt_preloaded_setup() {
6832   return lt__PROGRAM__LTX_preloaded_symbols;
6833 }
6834 #endif
6835
6836 #ifdef __cplusplus
6837 }
6838 #endif
6839 _LT_EOF
6840           # Now try linking the two files.
6841           mv conftest.$ac_objext conftstm.$ac_objext
6842           lt_save_LIBS="$LIBS"
6843           lt_save_CFLAGS="$CFLAGS"
6844           LIBS="conftstm.$ac_objext"
6845           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6846           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6847   (eval $ac_link) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6851             pipe_works=yes
6852           fi
6853           LIBS="$lt_save_LIBS"
6854           CFLAGS="$lt_save_CFLAGS"
6855         else
6856           echo "cannot find nm_test_func in $nlist" >&5
6857         fi
6858       else
6859         echo "cannot find nm_test_var in $nlist" >&5
6860       fi
6861     else
6862       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6863     fi
6864   else
6865     echo "$progname: failed program was:" >&5
6866     cat conftest.$ac_ext >&5
6867   fi
6868   rm -f conftest* conftst*
6869
6870   # Do not use the global_symbol_pipe unless it works.
6871   if test "$pipe_works" = yes; then
6872     break
6873   else
6874     lt_cv_sys_global_symbol_pipe=
6875   fi
6876 done
6877
6878 fi
6879
6880 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6881   lt_cv_sys_global_symbol_to_cdecl=
6882 fi
6883 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6884   echo "$as_me:$LINENO: result: failed" >&5
6885 echo "${ECHO_T}failed" >&6
6886 else
6887   echo "$as_me:$LINENO: result: ok" >&5
6888 echo "${ECHO_T}ok" >&6
6889 fi
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6908 if test "${enable_libtool_lock+set}" = set; then
6909   enableval="$enable_libtool_lock"
6910
6911 fi;
6912 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6913
6914 # Some flags need to be propagated to the compiler or linker for good
6915 # libtool support.
6916 case $host in
6917 ia64-*-hpux*)
6918   # Find out which ABI we are using.
6919   echo 'int i;' > conftest.$ac_ext
6920   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921   (eval $ac_compile) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; then
6925     case `/usr/bin/file conftest.$ac_objext` in
6926       *ELF-32*)
6927         HPUX_IA64_MODE="32"
6928         ;;
6929       *ELF-64*)
6930         HPUX_IA64_MODE="64"
6931         ;;
6932     esac
6933   fi
6934   rm -rf conftest*
6935   ;;
6936 *-*-irix6*)
6937   # Find out which ABI we are using.
6938   echo '#line 6938 "configure"' > conftest.$ac_ext
6939   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6940   (eval $ac_compile) 2>&5
6941   ac_status=$?
6942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943   (exit $ac_status); }; then
6944     if test "$lt_cv_prog_gnu_ld" = yes; then
6945       case `/usr/bin/file conftest.$ac_objext` in
6946         *32-bit*)
6947           LD="${LD-ld} -melf32bsmip"
6948           ;;
6949         *N32*)
6950           LD="${LD-ld} -melf32bmipn32"
6951           ;;
6952         *64-bit*)
6953           LD="${LD-ld} -melf64bmip"
6954         ;;
6955       esac
6956     else
6957       case `/usr/bin/file conftest.$ac_objext` in
6958         *32-bit*)
6959           LD="${LD-ld} -32"
6960           ;;
6961         *N32*)
6962           LD="${LD-ld} -n32"
6963           ;;
6964         *64-bit*)
6965           LD="${LD-ld} -64"
6966           ;;
6967       esac
6968     fi
6969   fi
6970   rm -rf conftest*
6971   ;;
6972
6973 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6974 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6975   # Find out which ABI we are using.
6976   echo 'int i;' > conftest.$ac_ext
6977   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978   (eval $ac_compile) 2>&5
6979   ac_status=$?
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); }; then
6982     case `/usr/bin/file conftest.o` in
6983       *32-bit*)
6984         case $host in
6985           x86_64-*kfreebsd*-gnu)
6986             LD="${LD-ld} -m elf_i386_fbsd"
6987             ;;
6988           x86_64-*linux*)
6989             LD="${LD-ld} -m elf_i386"
6990             ;;
6991           ppc64-*linux*|powerpc64-*linux*)
6992             LD="${LD-ld} -m elf32ppclinux"
6993             ;;
6994           s390x-*linux*)
6995             LD="${LD-ld} -m elf_s390"
6996             ;;
6997           sparc64-*linux*)
6998             LD="${LD-ld} -m elf32_sparc"
6999             ;;
7000         esac
7001         ;;
7002       *64-bit*)
7003         case $host in
7004           x86_64-*kfreebsd*-gnu)
7005             LD="${LD-ld} -m elf_x86_64_fbsd"
7006             ;;
7007           x86_64-*linux*)
7008             LD="${LD-ld} -m elf_x86_64"
7009             ;;
7010           ppc*-*linux*|powerpc*-*linux*)
7011             LD="${LD-ld} -m elf64ppc"
7012             ;;
7013           s390*-*linux*|s390*-*tpf*)
7014             LD="${LD-ld} -m elf64_s390"
7015             ;;
7016           sparc*-*linux*)
7017             LD="${LD-ld} -m elf64_sparc"
7018             ;;
7019         esac
7020         ;;
7021     esac
7022   fi
7023   rm -rf conftest*
7024   ;;
7025
7026 *-*-sco3.2v5*)
7027   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7028   SAVE_CFLAGS="$CFLAGS"
7029   CFLAGS="$CFLAGS -belf"
7030   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7031 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7032 if test "${lt_cv_cc_needs_belf+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   ac_ext=c
7036 ac_cpp='$CPP $CPPFLAGS'
7037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040
7041      cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h.  */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h.  */
7047
7048 int
7049 main ()
7050 {
7051
7052   ;
7053   return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest.$ac_objext conftest$ac_exeext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7058   (eval $ac_link) 2>conftest.er1
7059   ac_status=$?
7060   grep -v '^ *+' conftest.er1 >conftest.err
7061   rm -f conftest.er1
7062   cat conftest.err >&5
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); } &&
7065          { ac_try='test -z "$ac_c_werror_flag"
7066                          || test ! -s conftest.err'
7067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068   (eval $ac_try) 2>&5
7069   ac_status=$?
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); }; } &&
7072          { ac_try='test -s conftest$ac_exeext'
7073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074   (eval $ac_try) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); }; }; then
7078   lt_cv_cc_needs_belf=yes
7079 else
7080   echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 lt_cv_cc_needs_belf=no
7084 fi
7085 rm -f conftest.err conftest.$ac_objext \
7086       conftest$ac_exeext conftest.$ac_ext
7087      ac_ext=c
7088 ac_cpp='$CPP $CPPFLAGS'
7089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7092
7093 fi
7094 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7095 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7096   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7097     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7098     CFLAGS="$SAVE_CFLAGS"
7099   fi
7100   ;;
7101 sparc*-*solaris*)
7102   # Find out which ABI we are using.
7103   echo 'int i;' > conftest.$ac_ext
7104   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105   (eval $ac_compile) 2>&5
7106   ac_status=$?
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); }; then
7109     case `/usr/bin/file conftest.o` in
7110     *64-bit*)
7111       case $lt_cv_prog_gnu_ld in
7112       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7113       *)    LD="${LD-ld} -64" ;;
7114       esac
7115       ;;
7116     esac
7117   fi
7118   rm -rf conftest*
7119   ;;
7120 esac
7121
7122 need_locks="$enable_libtool_lock"
7123
7124
7125 for ac_header in dlfcn.h
7126 do
7127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7128 echo "$as_me:$LINENO: checking for $ac_header" >&5
7129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131   echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133   cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h.  */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h.  */
7139 $ac_includes_default
7140
7141 #include <$ac_header>
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145   (eval $ac_compile) 2>conftest.er1
7146   ac_status=$?
7147   grep -v '^ *+' conftest.er1 >conftest.err
7148   rm -f conftest.er1
7149   cat conftest.err >&5
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); } &&
7152          { ac_try='test -z "$ac_c_werror_flag"
7153                          || test ! -s conftest.err'
7154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155   (eval $ac_try) 2>&5
7156   ac_status=$?
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); }; } &&
7159          { ac_try='test -s conftest.$ac_objext'
7160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161   (eval $ac_try) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; }; then
7165   eval "$as_ac_Header=yes"
7166 else
7167   echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7169
7170 eval "$as_ac_Header=no"
7171 fi
7172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7173 fi
7174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7177   cat >>confdefs.h <<_ACEOF
7178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7179 _ACEOF
7180
7181 fi
7182
7183 done
7184
7185
7186
7187 # This can be used to rebuild libtool when needed
7188 LIBTOOL_DEPS="$ltmain"
7189
7190 # Always use our own libtool.
7191 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217 test -z "$LN_S" && LN_S="ln -s"
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232 if test -n "${ZSH_VERSION+set}" ; then
7233    setopt NO_GLOB_SUBST
7234 fi
7235
7236 echo "$as_me:$LINENO: checking for objdir" >&5
7237 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7238 if test "${lt_cv_objdir+set}" = set; then
7239   echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241   rm -f .libs 2>/dev/null
7242 mkdir .libs 2>/dev/null
7243 if test -d .libs; then
7244   lt_cv_objdir=.libs
7245 else
7246   # MS-DOS does not allow filenames that begin with a dot.
7247   lt_cv_objdir=_libs
7248 fi
7249 rmdir .libs 2>/dev/null
7250 fi
7251 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7252 echo "${ECHO_T}$lt_cv_objdir" >&6
7253 objdir=$lt_cv_objdir
7254
7255
7256
7257
7258
7259 cat >>confdefs.h <<_ACEOF
7260 #define LT_OBJDIR "$lt_cv_objdir/"
7261 _ACEOF
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279 case $host_os in
7280 aix3*)
7281   # AIX sometimes has problems with the GCC collect2 program.  For some
7282   # reason, if we set the COLLECT_NAMES environment variable, the problems
7283   # vanish in a puff of smoke.
7284   if test "X${COLLECT_NAMES+set}" != Xset; then
7285     COLLECT_NAMES=
7286     export COLLECT_NAMES
7287   fi
7288   ;;
7289 esac
7290
7291 # Sed substitution that helps us do robust quoting.  It backslashifies
7292 # metacharacters that are still active within double-quoted strings.
7293 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7294
7295 # Same as above, but do not quote variable references.
7296 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7297
7298 # Sed substitution to delay expansion of an escaped shell variable in a
7299 # double_quote_subst'ed string.
7300 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7301
7302 # Sed substitution to delay expansion of an escaped single quote.
7303 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7304
7305 # Sed substitution to avoid accidental globbing in evaled expressions
7306 no_glob_subst='s/\*/\\\*/g'
7307
7308 # Global variables:
7309 ofile=libtool
7310 can_build_shared=yes
7311
7312 # All known linkers require a `.a' archive for static linking (except MSVC,
7313 # which needs '.lib').
7314 libext=a
7315
7316 with_gnu_ld="$lt_cv_prog_gnu_ld"
7317
7318 old_CC="$CC"
7319 old_CFLAGS="$CFLAGS"
7320
7321 # Set sane defaults for various variables
7322 test -z "$CC" && CC=cc
7323 test -z "$LTCC" && LTCC=$CC
7324 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7325 test -z "$LD" && LD=ld
7326 test -z "$ac_objext" && ac_objext=o
7327
7328 for cc_temp in $compiler""; do
7329   case $cc_temp in
7330     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7331     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7332     \-*) ;;
7333     *) break;;
7334   esac
7335 done
7336 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7337
7338
7339 # Only perform the check for file, if the check method requires it
7340 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7341 case $deplibs_check_method in
7342 file_magic*)
7343   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7344     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7345 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349   case $MAGIC_CMD in
7350 [\\/*] |  ?:[\\/]*)
7351   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7352   ;;
7353 *)
7354   lt_save_MAGIC_CMD="$MAGIC_CMD"
7355   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7356   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7357   for ac_dir in $ac_dummy; do
7358     IFS="$lt_save_ifs"
7359     test -z "$ac_dir" && ac_dir=.
7360     if test -f $ac_dir/${ac_tool_prefix}file; then
7361       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7362       if test -n "$file_magic_test_file"; then
7363         case $deplibs_check_method in
7364         "file_magic "*)
7365           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7366           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7367           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7368             $EGREP "$file_magic_regex" > /dev/null; then
7369             :
7370           else
7371             cat <<_LT_EOF 1>&2
7372
7373 *** Warning: the command libtool uses to detect shared libraries,
7374 *** $file_magic_cmd, produces output that libtool cannot recognize.
7375 *** The result is that libtool may fail to recognize shared libraries
7376 *** as such.  This will affect the creation of libtool libraries that
7377 *** depend on shared libraries, but programs linked with such libtool
7378 *** libraries will work regardless of this problem.  Nevertheless, you
7379 *** may want to report the problem to your system manager and/or to
7380 *** bug-libtool@gnu.org
7381
7382 _LT_EOF
7383           fi ;;
7384         esac
7385       fi
7386       break
7387     fi
7388   done
7389   IFS="$lt_save_ifs"
7390   MAGIC_CMD="$lt_save_MAGIC_CMD"
7391   ;;
7392 esac
7393 fi
7394
7395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7396 if test -n "$MAGIC_CMD"; then
7397   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7398 echo "${ECHO_T}$MAGIC_CMD" >&6
7399 else
7400   echo "$as_me:$LINENO: result: no" >&5
7401 echo "${ECHO_T}no" >&6
7402 fi
7403
7404
7405
7406
7407
7408 if test -z "$lt_cv_path_MAGIC_CMD"; then
7409   if test -n "$ac_tool_prefix"; then
7410     echo "$as_me:$LINENO: checking for file" >&5
7411 echo $ECHO_N "checking for file... $ECHO_C" >&6
7412 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   case $MAGIC_CMD in
7416 [\\/*] |  ?:[\\/]*)
7417   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7418   ;;
7419 *)
7420   lt_save_MAGIC_CMD="$MAGIC_CMD"
7421   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7422   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7423   for ac_dir in $ac_dummy; do
7424     IFS="$lt_save_ifs"
7425     test -z "$ac_dir" && ac_dir=.
7426     if test -f $ac_dir/file; then
7427       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7428       if test -n "$file_magic_test_file"; then
7429         case $deplibs_check_method in
7430         "file_magic "*)
7431           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7432           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7433           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7434             $EGREP "$file_magic_regex" > /dev/null; then
7435             :
7436           else
7437             cat <<_LT_EOF 1>&2
7438
7439 *** Warning: the command libtool uses to detect shared libraries,
7440 *** $file_magic_cmd, produces output that libtool cannot recognize.
7441 *** The result is that libtool may fail to recognize shared libraries
7442 *** as such.  This will affect the creation of libtool libraries that
7443 *** depend on shared libraries, but programs linked with such libtool
7444 *** libraries will work regardless of this problem.  Nevertheless, you
7445 *** may want to report the problem to your system manager and/or to
7446 *** bug-libtool@gnu.org
7447
7448 _LT_EOF
7449           fi ;;
7450         esac
7451       fi
7452       break
7453     fi
7454   done
7455   IFS="$lt_save_ifs"
7456   MAGIC_CMD="$lt_save_MAGIC_CMD"
7457   ;;
7458 esac
7459 fi
7460
7461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7462 if test -n "$MAGIC_CMD"; then
7463   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7464 echo "${ECHO_T}$MAGIC_CMD" >&6
7465 else
7466   echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6
7468 fi
7469
7470
7471   else
7472     MAGIC_CMD=:
7473   fi
7474 fi
7475
7476   fi
7477   ;;
7478 esac
7479
7480 # Use C for the default configuration in the libtool script
7481
7482 lt_save_CC="$CC"
7483 ac_ext=c
7484 ac_cpp='$CPP $CPPFLAGS'
7485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488
7489
7490 # Source file extension for C test sources.
7491 ac_ext=c
7492
7493 # Object file extension for compiled C test sources.
7494 objext=o
7495 objext=$objext
7496
7497 # Code to be used in simple compile tests
7498 lt_simple_compile_test_code="int some_variable = 0;"
7499
7500 # Code to be used in simple link tests
7501 lt_simple_link_test_code='int main(){return(0);}'
7502
7503
7504
7505
7506
7507
7508
7509 # If no C compiler was specified, use CC.
7510 LTCC=${LTCC-"$CC"}
7511
7512 # If no C compiler flags were specified, use CFLAGS.
7513 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7514
7515 # Allow CC to be a program name with arguments.
7516 compiler=$CC
7517
7518 # Save the default compiler, since it gets overwritten when the other
7519 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7520 compiler_DEFAULT=$CC
7521
7522 # save warnings/boilerplate of simple test code
7523 ac_outfile=conftest.$ac_objext
7524 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7525 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7526 _lt_compiler_boilerplate=`cat conftest.err`
7527 $RM conftest*
7528
7529 ac_outfile=conftest.$ac_objext
7530 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7531 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7532 _lt_linker_boilerplate=`cat conftest.err`
7533 $RM conftest*
7534
7535
7536 ## CAVEAT EMPTOR:
7537 ## There is no encapsulation within the following macros, do not change
7538 ## the running order or otherwise move them around unless you know exactly
7539 ## what you are doing...
7540 if test -n "$compiler"; then
7541
7542 lt_prog_compiler_no_builtin_flag=
7543
7544 if test "$GCC" = yes; then
7545   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7546
7547   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7548 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7549 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7550   echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552   lt_cv_prog_compiler_rtti_exceptions=no
7553    ac_outfile=conftest.$ac_objext
7554    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7555    lt_compiler_flag="-fno-rtti -fno-exceptions"
7556    # Insert the option either (1) after the last *FLAGS variable, or
7557    # (2) before a word containing "conftest.", or (3) at the end.
7558    # Note that $ac_compile itself does not contain backslashes and begins
7559    # with a dollar sign (not a hyphen), so the echo should work correctly.
7560    # The option is referenced via a variable to avoid confusing sed.
7561    lt_compile=`echo "$ac_compile" | $SED \
7562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7564    -e 's:$: $lt_compiler_flag:'`
7565    (eval echo "\"\$as_me:7565: $lt_compile\"" >&5)
7566    (eval "$lt_compile" 2>conftest.err)
7567    ac_status=$?
7568    cat conftest.err >&5
7569    echo "$as_me:7569: \$? = $ac_status" >&5
7570    if (exit $ac_status) && test -s "$ac_outfile"; then
7571      # The compiler can only warn and ignore the option if not recognized
7572      # So say no if there are warnings other than the usual output.
7573      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7574      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7575      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7576        lt_cv_prog_compiler_rtti_exceptions=yes
7577      fi
7578    fi
7579    $RM conftest*
7580
7581 fi
7582 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7583 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7584
7585 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7586     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7587 else
7588     :
7589 fi
7590
7591 fi
7592
7593
7594
7595
7596
7597
7598   lt_prog_compiler_wl=
7599 lt_prog_compiler_pic=
7600 lt_prog_compiler_static=
7601
7602 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7603 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7604
7605   if test "$GCC" = yes; then
7606     lt_prog_compiler_wl='-Wl,'
7607     lt_prog_compiler_static='-static'
7608
7609     case $host_os in
7610       aix*)
7611       # All AIX code is PIC.
7612       if test "$host_cpu" = ia64; then
7613         # AIX 5 now supports IA64 processor
7614         lt_prog_compiler_static='-Bstatic'
7615       fi
7616       ;;
7617
7618     amigaos*)
7619       if test "$host_cpu" = m68k; then
7620         # FIXME: we need at least 68020 code to build shared libraries, but
7621         # adding the `-m68020' flag to GCC prevents building anything better,
7622         # like `-m68040'.
7623         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7624       fi
7625       ;;
7626
7627     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7628       # PIC is the default for these OSes.
7629       ;;
7630
7631     mingw* | cygwin* | pw32* | os2*)
7632       # This hack is so that the source file can tell whether it is being
7633       # built for inclusion in a dll (and should export symbols for example).
7634       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7635       # (--disable-auto-import) libraries
7636       lt_prog_compiler_pic='-DDLL_EXPORT'
7637       ;;
7638
7639     darwin* | rhapsody*)
7640       # PIC is the default on this platform
7641       # Common symbols not allowed in MH_DYLIB files
7642       lt_prog_compiler_pic='-fno-common'
7643       ;;
7644
7645     hpux*)
7646       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7647       # not for PA HP-UX.
7648       case $host_cpu in
7649       hppa*64*|ia64*)
7650         # +Z the default
7651         ;;
7652       *)
7653         lt_prog_compiler_pic='-fPIC'
7654         ;;
7655       esac
7656       ;;
7657
7658     interix[3-9]*)
7659       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7660       # Instead, we relocate shared libraries at runtime.
7661       ;;
7662
7663     msdosdjgpp*)
7664       # Just because we use GCC doesn't mean we suddenly get shared libraries
7665       # on systems that don't support them.
7666       lt_prog_compiler_can_build_shared=no
7667       enable_shared=no
7668       ;;
7669
7670     *nto* | *qnx*)
7671       # QNX uses GNU C++, but need to define -shared option too, otherwise
7672       # it will coredump.
7673       lt_prog_compiler_pic='-fPIC -shared'
7674       ;;
7675
7676     sysv4*MP*)
7677       if test -d /usr/nec; then
7678         lt_prog_compiler_pic=-Kconform_pic
7679       fi
7680       ;;
7681
7682     *)
7683       lt_prog_compiler_pic='-fPIC'
7684       ;;
7685     esac
7686   else
7687     # PORTME Check for flag to pass linker flags through the system compiler.
7688     case $host_os in
7689     aix*)
7690       lt_prog_compiler_wl='-Wl,'
7691       if test "$host_cpu" = ia64; then
7692         # AIX 5 now supports IA64 processor
7693         lt_prog_compiler_static='-Bstatic'
7694       else
7695         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7696       fi
7697       ;;
7698     darwin*)
7699       # PIC is the default on this platform
7700       # Common symbols not allowed in MH_DYLIB files
7701       case $cc_basename in
7702       xlc*)
7703         lt_prog_compiler_pic='-qnocommon'
7704         lt_prog_compiler_wl='-Wl,'
7705         ;;
7706       esac
7707       ;;
7708
7709     mingw* | cygwin* | pw32* | os2*)
7710       # This hack is so that the source file can tell whether it is being
7711       # built for inclusion in a dll (and should export symbols for example).
7712       lt_prog_compiler_pic='-DDLL_EXPORT'
7713       ;;
7714
7715     hpux9* | hpux10* | hpux11*)
7716       lt_prog_compiler_wl='-Wl,'
7717       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7718       # not for PA HP-UX.
7719       case $host_cpu in
7720       hppa*64*|ia64*)
7721         # +Z the default
7722         ;;
7723       *)
7724         lt_prog_compiler_pic='+Z'
7725         ;;
7726       esac
7727       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7728       lt_prog_compiler_static='${wl}-a ${wl}archive'
7729       ;;
7730
7731     irix5* | irix6* | nonstopux*)
7732       lt_prog_compiler_wl='-Wl,'
7733       # PIC (with -KPIC) is the default.
7734       lt_prog_compiler_static='-non_shared'
7735       ;;
7736
7737     linux* | k*bsd*-gnu)
7738       case $cc_basename in
7739       icc* | ecc*)
7740         lt_prog_compiler_wl='-Wl,'
7741         lt_prog_compiler_pic='-KPIC'
7742         lt_prog_compiler_static='-static'
7743         ;;
7744       pgcc* | pgf77* | pgf90* | pgf95*)
7745         # Portland Group compilers (*not* the Pentium gcc compiler,
7746         # which looks to be a dead project)
7747         lt_prog_compiler_wl='-Wl,'
7748         lt_prog_compiler_pic='-fpic'
7749         lt_prog_compiler_static='-Bstatic'
7750         ;;
7751       ccc*)
7752         lt_prog_compiler_wl='-Wl,'
7753         # All Alpha code is PIC.
7754         lt_prog_compiler_static='-non_shared'
7755         ;;
7756       *)
7757         case `$CC -V 2>&1 | sed 5q` in
7758         *Sun\ C*)
7759           # Sun C 5.9
7760           lt_prog_compiler_pic='-KPIC'
7761           lt_prog_compiler_static='-Bstatic'
7762           lt_prog_compiler_wl='-Wl,'
7763           ;;
7764         *Sun\ F*)
7765           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7766           lt_prog_compiler_pic='-KPIC'
7767           lt_prog_compiler_static='-Bstatic'
7768           lt_prog_compiler_wl=''
7769           ;;
7770         esac
7771         ;;
7772       esac
7773       ;;
7774
7775     newsos6)
7776       lt_prog_compiler_pic='-KPIC'
7777       lt_prog_compiler_static='-Bstatic'
7778       ;;
7779
7780     *nto* | *qnx*)
7781       # QNX uses GNU C++, but need to define -shared option too, otherwise
7782       # it will coredump.
7783       lt_prog_compiler_pic='-fPIC -shared'
7784       ;;
7785
7786     osf3* | osf4* | osf5*)
7787       lt_prog_compiler_wl='-Wl,'
7788       # All OSF/1 code is PIC.
7789       lt_prog_compiler_static='-non_shared'
7790       ;;
7791
7792     rdos*)
7793       lt_prog_compiler_static='-non_shared'
7794       ;;
7795
7796     solaris*)
7797       lt_prog_compiler_pic='-KPIC'
7798       lt_prog_compiler_static='-Bstatic'
7799       case $cc_basename in
7800       f77* | f90* | f95*)
7801         lt_prog_compiler_wl='-Qoption ld ';;
7802       *)
7803         lt_prog_compiler_wl='-Wl,';;
7804       esac
7805       ;;
7806
7807     sunos4*)
7808       lt_prog_compiler_wl='-Qoption ld '
7809       lt_prog_compiler_pic='-PIC'
7810       lt_prog_compiler_static='-Bstatic'
7811       ;;
7812
7813     sysv4 | sysv4.2uw2* | sysv4.3*)
7814       lt_prog_compiler_wl='-Wl,'
7815       lt_prog_compiler_pic='-KPIC'
7816       lt_prog_compiler_static='-Bstatic'
7817       ;;
7818
7819     sysv4*MP*)
7820       if test -d /usr/nec ;then
7821         lt_prog_compiler_pic='-Kconform_pic'
7822         lt_prog_compiler_static='-Bstatic'
7823       fi
7824       ;;
7825
7826     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7827       lt_prog_compiler_wl='-Wl,'
7828       lt_prog_compiler_pic='-KPIC'
7829       lt_prog_compiler_static='-Bstatic'
7830       ;;
7831
7832     unicos*)
7833       lt_prog_compiler_wl='-Wl,'
7834       lt_prog_compiler_can_build_shared=no
7835       ;;
7836
7837     uts4*)
7838       lt_prog_compiler_pic='-pic'
7839       lt_prog_compiler_static='-Bstatic'
7840       ;;
7841
7842     *)
7843       lt_prog_compiler_can_build_shared=no
7844       ;;
7845     esac
7846   fi
7847
7848 case $host_os in
7849   # For platforms which do not support PIC, -DPIC is meaningless:
7850   *djgpp*)
7851     lt_prog_compiler_pic=
7852     ;;
7853   *)
7854     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7855     ;;
7856 esac
7857 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7858 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7859
7860
7861
7862
7863
7864
7865 #
7866 # Check to make sure the PIC flag actually works.
7867 #
7868 if test -n "$lt_prog_compiler_pic"; then
7869   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7870 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7871 if test "${lt_prog_compiler_pic_works+set}" = set; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 else
7874   lt_prog_compiler_pic_works=no
7875    ac_outfile=conftest.$ac_objext
7876    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7877    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7878    # Insert the option either (1) after the last *FLAGS variable, or
7879    # (2) before a word containing "conftest.", or (3) at the end.
7880    # Note that $ac_compile itself does not contain backslashes and begins
7881    # with a dollar sign (not a hyphen), so the echo should work correctly.
7882    # The option is referenced via a variable to avoid confusing sed.
7883    lt_compile=`echo "$ac_compile" | $SED \
7884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7886    -e 's:$: $lt_compiler_flag:'`
7887    (eval echo "\"\$as_me:7887: $lt_compile\"" >&5)
7888    (eval "$lt_compile" 2>conftest.err)
7889    ac_status=$?
7890    cat conftest.err >&5
7891    echo "$as_me:7891: \$? = $ac_status" >&5
7892    if (exit $ac_status) && test -s "$ac_outfile"; then
7893      # The compiler can only warn and ignore the option if not recognized
7894      # So say no if there are warnings other than the usual output.
7895      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7896      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7897      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7898        lt_prog_compiler_pic_works=yes
7899      fi
7900    fi
7901    $RM conftest*
7902
7903 fi
7904 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7905 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7906
7907 if test x"$lt_prog_compiler_pic_works" = xyes; then
7908     case $lt_prog_compiler_pic in
7909      "" | " "*) ;;
7910      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7911      esac
7912 else
7913     lt_prog_compiler_pic=
7914      lt_prog_compiler_can_build_shared=no
7915 fi
7916
7917 fi
7918
7919
7920
7921
7922
7923
7924 #
7925 # Check to make sure the static flag actually works.
7926 #
7927 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7928 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7929 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7930 if test "${lt_prog_compiler_static_works+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   lt_prog_compiler_static_works=no
7934    save_LDFLAGS="$LDFLAGS"
7935    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7936    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7937    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7938      # The linker can only warn and ignore the option if not recognized
7939      # So say no if there are warnings
7940      if test -s conftest.err; then
7941        # Append any errors to the config.log.
7942        cat conftest.err 1>&5
7943        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7944        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7945        if diff conftest.exp conftest.er2 >/dev/null; then
7946          lt_prog_compiler_static_works=yes
7947        fi
7948      else
7949        lt_prog_compiler_static_works=yes
7950      fi
7951    fi
7952    $RM conftest*
7953    LDFLAGS="$save_LDFLAGS"
7954
7955 fi
7956 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7957 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7958
7959 if test x"$lt_prog_compiler_static_works" = xyes; then
7960     :
7961 else
7962     lt_prog_compiler_static=
7963 fi
7964
7965
7966
7967
7968
7969
7970
7971   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7972 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7973 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   lt_cv_prog_compiler_c_o=no
7977    $RM -r conftest 2>/dev/null
7978    mkdir conftest
7979    cd conftest
7980    mkdir out
7981    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7982
7983    lt_compiler_flag="-o out/conftest2.$ac_objext"
7984    # Insert the option either (1) after the last *FLAGS variable, or
7985    # (2) before a word containing "conftest.", or (3) at the end.
7986    # Note that $ac_compile itself does not contain backslashes and begins
7987    # with a dollar sign (not a hyphen), so the echo should work correctly.
7988    lt_compile=`echo "$ac_compile" | $SED \
7989    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7990    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7991    -e 's:$: $lt_compiler_flag:'`
7992    (eval echo "\"\$as_me:7992: $lt_compile\"" >&5)
7993    (eval "$lt_compile" 2>out/conftest.err)
7994    ac_status=$?
7995    cat out/conftest.err >&5
7996    echo "$as_me:7996: \$? = $ac_status" >&5
7997    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7998    then
7999      # The compiler can only warn and ignore the option if not recognized
8000      # So say no if there are warnings
8001      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8002      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8003      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8004        lt_cv_prog_compiler_c_o=yes
8005      fi
8006    fi
8007    chmod u+w . 2>&5
8008    $RM conftest*
8009    # SGI C++ compiler will create directory out/ii_files/ for
8010    # template instantiation
8011    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8012    $RM out/* && rmdir out
8013    cd ..
8014    $RM -r conftest
8015    $RM conftest*
8016
8017 fi
8018 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8019 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8020
8021
8022
8023
8024
8025
8026   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8027 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8028 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8029   echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031   lt_cv_prog_compiler_c_o=no
8032    $RM -r conftest 2>/dev/null
8033    mkdir conftest
8034    cd conftest
8035    mkdir out
8036    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8037
8038    lt_compiler_flag="-o out/conftest2.$ac_objext"
8039    # Insert the option either (1) after the last *FLAGS variable, or
8040    # (2) before a word containing "conftest.", or (3) at the end.
8041    # Note that $ac_compile itself does not contain backslashes and begins
8042    # with a dollar sign (not a hyphen), so the echo should work correctly.
8043    lt_compile=`echo "$ac_compile" | $SED \
8044    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8045    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8046    -e 's:$: $lt_compiler_flag:'`
8047    (eval echo "\"\$as_me:8047: $lt_compile\"" >&5)
8048    (eval "$lt_compile" 2>out/conftest.err)
8049    ac_status=$?
8050    cat out/conftest.err >&5
8051    echo "$as_me:8051: \$? = $ac_status" >&5
8052    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8053    then
8054      # The compiler can only warn and ignore the option if not recognized
8055      # So say no if there are warnings
8056      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8057      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8058      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8059        lt_cv_prog_compiler_c_o=yes
8060      fi
8061    fi
8062    chmod u+w . 2>&5
8063    $RM conftest*
8064    # SGI C++ compiler will create directory out/ii_files/ for
8065    # template instantiation
8066    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8067    $RM out/* && rmdir out
8068    cd ..
8069    $RM -r conftest
8070    $RM conftest*
8071
8072 fi
8073 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8074 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8075
8076
8077
8078
8079 hard_links="nottested"
8080 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8081   # do not overwrite the value of need_locks provided by the user
8082   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8083 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8084   hard_links=yes
8085   $RM conftest*
8086   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8087   touch conftest.a
8088   ln conftest.a conftest.b 2>&5 || hard_links=no
8089   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8090   echo "$as_me:$LINENO: result: $hard_links" >&5
8091 echo "${ECHO_T}$hard_links" >&6
8092   if test "$hard_links" = no; then
8093     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8094 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8095     need_locks=warn
8096   fi
8097 else
8098   need_locks=no
8099 fi
8100
8101
8102
8103
8104
8105
8106   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8107 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8108
8109   runpath_var=
8110   allow_undefined_flag=
8111   always_export_symbols=no
8112   archive_cmds=
8113   archive_expsym_cmds=
8114   compiler_needs_object=no
8115   enable_shared_with_static_runtimes=no
8116   export_dynamic_flag_spec=
8117   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8118   hardcode_automatic=no
8119   hardcode_direct=no
8120   hardcode_direct_absolute=no
8121   hardcode_libdir_flag_spec=
8122   hardcode_libdir_flag_spec_ld=
8123   hardcode_libdir_separator=
8124   hardcode_minus_L=no
8125   hardcode_shlibpath_var=unsupported
8126   inherit_rpath=no
8127   link_all_deplibs=unknown
8128   module_cmds=
8129   module_expsym_cmds=
8130   old_archive_from_new_cmds=
8131   old_archive_from_expsyms_cmds=
8132   thread_safe_flag_spec=
8133   whole_archive_flag_spec=
8134   # include_expsyms should be a list of space-separated symbols to be *always*
8135   # included in the symbol list
8136   include_expsyms=
8137   # exclude_expsyms can be an extended regexp of symbols to exclude
8138   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8139   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8140   # as well as any symbol that contains `d'.
8141   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8142   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8143   # platforms (ab)use it in PIC code, but their linkers get confused if
8144   # the symbol is explicitly referenced.  Since portable code cannot
8145   # rely on this symbol name, it's probably fine to never include it in
8146   # preloaded symbol tables.
8147   extract_expsyms_cmds=
8148
8149   case $host_os in
8150   cygwin* | mingw* | pw32*)
8151     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8152     # When not using gcc, we currently assume that we are using
8153     # Microsoft Visual C++.
8154     if test "$GCC" != yes; then
8155       with_gnu_ld=no
8156     fi
8157     ;;
8158   interix*)
8159     # we just hope/assume this is gcc and not c89 (= MSVC++)
8160     with_gnu_ld=yes
8161     ;;
8162   openbsd*)
8163     with_gnu_ld=no
8164     ;;
8165   esac
8166
8167   ld_shlibs=yes
8168   if test "$with_gnu_ld" = yes; then
8169     # If archive_cmds runs LD, not CC, wlarc should be empty
8170     wlarc='${wl}'
8171
8172     # Set some defaults for GNU ld with shared library support. These
8173     # are reset later if shared libraries are not supported. Putting them
8174     # here allows them to be overridden if necessary.
8175     runpath_var=LD_RUN_PATH
8176     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8177     export_dynamic_flag_spec='${wl}--export-dynamic'
8178     # ancient GNU ld didn't support --whole-archive et. al.
8179     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8180       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8181     else
8182       whole_archive_flag_spec=
8183     fi
8184     supports_anon_versioning=no
8185     case `$LD -v 2>&1` in
8186       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8187       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8188       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8189       *\ 2.11.*) ;; # other 2.11 versions
8190       *) supports_anon_versioning=yes ;;
8191     esac
8192
8193     # See if GNU ld supports shared libraries.
8194     case $host_os in
8195     aix[3-9]*)
8196       # On AIX/PPC, the GNU linker is very broken
8197       if test "$host_cpu" != ia64; then
8198         ld_shlibs=no
8199         cat <<_LT_EOF 1>&2
8200
8201 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8202 *** to be unable to reliably create shared libraries on AIX.
8203 *** Therefore, libtool is disabling shared libraries support.  If you
8204 *** really care for shared libraries, you may want to modify your PATH
8205 *** so that a non-GNU linker is found, and then restart.
8206
8207 _LT_EOF
8208       fi
8209       ;;
8210
8211     amigaos*)
8212       if test "$host_cpu" = m68k; then
8213         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)'
8214         hardcode_libdir_flag_spec='-L$libdir'
8215         hardcode_minus_L=yes
8216       fi
8217
8218       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8219       # that the semantics of dynamic libraries on AmigaOS, at least up
8220       # to version 4, is to share data among multiple programs linked
8221       # with the same dynamic library.  Since this doesn't match the
8222       # behavior of shared libraries on other platforms, we can't use
8223       # them.
8224       ld_shlibs=no
8225       ;;
8226
8227     beos*)
8228       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8229         allow_undefined_flag=unsupported
8230         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8231         # support --undefined.  This deserves some investigation.  FIXME
8232         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8233       else
8234         ld_shlibs=no
8235       fi
8236       ;;
8237
8238     cygwin* | mingw* | pw32*)
8239       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8240       # as there is no search path for DLLs.
8241       hardcode_libdir_flag_spec='-L$libdir'
8242       allow_undefined_flag=unsupported
8243       always_export_symbols=no
8244       enable_shared_with_static_runtimes=yes
8245       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8246
8247       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8248         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8249         # If the export-symbols file already is a .def file (1st line
8250         # is EXPORTS), use it as is; otherwise, prepend...
8251         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8252           cp $export_symbols $output_objdir/$soname.def;
8253         else
8254           echo EXPORTS > $output_objdir/$soname.def;
8255           cat $export_symbols >> $output_objdir/$soname.def;
8256         fi~
8257         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8258       else
8259         ld_shlibs=no
8260       fi
8261       ;;
8262
8263     interix[3-9]*)
8264       hardcode_direct=no
8265       hardcode_shlibpath_var=no
8266       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8267       export_dynamic_flag_spec='${wl}-E'
8268       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8269       # Instead, shared libraries are loaded at an image base (0x10000000 by
8270       # default) and relocated if they conflict, which is a slow very memory
8271       # consuming and fragmenting process.  To avoid this, we pick a random,
8272       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8273       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8274       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8275       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'
8276       ;;
8277
8278     gnu* | linux* | tpf* | k*bsd*-gnu)
8279       tmp_diet=no
8280       if test "$host_os" = linux-dietlibc; then
8281         case $cc_basename in
8282           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8283         esac
8284       fi
8285       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8286          && test "$tmp_diet" = no
8287       then
8288         tmp_addflag=
8289         case $cc_basename,$host_cpu in
8290         pgcc*)                          # Portland Group C compiler
8291           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'
8292           tmp_addflag=' $pic_flag'
8293           ;;
8294         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8295           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'
8296           tmp_addflag=' $pic_flag -Mnomain' ;;
8297         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8298           tmp_addflag=' -i_dynamic' ;;
8299         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8300           tmp_addflag=' -i_dynamic -nofor_main' ;;
8301         ifc* | ifort*)                  # Intel Fortran compiler
8302           tmp_addflag=' -nofor_main' ;;
8303         esac
8304         case `$CC -V 2>&1 | sed 5q` in
8305         *Sun\ C*)                       # Sun C 5.9
8306           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8307           compiler_needs_object=yes
8308           tmp_sharedflag='-G' ;;
8309         *Sun\ F*)                       # Sun Fortran 8.3
8310           tmp_sharedflag='-G' ;;
8311         *)
8312           tmp_sharedflag='-shared' ;;
8313         esac
8314         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315
8316         if test "x$supports_anon_versioning" = xyes; then
8317           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8318             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8319             echo "local: *; };" >> $output_objdir/$libname.ver~
8320             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8321         fi
8322       else
8323         ld_shlibs=no
8324       fi
8325       ;;
8326
8327     netbsd*)
8328       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8329         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8330         wlarc=
8331       else
8332         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8334       fi
8335       ;;
8336
8337     solaris*)
8338       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8339         ld_shlibs=no
8340         cat <<_LT_EOF 1>&2
8341
8342 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8343 *** create shared libraries on Solaris systems.  Therefore, libtool
8344 *** is disabling shared libraries support.  We urge you to upgrade GNU
8345 *** binutils to release 2.9.1 or newer.  Another option is to modify
8346 *** your PATH or compiler configuration so that the native linker is
8347 *** used, and then restart.
8348
8349 _LT_EOF
8350       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8351         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353       else
8354         ld_shlibs=no
8355       fi
8356       ;;
8357
8358     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8359       case `$LD -v 2>&1` in
8360         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8361         ld_shlibs=no
8362         cat <<_LT_EOF 1>&2
8363
8364 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8365 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8366 *** is disabling shared libraries support.  We urge you to upgrade GNU
8367 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8368 *** your PATH or compiler configuration so that the native linker is
8369 *** used, and then restart.
8370
8371 _LT_EOF
8372         ;;
8373         *)
8374           # For security reasons, it is highly recommended that you always
8375           # use absolute paths for naming shared libraries, and exclude the
8376           # DT_RUNPATH tag from executables and libraries.  But doing so
8377           # requires that you compile everything twice, which is a pain.
8378           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8379             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8380             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8382           else
8383             ld_shlibs=no
8384           fi
8385         ;;
8386       esac
8387       ;;
8388
8389     sunos4*)
8390       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8391       wlarc=
8392       hardcode_direct=yes
8393       hardcode_shlibpath_var=no
8394       ;;
8395
8396     *)
8397       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8398         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8399         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8400       else
8401         ld_shlibs=no
8402       fi
8403       ;;
8404     esac
8405
8406     if test "$ld_shlibs" = no; then
8407       runpath_var=
8408       hardcode_libdir_flag_spec=
8409       export_dynamic_flag_spec=
8410       whole_archive_flag_spec=
8411     fi
8412   else
8413     # PORTME fill in a description of your system's linker (not GNU ld)
8414     case $host_os in
8415     aix3*)
8416       allow_undefined_flag=unsupported
8417       always_export_symbols=yes
8418       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'
8419       # Note: this linker hardcodes the directories in LIBPATH if there
8420       # are no directories specified by -L.
8421       hardcode_minus_L=yes
8422       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8423         # Neither direct hardcoding nor static linking is supported with a
8424         # broken collect2.
8425         hardcode_direct=unsupported
8426       fi
8427       ;;
8428
8429     aix[4-9]*)
8430       if test "$host_cpu" = ia64; then
8431         # On IA64, the linker does run time linking by default, so we don't
8432         # have to do anything special.
8433         aix_use_runtimelinking=no
8434         exp_sym_flag='-Bexport'
8435         no_entry_flag=""
8436       else
8437         # If we're using GNU nm, then we don't want the "-C" option.
8438         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8439         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8440           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'
8441         else
8442           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'
8443         fi
8444         aix_use_runtimelinking=no
8445
8446         # Test if we are trying to use run time linking or normal
8447         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8448         # need to do runtime linking.
8449         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8450           for ld_flag in $LDFLAGS; do
8451           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8452             aix_use_runtimelinking=yes
8453             break
8454           fi
8455           done
8456           ;;
8457         esac
8458
8459         exp_sym_flag='-bexport'
8460         no_entry_flag='-bnoentry'
8461       fi
8462
8463       # When large executables or shared objects are built, AIX ld can
8464       # have problems creating the table of contents.  If linking a library
8465       # or program results in "error TOC overflow" add -mminimal-toc to
8466       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8467       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8468
8469       archive_cmds=''
8470       hardcode_direct=yes
8471       hardcode_direct_absolute=yes
8472       hardcode_libdir_separator=':'
8473       link_all_deplibs=yes
8474       file_list_spec='${wl}-f,'
8475
8476       if test "$GCC" = yes; then
8477         case $host_os in aix4.[012]|aix4.[012].*)
8478         # We only want to do this on AIX 4.2 and lower, the check
8479         # below for broken collect2 doesn't work under 4.3+
8480           collect2name=`${CC} -print-prog-name=collect2`
8481           if test -f "$collect2name" &&
8482            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8483           then
8484           # We have reworked collect2
8485           :
8486           else
8487           # We have old collect2
8488           hardcode_direct=unsupported
8489           # It fails to find uninstalled libraries when the uninstalled
8490           # path is not listed in the libpath.  Setting hardcode_minus_L
8491           # to unsupported forces relinking
8492           hardcode_minus_L=yes
8493           hardcode_libdir_flag_spec='-L$libdir'
8494           hardcode_libdir_separator=
8495           fi
8496           ;;
8497         esac
8498         shared_flag='-shared'
8499         if test "$aix_use_runtimelinking" = yes; then
8500           shared_flag="$shared_flag "'${wl}-G'
8501         fi
8502       else
8503         # not using gcc
8504         if test "$host_cpu" = ia64; then
8505         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8506         # chokes on -Wl,-G. The following line is correct:
8507           shared_flag='-G'
8508         else
8509           if test "$aix_use_runtimelinking" = yes; then
8510             shared_flag='${wl}-G'
8511           else
8512             shared_flag='${wl}-bM:SRE'
8513           fi
8514         fi
8515       fi
8516
8517       # It seems that -bexpall does not export symbols beginning with
8518       # underscore (_), so it is better to generate a list of symbols to export.
8519       always_export_symbols=yes
8520       if test "$aix_use_runtimelinking" = yes; then
8521         # Warning - without using the other runtime loading flags (-brtl),
8522         # -berok will link without error, but may produce a broken library.
8523         allow_undefined_flag='-berok'
8524         # Determine the default libpath from the value encoded in an
8525         # empty executable.
8526         cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532
8533 int
8534 main ()
8535 {
8536
8537   ;
8538   return 0;
8539 }
8540 _ACEOF
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543   (eval $ac_link) 2>conftest.er1
8544   ac_status=$?
8545   grep -v '^ *+' conftest.er1 >conftest.err
8546   rm -f conftest.er1
8547   cat conftest.err >&5
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); } &&
8550          { ac_try='test -z "$ac_c_werror_flag"
8551                          || test ! -s conftest.err'
8552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; } &&
8557          { ac_try='test -s conftest$ac_exeext'
8558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559   (eval $ac_try) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; }; then
8563
8564 lt_aix_libpath_sed='
8565     /Import File Strings/,/^$/ {
8566         /^0/ {
8567             s/^0  *\(.*\)$/\1/
8568             p
8569         }
8570     }'
8571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8572 # Check for a 64-bit object if we didn't find anything.
8573 if test -z "$aix_libpath"; then
8574   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8575 fi
8576 else
8577   echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8579
8580 fi
8581 rm -f conftest.err conftest.$ac_objext \
8582       conftest$ac_exeext conftest.$ac_ext
8583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8584
8585         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8586         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8587       else
8588         if test "$host_cpu" = ia64; then
8589           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8590           allow_undefined_flag="-z nodefs"
8591           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"
8592         else
8593          # Determine the default libpath from the value encoded in an
8594          # empty executable.
8595          cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h.  */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h.  */
8601
8602 int
8603 main ()
8604 {
8605
8606   ;
8607   return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext conftest$ac_exeext
8611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8612   (eval $ac_link) 2>conftest.er1
8613   ac_status=$?
8614   grep -v '^ *+' conftest.er1 >conftest.err
8615   rm -f conftest.er1
8616   cat conftest.err >&5
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); } &&
8619          { ac_try='test -z "$ac_c_werror_flag"
8620                          || test ! -s conftest.err'
8621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622   (eval $ac_try) 2>&5
8623   ac_status=$?
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); }; } &&
8626          { ac_try='test -s conftest$ac_exeext'
8627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628   (eval $ac_try) 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }; }; then
8632
8633 lt_aix_libpath_sed='
8634     /Import File Strings/,/^$/ {
8635         /^0/ {
8636             s/^0  *\(.*\)$/\1/
8637             p
8638         }
8639     }'
8640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8641 # Check for a 64-bit object if we didn't find anything.
8642 if test -z "$aix_libpath"; then
8643   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8644 fi
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649 fi
8650 rm -f conftest.err conftest.$ac_objext \
8651       conftest$ac_exeext conftest.$ac_ext
8652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8653
8654          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8655           # Warning - without using the other run time loading flags,
8656           # -berok will link without error, but may produce a broken library.
8657           no_undefined_flag=' ${wl}-bernotok'
8658           allow_undefined_flag=' ${wl}-berok'
8659           # Exported symbols can be pulled into shared objects from archives
8660           whole_archive_flag_spec='$convenience'
8661           archive_cmds_need_lc=yes
8662           # This is similar to how AIX traditionally builds its shared libraries.
8663           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'
8664         fi
8665       fi
8666       ;;
8667
8668     amigaos*)
8669       if test "$host_cpu" = m68k; then
8670         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)'
8671         hardcode_libdir_flag_spec='-L$libdir'
8672         hardcode_minus_L=yes
8673       fi
8674       # see comment about different semantics on the GNU ld section
8675       ld_shlibs=no
8676       ;;
8677
8678     bsdi[45]*)
8679       export_dynamic_flag_spec=-rdynamic
8680       ;;
8681
8682     cygwin* | mingw* | pw32*)
8683       # When not using gcc, we currently assume that we are using
8684       # Microsoft Visual C++.
8685       # hardcode_libdir_flag_spec is actually meaningless, as there is
8686       # no search path for DLLs.
8687       hardcode_libdir_flag_spec=' '
8688       allow_undefined_flag=unsupported
8689       # Tell ltmain to make .lib files, not .a files.
8690       libext=lib
8691       # Tell ltmain to make .dll files, not .so files.
8692       shrext_cmds=".dll"
8693       # FIXME: Setting linknames here is a bad hack.
8694       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8695       # The linker will automatically build a .lib file if we build a DLL.
8696       old_archive_from_new_cmds='true'
8697       # FIXME: Should let the user specify the lib program.
8698       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8699       fix_srcfile_path='`cygpath -w "$srcfile"`'
8700       enable_shared_with_static_runtimes=yes
8701       ;;
8702
8703     darwin* | rhapsody*)
8704       case $host_os in
8705       rhapsody* | darwin1.[012])
8706         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8707         ;;
8708       *) # Darwin 1.3 on
8709         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8710         10.[012])
8711           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8712           ;;
8713         10.*)
8714           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8715           ;;
8716         esac
8717         ;;
8718       esac
8719       archive_cmds_need_lc=no
8720       hardcode_direct=no
8721       hardcode_automatic=yes
8722       hardcode_shlibpath_var=unsupported
8723       whole_archive_flag_spec=''
8724       link_all_deplibs=yes
8725       if test "$GCC" = yes ; then
8726         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8727   echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729   lt_cv_apple_cc_single_mod=no
8730         if test -z "${LT_MULTI_MODULE}"; then
8731           # By default we will add the -single_module flag. You can override
8732           # by either setting the environment variable LT_MULTI_MODULE
8733           # non-empty at configure time, or by adding -multi-module to the
8734           # link flags.
8735           echo "int foo(void){return 1;}" > conftest.c
8736           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8737               -dynamiclib ${wl}-single_module conftest.c
8738           if test -f libconftest.dylib; then
8739               lt_cv_apple_cc_single_mod=yes
8740               rm libconftest.dylib
8741           fi
8742           rm conftest.$ac_ext
8743         fi
8744 fi
8745
8746         output_verbose_link_cmd=echo
8747         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8748           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8749           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8750         else
8751           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8752           archive_expsym_cmds='sed "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}'
8753         fi
8754         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8755         module_expsym_cmds='sed -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}'
8756       else
8757         case $cc_basename in
8758         xlc*)
8759           output_verbose_link_cmd=echo
8760           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8761           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8762           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8763           archive_expsym_cmds='sed "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}'
8764           module_expsym_cmds='sed "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}'
8765           ;;
8766         *)
8767           ld_shlibs=no
8768           ;;
8769         esac
8770       fi
8771       ;;
8772
8773     dgux*)
8774       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775       hardcode_libdir_flag_spec='-L$libdir'
8776       hardcode_shlibpath_var=no
8777       ;;
8778
8779     freebsd1*)
8780       ld_shlibs=no
8781       ;;
8782
8783     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8784     # support.  Future versions do this automatically, but an explicit c++rt0.o
8785     # does not break anything, and helps significantly (at the cost of a little
8786     # extra space).
8787     freebsd2.2*)
8788       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8789       hardcode_libdir_flag_spec='-R$libdir'
8790       hardcode_direct=yes
8791       hardcode_shlibpath_var=no
8792       ;;
8793
8794     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8795     freebsd2*)
8796       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8797       hardcode_direct=yes
8798       hardcode_minus_L=yes
8799       hardcode_shlibpath_var=no
8800       ;;
8801
8802     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8803     freebsd* | dragonfly*)
8804       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8805       hardcode_libdir_flag_spec='-R$libdir'
8806       hardcode_direct=yes
8807       hardcode_shlibpath_var=no
8808       ;;
8809
8810     hpux9*)
8811       if test "$GCC" = yes; then
8812         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'
8813       else
8814         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'
8815       fi
8816       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8817       hardcode_libdir_separator=:
8818       hardcode_direct=yes
8819
8820       # hardcode_minus_L: Not really in the search PATH,
8821       # but as the default location of the library.
8822       hardcode_minus_L=yes
8823       export_dynamic_flag_spec='${wl}-E'
8824       ;;
8825
8826     hpux10*)
8827       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8828         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8829       else
8830         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8831       fi
8832       if test "$with_gnu_ld" = no; then
8833         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8834         hardcode_libdir_flag_spec_ld='+b $libdir'
8835         hardcode_libdir_separator=:
8836         hardcode_direct=yes
8837         hardcode_direct_absolute=yes
8838         export_dynamic_flag_spec='${wl}-E'
8839         # hardcode_minus_L: Not really in the search PATH,
8840         # but as the default location of the library.
8841         hardcode_minus_L=yes
8842       fi
8843       ;;
8844
8845     hpux11*)
8846       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8847         case $host_cpu in
8848         hppa*64*)
8849           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850           ;;
8851         ia64*)
8852           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8853           ;;
8854         *)
8855           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8856           ;;
8857         esac
8858       else
8859         case $host_cpu in
8860         hppa*64*)
8861           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8862           ;;
8863         ia64*)
8864           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8865           ;;
8866         *)
8867           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8868           ;;
8869         esac
8870       fi
8871       if test "$with_gnu_ld" = no; then
8872         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8873         hardcode_libdir_separator=:
8874
8875         case $host_cpu in
8876         hppa*64*|ia64*)
8877           hardcode_direct=no
8878           hardcode_shlibpath_var=no
8879           ;;
8880         *)
8881           hardcode_direct=yes
8882           hardcode_direct_absolute=yes
8883           export_dynamic_flag_spec='${wl}-E'
8884
8885           # hardcode_minus_L: Not really in the search PATH,
8886           # but as the default location of the library.
8887           hardcode_minus_L=yes
8888           ;;
8889         esac
8890       fi
8891       ;;
8892
8893     irix5* | irix6* | nonstopux*)
8894       if test "$GCC" = yes; then
8895         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8896         # Try to use the -exported_symbol ld option, if it does not
8897         # work, assume that -exports_file does not work either and
8898         # implicitly export all symbols.
8899         save_LDFLAGS="$LDFLAGS"
8900         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8901         cat >conftest.$ac_ext <<_ACEOF
8902 int foo(void) {}
8903 _ACEOF
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906   (eval $ac_link) 2>conftest.er1
8907   ac_status=$?
8908   grep -v '^ *+' conftest.er1 >conftest.err
8909   rm -f conftest.er1
8910   cat conftest.err >&5
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); } &&
8913          { ac_try='test -z "$ac_c_werror_flag"
8914                          || test ! -s conftest.err'
8915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916   (eval $ac_try) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); }; } &&
8920          { ac_try='test -s conftest$ac_exeext'
8921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922   (eval $ac_try) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; }; then
8926   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8927
8928 else
8929   echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8931
8932 fi
8933 rm -f conftest.err conftest.$ac_objext \
8934       conftest$ac_exeext conftest.$ac_ext
8935         LDFLAGS="$save_LDFLAGS"
8936       else
8937         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8938         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8939       fi
8940       archive_cmds_need_lc='no'
8941       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8942       hardcode_libdir_separator=:
8943       inherit_rpath=yes
8944       link_all_deplibs=yes
8945       ;;
8946
8947     netbsd*)
8948       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8949         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8950       else
8951         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8952       fi
8953       hardcode_libdir_flag_spec='-R$libdir'
8954       hardcode_direct=yes
8955       hardcode_shlibpath_var=no
8956       ;;
8957
8958     newsos6)
8959       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8960       hardcode_direct=yes
8961       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8962       hardcode_libdir_separator=:
8963       hardcode_shlibpath_var=no
8964       ;;
8965
8966     *nto* | *qnx*)
8967       ;;
8968
8969     openbsd*)
8970       hardcode_direct=yes
8971       hardcode_shlibpath_var=no
8972       hardcode_direct_absolute=yes
8973       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8974         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8975         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8976         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8977         export_dynamic_flag_spec='${wl}-E'
8978       else
8979         case $host_os in
8980         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8981           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8982           hardcode_libdir_flag_spec='-R$libdir'
8983           ;;
8984         *)
8985           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8986           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8987           ;;
8988         esac
8989       fi
8990       ;;
8991
8992     os2*)
8993       hardcode_libdir_flag_spec='-L$libdir'
8994       hardcode_minus_L=yes
8995       allow_undefined_flag=unsupported
8996       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'
8997       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8998       ;;
8999
9000     osf3*)
9001       if test "$GCC" = yes; then
9002         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9003         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9004       else
9005         allow_undefined_flag=' -expect_unresolved \*'
9006         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9007       fi
9008       archive_cmds_need_lc='no'
9009       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9010       hardcode_libdir_separator=:
9011       ;;
9012
9013     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9014       if test "$GCC" = yes; then
9015         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9016         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9017         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9018       else
9019         allow_undefined_flag=' -expect_unresolved \*'
9020         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9021         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9022         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9023
9024         # Both c and cxx compiler support -rpath directly
9025         hardcode_libdir_flag_spec='-rpath $libdir'
9026       fi
9027       archive_cmds_need_lc='no'
9028       hardcode_libdir_separator=:
9029       ;;
9030
9031     solaris*)
9032       no_undefined_flag=' -z defs'
9033       if test "$GCC" = yes; then
9034         wlarc='${wl}'
9035         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9036         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9037           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9038       else
9039         case `$CC -V 2>&1` in
9040         *"Compilers 5.0"*)
9041           wlarc=''
9042           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9044           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9045           ;;
9046         *)
9047           wlarc='${wl}'
9048           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9049           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9050           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9051           ;;
9052         esac
9053       fi
9054       hardcode_libdir_flag_spec='-R$libdir'
9055       hardcode_shlibpath_var=no
9056       case $host_os in
9057       solaris2.[0-5] | solaris2.[0-5].*) ;;
9058       *)
9059         # The compiler driver will combine and reorder linker options,
9060         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9061         # but is careful enough not to reorder.
9062         # Supported since Solaris 2.6 (maybe 2.5.1?)
9063         if test "$GCC" = yes; then
9064           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9065         else
9066           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9067         fi
9068         ;;
9069       esac
9070       link_all_deplibs=yes
9071       ;;
9072
9073     sunos4*)
9074       if test "x$host_vendor" = xsequent; then
9075         # Use $CC to link under sequent, because it throws in some extra .o
9076         # files that make .init and .fini sections work.
9077         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9078       else
9079         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9080       fi
9081       hardcode_libdir_flag_spec='-L$libdir'
9082       hardcode_direct=yes
9083       hardcode_minus_L=yes
9084       hardcode_shlibpath_var=no
9085       ;;
9086
9087     sysv4)
9088       case $host_vendor in
9089         sni)
9090           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091           hardcode_direct=yes # is this really true???
9092         ;;
9093         siemens)
9094           ## LD is ld it makes a PLAMLIB
9095           ## CC just makes a GrossModule.
9096           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9097           reload_cmds='$CC -r -o $output$reload_objs'
9098           hardcode_direct=no
9099         ;;
9100         motorola)
9101           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9103         ;;
9104       esac
9105       runpath_var='LD_RUN_PATH'
9106       hardcode_shlibpath_var=no
9107       ;;
9108
9109     sysv4.3*)
9110       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111       hardcode_shlibpath_var=no
9112       export_dynamic_flag_spec='-Bexport'
9113       ;;
9114
9115     sysv4*MP*)
9116       if test -d /usr/nec; then
9117         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118         hardcode_shlibpath_var=no
9119         runpath_var=LD_RUN_PATH
9120         hardcode_runpath_var=yes
9121         ld_shlibs=yes
9122       fi
9123       ;;
9124
9125     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9126       no_undefined_flag='${wl}-z,text'
9127       archive_cmds_need_lc=no
9128       hardcode_shlibpath_var=no
9129       runpath_var='LD_RUN_PATH'
9130
9131       if test "$GCC" = yes; then
9132         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9134       else
9135         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9136         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9137       fi
9138       ;;
9139
9140     sysv5* | sco3.2v5* | sco5v6*)
9141       # Note: We can NOT use -z defs as we might desire, because we do not
9142       # link with -lc, and that would cause any symbols used from libc to
9143       # always be unresolved, which means just about no library would
9144       # ever link correctly.  If we're not using GNU ld we use -z text
9145       # though, which does catch some bad symbols but isn't as heavy-handed
9146       # as -z defs.
9147       no_undefined_flag='${wl}-z,text'
9148       allow_undefined_flag='${wl}-z,nodefs'
9149       archive_cmds_need_lc=no
9150       hardcode_shlibpath_var=no
9151       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9152       hardcode_libdir_separator=':'
9153       link_all_deplibs=yes
9154       export_dynamic_flag_spec='${wl}-Bexport'
9155       runpath_var='LD_RUN_PATH'
9156
9157       if test "$GCC" = yes; then
9158         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9159         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160       else
9161         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9162         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9163       fi
9164       ;;
9165
9166     uts4*)
9167       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9168       hardcode_libdir_flag_spec='-L$libdir'
9169       hardcode_shlibpath_var=no
9170       ;;
9171
9172     *)
9173       ld_shlibs=no
9174       ;;
9175     esac
9176
9177     if test x$host_vendor = xsni; then
9178       case $host in
9179       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9180         export_dynamic_flag_spec='${wl}-Blargedynsym'
9181         ;;
9182       esac
9183     fi
9184   fi
9185
9186 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9187 echo "${ECHO_T}$ld_shlibs" >&6
9188 test "$ld_shlibs" = no && can_build_shared=no
9189
9190 with_gnu_ld=$with_gnu_ld
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206 #
9207 # Do we need to explicitly link libc?
9208 #
9209 case "x$archive_cmds_need_lc" in
9210 x|xyes)
9211   # Assume -lc should be added
9212   archive_cmds_need_lc=yes
9213
9214   if test "$enable_shared" = yes && test "$GCC" = yes; then
9215     case $archive_cmds in
9216     *'~'*)
9217       # FIXME: we may have to deal with multi-command sequences.
9218       ;;
9219     '$CC '*)
9220       # Test whether the compiler implicitly links with -lc since on some
9221       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9222       # to ld, don't add -lc before -lgcc.
9223       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9224 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9225       $RM conftest*
9226       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9227
9228       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229   (eval $ac_compile) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); } 2>conftest.err; then
9233         soname=conftest
9234         lib=conftest
9235         libobjs=conftest.$ac_objext
9236         deplibs=
9237         wl=$lt_prog_compiler_wl
9238         pic_flag=$lt_prog_compiler_pic
9239         compiler_flags=-v
9240         linker_flags=-v
9241         verstring=
9242         output_objdir=.
9243         libname=conftest
9244         lt_save_allow_undefined_flag=$allow_undefined_flag
9245         allow_undefined_flag=
9246         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9247   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9248   ac_status=$?
9249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250   (exit $ac_status); }
9251         then
9252           archive_cmds_need_lc=no
9253         else
9254           archive_cmds_need_lc=yes
9255         fi
9256         allow_undefined_flag=$lt_save_allow_undefined_flag
9257       else
9258         cat conftest.err 1>&5
9259       fi
9260       $RM conftest*
9261       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9262 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9263       ;;
9264     esac
9265   fi
9266   ;;
9267 esac
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9426 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9427 withGCC=$GCC
9428 if test "$withGCC" = yes; then
9429   case $host_os in
9430     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9431     *) lt_awk_arg="/^libraries:/" ;;
9432   esac
9433   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9434   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9435     # if the path contains ";" then we assume it to be the separator
9436     # otherwise default to the standard path separator (i.e. ":") - it is
9437     # assumed that no part of a normal pathname contains ";" but that should
9438     # okay in the real world where ";" in dirpaths is itself problematic.
9439     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9440   else
9441     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9442   fi
9443   # Ok, now we have the path, separated by spaces, we can step through it
9444   # and add multilib dir if necessary.
9445   lt_tmp_lt_search_path_spec=
9446   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9447   for lt_sys_path in $lt_search_path_spec; do
9448     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9449       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9450     else
9451       test -d "$lt_sys_path" && \
9452         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9453     fi
9454   done
9455   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9456 BEGIN {RS=" "; FS="/|\n";} {
9457   lt_foo="";
9458   lt_count=0;
9459   for (lt_i = NF; lt_i > 0; lt_i--) {
9460     if ($lt_i != "" && $lt_i != ".") {
9461       if ($lt_i == "..") {
9462         lt_count++;
9463       } else {
9464         if (lt_count == 0) {
9465           lt_foo="/" $lt_i lt_foo;
9466         } else {
9467           lt_count--;
9468         }
9469       }
9470     }
9471   }
9472   if (lt_foo != "") { lt_freq[lt_foo]++; }
9473   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9474 }'`
9475   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9476 else
9477   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9478 fi
9479 library_names_spec=
9480 libname_spec='lib$name'
9481 soname_spec=
9482 shrext_cmds=".so"
9483 postinstall_cmds=
9484 postuninstall_cmds=
9485 finish_cmds=
9486 finish_eval=
9487 shlibpath_var=
9488 shlibpath_overrides_runpath=unknown
9489 version_type=none
9490 dynamic_linker="$host_os ld.so"
9491 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9492 need_lib_prefix=unknown
9493 hardcode_into_libs=no
9494
9495 # when you set need_version to no, make sure it does not cause -set_version
9496 # flags to be left without arguments
9497 need_version=unknown
9498
9499 case $host_os in
9500 aix3*)
9501   version_type=linux
9502   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9503   shlibpath_var=LIBPATH
9504
9505   # AIX 3 has no versioning support, so we append a major version to the name.
9506   soname_spec='${libname}${release}${shared_ext}$major'
9507   ;;
9508
9509 aix[4-9]*)
9510   version_type=linux
9511   need_lib_prefix=no
9512   need_version=no
9513   hardcode_into_libs=yes
9514   if test "$host_cpu" = ia64; then
9515     # AIX 5 supports IA64
9516     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9517     shlibpath_var=LD_LIBRARY_PATH
9518   else
9519     # With GCC up to 2.95.x, collect2 would create an import file
9520     # for dependence libraries.  The import file would start with
9521     # the line `#! .'.  This would cause the generated library to
9522     # depend on `.', always an invalid library.  This was fixed in
9523     # development snapshots of GCC prior to 3.0.
9524     case $host_os in
9525       aix4 | aix4.[01] | aix4.[01].*)
9526       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9527            echo ' yes '
9528            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9529         :
9530       else
9531         can_build_shared=no
9532       fi
9533       ;;
9534     esac
9535     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9536     # soname into executable. Probably we can add versioning support to
9537     # collect2, so additional links can be useful in future.
9538     if test "$aix_use_runtimelinking" = yes; then
9539       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9540       # instead of lib<name>.a to let people know that these are not
9541       # typical AIX shared libraries.
9542       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543     else
9544       # We preserve .a as extension for shared libraries through AIX4.2
9545       # and later when we are not doing run time linking.
9546       library_names_spec='${libname}${release}.a $libname.a'
9547       soname_spec='${libname}${release}${shared_ext}$major'
9548     fi
9549     shlibpath_var=LIBPATH
9550   fi
9551   ;;
9552
9553 amigaos*)
9554   if test "$host_cpu" = m68k; then
9555     library_names_spec='$libname.ixlibrary $libname.a'
9556     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9557     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'
9558   else
9559     dynamic_linker=no
9560   fi
9561   ;;
9562
9563 beos*)
9564   library_names_spec='${libname}${shared_ext}'
9565   dynamic_linker="$host_os ld.so"
9566   shlibpath_var=LIBRARY_PATH
9567   ;;
9568
9569 bsdi[45]*)
9570   version_type=linux
9571   need_version=no
9572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573   soname_spec='${libname}${release}${shared_ext}$major'
9574   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9575   shlibpath_var=LD_LIBRARY_PATH
9576   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9577   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9578   # the default ld.so.conf also contains /usr/contrib/lib and
9579   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9580   # libtool to hard-code these into programs
9581   ;;
9582
9583 cygwin* | mingw* | pw32*)
9584   version_type=windows
9585   shrext_cmds=".dll"
9586   need_version=no
9587   need_lib_prefix=no
9588
9589   case $withGCC,$host_os in
9590   yes,cygwin* | yes,mingw* | yes,pw32*)
9591     library_names_spec='$libname.dll.a'
9592     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9593     postinstall_cmds='base_file=`basename \${file}`~
9594       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9595       dldir=$destdir/`dirname \$dlpath`~
9596       test -d \$dldir || mkdir -p \$dldir~
9597       $install_prog $dir/$dlname \$dldir/$dlname~
9598       chmod a+x \$dldir/$dlname~
9599       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9600         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9601       fi'
9602     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9603       dlpath=$dir/\$dldll~
9604        $RM \$dlpath'
9605     shlibpath_overrides_runpath=yes
9606
9607     case $host_os in
9608     cygwin*)
9609       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9610       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9611       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9612       ;;
9613     mingw*)
9614       # MinGW DLLs use traditional 'lib' prefix
9615       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9616       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9617       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9618         # It is most probably a Windows format PATH printed by
9619         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9620         # path with ; separators, and with drive letters. We can handle the
9621         # drive letters (cygwin fileutils understands them), so leave them,
9622         # especially as we might pass files found there to a mingw objdump,
9623         # which wouldn't understand a cygwinified path. Ahh.
9624         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9625       else
9626         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9627       fi
9628       ;;
9629     pw32*)
9630       # pw32 DLLs use 'pw' prefix rather than 'lib'
9631       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9632       ;;
9633     esac
9634     ;;
9635
9636   *)
9637     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9638     ;;
9639   esac
9640   dynamic_linker='Win32 ld.exe'
9641   # FIXME: first we should search . and the directory the executable is in
9642   shlibpath_var=PATH
9643   ;;
9644
9645 darwin* | rhapsody*)
9646   dynamic_linker="$host_os dyld"
9647   version_type=darwin
9648   need_lib_prefix=no
9649   need_version=no
9650   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9651   soname_spec='${libname}${release}${major}$shared_ext'
9652   shlibpath_overrides_runpath=yes
9653   shlibpath_var=DYLD_LIBRARY_PATH
9654   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9655
9656   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9657   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9658   ;;
9659
9660 dgux*)
9661   version_type=linux
9662   need_lib_prefix=no
9663   need_version=no
9664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9665   soname_spec='${libname}${release}${shared_ext}$major'
9666   shlibpath_var=LD_LIBRARY_PATH
9667   ;;
9668
9669 freebsd1*)
9670   dynamic_linker=no
9671   ;;
9672
9673 freebsd* | dragonfly*)
9674   # DragonFly does not have aout.  When/if they implement a new
9675   # versioning mechanism, adjust this.
9676   if test -x /usr/bin/objformat; then
9677     objformat=`/usr/bin/objformat`
9678   else
9679     case $host_os in
9680     freebsd[123]*) objformat=aout ;;
9681     *) objformat=elf ;;
9682     esac
9683   fi
9684   version_type=freebsd-$objformat
9685   case $version_type in
9686     freebsd-elf*)
9687       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9688       need_version=no
9689       need_lib_prefix=no
9690       ;;
9691     freebsd-*)
9692       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9693       need_version=yes
9694       ;;
9695   esac
9696   shlibpath_var=LD_LIBRARY_PATH
9697   case $host_os in
9698   freebsd2*)
9699     shlibpath_overrides_runpath=yes
9700     ;;
9701   freebsd3.[01]* | freebsdelf3.[01]*)
9702     shlibpath_overrides_runpath=yes
9703     hardcode_into_libs=yes
9704     ;;
9705   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9706   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9707     shlibpath_overrides_runpath=no
9708     hardcode_into_libs=yes
9709     ;;
9710   *) # from 4.6 on, and DragonFly
9711     shlibpath_overrides_runpath=yes
9712     hardcode_into_libs=yes
9713     ;;
9714   esac
9715   ;;
9716
9717 gnu*)
9718   version_type=linux
9719   need_lib_prefix=no
9720   need_version=no
9721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9722   soname_spec='${libname}${release}${shared_ext}$major'
9723   shlibpath_var=LD_LIBRARY_PATH
9724   hardcode_into_libs=yes
9725   ;;
9726
9727 hpux9* | hpux10* | hpux11*)
9728   # Give a soname corresponding to the major version so that dld.sl refuses to
9729   # link against other versions.
9730   version_type=sunos
9731   need_lib_prefix=no
9732   need_version=no
9733   case $host_cpu in
9734   ia64*)
9735     shrext_cmds='.so'
9736     hardcode_into_libs=yes
9737     dynamic_linker="$host_os dld.so"
9738     shlibpath_var=LD_LIBRARY_PATH
9739     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9740     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741     soname_spec='${libname}${release}${shared_ext}$major'
9742     if test "X$HPUX_IA64_MODE" = X32; then
9743       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9744     else
9745       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9746     fi
9747     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9748     ;;
9749   hppa*64*)
9750     shrext_cmds='.sl'
9751     hardcode_into_libs=yes
9752     dynamic_linker="$host_os dld.sl"
9753     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9754     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756     soname_spec='${libname}${release}${shared_ext}$major'
9757     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9758     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9759     ;;
9760   *)
9761     shrext_cmds='.sl'
9762     dynamic_linker="$host_os dld.sl"
9763     shlibpath_var=SHLIB_PATH
9764     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766     soname_spec='${libname}${release}${shared_ext}$major'
9767     ;;
9768   esac
9769   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9770   postinstall_cmds='chmod 555 $lib'
9771   ;;
9772
9773 interix[3-9]*)
9774   version_type=linux
9775   need_lib_prefix=no
9776   need_version=no
9777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9778   soname_spec='${libname}${release}${shared_ext}$major'
9779   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9780   shlibpath_var=LD_LIBRARY_PATH
9781   shlibpath_overrides_runpath=no
9782   hardcode_into_libs=yes
9783   ;;
9784
9785 irix5* | irix6* | nonstopux*)
9786   case $host_os in
9787     nonstopux*) version_type=nonstopux ;;
9788     *)
9789         if test "$lt_cv_prog_gnu_ld" = yes; then
9790                 version_type=linux
9791         else
9792                 version_type=irix
9793         fi ;;
9794   esac
9795   need_lib_prefix=no
9796   need_version=no
9797   soname_spec='${libname}${release}${shared_ext}$major'
9798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9799   case $host_os in
9800   irix5* | nonstopux*)
9801     libsuff= shlibsuff=
9802     ;;
9803   *)
9804     case $LD in # libtool.m4 will add one of these switches to LD
9805     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9806       libsuff= shlibsuff= libmagic=32-bit;;
9807     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9808       libsuff=32 shlibsuff=N32 libmagic=N32;;
9809     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9810       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9811     *) libsuff= shlibsuff= libmagic=never-match;;
9812     esac
9813     ;;
9814   esac
9815   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9816   shlibpath_overrides_runpath=no
9817   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9818   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9819   hardcode_into_libs=yes
9820   ;;
9821
9822 # No shared lib support for Linux oldld, aout, or coff.
9823 linux*oldld* | linux*aout* | linux*coff*)
9824   dynamic_linker=no
9825   ;;
9826
9827 # This must be Linux ELF.
9828 linux* | k*bsd*-gnu)
9829   version_type=linux
9830   need_lib_prefix=no
9831   need_version=no
9832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833   soname_spec='${libname}${release}${shared_ext}$major'
9834   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9835   shlibpath_var=LD_LIBRARY_PATH
9836   shlibpath_overrides_runpath=no
9837   # Some binutils ld are patched to set DT_RUNPATH
9838   save_LDFLAGS=$LDFLAGS
9839   save_libdir=$libdir
9840   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9841        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9842   cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848
9849 int
9850 main ()
9851 {
9852
9853   ;
9854   return 0;
9855 }
9856 _ACEOF
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859   (eval $ac_link) 2>conftest.er1
9860   ac_status=$?
9861   grep -v '^ *+' conftest.er1 >conftest.err
9862   rm -f conftest.er1
9863   cat conftest.err >&5
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); } &&
9866          { ac_try='test -z "$ac_c_werror_flag"
9867                          || test ! -s conftest.err'
9868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869   (eval $ac_try) 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; } &&
9873          { ac_try='test -s conftest$ac_exeext'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; }; then
9879   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9880   shlibpath_overrides_runpath=yes
9881 fi
9882
9883 else
9884   echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 fi
9888 rm -f conftest.err conftest.$ac_objext \
9889       conftest$ac_exeext conftest.$ac_ext
9890   LDFLAGS=$save_LDFLAGS
9891   libdir=$save_libdir
9892
9893   # This implies no fast_install, which is unacceptable.
9894   # Some rework will be needed to allow for fast_install
9895   # before this can be enabled.
9896   hardcode_into_libs=yes
9897
9898   # Append ld.so.conf contents to the search path
9899   if test -f /etc/ld.so.conf; then
9900     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9901     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9902   fi
9903
9904   # We used to test for /lib/ld.so.1 and disable shared libraries on
9905   # powerpc, because MkLinux only supported shared libraries with the
9906   # GNU dynamic linker.  Since this was broken with cross compilers,
9907   # most powerpc-linux boxes support dynamic linking these days and
9908   # people can always --disable-shared, the test was removed, and we
9909   # assume the GNU/Linux dynamic linker is in use.
9910   dynamic_linker='GNU/Linux ld.so'
9911   ;;
9912
9913 netbsd*)
9914   version_type=sunos
9915   need_lib_prefix=no
9916   need_version=no
9917   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9919     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9920     dynamic_linker='NetBSD (a.out) ld.so'
9921   else
9922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9923     soname_spec='${libname}${release}${shared_ext}$major'
9924     dynamic_linker='NetBSD ld.elf_so'
9925   fi
9926   shlibpath_var=LD_LIBRARY_PATH
9927   shlibpath_overrides_runpath=yes
9928   hardcode_into_libs=yes
9929   ;;
9930
9931 newsos6)
9932   version_type=linux
9933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934   shlibpath_var=LD_LIBRARY_PATH
9935   shlibpath_overrides_runpath=yes
9936   ;;
9937
9938 *nto* | *qnx*)
9939   version_type=qnx
9940   need_lib_prefix=no
9941   need_version=no
9942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943   soname_spec='${libname}${release}${shared_ext}$major'
9944   shlibpath_var=LD_LIBRARY_PATH
9945   shlibpath_overrides_runpath=no
9946   hardcode_into_libs=yes
9947   dynamic_linker='ldqnx.so'
9948   ;;
9949
9950 openbsd*)
9951   version_type=sunos
9952   sys_lib_dlsearch_path_spec="/usr/lib"
9953   need_lib_prefix=no
9954   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9955   case $host_os in
9956     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9957     *)                          need_version=no  ;;
9958   esac
9959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9960   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9961   shlibpath_var=LD_LIBRARY_PATH
9962   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9963     case $host_os in
9964       openbsd2.[89] | openbsd2.[89].*)
9965         shlibpath_overrides_runpath=no
9966         ;;
9967       *)
9968         shlibpath_overrides_runpath=yes
9969         ;;
9970       esac
9971   else
9972     shlibpath_overrides_runpath=yes
9973   fi
9974   ;;
9975
9976 os2*)
9977   libname_spec='$name'
9978   shrext_cmds=".dll"
9979   need_lib_prefix=no
9980   library_names_spec='$libname${shared_ext} $libname.a'
9981   dynamic_linker='OS/2 ld.exe'
9982   shlibpath_var=LIBPATH
9983   ;;
9984
9985 osf3* | osf4* | osf5*)
9986   version_type=osf
9987   need_lib_prefix=no
9988   need_version=no
9989   soname_spec='${libname}${release}${shared_ext}$major'
9990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991   shlibpath_var=LD_LIBRARY_PATH
9992   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9993   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9994   ;;
9995
9996 rdos*)
9997   dynamic_linker=no
9998   ;;
9999
10000 solaris*)
10001   version_type=linux
10002   need_lib_prefix=no
10003   need_version=no
10004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005   soname_spec='${libname}${release}${shared_ext}$major'
10006   shlibpath_var=LD_LIBRARY_PATH
10007   shlibpath_overrides_runpath=yes
10008   hardcode_into_libs=yes
10009   # ldd complains unless libraries are executable
10010   postinstall_cmds='chmod +x $lib'
10011   ;;
10012
10013 sunos4*)
10014   version_type=sunos
10015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10016   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10017   shlibpath_var=LD_LIBRARY_PATH
10018   shlibpath_overrides_runpath=yes
10019   if test "$with_gnu_ld" = yes; then
10020     need_lib_prefix=no
10021   fi
10022   need_version=yes
10023   ;;
10024
10025 sysv4 | sysv4.3*)
10026   version_type=linux
10027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028   soname_spec='${libname}${release}${shared_ext}$major'
10029   shlibpath_var=LD_LIBRARY_PATH
10030   case $host_vendor in
10031     sni)
10032       shlibpath_overrides_runpath=no
10033       need_lib_prefix=no
10034       runpath_var=LD_RUN_PATH
10035       ;;
10036     siemens)
10037       need_lib_prefix=no
10038       ;;
10039     motorola)
10040       need_lib_prefix=no
10041       need_version=no
10042       shlibpath_overrides_runpath=no
10043       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10044       ;;
10045   esac
10046   ;;
10047
10048 sysv4*MP*)
10049   if test -d /usr/nec ;then
10050     version_type=linux
10051     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10052     soname_spec='$libname${shared_ext}.$major'
10053     shlibpath_var=LD_LIBRARY_PATH
10054   fi
10055   ;;
10056
10057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10058   version_type=freebsd-elf
10059   need_lib_prefix=no
10060   need_version=no
10061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10062   soname_spec='${libname}${release}${shared_ext}$major'
10063   shlibpath_var=LD_LIBRARY_PATH
10064   shlibpath_overrides_runpath=yes
10065   hardcode_into_libs=yes
10066   if test "$with_gnu_ld" = yes; then
10067     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10068   else
10069     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10070     case $host_os in
10071       sco3.2v5*)
10072         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10073         ;;
10074     esac
10075   fi
10076   sys_lib_dlsearch_path_spec='/usr/lib'
10077   ;;
10078
10079 tpf*)
10080   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10081   version_type=linux
10082   need_lib_prefix=no
10083   need_version=no
10084   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085   shlibpath_var=LD_LIBRARY_PATH
10086   shlibpath_overrides_runpath=no
10087   hardcode_into_libs=yes
10088   ;;
10089
10090 uts4*)
10091   version_type=linux
10092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093   soname_spec='${libname}${release}${shared_ext}$major'
10094   shlibpath_var=LD_LIBRARY_PATH
10095   ;;
10096
10097 *)
10098   dynamic_linker=no
10099   ;;
10100 esac
10101 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10102 echo "${ECHO_T}$dynamic_linker" >&6
10103 test "$dynamic_linker" = no && can_build_shared=no
10104
10105 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10106 if test "$GCC" = yes; then
10107   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10108 fi
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10197 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10198 hardcode_action=
10199 if test -n "$hardcode_libdir_flag_spec" ||
10200    test -n "$runpath_var" ||
10201    test "X$hardcode_automatic" = "Xyes" ; then
10202
10203   # We can hardcode non-existent directories.
10204   if test "$hardcode_direct" != no &&
10205      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10206      # have to relink, otherwise we might link with an installed library
10207      # when we should be linking with a yet-to-be-installed one
10208      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10209      test "$hardcode_minus_L" != no; then
10210     # Linking always hardcodes the temporary library directory.
10211     hardcode_action=relink
10212   else
10213     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10214     hardcode_action=immediate
10215   fi
10216 else
10217   # We cannot hardcode anything, or else we can only hardcode existing
10218   # directories.
10219   hardcode_action=unsupported
10220 fi
10221 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10222 echo "${ECHO_T}$hardcode_action" >&6
10223
10224 if test "$hardcode_action" = relink ||
10225    test "$inherit_rpath" = yes; then
10226   # Fast installation is not supported
10227   enable_fast_install=no
10228 elif test "$shlibpath_overrides_runpath" = yes ||
10229      test "$enable_shared" = no; then
10230   # Fast installation is not necessary
10231   enable_fast_install=needless
10232 fi
10233
10234
10235
10236
10237
10238
10239   if test "x$enable_dlopen" != xyes; then
10240   enable_dlopen=unknown
10241   enable_dlopen_self=unknown
10242   enable_dlopen_self_static=unknown
10243 else
10244   lt_cv_dlopen=no
10245   lt_cv_dlopen_libs=
10246
10247   case $host_os in
10248   beos*)
10249     lt_cv_dlopen="load_add_on"
10250     lt_cv_dlopen_libs=
10251     lt_cv_dlopen_self=yes
10252     ;;
10253
10254   mingw* | pw32*)
10255     lt_cv_dlopen="LoadLibrary"
10256     lt_cv_dlopen_libs=
10257     ;;
10258
10259   cygwin*)
10260     lt_cv_dlopen="dlopen"
10261     lt_cv_dlopen_libs=
10262     ;;
10263
10264   darwin*)
10265   # if libdl is installed we need to link against it
10266     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10267 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10268 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   ac_check_lib_save_LIBS=$LIBS
10272 LIBS="-ldl  $LIBS"
10273 cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h.  */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h.  */
10279
10280 /* Override any gcc2 internal prototype to avoid an error.  */
10281 #ifdef __cplusplus
10282 extern "C"
10283 #endif
10284 /* We use char because int might match the return type of a gcc2
10285    builtin and then its argument prototype would still apply.  */
10286 char dlopen ();
10287 int
10288 main ()
10289 {
10290 dlopen ();
10291   ;
10292   return 0;
10293 }
10294 _ACEOF
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297   (eval $ac_link) 2>conftest.er1
10298   ac_status=$?
10299   grep -v '^ *+' conftest.er1 >conftest.err
10300   rm -f conftest.er1
10301   cat conftest.err >&5
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } &&
10304          { ac_try='test -z "$ac_c_werror_flag"
10305                          || test ! -s conftest.err'
10306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307   (eval $ac_try) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; } &&
10311          { ac_try='test -s conftest$ac_exeext'
10312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313   (eval $ac_try) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; }; then
10317   ac_cv_lib_dl_dlopen=yes
10318 else
10319   echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_cv_lib_dl_dlopen=no
10323 fi
10324 rm -f conftest.err conftest.$ac_objext \
10325       conftest$ac_exeext conftest.$ac_ext
10326 LIBS=$ac_check_lib_save_LIBS
10327 fi
10328 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10329 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10330 if test $ac_cv_lib_dl_dlopen = yes; then
10331   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10332 else
10333
10334     lt_cv_dlopen="dyld"
10335     lt_cv_dlopen_libs=
10336     lt_cv_dlopen_self=yes
10337
10338 fi
10339
10340     ;;
10341
10342   *)
10343     echo "$as_me:$LINENO: checking for shl_load" >&5
10344 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10345 if test "${ac_cv_func_shl_load+set}" = set; then
10346   echo $ECHO_N "(cached) $ECHO_C" >&6
10347 else
10348   cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10356 #define shl_load innocuous_shl_load
10357
10358 /* System header to define __stub macros and hopefully few prototypes,
10359     which can conflict with char shl_load (); below.
10360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10361     <limits.h> exists even on freestanding compilers.  */
10362
10363 #ifdef __STDC__
10364 # include <limits.h>
10365 #else
10366 # include <assert.h>
10367 #endif
10368
10369 #undef shl_load
10370
10371 /* Override any gcc2 internal prototype to avoid an error.  */
10372 #ifdef __cplusplus
10373 extern "C"
10374 {
10375 #endif
10376 /* We use char because int might match the return type of a gcc2
10377    builtin and then its argument prototype would still apply.  */
10378 char shl_load ();
10379 /* The GNU C library defines this for functions which it implements
10380     to always fail with ENOSYS.  Some functions are actually named
10381     something starting with __ and the normal name is an alias.  */
10382 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10383 choke me
10384 #else
10385 char (*f) () = shl_load;
10386 #endif
10387 #ifdef __cplusplus
10388 }
10389 #endif
10390
10391 int
10392 main ()
10393 {
10394 return f != shl_load;
10395   ;
10396   return 0;
10397 }
10398 _ACEOF
10399 rm -f conftest.$ac_objext conftest$ac_exeext
10400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401   (eval $ac_link) 2>conftest.er1
10402   ac_status=$?
10403   grep -v '^ *+' conftest.er1 >conftest.err
10404   rm -f conftest.er1
10405   cat conftest.err >&5
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); } &&
10408          { ac_try='test -z "$ac_c_werror_flag"
10409                          || test ! -s conftest.err'
10410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411   (eval $ac_try) 2>&5
10412   ac_status=$?
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); }; } &&
10415          { ac_try='test -s conftest$ac_exeext'
10416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417   (eval $ac_try) 2>&5
10418   ac_status=$?
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); }; }; then
10421   ac_cv_func_shl_load=yes
10422 else
10423   echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426 ac_cv_func_shl_load=no
10427 fi
10428 rm -f conftest.err conftest.$ac_objext \
10429       conftest$ac_exeext conftest.$ac_ext
10430 fi
10431 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10432 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10433 if test $ac_cv_func_shl_load = yes; then
10434   lt_cv_dlopen="shl_load"
10435 else
10436   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10437 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10438 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10439   echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441   ac_check_lib_save_LIBS=$LIBS
10442 LIBS="-ldld  $LIBS"
10443 cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449
10450 /* Override any gcc2 internal prototype to avoid an error.  */
10451 #ifdef __cplusplus
10452 extern "C"
10453 #endif
10454 /* We use char because int might match the return type of a gcc2
10455    builtin and then its argument prototype would still apply.  */
10456 char shl_load ();
10457 int
10458 main ()
10459 {
10460 shl_load ();
10461   ;
10462   return 0;
10463 }
10464 _ACEOF
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467   (eval $ac_link) 2>conftest.er1
10468   ac_status=$?
10469   grep -v '^ *+' conftest.er1 >conftest.err
10470   rm -f conftest.er1
10471   cat conftest.err >&5
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } &&
10474          { ac_try='test -z "$ac_c_werror_flag"
10475                          || test ! -s conftest.err'
10476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477   (eval $ac_try) 2>&5
10478   ac_status=$?
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); }; } &&
10481          { ac_try='test -s conftest$ac_exeext'
10482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483   (eval $ac_try) 2>&5
10484   ac_status=$?
10485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486   (exit $ac_status); }; }; then
10487   ac_cv_lib_dld_shl_load=yes
10488 else
10489   echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10491
10492 ac_cv_lib_dld_shl_load=no
10493 fi
10494 rm -f conftest.err conftest.$ac_objext \
10495       conftest$ac_exeext conftest.$ac_ext
10496 LIBS=$ac_check_lib_save_LIBS
10497 fi
10498 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10499 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10500 if test $ac_cv_lib_dld_shl_load = yes; then
10501   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10502 else
10503   echo "$as_me:$LINENO: checking for dlopen" >&5
10504 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10505 if test "${ac_cv_func_dlopen+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508   cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h.  */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h.  */
10514 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10516 #define dlopen innocuous_dlopen
10517
10518 /* System header to define __stub macros and hopefully few prototypes,
10519     which can conflict with char dlopen (); below.
10520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10521     <limits.h> exists even on freestanding compilers.  */
10522
10523 #ifdef __STDC__
10524 # include <limits.h>
10525 #else
10526 # include <assert.h>
10527 #endif
10528
10529 #undef dlopen
10530
10531 /* Override any gcc2 internal prototype to avoid an error.  */
10532 #ifdef __cplusplus
10533 extern "C"
10534 {
10535 #endif
10536 /* We use char because int might match the return type of a gcc2
10537    builtin and then its argument prototype would still apply.  */
10538 char dlopen ();
10539 /* The GNU C library defines this for functions which it implements
10540     to always fail with ENOSYS.  Some functions are actually named
10541     something starting with __ and the normal name is an alias.  */
10542 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10543 choke me
10544 #else
10545 char (*f) () = dlopen;
10546 #endif
10547 #ifdef __cplusplus
10548 }
10549 #endif
10550
10551 int
10552 main ()
10553 {
10554 return f != dlopen;
10555   ;
10556   return 0;
10557 }
10558 _ACEOF
10559 rm -f conftest.$ac_objext conftest$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561   (eval $ac_link) 2>conftest.er1
10562   ac_status=$?
10563   grep -v '^ *+' conftest.er1 >conftest.err
10564   rm -f conftest.er1
10565   cat conftest.err >&5
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } &&
10568          { ac_try='test -z "$ac_c_werror_flag"
10569                          || test ! -s conftest.err'
10570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571   (eval $ac_try) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; } &&
10575          { ac_try='test -s conftest$ac_exeext'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }; then
10581   ac_cv_func_dlopen=yes
10582 else
10583   echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586 ac_cv_func_dlopen=no
10587 fi
10588 rm -f conftest.err conftest.$ac_objext \
10589       conftest$ac_exeext conftest.$ac_ext
10590 fi
10591 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10592 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10593 if test $ac_cv_func_dlopen = yes; then
10594   lt_cv_dlopen="dlopen"
10595 else
10596   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10597 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10598 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10599   echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601   ac_check_lib_save_LIBS=$LIBS
10602 LIBS="-ldl  $LIBS"
10603 cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609
10610 /* Override any gcc2 internal prototype to avoid an error.  */
10611 #ifdef __cplusplus
10612 extern "C"
10613 #endif
10614 /* We use char because int might match the return type of a gcc2
10615    builtin and then its argument prototype would still apply.  */
10616 char dlopen ();
10617 int
10618 main ()
10619 {
10620 dlopen ();
10621   ;
10622   return 0;
10623 }
10624 _ACEOF
10625 rm -f conftest.$ac_objext conftest$ac_exeext
10626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627   (eval $ac_link) 2>conftest.er1
10628   ac_status=$?
10629   grep -v '^ *+' conftest.er1 >conftest.err
10630   rm -f conftest.er1
10631   cat conftest.err >&5
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } &&
10634          { ac_try='test -z "$ac_c_werror_flag"
10635                          || test ! -s conftest.err'
10636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637   (eval $ac_try) 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); }; } &&
10641          { ac_try='test -s conftest$ac_exeext'
10642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643   (eval $ac_try) 2>&5
10644   ac_status=$?
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); }; }; then
10647   ac_cv_lib_dl_dlopen=yes
10648 else
10649   echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 ac_cv_lib_dl_dlopen=no
10653 fi
10654 rm -f conftest.err conftest.$ac_objext \
10655       conftest$ac_exeext conftest.$ac_ext
10656 LIBS=$ac_check_lib_save_LIBS
10657 fi
10658 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10660 if test $ac_cv_lib_dl_dlopen = yes; then
10661   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10662 else
10663   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10664 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10666   echo $ECHO_N "(cached) $ECHO_C" >&6
10667 else
10668   ac_check_lib_save_LIBS=$LIBS
10669 LIBS="-lsvld  $LIBS"
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h.  */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h.  */
10676
10677 /* Override any gcc2 internal prototype to avoid an error.  */
10678 #ifdef __cplusplus
10679 extern "C"
10680 #endif
10681 /* We use char because int might match the return type of a gcc2
10682    builtin and then its argument prototype would still apply.  */
10683 char dlopen ();
10684 int
10685 main ()
10686 {
10687 dlopen ();
10688   ;
10689   return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694   (eval $ac_link) 2>conftest.er1
10695   ac_status=$?
10696   grep -v '^ *+' conftest.er1 >conftest.err
10697   rm -f conftest.er1
10698   cat conftest.err >&5
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); } &&
10701          { ac_try='test -z "$ac_c_werror_flag"
10702                          || test ! -s conftest.err'
10703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704   (eval $ac_try) 2>&5
10705   ac_status=$?
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); }; } &&
10708          { ac_try='test -s conftest$ac_exeext'
10709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710   (eval $ac_try) 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); }; }; then
10714   ac_cv_lib_svld_dlopen=yes
10715 else
10716   echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10718
10719 ac_cv_lib_svld_dlopen=no
10720 fi
10721 rm -f conftest.err conftest.$ac_objext \
10722       conftest$ac_exeext conftest.$ac_ext
10723 LIBS=$ac_check_lib_save_LIBS
10724 fi
10725 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10726 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10727 if test $ac_cv_lib_svld_dlopen = yes; then
10728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10729 else
10730   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10731 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10732 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10733   echo $ECHO_N "(cached) $ECHO_C" >&6
10734 else
10735   ac_check_lib_save_LIBS=$LIBS
10736 LIBS="-ldld  $LIBS"
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743
10744 /* Override any gcc2 internal prototype to avoid an error.  */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 /* We use char because int might match the return type of a gcc2
10749    builtin and then its argument prototype would still apply.  */
10750 char dld_link ();
10751 int
10752 main ()
10753 {
10754 dld_link ();
10755   ;
10756   return 0;
10757 }
10758 _ACEOF
10759 rm -f conftest.$ac_objext conftest$ac_exeext
10760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10761   (eval $ac_link) 2>conftest.er1
10762   ac_status=$?
10763   grep -v '^ *+' conftest.er1 >conftest.err
10764   rm -f conftest.er1
10765   cat conftest.err >&5
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); } &&
10768          { ac_try='test -z "$ac_c_werror_flag"
10769                          || test ! -s conftest.err'
10770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771   (eval $ac_try) 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; } &&
10775          { ac_try='test -s conftest$ac_exeext'
10776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777   (eval $ac_try) 2>&5
10778   ac_status=$?
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); }; }; then
10781   ac_cv_lib_dld_dld_link=yes
10782 else
10783   echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ac_cv_lib_dld_dld_link=no
10787 fi
10788 rm -f conftest.err conftest.$ac_objext \
10789       conftest$ac_exeext conftest.$ac_ext
10790 LIBS=$ac_check_lib_save_LIBS
10791 fi
10792 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10793 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10794 if test $ac_cv_lib_dld_dld_link = yes; then
10795   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10796 fi
10797
10798
10799 fi
10800
10801
10802 fi
10803
10804
10805 fi
10806
10807
10808 fi
10809
10810
10811 fi
10812
10813     ;;
10814   esac
10815
10816   if test "x$lt_cv_dlopen" != xno; then
10817     enable_dlopen=yes
10818   else
10819     enable_dlopen=no
10820   fi
10821
10822   case $lt_cv_dlopen in
10823   dlopen)
10824     save_CPPFLAGS="$CPPFLAGS"
10825     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10826
10827     save_LDFLAGS="$LDFLAGS"
10828     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10829
10830     save_LIBS="$LIBS"
10831     LIBS="$lt_cv_dlopen_libs $LIBS"
10832
10833     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10834 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10835 if test "${lt_cv_dlopen_self+set}" = set; then
10836   echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838           if test "$cross_compiling" = yes; then :
10839   lt_cv_dlopen_self=cross
10840 else
10841   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10842   lt_status=$lt_dlunknown
10843   cat > conftest.$ac_ext <<_LT_EOF
10844 #line 10844 "configure"
10845 #include "confdefs.h"
10846
10847 #if HAVE_DLFCN_H
10848 #include <dlfcn.h>
10849 #endif
10850
10851 #include <stdio.h>
10852
10853 #ifdef RTLD_GLOBAL
10854 #  define LT_DLGLOBAL           RTLD_GLOBAL
10855 #else
10856 #  ifdef DL_GLOBAL
10857 #    define LT_DLGLOBAL         DL_GLOBAL
10858 #  else
10859 #    define LT_DLGLOBAL         0
10860 #  endif
10861 #endif
10862
10863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10864    find out it does not work in some platform. */
10865 #ifndef LT_DLLAZY_OR_NOW
10866 #  ifdef RTLD_LAZY
10867 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10868 #  else
10869 #    ifdef DL_LAZY
10870 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10871 #    else
10872 #      ifdef RTLD_NOW
10873 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10874 #      else
10875 #        ifdef DL_NOW
10876 #          define LT_DLLAZY_OR_NOW      DL_NOW
10877 #        else
10878 #          define LT_DLLAZY_OR_NOW      0
10879 #        endif
10880 #      endif
10881 #    endif
10882 #  endif
10883 #endif
10884
10885 #ifdef __cplusplus
10886 extern "C" void exit (int);
10887 #endif
10888
10889 void fnord() { int i=42;}
10890 int main ()
10891 {
10892   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10893   int status = $lt_dlunknown;
10894
10895   if (self)
10896     {
10897       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10898       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10899       /* dlclose (self); */
10900     }
10901   else
10902     puts (dlerror ());
10903
10904     exit (status);
10905 }
10906 _LT_EOF
10907   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10908   (eval $ac_link) 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10912     (./conftest; exit; ) >&5 2>/dev/null
10913     lt_status=$?
10914     case x$lt_status in
10915       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10916       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10917       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10918     esac
10919   else :
10920     # compilation failed
10921     lt_cv_dlopen_self=no
10922   fi
10923 fi
10924 rm -fr conftest*
10925
10926
10927 fi
10928 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10929 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10930
10931     if test "x$lt_cv_dlopen_self" = xyes; then
10932       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10933       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10934 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10935 if test "${lt_cv_dlopen_self_static+set}" = set; then
10936   echo $ECHO_N "(cached) $ECHO_C" >&6
10937 else
10938           if test "$cross_compiling" = yes; then :
10939   lt_cv_dlopen_self_static=cross
10940 else
10941   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10942   lt_status=$lt_dlunknown
10943   cat > conftest.$ac_ext <<_LT_EOF
10944 #line 10944 "configure"
10945 #include "confdefs.h"
10946
10947 #if HAVE_DLFCN_H
10948 #include <dlfcn.h>
10949 #endif
10950
10951 #include <stdio.h>
10952
10953 #ifdef RTLD_GLOBAL
10954 #  define LT_DLGLOBAL           RTLD_GLOBAL
10955 #else
10956 #  ifdef DL_GLOBAL
10957 #    define LT_DLGLOBAL         DL_GLOBAL
10958 #  else
10959 #    define LT_DLGLOBAL         0
10960 #  endif
10961 #endif
10962
10963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10964    find out it does not work in some platform. */
10965 #ifndef LT_DLLAZY_OR_NOW
10966 #  ifdef RTLD_LAZY
10967 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10968 #  else
10969 #    ifdef DL_LAZY
10970 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10971 #    else
10972 #      ifdef RTLD_NOW
10973 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10974 #      else
10975 #        ifdef DL_NOW
10976 #          define LT_DLLAZY_OR_NOW      DL_NOW
10977 #        else
10978 #          define LT_DLLAZY_OR_NOW      0
10979 #        endif
10980 #      endif
10981 #    endif
10982 #  endif
10983 #endif
10984
10985 #ifdef __cplusplus
10986 extern "C" void exit (int);
10987 #endif
10988
10989 void fnord() { int i=42;}
10990 int main ()
10991 {
10992   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10993   int status = $lt_dlunknown;
10994
10995   if (self)
10996     {
10997       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10998       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10999       /* dlclose (self); */
11000     }
11001   else
11002     puts (dlerror ());
11003
11004     exit (status);
11005 }
11006 _LT_EOF
11007   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11008   (eval $ac_link) 2>&5
11009   ac_status=$?
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11012     (./conftest; exit; ) >&5 2>/dev/null
11013     lt_status=$?
11014     case x$lt_status in
11015       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11016       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11017       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11018     esac
11019   else :
11020     # compilation failed
11021     lt_cv_dlopen_self_static=no
11022   fi
11023 fi
11024 rm -fr conftest*
11025
11026
11027 fi
11028 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11029 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11030     fi
11031
11032     CPPFLAGS="$save_CPPFLAGS"
11033     LDFLAGS="$save_LDFLAGS"
11034     LIBS="$save_LIBS"
11035     ;;
11036   esac
11037
11038   case $lt_cv_dlopen_self in
11039   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11040   *) enable_dlopen_self=unknown ;;
11041   esac
11042
11043   case $lt_cv_dlopen_self_static in
11044   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11045   *) enable_dlopen_self_static=unknown ;;
11046   esac
11047 fi
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065 striplib=
11066 old_striplib=
11067 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11068 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11069 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11070   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11071   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11072   echo "$as_me:$LINENO: result: yes" >&5
11073 echo "${ECHO_T}yes" >&6
11074 else
11075 # FIXME - insert some real tests, host_os isn't really good enough
11076   case $host_os in
11077   darwin*)
11078     if test -n "$STRIP" ; then
11079       striplib="$STRIP -x"
11080       old_striplib="$STRIP -S"
11081       echo "$as_me:$LINENO: result: yes" >&5
11082 echo "${ECHO_T}yes" >&6
11083     else
11084       echo "$as_me:$LINENO: result: no" >&5
11085 echo "${ECHO_T}no" >&6
11086     fi
11087     ;;
11088   *)
11089     echo "$as_me:$LINENO: result: no" >&5
11090 echo "${ECHO_T}no" >&6
11091     ;;
11092   esac
11093 fi
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106   # Report which library types will actually be built
11107   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11108 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11109   echo "$as_me:$LINENO: result: $can_build_shared" >&5
11110 echo "${ECHO_T}$can_build_shared" >&6
11111
11112   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11113 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11114   test "$can_build_shared" = "no" && enable_shared=no
11115
11116   # On AIX, shared libraries and static libraries use the same namespace, and
11117   # are all built from PIC.
11118   case $host_os in
11119   aix3*)
11120     test "$enable_shared" = yes && enable_static=no
11121     if test -n "$RANLIB"; then
11122       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11123       postinstall_cmds='$RANLIB $lib'
11124     fi
11125     ;;
11126
11127   aix[4-9]*)
11128     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11129       test "$enable_shared" = yes && enable_static=no
11130     fi
11131     ;;
11132   esac
11133   echo "$as_me:$LINENO: result: $enable_shared" >&5
11134 echo "${ECHO_T}$enable_shared" >&6
11135
11136   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11137 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11138   # Make sure either enable_shared or enable_static is yes.
11139   test "$enable_shared" = yes || enable_static=yes
11140   echo "$as_me:$LINENO: result: $enable_static" >&5
11141 echo "${ECHO_T}$enable_static" >&6
11142
11143
11144
11145
11146 fi
11147 ac_ext=c
11148 ac_cpp='$CPP $CPPFLAGS'
11149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11152
11153 CC="$lt_save_CC"
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167                   ac_config_commands="$ac_config_commands libtool"
11168
11169
11170
11171
11172 # Only expand once:
11173
11174
11175
11176
11177
11178 if test "${ac_cv_header_stdint_h+set}" = set; then
11179   echo "$as_me:$LINENO: checking for stdint.h" >&5
11180 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11181 if test "${ac_cv_header_stdint_h+set}" = set; then
11182   echo $ECHO_N "(cached) $ECHO_C" >&6
11183 fi
11184 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11185 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11186 else
11187   # Is the header compilable?
11188 echo "$as_me:$LINENO: checking stdint.h usability" >&5
11189 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h.  */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h.  */
11196 $ac_includes_default
11197 #include <stdint.h>
11198 _ACEOF
11199 rm -f conftest.$ac_objext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201   (eval $ac_compile) 2>conftest.er1
11202   ac_status=$?
11203   grep -v '^ *+' conftest.er1 >conftest.err
11204   rm -f conftest.er1
11205   cat conftest.err >&5
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); } &&
11208          { ac_try='test -z "$ac_c_werror_flag"
11209                          || test ! -s conftest.err'
11210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211   (eval $ac_try) 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); }; } &&
11215          { ac_try='test -s conftest.$ac_objext'
11216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217   (eval $ac_try) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; }; then
11221   ac_header_compiler=yes
11222 else
11223   echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11225
11226 ac_header_compiler=no
11227 fi
11228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11230 echo "${ECHO_T}$ac_header_compiler" >&6
11231
11232 # Is the header present?
11233 echo "$as_me:$LINENO: checking stdint.h presence" >&5
11234 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 #include <stdint.h>
11242 _ACEOF
11243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11245   ac_status=$?
11246   grep -v '^ *+' conftest.er1 >conftest.err
11247   rm -f conftest.er1
11248   cat conftest.err >&5
11249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250   (exit $ac_status); } >/dev/null; then
11251   if test -s conftest.err; then
11252     ac_cpp_err=$ac_c_preproc_warn_flag
11253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11254   else
11255     ac_cpp_err=
11256   fi
11257 else
11258   ac_cpp_err=yes
11259 fi
11260 if test -z "$ac_cpp_err"; then
11261   ac_header_preproc=yes
11262 else
11263   echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266   ac_header_preproc=no
11267 fi
11268 rm -f conftest.err conftest.$ac_ext
11269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11270 echo "${ECHO_T}$ac_header_preproc" >&6
11271
11272 # So?  What about this header?
11273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11274   yes:no: )
11275     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11276 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11277     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11278 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11279     ac_header_preproc=yes
11280     ;;
11281   no:yes:* )
11282     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11283 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
11284     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
11285 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
11286     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11287 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11288     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
11289 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11290     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11291 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
11292     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11293 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
11294     (
11295       cat <<\_ASBOX
11296 ## ------------------------------------- ##
11297 ## Report this to the libmudflap lists.  ##
11298 ## ------------------------------------- ##
11299 _ASBOX
11300     ) |
11301       sed "s/^/$as_me: WARNING:     /" >&2
11302     ;;
11303 esac
11304 echo "$as_me:$LINENO: checking for stdint.h" >&5
11305 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11306 if test "${ac_cv_header_stdint_h+set}" = set; then
11307   echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309   ac_cv_header_stdint_h=$ac_header_preproc
11310 fi
11311 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11312 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11313
11314 fi
11315 if test $ac_cv_header_stdint_h = yes; then
11316   MF_HAVE_STDINT_H=1
11317 else
11318   MF_HAVE_STDINT_H=0
11319 fi
11320
11321
11322
11323 if test $MF_HAVE_STDINT_H = 1
11324 then
11325    MF_HAVE_UINTPTR_T=1
11326 else
11327    cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h.  */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h.  */
11333 #include <sys/types.h>
11334 int
11335 main ()
11336 {
11337 uintptr_t k = 0;
11338   ;
11339   return 0;
11340 }
11341 _ACEOF
11342 rm -f conftest.$ac_objext
11343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11344   (eval $ac_compile) 2>conftest.er1
11345   ac_status=$?
11346   grep -v '^ *+' conftest.er1 >conftest.err
11347   rm -f conftest.er1
11348   cat conftest.err >&5
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); } &&
11351          { ac_try='test -z "$ac_c_werror_flag"
11352                          || test ! -s conftest.err'
11353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354   (eval $ac_try) 2>&5
11355   ac_status=$?
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); }; } &&
11358          { ac_try='test -s conftest.$ac_objext'
11359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360   (eval $ac_try) 2>&5
11361   ac_status=$?
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); }; }; then
11364   MF_HAVE_UINTPTR_T=1
11365 else
11366   echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11368
11369 MF_HAVE_UINTPTR_T=0
11370 fi
11371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11372 fi
11373
11374
11375 if test ! -d pth
11376 then
11377   # libmudflapth objects are built in this subdirectory
11378   mkdir pth
11379 fi
11380
11381
11382 for ac_header in pthread.h
11383 do
11384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11386   echo "$as_me:$LINENO: checking for $ac_header" >&5
11387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 fi
11391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11393 else
11394   # Is the header compilable?
11395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11397 cat >conftest.$ac_ext <<_ACEOF
11398 /* confdefs.h.  */
11399 _ACEOF
11400 cat confdefs.h >>conftest.$ac_ext
11401 cat >>conftest.$ac_ext <<_ACEOF
11402 /* end confdefs.h.  */
11403 $ac_includes_default
11404 #include <$ac_header>
11405 _ACEOF
11406 rm -f conftest.$ac_objext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11408   (eval $ac_compile) 2>conftest.er1
11409   ac_status=$?
11410   grep -v '^ *+' conftest.er1 >conftest.err
11411   rm -f conftest.er1
11412   cat conftest.err >&5
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } &&
11415          { ac_try='test -z "$ac_c_werror_flag"
11416                          || test ! -s conftest.err'
11417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418   (eval $ac_try) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; } &&
11422          { ac_try='test -s conftest.$ac_objext'
11423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424   (eval $ac_try) 2>&5
11425   ac_status=$?
11426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427   (exit $ac_status); }; }; then
11428   ac_header_compiler=yes
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ac_header_compiler=no
11434 fi
11435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11437 echo "${ECHO_T}$ac_header_compiler" >&6
11438
11439 # Is the header present?
11440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11442 cat >conftest.$ac_ext <<_ACEOF
11443 /* confdefs.h.  */
11444 _ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h.  */
11448 #include <$ac_header>
11449 _ACEOF
11450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11452   ac_status=$?
11453   grep -v '^ *+' conftest.er1 >conftest.err
11454   rm -f conftest.er1
11455   cat conftest.err >&5
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); } >/dev/null; then
11458   if test -s conftest.err; then
11459     ac_cpp_err=$ac_c_preproc_warn_flag
11460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11461   else
11462     ac_cpp_err=
11463   fi
11464 else
11465   ac_cpp_err=yes
11466 fi
11467 if test -z "$ac_cpp_err"; then
11468   ac_header_preproc=yes
11469 else
11470   echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473   ac_header_preproc=no
11474 fi
11475 rm -f conftest.err conftest.$ac_ext
11476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11477 echo "${ECHO_T}$ac_header_preproc" >&6
11478
11479 # So?  What about this header?
11480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11481   yes:no: )
11482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11486     ac_header_preproc=yes
11487     ;;
11488   no:yes:* )
11489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11501     (
11502       cat <<\_ASBOX
11503 ## ------------------------------------- ##
11504 ## Report this to the libmudflap lists.  ##
11505 ## ------------------------------------- ##
11506 _ASBOX
11507     ) |
11508       sed "s/^/$as_me: WARNING:     /" >&2
11509     ;;
11510 esac
11511 echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11514   echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516   eval "$as_ac_Header=\$ac_header_preproc"
11517 fi
11518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11520
11521 fi
11522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11523   cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11525 _ACEOF
11526
11527 fi
11528
11529 done
11530
11531
11532 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
11533 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
11534 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11535 echo "$as_me:$LINENO: result: $target_thread_file" >&5
11536 echo "${ECHO_T}$target_thread_file" >&6
11537
11538 # We only support posix threads, or no threads at all.
11539 posix_threads=
11540 case ${target_thread_file} in
11541   posix)
11542     posix_threads=yes
11543     ;;
11544   single)
11545     ;;
11546   *)
11547     echo "${target_thread_file} is an unsupported thread package" 1>&2
11548     exit 1
11549     ;;
11550 esac
11551
11552
11553
11554 if test "x$posix_threads" != "x"; then
11555   LIBMUDFLAPTH_TRUE=
11556   LIBMUDFLAPTH_FALSE='#'
11557 else
11558   LIBMUDFLAPTH_TRUE='#'
11559   LIBMUDFLAPTH_FALSE=
11560 fi
11561
11562 if test "x$posix_threads" != "x"
11563 then
11564         build_libmudflapth=1
11565 else
11566         build_libmudflapth=0
11567 fi
11568
11569
11570
11571 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11572 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
11573 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576   ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-ldl  $LIBS"
11578 cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h.  */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h.  */
11584
11585 /* Override any gcc2 internal prototype to avoid an error.  */
11586 #ifdef __cplusplus
11587 extern "C"
11588 #endif
11589 /* We use char because int might match the return type of a gcc2
11590    builtin and then its argument prototype would still apply.  */
11591 char dlsym ();
11592 int
11593 main ()
11594 {
11595 dlsym ();
11596   ;
11597   return 0;
11598 }
11599 _ACEOF
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11602   (eval $ac_link) 2>conftest.er1
11603   ac_status=$?
11604   grep -v '^ *+' conftest.er1 >conftest.err
11605   rm -f conftest.er1
11606   cat conftest.err >&5
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } &&
11609          { ac_try='test -z "$ac_c_werror_flag"
11610                          || test ! -s conftest.err'
11611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612   (eval $ac_try) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; } &&
11616          { ac_try='test -s conftest$ac_exeext'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   ac_cv_lib_dl_dlsym=yes
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ac_cv_lib_dl_dlsym=no
11628 fi
11629 rm -f conftest.err conftest.$ac_objext \
11630       conftest$ac_exeext conftest.$ac_ext
11631 LIBS=$ac_check_lib_save_LIBS
11632 fi
11633 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11634 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
11635 if test $ac_cv_lib_dl_dlsym = yes; then
11636   cat >>confdefs.h <<_ACEOF
11637 #define HAVE_LIBDL 1
11638 _ACEOF
11639
11640   LIBS="-ldl $LIBS"
11641
11642 fi
11643
11644
11645 # Calculate toolexeclibdir
11646 # Also toolexecdir, though it's only used in toolexeclibdir
11647 case ${version_specific_libs} in
11648   yes)
11649     # Need the gcc compiler version to know where to install libraries
11650     # and header files if --enable-version-specific-runtime-libs option
11651     # is selected.
11652     toolexecdir='$(libdir)/gcc/$(target_alias)'
11653     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11654     ;;
11655   no)
11656     if test -n "$with_cross_host" &&
11657        test x"$with_cross_host" != x"no"; then
11658       # Install a library built with a cross compiler in tooldir, not libdir.
11659       toolexecdir='$(exec_prefix)/$(target_alias)'
11660       toolexeclibdir='$(toolexecdir)/lib'
11661     else
11662       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11663       toolexeclibdir='$(libdir)'
11664     fi
11665     multi_os_directory=`$CC -print-multi-os-directory`
11666     case $multi_os_directory in
11667       .) ;; # Avoid trailing /.
11668       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11669     esac
11670     ;;
11671 esac
11672
11673
11674
11675 includedir=${toolexecdir}/include
11676
11677
11678 pthread_create_version='""'
11679 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
11680   # NB: don't check for -lpthread here, because then it would be
11681   # added to LIBS.  For the thread-unaware libmudflap.la, we don't
11682   # want it there.
11683
11684   # glibc-related hacks.  dlsym() may pick the wrong version of
11685   # interposed functions like pthread_create on modern glibc.
11686   # We need to find the proper symbol version string, and use
11687   # the nonstandard dlvsym().
11688
11689 for ac_func in dlvsym
11690 do
11691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11692 echo "$as_me:$LINENO: checking for $ac_func" >&5
11693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11694 if eval "test \"\${$as_ac_var+set}\" = set"; then
11695   echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697   cat >conftest.$ac_ext <<_ACEOF
11698 /* confdefs.h.  */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h.  */
11703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11705 #define $ac_func innocuous_$ac_func
11706
11707 /* System header to define __stub macros and hopefully few prototypes,
11708     which can conflict with char $ac_func (); below.
11709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11710     <limits.h> exists even on freestanding compilers.  */
11711
11712 #ifdef __STDC__
11713 # include <limits.h>
11714 #else
11715 # include <assert.h>
11716 #endif
11717
11718 #undef $ac_func
11719
11720 /* Override any gcc2 internal prototype to avoid an error.  */
11721 #ifdef __cplusplus
11722 extern "C"
11723 {
11724 #endif
11725 /* We use char because int might match the return type of a gcc2
11726    builtin and then its argument prototype would still apply.  */
11727 char $ac_func ();
11728 /* The GNU C library defines this for functions which it implements
11729     to always fail with ENOSYS.  Some functions are actually named
11730     something starting with __ and the normal name is an alias.  */
11731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11732 choke me
11733 #else
11734 char (*f) () = $ac_func;
11735 #endif
11736 #ifdef __cplusplus
11737 }
11738 #endif
11739
11740 int
11741 main ()
11742 {
11743 return f != $ac_func;
11744   ;
11745   return 0;
11746 }
11747 _ACEOF
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11750   (eval $ac_link) 2>conftest.er1
11751   ac_status=$?
11752   grep -v '^ *+' conftest.er1 >conftest.err
11753   rm -f conftest.er1
11754   cat conftest.err >&5
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); } &&
11757          { ac_try='test -z "$ac_c_werror_flag"
11758                          || test ! -s conftest.err'
11759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760   (eval $ac_try) 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); }; } &&
11764          { ac_try='test -s conftest$ac_exeext'
11765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766   (eval $ac_try) 2>&5
11767   ac_status=$?
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); }; }; then
11770   eval "$as_ac_var=yes"
11771 else
11772   echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11774
11775 eval "$as_ac_var=no"
11776 fi
11777 rm -f conftest.err conftest.$ac_objext \
11778       conftest$ac_exeext conftest.$ac_ext
11779 fi
11780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11782 if test `eval echo '${'$as_ac_var'}'` = yes; then
11783   cat >>confdefs.h <<_ACEOF
11784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11785 _ACEOF
11786
11787 fi
11788 done
11789
11790   if test -n "$ac_tool_prefix"; then
11791   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
11792 set dummy ${ac_tool_prefix}nm; ac_word=$2
11793 echo "$as_me:$LINENO: checking for $ac_word" >&5
11794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11795 if test "${ac_cv_prog_NM+set}" = set; then
11796   echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798   if test -n "$NM"; then
11799   ac_cv_prog_NM="$NM" # Let the user override the test.
11800 else
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH
11803 do
11804   IFS=$as_save_IFS
11805   test -z "$as_dir" && as_dir=.
11806   for ac_exec_ext in '' $ac_executable_extensions; do
11807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808     ac_cv_prog_NM="${ac_tool_prefix}nm"
11809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810     break 2
11811   fi
11812 done
11813 done
11814
11815 fi
11816 fi
11817 NM=$ac_cv_prog_NM
11818 if test -n "$NM"; then
11819   echo "$as_me:$LINENO: result: $NM" >&5
11820 echo "${ECHO_T}$NM" >&6
11821 else
11822   echo "$as_me:$LINENO: result: no" >&5
11823 echo "${ECHO_T}no" >&6
11824 fi
11825
11826 fi
11827 if test -z "$ac_cv_prog_NM"; then
11828   ac_ct_NM=$NM
11829   # Extract the first word of "nm", so it can be a program name with args.
11830 set dummy nm; ac_word=$2
11831 echo "$as_me:$LINENO: checking for $ac_word" >&5
11832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11833 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
11834   echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836   if test -n "$ac_ct_NM"; then
11837   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
11838 else
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11841 do
11842   IFS=$as_save_IFS
11843   test -z "$as_dir" && as_dir=.
11844   for ac_exec_ext in '' $ac_executable_extensions; do
11845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11846     ac_cv_prog_ac_ct_NM="nm"
11847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11848     break 2
11849   fi
11850 done
11851 done
11852
11853 fi
11854 fi
11855 ac_ct_NM=$ac_cv_prog_ac_ct_NM
11856 if test -n "$ac_ct_NM"; then
11857   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
11858 echo "${ECHO_T}$ac_ct_NM" >&6
11859 else
11860   echo "$as_me:$LINENO: result: no" >&5
11861 echo "${ECHO_T}no" >&6
11862 fi
11863
11864   NM=$ac_ct_NM
11865 else
11866   NM="$ac_cv_prog_NM"
11867 fi
11868
11869   if test "x$ac_cv_have_dlvsym" != "x"; then
11870     # Try compiling a simple pthreads program.  Find the shared libraries it
11871     # ends up with.  Then use "nm" on those libraries to extract the
11872     # default symbol versioning suffix ("@@"), if any.  But that's tricky.
11873     # Rather, run nm on the resulting executable.  Unfortunately, autoconf
11874     # doesn't appear to have a macro that builds a test executable for
11875     # subsequent analysis ... so we do it by hand here.
11876     cat >> conftest.c << EOF
11877 #include <pthread.h>
11878 int main () { void *p = (void *) & pthread_create; return (int) p; }
11879 EOF
11880     oldLIBS="$LIBS"
11881     LIBS="$LIBS -lpthread"
11882     pthread_create_version="\"\""
11883     echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
11884 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
11885     if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
11886       version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
11887       if test "x$version" != "x"; then
11888         pthread_create_version="\"$version\""
11889       fi
11890     fi
11891     echo "$as_me:$LINENO: result: $pthread_create_version" >&5
11892 echo "${ECHO_T}$pthread_create_version" >&6
11893     LIBS="$oldLIBS"
11894   fi
11895 fi
11896
11897 cat >>confdefs.h <<_ACEOF
11898 #define PTHREAD_CREATE_VERSION $pthread_create_version
11899 _ACEOF
11900
11901
11902
11903 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
11904 # similarly to how libstdc++ does it
11905 ac_test_CFLAGS="${CFLAGS+set}"
11906 ac_save_CFLAGS="$CFLAGS"
11907
11908 # Check for -ffunction-sections -fdata-sections
11909 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
11910 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
11911 CFLAGS='-Werror -ffunction-sections -fdata-sections'
11912 cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h.  */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h.  */
11918
11919 int
11920 main ()
11921 {
11922 int foo;
11923   ;
11924   return 0;
11925 }
11926 _ACEOF
11927 rm -f conftest.$ac_objext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929   (eval $ac_compile) 2>conftest.er1
11930   ac_status=$?
11931   grep -v '^ *+' conftest.er1 >conftest.err
11932   rm -f conftest.er1
11933   cat conftest.err >&5
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } &&
11936          { ac_try='test -z "$ac_c_werror_flag"
11937                          || test ! -s conftest.err'
11938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939   (eval $ac_try) 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }; } &&
11943          { ac_try='test -s conftest.$ac_objext'
11944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945   (eval $ac_try) 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; }; then
11949   ac_fdsections=yes
11950 else
11951   echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11953
11954 ac_fdsections=no
11955 fi
11956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957 if test "$ac_test_CFLAGS" = set; then
11958   CFLAGS="$ac_save_CFLAGS"
11959 else
11960   # this is the suspicious part
11961   CFLAGS=""
11962 fi
11963 if test x"$ac_fdsections" = x"yes"; then
11964   SECTION_FLAGS='-ffunction-sections -fdata-sections'
11965 fi
11966 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
11967 echo "${ECHO_T}$ac_fdsections" >&6
11968
11969
11970
11971 # Check for the name of the symbol used for the entry point.
11972 echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
11973 echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
11974 if test "${mudflap_cv_entry_point+set}" = set; then
11975   echo $ECHO_N "(cached) $ECHO_C" >&6
11976 else
11977
11978 for name in _start __start unknown; do
11979   cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h.  */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h.  */
11985 extern char $name[];
11986 int
11987 main ()
11988 {
11989 $name[0] = 0;
11990   ;
11991   return 0;
11992 }
11993 _ACEOF
11994 rm -f conftest.$ac_objext conftest$ac_exeext
11995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11996   (eval $ac_link) 2>conftest.er1
11997   ac_status=$?
11998   grep -v '^ *+' conftest.er1 >conftest.err
11999   rm -f conftest.er1
12000   cat conftest.err >&5
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); } &&
12003          { ac_try='test -z "$ac_c_werror_flag"
12004                          || test ! -s conftest.err'
12005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006   (eval $ac_try) 2>&5
12007   ac_status=$?
12008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009   (exit $ac_status); }; } &&
12010          { ac_try='test -s conftest$ac_exeext'
12011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012   (eval $ac_try) 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); }; }; then
12016   break
12017 else
12018   echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12020
12021 fi
12022 rm -f conftest.err conftest.$ac_objext \
12023       conftest$ac_exeext conftest.$ac_ext
12024 done
12025 mudflap_cv_entry_point="$name"
12026 fi
12027 echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
12028 echo "${ECHO_T}$mudflap_cv_entry_point" >&6
12029 if test "$mudflap_cv_entry_point" = unknown; then
12030   { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
12031 echo "$as_me: error: none of the known symbol names works" >&2;}
12032    { (exit 1); exit 1; }; }
12033 fi
12034
12035 cat >>confdefs.h <<_ACEOF
12036 #define ENTRY_POINT $mudflap_cv_entry_point
12037 _ACEOF
12038
12039
12040
12041 if test ${multilib} = yes; then
12042   multilib_arg="--enable-multilib"
12043 else
12044   multilib_arg=
12045 fi
12046
12047 # See if we support thread-local storage.
12048
12049    # Check whether --enable-tls or --disable-tls was given.
12050 if test "${enable_tls+set}" = set; then
12051   enableval="$enable_tls"
12052
12053       case "$enableval" in
12054        yes|no) ;;
12055        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
12056 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
12057    { (exit 1); exit 1; }; } ;;
12058       esac
12059
12060 else
12061   enable_tls=yes
12062 fi;
12063
12064   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
12065 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
12066 if test "${gcc_cv_have_tls+set}" = set; then
12067   echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069
12070     if test "$cross_compiling" = yes; then
12071                 cat >conftest.$ac_ext <<_ACEOF
12072 __thread int a; int b; int main() { return a = b; }
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076   (eval $ac_link) 2>conftest.er1
12077   ac_status=$?
12078   grep -v '^ *+' conftest.er1 >conftest.err
12079   rm -f conftest.er1
12080   cat conftest.err >&5
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } &&
12083          { ac_try='test -z "$ac_c_werror_flag"
12084                          || test ! -s conftest.err'
12085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086   (eval $ac_try) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; } &&
12090          { ac_try='test -s conftest$ac_exeext'
12091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092   (eval $ac_try) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; }; then
12096   gcc_cv_have_tls=yes
12097 else
12098   echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12100
12101 gcc_cv_have_tls=no
12102 fi
12103 rm -f conftest.err conftest.$ac_objext \
12104       conftest$ac_exeext conftest.$ac_ext
12105
12106
12107 else
12108   cat >conftest.$ac_ext <<_ACEOF
12109 __thread int a; int b; int main() { return a = b; }
12110 _ACEOF
12111 rm -f conftest$ac_exeext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12113   (eval $ac_link) 2>&5
12114   ac_status=$?
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122                       chktls_save_LDFLAGS="$LDFLAGS"
12123       LDFLAGS="-static $LDFLAGS"
12124       cat >conftest.$ac_ext <<_ACEOF
12125 int main() { return 0; }
12126 _ACEOF
12127 rm -f conftest.$ac_objext conftest$ac_exeext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12129   (eval $ac_link) 2>conftest.er1
12130   ac_status=$?
12131   grep -v '^ *+' conftest.er1 >conftest.err
12132   rm -f conftest.er1
12133   cat conftest.err >&5
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); } &&
12136          { ac_try='test -z "$ac_c_werror_flag"
12137                          || test ! -s conftest.err'
12138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139   (eval $ac_try) 2>&5
12140   ac_status=$?
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); }; } &&
12143          { ac_try='test -s conftest$ac_exeext'
12144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145   (eval $ac_try) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); }; }; then
12149   if test "$cross_compiling" = yes; then
12150   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12151 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12152 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12153 See \`config.log' for more details." >&5
12154 echo "$as_me: error: cannot run test program while cross compiling
12155 See \`config.log' for more details." >&2;}
12156    { (exit 1); exit 1; }; }; }
12157 else
12158   cat >conftest.$ac_ext <<_ACEOF
12159 __thread int a; int b; int main() { return a = b; }
12160 _ACEOF
12161 rm -f conftest$ac_exeext
12162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12163   (eval $ac_link) 2>&5
12164   ac_status=$?
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168   (eval $ac_try) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); }; }; then
12172   gcc_cv_have_tls=yes
12173 else
12174   echo "$as_me: program exited with status $ac_status" >&5
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12177
12178 ( exit $ac_status )
12179 gcc_cv_have_tls=no
12180 fi
12181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12182 fi
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 gcc_cv_have_tls=yes
12188 fi
12189 rm -f conftest.err conftest.$ac_objext \
12190       conftest$ac_exeext conftest.$ac_ext
12191       LDFLAGS="$chktls_save_LDFLAGS"
12192       if test $gcc_cv_have_tls = yes; then
12193                                                 chktls_save_CFLAGS="$CFLAGS"
12194         thread_CFLAGS=failed
12195         for flag in '' '-pthread' '-lpthread'; do
12196           CFLAGS="$flag $chktls_save_CFLAGS"
12197           cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203 #include <pthread.h>
12204                 void *g(void *d) { return NULL; }
12205 int
12206 main ()
12207 {
12208 pthread_t t; pthread_create(&t,NULL,g,NULL);
12209   ;
12210   return 0;
12211 }
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215   (eval $ac_link) 2>conftest.er1
12216   ac_status=$?
12217   grep -v '^ *+' conftest.er1 >conftest.err
12218   rm -f conftest.er1
12219   cat conftest.err >&5
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } &&
12222          { ac_try='test -z "$ac_c_werror_flag"
12223                          || test ! -s conftest.err'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; } &&
12229          { ac_try='test -s conftest$ac_exeext'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; }; then
12235   thread_CFLAGS="$flag"
12236 else
12237   echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12239
12240 fi
12241 rm -f conftest.err conftest.$ac_objext \
12242       conftest$ac_exeext conftest.$ac_ext
12243           if test "X$thread_CFLAGS" != Xfailed; then
12244             break
12245           fi
12246         done
12247         CFLAGS="$chktls_save_CFLAGS"
12248         if test "X$thread_CFLAGS" != Xfailed; then
12249           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
12250           if test "$cross_compiling" = yes; then
12251   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12252 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12253 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12254 See \`config.log' for more details." >&5
12255 echo "$as_me: error: cannot run test program while cross compiling
12256 See \`config.log' for more details." >&2;}
12257    { (exit 1); exit 1; }; }; }
12258 else
12259   cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h.  */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h.  */
12265 #include <pthread.h>
12266                 __thread int a;
12267                 static int *a_in_other_thread;
12268                 static void *
12269                 thread_func (void *arg)
12270                 {
12271                   a_in_other_thread = &a;
12272                   return (void *)0;
12273                 }
12274 int
12275 main ()
12276 {
12277 pthread_t thread;
12278                 void *thread_retval;
12279                 int *a_in_main_thread;
12280                 if (pthread_create (&thread, (pthread_attr_t *)0,
12281                                     thread_func, (void *)0))
12282                   return 0;
12283                 a_in_main_thread = &a;
12284                 if (pthread_join (thread, &thread_retval))
12285                   return 0;
12286                 return (a_in_other_thread == a_in_main_thread);
12287   ;
12288   return 0;
12289 }
12290 _ACEOF
12291 rm -f conftest$ac_exeext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12293   (eval $ac_link) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298   (eval $ac_try) 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; }; then
12302   gcc_cv_have_tls=yes
12303 else
12304   echo "$as_me: program exited with status $ac_status" >&5
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.$ac_ext >&5
12307
12308 ( exit $ac_status )
12309 gcc_cv_have_tls=no
12310 fi
12311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12312 fi
12313           CFLAGS="$chktls_save_CFLAGS"
12314         fi
12315       fi
12316 else
12317   echo "$as_me: program exited with status $ac_status" >&5
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ( exit $ac_status )
12322 gcc_cv_have_tls=no
12323 fi
12324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12325 fi
12326 fi
12327 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
12328 echo "${ECHO_T}$gcc_cv_have_tls" >&6
12329   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
12330
12331 cat >>confdefs.h <<\_ACEOF
12332 #define HAVE_TLS 1
12333 _ACEOF
12334
12335   fi
12336
12337                               ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
12338
12339 cat >confcache <<\_ACEOF
12340 # This file is a shell script that caches the results of configure
12341 # tests run on this system so they can be shared between configure
12342 # scripts and configure runs, see configure's option --config-cache.
12343 # It is not useful on other systems.  If it contains results you don't
12344 # want to keep, you may remove or edit it.
12345 #
12346 # config.status only pays attention to the cache file if you give it
12347 # the --recheck option to rerun configure.
12348 #
12349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12351 # following values.
12352
12353 _ACEOF
12354
12355 # The following way of writing the cache mishandles newlines in values,
12356 # but we know of no workaround that is simple, portable, and efficient.
12357 # So, don't put newlines in cache variables' values.
12358 # Ultrix sh set writes to stderr and can't be redirected directly,
12359 # and sets the high bit in the cache file unless we assign to the vars.
12360 {
12361   (set) 2>&1 |
12362     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12363     *ac_space=\ *)
12364       # `set' does not quote correctly, so add quotes (double-quote
12365       # substitution turns \\\\ into \\, and sed turns \\ into \).
12366       sed -n \
12367         "s/'/'\\\\''/g;
12368           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12369       ;;
12370     *)
12371       # `set' quotes correctly as required by POSIX, so do not add quotes.
12372       sed -n \
12373         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12374       ;;
12375     esac;
12376 } |
12377   sed '
12378      t clear
12379      : clear
12380      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12381      t end
12382      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12383      : end' >>confcache
12384 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12385   if test -w $cache_file; then
12386     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12387     cat confcache >$cache_file
12388   else
12389     echo "not updating unwritable cache $cache_file"
12390   fi
12391 fi
12392 rm -f confcache
12393
12394 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12395 # Let make expand exec_prefix.
12396 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12397
12398 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12399 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12400 # trailing colons and then remove the whole line if VPATH becomes empty
12401 # (actually we leave an empty line to preserve line numbers).
12402 if test "x$srcdir" = x.; then
12403   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12404 s/:*\$(srcdir):*/:/;
12405 s/:*\${srcdir}:*/:/;
12406 s/:*@srcdir@:*/:/;
12407 s/^\([^=]*=[     ]*\):*/\1/;
12408 s/:*$//;
12409 s/^[^=]*=[       ]*$//;
12410 }'
12411 fi
12412
12413 DEFS=-DHAVE_CONFIG_H
12414
12415 ac_libobjs=
12416 ac_ltlibobjs=
12417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12418   # 1. Remove the extension, and $U if already installed.
12419   ac_i=`echo "$ac_i" |
12420          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12421   # 2. Add them.
12422   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12423   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12424 done
12425 LIBOBJS=$ac_libobjs
12426
12427 LTLIBOBJS=$ac_ltlibobjs
12428
12429
12430 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12431   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12432 Usually this means the macro was only invoked conditionally." >&5
12433 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12434 Usually this means the macro was only invoked conditionally." >&2;}
12435    { (exit 1); exit 1; }; }
12436 fi
12437 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12438   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12439 Usually this means the macro was only invoked conditionally." >&5
12440 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12441 Usually this means the macro was only invoked conditionally." >&2;}
12442    { (exit 1); exit 1; }; }
12443 fi
12444 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12445   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12446 Usually this means the macro was only invoked conditionally." >&5
12447 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12448 Usually this means the macro was only invoked conditionally." >&2;}
12449    { (exit 1); exit 1; }; }
12450 fi
12451 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
12452   { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
12453 Usually this means the macro was only invoked conditionally." >&5
12454 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
12455 Usually this means the macro was only invoked conditionally." >&2;}
12456    { (exit 1); exit 1; }; }
12457 fi
12458
12459 : ${CONFIG_STATUS=./config.status}
12460 ac_clean_files_save=$ac_clean_files
12461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12462 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12463 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12464 cat >$CONFIG_STATUS <<_ACEOF
12465 #! $SHELL
12466 # Generated by $as_me.
12467 # Run this file to recreate the current configuration.
12468 # Compiler output produced by configure, useful for debugging
12469 # configure, is in config.log if it exists.
12470
12471 debug=false
12472 ac_cs_recheck=false
12473 ac_cs_silent=false
12474 SHELL=\${CONFIG_SHELL-$SHELL}
12475 _ACEOF
12476
12477 cat >>$CONFIG_STATUS <<\_ACEOF
12478 ## --------------------- ##
12479 ## M4sh Initialization.  ##
12480 ## --------------------- ##
12481
12482 # Be Bourne compatible
12483 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12484   emulate sh
12485   NULLCMD=:
12486   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12487   # is contrary to our usage.  Disable this feature.
12488   alias -g '${1+"$@"}'='"$@"'
12489 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12490   set -o posix
12491 fi
12492 DUALCASE=1; export DUALCASE # for MKS sh
12493
12494 # Support unset when possible.
12495 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12496   as_unset=unset
12497 else
12498   as_unset=false
12499 fi
12500
12501
12502 # Work around bugs in pre-3.0 UWIN ksh.
12503 $as_unset ENV MAIL MAILPATH
12504 PS1='$ '
12505 PS2='> '
12506 PS4='+ '
12507
12508 # NLS nuisances.
12509 for as_var in \
12510   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12511   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12512   LC_TELEPHONE LC_TIME
12513 do
12514   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12515     eval $as_var=C; export $as_var
12516   else
12517     $as_unset $as_var
12518   fi
12519 done
12520
12521 # Required to use basename.
12522 if expr a : '\(a\)' >/dev/null 2>&1; then
12523   as_expr=expr
12524 else
12525   as_expr=false
12526 fi
12527
12528 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12529   as_basename=basename
12530 else
12531   as_basename=false
12532 fi
12533
12534
12535 # Name of the executable.
12536 as_me=`$as_basename "$0" ||
12537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12538          X"$0" : 'X\(//\)$' \| \
12539          X"$0" : 'X\(/\)$' \| \
12540          .     : '\(.\)' 2>/dev/null ||
12541 echo X/"$0" |
12542     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12543           /^X\/\(\/\/\)$/{ s//\1/; q; }
12544           /^X\/\(\/\).*/{ s//\1/; q; }
12545           s/.*/./; q'`
12546
12547
12548 # PATH needs CR, and LINENO needs CR and PATH.
12549 # Avoid depending upon Character Ranges.
12550 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12551 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12552 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12553 as_cr_digits='0123456789'
12554 as_cr_alnum=$as_cr_Letters$as_cr_digits
12555
12556 # The user is always right.
12557 if test "${PATH_SEPARATOR+set}" != set; then
12558   echo "#! /bin/sh" >conf$$.sh
12559   echo  "exit 0"   >>conf$$.sh
12560   chmod +x conf$$.sh
12561   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12562     PATH_SEPARATOR=';'
12563   else
12564     PATH_SEPARATOR=:
12565   fi
12566   rm -f conf$$.sh
12567 fi
12568
12569
12570   as_lineno_1=$LINENO
12571   as_lineno_2=$LINENO
12572   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12573   test "x$as_lineno_1" != "x$as_lineno_2" &&
12574   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12575   # Find who we are.  Look in the path if we contain no path at all
12576   # relative or not.
12577   case $0 in
12578     *[\\/]* ) as_myself=$0 ;;
12579     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580 for as_dir in $PATH
12581 do
12582   IFS=$as_save_IFS
12583   test -z "$as_dir" && as_dir=.
12584   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12585 done
12586
12587        ;;
12588   esac
12589   # We did not find ourselves, most probably we were run as `sh COMMAND'
12590   # in which case we are not to be found in the path.
12591   if test "x$as_myself" = x; then
12592     as_myself=$0
12593   fi
12594   if test ! -f "$as_myself"; then
12595     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12596 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12597    { (exit 1); exit 1; }; }
12598   fi
12599   case $CONFIG_SHELL in
12600   '')
12601     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12603 do
12604   IFS=$as_save_IFS
12605   test -z "$as_dir" && as_dir=.
12606   for as_base in sh bash ksh sh5; do
12607          case $as_dir in
12608          /*)
12609            if ("$as_dir/$as_base" -c '
12610   as_lineno_1=$LINENO
12611   as_lineno_2=$LINENO
12612   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12613   test "x$as_lineno_1" != "x$as_lineno_2" &&
12614   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12615              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12616              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12617              CONFIG_SHELL=$as_dir/$as_base
12618              export CONFIG_SHELL
12619              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12620            fi;;
12621          esac
12622        done
12623 done
12624 ;;
12625   esac
12626
12627   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12628   # uniformly replaced by the line number.  The first 'sed' inserts a
12629   # line-number line before each line; the second 'sed' does the real
12630   # work.  The second script uses 'N' to pair each line-number line
12631   # with the numbered line, and appends trailing '-' during
12632   # substitution so that $LINENO is not a special case at line end.
12633   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12634   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12635   sed '=' <$as_myself |
12636     sed '
12637       N
12638       s,$,-,
12639       : loop
12640       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12641       t loop
12642       s,-$,,
12643       s,^['$as_cr_digits']*\n,,
12644     ' >$as_me.lineno &&
12645   chmod +x $as_me.lineno ||
12646     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12647 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12648    { (exit 1); exit 1; }; }
12649
12650   # Don't try to exec as it changes $[0], causing all sort of problems
12651   # (the dirname of $[0] is not the place where we might find the
12652   # original and so on.  Autoconf is especially sensible to this).
12653   . ./$as_me.lineno
12654   # Exit status is that of the last command.
12655   exit
12656 }
12657
12658
12659 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12660   *c*,-n*) ECHO_N= ECHO_C='
12661 ' ECHO_T='      ' ;;
12662   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12663   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12664 esac
12665
12666 if expr a : '\(a\)' >/dev/null 2>&1; then
12667   as_expr=expr
12668 else
12669   as_expr=false
12670 fi
12671
12672 rm -f conf$$ conf$$.exe conf$$.file
12673 echo >conf$$.file
12674 if ln -s conf$$.file conf$$ 2>/dev/null; then
12675   # We could just check for DJGPP; but this test a) works b) is more generic
12676   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12677   if test -f conf$$.exe; then
12678     # Don't use ln at all; we don't have any links
12679     as_ln_s='cp -p'
12680   else
12681     as_ln_s='ln -s'
12682   fi
12683 elif ln conf$$.file conf$$ 2>/dev/null; then
12684   as_ln_s=ln
12685 else
12686   as_ln_s='cp -p'
12687 fi
12688 rm -f conf$$ conf$$.exe conf$$.file
12689
12690 if mkdir -p . 2>/dev/null; then
12691   as_mkdir_p=:
12692 else
12693   test -d ./-p && rmdir ./-p
12694   as_mkdir_p=false
12695 fi
12696
12697 as_executable_p="test -f"
12698
12699 # Sed expression to map a string onto a valid CPP name.
12700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12701
12702 # Sed expression to map a string onto a valid variable name.
12703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12704
12705
12706 # IFS
12707 # We need space, tab and new line, in precisely that order.
12708 as_nl='
12709 '
12710 IFS="   $as_nl"
12711
12712 # CDPATH.
12713 $as_unset CDPATH
12714
12715 exec 6>&1
12716
12717 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12718 # report actual input values of CONFIG_FILES etc. instead of their
12719 # values after options handling.  Logging --version etc. is OK.
12720 exec 5>>config.log
12721 {
12722   echo
12723   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12724 ## Running $as_me. ##
12725 _ASBOX
12726 } >&5
12727 cat >&5 <<_CSEOF
12728
12729 This file was extended by libmudflap $as_me 1.0, which was
12730 generated by GNU Autoconf 2.59.  Invocation command line was
12731
12732   CONFIG_FILES    = $CONFIG_FILES
12733   CONFIG_HEADERS  = $CONFIG_HEADERS
12734   CONFIG_LINKS    = $CONFIG_LINKS
12735   CONFIG_COMMANDS = $CONFIG_COMMANDS
12736   $ $0 $@
12737
12738 _CSEOF
12739 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12740 echo >&5
12741 _ACEOF
12742
12743 # Files that config.status was made for.
12744 if test -n "$ac_config_files"; then
12745   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12746 fi
12747
12748 if test -n "$ac_config_headers"; then
12749   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12750 fi
12751
12752 if test -n "$ac_config_links"; then
12753   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12754 fi
12755
12756 if test -n "$ac_config_commands"; then
12757   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12758 fi
12759
12760 cat >>$CONFIG_STATUS <<\_ACEOF
12761
12762 ac_cs_usage="\
12763 \`$as_me' instantiates files from templates according to the
12764 current configuration.
12765
12766 Usage: $0 [OPTIONS] [FILE]...
12767
12768   -h, --help       print this help, then exit
12769   -V, --version    print version number, then exit
12770   -q, --quiet      do not print progress messages
12771   -d, --debug      don't remove temporary files
12772       --recheck    update $as_me by reconfiguring in the same conditions
12773   --file=FILE[:TEMPLATE]
12774                    instantiate the configuration file FILE
12775   --header=FILE[:TEMPLATE]
12776                    instantiate the configuration header FILE
12777
12778 Configuration files:
12779 $config_files
12780
12781 Configuration headers:
12782 $config_headers
12783
12784 Configuration commands:
12785 $config_commands
12786
12787 Report bugs to <bug-autoconf@gnu.org>."
12788 _ACEOF
12789
12790 cat >>$CONFIG_STATUS <<_ACEOF
12791 ac_cs_version="\\
12792 libmudflap config.status 1.0
12793 configured by $0, generated by GNU Autoconf 2.59,
12794   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12795
12796 Copyright (C) 2003 Free Software Foundation, Inc.
12797 This config.status script is free software; the Free Software Foundation
12798 gives unlimited permission to copy, distribute and modify it."
12799 srcdir=$srcdir
12800 INSTALL="$INSTALL"
12801 _ACEOF
12802
12803 cat >>$CONFIG_STATUS <<\_ACEOF
12804 # If no file are specified by the user, then we need to provide default
12805 # value.  By we need to know if files were specified by the user.
12806 ac_need_defaults=:
12807 while test $# != 0
12808 do
12809   case $1 in
12810   --*=*)
12811     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12812     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12813     ac_shift=:
12814     ;;
12815   -*)
12816     ac_option=$1
12817     ac_optarg=$2
12818     ac_shift=shift
12819     ;;
12820   *) # This is not an option, so the user has probably given explicit
12821      # arguments.
12822      ac_option=$1
12823      ac_need_defaults=false;;
12824   esac
12825
12826   case $ac_option in
12827   # Handling of the options.
12828 _ACEOF
12829 cat >>$CONFIG_STATUS <<\_ACEOF
12830   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12831     ac_cs_recheck=: ;;
12832   --version | --vers* | -V )
12833     echo "$ac_cs_version"; exit 0 ;;
12834   --he | --h)
12835     # Conflict between --help and --header
12836     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12837 Try \`$0 --help' for more information." >&5
12838 echo "$as_me: error: ambiguous option: $1
12839 Try \`$0 --help' for more information." >&2;}
12840    { (exit 1); exit 1; }; };;
12841   --help | --hel | -h )
12842     echo "$ac_cs_usage"; exit 0 ;;
12843   --debug | --d* | -d )
12844     debug=: ;;
12845   --file | --fil | --fi | --f )
12846     $ac_shift
12847     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12848     ac_need_defaults=false;;
12849   --header | --heade | --head | --hea )
12850     $ac_shift
12851     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12852     ac_need_defaults=false;;
12853   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12854   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12855     ac_cs_silent=: ;;
12856
12857   # This is an error.
12858   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12859 Try \`$0 --help' for more information." >&5
12860 echo "$as_me: error: unrecognized option: $1
12861 Try \`$0 --help' for more information." >&2;}
12862    { (exit 1); exit 1; }; } ;;
12863
12864   *) ac_config_targets="$ac_config_targets $1" ;;
12865
12866   esac
12867   shift
12868 done
12869
12870 ac_configure_extra_args=
12871
12872 if $ac_cs_silent; then
12873   exec 6>/dev/null
12874   ac_configure_extra_args="$ac_configure_extra_args --silent"
12875 fi
12876
12877 _ACEOF
12878 cat >>$CONFIG_STATUS <<_ACEOF
12879 if \$ac_cs_recheck; then
12880   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12881   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12882 fi
12883
12884 _ACEOF
12885
12886 cat >>$CONFIG_STATUS <<_ACEOF
12887 #
12888 # INIT-COMMANDS section.
12889 #
12890
12891
12892 srcdir="$srcdir"
12893 host="$host"
12894 target="$target"
12895 with_multisubdir="$with_multisubdir"
12896 with_multisrctop="$with_multisrctop"
12897 with_target_subdir="$with_target_subdir"
12898 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12899 multi_basedir="$multi_basedir"
12900 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12901 CC="$CC"
12902 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12903
12904
12905 # The HP-UX ksh and POSIX shell print the target directory to stdout
12906 # if CDPATH is set.
12907 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12908
12909 sed_quote_subst='$sed_quote_subst'
12910 double_quote_subst='$double_quote_subst'
12911 delay_variable_subst='$delay_variable_subst'
12912 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12913 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12914 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12915 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12916 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12917 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12918 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12919 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12920 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12921 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12922 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12923 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12924 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12925 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12926 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12927 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12928 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12929 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12930 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12931 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12932 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12933 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12934 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12935 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12936 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12937 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12938 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12939 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12940 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12941 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12942 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12943 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12944 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12945 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12946 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12947 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12948 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12949 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12950 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12951 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12952 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12953 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12954 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12955 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12956 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12957 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12958 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12959 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12960 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12961 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12962 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12963 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12964 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12965 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12966 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12967 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12968 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12969 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12970 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12971 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12972 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12973 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12974 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12975 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12976 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12977 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12978 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12979 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12980 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12981 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12982 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12983 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12984 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12985 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12986 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12987 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12988 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12989 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12990 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12991 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12992 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12993 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12994 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12995 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12996 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12997 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12998 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12999 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13000 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13001 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13002 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13003 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13004 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13005 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13006 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13007 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13008 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13009 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13010 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13011 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13012 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13013 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13014 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13015 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13016 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13017 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13018 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13019 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13020 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13021 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13022 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13023
13024 LTCC='$LTCC'
13025 LTCFLAGS='$LTCFLAGS'
13026 compiler='$compiler_DEFAULT'
13027
13028 # Quote evaled strings.
13029 for var in SED \
13030 GREP \
13031 EGREP \
13032 FGREP \
13033 LD \
13034 NM \
13035 LN_S \
13036 lt_SP2NL \
13037 lt_NL2SP \
13038 reload_flag \
13039 deplibs_check_method \
13040 file_magic_cmd \
13041 AR \
13042 AR_FLAGS \
13043 STRIP \
13044 RANLIB \
13045 CC \
13046 CFLAGS \
13047 compiler \
13048 lt_cv_sys_global_symbol_pipe \
13049 lt_cv_sys_global_symbol_to_cdecl \
13050 lt_cv_sys_global_symbol_to_c_name_address \
13051 SHELL \
13052 ECHO \
13053 lt_prog_compiler_no_builtin_flag \
13054 lt_prog_compiler_wl \
13055 lt_prog_compiler_pic \
13056 lt_prog_compiler_static \
13057 lt_cv_prog_compiler_c_o \
13058 need_locks \
13059 shrext_cmds \
13060 export_dynamic_flag_spec \
13061 whole_archive_flag_spec \
13062 compiler_needs_object \
13063 with_gnu_ld \
13064 allow_undefined_flag \
13065 no_undefined_flag \
13066 hardcode_libdir_flag_spec \
13067 hardcode_libdir_flag_spec_ld \
13068 hardcode_libdir_separator \
13069 fix_srcfile_path \
13070 exclude_expsyms \
13071 include_expsyms \
13072 file_list_spec \
13073 variables_saved_for_relink \
13074 libname_spec \
13075 library_names_spec \
13076 soname_spec \
13077 finish_eval \
13078 old_striplib \
13079 striplib; do
13080     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13081     *[\\\\\\\`\\"\\\$]*)
13082       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13083       ;;
13084     *)
13085       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13086       ;;
13087     esac
13088 done
13089
13090 # Double-quote double-evaled strings.
13091 for var in reload_cmds \
13092 old_postinstall_cmds \
13093 old_postuninstall_cmds \
13094 old_archive_cmds \
13095 extract_expsyms_cmds \
13096 old_archive_from_new_cmds \
13097 old_archive_from_expsyms_cmds \
13098 archive_cmds \
13099 archive_expsym_cmds \
13100 module_cmds \
13101 module_expsym_cmds \
13102 export_symbols_cmds \
13103 prelink_cmds \
13104 postinstall_cmds \
13105 postuninstall_cmds \
13106 finish_cmds \
13107 sys_lib_search_path_spec \
13108 sys_lib_dlsearch_path_spec; do
13109     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13110     *[\\\\\\\`\\"\\\$]*)
13111       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13112       ;;
13113     *)
13114       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13115       ;;
13116     esac
13117 done
13118
13119 # Fix-up fallback echo if it was mangled by the above quoting rules.
13120 case \$lt_ECHO in
13121 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13122   ;;
13123 esac
13124
13125 ac_aux_dir='$ac_aux_dir'
13126 xsi_shell='$xsi_shell'
13127 lt_shell_append='$lt_shell_append'
13128
13129 # See if we are running on zsh, and set the options which allow our
13130 # commands through without removal of \ escapes INIT.
13131 if test -n "\${ZSH_VERSION+set}" ; then
13132    setopt NO_GLOB_SUBST
13133 fi
13134
13135
13136     PACKAGE='$PACKAGE'
13137     VERSION='$VERSION'
13138     TIMESTAMP='$TIMESTAMP'
13139     RM='$RM'
13140     ofile='$ofile'
13141
13142
13143
13144
13145 _ACEOF
13146
13147
13148
13149 cat >>$CONFIG_STATUS <<\_ACEOF
13150 for ac_config_target in $ac_config_targets
13151 do
13152   case "$ac_config_target" in
13153   # Handling of arguments.
13154   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13155   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13156   "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
13157   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13158   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13159   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13160   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13161   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13162 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13163    { (exit 1); exit 1; }; };;
13164   esac
13165 done
13166
13167 # If the user did not use the arguments to specify the items to instantiate,
13168 # then the envvar interface is used.  Set only those that are not.
13169 # We use the long form for the default assignment because of an extremely
13170 # bizarre bug on SunOS 4.1.3.
13171 if $ac_need_defaults; then
13172   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13173   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13174   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13175 fi
13176
13177 # Have a temporary directory for convenience.  Make it in the build tree
13178 # simply because there is no reason to put it here, and in addition,
13179 # creating and moving files from /tmp can sometimes cause problems.
13180 # Create a temporary directory, and hook for its removal unless debugging.
13181 $debug ||
13182 {
13183   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13184   trap '{ (exit 1); exit 1; }' 1 2 13 15
13185 }
13186
13187 # Create a (secure) tmp directory for tmp files.
13188
13189 {
13190   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13191   test -n "$tmp" && test -d "$tmp"
13192 }  ||
13193 {
13194   tmp=./confstat$$-$RANDOM
13195   (umask 077 && mkdir $tmp)
13196 } ||
13197 {
13198    echo "$me: cannot create a temporary directory in ." >&2
13199    { (exit 1); exit 1; }
13200 }
13201
13202 _ACEOF
13203
13204 cat >>$CONFIG_STATUS <<_ACEOF
13205
13206 #
13207 # CONFIG_FILES section.
13208 #
13209
13210 # No need to generate the scripts if there are no CONFIG_FILES.
13211 # This happens for instance when ./config.status config.h
13212 if test -n "\$CONFIG_FILES"; then
13213   # Protect against being on the right side of a sed subst in config.status.
13214   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13215    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13216 s,@SHELL@,$SHELL,;t t
13217 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13223 s,@exec_prefix@,$exec_prefix,;t t
13224 s,@prefix@,$prefix,;t t
13225 s,@program_transform_name@,$program_transform_name,;t t
13226 s,@bindir@,$bindir,;t t
13227 s,@sbindir@,$sbindir,;t t
13228 s,@libexecdir@,$libexecdir,;t t
13229 s,@datadir@,$datadir,;t t
13230 s,@sysconfdir@,$sysconfdir,;t t
13231 s,@sharedstatedir@,$sharedstatedir,;t t
13232 s,@localstatedir@,$localstatedir,;t t
13233 s,@libdir@,$libdir,;t t
13234 s,@includedir@,$includedir,;t t
13235 s,@oldincludedir@,$oldincludedir,;t t
13236 s,@infodir@,$infodir,;t t
13237 s,@mandir@,$mandir,;t t
13238 s,@build_alias@,$build_alias,;t t
13239 s,@host_alias@,$host_alias,;t t
13240 s,@target_alias@,$target_alias,;t t
13241 s,@DEFS@,$DEFS,;t t
13242 s,@ECHO_C@,$ECHO_C,;t t
13243 s,@ECHO_N@,$ECHO_N,;t t
13244 s,@ECHO_T@,$ECHO_T,;t t
13245 s,@LIBS@,$LIBS,;t t
13246 s,@build@,$build,;t t
13247 s,@build_cpu@,$build_cpu,;t t
13248 s,@build_vendor@,$build_vendor,;t t
13249 s,@build_os@,$build_os,;t t
13250 s,@host@,$host,;t t
13251 s,@host_cpu@,$host_cpu,;t t
13252 s,@host_vendor@,$host_vendor,;t t
13253 s,@host_os@,$host_os,;t t
13254 s,@target@,$target,;t t
13255 s,@target_cpu@,$target_cpu,;t t
13256 s,@target_vendor@,$target_vendor,;t t
13257 s,@target_os@,$target_os,;t t
13258 s,@target_noncanonical@,$target_noncanonical,;t t
13259 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13260 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13261 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13262 s,@CYGPATH_W@,$CYGPATH_W,;t t
13263 s,@PACKAGE@,$PACKAGE,;t t
13264 s,@VERSION@,$VERSION,;t t
13265 s,@ACLOCAL@,$ACLOCAL,;t t
13266 s,@AUTOCONF@,$AUTOCONF,;t t
13267 s,@AUTOMAKE@,$AUTOMAKE,;t t
13268 s,@AUTOHEADER@,$AUTOHEADER,;t t
13269 s,@MAKEINFO@,$MAKEINFO,;t t
13270 s,@install_sh@,$install_sh,;t t
13271 s,@STRIP@,$STRIP,;t t
13272 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13273 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13274 s,@mkdir_p@,$mkdir_p,;t t
13275 s,@AWK@,$AWK,;t t
13276 s,@SET_MAKE@,$SET_MAKE,;t t
13277 s,@am__leading_dot@,$am__leading_dot,;t t
13278 s,@AMTAR@,$AMTAR,;t t
13279 s,@am__tar@,$am__tar,;t t
13280 s,@am__untar@,$am__untar,;t t
13281 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13282 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13283 s,@MAINT@,$MAINT,;t t
13284 s,@multi_basedir@,$multi_basedir,;t t
13285 s,@CC@,$CC,;t t
13286 s,@ac_ct_CC@,$ac_ct_CC,;t t
13287 s,@EXEEXT@,$EXEEXT,;t t
13288 s,@OBJEXT@,$OBJEXT,;t t
13289 s,@DEPDIR@,$DEPDIR,;t t
13290 s,@am__include@,$am__include,;t t
13291 s,@am__quote@,$am__quote,;t t
13292 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13293 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13294 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13295 s,@CCDEPMODE@,$CCDEPMODE,;t t
13296 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13297 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13298 s,@CFLAGS@,$CFLAGS,;t t
13299 s,@CPP@,$CPP,;t t
13300 s,@CPPFLAGS@,$CPPFLAGS,;t t
13301 s,@EGREP@,$EGREP,;t t
13302 s,@LIBTOOL@,$LIBTOOL,;t t
13303 s,@SED@,$SED,;t t
13304 s,@FGREP@,$FGREP,;t t
13305 s,@GREP@,$GREP,;t t
13306 s,@LD@,$LD,;t t
13307 s,@DUMPBIN@,$DUMPBIN,;t t
13308 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13309 s,@NM@,$NM,;t t
13310 s,@LN_S@,$LN_S,;t t
13311 s,@AR@,$AR,;t t
13312 s,@ac_ct_AR@,$ac_ct_AR,;t t
13313 s,@RANLIB@,$RANLIB,;t t
13314 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13315 s,@lt_ECHO@,$lt_ECHO,;t t
13316 s,@enable_shared@,$enable_shared,;t t
13317 s,@enable_static@,$enable_static,;t t
13318 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
13319 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
13320 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
13321 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
13322 s,@build_libmudflapth@,$build_libmudflapth,;t t
13323 s,@toolexecdir@,$toolexecdir,;t t
13324 s,@toolexeclibdir@,$toolexeclibdir,;t t
13325 s,@ac_ct_NM@,$ac_ct_NM,;t t
13326 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
13327 s,@LIBOBJS@,$LIBOBJS,;t t
13328 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13329 CEOF
13330
13331 _ACEOF
13332
13333   cat >>$CONFIG_STATUS <<\_ACEOF
13334   # Split the substitutions into bite-sized pieces for seds with
13335   # small command number limits, like on Digital OSF/1 and HP-UX.
13336   ac_max_sed_lines=48
13337   ac_sed_frag=1 # Number of current file.
13338   ac_beg=1 # First line for current file.
13339   ac_end=$ac_max_sed_lines # Line after last line for current file.
13340   ac_more_lines=:
13341   ac_sed_cmds=
13342   while $ac_more_lines; do
13343     if test $ac_beg -gt 1; then
13344       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13345     else
13346       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13347     fi
13348     if test ! -s $tmp/subs.frag; then
13349       ac_more_lines=false
13350     else
13351       # The purpose of the label and of the branching condition is to
13352       # speed up the sed processing (if there are no `@' at all, there
13353       # is no need to browse any of the substitutions).
13354       # These are the two extra sed commands mentioned above.
13355       (echo ':t
13356   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13357       if test -z "$ac_sed_cmds"; then
13358         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13359       else
13360         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13361       fi
13362       ac_sed_frag=`expr $ac_sed_frag + 1`
13363       ac_beg=$ac_end
13364       ac_end=`expr $ac_end + $ac_max_sed_lines`
13365     fi
13366   done
13367   if test -z "$ac_sed_cmds"; then
13368     ac_sed_cmds=cat
13369   fi
13370 fi # test -n "$CONFIG_FILES"
13371
13372 _ACEOF
13373 cat >>$CONFIG_STATUS <<\_ACEOF
13374 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13375   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13376   case $ac_file in
13377   - | *:- | *:-:* ) # input from stdin
13378         cat >$tmp/stdin
13379         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13380         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13381   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13382         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13383   * )   ac_file_in=$ac_file.in ;;
13384   esac
13385
13386   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13387   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13389          X"$ac_file" : 'X\(//\)[^/]' \| \
13390          X"$ac_file" : 'X\(//\)$' \| \
13391          X"$ac_file" : 'X\(/\)' \| \
13392          .     : '\(.\)' 2>/dev/null ||
13393 echo X"$ac_file" |
13394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13395           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13396           /^X\(\/\/\)$/{ s//\1/; q; }
13397           /^X\(\/\).*/{ s//\1/; q; }
13398           s/.*/./; q'`
13399   { if $as_mkdir_p; then
13400     mkdir -p "$ac_dir"
13401   else
13402     as_dir="$ac_dir"
13403     as_dirs=
13404     while test ! -d "$as_dir"; do
13405       as_dirs="$as_dir $as_dirs"
13406       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13408          X"$as_dir" : 'X\(//\)[^/]' \| \
13409          X"$as_dir" : 'X\(//\)$' \| \
13410          X"$as_dir" : 'X\(/\)' \| \
13411          .     : '\(.\)' 2>/dev/null ||
13412 echo X"$as_dir" |
13413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13414           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13415           /^X\(\/\/\)$/{ s//\1/; q; }
13416           /^X\(\/\).*/{ s//\1/; q; }
13417           s/.*/./; q'`
13418     done
13419     test ! -n "$as_dirs" || mkdir $as_dirs
13420   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13421 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13422    { (exit 1); exit 1; }; }; }
13423
13424   ac_builddir=.
13425
13426 if test "$ac_dir" != .; then
13427   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13428   # A "../" for each directory in $ac_dir_suffix.
13429   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13430 else
13431   ac_dir_suffix= ac_top_builddir=
13432 fi
13433
13434 case $srcdir in
13435   .)  # No --srcdir option.  We are building in place.
13436     ac_srcdir=.
13437     if test -z "$ac_top_builddir"; then
13438        ac_top_srcdir=.
13439     else
13440        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13441     fi ;;
13442   [\\/]* | ?:[\\/]* )  # Absolute path.
13443     ac_srcdir=$srcdir$ac_dir_suffix;
13444     ac_top_srcdir=$srcdir ;;
13445   *) # Relative path.
13446     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13447     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13448 esac
13449
13450 # Do not use `cd foo && pwd` to compute absolute paths, because
13451 # the directories may not exist.
13452 case `pwd` in
13453 .) ac_abs_builddir="$ac_dir";;
13454 *)
13455   case "$ac_dir" in
13456   .) ac_abs_builddir=`pwd`;;
13457   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13458   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13459   esac;;
13460 esac
13461 case $ac_abs_builddir in
13462 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13463 *)
13464   case ${ac_top_builddir}. in
13465   .) ac_abs_top_builddir=$ac_abs_builddir;;
13466   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13467   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13468   esac;;
13469 esac
13470 case $ac_abs_builddir in
13471 .) ac_abs_srcdir=$ac_srcdir;;
13472 *)
13473   case $ac_srcdir in
13474   .) ac_abs_srcdir=$ac_abs_builddir;;
13475   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13476   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13477   esac;;
13478 esac
13479 case $ac_abs_builddir in
13480 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13481 *)
13482   case $ac_top_srcdir in
13483   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13484   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13485   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13486   esac;;
13487 esac
13488
13489
13490   case $INSTALL in
13491   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13492   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13493   esac
13494
13495   if test x"$ac_file" != x-; then
13496     { echo "$as_me:$LINENO: creating $ac_file" >&5
13497 echo "$as_me: creating $ac_file" >&6;}
13498     rm -f "$ac_file"
13499   fi
13500   # Let's still pretend it is `configure' which instantiates (i.e., don't
13501   # use $as_me), people would be surprised to read:
13502   #    /* config.h.  Generated by config.status.  */
13503   if test x"$ac_file" = x-; then
13504     configure_input=
13505   else
13506     configure_input="$ac_file.  "
13507   fi
13508   configure_input=$configure_input"Generated from `echo $ac_file_in |
13509                                      sed 's,.*/,,'` by configure."
13510
13511   # First look for the input files in the build tree, otherwise in the
13512   # src tree.
13513   ac_file_inputs=`IFS=:
13514     for f in $ac_file_in; do
13515       case $f in
13516       -) echo $tmp/stdin ;;
13517       [\\/$]*)
13518          # Absolute (can't be DOS-style, as IFS=:)
13519          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13520 echo "$as_me: error: cannot find input file: $f" >&2;}
13521    { (exit 1); exit 1; }; }
13522          echo "$f";;
13523       *) # Relative
13524          if test -f "$f"; then
13525            # Build tree
13526            echo "$f"
13527          elif test -f "$srcdir/$f"; then
13528            # Source tree
13529            echo "$srcdir/$f"
13530          else
13531            # /dev/null tree
13532            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13533 echo "$as_me: error: cannot find input file: $f" >&2;}
13534    { (exit 1); exit 1; }; }
13535          fi;;
13536       esac
13537     done` || { (exit 1); exit 1; }
13538 _ACEOF
13539 cat >>$CONFIG_STATUS <<_ACEOF
13540   sed "$ac_vpsub
13541 $extrasub
13542 _ACEOF
13543 cat >>$CONFIG_STATUS <<\_ACEOF
13544 :t
13545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13546 s,@configure_input@,$configure_input,;t t
13547 s,@srcdir@,$ac_srcdir,;t t
13548 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13549 s,@top_srcdir@,$ac_top_srcdir,;t t
13550 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13551 s,@builddir@,$ac_builddir,;t t
13552 s,@abs_builddir@,$ac_abs_builddir,;t t
13553 s,@top_builddir@,$ac_top_builddir,;t t
13554 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13555 s,@INSTALL@,$ac_INSTALL,;t t
13556 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13557   rm -f $tmp/stdin
13558   if test x"$ac_file" != x-; then
13559     mv $tmp/out $ac_file
13560   else
13561     cat $tmp/out
13562     rm -f $tmp/out
13563   fi
13564
13565 done
13566 _ACEOF
13567 cat >>$CONFIG_STATUS <<\_ACEOF
13568
13569 #
13570 # CONFIG_HEADER section.
13571 #
13572
13573 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13574 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13575 #
13576 # ac_d sets the value in "#define NAME VALUE" lines.
13577 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13578 ac_dB='[         ].*$,\1#\2'
13579 ac_dC=' '
13580 ac_dD=',;t'
13581 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13582 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13583 ac_uB='$,\1#\2define\3'
13584 ac_uC=' '
13585 ac_uD=',;t'
13586
13587 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13588   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13589   case $ac_file in
13590   - | *:- | *:-:* ) # input from stdin
13591         cat >$tmp/stdin
13592         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13593         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13594   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13595         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13596   * )   ac_file_in=$ac_file.in ;;
13597   esac
13598
13599   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13600 echo "$as_me: creating $ac_file" >&6;}
13601
13602   # First look for the input files in the build tree, otherwise in the
13603   # src tree.
13604   ac_file_inputs=`IFS=:
13605     for f in $ac_file_in; do
13606       case $f in
13607       -) echo $tmp/stdin ;;
13608       [\\/$]*)
13609          # Absolute (can't be DOS-style, as IFS=:)
13610          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13611 echo "$as_me: error: cannot find input file: $f" >&2;}
13612    { (exit 1); exit 1; }; }
13613          # Do quote $f, to prevent DOS paths from being IFS'd.
13614          echo "$f";;
13615       *) # Relative
13616          if test -f "$f"; then
13617            # Build tree
13618            echo "$f"
13619          elif test -f "$srcdir/$f"; then
13620            # Source tree
13621            echo "$srcdir/$f"
13622          else
13623            # /dev/null tree
13624            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13625 echo "$as_me: error: cannot find input file: $f" >&2;}
13626    { (exit 1); exit 1; }; }
13627          fi;;
13628       esac
13629     done` || { (exit 1); exit 1; }
13630   # Remove the trailing spaces.
13631   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13632
13633 _ACEOF
13634
13635 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13636 # `conftest.undefs', that substitutes the proper values into
13637 # config.h.in to produce config.h.  The first handles `#define'
13638 # templates, and the second `#undef' templates.
13639 # And first: Protect against being on the right side of a sed subst in
13640 # config.status.  Protect against being in an unquoted here document
13641 # in config.status.
13642 rm -f conftest.defines conftest.undefs
13643 # Using a here document instead of a string reduces the quoting nightmare.
13644 # Putting comments in sed scripts is not portable.
13645 #
13646 # `end' is used to avoid that the second main sed command (meant for
13647 # 0-ary CPP macros) applies to n-ary macro definitions.
13648 # See the Autoconf documentation for `clear'.
13649 cat >confdef2sed.sed <<\_ACEOF
13650 s/[\\&,]/\\&/g
13651 s,[\\$`],\\&,g
13652 t clear
13653 : clear
13654 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13655 t end
13656 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13657 : end
13658 _ACEOF
13659 # If some macros were called several times there might be several times
13660 # the same #defines, which is useless.  Nevertheless, we may not want to
13661 # sort them, since we want the *last* AC-DEFINE to be honored.
13662 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13663 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13664 rm -f confdef2sed.sed
13665
13666 # This sed command replaces #undef with comments.  This is necessary, for
13667 # example, in the case of _POSIX_SOURCE, which is predefined and required
13668 # on some systems where configure will not decide to define it.
13669 cat >>conftest.undefs <<\_ACEOF
13670 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13671 _ACEOF
13672
13673 # Break up conftest.defines because some shells have a limit on the size
13674 # of here documents, and old seds have small limits too (100 cmds).
13675 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13676 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13677 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13678 echo '  :' >>$CONFIG_STATUS
13679 rm -f conftest.tail
13680 while grep . conftest.defines >/dev/null
13681 do
13682   # Write a limited-size here document to $tmp/defines.sed.
13683   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13684   # Speed up: don't consider the non `#define' lines.
13685   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13686   # Work around the forget-to-reset-the-flag bug.
13687   echo 't clr' >>$CONFIG_STATUS
13688   echo ': clr' >>$CONFIG_STATUS
13689   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13690   echo 'CEOF
13691   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13692   rm -f $tmp/in
13693   mv $tmp/out $tmp/in
13694 ' >>$CONFIG_STATUS
13695   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13696   rm -f conftest.defines
13697   mv conftest.tail conftest.defines
13698 done
13699 rm -f conftest.defines
13700 echo '  fi # grep' >>$CONFIG_STATUS
13701 echo >>$CONFIG_STATUS
13702
13703 # Break up conftest.undefs because some shells have a limit on the size
13704 # of here documents, and old seds have small limits too (100 cmds).
13705 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13706 rm -f conftest.tail
13707 while grep . conftest.undefs >/dev/null
13708 do
13709   # Write a limited-size here document to $tmp/undefs.sed.
13710   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13711   # Speed up: don't consider the non `#undef'
13712   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13713   # Work around the forget-to-reset-the-flag bug.
13714   echo 't clr' >>$CONFIG_STATUS
13715   echo ': clr' >>$CONFIG_STATUS
13716   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13717   echo 'CEOF
13718   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13719   rm -f $tmp/in
13720   mv $tmp/out $tmp/in
13721 ' >>$CONFIG_STATUS
13722   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13723   rm -f conftest.undefs
13724   mv conftest.tail conftest.undefs
13725 done
13726 rm -f conftest.undefs
13727
13728 cat >>$CONFIG_STATUS <<\_ACEOF
13729   # Let's still pretend it is `configure' which instantiates (i.e., don't
13730   # use $as_me), people would be surprised to read:
13731   #    /* config.h.  Generated by config.status.  */
13732   if test x"$ac_file" = x-; then
13733     echo "/* Generated by configure.  */" >$tmp/config.h
13734   else
13735     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13736   fi
13737   cat $tmp/in >>$tmp/config.h
13738   rm -f $tmp/in
13739   if test x"$ac_file" != x-; then
13740     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13741       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13742 echo "$as_me: $ac_file is unchanged" >&6;}
13743     else
13744       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13746          X"$ac_file" : 'X\(//\)[^/]' \| \
13747          X"$ac_file" : 'X\(//\)$' \| \
13748          X"$ac_file" : 'X\(/\)' \| \
13749          .     : '\(.\)' 2>/dev/null ||
13750 echo X"$ac_file" |
13751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13752           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13753           /^X\(\/\/\)$/{ s//\1/; q; }
13754           /^X\(\/\).*/{ s//\1/; q; }
13755           s/.*/./; q'`
13756       { if $as_mkdir_p; then
13757     mkdir -p "$ac_dir"
13758   else
13759     as_dir="$ac_dir"
13760     as_dirs=
13761     while test ! -d "$as_dir"; do
13762       as_dirs="$as_dir $as_dirs"
13763       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13765          X"$as_dir" : 'X\(//\)[^/]' \| \
13766          X"$as_dir" : 'X\(//\)$' \| \
13767          X"$as_dir" : 'X\(/\)' \| \
13768          .     : '\(.\)' 2>/dev/null ||
13769 echo X"$as_dir" |
13770     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13771           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13772           /^X\(\/\/\)$/{ s//\1/; q; }
13773           /^X\(\/\).*/{ s//\1/; q; }
13774           s/.*/./; q'`
13775     done
13776     test ! -n "$as_dirs" || mkdir $as_dirs
13777   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13778 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13779    { (exit 1); exit 1; }; }; }
13780
13781       rm -f $ac_file
13782       mv $tmp/config.h $ac_file
13783     fi
13784   else
13785     cat $tmp/config.h
13786     rm -f $tmp/config.h
13787   fi
13788 # Compute $ac_file's index in $config_headers.
13789 _am_stamp_count=1
13790 for _am_header in $config_headers :; do
13791   case $_am_header in
13792     $ac_file | $ac_file:* )
13793       break ;;
13794     * )
13795       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13796   esac
13797 done
13798 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13799 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13800          X$ac_file : 'X\(//\)[^/]' \| \
13801          X$ac_file : 'X\(//\)$' \| \
13802          X$ac_file : 'X\(/\)' \| \
13803          .     : '\(.\)' 2>/dev/null ||
13804 echo X$ac_file |
13805     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13806           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13807           /^X\(\/\/\)$/{ s//\1/; q; }
13808           /^X\(\/\).*/{ s//\1/; q; }
13809           s/.*/./; q'`/stamp-h$_am_stamp_count
13810 done
13811 _ACEOF
13812 cat >>$CONFIG_STATUS <<\_ACEOF
13813
13814 #
13815 # CONFIG_COMMANDS section.
13816 #
13817 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13818   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13819   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13820   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13821 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13822          X"$ac_dest" : 'X\(//\)[^/]' \| \
13823          X"$ac_dest" : 'X\(//\)$' \| \
13824          X"$ac_dest" : 'X\(/\)' \| \
13825          .     : '\(.\)' 2>/dev/null ||
13826 echo X"$ac_dest" |
13827     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13828           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13829           /^X\(\/\/\)$/{ s//\1/; q; }
13830           /^X\(\/\).*/{ s//\1/; q; }
13831           s/.*/./; q'`
13832   { if $as_mkdir_p; then
13833     mkdir -p "$ac_dir"
13834   else
13835     as_dir="$ac_dir"
13836     as_dirs=
13837     while test ! -d "$as_dir"; do
13838       as_dirs="$as_dir $as_dirs"
13839       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13841          X"$as_dir" : 'X\(//\)[^/]' \| \
13842          X"$as_dir" : 'X\(//\)$' \| \
13843          X"$as_dir" : 'X\(/\)' \| \
13844          .     : '\(.\)' 2>/dev/null ||
13845 echo X"$as_dir" |
13846     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13847           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13848           /^X\(\/\/\)$/{ s//\1/; q; }
13849           /^X\(\/\).*/{ s//\1/; q; }
13850           s/.*/./; q'`
13851     done
13852     test ! -n "$as_dirs" || mkdir $as_dirs
13853   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13854 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13855    { (exit 1); exit 1; }; }; }
13856
13857   ac_builddir=.
13858
13859 if test "$ac_dir" != .; then
13860   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13861   # A "../" for each directory in $ac_dir_suffix.
13862   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13863 else
13864   ac_dir_suffix= ac_top_builddir=
13865 fi
13866
13867 case $srcdir in
13868   .)  # No --srcdir option.  We are building in place.
13869     ac_srcdir=.
13870     if test -z "$ac_top_builddir"; then
13871        ac_top_srcdir=.
13872     else
13873        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13874     fi ;;
13875   [\\/]* | ?:[\\/]* )  # Absolute path.
13876     ac_srcdir=$srcdir$ac_dir_suffix;
13877     ac_top_srcdir=$srcdir ;;
13878   *) # Relative path.
13879     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13880     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13881 esac
13882
13883 # Do not use `cd foo && pwd` to compute absolute paths, because
13884 # the directories may not exist.
13885 case `pwd` in
13886 .) ac_abs_builddir="$ac_dir";;
13887 *)
13888   case "$ac_dir" in
13889   .) ac_abs_builddir=`pwd`;;
13890   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13891   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13892   esac;;
13893 esac
13894 case $ac_abs_builddir in
13895 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13896 *)
13897   case ${ac_top_builddir}. in
13898   .) ac_abs_top_builddir=$ac_abs_builddir;;
13899   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13900   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13901   esac;;
13902 esac
13903 case $ac_abs_builddir in
13904 .) ac_abs_srcdir=$ac_srcdir;;
13905 *)
13906   case $ac_srcdir in
13907   .) ac_abs_srcdir=$ac_abs_builddir;;
13908   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13909   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13910   esac;;
13911 esac
13912 case $ac_abs_builddir in
13913 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13914 *)
13915   case $ac_top_srcdir in
13916   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13917   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13918   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13919   esac;;
13920 esac
13921
13922
13923   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13924 echo "$as_me: executing $ac_dest commands" >&6;}
13925   case $ac_dest in
13926     default-1 )
13927 # Only add multilib support code if we just rebuilt the top-level
13928 # Makefile.
13929 case " $CONFIG_FILES " in
13930  *" Makefile "*)
13931    ac_file=Makefile . ${multi_basedir}/config-ml.in
13932    ;;
13933 esac ;;
13934     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13935   # Strip MF so we end up with the name of the file.
13936   mf=`echo "$mf" | sed -e 's/:.*$//'`
13937   # Check whether this is an Automake generated Makefile or not.
13938   # We used to match only the files named `Makefile.in', but
13939   # some people rename them; so instead we look at the file content.
13940   # Grep'ing the first line is not enough: some people post-process
13941   # each Makefile.in and add a new line on top of each file to say so.
13942   # So let's grep whole file.
13943   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13944     dirpart=`(dirname "$mf") 2>/dev/null ||
13945 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13946          X"$mf" : 'X\(//\)[^/]' \| \
13947          X"$mf" : 'X\(//\)$' \| \
13948          X"$mf" : 'X\(/\)' \| \
13949          .     : '\(.\)' 2>/dev/null ||
13950 echo X"$mf" |
13951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13952           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13953           /^X\(\/\/\)$/{ s//\1/; q; }
13954           /^X\(\/\).*/{ s//\1/; q; }
13955           s/.*/./; q'`
13956   else
13957     continue
13958   fi
13959   # Extract the definition of DEPDIR, am__include, and am__quote
13960   # from the Makefile without running `make'.
13961   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13962   test -z "$DEPDIR" && continue
13963   am__include=`sed -n 's/^am__include = //p' < "$mf"`
13964   test -z "am__include" && continue
13965   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13966   # When using ansi2knr, U may be empty or an underscore; expand it
13967   U=`sed -n 's/^U = //p' < "$mf"`
13968   # Find all dependency output files, they are included files with
13969   # $(DEPDIR) in their names.  We invoke sed twice because it is the
13970   # simplest approach to changing $(DEPDIR) to its actual value in the
13971   # expansion.
13972   for file in `sed -n "
13973     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13974        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13975     # Make sure the directory exists.
13976     test -f "$dirpart/$file" && continue
13977     fdir=`(dirname "$file") 2>/dev/null ||
13978 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13979          X"$file" : 'X\(//\)[^/]' \| \
13980          X"$file" : 'X\(//\)$' \| \
13981          X"$file" : 'X\(/\)' \| \
13982          .     : '\(.\)' 2>/dev/null ||
13983 echo X"$file" |
13984     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13985           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13986           /^X\(\/\/\)$/{ s//\1/; q; }
13987           /^X\(\/\).*/{ s//\1/; q; }
13988           s/.*/./; q'`
13989     { if $as_mkdir_p; then
13990     mkdir -p $dirpart/$fdir
13991   else
13992     as_dir=$dirpart/$fdir
13993     as_dirs=
13994     while test ! -d "$as_dir"; do
13995       as_dirs="$as_dir $as_dirs"
13996       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13998          X"$as_dir" : 'X\(//\)[^/]' \| \
13999          X"$as_dir" : 'X\(//\)$' \| \
14000          X"$as_dir" : 'X\(/\)' \| \
14001          .     : '\(.\)' 2>/dev/null ||
14002 echo X"$as_dir" |
14003     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14004           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14005           /^X\(\/\/\)$/{ s//\1/; q; }
14006           /^X\(\/\).*/{ s//\1/; q; }
14007           s/.*/./; q'`
14008     done
14009     test ! -n "$as_dirs" || mkdir $as_dirs
14010   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14011 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14012    { (exit 1); exit 1; }; }; }
14013
14014     # echo "creating $dirpart/$file"
14015     echo '# dummy' > "$dirpart/$file"
14016   done
14017 done
14018  ;;
14019     libtool )
14020
14021     # See if we are running on zsh, and set the options which allow our
14022     # commands through without removal of \ escapes.
14023     if test -n "${ZSH_VERSION+set}" ; then
14024       setopt NO_GLOB_SUBST
14025     fi
14026
14027     cfgfile="${ofile}T"
14028     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14029     $RM "$cfgfile"
14030
14031     cat <<_LT_EOF >> "$cfgfile"
14032 #! $SHELL
14033
14034 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14035 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14036 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14037 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14038 #
14039 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14040 # 2006, 2007 Free Software Foundation, Inc.
14041 #
14042 # This file is part of GNU Libtool:
14043 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14044 #
14045 # This program is free software; you can redistribute it and/or modify
14046 # it under the terms of the GNU General Public License as published by
14047 # the Free Software Foundation; either version 2 of the License, or
14048 # (at your option) any later version.
14049 #
14050 # This program is distributed in the hope that it will be useful, but
14051 # WITHOUT ANY WARRANTY; without even the implied warranty of
14052 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14053 # General Public License for more details.
14054 #
14055 # You should have received a copy of the GNU General Public License
14056 # along with this program; if not, a copy can be downloaded from
14057 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14058 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14059 # MA 02110-1301, USA.
14060 #
14061 # As a special exception to the GNU General Public License, if you
14062 # distribute this file as part of a program that contains a
14063 # configuration script generated by Autoconf, you may include it under
14064 # the same distribution terms that you use for the rest of that program.
14065
14066
14067 # The names of the tagged configurations supported by this script.
14068 available_tags=""
14069
14070 # ### BEGIN LIBTOOL CONFIG
14071
14072 # Which release of libtool.m4 was used?
14073 macro_version=$macro_version
14074 macro_revision=$macro_revision
14075
14076 # Whether or not to build shared libraries.
14077 build_libtool_libs=$enable_shared
14078
14079 # Whether or not to build static libraries.
14080 build_old_libs=$enable_static
14081
14082 # What type of objects to build.
14083 pic_mode=$pic_mode
14084
14085 # Whether or not to optimize for fast installation.
14086 fast_install=$enable_fast_install
14087
14088 # The host system.
14089 host_alias=$host_alias
14090 host=$host
14091 host_os=$host_os
14092
14093 # The build system.
14094 build_alias=$build_alias
14095 build=$build
14096 build_os=$build_os
14097
14098 # A sed program that does not truncate output.
14099 SED=$lt_SED
14100
14101 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14102 Xsed="\$SED -e 1s/^X//"
14103
14104 # A grep program that handles long lines.
14105 GREP=$lt_GREP
14106
14107 # An ERE matcher.
14108 EGREP=$lt_EGREP
14109
14110 # A literal string matcher.
14111 FGREP=$lt_FGREP
14112
14113 # A BSD- or MS-compatible name lister.
14114 NM=$lt_NM
14115
14116 # Whether we need soft or hard links.
14117 LN_S=$lt_LN_S
14118
14119 # What is the maximum length of a command?
14120 max_cmd_len=$max_cmd_len
14121
14122 # Object file suffix (normally "o").
14123 objext=$ac_objext
14124
14125 # Executable file suffix (normally "").
14126 exeext=$exeext
14127
14128 # whether the shell understands "unset".
14129 lt_unset=$lt_unset
14130
14131 # turn spaces into newlines.
14132 SP2NL=$lt_lt_SP2NL
14133
14134 # turn newlines into spaces.
14135 NL2SP=$lt_lt_NL2SP
14136
14137 # How to create reloadable object files.
14138 reload_flag=$lt_reload_flag
14139 reload_cmds=$lt_reload_cmds
14140
14141 # Method to check whether dependent libraries are shared objects.
14142 deplibs_check_method=$lt_deplibs_check_method
14143
14144 # Command to use when deplibs_check_method == "file_magic".
14145 file_magic_cmd=$lt_file_magic_cmd
14146
14147 # The archiver.
14148 AR=$lt_AR
14149 AR_FLAGS=$lt_AR_FLAGS
14150
14151 # A symbol stripping program.
14152 STRIP=$lt_STRIP
14153
14154 # Commands used to install an old-style archive.
14155 RANLIB=$lt_RANLIB
14156 old_postinstall_cmds=$lt_old_postinstall_cmds
14157 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14158
14159 # A C compiler.
14160 LTCC=$lt_CC
14161
14162 # LTCC compiler flags.
14163 LTCFLAGS=$lt_CFLAGS
14164
14165 # Take the output of nm and produce a listing of raw symbols and C names.
14166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14167
14168 # Transform the output of nm in a proper C declaration.
14169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14170
14171 # Transform the output of nm in a C name address pair.
14172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14173
14174 # The name of the directory that contains temporary libtool files.
14175 objdir=$objdir
14176
14177 # Shell to use when invoking shell scripts.
14178 SHELL=$lt_SHELL
14179
14180 # An echo program that does not interpret backslashes.
14181 ECHO=$lt_ECHO
14182
14183 # Used to examine libraries when file_magic_cmd begins with "file".
14184 MAGIC_CMD=$MAGIC_CMD
14185
14186 # Must we lock files when doing compilation?
14187 need_locks=$lt_need_locks
14188
14189 # Old archive suffix (normally "a").
14190 libext=$libext
14191
14192 # Shared library suffix (normally ".so").
14193 shrext_cmds=$lt_shrext_cmds
14194
14195 # The commands to extract the exported symbol list from a shared archive.
14196 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14197
14198 # Variables whose values should be saved in libtool wrapper scripts and
14199 # restored at link time.
14200 variables_saved_for_relink=$lt_variables_saved_for_relink
14201
14202 # Do we need the "lib" prefix for modules?
14203 need_lib_prefix=$need_lib_prefix
14204
14205 # Do we need a version for libraries?
14206 need_version=$need_version
14207
14208 # Library versioning type.
14209 version_type=$version_type
14210
14211 # Shared library runtime path variable.
14212 runpath_var=$runpath_var
14213
14214 # Shared library path variable.
14215 shlibpath_var=$shlibpath_var
14216
14217 # Is shlibpath searched before the hard-coded library search path?
14218 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14219
14220 # Format of library name prefix.
14221 libname_spec=$lt_libname_spec
14222
14223 # List of archive names.  First name is the real one, the rest are links.
14224 # The last name is the one that the linker finds with -lNAME
14225 library_names_spec=$lt_library_names_spec
14226
14227 # The coded name of the library, if different from the real name.
14228 soname_spec=$lt_soname_spec
14229
14230 # Command to use after installation of a shared archive.
14231 postinstall_cmds=$lt_postinstall_cmds
14232
14233 # Command to use after uninstallation of a shared archive.
14234 postuninstall_cmds=$lt_postuninstall_cmds
14235
14236 # Commands used to finish a libtool library installation in a directory.
14237 finish_cmds=$lt_finish_cmds
14238
14239 # As "finish_cmds", except a single script fragment to be evaled but
14240 # not shown.
14241 finish_eval=$lt_finish_eval
14242
14243 # Whether we should hardcode library paths into libraries.
14244 hardcode_into_libs=$hardcode_into_libs
14245
14246 # Compile-time system search path for libraries.
14247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14248
14249 # Run-time system search path for libraries.
14250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14251
14252 # Whether dlopen is supported.
14253 dlopen_support=$enable_dlopen
14254
14255 # Whether dlopen of programs is supported.
14256 dlopen_self=$enable_dlopen_self
14257
14258 # Whether dlopen of statically linked programs is supported.
14259 dlopen_self_static=$enable_dlopen_self_static
14260
14261 # Commands to strip libraries.
14262 old_striplib=$lt_old_striplib
14263 striplib=$lt_striplib
14264
14265
14266 # The linker used to build libraries.
14267 LD=$lt_LD
14268
14269 # Commands used to build an old-style archive.
14270 old_archive_cmds=$lt_old_archive_cmds
14271
14272 # A language specific compiler.
14273 CC=$lt_compiler
14274
14275 # Is the compiler the GNU compiler?
14276 with_gcc=$GCC
14277
14278 # Compiler flag to turn off builtin functions.
14279 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14280
14281 # How to pass a linker flag through the compiler.
14282 wl=$lt_lt_prog_compiler_wl
14283
14284 # Additional compiler flags for building library objects.
14285 pic_flag=$lt_lt_prog_compiler_pic
14286
14287 # Compiler flag to prevent dynamic linking.
14288 link_static_flag=$lt_lt_prog_compiler_static
14289
14290 # Does compiler simultaneously support -c and -o options?
14291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14292
14293 # Whether or not to add -lc for building shared libraries.
14294 build_libtool_need_lc=$archive_cmds_need_lc
14295
14296 # Whether or not to disallow shared libs when runtime libs are static.
14297 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14298
14299 # Compiler flag to allow reflexive dlopens.
14300 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14301
14302 # Compiler flag to generate shared objects directly from archives.
14303 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14304
14305 # Whether the compiler copes with passing no objects directly.
14306 compiler_needs_object=$lt_compiler_needs_object
14307
14308 # Create an old-style archive from a shared archive.
14309 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14310
14311 # Create a temporary old-style archive to link instead of a shared archive.
14312 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14313
14314 # Commands used to build a shared archive.
14315 archive_cmds=$lt_archive_cmds
14316 archive_expsym_cmds=$lt_archive_expsym_cmds
14317
14318 # Commands used to build a loadable module if different from building
14319 # a shared archive.
14320 module_cmds=$lt_module_cmds
14321 module_expsym_cmds=$lt_module_expsym_cmds
14322
14323 # Whether we are building with GNU ld or not.
14324 with_gnu_ld=$lt_with_gnu_ld
14325
14326 # Flag that allows shared libraries with undefined symbols to be built.
14327 allow_undefined_flag=$lt_allow_undefined_flag
14328
14329 # Flag that enforces no undefined symbols.
14330 no_undefined_flag=$lt_no_undefined_flag
14331
14332 # Flag to hardcode \$libdir into a binary during linking.
14333 # This must work even if \$libdir does not exist
14334 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14335
14336 # If ld is used when linking, flag to hardcode \$libdir into a binary
14337 # during linking.  This must work even if \$libdir does not exist.
14338 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14339
14340 # Whether we need a single "-rpath" flag with a separated argument.
14341 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14342
14343 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14344 # DIR into the resulting binary.
14345 hardcode_direct=$hardcode_direct
14346
14347 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14348 # DIR into the resulting binary and the resulting library dependency is
14349 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14350 # library is relocated.
14351 hardcode_direct_absolute=$hardcode_direct_absolute
14352
14353 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14354 # into the resulting binary.
14355 hardcode_minus_L=$hardcode_minus_L
14356
14357 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14358 # into the resulting binary.
14359 hardcode_shlibpath_var=$hardcode_shlibpath_var
14360
14361 # Set to "yes" if building a shared library automatically hardcodes DIR
14362 # into the library and all subsequent libraries and executables linked
14363 # against it.
14364 hardcode_automatic=$hardcode_automatic
14365
14366 # Set to yes if linker adds runtime paths of dependent libraries
14367 # to runtime path list.
14368 inherit_rpath=$inherit_rpath
14369
14370 # Whether libtool must link a program against all its dependency libraries.
14371 link_all_deplibs=$link_all_deplibs
14372
14373 # Fix the shell variable \$srcfile for the compiler.
14374 fix_srcfile_path=$lt_fix_srcfile_path
14375
14376 # Set to "yes" if exported symbols are required.
14377 always_export_symbols=$always_export_symbols
14378
14379 # The commands to list exported symbols.
14380 export_symbols_cmds=$lt_export_symbols_cmds
14381
14382 # Symbols that should not be listed in the preloaded symbols.
14383 exclude_expsyms=$lt_exclude_expsyms
14384
14385 # Symbols that must always be exported.
14386 include_expsyms=$lt_include_expsyms
14387
14388 # Commands necessary for linking programs (against libraries) with templates.
14389 prelink_cmds=$lt_prelink_cmds
14390
14391 # Specify filename containing input files.
14392 file_list_spec=$lt_file_list_spec
14393
14394 # How to hardcode a shared library path into an executable.
14395 hardcode_action=$hardcode_action
14396
14397 # ### END LIBTOOL CONFIG
14398
14399 _LT_EOF
14400
14401   case $host_os in
14402   aix3*)
14403     cat <<\_LT_EOF >> "$cfgfile"
14404 # AIX sometimes has problems with the GCC collect2 program.  For some
14405 # reason, if we set the COLLECT_NAMES environment variable, the problems
14406 # vanish in a puff of smoke.
14407 if test "X${COLLECT_NAMES+set}" != Xset; then
14408   COLLECT_NAMES=
14409   export COLLECT_NAMES
14410 fi
14411 _LT_EOF
14412     ;;
14413   esac
14414
14415
14416 ltmain="$ac_aux_dir/ltmain.sh"
14417
14418
14419   # We use sed instead of cat because bash on DJGPP gets confused if
14420   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14421   # text mode, it properly converts lines to CR/LF.  This bash problem
14422   # is reportedly fixed, but why not run on old versions too?
14423   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14424     || (rm -f "$cfgfile"; exit 1)
14425
14426   case $xsi_shell in
14427   yes)
14428     cat << \_LT_EOF >> "$cfgfile"
14429 # func_dirname file append nondir_replacement
14430 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14431 # otherwise set result to NONDIR_REPLACEMENT.
14432 func_dirname ()
14433 {
14434   case ${1} in
14435     */*) func_dirname_result="${1%/*}${2}" ;;
14436     *  ) func_dirname_result="${3}" ;;
14437   esac
14438 }
14439
14440 # func_basename file
14441 func_basename ()
14442 {
14443   func_basename_result="${1##*/}"
14444 }
14445
14446 # func_stripname prefix suffix name
14447 # strip PREFIX and SUFFIX off of NAME.
14448 # PREFIX and SUFFIX must not contain globbing or regex special
14449 # characters, hashes, percent signs, but SUFFIX may contain a leading
14450 # dot (in which case that matches only a dot).
14451 func_stripname ()
14452 {
14453   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14454   # positional parameters, so assign one to ordinary parameter first.
14455   func_stripname_result=${3}
14456   func_stripname_result=${func_stripname_result#"${1}"}
14457   func_stripname_result=${func_stripname_result%"${2}"}
14458 }
14459
14460 # func_opt_split
14461 func_opt_split ()
14462 {
14463   func_opt_split_opt=${1%%=*}
14464   func_opt_split_arg=${1#*=}
14465 }
14466
14467 # func_lo2o object
14468 func_lo2o ()
14469 {
14470   case ${1} in
14471     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14472     *)    func_lo2o_result=${1} ;;
14473   esac
14474 }
14475 _LT_EOF
14476     ;;
14477   *) # Bourne compatible functions.
14478     cat << \_LT_EOF >> "$cfgfile"
14479 # func_dirname file append nondir_replacement
14480 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14481 # otherwise set result to NONDIR_REPLACEMENT.
14482 func_dirname ()
14483 {
14484   # Extract subdirectory from the argument.
14485   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14486   if test "X$func_dirname_result" = "X${1}"; then
14487     func_dirname_result="${3}"
14488   else
14489     func_dirname_result="$func_dirname_result${2}"
14490   fi
14491 }
14492
14493 # func_basename file
14494 func_basename ()
14495 {
14496   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14497 }
14498
14499 # func_stripname prefix suffix name
14500 # strip PREFIX and SUFFIX off of NAME.
14501 # PREFIX and SUFFIX must not contain globbing or regex special
14502 # characters, hashes, percent signs, but SUFFIX may contain a leading
14503 # dot (in which case that matches only a dot).
14504 # func_strip_suffix prefix name
14505 func_stripname ()
14506 {
14507   case ${2} in
14508     .*) func_stripname_result=`$ECHO "X${3}" \
14509            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14510     *)  func_stripname_result=`$ECHO "X${3}" \
14511            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14512   esac
14513 }
14514
14515 # sed scripts:
14516 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14517 my_sed_long_arg='1s/^-[^=]*=//'
14518
14519 # func_opt_split
14520 func_opt_split ()
14521 {
14522   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14523   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14524 }
14525
14526 # func_lo2o object
14527 func_lo2o ()
14528 {
14529   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14530 }
14531 _LT_EOF
14532 esac
14533
14534 case $lt_shell_append in
14535   yes)
14536     cat << \_LT_EOF >> "$cfgfile"
14537
14538 # func_append var value
14539 # Append VALUE to the end of shell variable VAR.
14540 func_append ()
14541 {
14542   eval "$1+=\$2"
14543 }
14544 _LT_EOF
14545     ;;
14546   *)
14547     cat << \_LT_EOF >> "$cfgfile"
14548
14549 # func_append var value
14550 # Append VALUE to the end of shell variable VAR.
14551 func_append ()
14552 {
14553   eval "$1=\$$1\$2"
14554 }
14555 _LT_EOF
14556     ;;
14557   esac
14558
14559
14560   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14561     || (rm -f "$cfgfile"; exit 1)
14562
14563   mv -f "$cfgfile" "$ofile" ||
14564     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14565   chmod +x "$ofile"
14566
14567  ;;
14568   esac
14569 done
14570 _ACEOF
14571
14572 cat >>$CONFIG_STATUS <<\_ACEOF
14573
14574 { (exit 0); exit 0; }
14575 _ACEOF
14576 chmod +x $CONFIG_STATUS
14577 ac_clean_files=$ac_clean_files_save
14578
14579
14580 # configure is writing to config.log, and then calls config.status.
14581 # config.status does its own redirection, appending to config.log.
14582 # Unfortunately, on DOS this fails, as config.log is still kept open
14583 # by configure, so config.status won't be able to write to it; its
14584 # output is simply discarded.  So we exec the FD to /dev/null,
14585 # effectively closing config.log, so it can be properly (re)opened and
14586 # appended to by config.status.  When coming back to configure, we
14587 # need to make the FD available again.
14588 if test "$no_create" != yes; then
14589   ac_cs_success=:
14590   ac_config_status_args=
14591   test "$silent" = yes &&
14592     ac_config_status_args="$ac_config_status_args --quiet"
14593   exec 5>/dev/null
14594   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14595   exec 5>>config.log
14596   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14597   # would make configure fail if this is the last instruction.
14598   $ac_cs_success || { (exit 1); exit 1; }
14599 fi
14600