OSDN Git Service

507564a83f272e5fad881c06524e55266081f952
[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
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910
911 #
912 # Report the --help message.
913 #
914 if test "$ac_init_help" = "long"; then
915   # Omit some internal or obsolete options to make the list less imposing.
916   # This message is too long to be a string in the A/UX 3.1 sh.
917   cat <<_ACEOF
918 \`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
919
920 Usage: $0 [OPTION]... [VAR=VALUE]...
921
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE.  See below for descriptions of some of the useful variables.
924
925 Defaults for the options are specified in brackets.
926
927 Configuration:
928   -h, --help              display this help and exit
929       --help=short        display options specific to this package
930       --help=recursive    display the short help of all the included packages
931   -V, --version           display version information and exit
932   -q, --quiet, --silent   do not print \`checking...' messages
933       --cache-file=FILE   cache test results in FILE [disabled]
934   -C, --config-cache      alias for \`--cache-file=config.cache'
935   -n, --no-create         do not create output files
936       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
937
938 _ACEOF
939
940   cat <<_ACEOF
941 Installation directories:
942   --prefix=PREFIX         install architecture-independent files in PREFIX
943                           [$ac_default_prefix]
944   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
945                           [PREFIX]
946
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
951
952 For better control, use the options below.
953
954 Fine tuning of the installation directories:
955   --bindir=DIR           user executables [EPREFIX/bin]
956   --sbindir=DIR          system admin executables [EPREFIX/sbin]
957   --libexecdir=DIR       program executables [EPREFIX/libexec]
958   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
959   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
960   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
961   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
962   --libdir=DIR           object code libraries [EPREFIX/lib]
963   --includedir=DIR       C header files [PREFIX/include]
964   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
965   --infodir=DIR          info documentation [PREFIX/info]
966   --mandir=DIR           man documentation [PREFIX/man]
967 _ACEOF
968
969   cat <<\_ACEOF
970
971 Program names:
972   --program-prefix=PREFIX            prepend PREFIX to installed program names
973   --program-suffix=SUFFIX            append SUFFIX to installed program names
974   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
975
976 System types:
977   --build=BUILD     configure for building on BUILD [guessed]
978   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
979   --target=TARGET   configure for building compilers for TARGET [HOST]
980 _ACEOF
981 fi
982
983 if test -n "$ac_init_help"; then
984   case $ac_init_help in
985      short | recursive ) echo "Configuration of libmudflap 1.0:";;
986    esac
987   cat <<\_ACEOF
988
989 Optional Features:
990   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
991   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
992   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
993   --enable-maintainer-mode  enable make rules and dependencies not useful
994                           (and sometimes confusing) to the casual installer
995   --enable-multilib       build many library versions (default)
996   --disable-dependency-tracking  speeds up one-time build
997   --enable-dependency-tracking   do not reject slow dependency extractors
998   --enable-shared[=PKGS]
999                           build shared libraries [default=yes]
1000   --enable-static[=PKGS]
1001                           build static libraries [default=yes]
1002   --enable-fast-install[=PKGS]
1003                           optimize for fast installation [default=yes]
1004   --disable-libtool-lock  avoid locking (might break parallel builds)
1005   --enable-tls            Use thread-local storage [default=yes]
1006
1007 Optional Packages:
1008   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1009   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1010   --with-pic              try to use only PIC/non-PIC objects [default=use
1011                           both]
1012   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1013
1014 Some influential environment variables:
1015   CC          C compiler command
1016   CFLAGS      C compiler flags
1017   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1018               nonstandard directory <lib dir>
1019   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020               headers in a nonstandard directory <include dir>
1021   CPP         C preprocessor
1022
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1025
1026 _ACEOF
1027 fi
1028
1029 if test "$ac_init_help" = "recursive"; then
1030   # If there are subdirs, report their specific --help.
1031   ac_popdir=`pwd`
1032   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033     test -d $ac_dir || continue
1034     ac_builddir=.
1035
1036 if test "$ac_dir" != .; then
1037   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038   # A "../" for each directory in $ac_dir_suffix.
1039   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040 else
1041   ac_dir_suffix= ac_top_builddir=
1042 fi
1043
1044 case $srcdir in
1045   .)  # No --srcdir option.  We are building in place.
1046     ac_srcdir=.
1047     if test -z "$ac_top_builddir"; then
1048        ac_top_srcdir=.
1049     else
1050        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051     fi ;;
1052   [\\/]* | ?:[\\/]* )  # Absolute path.
1053     ac_srcdir=$srcdir$ac_dir_suffix;
1054     ac_top_srcdir=$srcdir ;;
1055   *) # Relative path.
1056     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 esac
1059
1060 # Do not use `cd foo && pwd` to compute absolute paths, because
1061 # the directories may not exist.
1062 case `pwd` in
1063 .) ac_abs_builddir="$ac_dir";;
1064 *)
1065   case "$ac_dir" in
1066   .) ac_abs_builddir=`pwd`;;
1067   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1068   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1069   esac;;
1070 esac
1071 case $ac_abs_builddir in
1072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1073 *)
1074   case ${ac_top_builddir}. in
1075   .) ac_abs_top_builddir=$ac_abs_builddir;;
1076   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1077   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1078   esac;;
1079 esac
1080 case $ac_abs_builddir in
1081 .) ac_abs_srcdir=$ac_srcdir;;
1082 *)
1083   case $ac_srcdir in
1084   .) ac_abs_srcdir=$ac_abs_builddir;;
1085   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1086   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1087   esac;;
1088 esac
1089 case $ac_abs_builddir in
1090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1091 *)
1092   case $ac_top_srcdir in
1093   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1094   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1095   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1096   esac;;
1097 esac
1098
1099     cd $ac_dir
1100     # Check for guested configure; otherwise get Cygnus style configure.
1101     if test -f $ac_srcdir/configure.gnu; then
1102       echo
1103       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1104     elif test -f $ac_srcdir/configure; then
1105       echo
1106       $SHELL $ac_srcdir/configure  --help=recursive
1107     elif test -f $ac_srcdir/configure.ac ||
1108            test -f $ac_srcdir/configure.in; then
1109       echo
1110       $ac_configure --help
1111     else
1112       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1113     fi
1114     cd $ac_popdir
1115   done
1116 fi
1117
1118 test -n "$ac_init_help" && exit 0
1119 if $ac_init_version; then
1120   cat <<\_ACEOF
1121 libmudflap configure 1.0
1122 generated by GNU Autoconf 2.59
1123
1124 Copyright (C) 2003 Free Software Foundation, Inc.
1125 This configure script is free software; the Free Software Foundation
1126 gives unlimited permission to copy, distribute and modify it.
1127 _ACEOF
1128   exit 0
1129 fi
1130 exec 5>config.log
1131 cat >&5 <<_ACEOF
1132 This file contains any messages produced by compilers while
1133 running configure, to aid debugging if configure makes a mistake.
1134
1135 It was created by libmudflap $as_me 1.0, which was
1136 generated by GNU Autoconf 2.59.  Invocation command line was
1137
1138   $ $0 $@
1139
1140 _ACEOF
1141 {
1142 cat <<_ASUNAME
1143 ## --------- ##
1144 ## Platform. ##
1145 ## --------- ##
1146
1147 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1148 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1149 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1150 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1151 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1152
1153 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1154 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1155
1156 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1157 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1158 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1159 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1160 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1161 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1162 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1163
1164 _ASUNAME
1165
1166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1167 for as_dir in $PATH
1168 do
1169   IFS=$as_save_IFS
1170   test -z "$as_dir" && as_dir=.
1171   echo "PATH: $as_dir"
1172 done
1173
1174 } >&5
1175
1176 cat >&5 <<_ACEOF
1177
1178
1179 ## ----------- ##
1180 ## Core tests. ##
1181 ## ----------- ##
1182
1183 _ACEOF
1184
1185
1186 # Keep a trace of the command line.
1187 # Strip out --no-create and --no-recursion so they do not pile up.
1188 # Strip out --silent because we don't want to record it for future runs.
1189 # Also quote any args containing shell meta-characters.
1190 # Make two passes to allow for proper duplicate-argument suppression.
1191 ac_configure_args=
1192 ac_configure_args0=
1193 ac_configure_args1=
1194 ac_sep=
1195 ac_must_keep_next=false
1196 for ac_pass in 1 2
1197 do
1198   for ac_arg
1199   do
1200     case $ac_arg in
1201     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1202     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203     | -silent | --silent | --silen | --sile | --sil)
1204       continue ;;
1205     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1206       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1207     esac
1208     case $ac_pass in
1209     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1210     2)
1211       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1212       if test $ac_must_keep_next = true; then
1213         ac_must_keep_next=false # Got value, back to normal.
1214       else
1215         case $ac_arg in
1216           *=* | --config-cache | -C | -disable-* | --disable-* \
1217           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1218           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1219           | -with-* | --with-* | -without-* | --without-* | --x)
1220             case "$ac_configure_args0 " in
1221               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1222             esac
1223             ;;
1224           -* ) ac_must_keep_next=true ;;
1225         esac
1226       fi
1227       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1228       # Get rid of the leading space.
1229       ac_sep=" "
1230       ;;
1231     esac
1232   done
1233 done
1234 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1235 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1236
1237 # When interrupted or exit'd, cleanup temporary files, and complete
1238 # config.log.  We remove comments because anyway the quotes in there
1239 # would cause problems or look ugly.
1240 # WARNING: Be sure not to use single quotes in there, as some shells,
1241 # such as our DU 5.0 friend, will then `close' the trap.
1242 trap 'exit_status=$?
1243   # Save into config.log some information that might help in debugging.
1244   {
1245     echo
1246
1247     cat <<\_ASBOX
1248 ## ---------------- ##
1249 ## Cache variables. ##
1250 ## ---------------- ##
1251 _ASBOX
1252     echo
1253     # The following way of writing the cache mishandles newlines in values,
1254 {
1255   (set) 2>&1 |
1256     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1257     *ac_space=\ *)
1258       sed -n \
1259         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1260           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1261       ;;
1262     *)
1263       sed -n \
1264         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1265       ;;
1266     esac;
1267 }
1268     echo
1269
1270     cat <<\_ASBOX
1271 ## ----------------- ##
1272 ## Output variables. ##
1273 ## ----------------- ##
1274 _ASBOX
1275     echo
1276     for ac_var in $ac_subst_vars
1277     do
1278       eval ac_val=$`echo $ac_var`
1279       echo "$ac_var='"'"'$ac_val'"'"'"
1280     done | sort
1281     echo
1282
1283     if test -n "$ac_subst_files"; then
1284       cat <<\_ASBOX
1285 ## ------------- ##
1286 ## Output files. ##
1287 ## ------------- ##
1288 _ASBOX
1289       echo
1290       for ac_var in $ac_subst_files
1291       do
1292         eval ac_val=$`echo $ac_var`
1293         echo "$ac_var='"'"'$ac_val'"'"'"
1294       done | sort
1295       echo
1296     fi
1297
1298     if test -s confdefs.h; then
1299       cat <<\_ASBOX
1300 ## ----------- ##
1301 ## confdefs.h. ##
1302 ## ----------- ##
1303 _ASBOX
1304       echo
1305       sed "/^$/d" confdefs.h | sort
1306       echo
1307     fi
1308     test "$ac_signal" != 0 &&
1309       echo "$as_me: caught signal $ac_signal"
1310     echo "$as_me: exit $exit_status"
1311   } >&5
1312   rm -f core *.core &&
1313   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1314     exit $exit_status
1315      ' 0
1316 for ac_signal in 1 2 13 15; do
1317   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1318 done
1319 ac_signal=0
1320
1321 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1322 rm -rf conftest* confdefs.h
1323 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1324 echo >confdefs.h
1325
1326 # Predefined preprocessor variables.
1327
1328 cat >>confdefs.h <<_ACEOF
1329 #define PACKAGE_NAME "$PACKAGE_NAME"
1330 _ACEOF
1331
1332
1333 cat >>confdefs.h <<_ACEOF
1334 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1335 _ACEOF
1336
1337
1338 cat >>confdefs.h <<_ACEOF
1339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1340 _ACEOF
1341
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_STRING "$PACKAGE_STRING"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1350 _ACEOF
1351
1352
1353 # Let the site file select an alternate cache file if it wants to.
1354 # Prefer explicitly selected file to automatically selected ones.
1355 if test -z "$CONFIG_SITE"; then
1356   if test "x$prefix" != xNONE; then
1357     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1358   else
1359     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1360   fi
1361 fi
1362 for ac_site_file in $CONFIG_SITE; do
1363   if test -r "$ac_site_file"; then
1364     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1365 echo "$as_me: loading site script $ac_site_file" >&6;}
1366     sed 's/^/| /' "$ac_site_file" >&5
1367     . "$ac_site_file"
1368   fi
1369 done
1370
1371 if test -r "$cache_file"; then
1372   # Some versions of bash will fail to source /dev/null (special
1373   # files actually), so we avoid doing that.
1374   if test -f "$cache_file"; then
1375     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1376 echo "$as_me: loading cache $cache_file" >&6;}
1377     case $cache_file in
1378       [\\/]* | ?:[\\/]* ) . $cache_file;;
1379       *)                      . ./$cache_file;;
1380     esac
1381   fi
1382 else
1383   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1384 echo "$as_me: creating cache $cache_file" >&6;}
1385   >$cache_file
1386 fi
1387
1388 # Check that the precious variables saved in the cache have kept the same
1389 # value.
1390 ac_cache_corrupted=false
1391 for ac_var in `(set) 2>&1 |
1392                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1393   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1394   eval ac_new_set=\$ac_env_${ac_var}_set
1395   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1396   eval ac_new_val="\$ac_env_${ac_var}_value"
1397   case $ac_old_set,$ac_new_set in
1398     set,)
1399       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1400 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1401       ac_cache_corrupted=: ;;
1402     ,set)
1403       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1404 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1405       ac_cache_corrupted=: ;;
1406     ,);;
1407     *)
1408       if test "x$ac_old_val" != "x$ac_new_val"; then
1409         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1410 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1411         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1412 echo "$as_me:   former value:  $ac_old_val" >&2;}
1413         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1414 echo "$as_me:   current value: $ac_new_val" >&2;}
1415         ac_cache_corrupted=:
1416       fi;;
1417   esac
1418   # Pass precious variables to config.status.
1419   if test "$ac_new_set" = set; then
1420     case $ac_new_val in
1421     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1422       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1423     *) ac_arg=$ac_var=$ac_new_val ;;
1424     esac
1425     case " $ac_configure_args " in
1426       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1427       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1428     esac
1429   fi
1430 done
1431 if $ac_cache_corrupted; then
1432   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1433 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1434   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1435 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1436    { (exit 1); exit 1; }; }
1437 fi
1438
1439 ac_ext=c
1440 ac_cpp='$CPP $CPPFLAGS'
1441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472 ac_aux_dir=
1473 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1474   if test -f $ac_dir/install-sh; then
1475     ac_aux_dir=$ac_dir
1476     ac_install_sh="$ac_aux_dir/install-sh -c"
1477     break
1478   elif test -f $ac_dir/install.sh; then
1479     ac_aux_dir=$ac_dir
1480     ac_install_sh="$ac_aux_dir/install.sh -c"
1481     break
1482   elif test -f $ac_dir/shtool; then
1483     ac_aux_dir=$ac_dir
1484     ac_install_sh="$ac_aux_dir/shtool install -c"
1485     break
1486   fi
1487 done
1488 if test -z "$ac_aux_dir"; then
1489   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491    { (exit 1); exit 1; }; }
1492 fi
1493 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1496
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4 >/dev/null 2>&1 ||
1499   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501    { (exit 1); exit 1; }; }
1502
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   ac_cv_build_alias=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510   ac_cv_build_alias=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514    { (exit 1); exit 1; }; }
1515 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1516   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518    { (exit 1); exit 1; }; }
1519
1520 fi
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1523 build=$ac_cv_build
1524 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1527
1528
1529 echo "$as_me:$LINENO: checking host system type" >&5
1530 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531 if test "${ac_cv_host+set}" = set; then
1532   echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534   ac_cv_host_alias=$host_alias
1535 test -z "$ac_cv_host_alias" &&
1536   ac_cv_host_alias=$ac_cv_build_alias
1537 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1538   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540    { (exit 1); exit 1; }; }
1541
1542 fi
1543 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544 echo "${ECHO_T}$ac_cv_host" >&6
1545 host=$ac_cv_host
1546 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551 echo "$as_me:$LINENO: checking target system type" >&5
1552 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1553 if test "${ac_cv_target+set}" = set; then
1554   echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556   ac_cv_target_alias=$target_alias
1557 test "x$ac_cv_target_alias" = "x" &&
1558   ac_cv_target_alias=$ac_cv_host_alias
1559 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1560   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1562    { (exit 1); exit 1; }; }
1563
1564 fi
1565 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1566 echo "${ECHO_T}$ac_cv_target" >&6
1567 target=$ac_cv_target
1568 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573 # The aliases save the names the user supplied, while $host etc.
1574 # will get canonicalized.
1575 test -n "$target_alias" &&
1576   test "$program_prefix$program_suffix$program_transform_name" = \
1577     NONENONEs,x,x, &&
1578   program_prefix=${target_alias}-
1579  case ${build_alias} in
1580   "") build_noncanonical=${build} ;;
1581   *) build_noncanonical=${build_alias} ;;
1582 esac
1583
1584  case ${host_alias} in
1585   "") host_noncanonical=${build_noncanonical} ;;
1586   *) host_noncanonical=${host_alias} ;;
1587 esac
1588
1589  case ${target_alias} in
1590   "") target_noncanonical=${host_noncanonical} ;;
1591   *) target_noncanonical=${target_alias} ;;
1592 esac
1593
1594
1595
1596
1597 am__api_version="1.9"
1598 # Find a good install program.  We prefer a C program (faster),
1599 # so one script is as good as another.  But avoid the broken or
1600 # incompatible versions:
1601 # SysV /etc/install, /usr/sbin/install
1602 # SunOS /usr/etc/install
1603 # IRIX /sbin/install
1604 # AIX /bin/install
1605 # AmigaOS /C/install, which installs bootblocks on floppy discs
1606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1609 # OS/2's system install, which has a completely different semantic
1610 # ./install, which can be erroneously created by make from ./install.sh.
1611 # Reject install programs that cannot install multiple files.
1612 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1613 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1614 if test -z "$INSTALL"; then
1615 if test "${ac_cv_path_install+set}" = set; then
1616   echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621   IFS=$as_save_IFS
1622   test -z "$as_dir" && as_dir=.
1623   # Account for people who put trailing slashes in PATH elements.
1624 case $as_dir/ in
1625   ./ | .// | /cC/* | \
1626   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1627   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1628   /usr/ucb/* ) ;;
1629   *)
1630     # OSF1 and SCO ODT 3.0 have their own names for install.
1631     # Don't use installbsd from OSF since it installs stuff as root
1632     # by default.
1633     for ac_prog in ginstall scoinst install; do
1634       for ac_exec_ext in '' $ac_executable_extensions; do
1635         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1636           if test $ac_prog = install &&
1637             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1638             # AIX install.  It has an incompatible calling convention.
1639             :
1640           elif test $ac_prog = install &&
1641             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1642             # program-specific install script used by HP pwplus--don't use.
1643             :
1644           else
1645             rm -rf conftest.one conftest.two conftest.dir
1646             echo one > conftest.one
1647             echo two > conftest.two
1648             mkdir conftest.dir
1649             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1650               test -s conftest.one && test -s conftest.two &&
1651               test -s conftest.dir/conftest.one &&
1652               test -s conftest.dir/conftest.two
1653             then
1654               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1655               break 3
1656             fi
1657           fi
1658         fi
1659       done
1660     done
1661     ;;
1662 esac
1663 done
1664
1665 rm -rf conftest.one conftest.two conftest.dir
1666
1667 fi
1668   if test "${ac_cv_path_install+set}" = set; then
1669     INSTALL=$ac_cv_path_install
1670   else
1671     # As a last resort, use the slow shell script.  Don't cache a
1672     # value for INSTALL within a source directory, because that will
1673     # break other packages using the cache if that directory is
1674     # removed, or if the value is a relative name.
1675     INSTALL=$ac_install_sh
1676   fi
1677 fi
1678 echo "$as_me:$LINENO: result: $INSTALL" >&5
1679 echo "${ECHO_T}$INSTALL" >&6
1680
1681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1682 # It thinks the first close brace ends the variable substitution.
1683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1684
1685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1686
1687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1688
1689 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1690 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1691 # Just in case
1692 sleep 1
1693 echo timestamp > conftest.file
1694 # Do `set' in a subshell so we don't clobber the current shell's
1695 # arguments.  Must try -L first in case configure is actually a
1696 # symlink; some systems play weird games with the mod time of symlinks
1697 # (eg FreeBSD returns the mod time of the symlink's containing
1698 # directory).
1699 if (
1700    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1701    if test "$*" = "X"; then
1702       # -L didn't work.
1703       set X `ls -t $srcdir/configure conftest.file`
1704    fi
1705    rm -f conftest.file
1706    if test "$*" != "X $srcdir/configure conftest.file" \
1707       && test "$*" != "X conftest.file $srcdir/configure"; then
1708
1709       # If neither matched, then we have a broken ls.  This can happen
1710       # if, for instance, CONFIG_SHELL is bash and it inherits a
1711       # broken ls alias from the environment.  This has actually
1712       # happened.  Such a system could not be considered "sane".
1713       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1714 alias in your environment" >&5
1715 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1716 alias in your environment" >&2;}
1717    { (exit 1); exit 1; }; }
1718    fi
1719
1720    test "$2" = conftest.file
1721    )
1722 then
1723    # Ok.
1724    :
1725 else
1726    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1727 Check your system clock" >&5
1728 echo "$as_me: error: newly created file is older than distributed files!
1729 Check your system clock" >&2;}
1730    { (exit 1); exit 1; }; }
1731 fi
1732 echo "$as_me:$LINENO: result: yes" >&5
1733 echo "${ECHO_T}yes" >&6
1734 test "$program_prefix" != NONE &&
1735   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1736 # Use a double $ so make ignores it.
1737 test "$program_suffix" != NONE &&
1738   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1739 # Double any \ or $.  echo might interpret backslashes.
1740 # By default was `s,x,x', remove it if useless.
1741 cat <<\_ACEOF >conftest.sed
1742 s/[\\$]/&&/g;s/;s,x,x,$//
1743 _ACEOF
1744 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1745 rm conftest.sed
1746
1747 # expand $ac_aux_dir to an absolute path
1748 am_aux_dir=`cd $ac_aux_dir && pwd`
1749
1750 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1751 # Use eval to expand $SHELL
1752 if eval "$MISSING --run true"; then
1753   am_missing_run="$MISSING --run "
1754 else
1755   am_missing_run=
1756   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1757 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1758 fi
1759
1760 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1761   # We used to keeping the `.' as first argument, in order to
1762   # allow $(mkdir_p) to be used without argument.  As in
1763   #   $(mkdir_p) $(somedir)
1764   # where $(somedir) is conditionally defined.  However this is wrong
1765   # for two reasons:
1766   #  1. if the package is installed by a user who cannot write `.'
1767   #     make install will fail,
1768   #  2. the above comment should most certainly read
1769   #     $(mkdir_p) $(DESTDIR)$(somedir)
1770   #     so it does not work when $(somedir) is undefined and
1771   #     $(DESTDIR) is not.
1772   #  To support the latter case, we have to write
1773   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1774   #  so the `.' trick is pointless.
1775   mkdir_p='mkdir -p --'
1776 else
1777   # On NextStep and OpenStep, the `mkdir' command does not
1778   # recognize any option.  It will interpret all options as
1779   # directories to create, and then abort because `.' already
1780   # exists.
1781   for d in ./-p ./--version;
1782   do
1783     test -d $d && rmdir $d
1784   done
1785   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1786   if test -f "$ac_aux_dir/mkinstalldirs"; then
1787     mkdir_p='$(mkinstalldirs)'
1788   else
1789     mkdir_p='$(install_sh) -d'
1790   fi
1791 fi
1792
1793 for ac_prog in gawk mawk nawk awk
1794 do
1795   # Extract the first word of "$ac_prog", so it can be a program name with args.
1796 set dummy $ac_prog; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_AWK+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$AWK"; then
1803   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1807 do
1808   IFS=$as_save_IFS
1809   test -z "$as_dir" && as_dir=.
1810   for ac_exec_ext in '' $ac_executable_extensions; do
1811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812     ac_cv_prog_AWK="$ac_prog"
1813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814     break 2
1815   fi
1816 done
1817 done
1818
1819 fi
1820 fi
1821 AWK=$ac_cv_prog_AWK
1822 if test -n "$AWK"; then
1823   echo "$as_me:$LINENO: result: $AWK" >&5
1824 echo "${ECHO_T}$AWK" >&6
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830   test -n "$AWK" && break
1831 done
1832
1833 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1834 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1835 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1836 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1837   echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839   cat >conftest.make <<\_ACEOF
1840 all:
1841         @echo 'ac_maketemp="$(MAKE)"'
1842 _ACEOF
1843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1844 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1845 if test -n "$ac_maketemp"; then
1846   eval ac_cv_prog_make_${ac_make}_set=yes
1847 else
1848   eval ac_cv_prog_make_${ac_make}_set=no
1849 fi
1850 rm -f conftest.make
1851 fi
1852 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1853   echo "$as_me:$LINENO: result: yes" >&5
1854 echo "${ECHO_T}yes" >&6
1855   SET_MAKE=
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859   SET_MAKE="MAKE=${MAKE-make}"
1860 fi
1861
1862 rm -rf .tst 2>/dev/null
1863 mkdir .tst 2>/dev/null
1864 if test -d .tst; then
1865   am__leading_dot=.
1866 else
1867   am__leading_dot=_
1868 fi
1869 rmdir .tst 2>/dev/null
1870
1871 # test to see if srcdir already configured
1872 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1873    test -f $srcdir/config.status; then
1874   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1875 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1876    { (exit 1); exit 1; }; }
1877 fi
1878
1879 # test whether we have cygpath
1880 if test -z "$CYGPATH_W"; then
1881   if (cygpath --version) >/dev/null 2>/dev/null; then
1882     CYGPATH_W='cygpath -w'
1883   else
1884     CYGPATH_W=echo
1885   fi
1886 fi
1887
1888
1889 # Define the identity of the package.
1890  PACKAGE='libmudflap'
1891  VERSION='1.0'
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE "$PACKAGE"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define VERSION "$VERSION"
1901 _ACEOF
1902
1903 # Some tools Automake needs.
1904
1905 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1906
1907
1908 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1909
1910
1911 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1912
1913
1914 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1915
1916
1917 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1918
1919 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1920
1921 # Installed binaries are usually stripped using `strip' when the user
1922 # run `make install-strip'.  However `strip' might not be the right
1923 # tool to use in cross-compilation environments, therefore Automake
1924 # will honor the `STRIP' environment variable to overrule this program.
1925 if test "$cross_compiling" != no; then
1926   if test -n "$ac_tool_prefix"; then
1927   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1928 set dummy ${ac_tool_prefix}strip; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_STRIP+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   if test -n "$STRIP"; then
1935   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940   IFS=$as_save_IFS
1941   test -z "$as_dir" && as_dir=.
1942   for ac_exec_ext in '' $ac_executable_extensions; do
1943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946     break 2
1947   fi
1948 done
1949 done
1950
1951 fi
1952 fi
1953 STRIP=$ac_cv_prog_STRIP
1954 if test -n "$STRIP"; then
1955   echo "$as_me:$LINENO: result: $STRIP" >&5
1956 echo "${ECHO_T}$STRIP" >&6
1957 else
1958   echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960 fi
1961
1962 fi
1963 if test -z "$ac_cv_prog_STRIP"; then
1964   ac_ct_STRIP=$STRIP
1965   # Extract the first word of "strip", so it can be a program name with args.
1966 set dummy strip; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   if test -n "$ac_ct_STRIP"; then
1973   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   for ac_exec_ext in '' $ac_executable_extensions; do
1981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982     ac_cv_prog_ac_ct_STRIP="strip"
1983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984     break 2
1985   fi
1986 done
1987 done
1988
1989   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1990 fi
1991 fi
1992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1993 if test -n "$ac_ct_STRIP"; then
1994   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1995 echo "${ECHO_T}$ac_ct_STRIP" >&6
1996 else
1997   echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
1999 fi
2000
2001   STRIP=$ac_ct_STRIP
2002 else
2003   STRIP="$ac_cv_prog_STRIP"
2004 fi
2005
2006 fi
2007 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2008
2009 # We need awk for the "check" target.  The system "awk" is bad on
2010 # some platforms.
2011 # Always define AMTAR for backward compatibility.
2012
2013 AMTAR=${AMTAR-"${am_missing_run}tar"}
2014
2015 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2016
2017
2018
2019
2020
2021
2022 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2023 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2024 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2025 if test "${enable_version_specific_runtime_libs+set}" = set; then
2026   enableval="$enable_version_specific_runtime_libs"
2027   case "$enableval" in
2028  yes) version_specific_libs=yes ;;
2029  no)  version_specific_libs=no ;;
2030  *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2031 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2032    { (exit 1); exit 1; }; };;
2033  esac
2034 else
2035   version_specific_libs=no
2036 fi;
2037 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2038 echo "${ECHO_T}$version_specific_libs" >&6
2039
2040 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2041 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2042     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2043 if test "${enable_maintainer_mode+set}" = set; then
2044   enableval="$enable_maintainer_mode"
2045   USE_MAINTAINER_MODE=$enableval
2046 else
2047   USE_MAINTAINER_MODE=no
2048 fi;
2049   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2050 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2051
2052
2053 if test $USE_MAINTAINER_MODE = yes; then
2054   MAINTAINER_MODE_TRUE=
2055   MAINTAINER_MODE_FALSE='#'
2056 else
2057   MAINTAINER_MODE_TRUE='#'
2058   MAINTAINER_MODE_FALSE=
2059 fi
2060
2061   MAINT=$MAINTAINER_MODE_TRUE
2062
2063
2064
2065
2066 # Default to --enable-multilib
2067 # Check whether --enable-multilib or --disable-multilib was given.
2068 if test "${enable_multilib+set}" = set; then
2069   enableval="$enable_multilib"
2070   case "$enableval" in
2071   yes) multilib=yes ;;
2072   no)  multilib=no ;;
2073   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2074 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2075    { (exit 1); exit 1; }; } ;;
2076  esac
2077 else
2078   multilib=yes
2079 fi;
2080
2081 # We may get other options which we leave undocumented:
2082 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2083 # See config-ml.in if you want the gory details.
2084
2085 if test "$srcdir" = "."; then
2086   if test "$with_target_subdir" != "."; then
2087     multi_basedir="$srcdir/$with_multisrctop../.."
2088   else
2089     multi_basedir="$srcdir/$with_multisrctop.."
2090   fi
2091 else
2092   multi_basedir="$srcdir/.."
2093 fi
2094
2095
2096 # Even if the default multilib is not a cross compilation,
2097 # it may be that some of the other multilibs are.
2098 if test $cross_compiling = no && test $multilib = yes \
2099    && test "x${with_multisubdir}" != x ; then
2100    cross_compiling=maybe
2101 fi
2102
2103           ac_config_commands="$ac_config_commands default-1"
2104
2105
2106 target_alias=${target_alias-$host_alias}
2107
2108
2109           ac_config_headers="$ac_config_headers config.h"
2110
2111
2112 ac_ext=c
2113 ac_cpp='$CPP $CPPFLAGS'
2114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2117
2118 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2119 # We must force CC to /not/ be precious variables; otherwise
2120 # the wrong, non-multilib-adjusted value will be used in multilibs.
2121 # As a side effect, we have to subst CFLAGS ourselves.
2122
2123
2124
2125 ac_ext=c
2126 ac_cpp='$CPP $CPPFLAGS'
2127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130 if test -n "$ac_tool_prefix"; then
2131   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2133 echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136   echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138   if test -n "$CC"; then
2139   ac_cv_prog_CC="$CC" # Let the user override the test.
2140 else
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   for ac_exec_ext in '' $ac_executable_extensions; do
2147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150     break 2
2151   fi
2152 done
2153 done
2154
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159   echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6
2161 else
2162   echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6
2164 fi
2165
2166 fi
2167 if test -z "$ac_cv_prog_CC"; then
2168   ac_ct_CC=$CC
2169   # Extract the first word of "gcc", so it can be a program name with args.
2170 set dummy gcc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$ac_ct_CC"; then
2177   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182   IFS=$as_save_IFS
2183   test -z "$as_dir" && as_dir=.
2184   for ac_exec_ext in '' $ac_executable_extensions; do
2185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186     ac_cv_prog_ac_ct_CC="gcc"
2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188     break 2
2189   fi
2190 done
2191 done
2192
2193 fi
2194 fi
2195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2196 if test -n "$ac_ct_CC"; then
2197   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2198 echo "${ECHO_T}$ac_ct_CC" >&6
2199 else
2200   echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6
2202 fi
2203
2204   CC=$ac_ct_CC
2205 else
2206   CC="$ac_cv_prog_CC"
2207 fi
2208
2209 if test -z "$CC"; then
2210   if test -n "$ac_tool_prefix"; then
2211   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2212 set dummy ${ac_tool_prefix}cc; ac_word=$2
2213 echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$CC"; then
2219   ac_cv_prog_CC="$CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228     ac_cv_prog_CC="${ac_tool_prefix}cc"
2229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230     break 2
2231   fi
2232 done
2233 done
2234
2235 fi
2236 fi
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239   echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6
2241 else
2242   echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6
2244 fi
2245
2246 fi
2247 if test -z "$ac_cv_prog_CC"; then
2248   ac_ct_CC=$CC
2249   # Extract the first word of "cc", so it can be a program name with args.
2250 set dummy cc; ac_word=$2
2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254   echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256   if test -n "$ac_ct_CC"; then
2257   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266     ac_cv_prog_ac_ct_CC="cc"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272
2273 fi
2274 fi
2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276 if test -n "$ac_ct_CC"; then
2277   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278 echo "${ECHO_T}$ac_ct_CC" >&6
2279 else
2280   echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2282 fi
2283
2284   CC=$ac_ct_CC
2285 else
2286   CC="$ac_cv_prog_CC"
2287 fi
2288
2289 fi
2290 if test -z "$CC"; then
2291   # Extract the first word of "cc", so it can be a program name with args.
2292 set dummy cc; ac_word=$2
2293 echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295 if test "${ac_cv_prog_CC+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   if test -n "$CC"; then
2299   ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301   ac_prog_rejected=no
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 for as_dir in $PATH
2304 do
2305   IFS=$as_save_IFS
2306   test -z "$as_dir" && as_dir=.
2307   for ac_exec_ext in '' $ac_executable_extensions; do
2308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2310        ac_prog_rejected=yes
2311        continue
2312      fi
2313     ac_cv_prog_CC="cc"
2314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315     break 2
2316   fi
2317 done
2318 done
2319
2320 if test $ac_prog_rejected = yes; then
2321   # We found a bogon in the path, so make sure we never use it.
2322   set dummy $ac_cv_prog_CC
2323   shift
2324   if test $# != 0; then
2325     # We chose a different compiler from the bogus one.
2326     # However, it has the same basename, so the bogon will be chosen
2327     # first if we set CC to just the basename; use the full file name.
2328     shift
2329     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2330   fi
2331 fi
2332 fi
2333 fi
2334 CC=$ac_cv_prog_CC
2335 if test -n "$CC"; then
2336   echo "$as_me:$LINENO: result: $CC" >&5
2337 echo "${ECHO_T}$CC" >&6
2338 else
2339   echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6
2341 fi
2342
2343 fi
2344 if test -z "$CC"; then
2345   if test -n "$ac_tool_prefix"; then
2346   for ac_prog in cl
2347   do
2348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CC+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$CC"; then
2356   ac_cv_prog_CC="$CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371
2372 fi
2373 fi
2374 CC=$ac_cv_prog_CC
2375 if test -n "$CC"; then
2376   echo "$as_me:$LINENO: result: $CC" >&5
2377 echo "${ECHO_T}$CC" >&6
2378 else
2379   echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2381 fi
2382
2383     test -n "$CC" && break
2384   done
2385 fi
2386 if test -z "$CC"; then
2387   ac_ct_CC=$CC
2388   for ac_prog in cl
2389 do
2390   # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$ac_ct_CC"; then
2398   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_ac_ct_CC="$ac_prog"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413
2414 fi
2415 fi
2416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2417 if test -n "$ac_ct_CC"; then
2418   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2419 echo "${ECHO_T}$ac_ct_CC" >&6
2420 else
2421   echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425   test -n "$ac_ct_CC" && break
2426 done
2427
2428   CC=$ac_ct_CC
2429 fi
2430
2431 fi
2432
2433
2434 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2435 See \`config.log' for more details." >&5
2436 echo "$as_me: error: no acceptable C compiler found in \$PATH
2437 See \`config.log' for more details." >&2;}
2438    { (exit 1); exit 1; }; }
2439
2440 # Provide some information about the compiler.
2441 echo "$as_me:$LINENO:" \
2442      "checking for C compiler version" >&5
2443 ac_compiler=`set X $ac_compile; echo $2`
2444 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2445   (eval $ac_compiler --version </dev/null >&5) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }
2449 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2450   (eval $ac_compiler -v </dev/null >&5) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }
2454 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2455   (eval $ac_compiler -V </dev/null >&5) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }
2459
2460 cat >conftest.$ac_ext <<_ACEOF
2461 /* confdefs.h.  */
2462 _ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h.  */
2466
2467 int
2468 main ()
2469 {
2470
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 ac_clean_files_save=$ac_clean_files
2476 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2477 # Try to create an executable without -o first, disregard a.out.
2478 # It will help us diagnose broken compilers, and finding out an intuition
2479 # of exeext.
2480 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2481 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2482 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2483 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2484   (eval $ac_link_default) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; then
2488   # Find the output, starting from the most likely.  This scheme is
2489 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2490 # resort.
2491
2492 # Be careful to initialize this variable, since it used to be cached.
2493 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2494 ac_cv_exeext=
2495 # b.out is created by i960 compilers.
2496 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2497 do
2498   test -f "$ac_file" || continue
2499   case $ac_file in
2500     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2501         ;;
2502     conftest.$ac_ext )
2503         # This is the source file.
2504         ;;
2505     [ab].out )
2506         # We found the default executable, but exeext='' is most
2507         # certainly right.
2508         break;;
2509     *.* )
2510         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2511         # FIXME: I believe we export ac_cv_exeext for Libtool,
2512         # but it would be cool to find out if it's true.  Does anybody
2513         # maintain Libtool? --akim.
2514         export ac_cv_exeext
2515         break;;
2516     * )
2517         break;;
2518   esac
2519 done
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: C compiler cannot create executables
2527 See \`config.log' for more details." >&2;}
2528    { (exit 77); exit 77; }; }
2529 fi
2530
2531 ac_exeext=$ac_cv_exeext
2532 echo "$as_me:$LINENO: result: $ac_file" >&5
2533 echo "${ECHO_T}$ac_file" >&6
2534
2535 # Check the compiler produces executables we can run.  If not, either
2536 # the compiler is broken, or we cross compile.
2537 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2538 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2539 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2540 # If not cross compiling, check that we can run a simple program.
2541 if test "$cross_compiling" != yes; then
2542   if { ac_try='./$ac_file'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548     cross_compiling=no
2549   else
2550     if test "$cross_compiling" = maybe; then
2551         cross_compiling=yes
2552     else
2553         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2554 If you meant to cross compile, use \`--host'.
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: cannot run C compiled programs.
2557 If you meant to cross compile, use \`--host'.
2558 See \`config.log' for more details." >&2;}
2559    { (exit 1); exit 1; }; }
2560     fi
2561   fi
2562 fi
2563 echo "$as_me:$LINENO: result: yes" >&5
2564 echo "${ECHO_T}yes" >&6
2565
2566 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2567 ac_clean_files=$ac_clean_files_save
2568 # Check the compiler produces executables we can run.  If not, either
2569 # the compiler is broken, or we cross compile.
2570 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2571 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2572 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2573 echo "${ECHO_T}$cross_compiling" >&6
2574
2575 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2576 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2578   (eval $ac_link) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; then
2582   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2583 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2584 # work properly (i.e., refer to `conftest.exe'), while it won't with
2585 # `rm'.
2586 for ac_file in conftest.exe conftest conftest.*; do
2587   test -f "$ac_file" || continue
2588   case $ac_file in
2589     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2590     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591           export ac_cv_exeext
2592           break;;
2593     * ) break;;
2594   esac
2595 done
2596 else
2597   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2598 See \`config.log' for more details." >&5
2599 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2600 See \`config.log' for more details." >&2;}
2601    { (exit 1); exit 1; }; }
2602 fi
2603
2604 rm -f conftest$ac_cv_exeext
2605 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2606 echo "${ECHO_T}$ac_cv_exeext" >&6
2607
2608 rm -f conftest.$ac_ext
2609 EXEEXT=$ac_cv_exeext
2610 ac_exeext=$EXEEXT
2611 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2612 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2613 if test "${ac_cv_objext+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h.  */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h.  */
2622
2623 int
2624 main ()
2625 {
2626
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.o conftest.obj
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633   (eval $ac_compile) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; then
2637   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2638   case $ac_file in
2639     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2640     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2641        break;;
2642   esac
2643 done
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2651 See \`config.log' for more details." >&2;}
2652    { (exit 1); exit 1; }; }
2653 fi
2654
2655 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2656 fi
2657 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2658 echo "${ECHO_T}$ac_cv_objext" >&6
2659 OBJEXT=$ac_cv_objext
2660 ac_objext=$OBJEXT
2661 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2662 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2663 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h.  */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h.  */
2672
2673 int
2674 main ()
2675 {
2676 #ifndef __GNUC__
2677        choke me
2678 #endif
2679
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 rm -f conftest.$ac_objext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686   (eval $ac_compile) 2>conftest.er1
2687   ac_status=$?
2688   grep -v '^ *+' conftest.er1 >conftest.err
2689   rm -f conftest.er1
2690   cat conftest.err >&5
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693          { ac_try='test -z "$ac_c_werror_flag"
2694                          || test ! -s conftest.err'
2695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; } &&
2700          { ac_try='test -s conftest.$ac_objext'
2701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702   (eval $ac_try) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; }; then
2706   ac_compiler_gnu=yes
2707 else
2708   echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 ac_compiler_gnu=no
2712 fi
2713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2715
2716 fi
2717 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2718 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2719 GCC=`test $ac_compiler_gnu = yes && echo yes`
2720 ac_test_CFLAGS=${CFLAGS+set}
2721 ac_save_CFLAGS=$CFLAGS
2722 CFLAGS="-g"
2723 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2724 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2725 if test "${ac_cv_prog_cc_g+set}" = set; then
2726   echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728   cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h.  */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h.  */
2734
2735 int
2736 main ()
2737 {
2738
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745   (eval $ac_compile) 2>conftest.er1
2746   ac_status=$?
2747   grep -v '^ *+' conftest.er1 >conftest.err
2748   rm -f conftest.er1
2749   cat conftest.err >&5
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); } &&
2752          { ac_try='test -z "$ac_c_werror_flag"
2753                          || test ! -s conftest.err'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; } &&
2759          { ac_try='test -s conftest.$ac_objext'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   ac_cv_prog_cc_g=yes
2766 else
2767   echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770 ac_cv_prog_cc_g=no
2771 fi
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773 fi
2774 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2775 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2776 if test "$ac_test_CFLAGS" = set; then
2777   CFLAGS=$ac_save_CFLAGS
2778 elif test $ac_cv_prog_cc_g = yes; then
2779   if test "$GCC" = yes; then
2780     CFLAGS="-g -O2"
2781   else
2782     CFLAGS="-g"
2783   fi
2784 else
2785   if test "$GCC" = yes; then
2786     CFLAGS="-O2"
2787   else
2788     CFLAGS=
2789   fi
2790 fi
2791 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2792 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2793 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2794   echo $ECHO_N "(cached) $ECHO_C" >&6
2795 else
2796   ac_cv_prog_cc_stdc=no
2797 ac_save_CC=$CC
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h.  */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h.  */
2804 #include <stdarg.h>
2805 #include <stdio.h>
2806 #include <sys/types.h>
2807 #include <sys/stat.h>
2808 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2809 struct buf { int x; };
2810 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2811 static char *e (p, i)
2812      char **p;
2813      int i;
2814 {
2815   return p[i];
2816 }
2817 static char *f (char * (*g) (char **, int), char **p, ...)
2818 {
2819   char *s;
2820   va_list v;
2821   va_start (v,p);
2822   s = g (p, va_arg (v,int));
2823   va_end (v);
2824   return s;
2825 }
2826
2827 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2828    function prototypes and stuff, but not '\xHH' hex character constants.
2829    These don't provoke an error unfortunately, instead are silently treated
2830    as 'x'.  The following induces an error, until -std1 is added to get
2831    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2832    array size at least.  It's necessary to write '\x00'==0 to get something
2833    that's true only with -std1.  */
2834 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2835
2836 int test (int i, double x);
2837 struct s1 {int (*f) (int a);};
2838 struct s2 {int (*f) (double a);};
2839 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2840 int argc;
2841 char **argv;
2842 int
2843 main ()
2844 {
2845 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2846   ;
2847   return 0;
2848 }
2849 _ACEOF
2850 # Don't try gcc -ansi; that turns off useful extensions and
2851 # breaks some systems' header files.
2852 # AIX                   -qlanglvl=ansi
2853 # Ultrix and OSF/1      -std1
2854 # HP-UX 10.20 and later -Ae
2855 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2856 # SVR4                  -Xc -D__EXTENSIONS__
2857 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2858 do
2859   CC="$ac_save_CC $ac_arg"
2860   rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862   (eval $ac_compile) 2>conftest.er1
2863   ac_status=$?
2864   grep -v '^ *+' conftest.er1 >conftest.err
2865   rm -f conftest.er1
2866   cat conftest.err >&5
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } &&
2869          { ac_try='test -z "$ac_c_werror_flag"
2870                          || test ! -s conftest.err'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; } &&
2876          { ac_try='test -s conftest.$ac_objext'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882   ac_cv_prog_cc_stdc=$ac_arg
2883 break
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 fi
2889 rm -f conftest.err conftest.$ac_objext
2890 done
2891 rm -f conftest.$ac_ext conftest.$ac_objext
2892 CC=$ac_save_CC
2893
2894 fi
2895
2896 case "x$ac_cv_prog_cc_stdc" in
2897   x|xno)
2898     echo "$as_me:$LINENO: result: none needed" >&5
2899 echo "${ECHO_T}none needed" >&6 ;;
2900   *)
2901     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2902 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2903     CC="$CC $ac_cv_prog_cc_stdc" ;;
2904 esac
2905
2906 # Some people use a C++ compiler to compile C.  Since we use `exit',
2907 # in C++ we need to declare it.  In case someone uses the same compiler
2908 # for both compiling C and C++ we need to have the C++ compiler decide
2909 # the declaration of exit, since it's the most demanding environment.
2910 cat >conftest.$ac_ext <<_ACEOF
2911 #ifndef __cplusplus
2912   choke me
2913 #endif
2914 _ACEOF
2915 rm -f conftest.$ac_objext
2916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2917   (eval $ac_compile) 2>conftest.er1
2918   ac_status=$?
2919   grep -v '^ *+' conftest.er1 >conftest.err
2920   rm -f conftest.er1
2921   cat conftest.err >&5
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } &&
2924          { ac_try='test -z "$ac_c_werror_flag"
2925                          || test ! -s conftest.err'
2926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927   (eval $ac_try) 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }; } &&
2931          { ac_try='test -s conftest.$ac_objext'
2932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933   (eval $ac_try) 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }; }; then
2937   for ac_declaration in \
2938    '' \
2939    'extern "C" void std::exit (int) throw (); using std::exit;' \
2940    'extern "C" void std::exit (int); using std::exit;' \
2941    'extern "C" void exit (int) throw ();' \
2942    'extern "C" void exit (int);' \
2943    'void exit (int);'
2944 do
2945   cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h.  */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h.  */
2951 $ac_declaration
2952 #include <stdlib.h>
2953 int
2954 main ()
2955 {
2956 exit (42);
2957   ;
2958   return 0;
2959 }
2960 _ACEOF
2961 rm -f conftest.$ac_objext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963   (eval $ac_compile) 2>conftest.er1
2964   ac_status=$?
2965   grep -v '^ *+' conftest.er1 >conftest.err
2966   rm -f conftest.er1
2967   cat conftest.err >&5
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); } &&
2970          { ac_try='test -z "$ac_c_werror_flag"
2971                          || test ! -s conftest.err'
2972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973   (eval $ac_try) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; } &&
2977          { ac_try='test -s conftest.$ac_objext'
2978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979   (eval $ac_try) 2>&5
2980   ac_status=$?
2981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); }; }; then
2983   :
2984 else
2985   echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 continue
2989 fi
2990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991   cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h.  */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h.  */
2997 $ac_declaration
2998 int
2999 main ()
3000 {
3001 exit (42);
3002   ;
3003   return 0;
3004 }
3005 _ACEOF
3006 rm -f conftest.$ac_objext
3007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008   (eval $ac_compile) 2>conftest.er1
3009   ac_status=$?
3010   grep -v '^ *+' conftest.er1 >conftest.err
3011   rm -f conftest.er1
3012   cat conftest.err >&5
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); } &&
3015          { ac_try='test -z "$ac_c_werror_flag"
3016                          || test ! -s conftest.err'
3017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018   (eval $ac_try) 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }; } &&
3022          { ac_try='test -s conftest.$ac_objext'
3023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024   (eval $ac_try) 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }; }; then
3028   break
3029 else
3030   echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 fi
3034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3035 done
3036 rm -f conftest*
3037 if test -n "$ac_declaration"; then
3038   echo '#ifdef __cplusplus' >>confdefs.h
3039   echo $ac_declaration      >>confdefs.h
3040   echo '#endif'             >>confdefs.h
3041 fi
3042
3043 else
3044   echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 fi
3048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3049 ac_ext=c
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 DEPDIR="${am__leading_dot}deps"
3055
3056           ac_config_commands="$ac_config_commands depfiles"
3057
3058
3059 am_make=${MAKE-make}
3060 cat > confinc << 'END'
3061 am__doit:
3062         @echo done
3063 .PHONY: am__doit
3064 END
3065 # If we don't find an include directive, just comment out the code.
3066 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3067 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3068 am__include="#"
3069 am__quote=
3070 _am_result=none
3071 # First try GNU make style include.
3072 echo "include confinc" > confmf
3073 # We grep out `Entering directory' and `Leaving directory'
3074 # messages which can occur if `w' ends up in MAKEFLAGS.
3075 # In particular we don't look at `^make:' because GNU make might
3076 # be invoked under some other name (usually "gmake"), in which
3077 # case it prints its new name instead of `make'.
3078 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3079    am__include=include
3080    am__quote=
3081    _am_result=GNU
3082 fi
3083 # Now try BSD make style include.
3084 if test "$am__include" = "#"; then
3085    echo '.include "confinc"' > confmf
3086    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3087       am__include=.include
3088       am__quote="\""
3089       _am_result=BSD
3090    fi
3091 fi
3092
3093
3094 echo "$as_me:$LINENO: result: $_am_result" >&5
3095 echo "${ECHO_T}$_am_result" >&6
3096 rm -f confinc confmf
3097
3098 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3099 if test "${enable_dependency_tracking+set}" = set; then
3100   enableval="$enable_dependency_tracking"
3101
3102 fi;
3103 if test "x$enable_dependency_tracking" != xno; then
3104   am_depcomp="$ac_aux_dir/depcomp"
3105   AMDEPBACKSLASH='\'
3106 fi
3107
3108
3109 if test "x$enable_dependency_tracking" != xno; then
3110   AMDEP_TRUE=
3111   AMDEP_FALSE='#'
3112 else
3113   AMDEP_TRUE='#'
3114   AMDEP_FALSE=
3115 fi
3116
3117
3118
3119
3120 depcc="$CC"   am_compiler_list=
3121
3122 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3123 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3124 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3128   # We make a subdir and do the tests there.  Otherwise we can end up
3129   # making bogus files that we don't know about and never remove.  For
3130   # instance it was reported that on HP-UX the gcc test will end up
3131   # making a dummy file named `D' -- because `-MD' means `put the output
3132   # in D'.
3133   mkdir conftest.dir
3134   # Copy depcomp to subdir because otherwise we won't find it if we're
3135   # using a relative directory.
3136   cp "$am_depcomp" conftest.dir
3137   cd conftest.dir
3138   # We will build objects and dependencies in a subdirectory because
3139   # it helps to detect inapplicable dependency modes.  For instance
3140   # both Tru64's cc and ICC support -MD to output dependencies as a
3141   # side effect of compilation, but ICC will put the dependencies in
3142   # the current directory while Tru64 will put them in the object
3143   # directory.
3144   mkdir sub
3145
3146   am_cv_CC_dependencies_compiler_type=none
3147   if test "$am_compiler_list" = ""; then
3148      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3149   fi
3150   for depmode in $am_compiler_list; do
3151     # Setup a source with many dependencies, because some compilers
3152     # like to wrap large dependency lists on column 80 (with \), and
3153     # we should not choose a depcomp mode which is confused by this.
3154     #
3155     # We need to recreate these files for each test, as the compiler may
3156     # overwrite some of them when testing with obscure command lines.
3157     # This happens at least with the AIX C compiler.
3158     : > sub/conftest.c
3159     for i in 1 2 3 4 5 6; do
3160       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3161       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3162       # Solaris 8's {/usr,}/bin/sh.
3163       touch sub/conftst$i.h
3164     done
3165     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3166
3167     case $depmode in
3168     nosideeffect)
3169       # after this tag, mechanisms are not by side-effect, so they'll
3170       # only be used when explicitly requested
3171       if test "x$enable_dependency_tracking" = xyes; then
3172         continue
3173       else
3174         break
3175       fi
3176       ;;
3177     none) break ;;
3178     esac
3179     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3180     # mode.  It turns out that the SunPro C++ compiler does not properly
3181     # handle `-M -o', and we need to detect this.
3182     if depmode=$depmode \
3183        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3184        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3185        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3186          >/dev/null 2>conftest.err &&
3187        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3188        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3189        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3190       # icc doesn't choke on unknown options, it will just issue warnings
3191       # or remarks (even with -Werror).  So we grep stderr for any message
3192       # that says an option was ignored or not supported.
3193       # When given -MP, icc 7.0 and 7.1 complain thusly:
3194       #   icc: Command line warning: ignoring option '-M'; no argument required
3195       # The diagnosis changed in icc 8.0:
3196       #   icc: Command line remark: option '-MP' not supported
3197       if (grep 'ignoring option' conftest.err ||
3198           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3199         am_cv_CC_dependencies_compiler_type=$depmode
3200         break
3201       fi
3202     fi
3203   done
3204
3205   cd ..
3206   rm -rf conftest.dir
3207 else
3208   am_cv_CC_dependencies_compiler_type=none
3209 fi
3210
3211 fi
3212 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3213 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3214 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3215
3216
3217
3218 if
3219   test "x$enable_dependency_tracking" != xno \
3220   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3221   am__fastdepCC_TRUE=
3222   am__fastdepCC_FALSE='#'
3223 else
3224   am__fastdepCC_TRUE='#'
3225   am__fastdepCC_FALSE=
3226 fi
3227
3228
3229
3230
3231
3232
3233 if test "x$GCC" != "xyes"; then
3234   { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3235 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3236    { (exit 1); exit 1; }; }
3237 fi
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3244 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3245 # On Suns, sometimes $CPP names a directory.
3246 if test -n "$CPP" && test -d "$CPP"; then
3247   CPP=
3248 fi
3249 if test -z "$CPP"; then
3250   if test "${ac_cv_prog_CPP+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253       # Double quotes because CPP needs to be expanded
3254     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3255     do
3256       ac_preproc_ok=false
3257 for ac_c_preproc_warn_flag in '' yes
3258 do
3259   # Use a header file that comes with gcc, so configuring glibc
3260   # with a fresh cross-compiler works.
3261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262   # <limits.h> exists even on freestanding compilers.
3263   # On the NeXT, cc -E runs the code through the compiler's parser,
3264   # not just through cpp. "Syntax error" is here to catch this case.
3265   cat >conftest.$ac_ext <<_ACEOF
3266 /* confdefs.h.  */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h.  */
3271 #ifdef __STDC__
3272 # include <limits.h>
3273 #else
3274 # include <assert.h>
3275 #endif
3276                      Syntax error
3277 _ACEOF
3278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } >/dev/null; then
3286   if test -s conftest.err; then
3287     ac_cpp_err=$ac_c_preproc_warn_flag
3288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3289   else
3290     ac_cpp_err=
3291   fi
3292 else
3293   ac_cpp_err=yes
3294 fi
3295 if test -z "$ac_cpp_err"; then
3296   :
3297 else
3298   echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301   # Broken: fails on valid input.
3302 continue
3303 fi
3304 rm -f conftest.err conftest.$ac_ext
3305
3306   # OK, works on sane cases.  Now check whether non-existent headers
3307   # can be detected and how.
3308   cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314 #include <ac_nonexistent.h>
3315 _ACEOF
3316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } >/dev/null; then
3324   if test -s conftest.err; then
3325     ac_cpp_err=$ac_c_preproc_warn_flag
3326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3327   else
3328     ac_cpp_err=
3329   fi
3330 else
3331   ac_cpp_err=yes
3332 fi
3333 if test -z "$ac_cpp_err"; then
3334   # Broken: success on invalid input.
3335 continue
3336 else
3337   echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340   # Passes both tests.
3341 ac_preproc_ok=:
3342 break
3343 fi
3344 rm -f conftest.err conftest.$ac_ext
3345
3346 done
3347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3348 rm -f conftest.err conftest.$ac_ext
3349 if $ac_preproc_ok; then
3350   break
3351 fi
3352
3353     done
3354     ac_cv_prog_CPP=$CPP
3355
3356 fi
3357   CPP=$ac_cv_prog_CPP
3358 else
3359   ac_cv_prog_CPP=$CPP
3360 fi
3361 echo "$as_me:$LINENO: result: $CPP" >&5
3362 echo "${ECHO_T}$CPP" >&6
3363 ac_preproc_ok=false
3364 for ac_c_preproc_warn_flag in '' yes
3365 do
3366   # Use a header file that comes with gcc, so configuring glibc
3367   # with a fresh cross-compiler works.
3368   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369   # <limits.h> exists even on freestanding compilers.
3370   # On the NeXT, cc -E runs the code through the compiler's parser,
3371   # not just through cpp. "Syntax error" is here to catch this case.
3372   cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h.  */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h.  */
3378 #ifdef __STDC__
3379 # include <limits.h>
3380 #else
3381 # include <assert.h>
3382 #endif
3383                      Syntax error
3384 _ACEOF
3385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3387   ac_status=$?
3388   grep -v '^ *+' conftest.er1 >conftest.err
3389   rm -f conftest.er1
3390   cat conftest.err >&5
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); } >/dev/null; then
3393   if test -s conftest.err; then
3394     ac_cpp_err=$ac_c_preproc_warn_flag
3395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3396   else
3397     ac_cpp_err=
3398   fi
3399 else
3400   ac_cpp_err=yes
3401 fi
3402 if test -z "$ac_cpp_err"; then
3403   :
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408   # Broken: fails on valid input.
3409 continue
3410 fi
3411 rm -f conftest.err conftest.$ac_ext
3412
3413   # OK, works on sane cases.  Now check whether non-existent headers
3414   # can be detected and how.
3415   cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421 #include <ac_nonexistent.h>
3422 _ACEOF
3423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3425   ac_status=$?
3426   grep -v '^ *+' conftest.er1 >conftest.err
3427   rm -f conftest.er1
3428   cat conftest.err >&5
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); } >/dev/null; then
3431   if test -s conftest.err; then
3432     ac_cpp_err=$ac_c_preproc_warn_flag
3433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3434   else
3435     ac_cpp_err=
3436   fi
3437 else
3438   ac_cpp_err=yes
3439 fi
3440 if test -z "$ac_cpp_err"; then
3441   # Broken: success on invalid input.
3442 continue
3443 else
3444   echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447   # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3450 fi
3451 rm -f conftest.err conftest.$ac_ext
3452
3453 done
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.$ac_ext
3456 if $ac_preproc_ok; then
3457   :
3458 else
3459   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3460 See \`config.log' for more details." >&5
3461 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3462 See \`config.log' for more details." >&2;}
3463    { (exit 1); exit 1; }; }
3464 fi
3465
3466 ac_ext=c
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471
3472
3473 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3474 # symbol interposition.  We disable shared libraries for these.
3475 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3476 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3477
3478 cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h.  */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h.  */
3484
3485 #define _GNU_SOURCE
3486 #include <dlfcn.h>
3487
3488 int
3489 main ()
3490 {
3491 void *foo = dlsym (RTLD_NEXT, "exit");
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498   (eval $ac_compile) 2>conftest.er1
3499   ac_status=$?
3500   grep -v '^ *+' conftest.er1 >conftest.err
3501   rm -f conftest.er1
3502   cat conftest.err >&5
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } &&
3505          { ac_try='test -z "$ac_c_werror_flag"
3506                          || test ! -s conftest.err'
3507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508   (eval $ac_try) 2>&5
3509   ac_status=$?
3510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511   (exit $ac_status); }; } &&
3512          { ac_try='test -s conftest.$ac_objext'
3513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514   (eval $ac_try) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); }; }; then
3518   echo "$as_me:$LINENO: result: yes" >&5
3519 echo "${ECHO_T}yes" >&6
3520 else
3521   echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524 echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6
3526 enable_shared=no
3527 fi
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529
3530
3531 echo "$as_me:$LINENO: checking for egrep" >&5
3532 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3533 if test "${ac_cv_prog_egrep+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3537     then ac_cv_prog_egrep='grep -E'
3538     else ac_cv_prog_egrep='egrep'
3539     fi
3540 fi
3541 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3542 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3543  EGREP=$ac_cv_prog_egrep
3544
3545
3546 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3547 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3548 if test "${ac_cv_header_stdc+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557 #include <stdlib.h>
3558 #include <stdarg.h>
3559 #include <string.h>
3560 #include <float.h>
3561
3562 int
3563 main ()
3564 {
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572   (eval $ac_compile) 2>conftest.er1
3573   ac_status=$?
3574   grep -v '^ *+' conftest.er1 >conftest.err
3575   rm -f conftest.er1
3576   cat conftest.err >&5
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); } &&
3579          { ac_try='test -z "$ac_c_werror_flag"
3580                          || test ! -s conftest.err'
3581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582   (eval $ac_try) 2>&5
3583   ac_status=$?
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); }; } &&
3586          { ac_try='test -s conftest.$ac_objext'
3587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588   (eval $ac_try) 2>&5
3589   ac_status=$?
3590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591   (exit $ac_status); }; }; then
3592   ac_cv_header_stdc=yes
3593 else
3594   echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 ac_cv_header_stdc=no
3598 fi
3599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3600
3601 if test $ac_cv_header_stdc = yes; then
3602   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3603   cat >conftest.$ac_ext <<_ACEOF
3604 /* confdefs.h.  */
3605 _ACEOF
3606 cat confdefs.h >>conftest.$ac_ext
3607 cat >>conftest.$ac_ext <<_ACEOF
3608 /* end confdefs.h.  */
3609 #include <string.h>
3610
3611 _ACEOF
3612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3613   $EGREP "memchr" >/dev/null 2>&1; then
3614   :
3615 else
3616   ac_cv_header_stdc=no
3617 fi
3618 rm -f conftest*
3619
3620 fi
3621
3622 if test $ac_cv_header_stdc = yes; then
3623   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3624   cat >conftest.$ac_ext <<_ACEOF
3625 /* confdefs.h.  */
3626 _ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h.  */
3630 #include <stdlib.h>
3631
3632 _ACEOF
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634   $EGREP "free" >/dev/null 2>&1; then
3635   :
3636 else
3637   ac_cv_header_stdc=no
3638 fi
3639 rm -f conftest*
3640
3641 fi
3642
3643 if test $ac_cv_header_stdc = yes; then
3644   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3645   if test "$cross_compiling" = yes; then
3646   :
3647 else
3648   cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h.  */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h.  */
3654 #include <ctype.h>
3655 #if ((' ' & 0x0FF) == 0x020)
3656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3658 #else
3659 # define ISLOWER(c) \
3660                    (('a' <= (c) && (c) <= 'i') \
3661                      || ('j' <= (c) && (c) <= 'r') \
3662                      || ('s' <= (c) && (c) <= 'z'))
3663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3664 #endif
3665
3666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3667 int
3668 main ()
3669 {
3670   int i;
3671   for (i = 0; i < 256; i++)
3672     if (XOR (islower (i), ISLOWER (i))
3673         || toupper (i) != TOUPPER (i))
3674       exit(2);
3675   exit (0);
3676 }
3677 _ACEOF
3678 rm -f conftest$ac_exeext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3680   (eval $ac_link) 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685   (eval $ac_try) 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); }; }; then
3689   :
3690 else
3691   echo "$as_me: program exited with status $ac_status" >&5
3692 echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695 ( exit $ac_status )
3696 ac_cv_header_stdc=no
3697 fi
3698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3699 fi
3700 fi
3701 fi
3702 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3703 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3704 if test $ac_cv_header_stdc = yes; then
3705
3706 cat >>confdefs.h <<\_ACEOF
3707 #define STDC_HEADERS 1
3708 _ACEOF
3709
3710 fi
3711
3712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3723                   inttypes.h stdint.h unistd.h
3724 do
3725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3726 echo "$as_me:$LINENO: checking for $ac_header" >&5
3727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h.  */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
3736 /* end confdefs.h.  */
3737 $ac_includes_default
3738
3739 #include <$ac_header>
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743   (eval $ac_compile) 2>conftest.er1
3744   ac_status=$?
3745   grep -v '^ *+' conftest.er1 >conftest.err
3746   rm -f conftest.er1
3747   cat conftest.err >&5
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); } &&
3750          { ac_try='test -z "$ac_c_werror_flag"
3751                          || test ! -s conftest.err'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; } &&
3757          { ac_try='test -s conftest.$ac_objext'
3758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759   (eval $ac_try) 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }; }; then
3763   eval "$as_ac_Header=yes"
3764 else
3765   echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3767
3768 eval "$as_ac_Header=no"
3769 fi
3770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3771 fi
3772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3775   cat >>confdefs.h <<_ACEOF
3776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3777 _ACEOF
3778
3779 fi
3780
3781 done
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
3804   netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
3805   sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
3806 do
3807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3809   echo "$as_me:$LINENO: checking for $ac_header" >&5
3810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 fi
3814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3816 else
3817   # Is the header compilable?
3818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h.  */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h.  */
3826 $ac_includes_default
3827 #include <$ac_header>
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831   (eval $ac_compile) 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } &&
3838          { ac_try='test -z "$ac_c_werror_flag"
3839                          || test ! -s conftest.err'
3840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841   (eval $ac_try) 2>&5
3842   ac_status=$?
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); }; } &&
3845          { ac_try='test -s conftest.$ac_objext'
3846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847   (eval $ac_try) 2>&5
3848   ac_status=$?
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); }; }; then
3851   ac_header_compiler=yes
3852 else
3853   echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 ac_header_compiler=no
3857 fi
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3860 echo "${ECHO_T}$ac_header_compiler" >&6
3861
3862 # Is the header present?
3863 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h.  */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h.  */
3871 #include <$ac_header>
3872 _ACEOF
3873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3874   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3875   ac_status=$?
3876   grep -v '^ *+' conftest.er1 >conftest.err
3877   rm -f conftest.er1
3878   cat conftest.err >&5
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); } >/dev/null; then
3881   if test -s conftest.err; then
3882     ac_cpp_err=$ac_c_preproc_warn_flag
3883     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3884   else
3885     ac_cpp_err=
3886   fi
3887 else
3888   ac_cpp_err=yes
3889 fi
3890 if test -z "$ac_cpp_err"; then
3891   ac_header_preproc=yes
3892 else
3893   echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896   ac_header_preproc=no
3897 fi
3898 rm -f conftest.err conftest.$ac_ext
3899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3900 echo "${ECHO_T}$ac_header_preproc" >&6
3901
3902 # So?  What about this header?
3903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3904   yes:no: )
3905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3909     ac_header_preproc=yes
3910     ;;
3911   no:yes:* )
3912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3914     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3915 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3916     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3918     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3919 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3922     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3924     (
3925       cat <<\_ASBOX
3926 ## ------------------------------------- ##
3927 ## Report this to the libmudflap lists.  ##
3928 ## ------------------------------------- ##
3929 _ASBOX
3930     ) |
3931       sed "s/^/$as_me: WARNING:     /" >&2
3932     ;;
3933 esac
3934 echo "$as_me:$LINENO: checking for $ac_header" >&5
3935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   eval "$as_ac_Header=\$ac_header_preproc"
3940 fi
3941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3942 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3943
3944 fi
3945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3946   cat >>confdefs.h <<_ACEOF
3947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3948 _ACEOF
3949
3950 fi
3951
3952 done
3953
3954
3955
3956
3957
3958
3959 for ac_func in backtrace backtrace_symbols gettimeofday signal
3960 do
3961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3962 echo "$as_me:$LINENO: checking for $ac_func" >&5
3963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3964 if eval "test \"\${$as_ac_var+set}\" = set"; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h.  */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h.  */
3973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3975 #define $ac_func innocuous_$ac_func
3976
3977 /* System header to define __stub macros and hopefully few prototypes,
3978     which can conflict with char $ac_func (); below.
3979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3980     <limits.h> exists even on freestanding compilers.  */
3981
3982 #ifdef __STDC__
3983 # include <limits.h>
3984 #else
3985 # include <assert.h>
3986 #endif
3987
3988 #undef $ac_func
3989
3990 /* Override any gcc2 internal prototype to avoid an error.  */
3991 #ifdef __cplusplus
3992 extern "C"
3993 {
3994 #endif
3995 /* We use char because int might match the return type of a gcc2
3996    builtin and then its argument prototype would still apply.  */
3997 char $ac_func ();
3998 /* The GNU C library defines this for functions which it implements
3999     to always fail with ENOSYS.  Some functions are actually named
4000     something starting with __ and the normal name is an alias.  */
4001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4002 choke me
4003 #else
4004 char (*f) () = $ac_func;
4005 #endif
4006 #ifdef __cplusplus
4007 }
4008 #endif
4009
4010 int
4011 main ()
4012 {
4013 return f != $ac_func;
4014   ;
4015   return 0;
4016 }
4017 _ACEOF
4018 rm -f conftest.$ac_objext conftest$ac_exeext
4019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4020   (eval $ac_link) 2>conftest.er1
4021   ac_status=$?
4022   grep -v '^ *+' conftest.er1 >conftest.err
4023   rm -f conftest.er1
4024   cat conftest.err >&5
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } &&
4027          { ac_try='test -z "$ac_c_werror_flag"
4028                          || test ! -s conftest.err'
4029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030   (eval $ac_try) 2>&5
4031   ac_status=$?
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); }; } &&
4034          { ac_try='test -s conftest$ac_exeext'
4035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036   (eval $ac_try) 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }; }; then
4040   eval "$as_ac_var=yes"
4041 else
4042   echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 eval "$as_ac_var=no"
4046 fi
4047 rm -f conftest.err conftest.$ac_objext \
4048       conftest$ac_exeext conftest.$ac_ext
4049 fi
4050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4052 if test `eval echo '${'$as_ac_var'}'` = yes; then
4053   cat >>confdefs.h <<_ACEOF
4054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4055 _ACEOF
4056
4057 fi
4058 done
4059
4060
4061
4062
4063
4064
4065 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
4066 do
4067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4068 echo "$as_me:$LINENO: checking for $ac_func" >&5
4069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4070 if eval "test \"\${$as_ac_var+set}\" = set"; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4081 #define $ac_func innocuous_$ac_func
4082
4083 /* System header to define __stub macros and hopefully few prototypes,
4084     which can conflict with char $ac_func (); below.
4085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086     <limits.h> exists even on freestanding compilers.  */
4087
4088 #ifdef __STDC__
4089 # include <limits.h>
4090 #else
4091 # include <assert.h>
4092 #endif
4093
4094 #undef $ac_func
4095
4096 /* Override any gcc2 internal prototype to avoid an error.  */
4097 #ifdef __cplusplus
4098 extern "C"
4099 {
4100 #endif
4101 /* We use char because int might match the return type of a gcc2
4102    builtin and then its argument prototype would still apply.  */
4103 char $ac_func ();
4104 /* The GNU C library defines this for functions which it implements
4105     to always fail with ENOSYS.  Some functions are actually named
4106     something starting with __ and the normal name is an alias.  */
4107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4108 choke me
4109 #else
4110 char (*f) () = $ac_func;
4111 #endif
4112 #ifdef __cplusplus
4113 }
4114 #endif
4115
4116 int
4117 main ()
4118 {
4119 return f != $ac_func;
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 rm -f conftest.$ac_objext conftest$ac_exeext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4126   (eval $ac_link) 2>conftest.er1
4127   ac_status=$?
4128   grep -v '^ *+' conftest.er1 >conftest.err
4129   rm -f conftest.er1
4130   cat conftest.err >&5
4131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); } &&
4133          { ac_try='test -z "$ac_c_werror_flag"
4134                          || test ! -s conftest.err'
4135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136   (eval $ac_try) 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); }; } &&
4140          { ac_try='test -s conftest$ac_exeext'
4141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142   (eval $ac_try) 2>&5
4143   ac_status=$?
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); }; }; then
4146   eval "$as_ac_var=yes"
4147 else
4148   echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151 eval "$as_ac_var=no"
4152 fi
4153 rm -f conftest.err conftest.$ac_objext \
4154       conftest$ac_exeext conftest.$ac_ext
4155 fi
4156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4158 if test `eval echo '${'$as_ac_var'}'` = yes; then
4159   cat >>confdefs.h <<_ACEOF
4160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4161 _ACEOF
4162
4163 fi
4164 done
4165
4166
4167
4168
4169
4170 for ac_func in setbuf setbuffer setlinebuf setvbuf
4171 do
4172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4173 echo "$as_me:$LINENO: checking for $ac_func" >&5
4174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4175 if eval "test \"\${$as_ac_var+set}\" = set"; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h.  */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h.  */
4184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4186 #define $ac_func innocuous_$ac_func
4187
4188 /* System header to define __stub macros and hopefully few prototypes,
4189     which can conflict with char $ac_func (); below.
4190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4191     <limits.h> exists even on freestanding compilers.  */
4192
4193 #ifdef __STDC__
4194 # include <limits.h>
4195 #else
4196 # include <assert.h>
4197 #endif
4198
4199 #undef $ac_func
4200
4201 /* Override any gcc2 internal prototype to avoid an error.  */
4202 #ifdef __cplusplus
4203 extern "C"
4204 {
4205 #endif
4206 /* We use char because int might match the return type of a gcc2
4207    builtin and then its argument prototype would still apply.  */
4208 char $ac_func ();
4209 /* The GNU C library defines this for functions which it implements
4210     to always fail with ENOSYS.  Some functions are actually named
4211     something starting with __ and the normal name is an alias.  */
4212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4213 choke me
4214 #else
4215 char (*f) () = $ac_func;
4216 #endif
4217 #ifdef __cplusplus
4218 }
4219 #endif
4220
4221 int
4222 main ()
4223 {
4224 return f != $ac_func;
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231   (eval $ac_link) 2>conftest.er1
4232   ac_status=$?
4233   grep -v '^ *+' conftest.er1 >conftest.err
4234   rm -f conftest.er1
4235   cat conftest.err >&5
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } &&
4238          { ac_try='test -z "$ac_c_werror_flag"
4239                          || test ! -s conftest.err'
4240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241   (eval $ac_try) 2>&5
4242   ac_status=$?
4243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244   (exit $ac_status); }; } &&
4245          { ac_try='test -s conftest$ac_exeext'
4246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247   (eval $ac_try) 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); }; }; then
4251   eval "$as_ac_var=yes"
4252 else
4253   echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256 eval "$as_ac_var=no"
4257 fi
4258 rm -f conftest.err conftest.$ac_objext \
4259       conftest$ac_exeext conftest.$ac_ext
4260 fi
4261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4263 if test `eval echo '${'$as_ac_var'}'` = yes; then
4264   cat >>confdefs.h <<_ACEOF
4265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4266 _ACEOF
4267
4268 fi
4269 done
4270
4271
4272
4273
4274
4275
4276 for ac_func in strnlen memrchr strncpy memmem sethostname
4277 do
4278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4279 echo "$as_me:$LINENO: checking for $ac_func" >&5
4280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4281 if eval "test \"\${$as_ac_var+set}\" = set"; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h.  */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h.  */
4290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4292 #define $ac_func innocuous_$ac_func
4293
4294 /* System header to define __stub macros and hopefully few prototypes,
4295     which can conflict with char $ac_func (); below.
4296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4297     <limits.h> exists even on freestanding compilers.  */
4298
4299 #ifdef __STDC__
4300 # include <limits.h>
4301 #else
4302 # include <assert.h>
4303 #endif
4304
4305 #undef $ac_func
4306
4307 /* Override any gcc2 internal prototype to avoid an error.  */
4308 #ifdef __cplusplus
4309 extern "C"
4310 {
4311 #endif
4312 /* We use char because int might match the return type of a gcc2
4313    builtin and then its argument prototype would still apply.  */
4314 char $ac_func ();
4315 /* The GNU C library defines this for functions which it implements
4316     to always fail with ENOSYS.  Some functions are actually named
4317     something starting with __ and the normal name is an alias.  */
4318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4319 choke me
4320 #else
4321 char (*f) () = $ac_func;
4322 #endif
4323 #ifdef __cplusplus
4324 }
4325 #endif
4326
4327 int
4328 main ()
4329 {
4330 return f != $ac_func;
4331   ;
4332   return 0;
4333 }
4334 _ACEOF
4335 rm -f conftest.$ac_objext conftest$ac_exeext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4337   (eval $ac_link) 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } &&
4344          { ac_try='test -z "$ac_c_werror_flag"
4345                          || test ! -s conftest.err'
4346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347   (eval $ac_try) 2>&5
4348   ac_status=$?
4349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350   (exit $ac_status); }; } &&
4351          { ac_try='test -s conftest$ac_exeext'
4352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353   (eval $ac_try) 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }; }; then
4357   eval "$as_ac_var=yes"
4358 else
4359   echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 eval "$as_ac_var=no"
4363 fi
4364 rm -f conftest.err conftest.$ac_objext \
4365       conftest$ac_exeext conftest.$ac_ext
4366 fi
4367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4369 if test `eval echo '${'$as_ac_var'}'` = yes; then
4370   cat >>confdefs.h <<_ACEOF
4371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4372 _ACEOF
4373
4374 fi
4375 done
4376
4377
4378
4379
4380 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4381 do
4382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4383 echo "$as_me:$LINENO: checking for $ac_func" >&5
4384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4385 if eval "test \"\${$as_ac_var+set}\" = set"; then
4386   echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388   cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h.  */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h.  */
4394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4396 #define $ac_func innocuous_$ac_func
4397
4398 /* System header to define __stub macros and hopefully few prototypes,
4399     which can conflict with char $ac_func (); below.
4400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401     <limits.h> exists even on freestanding compilers.  */
4402
4403 #ifdef __STDC__
4404 # include <limits.h>
4405 #else
4406 # include <assert.h>
4407 #endif
4408
4409 #undef $ac_func
4410
4411 /* Override any gcc2 internal prototype to avoid an error.  */
4412 #ifdef __cplusplus
4413 extern "C"
4414 {
4415 #endif
4416 /* We use char because int might match the return type of a gcc2
4417    builtin and then its argument prototype would still apply.  */
4418 char $ac_func ();
4419 /* The GNU C library defines this for functions which it implements
4420     to always fail with ENOSYS.  Some functions are actually named
4421     something starting with __ and the normal name is an alias.  */
4422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4423 choke me
4424 #else
4425 char (*f) () = $ac_func;
4426 #endif
4427 #ifdef __cplusplus
4428 }
4429 #endif
4430
4431 int
4432 main ()
4433 {
4434 return f != $ac_func;
4435   ;
4436   return 0;
4437 }
4438 _ACEOF
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441   (eval $ac_link) 2>conftest.er1
4442   ac_status=$?
4443   grep -v '^ *+' conftest.er1 >conftest.err
4444   rm -f conftest.er1
4445   cat conftest.err >&5
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); } &&
4448          { ac_try='test -z "$ac_c_werror_flag"
4449                          || test ! -s conftest.err'
4450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451   (eval $ac_try) 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); }; } &&
4455          { ac_try='test -s conftest$ac_exeext'
4456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457   (eval $ac_try) 2>&5
4458   ac_status=$?
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); }; }; then
4461   eval "$as_ac_var=yes"
4462 else
4463   echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4465
4466 eval "$as_ac_var=no"
4467 fi
4468 rm -f conftest.err conftest.$ac_objext \
4469       conftest$ac_exeext conftest.$ac_ext
4470 fi
4471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4473 if test `eval echo '${'$as_ac_var'}'` = yes; then
4474   cat >>confdefs.h <<_ACEOF
4475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4476 _ACEOF
4477
4478 fi
4479 done
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4490 do
4491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4492 echo "$as_me:$LINENO: checking for $ac_func" >&5
4493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4494 if eval "test \"\${$as_ac_var+set}\" = set"; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h.  */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h.  */
4503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4505 #define $ac_func innocuous_$ac_func
4506
4507 /* System header to define __stub macros and hopefully few prototypes,
4508     which can conflict with char $ac_func (); below.
4509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510     <limits.h> exists even on freestanding compilers.  */
4511
4512 #ifdef __STDC__
4513 # include <limits.h>
4514 #else
4515 # include <assert.h>
4516 #endif
4517
4518 #undef $ac_func
4519
4520 /* Override any gcc2 internal prototype to avoid an error.  */
4521 #ifdef __cplusplus
4522 extern "C"
4523 {
4524 #endif
4525 /* We use char because int might match the return type of a gcc2
4526    builtin and then its argument prototype would still apply.  */
4527 char $ac_func ();
4528 /* The GNU C library defines this for functions which it implements
4529     to always fail with ENOSYS.  Some functions are actually named
4530     something starting with __ and the normal name is an alias.  */
4531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4532 choke me
4533 #else
4534 char (*f) () = $ac_func;
4535 #endif
4536 #ifdef __cplusplus
4537 }
4538 #endif
4539
4540 int
4541 main ()
4542 {
4543 return f != $ac_func;
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550   (eval $ac_link) 2>conftest.er1
4551   ac_status=$?
4552   grep -v '^ *+' conftest.er1 >conftest.err
4553   rm -f conftest.er1
4554   cat conftest.err >&5
4555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556   (exit $ac_status); } &&
4557          { ac_try='test -z "$ac_c_werror_flag"
4558                          || test ! -s conftest.err'
4559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560   (eval $ac_try) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; } &&
4564          { ac_try='test -s conftest$ac_exeext'
4565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566   (eval $ac_try) 2>&5
4567   ac_status=$?
4568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); }; }; then
4570   eval "$as_ac_var=yes"
4571 else
4572   echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4574
4575 eval "$as_ac_var=no"
4576 fi
4577 rm -f conftest.err conftest.$ac_objext \
4578       conftest$ac_exeext conftest.$ac_ext
4579 fi
4580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4582 if test `eval echo '${'$as_ac_var'}'` = yes; then
4583   cat >>confdefs.h <<_ACEOF
4584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4585 _ACEOF
4586
4587 fi
4588 done
4589
4590
4591
4592
4593
4594
4595 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4596 do
4597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4598 echo "$as_me:$LINENO: checking for $ac_func" >&5
4599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4600 if eval "test \"\${$as_ac_var+set}\" = set"; then
4601   echo $ECHO_N "(cached) $ECHO_C" >&6
4602 else
4603   cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h.  */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h.  */
4609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4611 #define $ac_func innocuous_$ac_func
4612
4613 /* System header to define __stub macros and hopefully few prototypes,
4614     which can conflict with char $ac_func (); below.
4615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4616     <limits.h> exists even on freestanding compilers.  */
4617
4618 #ifdef __STDC__
4619 # include <limits.h>
4620 #else
4621 # include <assert.h>
4622 #endif
4623
4624 #undef $ac_func
4625
4626 /* Override any gcc2 internal prototype to avoid an error.  */
4627 #ifdef __cplusplus
4628 extern "C"
4629 {
4630 #endif
4631 /* We use char because int might match the return type of a gcc2
4632    builtin and then its argument prototype would still apply.  */
4633 char $ac_func ();
4634 /* The GNU C library defines this for functions which it implements
4635     to always fail with ENOSYS.  Some functions are actually named
4636     something starting with __ and the normal name is an alias.  */
4637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4638 choke me
4639 #else
4640 char (*f) () = $ac_func;
4641 #endif
4642 #ifdef __cplusplus
4643 }
4644 #endif
4645
4646 int
4647 main ()
4648 {
4649 return f != $ac_func;
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext conftest$ac_exeext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656   (eval $ac_link) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } &&
4663          { ac_try='test -z "$ac_c_werror_flag"
4664                          || test ! -s conftest.err'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; } &&
4670          { ac_try='test -s conftest$ac_exeext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   eval "$as_ac_var=yes"
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 eval "$as_ac_var=no"
4682 fi
4683 rm -f conftest.err conftest.$ac_objext \
4684       conftest$ac_exeext conftest.$ac_ext
4685 fi
4686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4688 if test `eval echo '${'$as_ac_var'}'` = yes; then
4689   cat >>confdefs.h <<_ACEOF
4690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4691 _ACEOF
4692
4693 fi
4694 done
4695
4696
4697
4698
4699
4700
4701 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4702 do
4703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4704 echo "$as_me:$LINENO: checking for $ac_func" >&5
4705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4706 if eval "test \"\${$as_ac_var+set}\" = set"; then
4707   echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709   cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4717 #define $ac_func innocuous_$ac_func
4718
4719 /* System header to define __stub macros and hopefully few prototypes,
4720     which can conflict with char $ac_func (); below.
4721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4722     <limits.h> exists even on freestanding compilers.  */
4723
4724 #ifdef __STDC__
4725 # include <limits.h>
4726 #else
4727 # include <assert.h>
4728 #endif
4729
4730 #undef $ac_func
4731
4732 /* Override any gcc2 internal prototype to avoid an error.  */
4733 #ifdef __cplusplus
4734 extern "C"
4735 {
4736 #endif
4737 /* We use char because int might match the return type of a gcc2
4738    builtin and then its argument prototype would still apply.  */
4739 char $ac_func ();
4740 /* The GNU C library defines this for functions which it implements
4741     to always fail with ENOSYS.  Some functions are actually named
4742     something starting with __ and the normal name is an alias.  */
4743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4744 choke me
4745 #else
4746 char (*f) () = $ac_func;
4747 #endif
4748 #ifdef __cplusplus
4749 }
4750 #endif
4751
4752 int
4753 main ()
4754 {
4755 return f != $ac_func;
4756   ;
4757   return 0;
4758 }
4759 _ACEOF
4760 rm -f conftest.$ac_objext conftest$ac_exeext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4762   (eval $ac_link) 2>conftest.er1
4763   ac_status=$?
4764   grep -v '^ *+' conftest.er1 >conftest.err
4765   rm -f conftest.er1
4766   cat conftest.err >&5
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); } &&
4769          { ac_try='test -z "$ac_c_werror_flag"
4770                          || test ! -s conftest.err'
4771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772   (eval $ac_try) 2>&5
4773   ac_status=$?
4774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775   (exit $ac_status); }; } &&
4776          { ac_try='test -s conftest$ac_exeext'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; }; then
4782   eval "$as_ac_var=yes"
4783 else
4784   echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 eval "$as_ac_var=no"
4788 fi
4789 rm -f conftest.err conftest.$ac_objext \
4790       conftest$ac_exeext conftest.$ac_ext
4791 fi
4792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4794 if test `eval echo '${'$as_ac_var'}'` = yes; then
4795   cat >>confdefs.h <<_ACEOF
4796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4797 _ACEOF
4798
4799 fi
4800 done
4801
4802
4803
4804
4805 for ac_func in getprotoent getprotobyname getprotobynumber
4806 do
4807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4808 echo "$as_me:$LINENO: checking for $ac_func" >&5
4809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4810 if eval "test \"\${$as_ac_var+set}\" = set"; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h.  */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h.  */
4819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4821 #define $ac_func innocuous_$ac_func
4822
4823 /* System header to define __stub macros and hopefully few prototypes,
4824     which can conflict with char $ac_func (); below.
4825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826     <limits.h> exists even on freestanding compilers.  */
4827
4828 #ifdef __STDC__
4829 # include <limits.h>
4830 #else
4831 # include <assert.h>
4832 #endif
4833
4834 #undef $ac_func
4835
4836 /* Override any gcc2 internal prototype to avoid an error.  */
4837 #ifdef __cplusplus
4838 extern "C"
4839 {
4840 #endif
4841 /* We use char because int might match the return type of a gcc2
4842    builtin and then its argument prototype would still apply.  */
4843 char $ac_func ();
4844 /* The GNU C library defines this for functions which it implements
4845     to always fail with ENOSYS.  Some functions are actually named
4846     something starting with __ and the normal name is an alias.  */
4847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4848 choke me
4849 #else
4850 char (*f) () = $ac_func;
4851 #endif
4852 #ifdef __cplusplus
4853 }
4854 #endif
4855
4856 int
4857 main ()
4858 {
4859 return f != $ac_func;
4860   ;
4861   return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.$ac_objext conftest$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866   (eval $ac_link) 2>conftest.er1
4867   ac_status=$?
4868   grep -v '^ *+' conftest.er1 >conftest.err
4869   rm -f conftest.er1
4870   cat conftest.err >&5
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); } &&
4873          { ac_try='test -z "$ac_c_werror_flag"
4874                          || test ! -s conftest.err'
4875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876   (eval $ac_try) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; } &&
4880          { ac_try='test -s conftest$ac_exeext'
4881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882   (eval $ac_try) 2>&5
4883   ac_status=$?
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); }; }; then
4886   eval "$as_ac_var=yes"
4887 else
4888   echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4890
4891 eval "$as_ac_var=no"
4892 fi
4893 rm -f conftest.err conftest.$ac_objext \
4894       conftest$ac_exeext conftest.$ac_ext
4895 fi
4896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4898 if test `eval echo '${'$as_ac_var'}'` = yes; then
4899   cat >>confdefs.h <<_ACEOF
4900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4901 _ACEOF
4902
4903 fi
4904 done
4905
4906
4907
4908
4909 for ac_func in getmntent setmntent addmntent
4910 do
4911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4912 echo "$as_me:$LINENO: checking for $ac_func" >&5
4913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4914 if eval "test \"\${$as_ac_var+set}\" = set"; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917   cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h.  */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h.  */
4923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4925 #define $ac_func innocuous_$ac_func
4926
4927 /* System header to define __stub macros and hopefully few prototypes,
4928     which can conflict with char $ac_func (); below.
4929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930     <limits.h> exists even on freestanding compilers.  */
4931
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4937
4938 #undef $ac_func
4939
4940 /* Override any gcc2 internal prototype to avoid an error.  */
4941 #ifdef __cplusplus
4942 extern "C"
4943 {
4944 #endif
4945 /* We use char because int might match the return type of a gcc2
4946    builtin and then its argument prototype would still apply.  */
4947 char $ac_func ();
4948 /* The GNU C library defines this for functions which it implements
4949     to always fail with ENOSYS.  Some functions are actually named
4950     something starting with __ and the normal name is an alias.  */
4951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4952 choke me
4953 #else
4954 char (*f) () = $ac_func;
4955 #endif
4956 #ifdef __cplusplus
4957 }
4958 #endif
4959
4960 int
4961 main ()
4962 {
4963 return f != $ac_func;
4964   ;
4965   return 0;
4966 }
4967 _ACEOF
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970   (eval $ac_link) 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } &&
4977          { ac_try='test -z "$ac_c_werror_flag"
4978                          || test ! -s conftest.err'
4979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980   (eval $ac_try) 2>&5
4981   ac_status=$?
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); }; } &&
4984          { ac_try='test -s conftest$ac_exeext'
4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986   (eval $ac_try) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; }; then
4990   eval "$as_ac_var=yes"
4991 else
4992   echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4994
4995 eval "$as_ac_var=no"
4996 fi
4997 rm -f conftest.err conftest.$ac_objext \
4998       conftest$ac_exeext conftest.$ac_ext
4999 fi
5000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5002 if test `eval echo '${'$as_ac_var'}'` = yes; then
5003   cat >>confdefs.h <<_ACEOF
5004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5005 _ACEOF
5006
5007 fi
5008 done
5009
5010
5011
5012
5013 for ac_func in inet_ntoa mmap munmap
5014 do
5015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5016 echo "$as_me:$LINENO: checking for $ac_func" >&5
5017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5018 if eval "test \"\${$as_ac_var+set}\" = set"; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h.  */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h.  */
5027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5029 #define $ac_func innocuous_$ac_func
5030
5031 /* System header to define __stub macros and hopefully few prototypes,
5032     which can conflict with char $ac_func (); below.
5033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034     <limits.h> exists even on freestanding compilers.  */
5035
5036 #ifdef __STDC__
5037 # include <limits.h>
5038 #else
5039 # include <assert.h>
5040 #endif
5041
5042 #undef $ac_func
5043
5044 /* Override any gcc2 internal prototype to avoid an error.  */
5045 #ifdef __cplusplus
5046 extern "C"
5047 {
5048 #endif
5049 /* We use char because int might match the return type of a gcc2
5050    builtin and then its argument prototype would still apply.  */
5051 char $ac_func ();
5052 /* The GNU C library defines this for functions which it implements
5053     to always fail with ENOSYS.  Some functions are actually named
5054     something starting with __ and the normal name is an alias.  */
5055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5056 choke me
5057 #else
5058 char (*f) () = $ac_func;
5059 #endif
5060 #ifdef __cplusplus
5061 }
5062 #endif
5063
5064 int
5065 main ()
5066 {
5067 return f != $ac_func;
5068   ;
5069   return 0;
5070 }
5071 _ACEOF
5072 rm -f conftest.$ac_objext conftest$ac_exeext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5074   (eval $ac_link) 2>conftest.er1
5075   ac_status=$?
5076   grep -v '^ *+' conftest.er1 >conftest.err
5077   rm -f conftest.er1
5078   cat conftest.err >&5
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); } &&
5081          { ac_try='test -z "$ac_c_werror_flag"
5082                          || test ! -s conftest.err'
5083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084   (eval $ac_try) 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; } &&
5088          { ac_try='test -s conftest$ac_exeext'
5089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090   (eval $ac_try) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); }; }; then
5094   eval "$as_ac_var=yes"
5095 else
5096   echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5098
5099 eval "$as_ac_var=no"
5100 fi
5101 rm -f conftest.err conftest.$ac_objext \
5102       conftest$ac_exeext conftest.$ac_ext
5103 fi
5104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5106 if test `eval echo '${'$as_ac_var'}'` = yes; then
5107   cat >>confdefs.h <<_ACEOF
5108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5109 _ACEOF
5110
5111 fi
5112 done
5113
5114
5115 for ac_func in __libc_freeres
5116 do
5117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5118 echo "$as_me:$LINENO: checking for $ac_func" >&5
5119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5120 if eval "test \"\${$as_ac_var+set}\" = set"; then
5121   echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123   cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5131 #define $ac_func innocuous_$ac_func
5132
5133 /* System header to define __stub macros and hopefully few prototypes,
5134     which can conflict with char $ac_func (); below.
5135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5136     <limits.h> exists even on freestanding compilers.  */
5137
5138 #ifdef __STDC__
5139 # include <limits.h>
5140 #else
5141 # include <assert.h>
5142 #endif
5143
5144 #undef $ac_func
5145
5146 /* Override any gcc2 internal prototype to avoid an error.  */
5147 #ifdef __cplusplus
5148 extern "C"
5149 {
5150 #endif
5151 /* We use char because int might match the return type of a gcc2
5152    builtin and then its argument prototype would still apply.  */
5153 char $ac_func ();
5154 /* The GNU C library defines this for functions which it implements
5155     to always fail with ENOSYS.  Some functions are actually named
5156     something starting with __ and the normal name is an alias.  */
5157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5158 choke me
5159 #else
5160 char (*f) () = $ac_func;
5161 #endif
5162 #ifdef __cplusplus
5163 }
5164 #endif
5165
5166 int
5167 main ()
5168 {
5169 return f != $ac_func;
5170   ;
5171   return 0;
5172 }
5173 _ACEOF
5174 rm -f conftest.$ac_objext conftest$ac_exeext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5176   (eval $ac_link) 2>conftest.er1
5177   ac_status=$?
5178   grep -v '^ *+' conftest.er1 >conftest.err
5179   rm -f conftest.er1
5180   cat conftest.err >&5
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); } &&
5183          { ac_try='test -z "$ac_c_werror_flag"
5184                          || test ! -s conftest.err'
5185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186   (eval $ac_try) 2>&5
5187   ac_status=$?
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); }; } &&
5190          { ac_try='test -s conftest$ac_exeext'
5191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192   (eval $ac_try) 2>&5
5193   ac_status=$?
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); }; }; then
5196   eval "$as_ac_var=yes"
5197 else
5198   echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 eval "$as_ac_var=no"
5202 fi
5203 rm -f conftest.err conftest.$ac_objext \
5204       conftest$ac_exeext conftest.$ac_ext
5205 fi
5206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5208 if test `eval echo '${'$as_ac_var'}'` = yes; then
5209   cat >>confdefs.h <<_ACEOF
5210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5211 _ACEOF
5212
5213 fi
5214 done
5215
5216
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h.  */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h.  */
5223 #include <sys/types.h>
5224 #include <sys/ipc.h>
5225 #include <sys/sem.h>
5226 int
5227 main ()
5228 {
5229 union semun foo;
5230   ;
5231   return 0;
5232 }
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236   (eval $ac_compile) 2>conftest.er1
5237   ac_status=$?
5238   grep -v '^ *+' conftest.er1 >conftest.err
5239   rm -f conftest.er1
5240   cat conftest.err >&5
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); } &&
5243          { ac_try='test -z "$ac_c_werror_flag"
5244                          || test ! -s conftest.err'
5245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246   (eval $ac_try) 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }; } &&
5250          { ac_try='test -s conftest.$ac_objext'
5251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252   (eval $ac_try) 2>&5
5253   ac_status=$?
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); }; }; then
5256   mf_have_semun=1
5257 else
5258   echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5260
5261 mf_have_semun=0
5262 fi
5263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5264 if test $mf_have_semun = 1
5265 then
5266
5267 cat >>confdefs.h <<\_ACEOF
5268 #define HAVE_UNION_SEMUN 1
5269 _ACEOF
5270
5271 fi
5272
5273
5274 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
5275 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
5276 cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h.  */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h.  */
5282 #define _POSIX_PII_SOCKET
5283 #include <sys/types.h>
5284 #include <sys/socket.h>
5285 int
5286 main ()
5287 {
5288 socklen_t x = 5;
5289   ;
5290   return 0;
5291 }
5292 _ACEOF
5293 rm -f conftest.$ac_objext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5295   (eval $ac_compile) 2>conftest.er1
5296   ac_status=$?
5297   grep -v '^ *+' conftest.er1 >conftest.err
5298   rm -f conftest.er1
5299   cat conftest.err >&5
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); } &&
5302          { ac_try='test -z "$ac_c_werror_flag"
5303                          || test ! -s conftest.err'
5304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305   (eval $ac_try) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }; } &&
5309          { ac_try='test -s conftest.$ac_objext'
5310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; }; then
5315
5316 cat >>confdefs.h <<\_ACEOF
5317 #define HAVE_SOCKLEN_T 1
5318 _ACEOF
5319
5320    echo "$as_me:$LINENO: result: yes" >&5
5321 echo "${ECHO_T}yes" >&6
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6
5328 fi
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330
5331 enable_dlopen=yes
5332
5333
5334
5335
5336
5337 macro_version='2.1a'
5338 macro_revision='1.2435'
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351 ltmain="$ac_aux_dir/ltmain.sh"
5352
5353 # Set options
5354
5355
5356 enable_win32_dll=no
5357
5358
5359 # Check whether --enable-shared or --disable-shared was given.
5360 if test "${enable_shared+set}" = set; then
5361   enableval="$enable_shared"
5362   p=${PACKAGE-default}
5363     case $enableval in
5364     yes) enable_shared=yes ;;
5365     no) enable_shared=no ;;
5366     *)
5367       enable_shared=no
5368       # Look at the argument we got.  We use all the common list separators.
5369       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5370       for pkg in $enableval; do
5371         IFS="$lt_save_ifs"
5372         if test "X$pkg" = "X$p"; then
5373           enable_shared=yes
5374         fi
5375       done
5376       IFS="$lt_save_ifs"
5377       ;;
5378     esac
5379 else
5380   enable_shared=yes
5381 fi;
5382
5383
5384
5385
5386
5387
5388
5389
5390 # Check whether --enable-static or --disable-static was given.
5391 if test "${enable_static+set}" = set; then
5392   enableval="$enable_static"
5393   p=${PACKAGE-default}
5394     case $enableval in
5395     yes) enable_static=yes ;;
5396     no) enable_static=no ;;
5397     *)
5398      enable_static=no
5399       # Look at the argument we got.  We use all the common list separators.
5400       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5401       for pkg in $enableval; do
5402         IFS="$lt_save_ifs"
5403         if test "X$pkg" = "X$p"; then
5404           enable_static=yes
5405         fi
5406       done
5407       IFS="$lt_save_ifs"
5408       ;;
5409     esac
5410 else
5411   enable_static=yes
5412 fi;
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422 # Check whether --with-pic or --without-pic was given.
5423 if test "${with_pic+set}" = set; then
5424   withval="$with_pic"
5425   pic_mode="$withval"
5426 else
5427   pic_mode=default
5428 fi;
5429
5430 test -z "$pic_mode" && pic_mode=default
5431
5432
5433
5434
5435
5436
5437
5438 # Check whether --enable-fast-install or --disable-fast-install was given.
5439 if test "${enable_fast_install+set}" = set; then
5440   enableval="$enable_fast_install"
5441   p=${PACKAGE-default}
5442     case $enableval in
5443     yes) enable_fast_install=yes ;;
5444     no) enable_fast_install=no ;;
5445     *)
5446       enable_fast_install=no
5447       # Look at the argument we got.  We use all the common list separators.
5448       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5449       for pkg in $enableval; do
5450         IFS="$lt_save_ifs"
5451         if test "X$pkg" = "X$p"; then
5452           enable_fast_install=yes
5453         fi
5454       done
5455       IFS="$lt_save_ifs"
5456       ;;
5457     esac
5458 else
5459   enable_fast_install=yes
5460 fi;
5461
5462
5463
5464
5465
5466
5467
5468
5469 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5470 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5471 if test "${lt_cv_path_SED+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   # Loop through the user's path and test for sed and gsed.
5475 # Then use that list of sed's as ones to test for truncation.
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479   IFS=$as_save_IFS
5480   test -z "$as_dir" && as_dir=.
5481   for lt_ac_prog in sed gsed; do
5482     for ac_exec_ext in '' $ac_executable_extensions; do
5483       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5484         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5485       fi
5486     done
5487   done
5488 done
5489 IFS=$as_save_IFS
5490 lt_ac_max=0
5491 lt_ac_count=0
5492 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5493 # along with /bin/sed that truncates output.
5494 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5495   test ! -f $lt_ac_sed && continue
5496   cat /dev/null > conftest.in
5497   lt_ac_count=0
5498   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5499   # Check for GNU sed and select it if it is found.
5500   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5501     lt_cv_path_SED=$lt_ac_sed
5502     break
5503   fi
5504   while true; do
5505     cat conftest.in conftest.in >conftest.tmp
5506     mv conftest.tmp conftest.in
5507     cp conftest.in conftest.nl
5508     echo >>conftest.nl
5509     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5510     cmp -s conftest.out conftest.nl || break
5511     # 10000 chars as input seems more than enough
5512     test $lt_ac_count -gt 10 && break
5513     lt_ac_count=`expr $lt_ac_count + 1`
5514     if test $lt_ac_count -gt $lt_ac_max; then
5515       lt_ac_max=$lt_ac_count
5516       lt_cv_path_SED=$lt_ac_sed
5517     fi
5518   done
5519 done
5520
5521 fi
5522
5523 SED=$lt_cv_path_SED
5524
5525 echo "$as_me:$LINENO: result: $SED" >&5
5526 echo "${ECHO_T}$SED" >&6
5527
5528 test -z "$SED" && SED=sed
5529 Xsed="$SED -e 1s/^X//"
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 echo "$as_me:$LINENO: checking for fgrep" >&5
5542 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5543 if test "${ac_cv_prog_fgrep+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5547     then ac_cv_prog_fgrep='grep -F'
5548     else ac_cv_prog_fgrep='fgrep'
5549     fi
5550 fi
5551 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5552 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5553  FGREP=$ac_cv_prog_fgrep
5554
5555
5556 test -z "$GREP" && GREP=grep
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5577 if test "${with_gnu_ld+set}" = set; then
5578   withval="$with_gnu_ld"
5579   test "$withval" = no || with_gnu_ld=yes
5580 else
5581   with_gnu_ld=no
5582 fi;
5583 ac_prog=ld
5584 if test "$GCC" = yes; then
5585   # Check if gcc -print-prog-name=ld gives a path.
5586   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5587 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5588   case $host in
5589   *-*-mingw*)
5590     # gcc leaves a trailing carriage return which upsets mingw
5591     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5592   *)
5593     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5594   esac
5595   case $ac_prog in
5596     # Accept absolute paths.
5597     [\\/]* | ?:[\\/]*)
5598       re_direlt='/[^/][^/]*/\.\./'
5599       # Canonicalize the pathname of ld
5600       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5601       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5602         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5603       done
5604       test -z "$LD" && LD="$ac_prog"
5605       ;;
5606   "")
5607     # If it fails, then pretend we aren't using GCC.
5608     ac_prog=ld
5609     ;;
5610   *)
5611     # If it is relative, then search for the first ld in PATH.
5612     with_gnu_ld=unknown
5613     ;;
5614   esac
5615 elif test "$with_gnu_ld" = yes; then
5616   echo "$as_me:$LINENO: checking for GNU ld" >&5
5617 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5618 else
5619   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5620 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5621 fi
5622 if test "${lt_cv_path_LD+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   if test -z "$LD"; then
5626   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5627   for ac_dir in $PATH; do
5628     IFS="$lt_save_ifs"
5629     test -z "$ac_dir" && ac_dir=.
5630     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5631       lt_cv_path_LD="$ac_dir/$ac_prog"
5632       # Check to see if the program is GNU ld.  I'd rather use --version,
5633       # but apparently some variants of GNU ld only accept -v.
5634       # Break only if it was the GNU/non-GNU ld that we prefer.
5635       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5636       *GNU* | *'with BFD'*)
5637         test "$with_gnu_ld" != no && break
5638         ;;
5639       *)
5640         test "$with_gnu_ld" != yes && break
5641         ;;
5642       esac
5643     fi
5644   done
5645   IFS="$lt_save_ifs"
5646 else
5647   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5648 fi
5649 fi
5650
5651 LD="$lt_cv_path_LD"
5652 if test -n "$LD"; then
5653   echo "$as_me:$LINENO: result: $LD" >&5
5654 echo "${ECHO_T}$LD" >&6
5655 else
5656   echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6
5658 fi
5659 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5660 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5661    { (exit 1); exit 1; }; }
5662 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5663 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5664 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5668 case `$LD -v 2>&1 </dev/null` in
5669 *GNU* | *'with BFD'*)
5670   lt_cv_prog_gnu_ld=yes
5671   ;;
5672 *)
5673   lt_cv_prog_gnu_ld=no
5674   ;;
5675 esac
5676 fi
5677 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5678 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5679 with_gnu_ld=$lt_cv_prog_gnu_ld
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5691 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5692 if test "${lt_cv_path_NM+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   if test -n "$NM"; then
5696   # Let the user override the test.
5697   lt_cv_path_NM="$NM"
5698 else
5699   lt_nm_to_check="${ac_tool_prefix}nm"
5700   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5701     lt_nm_to_check="$lt_nm_to_check nm"
5702   fi
5703   for lt_tmp_nm in $lt_nm_to_check; do
5704     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5705     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5706       IFS="$lt_save_ifs"
5707       test -z "$ac_dir" && ac_dir=.
5708       tmp_nm="$ac_dir/$lt_tmp_nm"
5709       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5710         # Check to see if the nm accepts a BSD-compat flag.
5711         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5712         #   nm: unknown option "B" ignored
5713         # Tru64's nm complains that /dev/null is an invalid object file
5714         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5715         */dev/null* | *'Invalid file or object type'*)
5716           lt_cv_path_NM="$tmp_nm -B"
5717           break
5718           ;;
5719         *)
5720           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5721           */dev/null*)
5722             lt_cv_path_NM="$tmp_nm -p"
5723             break
5724             ;;
5725           *)
5726             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5727             continue # so that we can try to find one that supports BSD flags
5728             ;;
5729           esac
5730           ;;
5731         esac
5732       fi
5733     done
5734     IFS="$lt_save_ifs"
5735   done
5736   : ${lt_cv_path_NM=no}
5737 fi
5738 fi
5739 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5740 echo "${ECHO_T}$lt_cv_path_NM" >&6
5741 if test "$lt_cv_path_NM" != "no"; then
5742   NM="$lt_cv_path_NM"
5743 else
5744   # Didn't find any BSD compatible name lister, look for dumpbin.
5745   if test -n "$ac_tool_prefix"; then
5746   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5747   do
5748     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5750 echo "$as_me:$LINENO: checking for $ac_word" >&5
5751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5752 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   if test -n "$DUMPBIN"; then
5756   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761   IFS=$as_save_IFS
5762   test -z "$as_dir" && as_dir=.
5763   for ac_exec_ext in '' $ac_executable_extensions; do
5764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5765     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767     break 2
5768   fi
5769 done
5770 done
5771
5772 fi
5773 fi
5774 DUMPBIN=$ac_cv_prog_DUMPBIN
5775 if test -n "$DUMPBIN"; then
5776   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5777 echo "${ECHO_T}$DUMPBIN" >&6
5778 else
5779   echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6
5781 fi
5782
5783     test -n "$DUMPBIN" && break
5784   done
5785 fi
5786 if test -z "$DUMPBIN"; then
5787   ac_ct_DUMPBIN=$DUMPBIN
5788   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5789 do
5790   # Extract the first word of "$ac_prog", so it can be a program name with args.
5791 set dummy $ac_prog; ac_word=$2
5792 echo "$as_me:$LINENO: checking for $ac_word" >&5
5793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5794 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   if test -n "$ac_ct_DUMPBIN"; then
5798   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803   IFS=$as_save_IFS
5804   test -z "$as_dir" && as_dir=.
5805   for ac_exec_ext in '' $ac_executable_extensions; do
5806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5809     break 2
5810   fi
5811 done
5812 done
5813
5814 fi
5815 fi
5816 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5817 if test -n "$ac_ct_DUMPBIN"; then
5818   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5819 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5820 else
5821   echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6
5823 fi
5824
5825   test -n "$ac_ct_DUMPBIN" && break
5826 done
5827 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5828
5829   DUMPBIN=$ac_ct_DUMPBIN
5830 fi
5831
5832
5833   if test "$DUMPBIN" != ":"; then
5834     NM="$DUMPBIN"
5835   fi
5836 fi
5837 test -z "$NM" && NM=nm
5838
5839
5840
5841
5842
5843
5844 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5845 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5846 if test "${lt_cv_nm_interface+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   lt_cv_nm_interface="BSD nm"
5850   echo "int some_variable = 0;" > conftest.$ac_ext
5851   (eval echo "\"\$as_me:5851: $ac_compile\"" >&5)
5852   (eval "$ac_compile" 2>conftest.err)
5853   cat conftest.err >&5
5854   (eval echo "\"\$as_me:5854: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5855   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5856   cat conftest.err >&5
5857   (eval echo "\"\$as_me:5857: output\"" >&5)
5858   cat conftest.out >&5
5859   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5860     lt_cv_nm_interface="MS dumpbin"
5861   fi
5862   rm -f conftest*
5863 fi
5864 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5865 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5866
5867 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5868 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5869 LN_S=$as_ln_s
5870 if test "$LN_S" = "ln -s"; then
5871   echo "$as_me:$LINENO: result: yes" >&5
5872 echo "${ECHO_T}yes" >&6
5873 else
5874   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5875 echo "${ECHO_T}no, using $LN_S" >&6
5876 fi
5877
5878 # find the maximum length of command line arguments
5879 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5880 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5881 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5882   echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884     i=0
5885   teststring="ABCD"
5886
5887   case $build_os in
5888   msdosdjgpp*)
5889     # On DJGPP, this test can blow up pretty badly due to problems in libc
5890     # (any single argument exceeding 2000 bytes causes a buffer overrun
5891     # during glob expansion).  Even if it were fixed, the result of this
5892     # check would be larger than it should be.
5893     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5894     ;;
5895
5896   gnu*)
5897     # Under GNU Hurd, this test is not required because there is
5898     # no limit to the length of command line arguments.
5899     # Libtool will interpret -1 as no limit whatsoever
5900     lt_cv_sys_max_cmd_len=-1;
5901     ;;
5902
5903   cygwin* | mingw*)
5904     # On Win9x/ME, this test blows up -- it succeeds, but takes
5905     # about 5 minutes as the teststring grows exponentially.
5906     # Worse, since 9x/ME are not pre-emptively multitasking,
5907     # you end up with a "frozen" computer, even though with patience
5908     # the test eventually succeeds (with a max line length of 256k).
5909     # Instead, let's just punt: use the minimum linelength reported by
5910     # all of the supported platforms: 8192 (on NT/2K/XP).
5911     lt_cv_sys_max_cmd_len=8192;
5912     ;;
5913
5914   amigaos*)
5915     # On AmigaOS with pdksh, this test takes hours, literally.
5916     # So we just punt and use a minimum line length of 8192.
5917     lt_cv_sys_max_cmd_len=8192;
5918     ;;
5919
5920   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5921     # This has been around since 386BSD, at least.  Likely further.
5922     if test -x /sbin/sysctl; then
5923       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5924     elif test -x /usr/sbin/sysctl; then
5925       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5926     else
5927       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5928     fi
5929     # And add a safety zone
5930     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5931     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5932     ;;
5933
5934   interix*)
5935     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5936     lt_cv_sys_max_cmd_len=196608
5937     ;;
5938
5939   osf*)
5940     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5941     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5942     # nice to cause kernel panics so lets avoid the loop below.
5943     # First set a reasonable default.
5944     lt_cv_sys_max_cmd_len=16384
5945     #
5946     if test -x /sbin/sysconfig; then
5947       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5948         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5949       esac
5950     fi
5951     ;;
5952   sco3.2v5*)
5953     lt_cv_sys_max_cmd_len=102400
5954     ;;
5955   sysv5* | sco5v6* | sysv4.2uw2*)
5956     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5957     if test -n "$kargmax"; then
5958       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5959     else
5960       lt_cv_sys_max_cmd_len=32768
5961     fi
5962     ;;
5963   *)
5964     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
5965     if test -n $lt_cv_sys_max_cmd_len; then
5966       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5967       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5968     else
5969       # Make teststring a little bigger before we do anything with it.
5970       # a 1K string should be a reasonable start.
5971       for i in 1 2 3 4 5 6 7 8 ; do
5972         teststring=$teststring$teststring
5973       done
5974       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5975       # If test is not a shell built-in, we'll probably end up computing a
5976       # maximum length that is only half of the actual maximum length, but
5977       # we can't tell.
5978       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5979                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5980               test $i != 17 # 1/2 MB should be enough
5981       do
5982         i=`expr $i + 1`
5983         teststring=$teststring$teststring
5984       done
5985       # Only check the string length outside the loop.
5986       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5987       teststring=
5988       # Add a significant safety factor because C++ compilers can tack on
5989       # massive amounts of additional arguments before passing them to the
5990       # linker.  It appears as though 1/2 is a usable value.
5991       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5992     fi
5993     ;;
5994   esac
5995
5996 fi
5997
5998 if test -n $lt_cv_sys_max_cmd_len ; then
5999   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6000 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6001 else
6002   echo "$as_me:$LINENO: result: none" >&5
6003 echo "${ECHO_T}none" >&6
6004 fi
6005 max_cmd_len=$lt_cv_sys_max_cmd_len
6006
6007
6008
6009
6010
6011
6012 : ${CP="cp -f"}
6013 : ${MV="mv -f"}
6014 : ${RM="rm -f"}
6015
6016 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6017 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6018 # Try some XSI features
6019 xsi_shell=no
6020 ( _lt_dummy="a/b/c"
6021   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6022       = c,a/b,, ) >/dev/null 2>&1 \
6023   && xsi_shell=yes
6024 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6025 echo "${ECHO_T}$xsi_shell" >&6
6026
6027
6028 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6029 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6030 lt_shell_append=no
6031 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6032     >/dev/null 2>&1 \
6033   && lt_shell_append=yes
6034 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6035 echo "${ECHO_T}$lt_shell_append" >&6
6036
6037
6038 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6039   lt_unset=unset
6040 else
6041   lt_unset=false
6042 fi
6043
6044
6045
6046
6047
6048 # test EBCDIC or ASCII
6049 case `echo X|tr X '\101'` in
6050  A) # ASCII based system
6051     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6052   lt_SP2NL='tr \040 \012'
6053   lt_NL2SP='tr \015\012 \040\040'
6054   ;;
6055  *) # EBCDIC based system
6056   lt_SP2NL='tr \100 \n'
6057   lt_NL2SP='tr \r\n \100\100'
6058   ;;
6059 esac
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6070 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6071 if test "${lt_cv_ld_reload_flag+set}" = set; then
6072   echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074   lt_cv_ld_reload_flag='-r'
6075 fi
6076 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6077 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6078 reload_flag=$lt_cv_ld_reload_flag
6079 case $reload_flag in
6080 "" | " "*) ;;
6081 *) reload_flag=" $reload_flag" ;;
6082 esac
6083 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6084 case $host_os in
6085   darwin*)
6086     if test "$GCC" = yes; then
6087       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6088     else
6089       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6090     fi
6091     ;;
6092 esac
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6104 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6105 if test "${lt_cv_deplibs_check_method+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   lt_cv_file_magic_cmd='$MAGIC_CMD'
6109 lt_cv_file_magic_test_file=
6110 lt_cv_deplibs_check_method='unknown'
6111 # Need to set the preceding variable on all platforms that support
6112 # interlibrary dependencies.
6113 # 'none' -- dependencies not supported.
6114 # `unknown' -- same as none, but documents that we really don't know.
6115 # 'pass_all' -- all dependencies passed with no checks.
6116 # 'test_compile' -- check by making test program.
6117 # 'file_magic [[regex]]' -- check by looking for files in library path
6118 # which responds to the $file_magic_cmd with a given extended regex.
6119 # If you have `file' or equivalent on your system and you're not sure
6120 # whether `pass_all' will *always* work, you probably want this one.
6121
6122 case $host_os in
6123 aix[4-9]*)
6124   lt_cv_deplibs_check_method=pass_all
6125   ;;
6126
6127 beos*)
6128   lt_cv_deplibs_check_method=pass_all
6129   ;;
6130
6131 bsdi[45]*)
6132   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6133   lt_cv_file_magic_cmd='/usr/bin/file -L'
6134   lt_cv_file_magic_test_file=/shlib/libc.so
6135   ;;
6136
6137 cygwin*)
6138   # func_win32_libid is a shell function defined in ltmain.sh
6139   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6140   lt_cv_file_magic_cmd='func_win32_libid'
6141   ;;
6142
6143 mingw* | pw32*)
6144   # Base MSYS/MinGW do not provide the 'file' command needed by
6145   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6146   # unless we find 'file', for example because we are cross-compiling.
6147   if ( file / ) >/dev/null 2>&1; then
6148     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6149     lt_cv_file_magic_cmd='func_win32_libid'
6150   else
6151     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6152     lt_cv_file_magic_cmd='$OBJDUMP -f'
6153   fi
6154   ;;
6155
6156 darwin* | rhapsody*)
6157   lt_cv_deplibs_check_method=pass_all
6158   ;;
6159
6160 freebsd* | dragonfly*)
6161   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6162     case $host_cpu in
6163     i*86 )
6164       # Not sure whether the presence of OpenBSD here was a mistake.
6165       # Let's accept both of them until this is cleared up.
6166       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6167       lt_cv_file_magic_cmd=/usr/bin/file
6168       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6169       ;;
6170     esac
6171   else
6172     lt_cv_deplibs_check_method=pass_all
6173   fi
6174   ;;
6175
6176 gnu*)
6177   lt_cv_deplibs_check_method=pass_all
6178   ;;
6179
6180 hpux10.20* | hpux11*)
6181   lt_cv_file_magic_cmd=/usr/bin/file
6182   case $host_cpu in
6183   ia64*)
6184     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6185     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6186     ;;
6187   hppa*64*)
6188     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]'
6189     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6190     ;;
6191   *)
6192     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6193     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6194     ;;
6195   esac
6196   ;;
6197
6198 interix[3-9]*)
6199   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6200   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6201   ;;
6202
6203 irix5* | irix6* | nonstopux*)
6204   case $LD in
6205   *-32|*"-32 ") libmagic=32-bit;;
6206   *-n32|*"-n32 ") libmagic=N32;;
6207   *-64|*"-64 ") libmagic=64-bit;;
6208   *) libmagic=never-match;;
6209   esac
6210   lt_cv_deplibs_check_method=pass_all
6211   ;;
6212
6213 # This must be Linux ELF.
6214 linux* | k*bsd*-gnu)
6215   lt_cv_deplibs_check_method=pass_all
6216   ;;
6217
6218 netbsd*)
6219   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6220     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6221   else
6222     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6223   fi
6224   ;;
6225
6226 newos6*)
6227   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6228   lt_cv_file_magic_cmd=/usr/bin/file
6229   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6230   ;;
6231
6232 *nto* | *qnx*)
6233   lt_cv_deplibs_check_method=pass_all
6234   ;;
6235
6236 openbsd*)
6237   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6238     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6239   else
6240     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6241   fi
6242   ;;
6243
6244 osf3* | osf4* | osf5*)
6245   lt_cv_deplibs_check_method=pass_all
6246   ;;
6247
6248 rdos*)
6249   lt_cv_deplibs_check_method=pass_all
6250   ;;
6251
6252 solaris*)
6253   lt_cv_deplibs_check_method=pass_all
6254   ;;
6255
6256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6257   lt_cv_deplibs_check_method=pass_all
6258   ;;
6259
6260 sysv4 | sysv4.3*)
6261   case $host_vendor in
6262   motorola)
6263     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]'
6264     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6265     ;;
6266   ncr)
6267     lt_cv_deplibs_check_method=pass_all
6268     ;;
6269   sequent)
6270     lt_cv_file_magic_cmd='/bin/file'
6271     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6272     ;;
6273   sni)
6274     lt_cv_file_magic_cmd='/bin/file'
6275     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6276     lt_cv_file_magic_test_file=/lib/libc.so
6277     ;;
6278   siemens)
6279     lt_cv_deplibs_check_method=pass_all
6280     ;;
6281   pc)
6282     lt_cv_deplibs_check_method=pass_all
6283     ;;
6284   esac
6285   ;;
6286
6287 tpf*)
6288   lt_cv_deplibs_check_method=pass_all
6289   ;;
6290 esac
6291
6292 fi
6293 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6294 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6295 file_magic_cmd=$lt_cv_file_magic_cmd
6296 deplibs_check_method=$lt_cv_deplibs_check_method
6297 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310 if test -n "$ac_tool_prefix"; then
6311   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6312 set dummy ${ac_tool_prefix}ar; ac_word=$2
6313 echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6315 if test "${ac_cv_prog_AR+set}" = set; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318   if test -n "$AR"; then
6319   ac_cv_prog_AR="$AR" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326   for ac_exec_ext in '' $ac_executable_extensions; do
6327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328     ac_cv_prog_AR="${ac_tool_prefix}ar"
6329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333 done
6334
6335 fi
6336 fi
6337 AR=$ac_cv_prog_AR
6338 if test -n "$AR"; then
6339   echo "$as_me:$LINENO: result: $AR" >&5
6340 echo "${ECHO_T}$AR" >&6
6341 else
6342   echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6
6344 fi
6345
6346 fi
6347 if test -z "$ac_cv_prog_AR"; then
6348   ac_ct_AR=$AR
6349   # Extract the first word of "ar", so it can be a program name with args.
6350 set dummy ar; ac_word=$2
6351 echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6353 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   if test -n "$ac_ct_AR"; then
6357   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364   for ac_exec_ext in '' $ac_executable_extensions; do
6365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366     ac_cv_prog_ac_ct_AR="ar"
6367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371 done
6372
6373   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6374 fi
6375 fi
6376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6377 if test -n "$ac_ct_AR"; then
6378   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6379 echo "${ECHO_T}$ac_ct_AR" >&6
6380 else
6381   echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6
6383 fi
6384
6385   AR=$ac_ct_AR
6386 else
6387   AR="$ac_cv_prog_AR"
6388 fi
6389
6390 test -z "$AR" && AR=ar
6391 test -z "$AR_FLAGS" && AR_FLAGS=cru
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403 if test -n "$ac_tool_prefix"; then
6404   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}strip; ac_word=$2
6406 echo "$as_me:$LINENO: checking for $ac_word" >&5
6407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6408 if test "${ac_cv_prog_STRIP+set}" = set; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411   if test -n "$STRIP"; then
6412   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417   IFS=$as_save_IFS
6418   test -z "$as_dir" && as_dir=.
6419   for ac_exec_ext in '' $ac_executable_extensions; do
6420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423     break 2
6424   fi
6425 done
6426 done
6427
6428 fi
6429 fi
6430 STRIP=$ac_cv_prog_STRIP
6431 if test -n "$STRIP"; then
6432   echo "$as_me:$LINENO: result: $STRIP" >&5
6433 echo "${ECHO_T}$STRIP" >&6
6434 else
6435   echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6
6437 fi
6438
6439 fi
6440 if test -z "$ac_cv_prog_STRIP"; then
6441   ac_ct_STRIP=$STRIP
6442   # Extract the first word of "strip", so it can be a program name with args.
6443 set dummy strip; ac_word=$2
6444 echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6446 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6447   echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449   if test -n "$ac_ct_STRIP"; then
6450   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455   IFS=$as_save_IFS
6456   test -z "$as_dir" && as_dir=.
6457   for ac_exec_ext in '' $ac_executable_extensions; do
6458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459     ac_cv_prog_ac_ct_STRIP="strip"
6460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461     break 2
6462   fi
6463 done
6464 done
6465
6466   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6467 fi
6468 fi
6469 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6470 if test -n "$ac_ct_STRIP"; then
6471   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6472 echo "${ECHO_T}$ac_ct_STRIP" >&6
6473 else
6474   echo "$as_me:$LINENO: result: no" >&5
6475 echo "${ECHO_T}no" >&6
6476 fi
6477
6478   STRIP=$ac_ct_STRIP
6479 else
6480   STRIP="$ac_cv_prog_STRIP"
6481 fi
6482
6483 test -z "$STRIP" && STRIP=:
6484
6485
6486
6487
6488
6489
6490 if test -n "$ac_tool_prefix"; then
6491   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6493 echo "$as_me:$LINENO: checking for $ac_word" >&5
6494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495 if test "${ac_cv_prog_RANLIB+set}" = set; then
6496   echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498   if test -n "$RANLIB"; then
6499   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504   IFS=$as_save_IFS
6505   test -z "$as_dir" && as_dir=.
6506   for ac_exec_ext in '' $ac_executable_extensions; do
6507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510     break 2
6511   fi
6512 done
6513 done
6514
6515 fi
6516 fi
6517 RANLIB=$ac_cv_prog_RANLIB
6518 if test -n "$RANLIB"; then
6519   echo "$as_me:$LINENO: result: $RANLIB" >&5
6520 echo "${ECHO_T}$RANLIB" >&6
6521 else
6522   echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6
6524 fi
6525
6526 fi
6527 if test -z "$ac_cv_prog_RANLIB"; then
6528   ac_ct_RANLIB=$RANLIB
6529   # Extract the first word of "ranlib", so it can be a program name with args.
6530 set dummy ranlib; ac_word=$2
6531 echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6533 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   if test -n "$ac_ct_RANLIB"; then
6537   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542   IFS=$as_save_IFS
6543   test -z "$as_dir" && as_dir=.
6544   for ac_exec_ext in '' $ac_executable_extensions; do
6545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546     ac_cv_prog_ac_ct_RANLIB="ranlib"
6547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548     break 2
6549   fi
6550 done
6551 done
6552
6553   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6554 fi
6555 fi
6556 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6557 if test -n "$ac_ct_RANLIB"; then
6558   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6559 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6560 else
6561   echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6
6563 fi
6564
6565   RANLIB=$ac_ct_RANLIB
6566 else
6567   RANLIB="$ac_cv_prog_RANLIB"
6568 fi
6569
6570 test -z "$RANLIB" && RANLIB=:
6571
6572
6573
6574
6575
6576
6577 # Determine commands to create old-style static archives.
6578 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6579 old_postinstall_cmds='chmod 644 $oldlib'
6580 old_postuninstall_cmds=
6581
6582 if test -n "$RANLIB"; then
6583   case $host_os in
6584   openbsd*)
6585     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6586     ;;
6587   *)
6588     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6589     ;;
6590   esac
6591   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6592 fi
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627 # If no C compiler was specified, use CC.
6628 LTCC=${LTCC-"$CC"}
6629
6630 # If no C compiler flags were specified, use CFLAGS.
6631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6632
6633 # Allow CC to be a program name with arguments.
6634 compiler=$CC
6635
6636
6637 # Check for command to grab the raw symbol name followed by C symbol from nm.
6638 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6639 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6640 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643
6644 # These are sane defaults that work on at least a few old systems.
6645 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6646
6647 # Character class describing NM global symbol codes.
6648 symcode='[BCDEGRST]'
6649
6650 # Regexp to match symbols that can be accessed directly from C.
6651 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6652
6653 # Define system-specific variables.
6654 case $host_os in
6655 aix*)
6656   symcode='[BCDT]'
6657   ;;
6658 cygwin* | mingw* | pw32*)
6659   symcode='[ABCDGISTW]'
6660   ;;
6661 hpux*)
6662   if test "$host_cpu" = ia64; then
6663     symcode='[ABCDEGRST]'
6664   fi
6665   ;;
6666 irix* | nonstopux*)
6667   symcode='[BCDEGRST]'
6668   ;;
6669 osf*)
6670   symcode='[BCDEGQRST]'
6671   ;;
6672 solaris*)
6673   symcode='[BDRT]'
6674   ;;
6675 sco3.2v5*)
6676   symcode='[DT]'
6677   ;;
6678 sysv4.2uw2*)
6679   symcode='[DT]'
6680   ;;
6681 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6682   symcode='[ABDT]'
6683   ;;
6684 sysv4)
6685   symcode='[DFNSTU]'
6686   ;;
6687 esac
6688
6689 # If we're using GNU nm, then use its standard symbol codes.
6690 case `$NM -V 2>&1` in
6691 *GNU* | *'with BFD'*)
6692   symcode='[ABCDGIRSTW]' ;;
6693 esac
6694
6695 # Transform an extracted symbol line into a proper C declaration.
6696 # Some systems (esp. on ia64) link data and code symbols differently,
6697 # so use this general approach.
6698 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6699
6700 # Transform an extracted symbol line into symbol name and symbol address
6701 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6702
6703 # Handle CRLF in mingw tool chain
6704 opt_cr=
6705 case $build_os in
6706 mingw*)
6707   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6708   ;;
6709 esac
6710
6711 # Try without a prefix underscore, then with it.
6712 for ac_symprfx in "" "_"; do
6713
6714   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6715   symxfrm="\\1 $ac_symprfx\\2 \\2"
6716
6717   # Write the raw and C identifiers.
6718   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6719     # Fake it for dumpbin and say T for any non-static function
6720     # and D for any global variable.
6721     # Also find C++ and __fastcall symbols from MSVC++,
6722     # which start with @ or ?.
6723     lt_cv_sys_global_symbol_pipe="$AWK '"\
6724 "     {last_section=section; section=\$ 3};"\
6725 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6726 "     \$ 0!~/External *\|/{next};"\
6727 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6728 "     {if(hide[section]) next};"\
6729 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6730 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6731 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6732 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6733 "     ' prfx=^$ac_symprfx"
6734   else
6735     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6736   fi
6737
6738   # Check to see that the pipe works correctly.
6739   pipe_works=no
6740
6741   rm -f conftest*
6742   cat > conftest.$ac_ext <<_LT_EOF
6743 #ifdef __cplusplus
6744 extern "C" {
6745 #endif
6746 char nm_test_var;
6747 void nm_test_func(void);
6748 void nm_test_func(void){}
6749 #ifdef __cplusplus
6750 }
6751 #endif
6752 int main(){nm_test_var='a';nm_test_func();return(0);}
6753 _LT_EOF
6754
6755   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756   (eval $ac_compile) 2>&5
6757   ac_status=$?
6758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759   (exit $ac_status); }; then
6760     # Now try to grab the symbols.
6761     nlist=conftest.nm
6762     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6763   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); } && test -s "$nlist"; then
6767       # Try sorting and uniquifying the output.
6768       if sort "$nlist" | uniq > "$nlist"T; then
6769         mv -f "$nlist"T "$nlist"
6770       else
6771         rm -f "$nlist"T
6772       fi
6773
6774       # Make sure that we snagged all the symbols we need.
6775       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6776         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6777           cat <<_LT_EOF > conftest.$ac_ext
6778 #ifdef __cplusplus
6779 extern "C" {
6780 #endif
6781
6782 _LT_EOF
6783           # Now generate the symbol file.
6784           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6785
6786           cat <<_LT_EOF >> conftest.$ac_ext
6787
6788 /* The mapping between symbol names and symbols.  */
6789 const struct {
6790   const char *name;
6791   void       *address;
6792 }
6793 lt__PROGRAM__LTX_preloaded_symbols[] =
6794 {
6795   { "@PROGRAM@", (void *) 0 },
6796 _LT_EOF
6797           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6798           cat <<\_LT_EOF >> conftest.$ac_ext
6799   {0, (void *) 0}
6800 };
6801
6802 /* This works around a problem in FreeBSD linker */
6803 #ifdef FREEBSD_WORKAROUND
6804 static const void *lt_preloaded_setup() {
6805   return lt__PROGRAM__LTX_preloaded_symbols;
6806 }
6807 #endif
6808
6809 #ifdef __cplusplus
6810 }
6811 #endif
6812 _LT_EOF
6813           # Now try linking the two files.
6814           mv conftest.$ac_objext conftstm.$ac_objext
6815           lt_save_LIBS="$LIBS"
6816           lt_save_CFLAGS="$CFLAGS"
6817           LIBS="conftstm.$ac_objext"
6818           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6819           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820   (eval $ac_link) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6824             pipe_works=yes
6825           fi
6826           LIBS="$lt_save_LIBS"
6827           CFLAGS="$lt_save_CFLAGS"
6828         else
6829           echo "cannot find nm_test_func in $nlist" >&5
6830         fi
6831       else
6832         echo "cannot find nm_test_var in $nlist" >&5
6833       fi
6834     else
6835       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6836     fi
6837   else
6838     echo "$progname: failed program was:" >&5
6839     cat conftest.$ac_ext >&5
6840   fi
6841   rm -f conftest* conftst*
6842
6843   # Do not use the global_symbol_pipe unless it works.
6844   if test "$pipe_works" = yes; then
6845     break
6846   else
6847     lt_cv_sys_global_symbol_pipe=
6848   fi
6849 done
6850
6851 fi
6852
6853 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6854   lt_cv_sys_global_symbol_to_cdecl=
6855 fi
6856 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6857   echo "$as_me:$LINENO: result: failed" >&5
6858 echo "${ECHO_T}failed" >&6
6859 else
6860   echo "$as_me:$LINENO: result: ok" >&5
6861 echo "${ECHO_T}ok" >&6
6862 fi
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6881 if test "${enable_libtool_lock+set}" = set; then
6882   enableval="$enable_libtool_lock"
6883
6884 fi;
6885 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6886
6887 # Some flags need to be propagated to the compiler or linker for good
6888 # libtool support.
6889 case $host in
6890 ia64-*-hpux*)
6891   # Find out which ABI we are using.
6892   echo 'int i;' > conftest.$ac_ext
6893   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894   (eval $ac_compile) 2>&5
6895   ac_status=$?
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); }; then
6898     case `/usr/bin/file conftest.$ac_objext` in
6899       *ELF-32*)
6900         HPUX_IA64_MODE="32"
6901         ;;
6902       *ELF-64*)
6903         HPUX_IA64_MODE="64"
6904         ;;
6905     esac
6906   fi
6907   rm -rf conftest*
6908   ;;
6909 *-*-irix6*)
6910   # Find out which ABI we are using.
6911   echo '#line 6911 "configure"' > conftest.$ac_ext
6912   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913   (eval $ac_compile) 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); }; then
6917     if test "$lt_cv_prog_gnu_ld" = yes; then
6918       case `/usr/bin/file conftest.$ac_objext` in
6919         *32-bit*)
6920           LD="${LD-ld} -melf32bsmip"
6921           ;;
6922         *N32*)
6923           LD="${LD-ld} -melf32bmipn32"
6924           ;;
6925         *64-bit*)
6926           LD="${LD-ld} -melf64bmip"
6927         ;;
6928       esac
6929     else
6930       case `/usr/bin/file conftest.$ac_objext` in
6931         *32-bit*)
6932           LD="${LD-ld} -32"
6933           ;;
6934         *N32*)
6935           LD="${LD-ld} -n32"
6936           ;;
6937         *64-bit*)
6938           LD="${LD-ld} -64"
6939           ;;
6940       esac
6941     fi
6942   fi
6943   rm -rf conftest*
6944   ;;
6945
6946 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6947 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6948   # Find out which ABI we are using.
6949   echo 'int i;' > conftest.$ac_ext
6950   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951   (eval $ac_compile) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; then
6955     case `/usr/bin/file conftest.o` in
6956       *32-bit*)
6957         case $host in
6958           x86_64-*kfreebsd*-gnu)
6959             LD="${LD-ld} -m elf_i386_fbsd"
6960             ;;
6961           x86_64-*linux*)
6962             LD="${LD-ld} -m elf_i386"
6963             ;;
6964           ppc64-*linux*|powerpc64-*linux*)
6965             LD="${LD-ld} -m elf32ppclinux"
6966             ;;
6967           s390x-*linux*)
6968             LD="${LD-ld} -m elf_s390"
6969             ;;
6970           sparc64-*linux*)
6971             LD="${LD-ld} -m elf32_sparc"
6972             ;;
6973         esac
6974         ;;
6975       *64-bit*)
6976         case $host in
6977           x86_64-*kfreebsd*-gnu)
6978             LD="${LD-ld} -m elf_x86_64_fbsd"
6979             ;;
6980           x86_64-*linux*)
6981             LD="${LD-ld} -m elf_x86_64"
6982             ;;
6983           ppc*-*linux*|powerpc*-*linux*)
6984             LD="${LD-ld} -m elf64ppc"
6985             ;;
6986           s390*-*linux*|s390*-*tpf*)
6987             LD="${LD-ld} -m elf64_s390"
6988             ;;
6989           sparc*-*linux*)
6990             LD="${LD-ld} -m elf64_sparc"
6991             ;;
6992         esac
6993         ;;
6994     esac
6995   fi
6996   rm -rf conftest*
6997   ;;
6998
6999 *-*-sco3.2v5*)
7000   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7001   SAVE_CFLAGS="$CFLAGS"
7002   CFLAGS="$CFLAGS -belf"
7003   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7004 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7005 if test "${lt_cv_cc_needs_belf+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   ac_ext=c
7009 ac_cpp='$CPP $CPPFLAGS'
7010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7013
7014      cat >conftest.$ac_ext <<_ACEOF
7015 /* confdefs.h.  */
7016 _ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h.  */
7020
7021 int
7022 main ()
7023 {
7024
7025   ;
7026   return 0;
7027 }
7028 _ACEOF
7029 rm -f conftest.$ac_objext conftest$ac_exeext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7031   (eval $ac_link) 2>conftest.er1
7032   ac_status=$?
7033   grep -v '^ *+' conftest.er1 >conftest.err
7034   rm -f conftest.er1
7035   cat conftest.err >&5
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); } &&
7038          { ac_try='test -z "$ac_c_werror_flag"
7039                          || test ! -s conftest.err'
7040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041   (eval $ac_try) 2>&5
7042   ac_status=$?
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); }; } &&
7045          { ac_try='test -s conftest$ac_exeext'
7046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047   (eval $ac_try) 2>&5
7048   ac_status=$?
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); }; }; then
7051   lt_cv_cc_needs_belf=yes
7052 else
7053   echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7055
7056 lt_cv_cc_needs_belf=no
7057 fi
7058 rm -f conftest.err conftest.$ac_objext \
7059       conftest$ac_exeext conftest.$ac_ext
7060      ac_ext=c
7061 ac_cpp='$CPP $CPPFLAGS'
7062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7065
7066 fi
7067 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7068 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7069   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7070     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7071     CFLAGS="$SAVE_CFLAGS"
7072   fi
7073   ;;
7074 sparc*-*solaris*)
7075   # Find out which ABI we are using.
7076   echo 'int i;' > conftest.$ac_ext
7077   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078   (eval $ac_compile) 2>&5
7079   ac_status=$?
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); }; then
7082     case `/usr/bin/file conftest.o` in
7083     *64-bit*)
7084       case $lt_cv_prog_gnu_ld in
7085       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7086       *)    LD="${LD-ld} -64" ;;
7087       esac
7088       ;;
7089     esac
7090   fi
7091   rm -rf conftest*
7092   ;;
7093 esac
7094
7095 need_locks="$enable_libtool_lock"
7096
7097
7098 for ac_header in dlfcn.h
7099 do
7100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7101 echo "$as_me:$LINENO: checking for $ac_header" >&5
7102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106   cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112 $ac_includes_default
7113
7114 #include <$ac_header>
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118   (eval $ac_compile) 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } &&
7125          { ac_try='test -z "$ac_c_werror_flag"
7126                          || test ! -s conftest.err'
7127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128   (eval $ac_try) 2>&5
7129   ac_status=$?
7130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); }; } &&
7132          { ac_try='test -s conftest.$ac_objext'
7133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134   (eval $ac_try) 2>&5
7135   ac_status=$?
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); }; }; then
7138   eval "$as_ac_Header=yes"
7139 else
7140   echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 eval "$as_ac_Header=no"
7144 fi
7145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7146 fi
7147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7150   cat >>confdefs.h <<_ACEOF
7151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7152 _ACEOF
7153
7154 fi
7155
7156 done
7157
7158
7159
7160 # This can be used to rebuild libtool when needed
7161 LIBTOOL_DEPS="$ltmain"
7162
7163 # Always use our own libtool.
7164 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190 test -z "$LN_S" && LN_S="ln -s"
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205 if test -n "${ZSH_VERSION+set}" ; then
7206    setopt NO_GLOB_SUBST
7207 fi
7208
7209 echo "$as_me:$LINENO: checking for objdir" >&5
7210 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7211 if test "${lt_cv_objdir+set}" = set; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   rm -f .libs 2>/dev/null
7215 mkdir .libs 2>/dev/null
7216 if test -d .libs; then
7217   lt_cv_objdir=.libs
7218 else
7219   # MS-DOS does not allow filenames that begin with a dot.
7220   lt_cv_objdir=_libs
7221 fi
7222 rmdir .libs 2>/dev/null
7223 fi
7224 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7225 echo "${ECHO_T}$lt_cv_objdir" >&6
7226 objdir=$lt_cv_objdir
7227
7228
7229
7230
7231
7232 cat >>confdefs.h <<_ACEOF
7233 #define LT_OBJDIR "$lt_cv_objdir/"
7234 _ACEOF
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252 case $host_os in
7253 aix3*)
7254   # AIX sometimes has problems with the GCC collect2 program.  For some
7255   # reason, if we set the COLLECT_NAMES environment variable, the problems
7256   # vanish in a puff of smoke.
7257   if test "X${COLLECT_NAMES+set}" != Xset; then
7258     COLLECT_NAMES=
7259     export COLLECT_NAMES
7260   fi
7261   ;;
7262 esac
7263
7264 # Sed substitution that helps us do robust quoting.  It backslashifies
7265 # metacharacters that are still active within double-quoted strings.
7266 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7267
7268 # Same as above, but do not quote variable references.
7269 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7270
7271 # Sed substitution to delay expansion of an escaped shell variable in a
7272 # double_quote_subst'ed string.
7273 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7274
7275 # Sed substitution to delay expansion of an escaped single quote.
7276 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7277
7278 # Sed substitution to avoid accidental globbing in evaled expressions
7279 no_glob_subst='s/\*/\\\*/g'
7280
7281 # Global variables:
7282 ofile=libtool
7283 can_build_shared=yes
7284
7285 # All known linkers require a `.a' archive for static linking (except MSVC,
7286 # which needs '.lib').
7287 libext=a
7288
7289 with_gnu_ld="$lt_cv_prog_gnu_ld"
7290
7291 old_CC="$CC"
7292 old_CFLAGS="$CFLAGS"
7293
7294 # Set sane defaults for various variables
7295 test -z "$CC" && CC=cc
7296 test -z "$LTCC" && LTCC=$CC
7297 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7298 test -z "$LD" && LD=ld
7299 test -z "$ac_objext" && ac_objext=o
7300
7301 for cc_temp in $compiler""; do
7302   case $cc_temp in
7303     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7304     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7305     \-*) ;;
7306     *) break;;
7307   esac
7308 done
7309 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7310
7311
7312 # Only perform the check for file, if the check method requires it
7313 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7314 case $deplibs_check_method in
7315 file_magic*)
7316   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7317     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7318 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7319 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   case $MAGIC_CMD in
7323 [\\/*] |  ?:[\\/]*)
7324   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7325   ;;
7326 *)
7327   lt_save_MAGIC_CMD="$MAGIC_CMD"
7328   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7329   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7330   for ac_dir in $ac_dummy; do
7331     IFS="$lt_save_ifs"
7332     test -z "$ac_dir" && ac_dir=.
7333     if test -f $ac_dir/${ac_tool_prefix}file; then
7334       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7335       if test -n "$file_magic_test_file"; then
7336         case $deplibs_check_method in
7337         "file_magic "*)
7338           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7339           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7340           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7341             $EGREP "$file_magic_regex" > /dev/null; then
7342             :
7343           else
7344             cat <<_LT_EOF 1>&2
7345
7346 *** Warning: the command libtool uses to detect shared libraries,
7347 *** $file_magic_cmd, produces output that libtool cannot recognize.
7348 *** The result is that libtool may fail to recognize shared libraries
7349 *** as such.  This will affect the creation of libtool libraries that
7350 *** depend on shared libraries, but programs linked with such libtool
7351 *** libraries will work regardless of this problem.  Nevertheless, you
7352 *** may want to report the problem to your system manager and/or to
7353 *** bug-libtool@gnu.org
7354
7355 _LT_EOF
7356           fi ;;
7357         esac
7358       fi
7359       break
7360     fi
7361   done
7362   IFS="$lt_save_ifs"
7363   MAGIC_CMD="$lt_save_MAGIC_CMD"
7364   ;;
7365 esac
7366 fi
7367
7368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7369 if test -n "$MAGIC_CMD"; then
7370   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7371 echo "${ECHO_T}$MAGIC_CMD" >&6
7372 else
7373   echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378
7379
7380
7381 if test -z "$lt_cv_path_MAGIC_CMD"; then
7382   if test -n "$ac_tool_prefix"; then
7383     echo "$as_me:$LINENO: checking for file" >&5
7384 echo $ECHO_N "checking for file... $ECHO_C" >&6
7385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   case $MAGIC_CMD in
7389 [\\/*] |  ?:[\\/]*)
7390   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7391   ;;
7392 *)
7393   lt_save_MAGIC_CMD="$MAGIC_CMD"
7394   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396   for ac_dir in $ac_dummy; do
7397     IFS="$lt_save_ifs"
7398     test -z "$ac_dir" && ac_dir=.
7399     if test -f $ac_dir/file; then
7400       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7401       if test -n "$file_magic_test_file"; then
7402         case $deplibs_check_method in
7403         "file_magic "*)
7404           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7405           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407             $EGREP "$file_magic_regex" > /dev/null; then
7408             :
7409           else
7410             cat <<_LT_EOF 1>&2
7411
7412 *** Warning: the command libtool uses to detect shared libraries,
7413 *** $file_magic_cmd, produces output that libtool cannot recognize.
7414 *** The result is that libtool may fail to recognize shared libraries
7415 *** as such.  This will affect the creation of libtool libraries that
7416 *** depend on shared libraries, but programs linked with such libtool
7417 *** libraries will work regardless of this problem.  Nevertheless, you
7418 *** may want to report the problem to your system manager and/or to
7419 *** bug-libtool@gnu.org
7420
7421 _LT_EOF
7422           fi ;;
7423         esac
7424       fi
7425       break
7426     fi
7427   done
7428   IFS="$lt_save_ifs"
7429   MAGIC_CMD="$lt_save_MAGIC_CMD"
7430   ;;
7431 esac
7432 fi
7433
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if test -n "$MAGIC_CMD"; then
7436   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7437 echo "${ECHO_T}$MAGIC_CMD" >&6
7438 else
7439   echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441 fi
7442
7443
7444   else
7445     MAGIC_CMD=:
7446   fi
7447 fi
7448
7449   fi
7450   ;;
7451 esac
7452
7453 # Use C for the default configuration in the libtool script
7454
7455 lt_save_CC="$CC"
7456 ac_ext=c
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462
7463 # Source file extension for C test sources.
7464 ac_ext=c
7465
7466 # Object file extension for compiled C test sources.
7467 objext=o
7468 objext=$objext
7469
7470 # Code to be used in simple compile tests
7471 lt_simple_compile_test_code="int some_variable = 0;"
7472
7473 # Code to be used in simple link tests
7474 lt_simple_link_test_code='int main(){return(0);}'
7475
7476
7477
7478
7479
7480
7481
7482 # If no C compiler was specified, use CC.
7483 LTCC=${LTCC-"$CC"}
7484
7485 # If no C compiler flags were specified, use CFLAGS.
7486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7487
7488 # Allow CC to be a program name with arguments.
7489 compiler=$CC
7490
7491 # Save the default compiler, since it gets overwritten when the other
7492 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7493 compiler_DEFAULT=$CC
7494
7495 # save warnings/boilerplate of simple test code
7496 ac_outfile=conftest.$ac_objext
7497 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7499 _lt_compiler_boilerplate=`cat conftest.err`
7500 $RM conftest*
7501
7502 ac_outfile=conftest.$ac_objext
7503 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7505 _lt_linker_boilerplate=`cat conftest.err`
7506 $RM conftest*
7507
7508
7509 ## CAVEAT EMPTOR:
7510 ## There is no encapsulation within the following macros, do not change
7511 ## the running order or otherwise move them around unless you know exactly
7512 ## what you are doing...
7513 if test -n "$compiler"; then
7514
7515 lt_prog_compiler_no_builtin_flag=
7516
7517 if test "$GCC" = yes; then
7518   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7519
7520   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7521 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7522 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7523   echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525   lt_cv_prog_compiler_rtti_exceptions=no
7526    ac_outfile=conftest.$ac_objext
7527    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7528    lt_compiler_flag="-fno-rtti -fno-exceptions"
7529    # Insert the option either (1) after the last *FLAGS variable, or
7530    # (2) before a word containing "conftest.", or (3) at the end.
7531    # Note that $ac_compile itself does not contain backslashes and begins
7532    # with a dollar sign (not a hyphen), so the echo should work correctly.
7533    # The option is referenced via a variable to avoid confusing sed.
7534    lt_compile=`echo "$ac_compile" | $SED \
7535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7537    -e 's:$: $lt_compiler_flag:'`
7538    (eval echo "\"\$as_me:7538: $lt_compile\"" >&5)
7539    (eval "$lt_compile" 2>conftest.err)
7540    ac_status=$?
7541    cat conftest.err >&5
7542    echo "$as_me:7542: \$? = $ac_status" >&5
7543    if (exit $ac_status) && test -s "$ac_outfile"; then
7544      # The compiler can only warn and ignore the option if not recognized
7545      # So say no if there are warnings other than the usual output.
7546      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7547      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7548      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7549        lt_cv_prog_compiler_rtti_exceptions=yes
7550      fi
7551    fi
7552    $RM conftest*
7553
7554 fi
7555 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7556 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7557
7558 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7559     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7560 else
7561     :
7562 fi
7563
7564 fi
7565
7566
7567
7568
7569
7570
7571   lt_prog_compiler_wl=
7572 lt_prog_compiler_pic=
7573 lt_prog_compiler_static=
7574
7575 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7576 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7577
7578   if test "$GCC" = yes; then
7579     lt_prog_compiler_wl='-Wl,'
7580     lt_prog_compiler_static='-static'
7581
7582     case $host_os in
7583       aix*)
7584       # All AIX code is PIC.
7585       if test "$host_cpu" = ia64; then
7586         # AIX 5 now supports IA64 processor
7587         lt_prog_compiler_static='-Bstatic'
7588       fi
7589       ;;
7590
7591     amigaos*)
7592       if test "$host_cpu" = m68k; then
7593         # FIXME: we need at least 68020 code to build shared libraries, but
7594         # adding the `-m68020' flag to GCC prevents building anything better,
7595         # like `-m68040'.
7596         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7597       fi
7598       ;;
7599
7600     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7601       # PIC is the default for these OSes.
7602       ;;
7603
7604     mingw* | cygwin* | pw32* | os2*)
7605       # This hack is so that the source file can tell whether it is being
7606       # built for inclusion in a dll (and should export symbols for example).
7607       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7608       # (--disable-auto-import) libraries
7609       lt_prog_compiler_pic='-DDLL_EXPORT'
7610       ;;
7611
7612     darwin* | rhapsody*)
7613       # PIC is the default on this platform
7614       # Common symbols not allowed in MH_DYLIB files
7615       lt_prog_compiler_pic='-fno-common'
7616       ;;
7617
7618     hpux*)
7619       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7620       # not for PA HP-UX.
7621       case $host_cpu in
7622       hppa*64*|ia64*)
7623         # +Z the default
7624         ;;
7625       *)
7626         lt_prog_compiler_pic='-fPIC'
7627         ;;
7628       esac
7629       ;;
7630
7631     interix[3-9]*)
7632       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7633       # Instead, we relocate shared libraries at runtime.
7634       ;;
7635
7636     msdosdjgpp*)
7637       # Just because we use GCC doesn't mean we suddenly get shared libraries
7638       # on systems that don't support them.
7639       lt_prog_compiler_can_build_shared=no
7640       enable_shared=no
7641       ;;
7642
7643     *nto* | *qnx*)
7644       # QNX uses GNU C++, but need to define -shared option too, otherwise
7645       # it will coredump.
7646       lt_prog_compiler_pic='-fPIC -shared'
7647       ;;
7648
7649     sysv4*MP*)
7650       if test -d /usr/nec; then
7651         lt_prog_compiler_pic=-Kconform_pic
7652       fi
7653       ;;
7654
7655     *)
7656       lt_prog_compiler_pic='-fPIC'
7657       ;;
7658     esac
7659   else
7660     # PORTME Check for flag to pass linker flags through the system compiler.
7661     case $host_os in
7662     aix*)
7663       lt_prog_compiler_wl='-Wl,'
7664       if test "$host_cpu" = ia64; then
7665         # AIX 5 now supports IA64 processor
7666         lt_prog_compiler_static='-Bstatic'
7667       else
7668         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7669       fi
7670       ;;
7671     darwin*)
7672       # PIC is the default on this platform
7673       # Common symbols not allowed in MH_DYLIB files
7674       case $cc_basename in
7675       xlc*)
7676         lt_prog_compiler_pic='-qnocommon'
7677         lt_prog_compiler_wl='-Wl,'
7678         ;;
7679       esac
7680       ;;
7681
7682     mingw* | cygwin* | pw32* | os2*)
7683       # This hack is so that the source file can tell whether it is being
7684       # built for inclusion in a dll (and should export symbols for example).
7685       lt_prog_compiler_pic='-DDLL_EXPORT'
7686       ;;
7687
7688     hpux9* | hpux10* | hpux11*)
7689       lt_prog_compiler_wl='-Wl,'
7690       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7691       # not for PA HP-UX.
7692       case $host_cpu in
7693       hppa*64*|ia64*)
7694         # +Z the default
7695         ;;
7696       *)
7697         lt_prog_compiler_pic='+Z'
7698         ;;
7699       esac
7700       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7701       lt_prog_compiler_static='${wl}-a ${wl}archive'
7702       ;;
7703
7704     irix5* | irix6* | nonstopux*)
7705       lt_prog_compiler_wl='-Wl,'
7706       # PIC (with -KPIC) is the default.
7707       lt_prog_compiler_static='-non_shared'
7708       ;;
7709
7710     linux* | k*bsd*-gnu)
7711       case $cc_basename in
7712       icc* | ecc*)
7713         lt_prog_compiler_wl='-Wl,'
7714         lt_prog_compiler_pic='-KPIC'
7715         lt_prog_compiler_static='-static'
7716         ;;
7717       pgcc* | pgf77* | pgf90* | pgf95*)
7718         # Portland Group compilers (*not* the Pentium gcc compiler,
7719         # which looks to be a dead project)
7720         lt_prog_compiler_wl='-Wl,'
7721         lt_prog_compiler_pic='-fpic'
7722         lt_prog_compiler_static='-Bstatic'
7723         ;;
7724       ccc*)
7725         lt_prog_compiler_wl='-Wl,'
7726         # All Alpha code is PIC.
7727         lt_prog_compiler_static='-non_shared'
7728         ;;
7729       *)
7730         case `$CC -V 2>&1 | sed 5q` in
7731         *Sun\ C*)
7732           # Sun C 5.9
7733           lt_prog_compiler_pic='-KPIC'
7734           lt_prog_compiler_static='-Bstatic'
7735           lt_prog_compiler_wl='-Wl,'
7736           ;;
7737         *Sun\ F*)
7738           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7739           lt_prog_compiler_pic='-KPIC'
7740           lt_prog_compiler_static='-Bstatic'
7741           lt_prog_compiler_wl=''
7742           ;;
7743         esac
7744         ;;
7745       esac
7746       ;;
7747
7748     newsos6)
7749       lt_prog_compiler_pic='-KPIC'
7750       lt_prog_compiler_static='-Bstatic'
7751       ;;
7752
7753     *nto* | *qnx*)
7754       # QNX uses GNU C++, but need to define -shared option too, otherwise
7755       # it will coredump.
7756       lt_prog_compiler_pic='-fPIC -shared'
7757       ;;
7758
7759     osf3* | osf4* | osf5*)
7760       lt_prog_compiler_wl='-Wl,'
7761       # All OSF/1 code is PIC.
7762       lt_prog_compiler_static='-non_shared'
7763       ;;
7764
7765     rdos*)
7766       lt_prog_compiler_static='-non_shared'
7767       ;;
7768
7769     solaris*)
7770       lt_prog_compiler_pic='-KPIC'
7771       lt_prog_compiler_static='-Bstatic'
7772       case $cc_basename in
7773       f77* | f90* | f95*)
7774         lt_prog_compiler_wl='-Qoption ld ';;
7775       *)
7776         lt_prog_compiler_wl='-Wl,';;
7777       esac
7778       ;;
7779
7780     sunos4*)
7781       lt_prog_compiler_wl='-Qoption ld '
7782       lt_prog_compiler_pic='-PIC'
7783       lt_prog_compiler_static='-Bstatic'
7784       ;;
7785
7786     sysv4 | sysv4.2uw2* | sysv4.3*)
7787       lt_prog_compiler_wl='-Wl,'
7788       lt_prog_compiler_pic='-KPIC'
7789       lt_prog_compiler_static='-Bstatic'
7790       ;;
7791
7792     sysv4*MP*)
7793       if test -d /usr/nec ;then
7794         lt_prog_compiler_pic='-Kconform_pic'
7795         lt_prog_compiler_static='-Bstatic'
7796       fi
7797       ;;
7798
7799     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7800       lt_prog_compiler_wl='-Wl,'
7801       lt_prog_compiler_pic='-KPIC'
7802       lt_prog_compiler_static='-Bstatic'
7803       ;;
7804
7805     unicos*)
7806       lt_prog_compiler_wl='-Wl,'
7807       lt_prog_compiler_can_build_shared=no
7808       ;;
7809
7810     uts4*)
7811       lt_prog_compiler_pic='-pic'
7812       lt_prog_compiler_static='-Bstatic'
7813       ;;
7814
7815     *)
7816       lt_prog_compiler_can_build_shared=no
7817       ;;
7818     esac
7819   fi
7820
7821 case $host_os in
7822   # For platforms which do not support PIC, -DPIC is meaningless:
7823   *djgpp*)
7824     lt_prog_compiler_pic=
7825     ;;
7826   *)
7827     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7828     ;;
7829 esac
7830 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7831 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7832
7833
7834
7835
7836
7837
7838 #
7839 # Check to make sure the PIC flag actually works.
7840 #
7841 if test -n "$lt_prog_compiler_pic"; then
7842   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7843 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7844 if test "${lt_prog_compiler_pic_works+set}" = set; then
7845   echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847   lt_prog_compiler_pic_works=no
7848    ac_outfile=conftest.$ac_objext
7849    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7850    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7851    # Insert the option either (1) after the last *FLAGS variable, or
7852    # (2) before a word containing "conftest.", or (3) at the end.
7853    # Note that $ac_compile itself does not contain backslashes and begins
7854    # with a dollar sign (not a hyphen), so the echo should work correctly.
7855    # The option is referenced via a variable to avoid confusing sed.
7856    lt_compile=`echo "$ac_compile" | $SED \
7857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7859    -e 's:$: $lt_compiler_flag:'`
7860    (eval echo "\"\$as_me:7860: $lt_compile\"" >&5)
7861    (eval "$lt_compile" 2>conftest.err)
7862    ac_status=$?
7863    cat conftest.err >&5
7864    echo "$as_me:7864: \$? = $ac_status" >&5
7865    if (exit $ac_status) && test -s "$ac_outfile"; then
7866      # The compiler can only warn and ignore the option if not recognized
7867      # So say no if there are warnings other than the usual output.
7868      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7869      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7870      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7871        lt_prog_compiler_pic_works=yes
7872      fi
7873    fi
7874    $RM conftest*
7875
7876 fi
7877 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7878 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7879
7880 if test x"$lt_prog_compiler_pic_works" = xyes; then
7881     case $lt_prog_compiler_pic in
7882      "" | " "*) ;;
7883      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7884      esac
7885 else
7886     lt_prog_compiler_pic=
7887      lt_prog_compiler_can_build_shared=no
7888 fi
7889
7890 fi
7891
7892
7893
7894
7895
7896
7897 #
7898 # Check to make sure the static flag actually works.
7899 #
7900 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7901 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7902 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7903 if test "${lt_prog_compiler_static_works+set}" = set; then
7904   echo $ECHO_N "(cached) $ECHO_C" >&6
7905 else
7906   lt_prog_compiler_static_works=no
7907    save_LDFLAGS="$LDFLAGS"
7908    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7909    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7910    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7911      # The linker can only warn and ignore the option if not recognized
7912      # So say no if there are warnings
7913      if test -s conftest.err; then
7914        # Append any errors to the config.log.
7915        cat conftest.err 1>&5
7916        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7917        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7918        if diff conftest.exp conftest.er2 >/dev/null; then
7919          lt_prog_compiler_static_works=yes
7920        fi
7921      else
7922        lt_prog_compiler_static_works=yes
7923      fi
7924    fi
7925    $RM conftest*
7926    LDFLAGS="$save_LDFLAGS"
7927
7928 fi
7929 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7930 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7931
7932 if test x"$lt_prog_compiler_static_works" = xyes; then
7933     :
7934 else
7935     lt_prog_compiler_static=
7936 fi
7937
7938
7939
7940
7941
7942
7943
7944   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7945 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7946 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7947   echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949   lt_cv_prog_compiler_c_o=no
7950    $RM -r conftest 2>/dev/null
7951    mkdir conftest
7952    cd conftest
7953    mkdir out
7954    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7955
7956    lt_compiler_flag="-o out/conftest2.$ac_objext"
7957    # Insert the option either (1) after the last *FLAGS variable, or
7958    # (2) before a word containing "conftest.", or (3) at the end.
7959    # Note that $ac_compile itself does not contain backslashes and begins
7960    # with a dollar sign (not a hyphen), so the echo should work correctly.
7961    lt_compile=`echo "$ac_compile" | $SED \
7962    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7963    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7964    -e 's:$: $lt_compiler_flag:'`
7965    (eval echo "\"\$as_me:7965: $lt_compile\"" >&5)
7966    (eval "$lt_compile" 2>out/conftest.err)
7967    ac_status=$?
7968    cat out/conftest.err >&5
7969    echo "$as_me:7969: \$? = $ac_status" >&5
7970    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7971    then
7972      # The compiler can only warn and ignore the option if not recognized
7973      # So say no if there are warnings
7974      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7975      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7976      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7977        lt_cv_prog_compiler_c_o=yes
7978      fi
7979    fi
7980    chmod u+w . 2>&5
7981    $RM conftest*
7982    # SGI C++ compiler will create directory out/ii_files/ for
7983    # template instantiation
7984    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7985    $RM out/* && rmdir out
7986    cd ..
7987    $RM -r conftest
7988    $RM conftest*
7989
7990 fi
7991 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7992 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7993
7994
7995
7996
7997
7998
7999   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8000 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004   lt_cv_prog_compiler_c_o=no
8005    $RM -r conftest 2>/dev/null
8006    mkdir conftest
8007    cd conftest
8008    mkdir out
8009    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8010
8011    lt_compiler_flag="-o out/conftest2.$ac_objext"
8012    # Insert the option either (1) after the last *FLAGS variable, or
8013    # (2) before a word containing "conftest.", or (3) at the end.
8014    # Note that $ac_compile itself does not contain backslashes and begins
8015    # with a dollar sign (not a hyphen), so the echo should work correctly.
8016    lt_compile=`echo "$ac_compile" | $SED \
8017    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8019    -e 's:$: $lt_compiler_flag:'`
8020    (eval echo "\"\$as_me:8020: $lt_compile\"" >&5)
8021    (eval "$lt_compile" 2>out/conftest.err)
8022    ac_status=$?
8023    cat out/conftest.err >&5
8024    echo "$as_me:8024: \$? = $ac_status" >&5
8025    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8026    then
8027      # The compiler can only warn and ignore the option if not recognized
8028      # So say no if there are warnings
8029      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8030      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8031      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8032        lt_cv_prog_compiler_c_o=yes
8033      fi
8034    fi
8035    chmod u+w . 2>&5
8036    $RM conftest*
8037    # SGI C++ compiler will create directory out/ii_files/ for
8038    # template instantiation
8039    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8040    $RM out/* && rmdir out
8041    cd ..
8042    $RM -r conftest
8043    $RM conftest*
8044
8045 fi
8046 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8047 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8048
8049
8050
8051
8052 hard_links="nottested"
8053 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8054   # do not overwrite the value of need_locks provided by the user
8055   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8056 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8057   hard_links=yes
8058   $RM conftest*
8059   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8060   touch conftest.a
8061   ln conftest.a conftest.b 2>&5 || hard_links=no
8062   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8063   echo "$as_me:$LINENO: result: $hard_links" >&5
8064 echo "${ECHO_T}$hard_links" >&6
8065   if test "$hard_links" = no; then
8066     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8067 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8068     need_locks=warn
8069   fi
8070 else
8071   need_locks=no
8072 fi
8073
8074
8075
8076
8077
8078
8079   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8080 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8081
8082   runpath_var=
8083   allow_undefined_flag=
8084   always_export_symbols=no
8085   archive_cmds=
8086   archive_expsym_cmds=
8087   compiler_needs_object=no
8088   enable_shared_with_static_runtimes=no
8089   export_dynamic_flag_spec=
8090   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8091   hardcode_automatic=no
8092   hardcode_direct=no
8093   hardcode_direct_absolute=no
8094   hardcode_libdir_flag_spec=
8095   hardcode_libdir_flag_spec_ld=
8096   hardcode_libdir_separator=
8097   hardcode_minus_L=no
8098   hardcode_shlibpath_var=unsupported
8099   inherit_rpath=no
8100   link_all_deplibs=unknown
8101   module_cmds=
8102   module_expsym_cmds=
8103   old_archive_from_new_cmds=
8104   old_archive_from_expsyms_cmds=
8105   thread_safe_flag_spec=
8106   whole_archive_flag_spec=
8107   # include_expsyms should be a list of space-separated symbols to be *always*
8108   # included in the symbol list
8109   include_expsyms=
8110   # exclude_expsyms can be an extended regexp of symbols to exclude
8111   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8112   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8113   # as well as any symbol that contains `d'.
8114   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8115   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8116   # platforms (ab)use it in PIC code, but their linkers get confused if
8117   # the symbol is explicitly referenced.  Since portable code cannot
8118   # rely on this symbol name, it's probably fine to never include it in
8119   # preloaded symbol tables.
8120   extract_expsyms_cmds=
8121
8122   case $host_os in
8123   cygwin* | mingw* | pw32*)
8124     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8125     # When not using gcc, we currently assume that we are using
8126     # Microsoft Visual C++.
8127     if test "$GCC" != yes; then
8128       with_gnu_ld=no
8129     fi
8130     ;;
8131   interix*)
8132     # we just hope/assume this is gcc and not c89 (= MSVC++)
8133     with_gnu_ld=yes
8134     ;;
8135   openbsd*)
8136     with_gnu_ld=no
8137     ;;
8138   esac
8139
8140   ld_shlibs=yes
8141   if test "$with_gnu_ld" = yes; then
8142     # If archive_cmds runs LD, not CC, wlarc should be empty
8143     wlarc='${wl}'
8144
8145     # Set some defaults for GNU ld with shared library support. These
8146     # are reset later if shared libraries are not supported. Putting them
8147     # here allows them to be overridden if necessary.
8148     runpath_var=LD_RUN_PATH
8149     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8150     export_dynamic_flag_spec='${wl}--export-dynamic'
8151     # ancient GNU ld didn't support --whole-archive et. al.
8152     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8153       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8154     else
8155       whole_archive_flag_spec=
8156     fi
8157     supports_anon_versioning=no
8158     case `$LD -v 2>&1` in
8159       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8160       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8161       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8162       *\ 2.11.*) ;; # other 2.11 versions
8163       *) supports_anon_versioning=yes ;;
8164     esac
8165
8166     # See if GNU ld supports shared libraries.
8167     case $host_os in
8168     aix[3-9]*)
8169       # On AIX/PPC, the GNU linker is very broken
8170       if test "$host_cpu" != ia64; then
8171         ld_shlibs=no
8172         cat <<_LT_EOF 1>&2
8173
8174 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8175 *** to be unable to reliably create shared libraries on AIX.
8176 *** Therefore, libtool is disabling shared libraries support.  If you
8177 *** really care for shared libraries, you may want to modify your PATH
8178 *** so that a non-GNU linker is found, and then restart.
8179
8180 _LT_EOF
8181       fi
8182       ;;
8183
8184     amigaos*)
8185       if test "$host_cpu" = m68k; then
8186         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)'
8187         hardcode_libdir_flag_spec='-L$libdir'
8188         hardcode_minus_L=yes
8189       fi
8190
8191       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8192       # that the semantics of dynamic libraries on AmigaOS, at least up
8193       # to version 4, is to share data among multiple programs linked
8194       # with the same dynamic library.  Since this doesn't match the
8195       # behavior of shared libraries on other platforms, we can't use
8196       # them.
8197       ld_shlibs=no
8198       ;;
8199
8200     beos*)
8201       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8202         allow_undefined_flag=unsupported
8203         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8204         # support --undefined.  This deserves some investigation.  FIXME
8205         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8206       else
8207         ld_shlibs=no
8208       fi
8209       ;;
8210
8211     cygwin* | mingw* | pw32*)
8212       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8213       # as there is no search path for DLLs.
8214       hardcode_libdir_flag_spec='-L$libdir'
8215       allow_undefined_flag=unsupported
8216       always_export_symbols=no
8217       enable_shared_with_static_runtimes=yes
8218       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8219
8220       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8221         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8222         # If the export-symbols file already is a .def file (1st line
8223         # is EXPORTS), use it as is; otherwise, prepend...
8224         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8225           cp $export_symbols $output_objdir/$soname.def;
8226         else
8227           echo EXPORTS > $output_objdir/$soname.def;
8228           cat $export_symbols >> $output_objdir/$soname.def;
8229         fi~
8230         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8231       else
8232         ld_shlibs=no
8233       fi
8234       ;;
8235
8236     interix[3-9]*)
8237       hardcode_direct=no
8238       hardcode_shlibpath_var=no
8239       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8240       export_dynamic_flag_spec='${wl}-E'
8241       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8242       # Instead, shared libraries are loaded at an image base (0x10000000 by
8243       # default) and relocated if they conflict, which is a slow very memory
8244       # consuming and fragmenting process.  To avoid this, we pick a random,
8245       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8246       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8247       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8248       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'
8249       ;;
8250
8251     gnu* | linux* | tpf* | k*bsd*-gnu)
8252       tmp_diet=no
8253       if test "$host_os" = linux-dietlibc; then
8254         case $cc_basename in
8255           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8256         esac
8257       fi
8258       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8259          && test "$tmp_diet" = no
8260       then
8261         tmp_addflag=
8262         case $cc_basename,$host_cpu in
8263         pgcc*)                          # Portland Group C compiler
8264           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'
8265           tmp_addflag=' $pic_flag'
8266           ;;
8267         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8268           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'
8269           tmp_addflag=' $pic_flag -Mnomain' ;;
8270         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8271           tmp_addflag=' -i_dynamic' ;;
8272         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8273           tmp_addflag=' -i_dynamic -nofor_main' ;;
8274         ifc* | ifort*)                  # Intel Fortran compiler
8275           tmp_addflag=' -nofor_main' ;;
8276         esac
8277         case `$CC -V 2>&1 | sed 5q` in
8278         *Sun\ C*)                       # Sun C 5.9
8279           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'
8280           compiler_needs_object=yes
8281           tmp_sharedflag='-G' ;;
8282         *Sun\ F*)                       # Sun Fortran 8.3
8283           tmp_sharedflag='-G' ;;
8284         *)
8285           tmp_sharedflag='-shared' ;;
8286         esac
8287         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288
8289         if test "x$supports_anon_versioning" = xyes; then
8290           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8291             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8292             echo "local: *; };" >> $output_objdir/$libname.ver~
8293             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8294         fi
8295       else
8296         ld_shlibs=no
8297       fi
8298       ;;
8299
8300     netbsd*)
8301       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8302         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8303         wlarc=
8304       else
8305         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8306         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8307       fi
8308       ;;
8309
8310     solaris*)
8311       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8312         ld_shlibs=no
8313         cat <<_LT_EOF 1>&2
8314
8315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8316 *** create shared libraries on Solaris systems.  Therefore, libtool
8317 *** is disabling shared libraries support.  We urge you to upgrade GNU
8318 *** binutils to release 2.9.1 or newer.  Another option is to modify
8319 *** your PATH or compiler configuration so that the native linker is
8320 *** used, and then restart.
8321
8322 _LT_EOF
8323       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8324         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8325         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8326       else
8327         ld_shlibs=no
8328       fi
8329       ;;
8330
8331     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8332       case `$LD -v 2>&1` in
8333         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8334         ld_shlibs=no
8335         cat <<_LT_EOF 1>&2
8336
8337 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8338 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8339 *** is disabling shared libraries support.  We urge you to upgrade GNU
8340 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8341 *** your PATH or compiler configuration so that the native linker is
8342 *** used, and then restart.
8343
8344 _LT_EOF
8345         ;;
8346         *)
8347           # For security reasons, it is highly recommended that you always
8348           # use absolute paths for naming shared libraries, and exclude the
8349           # DT_RUNPATH tag from executables and libraries.  But doing so
8350           # requires that you compile everything twice, which is a pain.
8351           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8352             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8353             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8354             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8355           else
8356             ld_shlibs=no
8357           fi
8358         ;;
8359       esac
8360       ;;
8361
8362     sunos4*)
8363       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8364       wlarc=
8365       hardcode_direct=yes
8366       hardcode_shlibpath_var=no
8367       ;;
8368
8369     *)
8370       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8371         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8373       else
8374         ld_shlibs=no
8375       fi
8376       ;;
8377     esac
8378
8379     if test "$ld_shlibs" = no; then
8380       runpath_var=
8381       hardcode_libdir_flag_spec=
8382       export_dynamic_flag_spec=
8383       whole_archive_flag_spec=
8384     fi
8385   else
8386     # PORTME fill in a description of your system's linker (not GNU ld)
8387     case $host_os in
8388     aix3*)
8389       allow_undefined_flag=unsupported
8390       always_export_symbols=yes
8391       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'
8392       # Note: this linker hardcodes the directories in LIBPATH if there
8393       # are no directories specified by -L.
8394       hardcode_minus_L=yes
8395       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8396         # Neither direct hardcoding nor static linking is supported with a
8397         # broken collect2.
8398         hardcode_direct=unsupported
8399       fi
8400       ;;
8401
8402     aix[4-9]*)
8403       if test "$host_cpu" = ia64; then
8404         # On IA64, the linker does run time linking by default, so we don't
8405         # have to do anything special.
8406         aix_use_runtimelinking=no
8407         exp_sym_flag='-Bexport'
8408         no_entry_flag=""
8409       else
8410         # If we're using GNU nm, then we don't want the "-C" option.
8411         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8412         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8413           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'
8414         else
8415           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'
8416         fi
8417         aix_use_runtimelinking=no
8418
8419         # Test if we are trying to use run time linking or normal
8420         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8421         # need to do runtime linking.
8422         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8423           for ld_flag in $LDFLAGS; do
8424           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8425             aix_use_runtimelinking=yes
8426             break
8427           fi
8428           done
8429           ;;
8430         esac
8431
8432         exp_sym_flag='-bexport'
8433         no_entry_flag='-bnoentry'
8434       fi
8435
8436       # When large executables or shared objects are built, AIX ld can
8437       # have problems creating the table of contents.  If linking a library
8438       # or program results in "error TOC overflow" add -mminimal-toc to
8439       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8440       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8441
8442       archive_cmds=''
8443       hardcode_direct=yes
8444       hardcode_direct_absolute=yes
8445       hardcode_libdir_separator=':'
8446       link_all_deplibs=yes
8447       file_list_spec='${wl}-f,'
8448
8449       if test "$GCC" = yes; then
8450         case $host_os in aix4.[012]|aix4.[012].*)
8451         # We only want to do this on AIX 4.2 and lower, the check
8452         # below for broken collect2 doesn't work under 4.3+
8453           collect2name=`${CC} -print-prog-name=collect2`
8454           if test -f "$collect2name" &&
8455            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8456           then
8457           # We have reworked collect2
8458           :
8459           else
8460           # We have old collect2
8461           hardcode_direct=unsupported
8462           # It fails to find uninstalled libraries when the uninstalled
8463           # path is not listed in the libpath.  Setting hardcode_minus_L
8464           # to unsupported forces relinking
8465           hardcode_minus_L=yes
8466           hardcode_libdir_flag_spec='-L$libdir'
8467           hardcode_libdir_separator=
8468           fi
8469           ;;
8470         esac
8471         shared_flag='-shared'
8472         if test "$aix_use_runtimelinking" = yes; then
8473           shared_flag="$shared_flag "'${wl}-G'
8474         fi
8475       else
8476         # not using gcc
8477         if test "$host_cpu" = ia64; then
8478         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8479         # chokes on -Wl,-G. The following line is correct:
8480           shared_flag='-G'
8481         else
8482           if test "$aix_use_runtimelinking" = yes; then
8483             shared_flag='${wl}-G'
8484           else
8485             shared_flag='${wl}-bM:SRE'
8486           fi
8487         fi
8488       fi
8489
8490       # It seems that -bexpall does not export symbols beginning with
8491       # underscore (_), so it is better to generate a list of symbols to export.
8492       always_export_symbols=yes
8493       if test "$aix_use_runtimelinking" = yes; then
8494         # Warning - without using the other runtime loading flags (-brtl),
8495         # -berok will link without error, but may produce a broken library.
8496         allow_undefined_flag='-berok'
8497         # Determine the default libpath from the value encoded in an
8498         # empty executable.
8499         cat >conftest.$ac_ext <<_ACEOF
8500 /* confdefs.h.  */
8501 _ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h.  */
8505
8506 int
8507 main ()
8508 {
8509
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } &&
8523          { ac_try='test -z "$ac_c_werror_flag"
8524                          || test ! -s conftest.err'
8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526   (eval $ac_try) 2>&5
8527   ac_status=$?
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); }; } &&
8530          { ac_try='test -s conftest$ac_exeext'
8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532   (eval $ac_try) 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; }; then
8536
8537 lt_aix_libpath_sed='
8538     /Import File Strings/,/^$/ {
8539         /^0/ {
8540             s/^0  *\(.*\)$/\1/
8541             p
8542         }
8543     }'
8544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8545 # Check for a 64-bit object if we didn't find anything.
8546 if test -z "$aix_libpath"; then
8547   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8548 fi
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 fi
8554 rm -f conftest.err conftest.$ac_objext \
8555       conftest$ac_exeext conftest.$ac_ext
8556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8557
8558         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8559         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"
8560       else
8561         if test "$host_cpu" = ia64; then
8562           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8563           allow_undefined_flag="-z nodefs"
8564           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"
8565         else
8566          # Determine the default libpath from the value encoded in an
8567          # empty executable.
8568          cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h.  */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h.  */
8574
8575 int
8576 main ()
8577 {
8578
8579   ;
8580   return 0;
8581 }
8582 _ACEOF
8583 rm -f conftest.$ac_objext conftest$ac_exeext
8584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8585   (eval $ac_link) 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } &&
8592          { ac_try='test -z "$ac_c_werror_flag"
8593                          || test ! -s conftest.err'
8594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595   (eval $ac_try) 2>&5
8596   ac_status=$?
8597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598   (exit $ac_status); }; } &&
8599          { ac_try='test -s conftest$ac_exeext'
8600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601   (eval $ac_try) 2>&5
8602   ac_status=$?
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); }; }; then
8605
8606 lt_aix_libpath_sed='
8607     /Import File Strings/,/^$/ {
8608         /^0/ {
8609             s/^0  *\(.*\)$/\1/
8610             p
8611         }
8612     }'
8613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8614 # Check for a 64-bit object if we didn't find anything.
8615 if test -z "$aix_libpath"; then
8616   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8617 fi
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 fi
8623 rm -f conftest.err conftest.$ac_objext \
8624       conftest$ac_exeext conftest.$ac_ext
8625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8626
8627          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8628           # Warning - without using the other run time loading flags,
8629           # -berok will link without error, but may produce a broken library.
8630           no_undefined_flag=' ${wl}-bernotok'
8631           allow_undefined_flag=' ${wl}-berok'
8632           # Exported symbols can be pulled into shared objects from archives
8633           whole_archive_flag_spec='$convenience'
8634           archive_cmds_need_lc=yes
8635           # This is similar to how AIX traditionally builds its shared libraries.
8636           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'
8637         fi
8638       fi
8639       ;;
8640
8641     amigaos*)
8642       if test "$host_cpu" = m68k; then
8643         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)'
8644         hardcode_libdir_flag_spec='-L$libdir'
8645         hardcode_minus_L=yes
8646       fi
8647       # see comment about different semantics on the GNU ld section
8648       ld_shlibs=no
8649       ;;
8650
8651     bsdi[45]*)
8652       export_dynamic_flag_spec=-rdynamic
8653       ;;
8654
8655     cygwin* | mingw* | pw32*)
8656       # When not using gcc, we currently assume that we are using
8657       # Microsoft Visual C++.
8658       # hardcode_libdir_flag_spec is actually meaningless, as there is
8659       # no search path for DLLs.
8660       hardcode_libdir_flag_spec=' '
8661       allow_undefined_flag=unsupported
8662       # Tell ltmain to make .lib files, not .a files.
8663       libext=lib
8664       # Tell ltmain to make .dll files, not .so files.
8665       shrext_cmds=".dll"
8666       # FIXME: Setting linknames here is a bad hack.
8667       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8668       # The linker will automatically build a .lib file if we build a DLL.
8669       old_archive_from_new_cmds='true'
8670       # FIXME: Should let the user specify the lib program.
8671       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8672       fix_srcfile_path='`cygpath -w "$srcfile"`'
8673       enable_shared_with_static_runtimes=yes
8674       ;;
8675
8676     darwin* | rhapsody*)
8677       case $host_os in
8678       rhapsody* | darwin1.[012])
8679         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8680         ;;
8681       *) # Darwin 1.3 on
8682         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8683         10.[012])
8684           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8685           ;;
8686         10.*)
8687           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8688           ;;
8689         esac
8690         ;;
8691       esac
8692       archive_cmds_need_lc=no
8693       hardcode_direct=no
8694       hardcode_automatic=yes
8695       hardcode_shlibpath_var=unsupported
8696       whole_archive_flag_spec=''
8697       link_all_deplibs=yes
8698       if test "$GCC" = yes ; then
8699         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702   lt_cv_apple_cc_single_mod=no
8703         if test -z "${LT_MULTI_MODULE}"; then
8704           # By default we will add the -single_module flag. You can override
8705           # by either setting the environment variable LT_MULTI_MODULE
8706           # non-empty at configure time, or by adding -multi-module to the
8707           # link flags.
8708           echo "int foo(void){return 1;}" > conftest.c
8709           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8710               -dynamiclib ${wl}-single_module conftest.c
8711           if test -f libconftest.dylib; then
8712               lt_cv_apple_cc_single_mod=yes
8713               rm libconftest.dylib
8714           fi
8715           rm conftest.$ac_ext
8716         fi
8717 fi
8718
8719         output_verbose_link_cmd=echo
8720         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8721           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8722           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}'
8723         else
8724           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8725           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}'
8726         fi
8727         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8728         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}'
8729       else
8730         case $cc_basename in
8731         xlc*)
8732           output_verbose_link_cmd=echo
8733           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8734           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8735           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8736           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}'
8737           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}'
8738           ;;
8739         *)
8740           ld_shlibs=no
8741           ;;
8742         esac
8743       fi
8744       ;;
8745
8746     dgux*)
8747       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8748       hardcode_libdir_flag_spec='-L$libdir'
8749       hardcode_shlibpath_var=no
8750       ;;
8751
8752     freebsd1*)
8753       ld_shlibs=no
8754       ;;
8755
8756     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8757     # support.  Future versions do this automatically, but an explicit c++rt0.o
8758     # does not break anything, and helps significantly (at the cost of a little
8759     # extra space).
8760     freebsd2.2*)
8761       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8762       hardcode_libdir_flag_spec='-R$libdir'
8763       hardcode_direct=yes
8764       hardcode_shlibpath_var=no
8765       ;;
8766
8767     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8768     freebsd2*)
8769       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8770       hardcode_direct=yes
8771       hardcode_minus_L=yes
8772       hardcode_shlibpath_var=no
8773       ;;
8774
8775     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8776     freebsd* | dragonfly*)
8777       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8778       hardcode_libdir_flag_spec='-R$libdir'
8779       hardcode_direct=yes
8780       hardcode_shlibpath_var=no
8781       ;;
8782
8783     hpux9*)
8784       if test "$GCC" = yes; then
8785         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'
8786       else
8787         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'
8788       fi
8789       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8790       hardcode_libdir_separator=:
8791       hardcode_direct=yes
8792
8793       # hardcode_minus_L: Not really in the search PATH,
8794       # but as the default location of the library.
8795       hardcode_minus_L=yes
8796       export_dynamic_flag_spec='${wl}-E'
8797       ;;
8798
8799     hpux10*)
8800       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8801         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8802       else
8803         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8804       fi
8805       if test "$with_gnu_ld" = no; then
8806         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807         hardcode_libdir_flag_spec_ld='+b $libdir'
8808         hardcode_libdir_separator=:
8809         hardcode_direct=yes
8810         hardcode_direct_absolute=yes
8811         export_dynamic_flag_spec='${wl}-E'
8812         # hardcode_minus_L: Not really in the search PATH,
8813         # but as the default location of the library.
8814         hardcode_minus_L=yes
8815       fi
8816       ;;
8817
8818     hpux11*)
8819       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8820         case $host_cpu in
8821         hppa*64*)
8822           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8823           ;;
8824         ia64*)
8825           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8826           ;;
8827         *)
8828           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8829           ;;
8830         esac
8831       else
8832         case $host_cpu in
8833         hppa*64*)
8834           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835           ;;
8836         ia64*)
8837           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8838           ;;
8839         *)
8840           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8841           ;;
8842         esac
8843       fi
8844       if test "$with_gnu_ld" = no; then
8845         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8846         hardcode_libdir_separator=:
8847
8848         case $host_cpu in
8849         hppa*64*|ia64*)
8850           hardcode_direct=no
8851           hardcode_shlibpath_var=no
8852           ;;
8853         *)
8854           hardcode_direct=yes
8855           hardcode_direct_absolute=yes
8856           export_dynamic_flag_spec='${wl}-E'
8857
8858           # hardcode_minus_L: Not really in the search PATH,
8859           # but as the default location of the library.
8860           hardcode_minus_L=yes
8861           ;;
8862         esac
8863       fi
8864       ;;
8865
8866     irix5* | irix6* | nonstopux*)
8867       if test "$GCC" = yes; then
8868         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'
8869         # Try to use the -exported_symbol ld option, if it does not
8870         # work, assume that -exports_file does not work either and
8871         # implicitly export all symbols.
8872         save_LDFLAGS="$LDFLAGS"
8873         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8874         cat >conftest.$ac_ext <<_ACEOF
8875 int foo(void) {}
8876 _ACEOF
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879   (eval $ac_link) 2>conftest.er1
8880   ac_status=$?
8881   grep -v '^ *+' conftest.er1 >conftest.err
8882   rm -f conftest.er1
8883   cat conftest.err >&5
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); } &&
8886          { ac_try='test -z "$ac_c_werror_flag"
8887                          || test ! -s conftest.err'
8888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889   (eval $ac_try) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); }; } &&
8893          { ac_try='test -s conftest$ac_exeext'
8894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895   (eval $ac_try) 2>&5
8896   ac_status=$?
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); }; }; then
8899   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'
8900
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 fi
8906 rm -f conftest.err conftest.$ac_objext \
8907       conftest$ac_exeext conftest.$ac_ext
8908         LDFLAGS="$save_LDFLAGS"
8909       else
8910         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'
8911         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'
8912       fi
8913       archive_cmds_need_lc='no'
8914       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8915       hardcode_libdir_separator=:
8916       inherit_rpath=yes
8917       link_all_deplibs=yes
8918       ;;
8919
8920     netbsd*)
8921       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8922         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8923       else
8924         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8925       fi
8926       hardcode_libdir_flag_spec='-R$libdir'
8927       hardcode_direct=yes
8928       hardcode_shlibpath_var=no
8929       ;;
8930
8931     newsos6)
8932       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933       hardcode_direct=yes
8934       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8935       hardcode_libdir_separator=:
8936       hardcode_shlibpath_var=no
8937       ;;
8938
8939     *nto* | *qnx*)
8940       ;;
8941
8942     openbsd*)
8943       hardcode_direct=yes
8944       hardcode_shlibpath_var=no
8945       hardcode_direct_absolute=yes
8946       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8947         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8948         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8949         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8950         export_dynamic_flag_spec='${wl}-E'
8951       else
8952         case $host_os in
8953         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8954           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8955           hardcode_libdir_flag_spec='-R$libdir'
8956           ;;
8957         *)
8958           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8959           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8960           ;;
8961         esac
8962       fi
8963       ;;
8964
8965     os2*)
8966       hardcode_libdir_flag_spec='-L$libdir'
8967       hardcode_minus_L=yes
8968       allow_undefined_flag=unsupported
8969       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'
8970       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8971       ;;
8972
8973     osf3*)
8974       if test "$GCC" = yes; then
8975         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8976         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'
8977       else
8978         allow_undefined_flag=' -expect_unresolved \*'
8979         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'
8980       fi
8981       archive_cmds_need_lc='no'
8982       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8983       hardcode_libdir_separator=:
8984       ;;
8985
8986     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8987       if test "$GCC" = yes; then
8988         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8989         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'
8990         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8991       else
8992         allow_undefined_flag=' -expect_unresolved \*'
8993         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'
8994         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~
8995         $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'
8996
8997         # Both c and cxx compiler support -rpath directly
8998         hardcode_libdir_flag_spec='-rpath $libdir'
8999       fi
9000       archive_cmds_need_lc='no'
9001       hardcode_libdir_separator=:
9002       ;;
9003
9004     solaris*)
9005       no_undefined_flag=' -z defs'
9006       if test "$GCC" = yes; then
9007         wlarc='${wl}'
9008         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9009         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9010           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9011       else
9012         case `$CC -V 2>&1` in
9013         *"Compilers 5.0"*)
9014           wlarc=''
9015           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9017           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9018           ;;
9019         *)
9020           wlarc='${wl}'
9021           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9022           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9023           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9024           ;;
9025         esac
9026       fi
9027       hardcode_libdir_flag_spec='-R$libdir'
9028       hardcode_shlibpath_var=no
9029       case $host_os in
9030       solaris2.[0-5] | solaris2.[0-5].*) ;;
9031       *)
9032         # The compiler driver will combine and reorder linker options,
9033         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9034         # but is careful enough not to reorder.
9035         # Supported since Solaris 2.6 (maybe 2.5.1?)
9036         if test "$GCC" = yes; then
9037           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9038         else
9039           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9040         fi
9041         ;;
9042       esac
9043       link_all_deplibs=yes
9044       ;;
9045
9046     sunos4*)
9047       if test "x$host_vendor" = xsequent; then
9048         # Use $CC to link under sequent, because it throws in some extra .o
9049         # files that make .init and .fini sections work.
9050         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9051       else
9052         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9053       fi
9054       hardcode_libdir_flag_spec='-L$libdir'
9055       hardcode_direct=yes
9056       hardcode_minus_L=yes
9057       hardcode_shlibpath_var=no
9058       ;;
9059
9060     sysv4)
9061       case $host_vendor in
9062         sni)
9063           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9064           hardcode_direct=yes # is this really true???
9065         ;;
9066         siemens)
9067           ## LD is ld it makes a PLAMLIB
9068           ## CC just makes a GrossModule.
9069           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9070           reload_cmds='$CC -r -o $output$reload_objs'
9071           hardcode_direct=no
9072         ;;
9073         motorola)
9074           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9076         ;;
9077       esac
9078       runpath_var='LD_RUN_PATH'
9079       hardcode_shlibpath_var=no
9080       ;;
9081
9082     sysv4.3*)
9083       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084       hardcode_shlibpath_var=no
9085       export_dynamic_flag_spec='-Bexport'
9086       ;;
9087
9088     sysv4*MP*)
9089       if test -d /usr/nec; then
9090         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091         hardcode_shlibpath_var=no
9092         runpath_var=LD_RUN_PATH
9093         hardcode_runpath_var=yes
9094         ld_shlibs=yes
9095       fi
9096       ;;
9097
9098     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9099       no_undefined_flag='${wl}-z,text'
9100       archive_cmds_need_lc=no
9101       hardcode_shlibpath_var=no
9102       runpath_var='LD_RUN_PATH'
9103
9104       if test "$GCC" = yes; then
9105         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9106         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9107       else
9108         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9109         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9110       fi
9111       ;;
9112
9113     sysv5* | sco3.2v5* | sco5v6*)
9114       # Note: We can NOT use -z defs as we might desire, because we do not
9115       # link with -lc, and that would cause any symbols used from libc to
9116       # always be unresolved, which means just about no library would
9117       # ever link correctly.  If we're not using GNU ld we use -z text
9118       # though, which does catch some bad symbols but isn't as heavy-handed
9119       # as -z defs.
9120       no_undefined_flag='${wl}-z,text'
9121       allow_undefined_flag='${wl}-z,nodefs'
9122       archive_cmds_need_lc=no
9123       hardcode_shlibpath_var=no
9124       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9125       hardcode_libdir_separator=':'
9126       link_all_deplibs=yes
9127       export_dynamic_flag_spec='${wl}-Bexport'
9128       runpath_var='LD_RUN_PATH'
9129
9130       if test "$GCC" = yes; then
9131         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9132         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133       else
9134         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9135         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9136       fi
9137       ;;
9138
9139     uts4*)
9140       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9141       hardcode_libdir_flag_spec='-L$libdir'
9142       hardcode_shlibpath_var=no
9143       ;;
9144
9145     *)
9146       ld_shlibs=no
9147       ;;
9148     esac
9149
9150     if test x$host_vendor = xsni; then
9151       case $host in
9152       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9153         export_dynamic_flag_spec='${wl}-Blargedynsym'
9154         ;;
9155       esac
9156     fi
9157   fi
9158
9159 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9160 echo "${ECHO_T}$ld_shlibs" >&6
9161 test "$ld_shlibs" = no && can_build_shared=no
9162
9163 with_gnu_ld=$with_gnu_ld
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179 #
9180 # Do we need to explicitly link libc?
9181 #
9182 case "x$archive_cmds_need_lc" in
9183 x|xyes)
9184   # Assume -lc should be added
9185   archive_cmds_need_lc=yes
9186
9187   if test "$enable_shared" = yes && test "$GCC" = yes; then
9188     case $archive_cmds in
9189     *'~'*)
9190       # FIXME: we may have to deal with multi-command sequences.
9191       ;;
9192     '$CC '*)
9193       # Test whether the compiler implicitly links with -lc since on some
9194       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9195       # to ld, don't add -lc before -lgcc.
9196       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9197 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9198       $RM conftest*
9199       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9200
9201       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202   (eval $ac_compile) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); } 2>conftest.err; then
9206         soname=conftest
9207         lib=conftest
9208         libobjs=conftest.$ac_objext
9209         deplibs=
9210         wl=$lt_prog_compiler_wl
9211         pic_flag=$lt_prog_compiler_pic
9212         compiler_flags=-v
9213         linker_flags=-v
9214         verstring=
9215         output_objdir=.
9216         libname=conftest
9217         lt_save_allow_undefined_flag=$allow_undefined_flag
9218         allow_undefined_flag=
9219         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9220   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9221   ac_status=$?
9222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223   (exit $ac_status); }
9224         then
9225           archive_cmds_need_lc=no
9226         else
9227           archive_cmds_need_lc=yes
9228         fi
9229         allow_undefined_flag=$lt_save_allow_undefined_flag
9230       else
9231         cat conftest.err 1>&5
9232       fi
9233       $RM conftest*
9234       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9235 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9236       ;;
9237     esac
9238   fi
9239   ;;
9240 esac
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
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   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9399 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9400 withGCC=$GCC
9401 if test "$withGCC" = yes; then
9402   case $host_os in
9403     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9404     *) lt_awk_arg="/^libraries:/" ;;
9405   esac
9406   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9407   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9408     # if the path contains ";" then we assume it to be the separator
9409     # otherwise default to the standard path separator (i.e. ":") - it is
9410     # assumed that no part of a normal pathname contains ";" but that should
9411     # okay in the real world where ";" in dirpaths is itself problematic.
9412     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9413   else
9414     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9415   fi
9416   # Ok, now we have the path, separated by spaces, we can step through it
9417   # and add multilib dir if necessary.
9418   lt_tmp_lt_search_path_spec=
9419   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9420   for lt_sys_path in $lt_search_path_spec; do
9421     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9422       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9423     else
9424       test -d "$lt_sys_path" && \
9425         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9426     fi
9427   done
9428   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9429 BEGIN {RS=" "; FS="/|\n";} {
9430   lt_foo="";
9431   lt_count=0;
9432   for (lt_i = NF; lt_i > 0; lt_i--) {
9433     if ($lt_i != "" && $lt_i != ".") {
9434       if ($lt_i == "..") {
9435         lt_count++;
9436       } else {
9437         if (lt_count == 0) {
9438           lt_foo="/" $lt_i lt_foo;
9439         } else {
9440           lt_count--;
9441         }
9442       }
9443     }
9444   }
9445   if (lt_foo != "") { lt_freq[lt_foo]++; }
9446   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9447 }'`
9448   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9449 else
9450   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9451 fi
9452 library_names_spec=
9453 libname_spec='lib$name'
9454 soname_spec=
9455 shrext_cmds=".so"
9456 postinstall_cmds=
9457 postuninstall_cmds=
9458 finish_cmds=
9459 finish_eval=
9460 shlibpath_var=
9461 shlibpath_overrides_runpath=unknown
9462 version_type=none
9463 dynamic_linker="$host_os ld.so"
9464 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9465 need_lib_prefix=unknown
9466 hardcode_into_libs=no
9467
9468 # when you set need_version to no, make sure it does not cause -set_version
9469 # flags to be left without arguments
9470 need_version=unknown
9471
9472 case $host_os in
9473 aix3*)
9474   version_type=linux
9475   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9476   shlibpath_var=LIBPATH
9477
9478   # AIX 3 has no versioning support, so we append a major version to the name.
9479   soname_spec='${libname}${release}${shared_ext}$major'
9480   ;;
9481
9482 aix[4-9]*)
9483   version_type=linux
9484   need_lib_prefix=no
9485   need_version=no
9486   hardcode_into_libs=yes
9487   if test "$host_cpu" = ia64; then
9488     # AIX 5 supports IA64
9489     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9490     shlibpath_var=LD_LIBRARY_PATH
9491   else
9492     # With GCC up to 2.95.x, collect2 would create an import file
9493     # for dependence libraries.  The import file would start with
9494     # the line `#! .'.  This would cause the generated library to
9495     # depend on `.', always an invalid library.  This was fixed in
9496     # development snapshots of GCC prior to 3.0.
9497     case $host_os in
9498       aix4 | aix4.[01] | aix4.[01].*)
9499       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9500            echo ' yes '
9501            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9502         :
9503       else
9504         can_build_shared=no
9505       fi
9506       ;;
9507     esac
9508     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9509     # soname into executable. Probably we can add versioning support to
9510     # collect2, so additional links can be useful in future.
9511     if test "$aix_use_runtimelinking" = yes; then
9512       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9513       # instead of lib<name>.a to let people know that these are not
9514       # typical AIX shared libraries.
9515       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516     else
9517       # We preserve .a as extension for shared libraries through AIX4.2
9518       # and later when we are not doing run time linking.
9519       library_names_spec='${libname}${release}.a $libname.a'
9520       soname_spec='${libname}${release}${shared_ext}$major'
9521     fi
9522     shlibpath_var=LIBPATH
9523   fi
9524   ;;
9525
9526 amigaos*)
9527   if test "$host_cpu" = m68k; then
9528     library_names_spec='$libname.ixlibrary $libname.a'
9529     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9530     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'
9531   else
9532     dynamic_linker=no
9533   fi
9534   ;;
9535
9536 beos*)
9537   library_names_spec='${libname}${shared_ext}'
9538   dynamic_linker="$host_os ld.so"
9539   shlibpath_var=LIBRARY_PATH
9540   ;;
9541
9542 bsdi[45]*)
9543   version_type=linux
9544   need_version=no
9545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546   soname_spec='${libname}${release}${shared_ext}$major'
9547   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9548   shlibpath_var=LD_LIBRARY_PATH
9549   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9550   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9551   # the default ld.so.conf also contains /usr/contrib/lib and
9552   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9553   # libtool to hard-code these into programs
9554   ;;
9555
9556 cygwin* | mingw* | pw32*)
9557   version_type=windows
9558   shrext_cmds=".dll"
9559   need_version=no
9560   need_lib_prefix=no
9561
9562   case $withGCC,$host_os in
9563   yes,cygwin* | yes,mingw* | yes,pw32*)
9564     library_names_spec='$libname.dll.a'
9565     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9566     postinstall_cmds='base_file=`basename \${file}`~
9567       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9568       dldir=$destdir/`dirname \$dlpath`~
9569       test -d \$dldir || mkdir -p \$dldir~
9570       $install_prog $dir/$dlname \$dldir/$dlname~
9571       chmod a+x \$dldir/$dlname~
9572       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9573         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9574       fi'
9575     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9576       dlpath=$dir/\$dldll~
9577        $RM \$dlpath'
9578     shlibpath_overrides_runpath=yes
9579
9580     case $host_os in
9581     cygwin*)
9582       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9583       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9584       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9585       ;;
9586     mingw*)
9587       # MinGW DLLs use traditional 'lib' prefix
9588       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9589       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9590       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9591         # It is most probably a Windows format PATH printed by
9592         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9593         # path with ; separators, and with drive letters. We can handle the
9594         # drive letters (cygwin fileutils understands them), so leave them,
9595         # especially as we might pass files found there to a mingw objdump,
9596         # which wouldn't understand a cygwinified path. Ahh.
9597         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9598       else
9599         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9600       fi
9601       ;;
9602     pw32*)
9603       # pw32 DLLs use 'pw' prefix rather than 'lib'
9604       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9605       ;;
9606     esac
9607     ;;
9608
9609   *)
9610     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9611     ;;
9612   esac
9613   dynamic_linker='Win32 ld.exe'
9614   # FIXME: first we should search . and the directory the executable is in
9615   shlibpath_var=PATH
9616   ;;
9617
9618 darwin* | rhapsody*)
9619   dynamic_linker="$host_os dyld"
9620   version_type=darwin
9621   need_lib_prefix=no
9622   need_version=no
9623   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9624   soname_spec='${libname}${release}${major}$shared_ext'
9625   shlibpath_overrides_runpath=yes
9626   shlibpath_var=DYLD_LIBRARY_PATH
9627   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9628
9629   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9630   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9631   ;;
9632
9633 dgux*)
9634   version_type=linux
9635   need_lib_prefix=no
9636   need_version=no
9637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9638   soname_spec='${libname}${release}${shared_ext}$major'
9639   shlibpath_var=LD_LIBRARY_PATH
9640   ;;
9641
9642 freebsd1*)
9643   dynamic_linker=no
9644   ;;
9645
9646 freebsd* | dragonfly*)
9647   # DragonFly does not have aout.  When/if they implement a new
9648   # versioning mechanism, adjust this.
9649   if test -x /usr/bin/objformat; then
9650     objformat=`/usr/bin/objformat`
9651   else
9652     case $host_os in
9653     freebsd[123]*) objformat=aout ;;
9654     *) objformat=elf ;;
9655     esac
9656   fi
9657   version_type=freebsd-$objformat
9658   case $version_type in
9659     freebsd-elf*)
9660       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9661       need_version=no
9662       need_lib_prefix=no
9663       ;;
9664     freebsd-*)
9665       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9666       need_version=yes
9667       ;;
9668   esac
9669   shlibpath_var=LD_LIBRARY_PATH
9670   case $host_os in
9671   freebsd2*)
9672     shlibpath_overrides_runpath=yes
9673     ;;
9674   freebsd3.[01]* | freebsdelf3.[01]*)
9675     shlibpath_overrides_runpath=yes
9676     hardcode_into_libs=yes
9677     ;;
9678   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9679   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9680     shlibpath_overrides_runpath=no
9681     hardcode_into_libs=yes
9682     ;;
9683   *) # from 4.6 on, and DragonFly
9684     shlibpath_overrides_runpath=yes
9685     hardcode_into_libs=yes
9686     ;;
9687   esac
9688   ;;
9689
9690 gnu*)
9691   version_type=linux
9692   need_lib_prefix=no
9693   need_version=no
9694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9695   soname_spec='${libname}${release}${shared_ext}$major'
9696   shlibpath_var=LD_LIBRARY_PATH
9697   hardcode_into_libs=yes
9698   ;;
9699
9700 hpux9* | hpux10* | hpux11*)
9701   # Give a soname corresponding to the major version so that dld.sl refuses to
9702   # link against other versions.
9703   version_type=sunos
9704   need_lib_prefix=no
9705   need_version=no
9706   case $host_cpu in
9707   ia64*)
9708     shrext_cmds='.so'
9709     hardcode_into_libs=yes
9710     dynamic_linker="$host_os dld.so"
9711     shlibpath_var=LD_LIBRARY_PATH
9712     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9713     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714     soname_spec='${libname}${release}${shared_ext}$major'
9715     if test "X$HPUX_IA64_MODE" = X32; then
9716       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9717     else
9718       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9719     fi
9720     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9721     ;;
9722   hppa*64*)
9723     shrext_cmds='.sl'
9724     hardcode_into_libs=yes
9725     dynamic_linker="$host_os dld.sl"
9726     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9727     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729     soname_spec='${libname}${release}${shared_ext}$major'
9730     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9731     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9732     ;;
9733   *)
9734     shrext_cmds='.sl'
9735     dynamic_linker="$host_os dld.sl"
9736     shlibpath_var=SHLIB_PATH
9737     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9739     soname_spec='${libname}${release}${shared_ext}$major'
9740     ;;
9741   esac
9742   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9743   postinstall_cmds='chmod 555 $lib'
9744   ;;
9745
9746 interix[3-9]*)
9747   version_type=linux
9748   need_lib_prefix=no
9749   need_version=no
9750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9751   soname_spec='${libname}${release}${shared_ext}$major'
9752   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9753   shlibpath_var=LD_LIBRARY_PATH
9754   shlibpath_overrides_runpath=no
9755   hardcode_into_libs=yes
9756   ;;
9757
9758 irix5* | irix6* | nonstopux*)
9759   case $host_os in
9760     nonstopux*) version_type=nonstopux ;;
9761     *)
9762         if test "$lt_cv_prog_gnu_ld" = yes; then
9763                 version_type=linux
9764         else
9765                 version_type=irix
9766         fi ;;
9767   esac
9768   need_lib_prefix=no
9769   need_version=no
9770   soname_spec='${libname}${release}${shared_ext}$major'
9771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9772   case $host_os in
9773   irix5* | nonstopux*)
9774     libsuff= shlibsuff=
9775     ;;
9776   *)
9777     case $LD in # libtool.m4 will add one of these switches to LD
9778     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9779       libsuff= shlibsuff= libmagic=32-bit;;
9780     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9781       libsuff=32 shlibsuff=N32 libmagic=N32;;
9782     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9783       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9784     *) libsuff= shlibsuff= libmagic=never-match;;
9785     esac
9786     ;;
9787   esac
9788   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9789   shlibpath_overrides_runpath=no
9790   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9791   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9792   hardcode_into_libs=yes
9793   ;;
9794
9795 # No shared lib support for Linux oldld, aout, or coff.
9796 linux*oldld* | linux*aout* | linux*coff*)
9797   dynamic_linker=no
9798   ;;
9799
9800 # This must be Linux ELF.
9801 linux* | k*bsd*-gnu)
9802   version_type=linux
9803   need_lib_prefix=no
9804   need_version=no
9805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806   soname_spec='${libname}${release}${shared_ext}$major'
9807   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9808   shlibpath_var=LD_LIBRARY_PATH
9809   shlibpath_overrides_runpath=no
9810   # Some binutils ld are patched to set DT_RUNPATH
9811   save_LDFLAGS=$LDFLAGS
9812   save_libdir=$libdir
9813   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9814        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9815   cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h.  */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h.  */
9821
9822 int
9823 main ()
9824 {
9825
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832   (eval $ac_link) 2>conftest.er1
9833   ac_status=$?
9834   grep -v '^ *+' conftest.er1 >conftest.err
9835   rm -f conftest.er1
9836   cat conftest.err >&5
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } &&
9839          { ac_try='test -z "$ac_c_werror_flag"
9840                          || test ! -s conftest.err'
9841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842   (eval $ac_try) 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; } &&
9846          { ac_try='test -s conftest$ac_exeext'
9847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848   (eval $ac_try) 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9853   shlibpath_overrides_runpath=yes
9854 fi
9855
9856 else
9857   echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9859
9860 fi
9861 rm -f conftest.err conftest.$ac_objext \
9862       conftest$ac_exeext conftest.$ac_ext
9863   LDFLAGS=$save_LDFLAGS
9864   libdir=$save_libdir
9865
9866   # This implies no fast_install, which is unacceptable.
9867   # Some rework will be needed to allow for fast_install
9868   # before this can be enabled.
9869   hardcode_into_libs=yes
9870
9871   # Append ld.so.conf contents to the search path
9872   if test -f /etc/ld.so.conf; then
9873     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' ' '`
9874     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9875   fi
9876
9877   # We used to test for /lib/ld.so.1 and disable shared libraries on
9878   # powerpc, because MkLinux only supported shared libraries with the
9879   # GNU dynamic linker.  Since this was broken with cross compilers,
9880   # most powerpc-linux boxes support dynamic linking these days and
9881   # people can always --disable-shared, the test was removed, and we
9882   # assume the GNU/Linux dynamic linker is in use.
9883   dynamic_linker='GNU/Linux ld.so'
9884   ;;
9885
9886 netbsd*)
9887   version_type=sunos
9888   need_lib_prefix=no
9889   need_version=no
9890   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9892     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9893     dynamic_linker='NetBSD (a.out) ld.so'
9894   else
9895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9896     soname_spec='${libname}${release}${shared_ext}$major'
9897     dynamic_linker='NetBSD ld.elf_so'
9898   fi
9899   shlibpath_var=LD_LIBRARY_PATH
9900   shlibpath_overrides_runpath=yes
9901   hardcode_into_libs=yes
9902   ;;
9903
9904 newsos6)
9905   version_type=linux
9906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907   shlibpath_var=LD_LIBRARY_PATH
9908   shlibpath_overrides_runpath=yes
9909   ;;
9910
9911 *nto* | *qnx*)
9912   version_type=qnx
9913   need_lib_prefix=no
9914   need_version=no
9915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916   soname_spec='${libname}${release}${shared_ext}$major'
9917   shlibpath_var=LD_LIBRARY_PATH
9918   shlibpath_overrides_runpath=no
9919   hardcode_into_libs=yes
9920   dynamic_linker='ldqnx.so'
9921   ;;
9922
9923 openbsd*)
9924   version_type=sunos
9925   sys_lib_dlsearch_path_spec="/usr/lib"
9926   need_lib_prefix=no
9927   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9928   case $host_os in
9929     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9930     *)                          need_version=no  ;;
9931   esac
9932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9933   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9934   shlibpath_var=LD_LIBRARY_PATH
9935   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9936     case $host_os in
9937       openbsd2.[89] | openbsd2.[89].*)
9938         shlibpath_overrides_runpath=no
9939         ;;
9940       *)
9941         shlibpath_overrides_runpath=yes
9942         ;;
9943       esac
9944   else
9945     shlibpath_overrides_runpath=yes
9946   fi
9947   ;;
9948
9949 os2*)
9950   libname_spec='$name'
9951   shrext_cmds=".dll"
9952   need_lib_prefix=no
9953   library_names_spec='$libname${shared_ext} $libname.a'
9954   dynamic_linker='OS/2 ld.exe'
9955   shlibpath_var=LIBPATH
9956   ;;
9957
9958 osf3* | osf4* | osf5*)
9959   version_type=osf
9960   need_lib_prefix=no
9961   need_version=no
9962   soname_spec='${libname}${release}${shared_ext}$major'
9963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964   shlibpath_var=LD_LIBRARY_PATH
9965   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9966   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9967   ;;
9968
9969 rdos*)
9970   dynamic_linker=no
9971   ;;
9972
9973 solaris*)
9974   version_type=linux
9975   need_lib_prefix=no
9976   need_version=no
9977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978   soname_spec='${libname}${release}${shared_ext}$major'
9979   shlibpath_var=LD_LIBRARY_PATH
9980   shlibpath_overrides_runpath=yes
9981   hardcode_into_libs=yes
9982   # ldd complains unless libraries are executable
9983   postinstall_cmds='chmod +x $lib'
9984   ;;
9985
9986 sunos4*)
9987   version_type=sunos
9988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9989   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9990   shlibpath_var=LD_LIBRARY_PATH
9991   shlibpath_overrides_runpath=yes
9992   if test "$with_gnu_ld" = yes; then
9993     need_lib_prefix=no
9994   fi
9995   need_version=yes
9996   ;;
9997
9998 sysv4 | sysv4.3*)
9999   version_type=linux
10000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10001   soname_spec='${libname}${release}${shared_ext}$major'
10002   shlibpath_var=LD_LIBRARY_PATH
10003   case $host_vendor in
10004     sni)
10005       shlibpath_overrides_runpath=no
10006       need_lib_prefix=no
10007       runpath_var=LD_RUN_PATH
10008       ;;
10009     siemens)
10010       need_lib_prefix=no
10011       ;;
10012     motorola)
10013       need_lib_prefix=no
10014       need_version=no
10015       shlibpath_overrides_runpath=no
10016       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10017       ;;
10018   esac
10019   ;;
10020
10021 sysv4*MP*)
10022   if test -d /usr/nec ;then
10023     version_type=linux
10024     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10025     soname_spec='$libname${shared_ext}.$major'
10026     shlibpath_var=LD_LIBRARY_PATH
10027   fi
10028   ;;
10029
10030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10031   version_type=freebsd-elf
10032   need_lib_prefix=no
10033   need_version=no
10034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10035   soname_spec='${libname}${release}${shared_ext}$major'
10036   shlibpath_var=LD_LIBRARY_PATH
10037   shlibpath_overrides_runpath=yes
10038   hardcode_into_libs=yes
10039   if test "$with_gnu_ld" = yes; then
10040     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10041   else
10042     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10043     case $host_os in
10044       sco3.2v5*)
10045         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10046         ;;
10047     esac
10048   fi
10049   sys_lib_dlsearch_path_spec='/usr/lib'
10050   ;;
10051
10052 tpf*)
10053   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10054   version_type=linux
10055   need_lib_prefix=no
10056   need_version=no
10057   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058   shlibpath_var=LD_LIBRARY_PATH
10059   shlibpath_overrides_runpath=no
10060   hardcode_into_libs=yes
10061   ;;
10062
10063 uts4*)
10064   version_type=linux
10065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066   soname_spec='${libname}${release}${shared_ext}$major'
10067   shlibpath_var=LD_LIBRARY_PATH
10068   ;;
10069
10070 *)
10071   dynamic_linker=no
10072   ;;
10073 esac
10074 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10075 echo "${ECHO_T}$dynamic_linker" >&6
10076 test "$dynamic_linker" = no && can_build_shared=no
10077
10078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10079 if test "$GCC" = yes; then
10080   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10081 fi
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
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   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10170 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10171 hardcode_action=
10172 if test -n "$hardcode_libdir_flag_spec" ||
10173    test -n "$runpath_var" ||
10174    test "X$hardcode_automatic" = "Xyes" ; then
10175
10176   # We can hardcode non-existent directories.
10177   if test "$hardcode_direct" != no &&
10178      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10179      # have to relink, otherwise we might link with an installed library
10180      # when we should be linking with a yet-to-be-installed one
10181      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10182      test "$hardcode_minus_L" != no; then
10183     # Linking always hardcodes the temporary library directory.
10184     hardcode_action=relink
10185   else
10186     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10187     hardcode_action=immediate
10188   fi
10189 else
10190   # We cannot hardcode anything, or else we can only hardcode existing
10191   # directories.
10192   hardcode_action=unsupported
10193 fi
10194 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10195 echo "${ECHO_T}$hardcode_action" >&6
10196
10197 if test "$hardcode_action" = relink ||
10198    test "$inherit_rpath" = yes; then
10199   # Fast installation is not supported
10200   enable_fast_install=no
10201 elif test "$shlibpath_overrides_runpath" = yes ||
10202      test "$enable_shared" = no; then
10203   # Fast installation is not necessary
10204   enable_fast_install=needless
10205 fi
10206
10207
10208
10209
10210
10211
10212   if test "x$enable_dlopen" != xyes; then
10213   enable_dlopen=unknown
10214   enable_dlopen_self=unknown
10215   enable_dlopen_self_static=unknown
10216 else
10217   lt_cv_dlopen=no
10218   lt_cv_dlopen_libs=
10219
10220   case $host_os in
10221   beos*)
10222     lt_cv_dlopen="load_add_on"
10223     lt_cv_dlopen_libs=
10224     lt_cv_dlopen_self=yes
10225     ;;
10226
10227   mingw* | pw32*)
10228     lt_cv_dlopen="LoadLibrary"
10229     lt_cv_dlopen_libs=
10230     ;;
10231
10232   cygwin*)
10233     lt_cv_dlopen="dlopen"
10234     lt_cv_dlopen_libs=
10235     ;;
10236
10237   darwin*)
10238   # if libdl is installed we need to link against it
10239     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10240 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-ldl  $LIBS"
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252
10253 /* Override any gcc2 internal prototype to avoid an error.  */
10254 #ifdef __cplusplus
10255 extern "C"
10256 #endif
10257 /* We use char because int might match the return type of a gcc2
10258    builtin and then its argument prototype would still apply.  */
10259 char dlopen ();
10260 int
10261 main ()
10262 {
10263 dlopen ();
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10270   (eval $ac_link) 2>conftest.er1
10271   ac_status=$?
10272   grep -v '^ *+' conftest.er1 >conftest.err
10273   rm -f conftest.er1
10274   cat conftest.err >&5
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); } &&
10277          { ac_try='test -z "$ac_c_werror_flag"
10278                          || test ! -s conftest.err'
10279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280   (eval $ac_try) 2>&5
10281   ac_status=$?
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); }; } &&
10284          { ac_try='test -s conftest$ac_exeext'
10285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286   (eval $ac_try) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; }; then
10290   ac_cv_lib_dl_dlopen=yes
10291 else
10292   echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10294
10295 ac_cv_lib_dl_dlopen=no
10296 fi
10297 rm -f conftest.err conftest.$ac_objext \
10298       conftest$ac_exeext conftest.$ac_ext
10299 LIBS=$ac_check_lib_save_LIBS
10300 fi
10301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10303 if test $ac_cv_lib_dl_dlopen = yes; then
10304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10305 else
10306
10307     lt_cv_dlopen="dyld"
10308     lt_cv_dlopen_libs=
10309     lt_cv_dlopen_self=yes
10310
10311 fi
10312
10313     ;;
10314
10315   *)
10316     echo "$as_me:$LINENO: checking for shl_load" >&5
10317 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10318 if test "${ac_cv_func_shl_load+set}" = set; then
10319   echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321   cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10329 #define shl_load innocuous_shl_load
10330
10331 /* System header to define __stub macros and hopefully few prototypes,
10332     which can conflict with char shl_load (); below.
10333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10334     <limits.h> exists even on freestanding compilers.  */
10335
10336 #ifdef __STDC__
10337 # include <limits.h>
10338 #else
10339 # include <assert.h>
10340 #endif
10341
10342 #undef shl_load
10343
10344 /* Override any gcc2 internal prototype to avoid an error.  */
10345 #ifdef __cplusplus
10346 extern "C"
10347 {
10348 #endif
10349 /* We use char because int might match the return type of a gcc2
10350    builtin and then its argument prototype would still apply.  */
10351 char shl_load ();
10352 /* The GNU C library defines this for functions which it implements
10353     to always fail with ENOSYS.  Some functions are actually named
10354     something starting with __ and the normal name is an alias.  */
10355 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10356 choke me
10357 #else
10358 char (*f) () = shl_load;
10359 #endif
10360 #ifdef __cplusplus
10361 }
10362 #endif
10363
10364 int
10365 main ()
10366 {
10367 return f != shl_load;
10368   ;
10369   return 0;
10370 }
10371 _ACEOF
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374   (eval $ac_link) 2>conftest.er1
10375   ac_status=$?
10376   grep -v '^ *+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } &&
10381          { ac_try='test -z "$ac_c_werror_flag"
10382                          || test ! -s conftest.err'
10383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384   (eval $ac_try) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); }; } &&
10388          { ac_try='test -s conftest$ac_exeext'
10389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; }; then
10394   ac_cv_func_shl_load=yes
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 ac_cv_func_shl_load=no
10400 fi
10401 rm -f conftest.err conftest.$ac_objext \
10402       conftest$ac_exeext conftest.$ac_ext
10403 fi
10404 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10405 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10406 if test $ac_cv_func_shl_load = yes; then
10407   lt_cv_dlopen="shl_load"
10408 else
10409   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10410 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10411 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414   ac_check_lib_save_LIBS=$LIBS
10415 LIBS="-ldld  $LIBS"
10416 cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h.  */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h.  */
10422
10423 /* Override any gcc2 internal prototype to avoid an error.  */
10424 #ifdef __cplusplus
10425 extern "C"
10426 #endif
10427 /* We use char because int might match the return type of a gcc2
10428    builtin and then its argument prototype would still apply.  */
10429 char shl_load ();
10430 int
10431 main ()
10432 {
10433 shl_load ();
10434   ;
10435   return 0;
10436 }
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440   (eval $ac_link) 2>conftest.er1
10441   ac_status=$?
10442   grep -v '^ *+' conftest.er1 >conftest.err
10443   rm -f conftest.er1
10444   cat conftest.err >&5
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); } &&
10447          { ac_try='test -z "$ac_c_werror_flag"
10448                          || test ! -s conftest.err'
10449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450   (eval $ac_try) 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); }; } &&
10454          { ac_try='test -s conftest$ac_exeext'
10455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456   (eval $ac_try) 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); }; }; then
10460   ac_cv_lib_dld_shl_load=yes
10461 else
10462   echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465 ac_cv_lib_dld_shl_load=no
10466 fi
10467 rm -f conftest.err conftest.$ac_objext \
10468       conftest$ac_exeext conftest.$ac_ext
10469 LIBS=$ac_check_lib_save_LIBS
10470 fi
10471 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10472 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10473 if test $ac_cv_lib_dld_shl_load = yes; then
10474   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10475 else
10476   echo "$as_me:$LINENO: checking for dlopen" >&5
10477 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10478 if test "${ac_cv_func_dlopen+set}" = set; then
10479   echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481   cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h.  */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h.  */
10487 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10489 #define dlopen innocuous_dlopen
10490
10491 /* System header to define __stub macros and hopefully few prototypes,
10492     which can conflict with char dlopen (); below.
10493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10494     <limits.h> exists even on freestanding compilers.  */
10495
10496 #ifdef __STDC__
10497 # include <limits.h>
10498 #else
10499 # include <assert.h>
10500 #endif
10501
10502 #undef dlopen
10503
10504 /* Override any gcc2 internal prototype to avoid an error.  */
10505 #ifdef __cplusplus
10506 extern "C"
10507 {
10508 #endif
10509 /* We use char because int might match the return type of a gcc2
10510    builtin and then its argument prototype would still apply.  */
10511 char dlopen ();
10512 /* The GNU C library defines this for functions which it implements
10513     to always fail with ENOSYS.  Some functions are actually named
10514     something starting with __ and the normal name is an alias.  */
10515 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10516 choke me
10517 #else
10518 char (*f) () = dlopen;
10519 #endif
10520 #ifdef __cplusplus
10521 }
10522 #endif
10523
10524 int
10525 main ()
10526 {
10527 return f != dlopen;
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534   (eval $ac_link) 2>conftest.er1
10535   ac_status=$?
10536   grep -v '^ *+' conftest.er1 >conftest.err
10537   rm -f conftest.er1
10538   cat conftest.err >&5
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } &&
10541          { ac_try='test -z "$ac_c_werror_flag"
10542                          || test ! -s conftest.err'
10543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544   (eval $ac_try) 2>&5
10545   ac_status=$?
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); }; } &&
10548          { ac_try='test -s conftest$ac_exeext'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; }; then
10554   ac_cv_func_dlopen=yes
10555 else
10556   echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10558
10559 ac_cv_func_dlopen=no
10560 fi
10561 rm -f conftest.err conftest.$ac_objext \
10562       conftest$ac_exeext conftest.$ac_ext
10563 fi
10564 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10565 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10566 if test $ac_cv_func_dlopen = yes; then
10567   lt_cv_dlopen="dlopen"
10568 else
10569   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10570 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10571 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10572   echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574   ac_check_lib_save_LIBS=$LIBS
10575 LIBS="-ldl  $LIBS"
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582
10583 /* Override any gcc2 internal prototype to avoid an error.  */
10584 #ifdef __cplusplus
10585 extern "C"
10586 #endif
10587 /* We use char because int might match the return type of a gcc2
10588    builtin and then its argument prototype would still apply.  */
10589 char dlopen ();
10590 int
10591 main ()
10592 {
10593 dlopen ();
10594   ;
10595   return 0;
10596 }
10597 _ACEOF
10598 rm -f conftest.$ac_objext conftest$ac_exeext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10600   (eval $ac_link) 2>conftest.er1
10601   ac_status=$?
10602   grep -v '^ *+' conftest.er1 >conftest.err
10603   rm -f conftest.er1
10604   cat conftest.err >&5
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } &&
10607          { ac_try='test -z "$ac_c_werror_flag"
10608                          || test ! -s conftest.err'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; } &&
10614          { ac_try='test -s conftest$ac_exeext'
10615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616   (eval $ac_try) 2>&5
10617   ac_status=$?
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); }; }; then
10620   ac_cv_lib_dl_dlopen=yes
10621 else
10622   echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 ac_cv_lib_dl_dlopen=no
10626 fi
10627 rm -f conftest.err conftest.$ac_objext \
10628       conftest$ac_exeext conftest.$ac_ext
10629 LIBS=$ac_check_lib_save_LIBS
10630 fi
10631 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10632 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10633 if test $ac_cv_lib_dl_dlopen = yes; then
10634   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10635 else
10636   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10637 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10638 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10639   echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641   ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-lsvld  $LIBS"
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h.  */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h.  */
10649
10650 /* Override any gcc2 internal prototype to avoid an error.  */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 /* We use char because int might match the return type of a gcc2
10655    builtin and then its argument prototype would still apply.  */
10656 char dlopen ();
10657 int
10658 main ()
10659 {
10660 dlopen ();
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667   (eval $ac_link) 2>conftest.er1
10668   ac_status=$?
10669   grep -v '^ *+' conftest.er1 >conftest.err
10670   rm -f conftest.er1
10671   cat conftest.err >&5
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); } &&
10674          { ac_try='test -z "$ac_c_werror_flag"
10675                          || test ! -s conftest.err'
10676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677   (eval $ac_try) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; } &&
10681          { ac_try='test -s conftest$ac_exeext'
10682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683   (eval $ac_try) 2>&5
10684   ac_status=$?
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); }; }; then
10687   ac_cv_lib_svld_dlopen=yes
10688 else
10689   echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10691
10692 ac_cv_lib_svld_dlopen=no
10693 fi
10694 rm -f conftest.err conftest.$ac_objext \
10695       conftest$ac_exeext conftest.$ac_ext
10696 LIBS=$ac_check_lib_save_LIBS
10697 fi
10698 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10699 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10700 if test $ac_cv_lib_svld_dlopen = yes; then
10701   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10702 else
10703   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10704 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10705 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10706   echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708   ac_check_lib_save_LIBS=$LIBS
10709 LIBS="-ldld  $LIBS"
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h.  */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h.  */
10716
10717 /* Override any gcc2 internal prototype to avoid an error.  */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 /* We use char because int might match the return type of a gcc2
10722    builtin and then its argument prototype would still apply.  */
10723 char dld_link ();
10724 int
10725 main ()
10726 {
10727 dld_link ();
10728   ;
10729   return 0;
10730 }
10731 _ACEOF
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734   (eval $ac_link) 2>conftest.er1
10735   ac_status=$?
10736   grep -v '^ *+' conftest.er1 >conftest.err
10737   rm -f conftest.er1
10738   cat conftest.err >&5
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); } &&
10741          { ac_try='test -z "$ac_c_werror_flag"
10742                          || test ! -s conftest.err'
10743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744   (eval $ac_try) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; } &&
10748          { ac_try='test -s conftest$ac_exeext'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754   ac_cv_lib_dld_dld_link=yes
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 ac_cv_lib_dld_dld_link=no
10760 fi
10761 rm -f conftest.err conftest.$ac_objext \
10762       conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10764 fi
10765 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10766 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10767 if test $ac_cv_lib_dld_dld_link = yes; then
10768   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10769 fi
10770
10771
10772 fi
10773
10774
10775 fi
10776
10777
10778 fi
10779
10780
10781 fi
10782
10783
10784 fi
10785
10786     ;;
10787   esac
10788
10789   if test "x$lt_cv_dlopen" != xno; then
10790     enable_dlopen=yes
10791   else
10792     enable_dlopen=no
10793   fi
10794
10795   case $lt_cv_dlopen in
10796   dlopen)
10797     save_CPPFLAGS="$CPPFLAGS"
10798     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10799
10800     save_LDFLAGS="$LDFLAGS"
10801     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10802
10803     save_LIBS="$LIBS"
10804     LIBS="$lt_cv_dlopen_libs $LIBS"
10805
10806     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10807 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10808 if test "${lt_cv_dlopen_self+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811           if test "$cross_compiling" = yes; then :
10812   lt_cv_dlopen_self=cross
10813 else
10814   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10815   lt_status=$lt_dlunknown
10816   cat > conftest.$ac_ext <<_LT_EOF
10817 #line 10817 "configure"
10818 #include "confdefs.h"
10819
10820 #if HAVE_DLFCN_H
10821 #include <dlfcn.h>
10822 #endif
10823
10824 #include <stdio.h>
10825
10826 #ifdef RTLD_GLOBAL
10827 #  define LT_DLGLOBAL           RTLD_GLOBAL
10828 #else
10829 #  ifdef DL_GLOBAL
10830 #    define LT_DLGLOBAL         DL_GLOBAL
10831 #  else
10832 #    define LT_DLGLOBAL         0
10833 #  endif
10834 #endif
10835
10836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10837    find out it does not work in some platform. */
10838 #ifndef LT_DLLAZY_OR_NOW
10839 #  ifdef RTLD_LAZY
10840 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10841 #  else
10842 #    ifdef DL_LAZY
10843 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10844 #    else
10845 #      ifdef RTLD_NOW
10846 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10847 #      else
10848 #        ifdef DL_NOW
10849 #          define LT_DLLAZY_OR_NOW      DL_NOW
10850 #        else
10851 #          define LT_DLLAZY_OR_NOW      0
10852 #        endif
10853 #      endif
10854 #    endif
10855 #  endif
10856 #endif
10857
10858 #ifdef __cplusplus
10859 extern "C" void exit (int);
10860 #endif
10861
10862 void fnord() { int i=42;}
10863 int main ()
10864 {
10865   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10866   int status = $lt_dlunknown;
10867
10868   if (self)
10869     {
10870       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10871       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10872       /* dlclose (self); */
10873     }
10874   else
10875     puts (dlerror ());
10876
10877     exit (status);
10878 }
10879 _LT_EOF
10880   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881   (eval $ac_link) 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10885     (./conftest; exit; ) >&5 2>/dev/null
10886     lt_status=$?
10887     case x$lt_status in
10888       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10889       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10890       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10891     esac
10892   else :
10893     # compilation failed
10894     lt_cv_dlopen_self=no
10895   fi
10896 fi
10897 rm -fr conftest*
10898
10899
10900 fi
10901 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10902 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10903
10904     if test "x$lt_cv_dlopen_self" = xyes; then
10905       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10906       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10907 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10908 if test "${lt_cv_dlopen_self_static+set}" = set; then
10909   echo $ECHO_N "(cached) $ECHO_C" >&6
10910 else
10911           if test "$cross_compiling" = yes; then :
10912   lt_cv_dlopen_self_static=cross
10913 else
10914   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10915   lt_status=$lt_dlunknown
10916   cat > conftest.$ac_ext <<_LT_EOF
10917 #line 10917 "configure"
10918 #include "confdefs.h"
10919
10920 #if HAVE_DLFCN_H
10921 #include <dlfcn.h>
10922 #endif
10923
10924 #include <stdio.h>
10925
10926 #ifdef RTLD_GLOBAL
10927 #  define LT_DLGLOBAL           RTLD_GLOBAL
10928 #else
10929 #  ifdef DL_GLOBAL
10930 #    define LT_DLGLOBAL         DL_GLOBAL
10931 #  else
10932 #    define LT_DLGLOBAL         0
10933 #  endif
10934 #endif
10935
10936 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10937    find out it does not work in some platform. */
10938 #ifndef LT_DLLAZY_OR_NOW
10939 #  ifdef RTLD_LAZY
10940 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10941 #  else
10942 #    ifdef DL_LAZY
10943 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10944 #    else
10945 #      ifdef RTLD_NOW
10946 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10947 #      else
10948 #        ifdef DL_NOW
10949 #          define LT_DLLAZY_OR_NOW      DL_NOW
10950 #        else
10951 #          define LT_DLLAZY_OR_NOW      0
10952 #        endif
10953 #      endif
10954 #    endif
10955 #  endif
10956 #endif
10957
10958 #ifdef __cplusplus
10959 extern "C" void exit (int);
10960 #endif
10961
10962 void fnord() { int i=42;}
10963 int main ()
10964 {
10965   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10966   int status = $lt_dlunknown;
10967
10968   if (self)
10969     {
10970       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10971       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10972       /* dlclose (self); */
10973     }
10974   else
10975     puts (dlerror ());
10976
10977     exit (status);
10978 }
10979 _LT_EOF
10980   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10981   (eval $ac_link) 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10985     (./conftest; exit; ) >&5 2>/dev/null
10986     lt_status=$?
10987     case x$lt_status in
10988       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10989       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10990       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10991     esac
10992   else :
10993     # compilation failed
10994     lt_cv_dlopen_self_static=no
10995   fi
10996 fi
10997 rm -fr conftest*
10998
10999
11000 fi
11001 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11002 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11003     fi
11004
11005     CPPFLAGS="$save_CPPFLAGS"
11006     LDFLAGS="$save_LDFLAGS"
11007     LIBS="$save_LIBS"
11008     ;;
11009   esac
11010
11011   case $lt_cv_dlopen_self in
11012   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11013   *) enable_dlopen_self=unknown ;;
11014   esac
11015
11016   case $lt_cv_dlopen_self_static in
11017   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11018   *) enable_dlopen_self_static=unknown ;;
11019   esac
11020 fi
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038 striplib=
11039 old_striplib=
11040 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11041 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11042 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11043   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11044   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11045   echo "$as_me:$LINENO: result: yes" >&5
11046 echo "${ECHO_T}yes" >&6
11047 else
11048 # FIXME - insert some real tests, host_os isn't really good enough
11049   case $host_os in
11050   darwin*)
11051     if test -n "$STRIP" ; then
11052       striplib="$STRIP -x"
11053       old_striplib="$STRIP -S"
11054       echo "$as_me:$LINENO: result: yes" >&5
11055 echo "${ECHO_T}yes" >&6
11056     else
11057       echo "$as_me:$LINENO: result: no" >&5
11058 echo "${ECHO_T}no" >&6
11059     fi
11060     ;;
11061   *)
11062     echo "$as_me:$LINENO: result: no" >&5
11063 echo "${ECHO_T}no" >&6
11064     ;;
11065   esac
11066 fi
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079   # Report which library types will actually be built
11080   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11081 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11082   echo "$as_me:$LINENO: result: $can_build_shared" >&5
11083 echo "${ECHO_T}$can_build_shared" >&6
11084
11085   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11086 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11087   test "$can_build_shared" = "no" && enable_shared=no
11088
11089   # On AIX, shared libraries and static libraries use the same namespace, and
11090   # are all built from PIC.
11091   case $host_os in
11092   aix3*)
11093     test "$enable_shared" = yes && enable_static=no
11094     if test -n "$RANLIB"; then
11095       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11096       postinstall_cmds='$RANLIB $lib'
11097     fi
11098     ;;
11099
11100   aix[4-9]*)
11101     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11102       test "$enable_shared" = yes && enable_static=no
11103     fi
11104     ;;
11105   esac
11106   echo "$as_me:$LINENO: result: $enable_shared" >&5
11107 echo "${ECHO_T}$enable_shared" >&6
11108
11109   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11110 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11111   # Make sure either enable_shared or enable_static is yes.
11112   test "$enable_shared" = yes || enable_static=yes
11113   echo "$as_me:$LINENO: result: $enable_static" >&5
11114 echo "${ECHO_T}$enable_static" >&6
11115
11116
11117
11118
11119 fi
11120 ac_ext=c
11121 ac_cpp='$CPP $CPPFLAGS'
11122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11125
11126 CC="$lt_save_CC"
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140                   ac_config_commands="$ac_config_commands libtool"
11141
11142
11143
11144
11145 # Only expand once:
11146
11147
11148
11149
11150
11151 if test "${ac_cv_header_stdint_h+set}" = set; then
11152   echo "$as_me:$LINENO: checking for stdint.h" >&5
11153 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11154 if test "${ac_cv_header_stdint_h+set}" = set; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 fi
11157 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11158 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11159 else
11160   # Is the header compilable?
11161 echo "$as_me:$LINENO: checking stdint.h usability" >&5
11162 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
11163 cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169 $ac_includes_default
11170 #include <stdint.h>
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174   (eval $ac_compile) 2>conftest.er1
11175   ac_status=$?
11176   grep -v '^ *+' conftest.er1 >conftest.err
11177   rm -f conftest.er1
11178   cat conftest.err >&5
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); } &&
11181          { ac_try='test -z "$ac_c_werror_flag"
11182                          || test ! -s conftest.err'
11183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184   (eval $ac_try) 2>&5
11185   ac_status=$?
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); }; } &&
11188          { ac_try='test -s conftest.$ac_objext'
11189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190   (eval $ac_try) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; }; then
11194   ac_header_compiler=yes
11195 else
11196   echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11198
11199 ac_header_compiler=no
11200 fi
11201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11203 echo "${ECHO_T}$ac_header_compiler" >&6
11204
11205 # Is the header present?
11206 echo "$as_me:$LINENO: checking stdint.h presence" >&5
11207 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
11208 cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h.  */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h.  */
11214 #include <stdint.h>
11215 _ACEOF
11216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11218   ac_status=$?
11219   grep -v '^ *+' conftest.er1 >conftest.err
11220   rm -f conftest.er1
11221   cat conftest.err >&5
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } >/dev/null; then
11224   if test -s conftest.err; then
11225     ac_cpp_err=$ac_c_preproc_warn_flag
11226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11227   else
11228     ac_cpp_err=
11229   fi
11230 else
11231   ac_cpp_err=yes
11232 fi
11233 if test -z "$ac_cpp_err"; then
11234   ac_header_preproc=yes
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239   ac_header_preproc=no
11240 fi
11241 rm -f conftest.err conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243 echo "${ECHO_T}$ac_header_preproc" >&6
11244
11245 # So?  What about this header?
11246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11247   yes:no: )
11248     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11249 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11251 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11252     ac_header_preproc=yes
11253     ;;
11254   no:yes:* )
11255     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11256 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
11258 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
11259     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11260 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
11262 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11263     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11264 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11266 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
11267     (
11268       cat <<\_ASBOX
11269 ## ------------------------------------- ##
11270 ## Report this to the libmudflap lists.  ##
11271 ## ------------------------------------- ##
11272 _ASBOX
11273     ) |
11274       sed "s/^/$as_me: WARNING:     /" >&2
11275     ;;
11276 esac
11277 echo "$as_me:$LINENO: checking for stdint.h" >&5
11278 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11279 if test "${ac_cv_header_stdint_h+set}" = set; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   ac_cv_header_stdint_h=$ac_header_preproc
11283 fi
11284 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11285 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11286
11287 fi
11288 if test $ac_cv_header_stdint_h = yes; then
11289   MF_HAVE_STDINT_H=1
11290 else
11291   MF_HAVE_STDINT_H=0
11292 fi
11293
11294
11295
11296 if test $MF_HAVE_STDINT_H = 1
11297 then
11298    MF_HAVE_UINTPTR_T=1
11299 else
11300    cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h.  */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h.  */
11306 #include <sys/types.h>
11307 int
11308 main ()
11309 {
11310 uintptr_t k = 0;
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317   (eval $ac_compile) 2>conftest.er1
11318   ac_status=$?
11319   grep -v '^ *+' conftest.er1 >conftest.err
11320   rm -f conftest.er1
11321   cat conftest.err >&5
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); } &&
11324          { ac_try='test -z "$ac_c_werror_flag"
11325                          || test ! -s conftest.err'
11326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327   (eval $ac_try) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); }; } &&
11331          { ac_try='test -s conftest.$ac_objext'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; }; then
11337   MF_HAVE_UINTPTR_T=1
11338 else
11339   echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 MF_HAVE_UINTPTR_T=0
11343 fi
11344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11345 fi
11346
11347
11348 if test ! -d pth
11349 then
11350   # libmudflapth objects are built in this subdirectory
11351   mkdir pth
11352 fi
11353
11354
11355 for ac_header in pthread.h
11356 do
11357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11359   echo "$as_me:$LINENO: checking for $ac_header" >&5
11360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11362   echo $ECHO_N "(cached) $ECHO_C" >&6
11363 fi
11364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11366 else
11367   # Is the header compilable?
11368 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 $ac_includes_default
11377 #include <$ac_header>
11378 _ACEOF
11379 rm -f conftest.$ac_objext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11381   (eval $ac_compile) 2>conftest.er1
11382   ac_status=$?
11383   grep -v '^ *+' conftest.er1 >conftest.err
11384   rm -f conftest.er1
11385   cat conftest.err >&5
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); } &&
11388          { ac_try='test -z "$ac_c_werror_flag"
11389                          || test ! -s conftest.err'
11390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391   (eval $ac_try) 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; } &&
11395          { ac_try='test -s conftest.$ac_objext'
11396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397   (eval $ac_try) 2>&5
11398   ac_status=$?
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); }; }; then
11401   ac_header_compiler=yes
11402 else
11403   echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11405
11406 ac_header_compiler=no
11407 fi
11408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11410 echo "${ECHO_T}$ac_header_compiler" >&6
11411
11412 # Is the header present?
11413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h.  */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h.  */
11421 #include <$ac_header>
11422 _ACEOF
11423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11425   ac_status=$?
11426   grep -v '^ *+' conftest.er1 >conftest.err
11427   rm -f conftest.er1
11428   cat conftest.err >&5
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); } >/dev/null; then
11431   if test -s conftest.err; then
11432     ac_cpp_err=$ac_c_preproc_warn_flag
11433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11434   else
11435     ac_cpp_err=
11436   fi
11437 else
11438   ac_cpp_err=yes
11439 fi
11440 if test -z "$ac_cpp_err"; then
11441   ac_header_preproc=yes
11442 else
11443   echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446   ac_header_preproc=no
11447 fi
11448 rm -f conftest.err conftest.$ac_ext
11449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11450 echo "${ECHO_T}$ac_header_preproc" >&6
11451
11452 # So?  What about this header?
11453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11454   yes:no: )
11455     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11459     ac_header_preproc=yes
11460     ;;
11461   no:yes:* )
11462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11464     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11465 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11466     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11468     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11469 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11472     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11474     (
11475       cat <<\_ASBOX
11476 ## ------------------------------------- ##
11477 ## Report this to the libmudflap lists.  ##
11478 ## ------------------------------------- ##
11479 _ASBOX
11480     ) |
11481       sed "s/^/$as_me: WARNING:     /" >&2
11482     ;;
11483 esac
11484 echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489   eval "$as_ac_Header=\$ac_header_preproc"
11490 fi
11491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11493
11494 fi
11495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11496   cat >>confdefs.h <<_ACEOF
11497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11498 _ACEOF
11499
11500 fi
11501
11502 done
11503
11504
11505 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
11506 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
11507 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11508 echo "$as_me:$LINENO: result: $target_thread_file" >&5
11509 echo "${ECHO_T}$target_thread_file" >&6
11510
11511 # We only support posix threads, or no threads at all.
11512 posix_threads=
11513 case ${target_thread_file} in
11514   posix)
11515     posix_threads=yes
11516     ;;
11517   single)
11518     ;;
11519   *)
11520     echo "${target_thread_file} is an unsupported thread package" 1>&2
11521     exit 1
11522     ;;
11523 esac
11524
11525
11526
11527 if test "x$posix_threads" != "x"; then
11528   LIBMUDFLAPTH_TRUE=
11529   LIBMUDFLAPTH_FALSE='#'
11530 else
11531   LIBMUDFLAPTH_TRUE='#'
11532   LIBMUDFLAPTH_FALSE=
11533 fi
11534
11535 if test "x$posix_threads" != "x"
11536 then
11537         build_libmudflapth=1
11538 else
11539         build_libmudflapth=0
11540 fi
11541
11542
11543
11544 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
11545 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
11546 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
11547   echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549   ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-ldl  $LIBS"
11551 cat >conftest.$ac_ext <<_ACEOF
11552 /* confdefs.h.  */
11553 _ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h.  */
11557
11558 /* Override any gcc2 internal prototype to avoid an error.  */
11559 #ifdef __cplusplus
11560 extern "C"
11561 #endif
11562 /* We use char because int might match the return type of a gcc2
11563    builtin and then its argument prototype would still apply.  */
11564 char dlsym ();
11565 int
11566 main ()
11567 {
11568 dlsym ();
11569   ;
11570   return 0;
11571 }
11572 _ACEOF
11573 rm -f conftest.$ac_objext conftest$ac_exeext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11575   (eval $ac_link) 2>conftest.er1
11576   ac_status=$?
11577   grep -v '^ *+' conftest.er1 >conftest.err
11578   rm -f conftest.er1
11579   cat conftest.err >&5
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); } &&
11582          { ac_try='test -z "$ac_c_werror_flag"
11583                          || test ! -s conftest.err'
11584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585   (eval $ac_try) 2>&5
11586   ac_status=$?
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); }; } &&
11589          { ac_try='test -s conftest$ac_exeext'
11590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591   (eval $ac_try) 2>&5
11592   ac_status=$?
11593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594   (exit $ac_status); }; }; then
11595   ac_cv_lib_dl_dlsym=yes
11596 else
11597   echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11599
11600 ac_cv_lib_dl_dlsym=no
11601 fi
11602 rm -f conftest.err conftest.$ac_objext \
11603       conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11605 fi
11606 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
11607 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
11608 if test $ac_cv_lib_dl_dlsym = yes; then
11609   cat >>confdefs.h <<_ACEOF
11610 #define HAVE_LIBDL 1
11611 _ACEOF
11612
11613   LIBS="-ldl $LIBS"
11614
11615 fi
11616
11617
11618 # Calculate toolexeclibdir
11619 # Also toolexecdir, though it's only used in toolexeclibdir
11620 case ${version_specific_libs} in
11621   yes)
11622     # Need the gcc compiler version to know where to install libraries
11623     # and header files if --enable-version-specific-runtime-libs option
11624     # is selected.
11625     toolexecdir='$(libdir)/gcc/$(target_alias)'
11626     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11627     ;;
11628   no)
11629     if test -n "$with_cross_host" &&
11630        test x"$with_cross_host" != x"no"; then
11631       # Install a library built with a cross compiler in tooldir, not libdir.
11632       toolexecdir='$(exec_prefix)/$(target_alias)'
11633       toolexeclibdir='$(toolexecdir)/lib'
11634     else
11635       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11636       toolexeclibdir='$(libdir)'
11637     fi
11638     multi_os_directory=`$CC -print-multi-os-directory`
11639     case $multi_os_directory in
11640       .) ;; # Avoid trailing /.
11641       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11642     esac
11643     ;;
11644 esac
11645
11646
11647
11648 includedir=${toolexecdir}/include
11649
11650
11651 pthread_create_version='""'
11652 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
11653   # NB: don't check for -lpthread here, because then it would be
11654   # added to LIBS.  For the thread-unaware libmudflap.la, we don't
11655   # want it there.
11656
11657   # glibc-related hacks.  dlsym() may pick the wrong version of
11658   # interposed functions like pthread_create on modern glibc.
11659   # We need to find the proper symbol version string, and use
11660   # the nonstandard dlvsym().
11661
11662 for ac_func in dlvsym
11663 do
11664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11665 echo "$as_me:$LINENO: checking for $ac_func" >&5
11666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11667 if eval "test \"\${$as_ac_var+set}\" = set"; then
11668   echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670   cat >conftest.$ac_ext <<_ACEOF
11671 /* confdefs.h.  */
11672 _ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h.  */
11676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11678 #define $ac_func innocuous_$ac_func
11679
11680 /* System header to define __stub macros and hopefully few prototypes,
11681     which can conflict with char $ac_func (); below.
11682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11683     <limits.h> exists even on freestanding compilers.  */
11684
11685 #ifdef __STDC__
11686 # include <limits.h>
11687 #else
11688 # include <assert.h>
11689 #endif
11690
11691 #undef $ac_func
11692
11693 /* Override any gcc2 internal prototype to avoid an error.  */
11694 #ifdef __cplusplus
11695 extern "C"
11696 {
11697 #endif
11698 /* We use char because int might match the return type of a gcc2
11699    builtin and then its argument prototype would still apply.  */
11700 char $ac_func ();
11701 /* The GNU C library defines this for functions which it implements
11702     to always fail with ENOSYS.  Some functions are actually named
11703     something starting with __ and the normal name is an alias.  */
11704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11705 choke me
11706 #else
11707 char (*f) () = $ac_func;
11708 #endif
11709 #ifdef __cplusplus
11710 }
11711 #endif
11712
11713 int
11714 main ()
11715 {
11716 return f != $ac_func;
11717   ;
11718   return 0;
11719 }
11720 _ACEOF
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11723   (eval $ac_link) 2>conftest.er1
11724   ac_status=$?
11725   grep -v '^ *+' conftest.er1 >conftest.err
11726   rm -f conftest.er1
11727   cat conftest.err >&5
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); } &&
11730          { ac_try='test -z "$ac_c_werror_flag"
11731                          || test ! -s conftest.err'
11732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733   (eval $ac_try) 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); }; } &&
11737          { ac_try='test -s conftest$ac_exeext'
11738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739   (eval $ac_try) 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; }; then
11743   eval "$as_ac_var=yes"
11744 else
11745   echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11747
11748 eval "$as_ac_var=no"
11749 fi
11750 rm -f conftest.err conftest.$ac_objext \
11751       conftest$ac_exeext conftest.$ac_ext
11752 fi
11753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11755 if test `eval echo '${'$as_ac_var'}'` = yes; then
11756   cat >>confdefs.h <<_ACEOF
11757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11758 _ACEOF
11759
11760 fi
11761 done
11762
11763   if test -n "$ac_tool_prefix"; then
11764   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
11765 set dummy ${ac_tool_prefix}nm; ac_word=$2
11766 echo "$as_me:$LINENO: checking for $ac_word" >&5
11767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11768 if test "${ac_cv_prog_NM+set}" = set; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771   if test -n "$NM"; then
11772   ac_cv_prog_NM="$NM" # Let the user override the test.
11773 else
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11776 do
11777   IFS=$as_save_IFS
11778   test -z "$as_dir" && as_dir=.
11779   for ac_exec_ext in '' $ac_executable_extensions; do
11780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781     ac_cv_prog_NM="${ac_tool_prefix}nm"
11782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11783     break 2
11784   fi
11785 done
11786 done
11787
11788 fi
11789 fi
11790 NM=$ac_cv_prog_NM
11791 if test -n "$NM"; then
11792   echo "$as_me:$LINENO: result: $NM" >&5
11793 echo "${ECHO_T}$NM" >&6
11794 else
11795   echo "$as_me:$LINENO: result: no" >&5
11796 echo "${ECHO_T}no" >&6
11797 fi
11798
11799 fi
11800 if test -z "$ac_cv_prog_NM"; then
11801   ac_ct_NM=$NM
11802   # Extract the first word of "nm", so it can be a program name with args.
11803 set dummy nm; ac_word=$2
11804 echo "$as_me:$LINENO: checking for $ac_word" >&5
11805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11806 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   if test -n "$ac_ct_NM"; then
11810   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
11811 else
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11814 do
11815   IFS=$as_save_IFS
11816   test -z "$as_dir" && as_dir=.
11817   for ac_exec_ext in '' $ac_executable_extensions; do
11818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11819     ac_cv_prog_ac_ct_NM="nm"
11820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11821     break 2
11822   fi
11823 done
11824 done
11825
11826 fi
11827 fi
11828 ac_ct_NM=$ac_cv_prog_ac_ct_NM
11829 if test -n "$ac_ct_NM"; then
11830   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
11831 echo "${ECHO_T}$ac_ct_NM" >&6
11832 else
11833   echo "$as_me:$LINENO: result: no" >&5
11834 echo "${ECHO_T}no" >&6
11835 fi
11836
11837   NM=$ac_ct_NM
11838 else
11839   NM="$ac_cv_prog_NM"
11840 fi
11841
11842   if test "x$ac_cv_have_dlvsym" != "x"; then
11843     # Try compiling a simple pthreads program.  Find the shared libraries it
11844     # ends up with.  Then use "nm" on those libraries to extract the
11845     # default symbol versioning suffix ("@@"), if any.  But that's tricky.
11846     # Rather, run nm on the resulting executable.  Unfortunately, autoconf
11847     # doesn't appear to have a macro that builds a test executable for
11848     # subsequent analysis ... so we do it by hand here.
11849     cat >> conftest.c << EOF
11850 #include <pthread.h>
11851 int main () { void *p = (void *) & pthread_create; return (int) p; }
11852 EOF
11853     oldLIBS="$LIBS"
11854     LIBS="$LIBS -lpthread"
11855     pthread_create_version="\"\""
11856     echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
11857 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
11858     if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
11859       version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
11860       if test "x$version" != "x"; then
11861         pthread_create_version="\"$version\""
11862       fi
11863     fi
11864     echo "$as_me:$LINENO: result: $pthread_create_version" >&5
11865 echo "${ECHO_T}$pthread_create_version" >&6
11866     LIBS="$oldLIBS"
11867   fi
11868 fi
11869
11870 cat >>confdefs.h <<_ACEOF
11871 #define PTHREAD_CREATE_VERSION $pthread_create_version
11872 _ACEOF
11873
11874
11875
11876 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
11877 # similarly to how libstdc++ does it
11878 ac_test_CFLAGS="${CFLAGS+set}"
11879 ac_save_CFLAGS="$CFLAGS"
11880
11881 # Check for -ffunction-sections -fdata-sections
11882 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
11883 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
11884 CFLAGS='-Werror -ffunction-sections -fdata-sections'
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891
11892 int
11893 main ()
11894 {
11895 int foo;
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902   (eval $ac_compile) 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } &&
11909          { ac_try='test -z "$ac_c_werror_flag"
11910                          || test ! -s conftest.err'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; } &&
11916          { ac_try='test -s conftest.$ac_objext'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   ac_fdsections=yes
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 ac_fdsections=no
11928 fi
11929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11930 if test "$ac_test_CFLAGS" = set; then
11931   CFLAGS="$ac_save_CFLAGS"
11932 else
11933   # this is the suspicious part
11934   CFLAGS=""
11935 fi
11936 if test x"$ac_fdsections" = x"yes"; then
11937   SECTION_FLAGS='-ffunction-sections -fdata-sections'
11938 fi
11939 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
11940 echo "${ECHO_T}$ac_fdsections" >&6
11941
11942
11943
11944 # Check for the name of the symbol used for the entry point.
11945 echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
11946 echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
11947 if test "${mudflap_cv_entry_point+set}" = set; then
11948   echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950
11951 for name in _start __start unknown; do
11952   cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h.  */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h.  */
11958 extern char $name[];
11959 int
11960 main ()
11961 {
11962 $name[0] = 0;
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 rm -f conftest.$ac_objext conftest$ac_exeext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969   (eval $ac_link) 2>conftest.er1
11970   ac_status=$?
11971   grep -v '^ *+' conftest.er1 >conftest.err
11972   rm -f conftest.er1
11973   cat conftest.err >&5
11974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975   (exit $ac_status); } &&
11976          { ac_try='test -z "$ac_c_werror_flag"
11977                          || test ! -s conftest.err'
11978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979   (eval $ac_try) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; } &&
11983          { ac_try='test -s conftest$ac_exeext'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; }; then
11989   break
11990 else
11991   echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 fi
11995 rm -f conftest.err conftest.$ac_objext \
11996       conftest$ac_exeext conftest.$ac_ext
11997 done
11998 mudflap_cv_entry_point="$name"
11999 fi
12000 echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
12001 echo "${ECHO_T}$mudflap_cv_entry_point" >&6
12002 if test "$mudflap_cv_entry_point" = unknown; then
12003   { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
12004 echo "$as_me: error: none of the known symbol names works" >&2;}
12005    { (exit 1); exit 1; }; }
12006 fi
12007
12008 cat >>confdefs.h <<_ACEOF
12009 #define ENTRY_POINT $mudflap_cv_entry_point
12010 _ACEOF
12011
12012
12013
12014 if test ${multilib} = yes; then
12015   multilib_arg="--enable-multilib"
12016 else
12017   multilib_arg=
12018 fi
12019
12020 # See if we support thread-local storage.
12021
12022    # Check whether --enable-tls or --disable-tls was given.
12023 if test "${enable_tls+set}" = set; then
12024   enableval="$enable_tls"
12025
12026       case "$enableval" in
12027        yes|no) ;;
12028        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
12029 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
12030    { (exit 1); exit 1; }; } ;;
12031       esac
12032
12033 else
12034   enable_tls=yes
12035 fi;
12036
12037   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
12038 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
12039 if test "${gcc_cv_have_tls+set}" = set; then
12040   echo $ECHO_N "(cached) $ECHO_C" >&6
12041 else
12042
12043     if test "$cross_compiling" = yes; then
12044                 cat >conftest.$ac_ext <<_ACEOF
12045 __thread int a; int b; int main() { return a = b; }
12046 _ACEOF
12047 rm -f conftest.$ac_objext conftest$ac_exeext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12049   (eval $ac_link) 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -z "$ac_c_werror_flag"
12057                          || test ! -s conftest.err'
12058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059   (eval $ac_try) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; } &&
12063          { ac_try='test -s conftest$ac_exeext'
12064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065   (eval $ac_try) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); }; }; then
12069   gcc_cv_have_tls=yes
12070 else
12071   echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 gcc_cv_have_tls=no
12075 fi
12076 rm -f conftest.err conftest.$ac_objext \
12077       conftest$ac_exeext conftest.$ac_ext
12078
12079
12080 else
12081   cat >conftest.$ac_ext <<_ACEOF
12082 __thread int a; int b; int main() { return a = b; }
12083 _ACEOF
12084 rm -f conftest$ac_exeext
12085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12086   (eval $ac_link) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091   (eval $ac_try) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); }; }; then
12095                       chktls_save_LDFLAGS="$LDFLAGS"
12096       LDFLAGS="-static $LDFLAGS"
12097       cat >conftest.$ac_ext <<_ACEOF
12098 int main() { return 0; }
12099 _ACEOF
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102   (eval $ac_link) 2>conftest.er1
12103   ac_status=$?
12104   grep -v '^ *+' conftest.er1 >conftest.err
12105   rm -f conftest.er1
12106   cat conftest.err >&5
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } &&
12109          { ac_try='test -z "$ac_c_werror_flag"
12110                          || test ! -s conftest.err'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; } &&
12116          { ac_try='test -s 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   if test "$cross_compiling" = yes; then
12123   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12124 See \`config.log' for more details." >&5
12125 echo "$as_me: error: cannot run test program while cross compiling
12126 See \`config.log' for more details." >&2;}
12127    { (exit 1); exit 1; }; }
12128 else
12129   cat >conftest.$ac_ext <<_ACEOF
12130 __thread int a; int b; int main() { return a = b; }
12131 _ACEOF
12132 rm -f conftest$ac_exeext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12134   (eval $ac_link) 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
12143   gcc_cv_have_tls=yes
12144 else
12145   echo "$as_me: program exited with status $ac_status" >&5
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 ( exit $ac_status )
12150 gcc_cv_have_tls=no
12151 fi
12152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12153 fi
12154 else
12155   echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12157
12158 gcc_cv_have_tls=yes
12159 fi
12160 rm -f conftest.err conftest.$ac_objext \
12161       conftest$ac_exeext conftest.$ac_ext
12162       LDFLAGS="$chktls_save_LDFLAGS"
12163       if test $gcc_cv_have_tls = yes; then
12164                                                 chktls_save_CFLAGS="$CFLAGS"
12165         thread_CFLAGS=failed
12166         for flag in '' '-pthread' '-lpthread'; do
12167           CFLAGS="$flag $chktls_save_CFLAGS"
12168           cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h.  */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h.  */
12174 #include <pthread.h>
12175                 void *g(void *d) { return NULL; }
12176 int
12177 main ()
12178 {
12179 pthread_t t; pthread_create(&t,NULL,g,NULL);
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186   (eval $ac_link) 2>conftest.er1
12187   ac_status=$?
12188   grep -v '^ *+' conftest.er1 >conftest.err
12189   rm -f conftest.er1
12190   cat conftest.err >&5
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } &&
12193          { ac_try='test -z "$ac_c_werror_flag"
12194                          || test ! -s conftest.err'
12195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196   (eval $ac_try) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); }; } &&
12200          { ac_try='test -s conftest$ac_exeext'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206   thread_CFLAGS="$flag"
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 fi
12212 rm -f conftest.err conftest.$ac_objext \
12213       conftest$ac_exeext conftest.$ac_ext
12214           if test "X$thread_CFLAGS" != Xfailed; then
12215             break
12216           fi
12217         done
12218         CFLAGS="$chktls_save_CFLAGS"
12219         if test "X$thread_CFLAGS" != Xfailed; then
12220           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
12221           if test "$cross_compiling" = yes; then
12222   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12223 See \`config.log' for more details." >&5
12224 echo "$as_me: error: cannot run test program while cross compiling
12225 See \`config.log' for more details." >&2;}
12226    { (exit 1); exit 1; }; }
12227 else
12228   cat >conftest.$ac_ext <<_ACEOF
12229 /* confdefs.h.  */
12230 _ACEOF
12231 cat confdefs.h >>conftest.$ac_ext
12232 cat >>conftest.$ac_ext <<_ACEOF
12233 /* end confdefs.h.  */
12234 #include <pthread.h>
12235                 __thread int a;
12236                 static int *a_in_other_thread;
12237                 static void *
12238                 thread_func (void *arg)
12239                 {
12240                   a_in_other_thread = &a;
12241                   return (void *)0;
12242                 }
12243 int
12244 main ()
12245 {
12246 pthread_t thread;
12247                 void *thread_retval;
12248                 int *a_in_main_thread;
12249                 if (pthread_create (&thread, (pthread_attr_t *)0,
12250                                     thread_func, (void *)0))
12251                   return 0;
12252                 a_in_main_thread = &a;
12253                 if (pthread_join (thread, &thread_retval))
12254                   return 0;
12255                 return (a_in_other_thread == a_in_main_thread);
12256   ;
12257   return 0;
12258 }
12259 _ACEOF
12260 rm -f conftest$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262   (eval $ac_link) 2>&5
12263   ac_status=$?
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267   (eval $ac_try) 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); }; }; then
12271   gcc_cv_have_tls=yes
12272 else
12273   echo "$as_me: program exited with status $ac_status" >&5
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12276
12277 ( exit $ac_status )
12278 gcc_cv_have_tls=no
12279 fi
12280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12281 fi
12282           CFLAGS="$chktls_save_CFLAGS"
12283         fi
12284       fi
12285 else
12286   echo "$as_me: program exited with status $ac_status" >&5
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289
12290 ( exit $ac_status )
12291 gcc_cv_have_tls=no
12292 fi
12293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12294 fi
12295 fi
12296 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
12297 echo "${ECHO_T}$gcc_cv_have_tls" >&6
12298   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
12299
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_TLS 1
12302 _ACEOF
12303
12304   fi
12305
12306                               ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
12307
12308 cat >confcache <<\_ACEOF
12309 # This file is a shell script that caches the results of configure
12310 # tests run on this system so they can be shared between configure
12311 # scripts and configure runs, see configure's option --config-cache.
12312 # It is not useful on other systems.  If it contains results you don't
12313 # want to keep, you may remove or edit it.
12314 #
12315 # config.status only pays attention to the cache file if you give it
12316 # the --recheck option to rerun configure.
12317 #
12318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12320 # following values.
12321
12322 _ACEOF
12323
12324 # The following way of writing the cache mishandles newlines in values,
12325 # but we know of no workaround that is simple, portable, and efficient.
12326 # So, don't put newlines in cache variables' values.
12327 # Ultrix sh set writes to stderr and can't be redirected directly,
12328 # and sets the high bit in the cache file unless we assign to the vars.
12329 {
12330   (set) 2>&1 |
12331     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12332     *ac_space=\ *)
12333       # `set' does not quote correctly, so add quotes (double-quote
12334       # substitution turns \\\\ into \\, and sed turns \\ into \).
12335       sed -n \
12336         "s/'/'\\\\''/g;
12337           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12338       ;;
12339     *)
12340       # `set' quotes correctly as required by POSIX, so do not add quotes.
12341       sed -n \
12342         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12343       ;;
12344     esac;
12345 } |
12346   sed '
12347      t clear
12348      : clear
12349      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12350      t end
12351      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12352      : end' >>confcache
12353 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12354   if test -w $cache_file; then
12355     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12356     cat confcache >$cache_file
12357   else
12358     echo "not updating unwritable cache $cache_file"
12359   fi
12360 fi
12361 rm -f confcache
12362
12363 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12364 # Let make expand exec_prefix.
12365 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12366
12367 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12368 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12369 # trailing colons and then remove the whole line if VPATH becomes empty
12370 # (actually we leave an empty line to preserve line numbers).
12371 if test "x$srcdir" = x.; then
12372   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12373 s/:*\$(srcdir):*/:/;
12374 s/:*\${srcdir}:*/:/;
12375 s/:*@srcdir@:*/:/;
12376 s/^\([^=]*=[     ]*\):*/\1/;
12377 s/:*$//;
12378 s/^[^=]*=[       ]*$//;
12379 }'
12380 fi
12381
12382 DEFS=-DHAVE_CONFIG_H
12383
12384 ac_libobjs=
12385 ac_ltlibobjs=
12386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12387   # 1. Remove the extension, and $U if already installed.
12388   ac_i=`echo "$ac_i" |
12389          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12390   # 2. Add them.
12391   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12392   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12393 done
12394 LIBOBJS=$ac_libobjs
12395
12396 LTLIBOBJS=$ac_ltlibobjs
12397
12398
12399 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12400   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12401 Usually this means the macro was only invoked conditionally." >&5
12402 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12403 Usually this means the macro was only invoked conditionally." >&2;}
12404    { (exit 1); exit 1; }; }
12405 fi
12406 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12407   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12408 Usually this means the macro was only invoked conditionally." >&5
12409 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12410 Usually this means the macro was only invoked conditionally." >&2;}
12411    { (exit 1); exit 1; }; }
12412 fi
12413 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12414   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12415 Usually this means the macro was only invoked conditionally." >&5
12416 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12417 Usually this means the macro was only invoked conditionally." >&2;}
12418    { (exit 1); exit 1; }; }
12419 fi
12420 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
12421   { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
12422 Usually this means the macro was only invoked conditionally." >&5
12423 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
12424 Usually this means the macro was only invoked conditionally." >&2;}
12425    { (exit 1); exit 1; }; }
12426 fi
12427
12428 : ${CONFIG_STATUS=./config.status}
12429 ac_clean_files_save=$ac_clean_files
12430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12433 cat >$CONFIG_STATUS <<_ACEOF
12434 #! $SHELL
12435 # Generated by $as_me.
12436 # Run this file to recreate the current configuration.
12437 # Compiler output produced by configure, useful for debugging
12438 # configure, is in config.log if it exists.
12439
12440 debug=false
12441 ac_cs_recheck=false
12442 ac_cs_silent=false
12443 SHELL=\${CONFIG_SHELL-$SHELL}
12444 _ACEOF
12445
12446 cat >>$CONFIG_STATUS <<\_ACEOF
12447 ## --------------------- ##
12448 ## M4sh Initialization.  ##
12449 ## --------------------- ##
12450
12451 # Be Bourne compatible
12452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12453   emulate sh
12454   NULLCMD=:
12455   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12456   # is contrary to our usage.  Disable this feature.
12457   alias -g '${1+"$@"}'='"$@"'
12458 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12459   set -o posix
12460 fi
12461 DUALCASE=1; export DUALCASE # for MKS sh
12462
12463 # Support unset when possible.
12464 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12465   as_unset=unset
12466 else
12467   as_unset=false
12468 fi
12469
12470
12471 # Work around bugs in pre-3.0 UWIN ksh.
12472 $as_unset ENV MAIL MAILPATH
12473 PS1='$ '
12474 PS2='> '
12475 PS4='+ '
12476
12477 # NLS nuisances.
12478 for as_var in \
12479   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12480   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12481   LC_TELEPHONE LC_TIME
12482 do
12483   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12484     eval $as_var=C; export $as_var
12485   else
12486     $as_unset $as_var
12487   fi
12488 done
12489
12490 # Required to use basename.
12491 if expr a : '\(a\)' >/dev/null 2>&1; then
12492   as_expr=expr
12493 else
12494   as_expr=false
12495 fi
12496
12497 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12498   as_basename=basename
12499 else
12500   as_basename=false
12501 fi
12502
12503
12504 # Name of the executable.
12505 as_me=`$as_basename "$0" ||
12506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12507          X"$0" : 'X\(//\)$' \| \
12508          X"$0" : 'X\(/\)$' \| \
12509          .     : '\(.\)' 2>/dev/null ||
12510 echo X/"$0" |
12511     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12512           /^X\/\(\/\/\)$/{ s//\1/; q; }
12513           /^X\/\(\/\).*/{ s//\1/; q; }
12514           s/.*/./; q'`
12515
12516
12517 # PATH needs CR, and LINENO needs CR and PATH.
12518 # Avoid depending upon Character Ranges.
12519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12522 as_cr_digits='0123456789'
12523 as_cr_alnum=$as_cr_Letters$as_cr_digits
12524
12525 # The user is always right.
12526 if test "${PATH_SEPARATOR+set}" != set; then
12527   echo "#! /bin/sh" >conf$$.sh
12528   echo  "exit 0"   >>conf$$.sh
12529   chmod +x conf$$.sh
12530   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12531     PATH_SEPARATOR=';'
12532   else
12533     PATH_SEPARATOR=:
12534   fi
12535   rm -f conf$$.sh
12536 fi
12537
12538
12539   as_lineno_1=$LINENO
12540   as_lineno_2=$LINENO
12541   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12542   test "x$as_lineno_1" != "x$as_lineno_2" &&
12543   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12544   # Find who we are.  Look in the path if we contain no path at all
12545   # relative or not.
12546   case $0 in
12547     *[\\/]* ) as_myself=$0 ;;
12548     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12550 do
12551   IFS=$as_save_IFS
12552   test -z "$as_dir" && as_dir=.
12553   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12554 done
12555
12556        ;;
12557   esac
12558   # We did not find ourselves, most probably we were run as `sh COMMAND'
12559   # in which case we are not to be found in the path.
12560   if test "x$as_myself" = x; then
12561     as_myself=$0
12562   fi
12563   if test ! -f "$as_myself"; then
12564     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12565 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12566    { (exit 1); exit 1; }; }
12567   fi
12568   case $CONFIG_SHELL in
12569   '')
12570     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12572 do
12573   IFS=$as_save_IFS
12574   test -z "$as_dir" && as_dir=.
12575   for as_base in sh bash ksh sh5; do
12576          case $as_dir in
12577          /*)
12578            if ("$as_dir/$as_base" -c '
12579   as_lineno_1=$LINENO
12580   as_lineno_2=$LINENO
12581   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12582   test "x$as_lineno_1" != "x$as_lineno_2" &&
12583   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12584              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12585              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12586              CONFIG_SHELL=$as_dir/$as_base
12587              export CONFIG_SHELL
12588              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12589            fi;;
12590          esac
12591        done
12592 done
12593 ;;
12594   esac
12595
12596   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12597   # uniformly replaced by the line number.  The first 'sed' inserts a
12598   # line-number line before each line; the second 'sed' does the real
12599   # work.  The second script uses 'N' to pair each line-number line
12600   # with the numbered line, and appends trailing '-' during
12601   # substitution so that $LINENO is not a special case at line end.
12602   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12603   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12604   sed '=' <$as_myself |
12605     sed '
12606       N
12607       s,$,-,
12608       : loop
12609       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12610       t loop
12611       s,-$,,
12612       s,^['$as_cr_digits']*\n,,
12613     ' >$as_me.lineno &&
12614   chmod +x $as_me.lineno ||
12615     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12616 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12617    { (exit 1); exit 1; }; }
12618
12619   # Don't try to exec as it changes $[0], causing all sort of problems
12620   # (the dirname of $[0] is not the place where we might find the
12621   # original and so on.  Autoconf is especially sensible to this).
12622   . ./$as_me.lineno
12623   # Exit status is that of the last command.
12624   exit
12625 }
12626
12627
12628 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12629   *c*,-n*) ECHO_N= ECHO_C='
12630 ' ECHO_T='      ' ;;
12631   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12632   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12633 esac
12634
12635 if expr a : '\(a\)' >/dev/null 2>&1; then
12636   as_expr=expr
12637 else
12638   as_expr=false
12639 fi
12640
12641 rm -f conf$$ conf$$.exe conf$$.file
12642 echo >conf$$.file
12643 if ln -s conf$$.file conf$$ 2>/dev/null; then
12644   # We could just check for DJGPP; but this test a) works b) is more generic
12645   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12646   if test -f conf$$.exe; then
12647     # Don't use ln at all; we don't have any links
12648     as_ln_s='cp -p'
12649   else
12650     as_ln_s='ln -s'
12651   fi
12652 elif ln conf$$.file conf$$ 2>/dev/null; then
12653   as_ln_s=ln
12654 else
12655   as_ln_s='cp -p'
12656 fi
12657 rm -f conf$$ conf$$.exe conf$$.file
12658
12659 if mkdir -p . 2>/dev/null; then
12660   as_mkdir_p=:
12661 else
12662   test -d ./-p && rmdir ./-p
12663   as_mkdir_p=false
12664 fi
12665
12666 as_executable_p="test -f"
12667
12668 # Sed expression to map a string onto a valid CPP name.
12669 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12670
12671 # Sed expression to map a string onto a valid variable name.
12672 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12673
12674
12675 # IFS
12676 # We need space, tab and new line, in precisely that order.
12677 as_nl='
12678 '
12679 IFS="   $as_nl"
12680
12681 # CDPATH.
12682 $as_unset CDPATH
12683
12684 exec 6>&1
12685
12686 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12687 # report actual input values of CONFIG_FILES etc. instead of their
12688 # values after options handling.  Logging --version etc. is OK.
12689 exec 5>>config.log
12690 {
12691   echo
12692   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12693 ## Running $as_me. ##
12694 _ASBOX
12695 } >&5
12696 cat >&5 <<_CSEOF
12697
12698 This file was extended by libmudflap $as_me 1.0, which was
12699 generated by GNU Autoconf 2.59.  Invocation command line was
12700
12701   CONFIG_FILES    = $CONFIG_FILES
12702   CONFIG_HEADERS  = $CONFIG_HEADERS
12703   CONFIG_LINKS    = $CONFIG_LINKS
12704   CONFIG_COMMANDS = $CONFIG_COMMANDS
12705   $ $0 $@
12706
12707 _CSEOF
12708 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12709 echo >&5
12710 _ACEOF
12711
12712 # Files that config.status was made for.
12713 if test -n "$ac_config_files"; then
12714   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12715 fi
12716
12717 if test -n "$ac_config_headers"; then
12718   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12719 fi
12720
12721 if test -n "$ac_config_links"; then
12722   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12723 fi
12724
12725 if test -n "$ac_config_commands"; then
12726   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12727 fi
12728
12729 cat >>$CONFIG_STATUS <<\_ACEOF
12730
12731 ac_cs_usage="\
12732 \`$as_me' instantiates files from templates according to the
12733 current configuration.
12734
12735 Usage: $0 [OPTIONS] [FILE]...
12736
12737   -h, --help       print this help, then exit
12738   -V, --version    print version number, then exit
12739   -q, --quiet      do not print progress messages
12740   -d, --debug      don't remove temporary files
12741       --recheck    update $as_me by reconfiguring in the same conditions
12742   --file=FILE[:TEMPLATE]
12743                    instantiate the configuration file FILE
12744   --header=FILE[:TEMPLATE]
12745                    instantiate the configuration header FILE
12746
12747 Configuration files:
12748 $config_files
12749
12750 Configuration headers:
12751 $config_headers
12752
12753 Configuration commands:
12754 $config_commands
12755
12756 Report bugs to <bug-autoconf@gnu.org>."
12757 _ACEOF
12758
12759 cat >>$CONFIG_STATUS <<_ACEOF
12760 ac_cs_version="\\
12761 libmudflap config.status 1.0
12762 configured by $0, generated by GNU Autoconf 2.59,
12763   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12764
12765 Copyright (C) 2003 Free Software Foundation, Inc.
12766 This config.status script is free software; the Free Software Foundation
12767 gives unlimited permission to copy, distribute and modify it."
12768 srcdir=$srcdir
12769 INSTALL="$INSTALL"
12770 _ACEOF
12771
12772 cat >>$CONFIG_STATUS <<\_ACEOF
12773 # If no file are specified by the user, then we need to provide default
12774 # value.  By we need to know if files were specified by the user.
12775 ac_need_defaults=:
12776 while test $# != 0
12777 do
12778   case $1 in
12779   --*=*)
12780     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12781     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12782     ac_shift=:
12783     ;;
12784   -*)
12785     ac_option=$1
12786     ac_optarg=$2
12787     ac_shift=shift
12788     ;;
12789   *) # This is not an option, so the user has probably given explicit
12790      # arguments.
12791      ac_option=$1
12792      ac_need_defaults=false;;
12793   esac
12794
12795   case $ac_option in
12796   # Handling of the options.
12797 _ACEOF
12798 cat >>$CONFIG_STATUS <<\_ACEOF
12799   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12800     ac_cs_recheck=: ;;
12801   --version | --vers* | -V )
12802     echo "$ac_cs_version"; exit 0 ;;
12803   --he | --h)
12804     # Conflict between --help and --header
12805     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12806 Try \`$0 --help' for more information." >&5
12807 echo "$as_me: error: ambiguous option: $1
12808 Try \`$0 --help' for more information." >&2;}
12809    { (exit 1); exit 1; }; };;
12810   --help | --hel | -h )
12811     echo "$ac_cs_usage"; exit 0 ;;
12812   --debug | --d* | -d )
12813     debug=: ;;
12814   --file | --fil | --fi | --f )
12815     $ac_shift
12816     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12817     ac_need_defaults=false;;
12818   --header | --heade | --head | --hea )
12819     $ac_shift
12820     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12821     ac_need_defaults=false;;
12822   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12823   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12824     ac_cs_silent=: ;;
12825
12826   # This is an error.
12827   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12828 Try \`$0 --help' for more information." >&5
12829 echo "$as_me: error: unrecognized option: $1
12830 Try \`$0 --help' for more information." >&2;}
12831    { (exit 1); exit 1; }; } ;;
12832
12833   *) ac_config_targets="$ac_config_targets $1" ;;
12834
12835   esac
12836   shift
12837 done
12838
12839 ac_configure_extra_args=
12840
12841 if $ac_cs_silent; then
12842   exec 6>/dev/null
12843   ac_configure_extra_args="$ac_configure_extra_args --silent"
12844 fi
12845
12846 _ACEOF
12847 cat >>$CONFIG_STATUS <<_ACEOF
12848 if \$ac_cs_recheck; then
12849   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12850   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12851 fi
12852
12853 _ACEOF
12854
12855 cat >>$CONFIG_STATUS <<_ACEOF
12856 #
12857 # INIT-COMMANDS section.
12858 #
12859
12860
12861 srcdir="$srcdir"
12862 host="$host"
12863 target="$target"
12864 with_multisubdir="$with_multisubdir"
12865 with_multisrctop="$with_multisrctop"
12866 with_target_subdir="$with_target_subdir"
12867 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12868 multi_basedir="$multi_basedir"
12869 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12870 CC="$CC"
12871 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12872
12873
12874 # The HP-UX ksh and POSIX shell print the target directory to stdout
12875 # if CDPATH is set.
12876 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12877
12878 sed_quote_subst='$sed_quote_subst'
12879 double_quote_subst='$double_quote_subst'
12880 delay_variable_subst='$delay_variable_subst'
12881 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12882 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12883 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12884 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12885 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12886 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12887 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12888 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12889 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12890 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12891 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12892 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12893 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12894 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12895 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12896 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12897 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12898 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12899 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12900 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12901 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12902 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12903 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12904 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12905 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12906 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12907 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12908 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12909 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12910 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12911 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12912 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12913 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12914 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12915 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12916 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12917 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12918 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12919 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12920 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12921 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12922 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12923 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12924 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"`'
12925 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12926 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12927 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12928 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12929 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12930 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12931 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12932 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12933 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12934 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12935 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12936 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12937 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12938 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12939 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12940 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12941 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12942 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12943 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12944 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12945 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12946 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12947 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12948 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12949 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12950 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12951 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12952 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12953 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12954 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12955 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12956 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12957 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12958 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12959 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12960 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12961 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12962 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12963 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12964 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12965 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12966 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12967 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12968 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12969 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12970 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12971 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12972 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12973 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12974 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12975 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12976 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12977 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12978 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12979 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12980 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12981 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12982 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12983 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12984 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12985 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12986 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12987 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12988 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12989 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12990 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12991 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12992
12993 LTCC='$LTCC'
12994 LTCFLAGS='$LTCFLAGS'
12995 compiler='$compiler_DEFAULT'
12996
12997 # Quote evaled strings.
12998 for var in SED \
12999 GREP \
13000 EGREP \
13001 FGREP \
13002 LD \
13003 NM \
13004 LN_S \
13005 lt_SP2NL \
13006 lt_NL2SP \
13007 reload_flag \
13008 deplibs_check_method \
13009 file_magic_cmd \
13010 AR \
13011 AR_FLAGS \
13012 STRIP \
13013 RANLIB \
13014 CC \
13015 CFLAGS \
13016 compiler \
13017 lt_cv_sys_global_symbol_pipe \
13018 lt_cv_sys_global_symbol_to_cdecl \
13019 lt_cv_sys_global_symbol_to_c_name_address \
13020 SHELL \
13021 ECHO \
13022 lt_prog_compiler_no_builtin_flag \
13023 lt_prog_compiler_wl \
13024 lt_prog_compiler_pic \
13025 lt_prog_compiler_static \
13026 lt_cv_prog_compiler_c_o \
13027 need_locks \
13028 shrext_cmds \
13029 export_dynamic_flag_spec \
13030 whole_archive_flag_spec \
13031 compiler_needs_object \
13032 with_gnu_ld \
13033 allow_undefined_flag \
13034 no_undefined_flag \
13035 hardcode_libdir_flag_spec \
13036 hardcode_libdir_flag_spec_ld \
13037 hardcode_libdir_separator \
13038 fix_srcfile_path \
13039 exclude_expsyms \
13040 include_expsyms \
13041 file_list_spec \
13042 variables_saved_for_relink \
13043 libname_spec \
13044 library_names_spec \
13045 soname_spec \
13046 finish_eval \
13047 old_striplib \
13048 striplib; do
13049     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13050     *[\\\\\\\`\\"\\\$]*)
13051       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13052       ;;
13053     *)
13054       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13055       ;;
13056     esac
13057 done
13058
13059 # Double-quote double-evaled strings.
13060 for var in reload_cmds \
13061 old_postinstall_cmds \
13062 old_postuninstall_cmds \
13063 old_archive_cmds \
13064 extract_expsyms_cmds \
13065 old_archive_from_new_cmds \
13066 old_archive_from_expsyms_cmds \
13067 archive_cmds \
13068 archive_expsym_cmds \
13069 module_cmds \
13070 module_expsym_cmds \
13071 export_symbols_cmds \
13072 prelink_cmds \
13073 postinstall_cmds \
13074 postuninstall_cmds \
13075 finish_cmds \
13076 sys_lib_search_path_spec \
13077 sys_lib_dlsearch_path_spec; do
13078     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13079     *[\\\\\\\`\\"\\\$]*)
13080       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13081       ;;
13082     *)
13083       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13084       ;;
13085     esac
13086 done
13087
13088 # Fix-up fallback echo if it was mangled by the above quoting rules.
13089 case \$lt_ECHO in
13090 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13091   ;;
13092 esac
13093
13094 ac_aux_dir='$ac_aux_dir'
13095 xsi_shell='$xsi_shell'
13096 lt_shell_append='$lt_shell_append'
13097
13098 # See if we are running on zsh, and set the options which allow our
13099 # commands through without removal of \ escapes INIT.
13100 if test -n "\${ZSH_VERSION+set}" ; then
13101    setopt NO_GLOB_SUBST
13102 fi
13103
13104
13105     PACKAGE='$PACKAGE'
13106     VERSION='$VERSION'
13107     TIMESTAMP='$TIMESTAMP'
13108     RM='$RM'
13109     ofile='$ofile'
13110
13111
13112
13113
13114 _ACEOF
13115
13116
13117
13118 cat >>$CONFIG_STATUS <<\_ACEOF
13119 for ac_config_target in $ac_config_targets
13120 do
13121   case "$ac_config_target" in
13122   # Handling of arguments.
13123   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13124   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13125   "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
13126   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13127   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13128   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13129   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13130   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13131 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13132    { (exit 1); exit 1; }; };;
13133   esac
13134 done
13135
13136 # If the user did not use the arguments to specify the items to instantiate,
13137 # then the envvar interface is used.  Set only those that are not.
13138 # We use the long form for the default assignment because of an extremely
13139 # bizarre bug on SunOS 4.1.3.
13140 if $ac_need_defaults; then
13141   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13142   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13143   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13144 fi
13145
13146 # Have a temporary directory for convenience.  Make it in the build tree
13147 # simply because there is no reason to put it here, and in addition,
13148 # creating and moving files from /tmp can sometimes cause problems.
13149 # Create a temporary directory, and hook for its removal unless debugging.
13150 $debug ||
13151 {
13152   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13153   trap '{ (exit 1); exit 1; }' 1 2 13 15
13154 }
13155
13156 # Create a (secure) tmp directory for tmp files.
13157
13158 {
13159   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13160   test -n "$tmp" && test -d "$tmp"
13161 }  ||
13162 {
13163   tmp=./confstat$$-$RANDOM
13164   (umask 077 && mkdir $tmp)
13165 } ||
13166 {
13167    echo "$me: cannot create a temporary directory in ." >&2
13168    { (exit 1); exit 1; }
13169 }
13170
13171 _ACEOF
13172
13173 cat >>$CONFIG_STATUS <<_ACEOF
13174
13175 #
13176 # CONFIG_FILES section.
13177 #
13178
13179 # No need to generate the scripts if there are no CONFIG_FILES.
13180 # This happens for instance when ./config.status config.h
13181 if test -n "\$CONFIG_FILES"; then
13182   # Protect against being on the right side of a sed subst in config.status.
13183   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13184    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13185 s,@SHELL@,$SHELL,;t t
13186 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13192 s,@exec_prefix@,$exec_prefix,;t t
13193 s,@prefix@,$prefix,;t t
13194 s,@program_transform_name@,$program_transform_name,;t t
13195 s,@bindir@,$bindir,;t t
13196 s,@sbindir@,$sbindir,;t t
13197 s,@libexecdir@,$libexecdir,;t t
13198 s,@datadir@,$datadir,;t t
13199 s,@sysconfdir@,$sysconfdir,;t t
13200 s,@sharedstatedir@,$sharedstatedir,;t t
13201 s,@localstatedir@,$localstatedir,;t t
13202 s,@libdir@,$libdir,;t t
13203 s,@includedir@,$includedir,;t t
13204 s,@oldincludedir@,$oldincludedir,;t t
13205 s,@infodir@,$infodir,;t t
13206 s,@mandir@,$mandir,;t t
13207 s,@build_alias@,$build_alias,;t t
13208 s,@host_alias@,$host_alias,;t t
13209 s,@target_alias@,$target_alias,;t t
13210 s,@DEFS@,$DEFS,;t t
13211 s,@ECHO_C@,$ECHO_C,;t t
13212 s,@ECHO_N@,$ECHO_N,;t t
13213 s,@ECHO_T@,$ECHO_T,;t t
13214 s,@LIBS@,$LIBS,;t t
13215 s,@build@,$build,;t t
13216 s,@build_cpu@,$build_cpu,;t t
13217 s,@build_vendor@,$build_vendor,;t t
13218 s,@build_os@,$build_os,;t t
13219 s,@host@,$host,;t t
13220 s,@host_cpu@,$host_cpu,;t t
13221 s,@host_vendor@,$host_vendor,;t t
13222 s,@host_os@,$host_os,;t t
13223 s,@target@,$target,;t t
13224 s,@target_cpu@,$target_cpu,;t t
13225 s,@target_vendor@,$target_vendor,;t t
13226 s,@target_os@,$target_os,;t t
13227 s,@target_noncanonical@,$target_noncanonical,;t t
13228 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13229 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13230 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13231 s,@CYGPATH_W@,$CYGPATH_W,;t t
13232 s,@PACKAGE@,$PACKAGE,;t t
13233 s,@VERSION@,$VERSION,;t t
13234 s,@ACLOCAL@,$ACLOCAL,;t t
13235 s,@AUTOCONF@,$AUTOCONF,;t t
13236 s,@AUTOMAKE@,$AUTOMAKE,;t t
13237 s,@AUTOHEADER@,$AUTOHEADER,;t t
13238 s,@MAKEINFO@,$MAKEINFO,;t t
13239 s,@install_sh@,$install_sh,;t t
13240 s,@STRIP@,$STRIP,;t t
13241 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13242 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13243 s,@mkdir_p@,$mkdir_p,;t t
13244 s,@AWK@,$AWK,;t t
13245 s,@SET_MAKE@,$SET_MAKE,;t t
13246 s,@am__leading_dot@,$am__leading_dot,;t t
13247 s,@AMTAR@,$AMTAR,;t t
13248 s,@am__tar@,$am__tar,;t t
13249 s,@am__untar@,$am__untar,;t t
13250 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13251 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13252 s,@MAINT@,$MAINT,;t t
13253 s,@multi_basedir@,$multi_basedir,;t t
13254 s,@CC@,$CC,;t t
13255 s,@ac_ct_CC@,$ac_ct_CC,;t t
13256 s,@EXEEXT@,$EXEEXT,;t t
13257 s,@OBJEXT@,$OBJEXT,;t t
13258 s,@DEPDIR@,$DEPDIR,;t t
13259 s,@am__include@,$am__include,;t t
13260 s,@am__quote@,$am__quote,;t t
13261 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13262 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13263 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13264 s,@CCDEPMODE@,$CCDEPMODE,;t t
13265 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13266 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13267 s,@CFLAGS@,$CFLAGS,;t t
13268 s,@CPP@,$CPP,;t t
13269 s,@CPPFLAGS@,$CPPFLAGS,;t t
13270 s,@EGREP@,$EGREP,;t t
13271 s,@LIBTOOL@,$LIBTOOL,;t t
13272 s,@SED@,$SED,;t t
13273 s,@FGREP@,$FGREP,;t t
13274 s,@GREP@,$GREP,;t t
13275 s,@LD@,$LD,;t t
13276 s,@DUMPBIN@,$DUMPBIN,;t t
13277 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13278 s,@NM@,$NM,;t t
13279 s,@LN_S@,$LN_S,;t t
13280 s,@AR@,$AR,;t t
13281 s,@ac_ct_AR@,$ac_ct_AR,;t t
13282 s,@RANLIB@,$RANLIB,;t t
13283 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13284 s,@lt_ECHO@,$lt_ECHO,;t t
13285 s,@enable_shared@,$enable_shared,;t t
13286 s,@enable_static@,$enable_static,;t t
13287 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
13288 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
13289 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
13290 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
13291 s,@build_libmudflapth@,$build_libmudflapth,;t t
13292 s,@toolexecdir@,$toolexecdir,;t t
13293 s,@toolexeclibdir@,$toolexeclibdir,;t t
13294 s,@ac_ct_NM@,$ac_ct_NM,;t t
13295 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
13296 s,@LIBOBJS@,$LIBOBJS,;t t
13297 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13298 CEOF
13299
13300 _ACEOF
13301
13302   cat >>$CONFIG_STATUS <<\_ACEOF
13303   # Split the substitutions into bite-sized pieces for seds with
13304   # small command number limits, like on Digital OSF/1 and HP-UX.
13305   ac_max_sed_lines=48
13306   ac_sed_frag=1 # Number of current file.
13307   ac_beg=1 # First line for current file.
13308   ac_end=$ac_max_sed_lines # Line after last line for current file.
13309   ac_more_lines=:
13310   ac_sed_cmds=
13311   while $ac_more_lines; do
13312     if test $ac_beg -gt 1; then
13313       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13314     else
13315       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13316     fi
13317     if test ! -s $tmp/subs.frag; then
13318       ac_more_lines=false
13319     else
13320       # The purpose of the label and of the branching condition is to
13321       # speed up the sed processing (if there are no `@' at all, there
13322       # is no need to browse any of the substitutions).
13323       # These are the two extra sed commands mentioned above.
13324       (echo ':t
13325   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13326       if test -z "$ac_sed_cmds"; then
13327         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13328       else
13329         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13330       fi
13331       ac_sed_frag=`expr $ac_sed_frag + 1`
13332       ac_beg=$ac_end
13333       ac_end=`expr $ac_end + $ac_max_sed_lines`
13334     fi
13335   done
13336   if test -z "$ac_sed_cmds"; then
13337     ac_sed_cmds=cat
13338   fi
13339 fi # test -n "$CONFIG_FILES"
13340
13341 _ACEOF
13342 cat >>$CONFIG_STATUS <<\_ACEOF
13343 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13344   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13345   case $ac_file in
13346   - | *:- | *:-:* ) # input from stdin
13347         cat >$tmp/stdin
13348         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13349         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13350   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13351         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13352   * )   ac_file_in=$ac_file.in ;;
13353   esac
13354
13355   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13356   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13357 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13358          X"$ac_file" : 'X\(//\)[^/]' \| \
13359          X"$ac_file" : 'X\(//\)$' \| \
13360          X"$ac_file" : 'X\(/\)' \| \
13361          .     : '\(.\)' 2>/dev/null ||
13362 echo X"$ac_file" |
13363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13364           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13365           /^X\(\/\/\)$/{ s//\1/; q; }
13366           /^X\(\/\).*/{ s//\1/; q; }
13367           s/.*/./; q'`
13368   { if $as_mkdir_p; then
13369     mkdir -p "$ac_dir"
13370   else
13371     as_dir="$ac_dir"
13372     as_dirs=
13373     while test ! -d "$as_dir"; do
13374       as_dirs="$as_dir $as_dirs"
13375       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13376 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13377          X"$as_dir" : 'X\(//\)[^/]' \| \
13378          X"$as_dir" : 'X\(//\)$' \| \
13379          X"$as_dir" : 'X\(/\)' \| \
13380          .     : '\(.\)' 2>/dev/null ||
13381 echo X"$as_dir" |
13382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13383           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13384           /^X\(\/\/\)$/{ s//\1/; q; }
13385           /^X\(\/\).*/{ s//\1/; q; }
13386           s/.*/./; q'`
13387     done
13388     test ! -n "$as_dirs" || mkdir $as_dirs
13389   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13390 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13391    { (exit 1); exit 1; }; }; }
13392
13393   ac_builddir=.
13394
13395 if test "$ac_dir" != .; then
13396   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13397   # A "../" for each directory in $ac_dir_suffix.
13398   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13399 else
13400   ac_dir_suffix= ac_top_builddir=
13401 fi
13402
13403 case $srcdir in
13404   .)  # No --srcdir option.  We are building in place.
13405     ac_srcdir=.
13406     if test -z "$ac_top_builddir"; then
13407        ac_top_srcdir=.
13408     else
13409        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13410     fi ;;
13411   [\\/]* | ?:[\\/]* )  # Absolute path.
13412     ac_srcdir=$srcdir$ac_dir_suffix;
13413     ac_top_srcdir=$srcdir ;;
13414   *) # Relative path.
13415     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13416     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13417 esac
13418
13419 # Do not use `cd foo && pwd` to compute absolute paths, because
13420 # the directories may not exist.
13421 case `pwd` in
13422 .) ac_abs_builddir="$ac_dir";;
13423 *)
13424   case "$ac_dir" in
13425   .) ac_abs_builddir=`pwd`;;
13426   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13427   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13428   esac;;
13429 esac
13430 case $ac_abs_builddir in
13431 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13432 *)
13433   case ${ac_top_builddir}. in
13434   .) ac_abs_top_builddir=$ac_abs_builddir;;
13435   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13436   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13437   esac;;
13438 esac
13439 case $ac_abs_builddir in
13440 .) ac_abs_srcdir=$ac_srcdir;;
13441 *)
13442   case $ac_srcdir in
13443   .) ac_abs_srcdir=$ac_abs_builddir;;
13444   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13445   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13446   esac;;
13447 esac
13448 case $ac_abs_builddir in
13449 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13450 *)
13451   case $ac_top_srcdir in
13452   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13453   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13454   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13455   esac;;
13456 esac
13457
13458
13459   case $INSTALL in
13460   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13461   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13462   esac
13463
13464   if test x"$ac_file" != x-; then
13465     { echo "$as_me:$LINENO: creating $ac_file" >&5
13466 echo "$as_me: creating $ac_file" >&6;}
13467     rm -f "$ac_file"
13468   fi
13469   # Let's still pretend it is `configure' which instantiates (i.e., don't
13470   # use $as_me), people would be surprised to read:
13471   #    /* config.h.  Generated by config.status.  */
13472   if test x"$ac_file" = x-; then
13473     configure_input=
13474   else
13475     configure_input="$ac_file.  "
13476   fi
13477   configure_input=$configure_input"Generated from `echo $ac_file_in |
13478                                      sed 's,.*/,,'` by configure."
13479
13480   # First look for the input files in the build tree, otherwise in the
13481   # src tree.
13482   ac_file_inputs=`IFS=:
13483     for f in $ac_file_in; do
13484       case $f in
13485       -) echo $tmp/stdin ;;
13486       [\\/$]*)
13487          # Absolute (can't be DOS-style, as IFS=:)
13488          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13489 echo "$as_me: error: cannot find input file: $f" >&2;}
13490    { (exit 1); exit 1; }; }
13491          echo "$f";;
13492       *) # Relative
13493          if test -f "$f"; then
13494            # Build tree
13495            echo "$f"
13496          elif test -f "$srcdir/$f"; then
13497            # Source tree
13498            echo "$srcdir/$f"
13499          else
13500            # /dev/null tree
13501            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13502 echo "$as_me: error: cannot find input file: $f" >&2;}
13503    { (exit 1); exit 1; }; }
13504          fi;;
13505       esac
13506     done` || { (exit 1); exit 1; }
13507 _ACEOF
13508 cat >>$CONFIG_STATUS <<_ACEOF
13509   sed "$ac_vpsub
13510 $extrasub
13511 _ACEOF
13512 cat >>$CONFIG_STATUS <<\_ACEOF
13513 :t
13514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13515 s,@configure_input@,$configure_input,;t t
13516 s,@srcdir@,$ac_srcdir,;t t
13517 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13518 s,@top_srcdir@,$ac_top_srcdir,;t t
13519 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13520 s,@builddir@,$ac_builddir,;t t
13521 s,@abs_builddir@,$ac_abs_builddir,;t t
13522 s,@top_builddir@,$ac_top_builddir,;t t
13523 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13524 s,@INSTALL@,$ac_INSTALL,;t t
13525 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13526   rm -f $tmp/stdin
13527   if test x"$ac_file" != x-; then
13528     mv $tmp/out $ac_file
13529   else
13530     cat $tmp/out
13531     rm -f $tmp/out
13532   fi
13533
13534 done
13535 _ACEOF
13536 cat >>$CONFIG_STATUS <<\_ACEOF
13537
13538 #
13539 # CONFIG_HEADER section.
13540 #
13541
13542 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13543 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13544 #
13545 # ac_d sets the value in "#define NAME VALUE" lines.
13546 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13547 ac_dB='[         ].*$,\1#\2'
13548 ac_dC=' '
13549 ac_dD=',;t'
13550 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13551 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13552 ac_uB='$,\1#\2define\3'
13553 ac_uC=' '
13554 ac_uD=',;t'
13555
13556 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13557   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13558   case $ac_file in
13559   - | *:- | *:-:* ) # input from stdin
13560         cat >$tmp/stdin
13561         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13562         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13563   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13564         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13565   * )   ac_file_in=$ac_file.in ;;
13566   esac
13567
13568   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13569 echo "$as_me: creating $ac_file" >&6;}
13570
13571   # First look for the input files in the build tree, otherwise in the
13572   # src tree.
13573   ac_file_inputs=`IFS=:
13574     for f in $ac_file_in; do
13575       case $f in
13576       -) echo $tmp/stdin ;;
13577       [\\/$]*)
13578          # Absolute (can't be DOS-style, as IFS=:)
13579          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13580 echo "$as_me: error: cannot find input file: $f" >&2;}
13581    { (exit 1); exit 1; }; }
13582          # Do quote $f, to prevent DOS paths from being IFS'd.
13583          echo "$f";;
13584       *) # Relative
13585          if test -f "$f"; then
13586            # Build tree
13587            echo "$f"
13588          elif test -f "$srcdir/$f"; then
13589            # Source tree
13590            echo "$srcdir/$f"
13591          else
13592            # /dev/null tree
13593            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13594 echo "$as_me: error: cannot find input file: $f" >&2;}
13595    { (exit 1); exit 1; }; }
13596          fi;;
13597       esac
13598     done` || { (exit 1); exit 1; }
13599   # Remove the trailing spaces.
13600   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13601
13602 _ACEOF
13603
13604 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13605 # `conftest.undefs', that substitutes the proper values into
13606 # config.h.in to produce config.h.  The first handles `#define'
13607 # templates, and the second `#undef' templates.
13608 # And first: Protect against being on the right side of a sed subst in
13609 # config.status.  Protect against being in an unquoted here document
13610 # in config.status.
13611 rm -f conftest.defines conftest.undefs
13612 # Using a here document instead of a string reduces the quoting nightmare.
13613 # Putting comments in sed scripts is not portable.
13614 #
13615 # `end' is used to avoid that the second main sed command (meant for
13616 # 0-ary CPP macros) applies to n-ary macro definitions.
13617 # See the Autoconf documentation for `clear'.
13618 cat >confdef2sed.sed <<\_ACEOF
13619 s/[\\&,]/\\&/g
13620 s,[\\$`],\\&,g
13621 t clear
13622 : clear
13623 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13624 t end
13625 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13626 : end
13627 _ACEOF
13628 # If some macros were called several times there might be several times
13629 # the same #defines, which is useless.  Nevertheless, we may not want to
13630 # sort them, since we want the *last* AC-DEFINE to be honored.
13631 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13632 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13633 rm -f confdef2sed.sed
13634
13635 # This sed command replaces #undef with comments.  This is necessary, for
13636 # example, in the case of _POSIX_SOURCE, which is predefined and required
13637 # on some systems where configure will not decide to define it.
13638 cat >>conftest.undefs <<\_ACEOF
13639 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13640 _ACEOF
13641
13642 # Break up conftest.defines because some shells have a limit on the size
13643 # of here documents, and old seds have small limits too (100 cmds).
13644 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13645 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13646 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13647 echo '  :' >>$CONFIG_STATUS
13648 rm -f conftest.tail
13649 while grep . conftest.defines >/dev/null
13650 do
13651   # Write a limited-size here document to $tmp/defines.sed.
13652   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13653   # Speed up: don't consider the non `#define' lines.
13654   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13655   # Work around the forget-to-reset-the-flag bug.
13656   echo 't clr' >>$CONFIG_STATUS
13657   echo ': clr' >>$CONFIG_STATUS
13658   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13659   echo 'CEOF
13660   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13661   rm -f $tmp/in
13662   mv $tmp/out $tmp/in
13663 ' >>$CONFIG_STATUS
13664   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13665   rm -f conftest.defines
13666   mv conftest.tail conftest.defines
13667 done
13668 rm -f conftest.defines
13669 echo '  fi # grep' >>$CONFIG_STATUS
13670 echo >>$CONFIG_STATUS
13671
13672 # Break up conftest.undefs because some shells have a limit on the size
13673 # of here documents, and old seds have small limits too (100 cmds).
13674 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13675 rm -f conftest.tail
13676 while grep . conftest.undefs >/dev/null
13677 do
13678   # Write a limited-size here document to $tmp/undefs.sed.
13679   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13680   # Speed up: don't consider the non `#undef'
13681   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13682   # Work around the forget-to-reset-the-flag bug.
13683   echo 't clr' >>$CONFIG_STATUS
13684   echo ': clr' >>$CONFIG_STATUS
13685   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13686   echo 'CEOF
13687   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13688   rm -f $tmp/in
13689   mv $tmp/out $tmp/in
13690 ' >>$CONFIG_STATUS
13691   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13692   rm -f conftest.undefs
13693   mv conftest.tail conftest.undefs
13694 done
13695 rm -f conftest.undefs
13696
13697 cat >>$CONFIG_STATUS <<\_ACEOF
13698   # Let's still pretend it is `configure' which instantiates (i.e., don't
13699   # use $as_me), people would be surprised to read:
13700   #    /* config.h.  Generated by config.status.  */
13701   if test x"$ac_file" = x-; then
13702     echo "/* Generated by configure.  */" >$tmp/config.h
13703   else
13704     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13705   fi
13706   cat $tmp/in >>$tmp/config.h
13707   rm -f $tmp/in
13708   if test x"$ac_file" != x-; then
13709     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13710       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13711 echo "$as_me: $ac_file is unchanged" >&6;}
13712     else
13713       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13715          X"$ac_file" : 'X\(//\)[^/]' \| \
13716          X"$ac_file" : 'X\(//\)$' \| \
13717          X"$ac_file" : 'X\(/\)' \| \
13718          .     : '\(.\)' 2>/dev/null ||
13719 echo X"$ac_file" |
13720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13722           /^X\(\/\/\)$/{ s//\1/; q; }
13723           /^X\(\/\).*/{ s//\1/; q; }
13724           s/.*/./; q'`
13725       { if $as_mkdir_p; then
13726     mkdir -p "$ac_dir"
13727   else
13728     as_dir="$ac_dir"
13729     as_dirs=
13730     while test ! -d "$as_dir"; do
13731       as_dirs="$as_dir $as_dirs"
13732       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13734          X"$as_dir" : 'X\(//\)[^/]' \| \
13735          X"$as_dir" : 'X\(//\)$' \| \
13736          X"$as_dir" : 'X\(/\)' \| \
13737          .     : '\(.\)' 2>/dev/null ||
13738 echo X"$as_dir" |
13739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13740           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13741           /^X\(\/\/\)$/{ s//\1/; q; }
13742           /^X\(\/\).*/{ s//\1/; q; }
13743           s/.*/./; q'`
13744     done
13745     test ! -n "$as_dirs" || mkdir $as_dirs
13746   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13747 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13748    { (exit 1); exit 1; }; }; }
13749
13750       rm -f $ac_file
13751       mv $tmp/config.h $ac_file
13752     fi
13753   else
13754     cat $tmp/config.h
13755     rm -f $tmp/config.h
13756   fi
13757 # Compute $ac_file's index in $config_headers.
13758 _am_stamp_count=1
13759 for _am_header in $config_headers :; do
13760   case $_am_header in
13761     $ac_file | $ac_file:* )
13762       break ;;
13763     * )
13764       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13765   esac
13766 done
13767 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13768 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13769          X$ac_file : 'X\(//\)[^/]' \| \
13770          X$ac_file : 'X\(//\)$' \| \
13771          X$ac_file : 'X\(/\)' \| \
13772          .     : '\(.\)' 2>/dev/null ||
13773 echo X$ac_file |
13774     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13775           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13776           /^X\(\/\/\)$/{ s//\1/; q; }
13777           /^X\(\/\).*/{ s//\1/; q; }
13778           s/.*/./; q'`/stamp-h$_am_stamp_count
13779 done
13780 _ACEOF
13781 cat >>$CONFIG_STATUS <<\_ACEOF
13782
13783 #
13784 # CONFIG_COMMANDS section.
13785 #
13786 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13787   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13788   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13789   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13790 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13791          X"$ac_dest" : 'X\(//\)[^/]' \| \
13792          X"$ac_dest" : 'X\(//\)$' \| \
13793          X"$ac_dest" : 'X\(/\)' \| \
13794          .     : '\(.\)' 2>/dev/null ||
13795 echo X"$ac_dest" |
13796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13797           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13798           /^X\(\/\/\)$/{ s//\1/; q; }
13799           /^X\(\/\).*/{ s//\1/; q; }
13800           s/.*/./; q'`
13801   { if $as_mkdir_p; then
13802     mkdir -p "$ac_dir"
13803   else
13804     as_dir="$ac_dir"
13805     as_dirs=
13806     while test ! -d "$as_dir"; do
13807       as_dirs="$as_dir $as_dirs"
13808       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13810          X"$as_dir" : 'X\(//\)[^/]' \| \
13811          X"$as_dir" : 'X\(//\)$' \| \
13812          X"$as_dir" : 'X\(/\)' \| \
13813          .     : '\(.\)' 2>/dev/null ||
13814 echo X"$as_dir" |
13815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13816           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13817           /^X\(\/\/\)$/{ s//\1/; q; }
13818           /^X\(\/\).*/{ s//\1/; q; }
13819           s/.*/./; q'`
13820     done
13821     test ! -n "$as_dirs" || mkdir $as_dirs
13822   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13824    { (exit 1); exit 1; }; }; }
13825
13826   ac_builddir=.
13827
13828 if test "$ac_dir" != .; then
13829   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13830   # A "../" for each directory in $ac_dir_suffix.
13831   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13832 else
13833   ac_dir_suffix= ac_top_builddir=
13834 fi
13835
13836 case $srcdir in
13837   .)  # No --srcdir option.  We are building in place.
13838     ac_srcdir=.
13839     if test -z "$ac_top_builddir"; then
13840        ac_top_srcdir=.
13841     else
13842        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13843     fi ;;
13844   [\\/]* | ?:[\\/]* )  # Absolute path.
13845     ac_srcdir=$srcdir$ac_dir_suffix;
13846     ac_top_srcdir=$srcdir ;;
13847   *) # Relative path.
13848     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13849     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13850 esac
13851
13852 # Do not use `cd foo && pwd` to compute absolute paths, because
13853 # the directories may not exist.
13854 case `pwd` in
13855 .) ac_abs_builddir="$ac_dir";;
13856 *)
13857   case "$ac_dir" in
13858   .) ac_abs_builddir=`pwd`;;
13859   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13860   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13861   esac;;
13862 esac
13863 case $ac_abs_builddir in
13864 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13865 *)
13866   case ${ac_top_builddir}. in
13867   .) ac_abs_top_builddir=$ac_abs_builddir;;
13868   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13869   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13870   esac;;
13871 esac
13872 case $ac_abs_builddir in
13873 .) ac_abs_srcdir=$ac_srcdir;;
13874 *)
13875   case $ac_srcdir in
13876   .) ac_abs_srcdir=$ac_abs_builddir;;
13877   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13878   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13879   esac;;
13880 esac
13881 case $ac_abs_builddir in
13882 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13883 *)
13884   case $ac_top_srcdir in
13885   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13886   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13887   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13888   esac;;
13889 esac
13890
13891
13892   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13893 echo "$as_me: executing $ac_dest commands" >&6;}
13894   case $ac_dest in
13895     default-1 )
13896 # Only add multilib support code if we just rebuilt the top-level
13897 # Makefile.
13898 case " $CONFIG_FILES " in
13899  *" Makefile "*)
13900    ac_file=Makefile . ${multi_basedir}/config-ml.in
13901    ;;
13902 esac ;;
13903     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13904   # Strip MF so we end up with the name of the file.
13905   mf=`echo "$mf" | sed -e 's/:.*$//'`
13906   # Check whether this is an Automake generated Makefile or not.
13907   # We used to match only the files named `Makefile.in', but
13908   # some people rename them; so instead we look at the file content.
13909   # Grep'ing the first line is not enough: some people post-process
13910   # each Makefile.in and add a new line on top of each file to say so.
13911   # So let's grep whole file.
13912   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13913     dirpart=`(dirname "$mf") 2>/dev/null ||
13914 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13915          X"$mf" : 'X\(//\)[^/]' \| \
13916          X"$mf" : 'X\(//\)$' \| \
13917          X"$mf" : 'X\(/\)' \| \
13918          .     : '\(.\)' 2>/dev/null ||
13919 echo X"$mf" |
13920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13921           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13922           /^X\(\/\/\)$/{ s//\1/; q; }
13923           /^X\(\/\).*/{ s//\1/; q; }
13924           s/.*/./; q'`
13925   else
13926     continue
13927   fi
13928   # Extract the definition of DEPDIR, am__include, and am__quote
13929   # from the Makefile without running `make'.
13930   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13931   test -z "$DEPDIR" && continue
13932   am__include=`sed -n 's/^am__include = //p' < "$mf"`
13933   test -z "am__include" && continue
13934   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13935   # When using ansi2knr, U may be empty or an underscore; expand it
13936   U=`sed -n 's/^U = //p' < "$mf"`
13937   # Find all dependency output files, they are included files with
13938   # $(DEPDIR) in their names.  We invoke sed twice because it is the
13939   # simplest approach to changing $(DEPDIR) to its actual value in the
13940   # expansion.
13941   for file in `sed -n "
13942     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13943        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13944     # Make sure the directory exists.
13945     test -f "$dirpart/$file" && continue
13946     fdir=`(dirname "$file") 2>/dev/null ||
13947 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13948          X"$file" : 'X\(//\)[^/]' \| \
13949          X"$file" : 'X\(//\)$' \| \
13950          X"$file" : 'X\(/\)' \| \
13951          .     : '\(.\)' 2>/dev/null ||
13952 echo X"$file" |
13953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13954           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13955           /^X\(\/\/\)$/{ s//\1/; q; }
13956           /^X\(\/\).*/{ s//\1/; q; }
13957           s/.*/./; q'`
13958     { if $as_mkdir_p; then
13959     mkdir -p $dirpart/$fdir
13960   else
13961     as_dir=$dirpart/$fdir
13962     as_dirs=
13963     while test ! -d "$as_dir"; do
13964       as_dirs="$as_dir $as_dirs"
13965       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13967          X"$as_dir" : 'X\(//\)[^/]' \| \
13968          X"$as_dir" : 'X\(//\)$' \| \
13969          X"$as_dir" : 'X\(/\)' \| \
13970          .     : '\(.\)' 2>/dev/null ||
13971 echo X"$as_dir" |
13972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13973           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13974           /^X\(\/\/\)$/{ s//\1/; q; }
13975           /^X\(\/\).*/{ s//\1/; q; }
13976           s/.*/./; q'`
13977     done
13978     test ! -n "$as_dirs" || mkdir $as_dirs
13979   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13980 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13981    { (exit 1); exit 1; }; }; }
13982
13983     # echo "creating $dirpart/$file"
13984     echo '# dummy' > "$dirpart/$file"
13985   done
13986 done
13987  ;;
13988     libtool )
13989
13990     # See if we are running on zsh, and set the options which allow our
13991     # commands through without removal of \ escapes.
13992     if test -n "${ZSH_VERSION+set}" ; then
13993       setopt NO_GLOB_SUBST
13994     fi
13995
13996     cfgfile="${ofile}T"
13997     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13998     $RM "$cfgfile"
13999
14000     cat <<_LT_EOF >> "$cfgfile"
14001 #! $SHELL
14002
14003 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14004 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14005 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14006 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14007 #
14008 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14009 # 2006, 2007 Free Software Foundation, Inc.
14010 #
14011 # This file is part of GNU Libtool:
14012 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14013 #
14014 # This program is free software; you can redistribute it and/or modify
14015 # it under the terms of the GNU General Public License as published by
14016 # the Free Software Foundation; either version 2 of the License, or
14017 # (at your option) any later version.
14018 #
14019 # This program is distributed in the hope that it will be useful, but
14020 # WITHOUT ANY WARRANTY; without even the implied warranty of
14021 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14022 # General Public License for more details.
14023 #
14024 # You should have received a copy of the GNU General Public License
14025 # along with this program; if not, a copy can be downloaded from
14026 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14027 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14028 # MA 02110-1301, USA.
14029 #
14030 # As a special exception to the GNU General Public License, if you
14031 # distribute this file as part of a program that contains a
14032 # configuration script generated by Autoconf, you may include it under
14033 # the same distribution terms that you use for the rest of that program.
14034
14035
14036 # The names of the tagged configurations supported by this script.
14037 available_tags=""
14038
14039 # ### BEGIN LIBTOOL CONFIG
14040
14041 # Which release of libtool.m4 was used?
14042 macro_version=$macro_version
14043 macro_revision=$macro_revision
14044
14045 # Whether or not to build shared libraries.
14046 build_libtool_libs=$enable_shared
14047
14048 # Whether or not to build static libraries.
14049 build_old_libs=$enable_static
14050
14051 # What type of objects to build.
14052 pic_mode=$pic_mode
14053
14054 # Whether or not to optimize for fast installation.
14055 fast_install=$enable_fast_install
14056
14057 # The host system.
14058 host_alias=$host_alias
14059 host=$host
14060 host_os=$host_os
14061
14062 # The build system.
14063 build_alias=$build_alias
14064 build=$build
14065 build_os=$build_os
14066
14067 # A sed program that does not truncate output.
14068 SED=$lt_SED
14069
14070 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14071 Xsed="\$SED -e 1s/^X//"
14072
14073 # A grep program that handles long lines.
14074 GREP=$lt_GREP
14075
14076 # An ERE matcher.
14077 EGREP=$lt_EGREP
14078
14079 # A literal string matcher.
14080 FGREP=$lt_FGREP
14081
14082 # A BSD- or MS-compatible name lister.
14083 NM=$lt_NM
14084
14085 # Whether we need soft or hard links.
14086 LN_S=$lt_LN_S
14087
14088 # What is the maximum length of a command?
14089 max_cmd_len=$max_cmd_len
14090
14091 # Object file suffix (normally "o").
14092 objext=$ac_objext
14093
14094 # Executable file suffix (normally "").
14095 exeext=$exeext
14096
14097 # whether the shell understands "unset".
14098 lt_unset=$lt_unset
14099
14100 # turn spaces into newlines.
14101 SP2NL=$lt_lt_SP2NL
14102
14103 # turn newlines into spaces.
14104 NL2SP=$lt_lt_NL2SP
14105
14106 # How to create reloadable object files.
14107 reload_flag=$lt_reload_flag
14108 reload_cmds=$lt_reload_cmds
14109
14110 # Method to check whether dependent libraries are shared objects.
14111 deplibs_check_method=$lt_deplibs_check_method
14112
14113 # Command to use when deplibs_check_method == "file_magic".
14114 file_magic_cmd=$lt_file_magic_cmd
14115
14116 # The archiver.
14117 AR=$lt_AR
14118 AR_FLAGS=$lt_AR_FLAGS
14119
14120 # A symbol stripping program.
14121 STRIP=$lt_STRIP
14122
14123 # Commands used to install an old-style archive.
14124 RANLIB=$lt_RANLIB
14125 old_postinstall_cmds=$lt_old_postinstall_cmds
14126 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14127
14128 # A C compiler.
14129 LTCC=$lt_CC
14130
14131 # LTCC compiler flags.
14132 LTCFLAGS=$lt_CFLAGS
14133
14134 # Take the output of nm and produce a listing of raw symbols and C names.
14135 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14136
14137 # Transform the output of nm in a proper C declaration.
14138 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14139
14140 # Transform the output of nm in a C name address pair.
14141 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14142
14143 # The name of the directory that contains temporary libtool files.
14144 objdir=$objdir
14145
14146 # Shell to use when invoking shell scripts.
14147 SHELL=$lt_SHELL
14148
14149 # An echo program that does not interpret backslashes.
14150 ECHO=$lt_ECHO
14151
14152 # Used to examine libraries when file_magic_cmd begins with "file".
14153 MAGIC_CMD=$MAGIC_CMD
14154
14155 # Must we lock files when doing compilation?
14156 need_locks=$lt_need_locks
14157
14158 # Old archive suffix (normally "a").
14159 libext=$libext
14160
14161 # Shared library suffix (normally ".so").
14162 shrext_cmds=$lt_shrext_cmds
14163
14164 # The commands to extract the exported symbol list from a shared archive.
14165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14166
14167 # Variables whose values should be saved in libtool wrapper scripts and
14168 # restored at link time.
14169 variables_saved_for_relink=$lt_variables_saved_for_relink
14170
14171 # Do we need the "lib" prefix for modules?
14172 need_lib_prefix=$need_lib_prefix
14173
14174 # Do we need a version for libraries?
14175 need_version=$need_version
14176
14177 # Library versioning type.
14178 version_type=$version_type
14179
14180 # Shared library runtime path variable.
14181 runpath_var=$runpath_var
14182
14183 # Shared library path variable.
14184 shlibpath_var=$shlibpath_var
14185
14186 # Is shlibpath searched before the hard-coded library search path?
14187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14188
14189 # Format of library name prefix.
14190 libname_spec=$lt_libname_spec
14191
14192 # List of archive names.  First name is the real one, the rest are links.
14193 # The last name is the one that the linker finds with -lNAME
14194 library_names_spec=$lt_library_names_spec
14195
14196 # The coded name of the library, if different from the real name.
14197 soname_spec=$lt_soname_spec
14198
14199 # Command to use after installation of a shared archive.
14200 postinstall_cmds=$lt_postinstall_cmds
14201
14202 # Command to use after uninstallation of a shared archive.
14203 postuninstall_cmds=$lt_postuninstall_cmds
14204
14205 # Commands used to finish a libtool library installation in a directory.
14206 finish_cmds=$lt_finish_cmds
14207
14208 # As "finish_cmds", except a single script fragment to be evaled but
14209 # not shown.
14210 finish_eval=$lt_finish_eval
14211
14212 # Whether we should hardcode library paths into libraries.
14213 hardcode_into_libs=$hardcode_into_libs
14214
14215 # Compile-time system search path for libraries.
14216 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14217
14218 # Run-time system search path for libraries.
14219 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14220
14221 # Whether dlopen is supported.
14222 dlopen_support=$enable_dlopen
14223
14224 # Whether dlopen of programs is supported.
14225 dlopen_self=$enable_dlopen_self
14226
14227 # Whether dlopen of statically linked programs is supported.
14228 dlopen_self_static=$enable_dlopen_self_static
14229
14230 # Commands to strip libraries.
14231 old_striplib=$lt_old_striplib
14232 striplib=$lt_striplib
14233
14234
14235 # The linker used to build libraries.
14236 LD=$lt_LD
14237
14238 # Commands used to build an old-style archive.
14239 old_archive_cmds=$lt_old_archive_cmds
14240
14241 # A language specific compiler.
14242 CC=$lt_compiler
14243
14244 # Is the compiler the GNU compiler?
14245 with_gcc=$GCC
14246
14247 # Compiler flag to turn off builtin functions.
14248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14249
14250 # How to pass a linker flag through the compiler.
14251 wl=$lt_lt_prog_compiler_wl
14252
14253 # Additional compiler flags for building library objects.
14254 pic_flag=$lt_lt_prog_compiler_pic
14255
14256 # Compiler flag to prevent dynamic linking.
14257 link_static_flag=$lt_lt_prog_compiler_static
14258
14259 # Does compiler simultaneously support -c and -o options?
14260 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14261
14262 # Whether or not to add -lc for building shared libraries.
14263 build_libtool_need_lc=$archive_cmds_need_lc
14264
14265 # Whether or not to disallow shared libs when runtime libs are static.
14266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14267
14268 # Compiler flag to allow reflexive dlopens.
14269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14270
14271 # Compiler flag to generate shared objects directly from archives.
14272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14273
14274 # Whether the compiler copes with passing no objects directly.
14275 compiler_needs_object=$lt_compiler_needs_object
14276
14277 # Create an old-style archive from a shared archive.
14278 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14279
14280 # Create a temporary old-style archive to link instead of a shared archive.
14281 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14282
14283 # Commands used to build a shared archive.
14284 archive_cmds=$lt_archive_cmds
14285 archive_expsym_cmds=$lt_archive_expsym_cmds
14286
14287 # Commands used to build a loadable module if different from building
14288 # a shared archive.
14289 module_cmds=$lt_module_cmds
14290 module_expsym_cmds=$lt_module_expsym_cmds
14291
14292 # Whether we are building with GNU ld or not.
14293 with_gnu_ld=$lt_with_gnu_ld
14294
14295 # Flag that allows shared libraries with undefined symbols to be built.
14296 allow_undefined_flag=$lt_allow_undefined_flag
14297
14298 # Flag that enforces no undefined symbols.
14299 no_undefined_flag=$lt_no_undefined_flag
14300
14301 # Flag to hardcode \$libdir into a binary during linking.
14302 # This must work even if \$libdir does not exist
14303 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14304
14305 # If ld is used when linking, flag to hardcode \$libdir into a binary
14306 # during linking.  This must work even if \$libdir does not exist.
14307 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14308
14309 # Whether we need a single "-rpath" flag with a separated argument.
14310 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14311
14312 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14313 # DIR into the resulting binary.
14314 hardcode_direct=$hardcode_direct
14315
14316 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14317 # DIR into the resulting binary and the resulting library dependency is
14318 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14319 # library is relocated.
14320 hardcode_direct_absolute=$hardcode_direct_absolute
14321
14322 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14323 # into the resulting binary.
14324 hardcode_minus_L=$hardcode_minus_L
14325
14326 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14327 # into the resulting binary.
14328 hardcode_shlibpath_var=$hardcode_shlibpath_var
14329
14330 # Set to "yes" if building a shared library automatically hardcodes DIR
14331 # into the library and all subsequent libraries and executables linked
14332 # against it.
14333 hardcode_automatic=$hardcode_automatic
14334
14335 # Set to yes if linker adds runtime paths of dependent libraries
14336 # to runtime path list.
14337 inherit_rpath=$inherit_rpath
14338
14339 # Whether libtool must link a program against all its dependency libraries.
14340 link_all_deplibs=$link_all_deplibs
14341
14342 # Fix the shell variable \$srcfile for the compiler.
14343 fix_srcfile_path=$lt_fix_srcfile_path
14344
14345 # Set to "yes" if exported symbols are required.
14346 always_export_symbols=$always_export_symbols
14347
14348 # The commands to list exported symbols.
14349 export_symbols_cmds=$lt_export_symbols_cmds
14350
14351 # Symbols that should not be listed in the preloaded symbols.
14352 exclude_expsyms=$lt_exclude_expsyms
14353
14354 # Symbols that must always be exported.
14355 include_expsyms=$lt_include_expsyms
14356
14357 # Commands necessary for linking programs (against libraries) with templates.
14358 prelink_cmds=$lt_prelink_cmds
14359
14360 # Specify filename containing input files.
14361 file_list_spec=$lt_file_list_spec
14362
14363 # How to hardcode a shared library path into an executable.
14364 hardcode_action=$hardcode_action
14365
14366 # ### END LIBTOOL CONFIG
14367
14368 _LT_EOF
14369
14370   case $host_os in
14371   aix3*)
14372     cat <<\_LT_EOF >> "$cfgfile"
14373 # AIX sometimes has problems with the GCC collect2 program.  For some
14374 # reason, if we set the COLLECT_NAMES environment variable, the problems
14375 # vanish in a puff of smoke.
14376 if test "X${COLLECT_NAMES+set}" != Xset; then
14377   COLLECT_NAMES=
14378   export COLLECT_NAMES
14379 fi
14380 _LT_EOF
14381     ;;
14382   esac
14383
14384
14385 ltmain="$ac_aux_dir/ltmain.sh"
14386
14387
14388   # We use sed instead of cat because bash on DJGPP gets confused if
14389   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14390   # text mode, it properly converts lines to CR/LF.  This bash problem
14391   # is reportedly fixed, but why not run on old versions too?
14392   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14393     || (rm -f "$cfgfile"; exit 1)
14394
14395   case $xsi_shell in
14396   yes)
14397     cat << \_LT_EOF >> "$cfgfile"
14398 # func_dirname file append nondir_replacement
14399 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14400 # otherwise set result to NONDIR_REPLACEMENT.
14401 func_dirname ()
14402 {
14403   case ${1} in
14404     */*) func_dirname_result="${1%/*}${2}" ;;
14405     *  ) func_dirname_result="${3}" ;;
14406   esac
14407 }
14408
14409 # func_basename file
14410 func_basename ()
14411 {
14412   func_basename_result="${1##*/}"
14413 }
14414
14415 # func_stripname prefix suffix name
14416 # strip PREFIX and SUFFIX off of NAME.
14417 # PREFIX and SUFFIX must not contain globbing or regex special
14418 # characters, hashes, percent signs, but SUFFIX may contain a leading
14419 # dot (in which case that matches only a dot).
14420 func_stripname ()
14421 {
14422   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14423   # positional parameters, so assign one to ordinary parameter first.
14424   func_stripname_result=${3}
14425   func_stripname_result=${func_stripname_result#"${1}"}
14426   func_stripname_result=${func_stripname_result%"${2}"}
14427 }
14428
14429 # func_opt_split
14430 func_opt_split ()
14431 {
14432   func_opt_split_opt=${1%%=*}
14433   func_opt_split_arg=${1#*=}
14434 }
14435
14436 # func_lo2o object
14437 func_lo2o ()
14438 {
14439   case ${1} in
14440     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14441     *)    func_lo2o_result=${1} ;;
14442   esac
14443 }
14444 _LT_EOF
14445     ;;
14446   *) # Bourne compatible functions.
14447     cat << \_LT_EOF >> "$cfgfile"
14448 # func_dirname file append nondir_replacement
14449 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14450 # otherwise set result to NONDIR_REPLACEMENT.
14451 func_dirname ()
14452 {
14453   # Extract subdirectory from the argument.
14454   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14455   if test "X$func_dirname_result" = "X${1}"; then
14456     func_dirname_result="${3}"
14457   else
14458     func_dirname_result="$func_dirname_result${2}"
14459   fi
14460 }
14461
14462 # func_basename file
14463 func_basename ()
14464 {
14465   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14466 }
14467
14468 # func_stripname prefix suffix name
14469 # strip PREFIX and SUFFIX off of NAME.
14470 # PREFIX and SUFFIX must not contain globbing or regex special
14471 # characters, hashes, percent signs, but SUFFIX may contain a leading
14472 # dot (in which case that matches only a dot).
14473 # func_strip_suffix prefix name
14474 func_stripname ()
14475 {
14476   case ${2} in
14477     .*) func_stripname_result=`$ECHO "X${3}" \
14478            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14479     *)  func_stripname_result=`$ECHO "X${3}" \
14480            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14481   esac
14482 }
14483
14484 # sed scripts:
14485 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14486 my_sed_long_arg='1s/^-[^=]*=//'
14487
14488 # func_opt_split
14489 func_opt_split ()
14490 {
14491   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14492   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14493 }
14494
14495 # func_lo2o object
14496 func_lo2o ()
14497 {
14498   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14499 }
14500 _LT_EOF
14501 esac
14502
14503 case $lt_shell_append in
14504   yes)
14505     cat << \_LT_EOF >> "$cfgfile"
14506
14507 # func_append var value
14508 # Append VALUE to the end of shell variable VAR.
14509 func_append ()
14510 {
14511   eval "$1+=\$2"
14512 }
14513 _LT_EOF
14514     ;;
14515   *)
14516     cat << \_LT_EOF >> "$cfgfile"
14517
14518 # func_append var value
14519 # Append VALUE to the end of shell variable VAR.
14520 func_append ()
14521 {
14522   eval "$1=\$$1\$2"
14523 }
14524 _LT_EOF
14525     ;;
14526   esac
14527
14528
14529   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14530     || (rm -f "$cfgfile"; exit 1)
14531
14532   mv -f "$cfgfile" "$ofile" ||
14533     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14534   chmod +x "$ofile"
14535
14536  ;;
14537   esac
14538 done
14539 _ACEOF
14540
14541 cat >>$CONFIG_STATUS <<\_ACEOF
14542
14543 { (exit 0); exit 0; }
14544 _ACEOF
14545 chmod +x $CONFIG_STATUS
14546 ac_clean_files=$ac_clean_files_save
14547
14548
14549 # configure is writing to config.log, and then calls config.status.
14550 # config.status does its own redirection, appending to config.log.
14551 # Unfortunately, on DOS this fails, as config.log is still kept open
14552 # by configure, so config.status won't be able to write to it; its
14553 # output is simply discarded.  So we exec the FD to /dev/null,
14554 # effectively closing config.log, so it can be properly (re)opened and
14555 # appended to by config.status.  When coming back to configure, we
14556 # need to make the FD available again.
14557 if test "$no_create" != yes; then
14558   ac_cs_success=:
14559   ac_config_status_args=
14560   test "$silent" = yes &&
14561     ac_config_status_args="$ac_config_status_args --quiet"
14562   exec 5>/dev/null
14563   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14564   exec 5>>config.log
14565   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14566   # would make configure fail if this is the last instruction.
14567   $ac_cs_success || { (exit 1); exit 1; }
14568 fi
14569