OSDN Git Service

* posix-threads.cc (ParkHelper::unpark): Do not initialise result,
[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.64 for libmudflap 1.0.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533   # Remove one level of quotation (which was required for Make).
534   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535   ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540   # Discard the --no-reexec flag, and continue.
541   shift
542 elif test "X$1" = X--fallback-echo; then
543   # Avoid inline document here, it may be left over
544   :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546   # Yippee, $ECHO works!
547   :
548 else
549   # Restart under the correct shell.
550   exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554   # used as fallback echo
555   shift
556   cat <<_LT_EOF
557 $*
558 _LT_EOF
559   exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567   if test "X${echo_test_string+set}" != Xset; then
568     # find a string as large as possible, as long as the shell can cope with it
569     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573       then
574         break
575       fi
576     done
577   fi
578
579   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581      test "X$echo_testing_string" = "X$echo_test_string"; then
582     :
583   else
584     # The Solaris, AIX, and Digital Unix default echo programs unquote
585     # backslashes.  This makes it impossible to quote backslashes using
586     #   echo "$something" | sed 's/\\/\\\\/g'
587     #
588     # So, first we look for a working echo in the user's PATH.
589
590     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591     for dir in $PATH /usr/ucb; do
592       IFS="$lt_save_ifs"
593       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596          test "X$echo_testing_string" = "X$echo_test_string"; then
597         ECHO="$dir/echo"
598         break
599       fi
600     done
601     IFS="$lt_save_ifs"
602
603     if test "X$ECHO" = Xecho; then
604       # We didn't find a better echo, so look for alternatives.
605       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607          test "X$echo_testing_string" = "X$echo_test_string"; then
608         # This shell has a builtin print -r that does the trick.
609         ECHO='print -r'
610       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611            test "X$CONFIG_SHELL" != X/bin/ksh; then
612         # If we have ksh, try running configure again with it.
613         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614         export ORIGINAL_CONFIG_SHELL
615         CONFIG_SHELL=/bin/ksh
616         export CONFIG_SHELL
617         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618       else
619         # Try using printf.
620         ECHO='printf %s\n'
621         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623            test "X$echo_testing_string" = "X$echo_test_string"; then
624           # Cool, printf works
625           :
626         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627              test "X$echo_testing_string" = 'X\t' &&
628              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629              test "X$echo_testing_string" = "X$echo_test_string"; then
630           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631           export CONFIG_SHELL
632           SHELL="$CONFIG_SHELL"
633           export SHELL
634           ECHO="$CONFIG_SHELL $0 --fallback-echo"
635         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636              test "X$echo_testing_string" = 'X\t' &&
637              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638              test "X$echo_testing_string" = "X$echo_test_string"; then
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         else
641           # maybe with a smaller string...
642           prev=:
643
644           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646             then
647               break
648             fi
649             prev="$cmd"
650           done
651
652           if test "$prev" != 'sed 50q "$0"'; then
653             echo_test_string=`eval $prev`
654             export echo_test_string
655             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656           else
657             # Oops.  We lost completely, so just stick with echo.
658             ECHO=echo
659           fi
660         fi
661       fi
662     fi
663   fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME='libmudflap'
697 PACKAGE_TARNAME='libmudflap'
698 PACKAGE_VERSION='1.0'
699 PACKAGE_STRING='libmudflap 1.0'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
702
703 ac_unique_file="mf-runtime.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 #  include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 #  include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
739
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 SECTION_FLAGS
745 toolexeclibdir
746 toolexecdir
747 build_libmudflapth
748 LIBMUDFLAPTH_FALSE
749 LIBMUDFLAPTH_TRUE
750 MF_HAVE_UINTPTR_T
751 MF_HAVE_STDINT_H
752 enable_static
753 enable_shared
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 lt_ECHO
760 RANLIB
761 AR
762 OBJDUMP
763 LN_S
764 NM
765 ac_ct_DUMPBIN
766 DUMPBIN
767 LD
768 FGREP
769 SED
770 LIBTOOL
771 EGREP
772 GREP
773 CPP
774 am__fastdepCC_FALSE
775 am__fastdepCC_TRUE
776 CCDEPMODE
777 AMDEPBACKSLASH
778 AMDEP_FALSE
779 AMDEP_TRUE
780 am__quote
781 am__include
782 DEPDIR
783 OBJEXT
784 EXEEXT
785 ac_ct_CC
786 CPPFLAGS
787 LDFLAGS
788 CFLAGS
789 CC
790 multi_basedir
791 MAINT
792 MAINTAINER_MODE_FALSE
793 MAINTAINER_MODE_TRUE
794 am__untar
795 am__tar
796 AMTAR
797 am__leading_dot
798 SET_MAKE
799 AWK
800 mkdir_p
801 MKDIR_P
802 INSTALL_STRIP_PROGRAM
803 STRIP
804 install_sh
805 MAKEINFO
806 AUTOHEADER
807 AUTOMAKE
808 AUTOCONF
809 ACLOCAL
810 VERSION
811 PACKAGE
812 CYGPATH_W
813 am__isrc
814 INSTALL_DATA
815 INSTALL_SCRIPT
816 INSTALL_PROGRAM
817 target_noncanonical
818 target_os
819 target_vendor
820 target_cpu
821 target
822 host_os
823 host_vendor
824 host_cpu
825 host
826 build_os
827 build_vendor
828 build_cpu
829 build
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files=''
869 ac_user_opts='
870 enable_option_checking
871 enable_version_specific_runtime_libs
872 enable_maintainer_mode
873 enable_multilib
874 enable_dependency_tracking
875 enable_shared
876 enable_static
877 with_pic
878 enable_fast_install
879 with_gnu_ld
880 enable_libtool_lock
881 enable_tls
882 '
883       ac_precious_vars='build_alias
884 host_alias
885 target_alias
886 CPP
887 CPPFLAGS'
888
889
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942   # If the previous option needs an argument, assign it.
943   if test -n "$ac_prev"; then
944     eval $ac_prev=\$ac_option
945     ac_prev=
946     continue
947   fi
948
949   case $ac_option in
950   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951   *)    ac_optarg=yes ;;
952   esac
953
954   # Accept the important Cygnus configure options, so we can diagnose typos.
955
956   case $ac_dashdash$ac_option in
957   --)
958     ac_dashdash=yes ;;
959
960   -bindir | --bindir | --bindi | --bind | --bin | --bi)
961     ac_prev=bindir ;;
962   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963     bindir=$ac_optarg ;;
964
965   -build | --build | --buil | --bui | --bu)
966     ac_prev=build_alias ;;
967   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968     build_alias=$ac_optarg ;;
969
970   -cache-file | --cache-file | --cache-fil | --cache-fi \
971   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972     ac_prev=cache_file ;;
973   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975     cache_file=$ac_optarg ;;
976
977   --config-cache | -C)
978     cache_file=config.cache ;;
979
980   -datadir | --datadir | --datadi | --datad)
981     ac_prev=datadir ;;
982   -datadir=* | --datadir=* | --datadi=* | --datad=*)
983     datadir=$ac_optarg ;;
984
985   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986   | --dataroo | --dataro | --datar)
987     ac_prev=datarootdir ;;
988   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990     datarootdir=$ac_optarg ;;
991
992   -disable-* | --disable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       as_fn_error "invalid feature name: $ac_useropt"
997     ac_useropt_orig=$ac_useropt
998     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999     case $ac_user_opts in
1000       *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004          ac_unrecognized_sep=', ';;
1005     esac
1006     eval enable_$ac_useropt=no ;;
1007
1008   -docdir | --docdir | --docdi | --doc | --do)
1009     ac_prev=docdir ;;
1010   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011     docdir=$ac_optarg ;;
1012
1013   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014     ac_prev=dvidir ;;
1015   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016     dvidir=$ac_optarg ;;
1017
1018   -enable-* | --enable-*)
1019     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022       as_fn_error "invalid feature name: $ac_useropt"
1023     ac_useropt_orig=$ac_useropt
1024     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025     case $ac_user_opts in
1026       *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030          ac_unrecognized_sep=', ';;
1031     esac
1032     eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036   | --exec | --exe | --ex)
1037     ac_prev=exec_prefix ;;
1038   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040   | --exec=* | --exe=* | --ex=*)
1041     exec_prefix=$ac_optarg ;;
1042
1043   -gas | --gas | --ga | --g)
1044     # Obsolete; use --with-gas.
1045     with_gas=yes ;;
1046
1047   -help | --help | --hel | --he | -h)
1048     ac_init_help=long ;;
1049   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050     ac_init_help=recursive ;;
1051   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052     ac_init_help=short ;;
1053
1054   -host | --host | --hos | --ho)
1055     ac_prev=host_alias ;;
1056   -host=* | --host=* | --hos=* | --ho=*)
1057     host_alias=$ac_optarg ;;
1058
1059   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060     ac_prev=htmldir ;;
1061   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062   | --ht=*)
1063     htmldir=$ac_optarg ;;
1064
1065   -includedir | --includedir | --includedi | --included | --include \
1066   | --includ | --inclu | --incl | --inc)
1067     ac_prev=includedir ;;
1068   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069   | --includ=* | --inclu=* | --incl=* | --inc=*)
1070     includedir=$ac_optarg ;;
1071
1072   -infodir | --infodir | --infodi | --infod | --info | --inf)
1073     ac_prev=infodir ;;
1074   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075     infodir=$ac_optarg ;;
1076
1077   -libdir | --libdir | --libdi | --libd)
1078     ac_prev=libdir ;;
1079   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080     libdir=$ac_optarg ;;
1081
1082   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083   | --libexe | --libex | --libe)
1084     ac_prev=libexecdir ;;
1085   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086   | --libexe=* | --libex=* | --libe=*)
1087     libexecdir=$ac_optarg ;;
1088
1089   -localedir | --localedir | --localedi | --localed | --locale)
1090     ac_prev=localedir ;;
1091   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092     localedir=$ac_optarg ;;
1093
1094   -localstatedir | --localstatedir | --localstatedi | --localstated \
1095   | --localstate | --localstat | --localsta | --localst | --locals)
1096     ac_prev=localstatedir ;;
1097   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099     localstatedir=$ac_optarg ;;
1100
1101   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102     ac_prev=mandir ;;
1103   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104     mandir=$ac_optarg ;;
1105
1106   -nfp | --nfp | --nf)
1107     # Obsolete; use --without-fp.
1108     with_fp=no ;;
1109
1110   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111   | --no-cr | --no-c | -n)
1112     no_create=yes ;;
1113
1114   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116     no_recursion=yes ;;
1117
1118   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120   | --oldin | --oldi | --old | --ol | --o)
1121     ac_prev=oldincludedir ;;
1122   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125     oldincludedir=$ac_optarg ;;
1126
1127   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128     ac_prev=prefix ;;
1129   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130     prefix=$ac_optarg ;;
1131
1132   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133   | --program-pre | --program-pr | --program-p)
1134     ac_prev=program_prefix ;;
1135   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137     program_prefix=$ac_optarg ;;
1138
1139   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140   | --program-suf | --program-su | --program-s)
1141     ac_prev=program_suffix ;;
1142   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144     program_suffix=$ac_optarg ;;
1145
1146   -program-transform-name | --program-transform-name \
1147   | --program-transform-nam | --program-transform-na \
1148   | --program-transform-n | --program-transform- \
1149   | --program-transform | --program-transfor \
1150   | --program-transfo | --program-transf \
1151   | --program-trans | --program-tran \
1152   | --progr-tra | --program-tr | --program-t)
1153     ac_prev=program_transform_name ;;
1154   -program-transform-name=* | --program-transform-name=* \
1155   | --program-transform-nam=* | --program-transform-na=* \
1156   | --program-transform-n=* | --program-transform-=* \
1157   | --program-transform=* | --program-transfor=* \
1158   | --program-transfo=* | --program-transf=* \
1159   | --program-trans=* | --program-tran=* \
1160   | --progr-tra=* | --program-tr=* | --program-t=*)
1161     program_transform_name=$ac_optarg ;;
1162
1163   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164     ac_prev=pdfdir ;;
1165   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166     pdfdir=$ac_optarg ;;
1167
1168   -psdir | --psdir | --psdi | --psd | --ps)
1169     ac_prev=psdir ;;
1170   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171     psdir=$ac_optarg ;;
1172
1173   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174   | -silent | --silent | --silen | --sile | --sil)
1175     silent=yes ;;
1176
1177   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178     ac_prev=sbindir ;;
1179   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180   | --sbi=* | --sb=*)
1181     sbindir=$ac_optarg ;;
1182
1183   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185   | --sharedst | --shareds | --shared | --share | --shar \
1186   | --sha | --sh)
1187     ac_prev=sharedstatedir ;;
1188   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191   | --sha=* | --sh=*)
1192     sharedstatedir=$ac_optarg ;;
1193
1194   -site | --site | --sit)
1195     ac_prev=site ;;
1196   -site=* | --site=* | --sit=*)
1197     site=$ac_optarg ;;
1198
1199   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200     ac_prev=srcdir ;;
1201   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202     srcdir=$ac_optarg ;;
1203
1204   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205   | --syscon | --sysco | --sysc | --sys | --sy)
1206     ac_prev=sysconfdir ;;
1207   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209     sysconfdir=$ac_optarg ;;
1210
1211   -target | --target | --targe | --targ | --tar | --ta | --t)
1212     ac_prev=target_alias ;;
1213   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214     target_alias=$ac_optarg ;;
1215
1216   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217     verbose=yes ;;
1218
1219   -version | --version | --versio | --versi | --vers | -V)
1220     ac_init_version=: ;;
1221
1222   -with-* | --with-*)
1223     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226       as_fn_error "invalid package name: $ac_useropt"
1227     ac_useropt_orig=$ac_useropt
1228     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229     case $ac_user_opts in
1230       *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234          ac_unrecognized_sep=', ';;
1235     esac
1236     eval with_$ac_useropt=\$ac_optarg ;;
1237
1238   -without-* | --without-*)
1239     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242       as_fn_error "invalid package name: $ac_useropt"
1243     ac_useropt_orig=$ac_useropt
1244     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245     case $ac_user_opts in
1246       *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250          ac_unrecognized_sep=', ';;
1251     esac
1252     eval with_$ac_useropt=no ;;
1253
1254   --x)
1255     # Obsolete; use --with-x.
1256     with_x=yes ;;
1257
1258   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259   | --x-incl | --x-inc | --x-in | --x-i)
1260     ac_prev=x_includes ;;
1261   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263     x_includes=$ac_optarg ;;
1264
1265   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267     ac_prev=x_libraries ;;
1268   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270     x_libraries=$ac_optarg ;;
1271
1272   -*) as_fn_error "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information."
1274     ;;
1275
1276   *=*)
1277     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278     # Reject names that are not valid shell variable names.
1279     case $ac_envvar in #(
1280       '' | [0-9]* | *[!_$as_cr_alnum]* )
1281       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1282     esac
1283     eval $ac_envvar=\$ac_optarg
1284     export $ac_envvar ;;
1285
1286   *)
1287     # FIXME: should be removed in autoconf 3.0.
1288     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1292     ;;
1293
1294   esac
1295 done
1296
1297 if test -n "$ac_prev"; then
1298   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299   as_fn_error "missing argument to $ac_option"
1300 fi
1301
1302 if test -n "$ac_unrecognized_opts"; then
1303   case $enable_option_checking in
1304     no) ;;
1305     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1306     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307   esac
1308 fi
1309
1310 # Check all directory arguments for consistency.
1311 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312                 datadir sysconfdir sharedstatedir localstatedir includedir \
1313                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314                 libdir localedir mandir
1315 do
1316   eval ac_val=\$$ac_var
1317   # Remove trailing slashes.
1318   case $ac_val in
1319     */ )
1320       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321       eval $ac_var=\$ac_val;;
1322   esac
1323   # Be sure to have absolute directory names.
1324   case $ac_val in
1325     [\\/$]* | ?:[\\/]* )  continue;;
1326     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327   esac
1328   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340   if test "x$build_alias" = x; then
1341     cross_compiling=maybe
1342     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343     If a cross compiler is detected then cross compile mode will be used." >&2
1344   elif test "x$build_alias" != "x$host_alias"; then
1345     cross_compiling=yes
1346   fi
1347 fi
1348
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
1352 test "$silent" = yes && exec 6>/dev/null
1353
1354
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358   as_fn_error "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360   as_fn_error "pwd does not report name of working directory"
1361
1362
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365   ac_srcdir_defaulted=yes
1366   # Try the directory containing this script, then the parent directory.
1367   ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369          X"$as_myself" : 'X\(//\)[^/]' \| \
1370          X"$as_myself" : 'X\(//\)$' \| \
1371          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\/\)[^/].*/{
1378             s//\1/
1379             q
1380           }
1381           /^X\(\/\/\)$/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\).*/{
1386             s//\1/
1387             q
1388           }
1389           s/.*/./; q'`
1390   srcdir=$ac_confdir
1391   if test ! -r "$srcdir/$ac_unique_file"; then
1392     srcdir=..
1393   fi
1394 else
1395   ac_srcdir_defaulted=no
1396 fi
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1400 fi
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1404         pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407   srcdir=.
1408 fi
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 for ac_var in $ac_precious_vars; do
1416   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1417   eval ac_env_${ac_var}_value=\$${ac_var}
1418   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1419   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1420 done
1421
1422 #
1423 # Report the --help message.
1424 #
1425 if test "$ac_init_help" = "long"; then
1426   # Omit some internal or obsolete options to make the list less imposing.
1427   # This message is too long to be a string in the A/UX 3.1 sh.
1428   cat <<_ACEOF
1429 \`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
1430
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1432
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE.  See below for descriptions of some of the useful variables.
1435
1436 Defaults for the options are specified in brackets.
1437
1438 Configuration:
1439   -h, --help              display this help and exit
1440       --help=short        display options specific to this package
1441       --help=recursive    display the short help of all the included packages
1442   -V, --version           display version information and exit
1443   -q, --quiet, --silent   do not print \`checking...' messages
1444       --cache-file=FILE   cache test results in FILE [disabled]
1445   -C, --config-cache      alias for \`--cache-file=config.cache'
1446   -n, --no-create         do not create output files
1447       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1448
1449 Installation directories:
1450   --prefix=PREFIX         install architecture-independent files in PREFIX
1451                           [$ac_default_prefix]
1452   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1453                           [PREFIX]
1454
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1459
1460 For better control, use the options below.
1461
1462 Fine tuning of the installation directories:
1463   --bindir=DIR            user executables [EPREFIX/bin]
1464   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1465   --libexecdir=DIR        program executables [EPREFIX/libexec]
1466   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1467   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1468   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1469   --libdir=DIR            object code libraries [EPREFIX/lib]
1470   --includedir=DIR        C header files [PREFIX/include]
1471   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1472   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1473   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1474   --infodir=DIR           info documentation [DATAROOTDIR/info]
1475   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1476   --mandir=DIR            man documentation [DATAROOTDIR/man]
1477   --docdir=DIR            documentation root [DATAROOTDIR/doc/libmudflap]
1478   --htmldir=DIR           html documentation [DOCDIR]
1479   --dvidir=DIR            dvi documentation [DOCDIR]
1480   --pdfdir=DIR            pdf documentation [DOCDIR]
1481   --psdir=DIR             ps documentation [DOCDIR]
1482 _ACEOF
1483
1484   cat <<\_ACEOF
1485
1486 Program names:
1487   --program-prefix=PREFIX            prepend PREFIX to installed program names
1488   --program-suffix=SUFFIX            append SUFFIX to installed program names
1489   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1490
1491 System types:
1492   --build=BUILD     configure for building on BUILD [guessed]
1493   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1494   --target=TARGET   configure for building compilers for TARGET [HOST]
1495 _ACEOF
1496 fi
1497
1498 if test -n "$ac_init_help"; then
1499   case $ac_init_help in
1500      short | recursive ) echo "Configuration of libmudflap 1.0:";;
1501    esac
1502   cat <<\_ACEOF
1503
1504 Optional Features:
1505   --disable-option-checking  ignore unrecognized --enable/--with options
1506   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1507   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1508   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
1509   --enable-maintainer-mode  enable make rules and dependencies not useful
1510                           (and sometimes confusing) to the casual installer
1511   --enable-multilib       build many library versions (default)
1512   --disable-dependency-tracking  speeds up one-time build
1513   --enable-dependency-tracking   do not reject slow dependency extractors
1514   --enable-shared[=PKGS]  build shared libraries [default=yes]
1515   --enable-static[=PKGS]  build static libraries [default=yes]
1516   --enable-fast-install[=PKGS]
1517                           optimize for fast installation [default=yes]
1518   --disable-libtool-lock  avoid locking (might break parallel builds)
1519   --enable-tls            Use thread-local storage [default=yes]
1520
1521 Optional Packages:
1522   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1523   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1524   --with-pic              try to use only PIC/non-PIC objects [default=use
1525                           both]
1526   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1527
1528 Some influential environment variables:
1529   CC          C compiler command
1530   CFLAGS      C compiler flags
1531   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1532               nonstandard directory <lib dir>
1533   LIBS        libraries to pass to the linker, e.g. -l<library>
1534   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1535               you have headers in a nonstandard directory <include dir>
1536   CPP         C preprocessor
1537
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1540
1541 Report bugs to the package provider.
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547   # If there are subdirs, report their specific --help.
1548   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549     test -d "$ac_dir" ||
1550       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551       continue
1552     ac_builddir=.
1553
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *)
1557   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558   # A ".." for each directory in $ac_dir_suffix.
1559   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560   case $ac_top_builddir_sub in
1561   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563   esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1569
1570 case $srcdir in
1571   .)  # We are building in place.
1572     ac_srcdir=.
1573     ac_top_srcdir=$ac_top_builddir_sub
1574     ac_abs_top_srcdir=$ac_pwd ;;
1575   [\\/]* | ?:[\\/]* )  # Absolute name.
1576     ac_srcdir=$srcdir$ac_dir_suffix;
1577     ac_top_srcdir=$srcdir
1578     ac_abs_top_srcdir=$srcdir ;;
1579   *) # Relative name.
1580     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581     ac_top_srcdir=$ac_top_build_prefix$srcdir
1582     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586     cd "$ac_dir" || { ac_status=$?; continue; }
1587     # Check for guested configure.
1588     if test -f "$ac_srcdir/configure.gnu"; then
1589       echo &&
1590       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591     elif test -f "$ac_srcdir/configure"; then
1592       echo &&
1593       $SHELL "$ac_srcdir/configure" --help=recursive
1594     else
1595       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596     fi || ac_status=$?
1597     cd "$ac_pwd" || { ac_status=$?; break; }
1598   done
1599 fi
1600
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1603   cat <<\_ACEOF
1604 libmudflap configure 1.0
1605 generated by GNU Autoconf 2.64
1606
1607 Copyright (C) 2009 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611   exit
1612 fi
1613
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1617
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1622 {
1623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624   rm -f conftest.$ac_objext
1625   if { { ac_try="$ac_compile"
1626 case "(($ac_try" in
1627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628   *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632   (eval "$ac_compile") 2>conftest.err
1633   ac_status=$?
1634   if test -s conftest.err; then
1635     grep -v '^ *+' conftest.err >conftest.er1
1636     cat conftest.er1 >&5
1637     mv -f conftest.er1 conftest.err
1638   fi
1639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640   test $ac_status = 0; } && {
1641          test -z "$ac_c_werror_flag" ||
1642          test ! -s conftest.err
1643        } && test -s conftest.$ac_objext; then :
1644   ac_retval=0
1645 else
1646   $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649         ac_retval=1
1650 fi
1651   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652   return $ac_retval
1653
1654 } # ac_fn_c_try_compile
1655
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_cpp ()
1660 {
1661   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662   if { { ac_try="$ac_cpp conftest.$ac_ext"
1663 case "(($ac_try" in
1664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665   *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670   ac_status=$?
1671   if test -s conftest.err; then
1672     grep -v '^ *+' conftest.err >conftest.er1
1673     cat conftest.er1 >&5
1674     mv -f conftest.er1 conftest.err
1675   fi
1676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677   test $ac_status = 0; } >/dev/null && {
1678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679          test ! -s conftest.err
1680        }; then :
1681   ac_retval=0
1682 else
1683   $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686     ac_retval=1
1687 fi
1688   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689   return $ac_retval
1690
1691 } # ac_fn_c_try_cpp
1692
1693 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1696 # the include files in INCLUDES and setting the cache variable VAR
1697 # accordingly.
1698 ac_fn_c_check_header_mongrel ()
1699 {
1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1705   $as_echo_n "(cached) " >&6
1706 fi
1707 eval ac_res=\$$3
1708                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1710 else
1711   # Is the header compilable?
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1713 $as_echo_n "checking $2 usability... " >&6; }
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h.  */
1716 $4
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_compile "$LINENO"; then :
1720   ac_header_compiler=yes
1721 else
1722   ac_header_compiler=no
1723 fi
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1726 $as_echo "$ac_header_compiler" >&6; }
1727
1728 # Is the header present?
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1730 $as_echo_n "checking $2 presence... " >&6; }
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h.  */
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_cpp "$LINENO"; then :
1736   ac_header_preproc=yes
1737 else
1738   ac_header_preproc=no
1739 fi
1740 rm -f conftest.err conftest.$ac_ext
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1742 $as_echo "$ac_header_preproc" >&6; }
1743
1744 # So?  What about this header?
1745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1746   yes:no: )
1747     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1748 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1749     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751     ;;
1752   no:yes:* )
1753     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1754 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1755     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1756 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1757     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1758 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1759     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1760 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1761     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1762 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1763     ;;
1764 esac
1765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768   $as_echo_n "(cached) " >&6
1769 else
1770   eval "$3=\$ac_header_compiler"
1771 fi
1772 eval ac_res=\$$3
1773                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 fi
1776   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777
1778 } # ac_fn_c_check_header_mongrel
1779
1780 # ac_fn_c_try_run LINENO
1781 # ----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783 # that executables *can* be run.
1784 ac_fn_c_try_run ()
1785 {
1786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787   if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_link") 2>&5
1795   ac_status=$?
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798   { { case "(($ac_try" in
1799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800   *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804   (eval "$ac_try") 2>&5
1805   ac_status=$?
1806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807   test $ac_status = 0; }; }; then :
1808   ac_retval=0
1809 else
1810   $as_echo "$as_me: program exited with status $ac_status" >&5
1811        $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814        ac_retval=$ac_status
1815 fi
1816   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818   return $ac_retval
1819
1820 } # ac_fn_c_try_run
1821
1822 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists and can be compiled using the include files in
1825 # INCLUDES, setting the cache variable VAR accordingly.
1826 ac_fn_c_check_header_compile ()
1827 {
1828   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832   $as_echo_n "(cached) " >&6
1833 else
1834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h.  */
1836 $4
1837 #include <$2>
1838 _ACEOF
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840   eval "$3=yes"
1841 else
1842   eval "$3=no"
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 fi
1846 eval ac_res=\$$3
1847                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850
1851 } # ac_fn_c_check_header_compile
1852
1853 # ac_fn_c_try_link LINENO
1854 # -----------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_c_try_link ()
1857 {
1858   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859   rm -f conftest.$ac_objext conftest$ac_exeext
1860   if { { ac_try="$ac_link"
1861 case "(($ac_try" in
1862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863   *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867   (eval "$ac_link") 2>conftest.err
1868   ac_status=$?
1869   if test -s conftest.err; then
1870     grep -v '^ *+' conftest.err >conftest.er1
1871     cat conftest.er1 >&5
1872     mv -f conftest.er1 conftest.err
1873   fi
1874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875   test $ac_status = 0; } && {
1876          test -z "$ac_c_werror_flag" ||
1877          test ! -s conftest.err
1878        } && test -s conftest$ac_exeext && {
1879          test "$cross_compiling" = yes ||
1880          $as_test_x conftest$ac_exeext
1881        }; then :
1882   ac_retval=0
1883 else
1884   $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1886
1887         ac_retval=1
1888 fi
1889   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891   # interfere with the next link command; also delete a directory that is
1892   # left behind by Apple's compiler.  We do this before executing the actions.
1893   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895   return $ac_retval
1896
1897 } # ac_fn_c_try_link
1898
1899 # ac_fn_c_check_func LINENO FUNC VAR
1900 # ----------------------------------
1901 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1902 ac_fn_c_check_func ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908   $as_echo_n "(cached) " >&6
1909 else
1910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1914 #define $2 innocuous_$2
1915
1916 /* System header to define __stub macros and hopefully few prototypes,
1917     which can conflict with char $2 (); below.
1918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1919     <limits.h> exists even on freestanding compilers.  */
1920
1921 #ifdef __STDC__
1922 # include <limits.h>
1923 #else
1924 # include <assert.h>
1925 #endif
1926
1927 #undef $2
1928
1929 /* Override any GCC internal prototype to avoid an error.
1930    Use char because int might match the return type of a GCC
1931    builtin and then its argument prototype would still apply.  */
1932 #ifdef __cplusplus
1933 extern "C"
1934 #endif
1935 char $2 ();
1936 /* The GNU C library defines this for functions which it implements
1937     to always fail with ENOSYS.  Some functions are actually named
1938     something starting with __ and the normal name is an alias.  */
1939 #if defined __stub_$2 || defined __stub___$2
1940 choke me
1941 #endif
1942
1943 int
1944 main ()
1945 {
1946 return $2 ();
1947   ;
1948   return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_link "$LINENO"; then :
1952   eval "$3=yes"
1953 else
1954   eval "$3=no"
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext \
1957     conftest$ac_exeext conftest.$ac_ext
1958 fi
1959 eval ac_res=\$$3
1960                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963
1964 } # ac_fn_c_check_func
1965 cat >config.log <<_ACEOF
1966 This file contains any messages produced by compilers while
1967 running configure, to aid debugging if configure makes a mistake.
1968
1969 It was created by libmudflap $as_me 1.0, which was
1970 generated by GNU Autoconf 2.64.  Invocation command line was
1971
1972   $ $0 $@
1973
1974 _ACEOF
1975 exec 5>>config.log
1976 {
1977 cat <<_ASUNAME
1978 ## --------- ##
1979 ## Platform. ##
1980 ## --------- ##
1981
1982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1987
1988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1989 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1990
1991 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1992 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1994 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1995 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1996 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1997 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1998
1999 _ASUNAME
2000
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006     $as_echo "PATH: $as_dir"
2007   done
2008 IFS=$as_save_IFS
2009
2010 } >&5
2011
2012 cat >&5 <<_ACEOF
2013
2014
2015 ## ----------- ##
2016 ## Core tests. ##
2017 ## ----------- ##
2018
2019 _ACEOF
2020
2021
2022 # Keep a trace of the command line.
2023 # Strip out --no-create and --no-recursion so they do not pile up.
2024 # Strip out --silent because we don't want to record it for future runs.
2025 # Also quote any args containing shell meta-characters.
2026 # Make two passes to allow for proper duplicate-argument suppression.
2027 ac_configure_args=
2028 ac_configure_args0=
2029 ac_configure_args1=
2030 ac_must_keep_next=false
2031 for ac_pass in 1 2
2032 do
2033   for ac_arg
2034   do
2035     case $ac_arg in
2036     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038     | -silent | --silent | --silen | --sile | --sil)
2039       continue ;;
2040     *\'*)
2041       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042     esac
2043     case $ac_pass in
2044     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2045     2)
2046       as_fn_append ac_configure_args1 " '$ac_arg'"
2047       if test $ac_must_keep_next = true; then
2048         ac_must_keep_next=false # Got value, back to normal.
2049       else
2050         case $ac_arg in
2051           *=* | --config-cache | -C | -disable-* | --disable-* \
2052           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054           | -with-* | --with-* | -without-* | --without-* | --x)
2055             case "$ac_configure_args0 " in
2056               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057             esac
2058             ;;
2059           -* ) ac_must_keep_next=true ;;
2060         esac
2061       fi
2062       as_fn_append ac_configure_args " '$ac_arg'"
2063       ;;
2064     esac
2065   done
2066 done
2067 { ac_configure_args0=; unset ac_configure_args0;}
2068 { ac_configure_args1=; unset ac_configure_args1;}
2069
2070 # When interrupted or exit'd, cleanup temporary files, and complete
2071 # config.log.  We remove comments because anyway the quotes in there
2072 # would cause problems or look ugly.
2073 # WARNING: Use '\'' to represent an apostrophe within the trap.
2074 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075 trap 'exit_status=$?
2076   # Save into config.log some information that might help in debugging.
2077   {
2078     echo
2079
2080     cat <<\_ASBOX
2081 ## ---------------- ##
2082 ## Cache variables. ##
2083 ## ---------------- ##
2084 _ASBOX
2085     echo
2086     # The following way of writing the cache mishandles newlines in values,
2087 (
2088   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2089     eval ac_val=\$$ac_var
2090     case $ac_val in #(
2091     *${as_nl}*)
2092       case $ac_var in #(
2093       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2094 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2095       esac
2096       case $ac_var in #(
2097       _ | IFS | as_nl) ;; #(
2098       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099       *) { eval $ac_var=; unset $ac_var;} ;;
2100       esac ;;
2101     esac
2102   done
2103   (set) 2>&1 |
2104     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105     *${as_nl}ac_space=\ *)
2106       sed -n \
2107         "s/'\''/'\''\\\\'\'''\''/g;
2108           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2109       ;; #(
2110     *)
2111       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2112       ;;
2113     esac |
2114     sort
2115 )
2116     echo
2117
2118     cat <<\_ASBOX
2119 ## ----------------- ##
2120 ## Output variables. ##
2121 ## ----------------- ##
2122 _ASBOX
2123     echo
2124     for ac_var in $ac_subst_vars
2125     do
2126       eval ac_val=\$$ac_var
2127       case $ac_val in
2128       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129       esac
2130       $as_echo "$ac_var='\''$ac_val'\''"
2131     done | sort
2132     echo
2133
2134     if test -n "$ac_subst_files"; then
2135       cat <<\_ASBOX
2136 ## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##
2139 _ASBOX
2140       echo
2141       for ac_var in $ac_subst_files
2142       do
2143         eval ac_val=\$$ac_var
2144         case $ac_val in
2145         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146         esac
2147         $as_echo "$ac_var='\''$ac_val'\''"
2148       done | sort
2149       echo
2150     fi
2151
2152     if test -s confdefs.h; then
2153       cat <<\_ASBOX
2154 ## ----------- ##
2155 ## confdefs.h. ##
2156 ## ----------- ##
2157 _ASBOX
2158       echo
2159       cat confdefs.h
2160       echo
2161     fi
2162     test "$ac_signal" != 0 &&
2163       $as_echo "$as_me: caught signal $ac_signal"
2164     $as_echo "$as_me: exit $exit_status"
2165   } >&5
2166   rm -f core *.core core.conftest.* &&
2167     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2168     exit $exit_status
2169 ' 0
2170 for ac_signal in 1 2 13 15; do
2171   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2172 done
2173 ac_signal=0
2174
2175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2176 rm -f -r conftest* confdefs.h
2177
2178 $as_echo "/* confdefs.h */" > confdefs.h
2179
2180 # Predefined preprocessor variables.
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_NAME "$PACKAGE_NAME"
2184 _ACEOF
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188 _ACEOF
2189
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2192 _ACEOF
2193
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_STRING "$PACKAGE_STRING"
2196 _ACEOF
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2200 _ACEOF
2201
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_URL "$PACKAGE_URL"
2204 _ACEOF
2205
2206
2207 # Let the site file select an alternate cache file if it wants to.
2208 # Prefer an explicitly selected file to automatically selected ones.
2209 ac_site_file1=NONE
2210 ac_site_file2=NONE
2211 if test -n "$CONFIG_SITE"; then
2212   ac_site_file1=$CONFIG_SITE
2213 elif test "x$prefix" != xNONE; then
2214   ac_site_file1=$prefix/share/config.site
2215   ac_site_file2=$prefix/etc/config.site
2216 else
2217   ac_site_file1=$ac_default_prefix/share/config.site
2218   ac_site_file2=$ac_default_prefix/etc/config.site
2219 fi
2220 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2221 do
2222   test "x$ac_site_file" = xNONE && continue
2223   if test -r "$ac_site_file"; then
2224     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2225 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2226     sed 's/^/| /' "$ac_site_file" >&5
2227     . "$ac_site_file"
2228   fi
2229 done
2230
2231 if test -r "$cache_file"; then
2232   # Some versions of bash will fail to source /dev/null (special
2233   # files actually), so we avoid doing that.
2234   if test -f "$cache_file"; then
2235     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236 $as_echo "$as_me: loading cache $cache_file" >&6;}
2237     case $cache_file in
2238       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239       *)                      . "./$cache_file";;
2240     esac
2241   fi
2242 else
2243   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244 $as_echo "$as_me: creating cache $cache_file" >&6;}
2245   >$cache_file
2246 fi
2247
2248 # Check that the precious variables saved in the cache have kept the same
2249 # value.
2250 ac_cache_corrupted=false
2251 for ac_var in $ac_precious_vars; do
2252   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2253   eval ac_new_set=\$ac_env_${ac_var}_set
2254   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2255   eval ac_new_val=\$ac_env_${ac_var}_value
2256   case $ac_old_set,$ac_new_set in
2257     set,)
2258       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2259 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2260       ac_cache_corrupted=: ;;
2261     ,set)
2262       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2263 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2264       ac_cache_corrupted=: ;;
2265     ,);;
2266     *)
2267       if test "x$ac_old_val" != "x$ac_new_val"; then
2268         # differences in whitespace do not lead to failure.
2269         ac_old_val_w=`echo x $ac_old_val`
2270         ac_new_val_w=`echo x $ac_new_val`
2271         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2272           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2273 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2274           ac_cache_corrupted=:
2275         else
2276           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2277 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2278           eval $ac_var=\$ac_old_val
2279         fi
2280         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2281 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2282         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2283 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2284       fi;;
2285   esac
2286   # Pass precious variables to config.status.
2287   if test "$ac_new_set" = set; then
2288     case $ac_new_val in
2289     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2290     *) ac_arg=$ac_var=$ac_new_val ;;
2291     esac
2292     case " $ac_configure_args " in
2293       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2294       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2295     esac
2296   fi
2297 done
2298 if $ac_cache_corrupted; then
2299   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2301   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2302 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2303   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2304 fi
2305 ## -------------------- ##
2306 ## Main body of script. ##
2307 ## -------------------- ##
2308
2309 ac_ext=c
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314
2315
2316
2317
2318
2319
2320 ac_aux_dir=
2321 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2322   for ac_t in install-sh install.sh shtool; do
2323     if test -f "$ac_dir/$ac_t"; then
2324       ac_aux_dir=$ac_dir
2325       ac_install_sh="$ac_aux_dir/$ac_t -c"
2326       break 2
2327     fi
2328   done
2329 done
2330 if test -z "$ac_aux_dir"; then
2331   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2332 fi
2333
2334 # These three variables are undocumented and unsupported,
2335 # and are intended to be withdrawn in a future Autoconf release.
2336 # They can cause serious problems if a builder's source tree is in a directory
2337 # whose full name contains unusual characters.
2338 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2339 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2340 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2341
2342
2343 # Make sure we can run config.sub.
2344 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2345   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2348 $as_echo_n "checking build system type... " >&6; }
2349 if test "${ac_cv_build+set}" = set; then :
2350   $as_echo_n "(cached) " >&6
2351 else
2352   ac_build_alias=$build_alias
2353 test "x$ac_build_alias" = x &&
2354   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2355 test "x$ac_build_alias" = x &&
2356   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2357 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2358   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2359
2360 fi
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2362 $as_echo "$ac_cv_build" >&6; }
2363 case $ac_cv_build in
2364 *-*-*) ;;
2365 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2366 esac
2367 build=$ac_cv_build
2368 ac_save_IFS=$IFS; IFS='-'
2369 set x $ac_cv_build
2370 shift
2371 build_cpu=$1
2372 build_vendor=$2
2373 shift; shift
2374 # Remember, the first character of IFS is used to create $*,
2375 # except with old shells:
2376 build_os=$*
2377 IFS=$ac_save_IFS
2378 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2379
2380
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382 $as_echo_n "checking host system type... " >&6; }
2383 if test "${ac_cv_host+set}" = set; then :
2384   $as_echo_n "(cached) " >&6
2385 else
2386   if test "x$host_alias" = x; then
2387   ac_cv_host=$ac_cv_build
2388 else
2389   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391 fi
2392
2393 fi
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395 $as_echo "$ac_cv_host" >&6; }
2396 case $ac_cv_host in
2397 *-*-*) ;;
2398 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2399 esac
2400 host=$ac_cv_host
2401 ac_save_IFS=$IFS; IFS='-'
2402 set x $ac_cv_host
2403 shift
2404 host_cpu=$1
2405 host_vendor=$2
2406 shift; shift
2407 # Remember, the first character of IFS is used to create $*,
2408 # except with old shells:
2409 host_os=$*
2410 IFS=$ac_save_IFS
2411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2412
2413
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415 $as_echo_n "checking target system type... " >&6; }
2416 if test "${ac_cv_target+set}" = set; then :
2417   $as_echo_n "(cached) " >&6
2418 else
2419   if test "x$target_alias" = x; then
2420   ac_cv_target=$ac_cv_host
2421 else
2422   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2423     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2424 fi
2425
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428 $as_echo "$ac_cv_target" >&6; }
2429 case $ac_cv_target in
2430 *-*-*) ;;
2431 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2432 esac
2433 target=$ac_cv_target
2434 ac_save_IFS=$IFS; IFS='-'
2435 set x $ac_cv_target
2436 shift
2437 target_cpu=$1
2438 target_vendor=$2
2439 shift; shift
2440 # Remember, the first character of IFS is used to create $*,
2441 # except with old shells:
2442 target_os=$*
2443 IFS=$ac_save_IFS
2444 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2445
2446
2447 # The aliases save the names the user supplied, while $host etc.
2448 # will get canonicalized.
2449 test -n "$target_alias" &&
2450   test "$program_prefix$program_suffix$program_transform_name" = \
2451     NONENONEs,x,x, &&
2452   program_prefix=${target_alias}-
2453
2454  case ${build_alias} in
2455   "") build_noncanonical=${build} ;;
2456   *) build_noncanonical=${build_alias} ;;
2457 esac
2458
2459  case ${host_alias} in
2460   "") host_noncanonical=${build_noncanonical} ;;
2461   *) host_noncanonical=${host_alias} ;;
2462 esac
2463
2464  case ${target_alias} in
2465   "") target_noncanonical=${host_noncanonical} ;;
2466   *) target_noncanonical=${target_alias} ;;
2467 esac
2468
2469
2470
2471
2472 am__api_version='1.11'
2473
2474 # Find a good install program.  We prefer a C program (faster),
2475 # so one script is as good as another.  But avoid the broken or
2476 # incompatible versions:
2477 # SysV /etc/install, /usr/sbin/install
2478 # SunOS /usr/etc/install
2479 # IRIX /sbin/install
2480 # AIX /bin/install
2481 # AmigaOS /C/install, which installs bootblocks on floppy discs
2482 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2483 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2484 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2485 # OS/2's system install, which has a completely different semantic
2486 # ./install, which can be erroneously created by make from ./install.sh.
2487 # Reject install programs that cannot install multiple files.
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2489 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2490 if test -z "$INSTALL"; then
2491 if test "${ac_cv_path_install+set}" = set; then :
2492   $as_echo_n "(cached) " >&6
2493 else
2494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499     # Account for people who put trailing slashes in PATH elements.
2500 case $as_dir/ in #((
2501   ./ | .// | /[cC]/* | \
2502   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2503   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2504   /usr/ucb/* ) ;;
2505   *)
2506     # OSF1 and SCO ODT 3.0 have their own names for install.
2507     # Don't use installbsd from OSF since it installs stuff as root
2508     # by default.
2509     for ac_prog in ginstall scoinst install; do
2510       for ac_exec_ext in '' $ac_executable_extensions; do
2511         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2512           if test $ac_prog = install &&
2513             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2514             # AIX install.  It has an incompatible calling convention.
2515             :
2516           elif test $ac_prog = install &&
2517             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2518             # program-specific install script used by HP pwplus--don't use.
2519             :
2520           else
2521             rm -rf conftest.one conftest.two conftest.dir
2522             echo one > conftest.one
2523             echo two > conftest.two
2524             mkdir conftest.dir
2525             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2526               test -s conftest.one && test -s conftest.two &&
2527               test -s conftest.dir/conftest.one &&
2528               test -s conftest.dir/conftest.two
2529             then
2530               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2531               break 3
2532             fi
2533           fi
2534         fi
2535       done
2536     done
2537     ;;
2538 esac
2539
2540   done
2541 IFS=$as_save_IFS
2542
2543 rm -rf conftest.one conftest.two conftest.dir
2544
2545 fi
2546   if test "${ac_cv_path_install+set}" = set; then
2547     INSTALL=$ac_cv_path_install
2548   else
2549     # As a last resort, use the slow shell script.  Don't cache a
2550     # value for INSTALL within a source directory, because that will
2551     # break other packages using the cache if that directory is
2552     # removed, or if the value is a relative name.
2553     INSTALL=$ac_install_sh
2554   fi
2555 fi
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2557 $as_echo "$INSTALL" >&6; }
2558
2559 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2560 # It thinks the first close brace ends the variable substitution.
2561 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2562
2563 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2564
2565 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2568 $as_echo_n "checking whether build environment is sane... " >&6; }
2569 # Just in case
2570 sleep 1
2571 echo timestamp > conftest.file
2572 # Reject unsafe characters in $srcdir or the absolute working directory
2573 # name.  Accept space and tab only in the latter.
2574 am_lf='
2575 '
2576 case `pwd` in
2577   *[\\\"\#\$\&\'\`$am_lf]*)
2578     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2579 esac
2580 case $srcdir in
2581   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2582     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2583 esac
2584
2585 # Do `set' in a subshell so we don't clobber the current shell's
2586 # arguments.  Must try -L first in case configure is actually a
2587 # symlink; some systems play weird games with the mod time of symlinks
2588 # (eg FreeBSD returns the mod time of the symlink's containing
2589 # directory).
2590 if (
2591    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2592    if test "$*" = "X"; then
2593       # -L didn't work.
2594       set X `ls -t "$srcdir/configure" conftest.file`
2595    fi
2596    rm -f conftest.file
2597    if test "$*" != "X $srcdir/configure conftest.file" \
2598       && test "$*" != "X conftest.file $srcdir/configure"; then
2599
2600       # If neither matched, then we have a broken ls.  This can happen
2601       # if, for instance, CONFIG_SHELL is bash and it inherits a
2602       # broken ls alias from the environment.  This has actually
2603       # happened.  Such a system could not be considered "sane".
2604       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2605 alias in your environment" "$LINENO" 5
2606    fi
2607
2608    test "$2" = conftest.file
2609    )
2610 then
2611    # Ok.
2612    :
2613 else
2614    as_fn_error "newly created file is older than distributed files!
2615 Check your system clock" "$LINENO" 5
2616 fi
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2618 $as_echo "yes" >&6; }
2619 test "$program_prefix" != NONE &&
2620   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2621 # Use a double $ so make ignores it.
2622 test "$program_suffix" != NONE &&
2623   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2624 # Double any \ or $.
2625 # By default was `s,x,x', remove it if useless.
2626 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2627 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2628
2629 # expand $ac_aux_dir to an absolute path
2630 am_aux_dir=`cd $ac_aux_dir && pwd`
2631
2632 if test x"${MISSING+set}" != xset; then
2633   case $am_aux_dir in
2634   *\ * | *\     *)
2635     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2636   *)
2637     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2638   esac
2639 fi
2640 # Use eval to expand $SHELL
2641 if eval "$MISSING --run true"; then
2642   am_missing_run="$MISSING --run "
2643 else
2644   am_missing_run=
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2646 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2647 fi
2648
2649 if test x"${install_sh}" != xset; then
2650   case $am_aux_dir in
2651   *\ * | *\     *)
2652     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2653   *)
2654     install_sh="\${SHELL} $am_aux_dir/install-sh"
2655   esac
2656 fi
2657
2658 # Installed binaries are usually stripped using `strip' when the user
2659 # run `make install-strip'.  However `strip' might not be the right
2660 # tool to use in cross-compilation environments, therefore Automake
2661 # will honor the `STRIP' environment variable to overrule this program.
2662 if test "$cross_compiling" != no; then
2663   if test -n "$ac_tool_prefix"; then
2664   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2665 set dummy ${ac_tool_prefix}strip; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if test "${ac_cv_prog_STRIP+set}" = set; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   if test -n "$STRIP"; then
2672   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677   IFS=$as_save_IFS
2678   test -z "$as_dir" && as_dir=.
2679     for ac_exec_ext in '' $ac_executable_extensions; do
2680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683     break 2
2684   fi
2685 done
2686   done
2687 IFS=$as_save_IFS
2688
2689 fi
2690 fi
2691 STRIP=$ac_cv_prog_STRIP
2692 if test -n "$STRIP"; then
2693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2694 $as_echo "$STRIP" >&6; }
2695 else
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2698 fi
2699
2700
2701 fi
2702 if test -z "$ac_cv_prog_STRIP"; then
2703   ac_ct_STRIP=$STRIP
2704   # Extract the first word of "strip", so it can be a program name with args.
2705 set dummy strip; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2709   $as_echo_n "(cached) " >&6
2710 else
2711   if test -n "$ac_ct_STRIP"; then
2712   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719     for ac_exec_ext in '' $ac_executable_extensions; do
2720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721     ac_cv_prog_ac_ct_STRIP="strip"
2722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723     break 2
2724   fi
2725 done
2726   done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2732 if test -n "$ac_ct_STRIP"; then
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2734 $as_echo "$ac_ct_STRIP" >&6; }
2735 else
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2738 fi
2739
2740   if test "x$ac_ct_STRIP" = x; then
2741     STRIP=":"
2742   else
2743     case $cross_compiling:$ac_tool_warned in
2744 yes:)
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2747 ac_tool_warned=yes ;;
2748 esac
2749     STRIP=$ac_ct_STRIP
2750   fi
2751 else
2752   STRIP="$ac_cv_prog_STRIP"
2753 fi
2754
2755 fi
2756 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2757
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2759 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2760 if test -z "$MKDIR_P"; then
2761   if test "${ac_cv_path_mkdir+set}" = set; then :
2762   $as_echo_n "(cached) " >&6
2763 else
2764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2766 do
2767   IFS=$as_save_IFS
2768   test -z "$as_dir" && as_dir=.
2769     for ac_prog in mkdir gmkdir; do
2770          for ac_exec_ext in '' $ac_executable_extensions; do
2771            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2772            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2773              'mkdir (GNU coreutils) '* | \
2774              'mkdir (coreutils) '* | \
2775              'mkdir (fileutils) '4.1*)
2776                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2777                break 3;;
2778            esac
2779          done
2780        done
2781   done
2782 IFS=$as_save_IFS
2783
2784 fi
2785
2786   if test "${ac_cv_path_mkdir+set}" = set; then
2787     MKDIR_P="$ac_cv_path_mkdir -p"
2788   else
2789     # As a last resort, use the slow shell script.  Don't cache a
2790     # value for MKDIR_P within a source directory, because that will
2791     # break other packages using the cache if that directory is
2792     # removed, or if the value is a relative name.
2793     test -d ./--version && rmdir ./--version
2794     MKDIR_P="$ac_install_sh -d"
2795   fi
2796 fi
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2798 $as_echo "$MKDIR_P" >&6; }
2799
2800 mkdir_p="$MKDIR_P"
2801 case $mkdir_p in
2802   [\\/$]* | ?:[\\/]*) ;;
2803   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2804 esac
2805
2806 for ac_prog in gawk mawk nawk awk
2807 do
2808   # Extract the first word of "$ac_prog", so it can be a program name with args.
2809 set dummy $ac_prog; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if test "${ac_cv_prog_AWK+set}" = set; then :
2813   $as_echo_n "(cached) " >&6
2814 else
2815   if test -n "$AWK"; then
2816   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821   IFS=$as_save_IFS
2822   test -z "$as_dir" && as_dir=.
2823     for ac_exec_ext in '' $ac_executable_extensions; do
2824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825     ac_cv_prog_AWK="$ac_prog"
2826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827     break 2
2828   fi
2829 done
2830   done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 AWK=$ac_cv_prog_AWK
2836 if test -n "$AWK"; then
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2838 $as_echo "$AWK" >&6; }
2839 else
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 fi
2843
2844
2845   test -n "$AWK" && break
2846 done
2847
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2850 set x ${MAKE-make}
2851 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2852 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   cat >conftest.make <<\_ACEOF
2856 SHELL = /bin/sh
2857 all:
2858         @echo '@@@%%%=$(MAKE)=@@@%%%'
2859 _ACEOF
2860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2862   *@@@%%%=?*=@@@%%%*)
2863     eval ac_cv_prog_make_${ac_make}_set=yes;;
2864   *)
2865     eval ac_cv_prog_make_${ac_make}_set=no;;
2866 esac
2867 rm -f conftest.make
2868 fi
2869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2871 $as_echo "yes" >&6; }
2872   SET_MAKE=
2873 else
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876   SET_MAKE="MAKE=${MAKE-make}"
2877 fi
2878
2879 rm -rf .tst 2>/dev/null
2880 mkdir .tst 2>/dev/null
2881 if test -d .tst; then
2882   am__leading_dot=.
2883 else
2884   am__leading_dot=_
2885 fi
2886 rmdir .tst 2>/dev/null
2887
2888 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2889   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2890   # is not polluted with repeated "-I."
2891   am__isrc=' -I$(srcdir)'
2892   # test to see if srcdir already configured
2893   if test -f $srcdir/config.status; then
2894     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2895   fi
2896 fi
2897
2898 # test whether we have cygpath
2899 if test -z "$CYGPATH_W"; then
2900   if (cygpath --version) >/dev/null 2>/dev/null; then
2901     CYGPATH_W='cygpath -w'
2902   else
2903     CYGPATH_W=echo
2904   fi
2905 fi
2906
2907
2908 # Define the identity of the package.
2909  PACKAGE='libmudflap'
2910  VERSION='1.0'
2911
2912
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE "$PACKAGE"
2915 _ACEOF
2916
2917
2918 cat >>confdefs.h <<_ACEOF
2919 #define VERSION "$VERSION"
2920 _ACEOF
2921
2922 # Some tools Automake needs.
2923
2924 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925
2926
2927 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2928
2929
2930 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931
2932
2933 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2934
2935
2936 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937
2938 # We need awk for the "check" target.  The system "awk" is bad on
2939 # some platforms.
2940 # Always define AMTAR for backward compatibility.
2941
2942 AMTAR=${AMTAR-"${am_missing_run}tar"}
2943
2944 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2945
2946
2947
2948
2949
2950
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2952 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2953 # Check whether --enable-version-specific-runtime-libs was given.
2954 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2955   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2956  yes) version_specific_libs=yes ;;
2957  no)  version_specific_libs=no ;;
2958  *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2959  esac
2960 else
2961   version_specific_libs=no
2962 fi
2963
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2965 $as_echo "$version_specific_libs" >&6; }
2966
2967
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2969 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2970     # Check whether --enable-maintainer-mode was given.
2971 if test "${enable_maintainer_mode+set}" = set; then :
2972   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2973 else
2974   USE_MAINTAINER_MODE=no
2975 fi
2976
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2978 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2979    if test $USE_MAINTAINER_MODE = yes; then
2980   MAINTAINER_MODE_TRUE=
2981   MAINTAINER_MODE_FALSE='#'
2982 else
2983   MAINTAINER_MODE_TRUE='#'
2984   MAINTAINER_MODE_FALSE=
2985 fi
2986
2987   MAINT=$MAINTAINER_MODE_TRUE
2988
2989
2990
2991
2992 # Default to --enable-multilib
2993 # Check whether --enable-multilib was given.
2994 if test "${enable_multilib+set}" = set; then :
2995   enableval=$enable_multilib; case "$enableval" in
2996   yes) multilib=yes ;;
2997   no)  multilib=no ;;
2998   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2999  esac
3000 else
3001   multilib=yes
3002 fi
3003
3004
3005 # We may get other options which we leave undocumented:
3006 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3007 # See config-ml.in if you want the gory details.
3008
3009 if test "$srcdir" = "."; then
3010   if test "$with_target_subdir" != "."; then
3011     multi_basedir="$srcdir/$with_multisrctop../.."
3012   else
3013     multi_basedir="$srcdir/$with_multisrctop.."
3014   fi
3015 else
3016   multi_basedir="$srcdir/.."
3017 fi
3018
3019
3020 # Even if the default multilib is not a cross compilation,
3021 # it may be that some of the other multilibs are.
3022 if test $cross_compiling = no && test $multilib = yes \
3023    && test "x${with_multisubdir}" != x ; then
3024    cross_compiling=maybe
3025 fi
3026
3027 ac_config_commands="$ac_config_commands default-1"
3028
3029
3030 target_alias=${target_alias-$host_alias}
3031
3032
3033 ac_config_headers="$ac_config_headers config.h"
3034
3035
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041
3042 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3043 # We must force CC to /not/ be precious variables; otherwise
3044 # the wrong, non-multilib-adjusted value will be used in multilibs.
3045 # As a side effect, we have to subst CFLAGS ourselves.
3046
3047
3048
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 if test -n "$ac_tool_prefix"; then
3055   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if test "${ac_cv_prog_CC+set}" = set; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   if test -n "$CC"; then
3063   ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070     for ac_exec_ext in '' $ac_executable_extensions; do
3071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074     break 2
3075   fi
3076 done
3077   done
3078 IFS=$as_save_IFS
3079
3080 fi
3081 fi
3082 CC=$ac_cv_prog_CC
3083 if test -n "$CC"; then
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3086 else
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 fi
3090
3091
3092 fi
3093 if test -z "$ac_cv_prog_CC"; then
3094   ac_ct_CC=$CC
3095   # Extract the first word of "gcc", so it can be a program name with args.
3096 set dummy gcc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$ac_ct_CC"; then
3103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112     ac_cv_prog_ac_ct_CC="gcc"
3113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117   done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123 if test -n "$ac_ct_CC"; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3125 $as_echo "$ac_ct_CC" >&6; }
3126 else
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131   if test "x$ac_ct_CC" = x; then
3132     CC=""
3133   else
3134     case $cross_compiling:$ac_tool_warned in
3135 yes:)
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3139 esac
3140     CC=$ac_ct_CC
3141   fi
3142 else
3143   CC="$ac_cv_prog_CC"
3144 fi
3145
3146 if test -z "$CC"; then
3147           if test -n "$ac_tool_prefix"; then
3148     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3149 set dummy ${ac_tool_prefix}cc; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if test "${ac_cv_prog_CC+set}" = set; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   if test -n "$CC"; then
3156   ac_cv_prog_CC="$CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161   IFS=$as_save_IFS
3162   test -z "$as_dir" && as_dir=.
3163     for ac_exec_ext in '' $ac_executable_extensions; do
3164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165     ac_cv_prog_CC="${ac_tool_prefix}cc"
3166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167     break 2
3168   fi
3169 done
3170   done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 CC=$ac_cv_prog_CC
3176 if test -n "$CC"; then
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3179 else
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185   fi
3186 fi
3187 if test -z "$CC"; then
3188   # Extract the first word of "cc", so it can be a program name with args.
3189 set dummy cc; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_CC+set}" = set; then :
3193   $as_echo_n "(cached) " >&6
3194 else
3195   if test -n "$CC"; then
3196   ac_cv_prog_CC="$CC" # Let the user override the test.
3197 else
3198   ac_prog_rejected=no
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3207        ac_prog_rejected=yes
3208        continue
3209      fi
3210     ac_cv_prog_CC="cc"
3211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215   done
3216 IFS=$as_save_IFS
3217
3218 if test $ac_prog_rejected = yes; then
3219   # We found a bogon in the path, so make sure we never use it.
3220   set dummy $ac_cv_prog_CC
3221   shift
3222   if test $# != 0; then
3223     # We chose a different compiler from the bogus one.
3224     # However, it has the same basename, so the bogon will be chosen
3225     # first if we set CC to just the basename; use the full file name.
3226     shift
3227     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3228   fi
3229 fi
3230 fi
3231 fi
3232 CC=$ac_cv_prog_CC
3233 if test -n "$CC"; then
3234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3236 else
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 fi
3240
3241
3242 fi
3243 if test -z "$CC"; then
3244   if test -n "$ac_tool_prefix"; then
3245   for ac_prog in cl.exe
3246   do
3247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if test "${ac_cv_prog_CC+set}" = set; then :
3252   $as_echo_n "(cached) " >&6
3253 else
3254   if test -n "$CC"; then
3255   ac_cv_prog_CC="$CC" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3259 do
3260   IFS=$as_save_IFS
3261   test -z "$as_dir" && as_dir=.
3262     for ac_exec_ext in '' $ac_executable_extensions; do
3263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266     break 2
3267   fi
3268 done
3269   done
3270 IFS=$as_save_IFS
3271
3272 fi
3273 fi
3274 CC=$ac_cv_prog_CC
3275 if test -n "$CC"; then
3276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277 $as_echo "$CC" >&6; }
3278 else
3279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 fi
3282
3283
3284     test -n "$CC" && break
3285   done
3286 fi
3287 if test -z "$CC"; then
3288   ac_ct_CC=$CC
3289   for ac_prog in cl.exe
3290 do
3291   # Extract the first word of "$ac_prog", so it can be a program name with args.
3292 set dummy $ac_prog; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3296   $as_echo_n "(cached) " >&6
3297 else
3298   if test -n "$ac_ct_CC"; then
3299   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306     for ac_exec_ext in '' $ac_executable_extensions; do
3307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3308     ac_cv_prog_ac_ct_CC="$ac_prog"
3309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310     break 2
3311   fi
3312 done
3313   done
3314 IFS=$as_save_IFS
3315
3316 fi
3317 fi
3318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319 if test -n "$ac_ct_CC"; then
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3321 $as_echo "$ac_ct_CC" >&6; }
3322 else
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327
3328   test -n "$ac_ct_CC" && break
3329 done
3330
3331   if test "x$ac_ct_CC" = x; then
3332     CC=""
3333   else
3334     case $cross_compiling:$ac_tool_warned in
3335 yes:)
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3338 ac_tool_warned=yes ;;
3339 esac
3340     CC=$ac_ct_CC
3341   fi
3342 fi
3343
3344 fi
3345
3346
3347 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error "no acceptable C compiler found in \$PATH
3350 See \`config.log' for more details." "$LINENO" 5; }
3351
3352 # Provide some information about the compiler.
3353 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3354 set X $ac_compile
3355 ac_compiler=$2
3356 for ac_option in --version -v -V -qversion; do
3357   { { ac_try="$ac_compiler $ac_option >&5"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3365   ac_status=$?
3366   if test -s conftest.err; then
3367     sed '10a\
3368 ... rest of stderr output deleted ...
3369          10q' conftest.err >conftest.er1
3370     cat conftest.er1 >&5
3371     rm -f conftest.er1 conftest.err
3372   fi
3373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374   test $ac_status = 0; }
3375 done
3376
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h.  */
3379
3380 int
3381 main ()
3382 {
3383
3384   ;
3385   return 0;
3386 }
3387 _ACEOF
3388 ac_clean_files_save=$ac_clean_files
3389 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3390 # Try to create an executable without -o first, disregard a.out.
3391 # It will help us diagnose broken compilers, and finding out an intuition
3392 # of exeext.
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3394 $as_echo_n "checking for C compiler default output file name... " >&6; }
3395 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3396
3397 # The possible output files:
3398 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3399
3400 ac_rmfiles=
3401 for ac_file in $ac_files
3402 do
3403   case $ac_file in
3404     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3405     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3406   esac
3407 done
3408 rm -f $ac_rmfiles
3409
3410 if { { ac_try="$ac_link_default"
3411 case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417   (eval "$ac_link_default") 2>&5
3418   ac_status=$?
3419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420   test $ac_status = 0; }; then :
3421   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3422 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3423 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3424 # so that the user can short-circuit this test for compilers unknown to
3425 # Autoconf.
3426 for ac_file in $ac_files ''
3427 do
3428   test -f "$ac_file" || continue
3429   case $ac_file in
3430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3431         ;;
3432     [ab].out )
3433         # We found the default executable, but exeext='' is most
3434         # certainly right.
3435         break;;
3436     *.* )
3437         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3438         then :; else
3439            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440         fi
3441         # We set ac_cv_exeext here because the later test for it is not
3442         # safe: cross compilers may not add the suffix if given an `-o'
3443         # argument, so we may need to know it at that point already.
3444         # Even if this section looks crufty: it has the advantage of
3445         # actually working.
3446         break;;
3447     * )
3448         break;;
3449   esac
3450 done
3451 test "$ac_cv_exeext" = no && ac_cv_exeext=
3452
3453 else
3454   ac_file=''
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3457 $as_echo "$ac_file" >&6; }
3458 if test -z "$ac_file"; then :
3459   $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 { as_fn_set_status 77
3465 as_fn_error "C compiler cannot create executables
3466 See \`config.log' for more details." "$LINENO" 5; }; }
3467 fi
3468 ac_exeext=$ac_cv_exeext
3469
3470 # Check that the compiler produces executables we can run.  If not, either
3471 # the compiler is broken, or we cross compile.
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3473 $as_echo_n "checking whether the C compiler works... " >&6; }
3474 # If not cross compiling, check that we can run a simple program.
3475 if test "$cross_compiling" != yes; then
3476   if { ac_try='./$ac_file'
3477   { { case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483   (eval "$ac_try") 2>&5
3484   ac_status=$?
3485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486   test $ac_status = 0; }; }; then
3487     cross_compiling=no
3488   else
3489     if test "$cross_compiling" = maybe; then
3490         cross_compiling=yes
3491     else
3492         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error "cannot run C compiled programs.
3495 If you meant to cross compile, use \`--host'.
3496 See \`config.log' for more details." "$LINENO" 5; }
3497     fi
3498   fi
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3502
3503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3504 ac_clean_files=$ac_clean_files_save
3505 # Check that the compiler produces executables we can run.  If not, either
3506 # the compiler is broken, or we cross compile.
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3508 $as_echo_n "checking whether we are cross compiling... " >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3510 $as_echo "$cross_compiling" >&6; }
3511
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3513 $as_echo_n "checking for suffix of executables... " >&6; }
3514 if { { ac_try="$ac_link"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521   (eval "$ac_link") 2>&5
3522   ac_status=$?
3523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524   test $ac_status = 0; }; then :
3525   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3526 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3527 # work properly (i.e., refer to `conftest.exe'), while it won't with
3528 # `rm'.
3529 for ac_file in conftest.exe conftest conftest.*; do
3530   test -f "$ac_file" || continue
3531   case $ac_file in
3532     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3533     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534           break;;
3535     * ) break;;
3536   esac
3537 done
3538 else
3539   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541 as_fn_error "cannot compute suffix of executables: cannot compile and link
3542 See \`config.log' for more details." "$LINENO" 5; }
3543 fi
3544 rm -f conftest$ac_cv_exeext
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3546 $as_echo "$ac_cv_exeext" >&6; }
3547
3548 rm -f conftest.$ac_ext
3549 EXEEXT=$ac_cv_exeext
3550 ac_exeext=$EXEEXT
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3552 $as_echo_n "checking for suffix of object files... " >&6; }
3553 if test "${ac_cv_objext+set}" = set; then :
3554   $as_echo_n "(cached) " >&6
3555 else
3556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h.  */
3558
3559 int
3560 main ()
3561 {
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.o conftest.obj
3568 if { { ac_try="$ac_compile"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575   (eval "$ac_compile") 2>&5
3576   ac_status=$?
3577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578   test $ac_status = 0; }; then :
3579   for ac_file in conftest.o conftest.obj conftest.*; do
3580   test -f "$ac_file" || continue;
3581   case $ac_file in
3582     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584        break;;
3585   esac
3586 done
3587 else
3588   $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error "cannot compute suffix of object files: cannot compile
3594 See \`config.log' for more details." "$LINENO" 5; }
3595 fi
3596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3599 $as_echo "$ac_cv_objext" >&6; }
3600 OBJEXT=$ac_cv_objext
3601 ac_objext=$OBJEXT
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3603 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3604 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3605   $as_echo_n "(cached) " >&6
3606 else
3607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609
3610 int
3611 main ()
3612 {
3613 #ifndef __GNUC__
3614        choke me
3615 #endif
3616
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 if ac_fn_c_try_compile "$LINENO"; then :
3622   ac_compiler_gnu=yes
3623 else
3624   ac_compiler_gnu=no
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3628
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3631 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3632 if test $ac_compiler_gnu = yes; then
3633   GCC=yes
3634 else
3635   GCC=
3636 fi
3637 ac_test_CFLAGS=${CFLAGS+set}
3638 ac_save_CFLAGS=$CFLAGS
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3640 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3641 if test "${ac_cv_prog_cc_g+set}" = set; then :
3642   $as_echo_n "(cached) " >&6
3643 else
3644   ac_save_c_werror_flag=$ac_c_werror_flag
3645    ac_c_werror_flag=yes
3646    ac_cv_prog_cc_g=no
3647    CFLAGS="-g"
3648    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660   ac_cv_prog_cc_g=yes
3661 else
3662   CFLAGS=""
3663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h.  */
3665
3666 int
3667 main ()
3668 {
3669
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675
3676 else
3677   ac_c_werror_flag=$ac_save_c_werror_flag
3678          CFLAGS="-g"
3679          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h.  */
3681
3682 int
3683 main ()
3684 {
3685
3686   ;
3687   return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691   ac_cv_prog_cc_g=yes
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 fi
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 fi
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698    ac_c_werror_flag=$ac_save_c_werror_flag
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3701 $as_echo "$ac_cv_prog_cc_g" >&6; }
3702 if test "$ac_test_CFLAGS" = set; then
3703   CFLAGS=$ac_save_CFLAGS
3704 elif test $ac_cv_prog_cc_g = yes; then
3705   if test "$GCC" = yes; then
3706     CFLAGS="-g -O2"
3707   else
3708     CFLAGS="-g"
3709   fi
3710 else
3711   if test "$GCC" = yes; then
3712     CFLAGS="-O2"
3713   else
3714     CFLAGS=
3715   fi
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3718 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3719 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3720   $as_echo_n "(cached) " >&6
3721 else
3722   ac_cv_prog_cc_c89=no
3723 ac_save_CC=$CC
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h.  */
3726 #include <stdarg.h>
3727 #include <stdio.h>
3728 #include <sys/types.h>
3729 #include <sys/stat.h>
3730 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3731 struct buf { int x; };
3732 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3733 static char *e (p, i)
3734      char **p;
3735      int i;
3736 {
3737   return p[i];
3738 }
3739 static char *f (char * (*g) (char **, int), char **p, ...)
3740 {
3741   char *s;
3742   va_list v;
3743   va_start (v,p);
3744   s = g (p, va_arg (v,int));
3745   va_end (v);
3746   return s;
3747 }
3748
3749 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3750    function prototypes and stuff, but not '\xHH' hex character constants.
3751    These don't provoke an error unfortunately, instead are silently treated
3752    as 'x'.  The following induces an error, until -std is added to get
3753    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3754    array size at least.  It's necessary to write '\x00'==0 to get something
3755    that's true only with -std.  */
3756 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3757
3758 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3759    inside strings and character constants.  */
3760 #define FOO(x) 'x'
3761 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3762
3763 int test (int i, double x);
3764 struct s1 {int (*f) (int a);};
3765 struct s2 {int (*f) (double a);};
3766 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3767 int argc;
3768 char **argv;
3769 int
3770 main ()
3771 {
3772 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3778         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3779 do
3780   CC="$ac_save_CC $ac_arg"
3781   if ac_fn_c_try_compile "$LINENO"; then :
3782   ac_cv_prog_cc_c89=$ac_arg
3783 fi
3784 rm -f core conftest.err conftest.$ac_objext
3785   test "x$ac_cv_prog_cc_c89" != "xno" && break
3786 done
3787 rm -f conftest.$ac_ext
3788 CC=$ac_save_CC
3789
3790 fi
3791 # AC_CACHE_VAL
3792 case "x$ac_cv_prog_cc_c89" in
3793   x)
3794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3795 $as_echo "none needed" >&6; } ;;
3796   xno)
3797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3798 $as_echo "unsupported" >&6; } ;;
3799   *)
3800     CC="$CC $ac_cv_prog_cc_c89"
3801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3802 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3803 esac
3804 if test "x$ac_cv_prog_cc_c89" != xno; then :
3805
3806 fi
3807
3808 ac_ext=c
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 DEPDIR="${am__leading_dot}deps"
3814
3815 ac_config_commands="$ac_config_commands depfiles"
3816
3817
3818 am_make=${MAKE-make}
3819 cat > confinc << 'END'
3820 am__doit:
3821         @echo this is the am__doit target
3822 .PHONY: am__doit
3823 END
3824 # If we don't find an include directive, just comment out the code.
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3826 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3827 am__include="#"
3828 am__quote=
3829 _am_result=none
3830 # First try GNU make style include.
3831 echo "include confinc" > confmf
3832 # Ignore all kinds of additional output from `make'.
3833 case `$am_make -s -f confmf 2> /dev/null` in #(
3834 *the\ am__doit\ target*)
3835   am__include=include
3836   am__quote=
3837   _am_result=GNU
3838   ;;
3839 esac
3840 # Now try BSD make style include.
3841 if test "$am__include" = "#"; then
3842    echo '.include "confinc"' > confmf
3843    case `$am_make -s -f confmf 2> /dev/null` in #(
3844    *the\ am__doit\ target*)
3845      am__include=.include
3846      am__quote="\""
3847      _am_result=BSD
3848      ;;
3849    esac
3850 fi
3851
3852
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3854 $as_echo "$_am_result" >&6; }
3855 rm -f confinc confmf
3856
3857 # Check whether --enable-dependency-tracking was given.
3858 if test "${enable_dependency_tracking+set}" = set; then :
3859   enableval=$enable_dependency_tracking;
3860 fi
3861
3862 if test "x$enable_dependency_tracking" != xno; then
3863   am_depcomp="$ac_aux_dir/depcomp"
3864   AMDEPBACKSLASH='\'
3865 fi
3866  if test "x$enable_dependency_tracking" != xno; then
3867   AMDEP_TRUE=
3868   AMDEP_FALSE='#'
3869 else
3870   AMDEP_TRUE='#'
3871   AMDEP_FALSE=
3872 fi
3873
3874
3875
3876 depcc="$CC"   am_compiler_list=
3877
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3879 $as_echo_n "checking dependency style of $depcc... " >&6; }
3880 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3881   $as_echo_n "(cached) " >&6
3882 else
3883   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3884   # We make a subdir and do the tests there.  Otherwise we can end up
3885   # making bogus files that we don't know about and never remove.  For
3886   # instance it was reported that on HP-UX the gcc test will end up
3887   # making a dummy file named `D' -- because `-MD' means `put the output
3888   # in D'.
3889   mkdir conftest.dir
3890   # Copy depcomp to subdir because otherwise we won't find it if we're
3891   # using a relative directory.
3892   cp "$am_depcomp" conftest.dir
3893   cd conftest.dir
3894   # We will build objects and dependencies in a subdirectory because
3895   # it helps to detect inapplicable dependency modes.  For instance
3896   # both Tru64's cc and ICC support -MD to output dependencies as a
3897   # side effect of compilation, but ICC will put the dependencies in
3898   # the current directory while Tru64 will put them in the object
3899   # directory.
3900   mkdir sub
3901
3902   am_cv_CC_dependencies_compiler_type=none
3903   if test "$am_compiler_list" = ""; then
3904      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3905   fi
3906   am__universal=false
3907   case " $depcc " in #(
3908      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3909      esac
3910
3911   for depmode in $am_compiler_list; do
3912     # Setup a source with many dependencies, because some compilers
3913     # like to wrap large dependency lists on column 80 (with \), and
3914     # we should not choose a depcomp mode which is confused by this.
3915     #
3916     # We need to recreate these files for each test, as the compiler may
3917     # overwrite some of them when testing with obscure command lines.
3918     # This happens at least with the AIX C compiler.
3919     : > sub/conftest.c
3920     for i in 1 2 3 4 5 6; do
3921       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3922       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3923       # Solaris 8's {/usr,}/bin/sh.
3924       touch sub/conftst$i.h
3925     done
3926     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3927
3928     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3929     # mode.  It turns out that the SunPro C++ compiler does not properly
3930     # handle `-M -o', and we need to detect this.  Also, some Intel
3931     # versions had trouble with output in subdirs
3932     am__obj=sub/conftest.${OBJEXT-o}
3933     am__minus_obj="-o $am__obj"
3934     case $depmode in
3935     gcc)
3936       # This depmode causes a compiler race in universal mode.
3937       test "$am__universal" = false || continue
3938       ;;
3939     nosideeffect)
3940       # after this tag, mechanisms are not by side-effect, so they'll
3941       # only be used when explicitly requested
3942       if test "x$enable_dependency_tracking" = xyes; then
3943         continue
3944       else
3945         break
3946       fi
3947       ;;
3948     msvisualcpp | msvcmsys)
3949       # This compiler won't grok `-c -o', but also, the minuso test has
3950       # not run yet.  These depmodes are late enough in the game, and
3951       # so weak that their functioning should not be impacted.
3952       am__obj=conftest.${OBJEXT-o}
3953       am__minus_obj=
3954       ;;
3955     none) break ;;
3956     esac
3957     if depmode=$depmode \
3958        source=sub/conftest.c object=$am__obj \
3959        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3960        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3961          >/dev/null 2>conftest.err &&
3962        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3963        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3964        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3965        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3966       # icc doesn't choke on unknown options, it will just issue warnings
3967       # or remarks (even with -Werror).  So we grep stderr for any message
3968       # that says an option was ignored or not supported.
3969       # When given -MP, icc 7.0 and 7.1 complain thusly:
3970       #   icc: Command line warning: ignoring option '-M'; no argument required
3971       # The diagnosis changed in icc 8.0:
3972       #   icc: Command line remark: option '-MP' not supported
3973       if (grep 'ignoring option' conftest.err ||
3974           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3975         am_cv_CC_dependencies_compiler_type=$depmode
3976         break
3977       fi
3978     fi
3979   done
3980
3981   cd ..
3982   rm -rf conftest.dir
3983 else
3984   am_cv_CC_dependencies_compiler_type=none
3985 fi
3986
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3989 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3990 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3991
3992  if
3993   test "x$enable_dependency_tracking" != xno \
3994   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3995   am__fastdepCC_TRUE=
3996   am__fastdepCC_FALSE='#'
3997 else
3998   am__fastdepCC_TRUE='#'
3999   am__fastdepCC_FALSE=
4000 fi
4001
4002
4003
4004
4005
4006
4007 if test "x$GCC" != "xyes"; then
4008   as_fn_error "libmudflap must be built with GCC" "$LINENO" 5
4009 fi
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4016 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4017 # On Suns, sometimes $CPP names a directory.
4018 if test -n "$CPP" && test -d "$CPP"; then
4019   CPP=
4020 fi
4021 if test -z "$CPP"; then
4022   if test "${ac_cv_prog_CPP+set}" = set; then :
4023   $as_echo_n "(cached) " >&6
4024 else
4025       # Double quotes because CPP needs to be expanded
4026     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4027     do
4028       ac_preproc_ok=false
4029 for ac_c_preproc_warn_flag in '' yes
4030 do
4031   # Use a header file that comes with gcc, so configuring glibc
4032   # with a fresh cross-compiler works.
4033   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4034   # <limits.h> exists even on freestanding compilers.
4035   # On the NeXT, cc -E runs the code through the compiler's parser,
4036   # not just through cpp. "Syntax error" is here to catch this case.
4037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h.  */
4039 #ifdef __STDC__
4040 # include <limits.h>
4041 #else
4042 # include <assert.h>
4043 #endif
4044                      Syntax error
4045 _ACEOF
4046 if ac_fn_c_try_cpp "$LINENO"; then :
4047
4048 else
4049   # Broken: fails on valid input.
4050 continue
4051 fi
4052 rm -f conftest.err conftest.$ac_ext
4053
4054   # OK, works on sane cases.  Now check whether nonexistent headers
4055   # can be detected and how.
4056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h.  */
4058 #include <ac_nonexistent.h>
4059 _ACEOF
4060 if ac_fn_c_try_cpp "$LINENO"; then :
4061   # Broken: success on invalid input.
4062 continue
4063 else
4064   # Passes both tests.
4065 ac_preproc_ok=:
4066 break
4067 fi
4068 rm -f conftest.err conftest.$ac_ext
4069
4070 done
4071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4072 rm -f conftest.err conftest.$ac_ext
4073 if $ac_preproc_ok; then :
4074   break
4075 fi
4076
4077     done
4078     ac_cv_prog_CPP=$CPP
4079
4080 fi
4081   CPP=$ac_cv_prog_CPP
4082 else
4083   ac_cv_prog_CPP=$CPP
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4086 $as_echo "$CPP" >&6; }
4087 ac_preproc_ok=false
4088 for ac_c_preproc_warn_flag in '' yes
4089 do
4090   # Use a header file that comes with gcc, so configuring glibc
4091   # with a fresh cross-compiler works.
4092   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4093   # <limits.h> exists even on freestanding compilers.
4094   # On the NeXT, cc -E runs the code through the compiler's parser,
4095   # not just through cpp. "Syntax error" is here to catch this case.
4096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h.  */
4098 #ifdef __STDC__
4099 # include <limits.h>
4100 #else
4101 # include <assert.h>
4102 #endif
4103                      Syntax error
4104 _ACEOF
4105 if ac_fn_c_try_cpp "$LINENO"; then :
4106
4107 else
4108   # Broken: fails on valid input.
4109 continue
4110 fi
4111 rm -f conftest.err conftest.$ac_ext
4112
4113   # OK, works on sane cases.  Now check whether nonexistent headers
4114   # can be detected and how.
4115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h.  */
4117 #include <ac_nonexistent.h>
4118 _ACEOF
4119 if ac_fn_c_try_cpp "$LINENO"; then :
4120   # Broken: success on invalid input.
4121 continue
4122 else
4123   # Passes both tests.
4124 ac_preproc_ok=:
4125 break
4126 fi
4127 rm -f conftest.err conftest.$ac_ext
4128
4129 done
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then :
4133
4134 else
4135   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4138 See \`config.log' for more details." "$LINENO" 5; }
4139 fi
4140
4141 ac_ext=c
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147
4148 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
4149 # symbol interposition.  We disable shared libraries for these.
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym(RTLD_NEXT,...) is available" >&5
4151 $as_echo_n "checking whether dlsym(RTLD_NEXT,...) is available... " >&6; }
4152
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h.  */
4155
4156 #define _GNU_SOURCE
4157 #include <dlfcn.h>
4158
4159 int
4160 main ()
4161 {
4162 void *foo = dlsym (RTLD_NEXT, "exit");
4163   ;
4164   return 0;
4165 }
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169 $as_echo "yes" >&6; }
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 enable_shared=no
4174 fi
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176
4177
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4180 if test "${ac_cv_path_GREP+set}" = set; then :
4181   $as_echo_n "(cached) " >&6
4182 else
4183   if test -z "$GREP"; then
4184   ac_path_GREP_found=false
4185   # Loop through the user's path and test for each of PROGNAME-LIST
4186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191     for ac_prog in grep ggrep; do
4192     for ac_exec_ext in '' $ac_executable_extensions; do
4193       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4194       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4195 # Check for GNU ac_path_GREP and select it if it is found.
4196   # Check for GNU $ac_path_GREP
4197 case `"$ac_path_GREP" --version 2>&1` in
4198 *GNU*)
4199   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4200 *)
4201   ac_count=0
4202   $as_echo_n 0123456789 >"conftest.in"
4203   while :
4204   do
4205     cat "conftest.in" "conftest.in" >"conftest.tmp"
4206     mv "conftest.tmp" "conftest.in"
4207     cp "conftest.in" "conftest.nl"
4208     $as_echo 'GREP' >> "conftest.nl"
4209     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211     as_fn_arith $ac_count + 1 && ac_count=$as_val
4212     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4213       # Best one so far, save it but keep looking for a better one
4214       ac_cv_path_GREP="$ac_path_GREP"
4215       ac_path_GREP_max=$ac_count
4216     fi
4217     # 10*(2^10) chars as input seems more than enough
4218     test $ac_count -gt 10 && break
4219   done
4220   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221 esac
4222
4223       $ac_path_GREP_found && break 3
4224     done
4225   done
4226   done
4227 IFS=$as_save_IFS
4228   if test -z "$ac_cv_path_GREP"; then
4229     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4230   fi
4231 else
4232   ac_cv_path_GREP=$GREP
4233 fi
4234
4235 fi
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4237 $as_echo "$ac_cv_path_GREP" >&6; }
4238  GREP="$ac_cv_path_GREP"
4239
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4242 $as_echo_n "checking for egrep... " >&6; }
4243 if test "${ac_cv_path_EGREP+set}" = set; then :
4244   $as_echo_n "(cached) " >&6
4245 else
4246   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4247    then ac_cv_path_EGREP="$GREP -E"
4248    else
4249      if test -z "$EGREP"; then
4250   ac_path_EGREP_found=false
4251   # Loop through the user's path and test for each of PROGNAME-LIST
4252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257     for ac_prog in egrep; do
4258     for ac_exec_ext in '' $ac_executable_extensions; do
4259       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4260       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4261 # Check for GNU ac_path_EGREP and select it if it is found.
4262   # Check for GNU $ac_path_EGREP
4263 case `"$ac_path_EGREP" --version 2>&1` in
4264 *GNU*)
4265   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4266 *)
4267   ac_count=0
4268   $as_echo_n 0123456789 >"conftest.in"
4269   while :
4270   do
4271     cat "conftest.in" "conftest.in" >"conftest.tmp"
4272     mv "conftest.tmp" "conftest.in"
4273     cp "conftest.in" "conftest.nl"
4274     $as_echo 'EGREP' >> "conftest.nl"
4275     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277     as_fn_arith $ac_count + 1 && ac_count=$as_val
4278     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4279       # Best one so far, save it but keep looking for a better one
4280       ac_cv_path_EGREP="$ac_path_EGREP"
4281       ac_path_EGREP_max=$ac_count
4282     fi
4283     # 10*(2^10) chars as input seems more than enough
4284     test $ac_count -gt 10 && break
4285   done
4286   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287 esac
4288
4289       $ac_path_EGREP_found && break 3
4290     done
4291   done
4292   done
4293 IFS=$as_save_IFS
4294   if test -z "$ac_cv_path_EGREP"; then
4295     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4296   fi
4297 else
4298   ac_cv_path_EGREP=$EGREP
4299 fi
4300
4301    fi
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4304 $as_echo "$ac_cv_path_EGREP" >&6; }
4305  EGREP="$ac_cv_path_EGREP"
4306
4307
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4309 $as_echo_n "checking for ANSI C header files... " >&6; }
4310 if test "${ac_cv_header_stdc+set}" = set; then :
4311   $as_echo_n "(cached) " >&6
4312 else
4313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h.  */
4315 #include <stdlib.h>
4316 #include <stdarg.h>
4317 #include <string.h>
4318 #include <float.h>
4319
4320 int
4321 main ()
4322 {
4323
4324   ;
4325   return 0;
4326 }
4327 _ACEOF
4328 if ac_fn_c_try_compile "$LINENO"; then :
4329   ac_cv_header_stdc=yes
4330 else
4331   ac_cv_header_stdc=no
4332 fi
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334
4335 if test $ac_cv_header_stdc = yes; then
4336   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h.  */
4339 #include <string.h>
4340
4341 _ACEOF
4342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343   $EGREP "memchr" >/dev/null 2>&1; then :
4344
4345 else
4346   ac_cv_header_stdc=no
4347 fi
4348 rm -f conftest*
4349
4350 fi
4351
4352 if test $ac_cv_header_stdc = yes; then
4353   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h.  */
4356 #include <stdlib.h>
4357
4358 _ACEOF
4359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4360   $EGREP "free" >/dev/null 2>&1; then :
4361
4362 else
4363   ac_cv_header_stdc=no
4364 fi
4365 rm -f conftest*
4366
4367 fi
4368
4369 if test $ac_cv_header_stdc = yes; then
4370   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4371   if test "$cross_compiling" = yes; then :
4372   :
4373 else
4374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h.  */
4376 #include <ctype.h>
4377 #include <stdlib.h>
4378 #if ((' ' & 0x0FF) == 0x020)
4379 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4380 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4381 #else
4382 # define ISLOWER(c) \
4383                    (('a' <= (c) && (c) <= 'i') \
4384                      || ('j' <= (c) && (c) <= 'r') \
4385                      || ('s' <= (c) && (c) <= 'z'))
4386 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4387 #endif
4388
4389 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4390 int
4391 main ()
4392 {
4393   int i;
4394   for (i = 0; i < 256; i++)
4395     if (XOR (islower (i), ISLOWER (i))
4396         || toupper (i) != TOUPPER (i))
4397       return 2;
4398   return 0;
4399 }
4400 _ACEOF
4401 if ac_fn_c_try_run "$LINENO"; then :
4402
4403 else
4404   ac_cv_header_stdc=no
4405 fi
4406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4407   conftest.$ac_objext conftest.beam conftest.$ac_ext
4408 fi
4409
4410 fi
4411 fi
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4413 $as_echo "$ac_cv_header_stdc" >&6; }
4414 if test $ac_cv_header_stdc = yes; then
4415
4416 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4417
4418 fi
4419
4420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4421 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4422                   inttypes.h stdint.h unistd.h
4423 do :
4424   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4426 "
4427 eval as_val=\$$as_ac_Header
4428    if test "x$as_val" = x""yes; then :
4429   cat >>confdefs.h <<_ACEOF
4430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4431 _ACEOF
4432
4433 fi
4434
4435 done
4436
4437
4438 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
4439   netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
4440   sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
4441 do :
4442   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4444 eval as_val=\$$as_ac_Header
4445    if test "x$as_val" = x""yes; then :
4446   cat >>confdefs.h <<_ACEOF
4447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4448 _ACEOF
4449
4450 fi
4451
4452 done
4453
4454
4455 for ac_func in backtrace backtrace_symbols gettimeofday signal
4456 do :
4457   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4458 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4459 eval as_val=\$$as_ac_var
4460    if test "x$as_val" = x""yes; then :
4461   cat >>confdefs.h <<_ACEOF
4462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4463 _ACEOF
4464
4465 fi
4466 done
4467
4468 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
4469 do :
4470   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4471 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4472 eval as_val=\$$as_ac_var
4473    if test "x$as_val" = x""yes; then :
4474   cat >>confdefs.h <<_ACEOF
4475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4476 _ACEOF
4477
4478 fi
4479 done
4480
4481 for ac_func in setbuf setbuffer setlinebuf setvbuf
4482 do :
4483   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4484 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4485 eval as_val=\$$as_ac_var
4486    if test "x$as_val" = x""yes; then :
4487   cat >>confdefs.h <<_ACEOF
4488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4489 _ACEOF
4490
4491 fi
4492 done
4493
4494 for ac_func in strnlen memrchr strncpy memmem sethostname
4495 do :
4496   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4498 eval as_val=\$$as_ac_var
4499    if test "x$as_val" = x""yes; then :
4500   cat >>confdefs.h <<_ACEOF
4501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4502 _ACEOF
4503
4504 fi
4505 done
4506
4507 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4508 do :
4509   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4510 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4511 eval as_val=\$$as_ac_var
4512    if test "x$as_val" = x""yes; then :
4513   cat >>confdefs.h <<_ACEOF
4514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4515 _ACEOF
4516
4517 fi
4518 done
4519
4520 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4521 do :
4522   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4523 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4524 eval as_val=\$$as_ac_var
4525    if test "x$as_val" = x""yes; then :
4526   cat >>confdefs.h <<_ACEOF
4527 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4528 _ACEOF
4529
4530 fi
4531 done
4532
4533 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4534 do :
4535   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4537 eval as_val=\$$as_ac_var
4538    if test "x$as_val" = x""yes; then :
4539   cat >>confdefs.h <<_ACEOF
4540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4541 _ACEOF
4542
4543 fi
4544 done
4545
4546 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4547 do :
4548   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4550 eval as_val=\$$as_ac_var
4551    if test "x$as_val" = x""yes; then :
4552   cat >>confdefs.h <<_ACEOF
4553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4554 _ACEOF
4555
4556 fi
4557 done
4558
4559 for ac_func in getprotoent getprotobyname getprotobynumber
4560 do :
4561   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4562 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4563 eval as_val=\$$as_ac_var
4564    if test "x$as_val" = x""yes; then :
4565   cat >>confdefs.h <<_ACEOF
4566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4567 _ACEOF
4568
4569 fi
4570 done
4571
4572 for ac_func in getmntent setmntent addmntent
4573 do :
4574   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4575 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4576 eval as_val=\$$as_ac_var
4577    if test "x$as_val" = x""yes; then :
4578   cat >>confdefs.h <<_ACEOF
4579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4580 _ACEOF
4581
4582 fi
4583 done
4584
4585 for ac_func in inet_ntoa mmap munmap
4586 do :
4587   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4588 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4589 eval as_val=\$$as_ac_var
4590    if test "x$as_val" = x""yes; then :
4591   cat >>confdefs.h <<_ACEOF
4592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4593 _ACEOF
4594
4595 fi
4596 done
4597
4598 for ac_func in __libc_freeres
4599 do :
4600   ac_fn_c_check_func "$LINENO" "__libc_freeres" "ac_cv_func___libc_freeres"
4601 if test "x$ac_cv_func___libc_freeres" = x""yes; then :
4602   cat >>confdefs.h <<_ACEOF
4603 #define HAVE___LIBC_FREERES 1
4604 _ACEOF
4605
4606 fi
4607 done
4608
4609
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h.  */
4612 #include <sys/types.h>
4613 #include <sys/ipc.h>
4614 #include <sys/sem.h>
4615 int
4616 main ()
4617 {
4618 union semun foo;
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624   mf_have_semun=1
4625 else
4626   mf_have_semun=0
4627 fi
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 if test $mf_have_semun = 1
4630 then
4631
4632 $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
4633
4634 fi
4635
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
4638 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h.  */
4641 #define _POSIX_PII_SOCKET
4642 #include <sys/types.h>
4643 #include <sys/socket.h>
4644 int
4645 main ()
4646 {
4647 socklen_t x = 5;
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653
4654 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
4655
4656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4657 $as_echo "yes" >&6; }
4658 else
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663
4664 enable_dlopen=yes
4665
4666
4667
4668 case `pwd` in
4669   *\ * | *\     *)
4670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4671 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4672 esac
4673
4674
4675
4676 macro_version='2.2.6'
4677 macro_revision='1.3012'
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691 ltmain="$ac_aux_dir/ltmain.sh"
4692
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4694 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4695 if test "${ac_cv_path_SED+set}" = set; then :
4696   $as_echo_n "(cached) " >&6
4697 else
4698             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4699      for ac_i in 1 2 3 4 5 6 7; do
4700        ac_script="$ac_script$as_nl$ac_script"
4701      done
4702      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4703      { ac_script=; unset ac_script;}
4704      if test -z "$SED"; then
4705   ac_path_SED_found=false
4706   # Loop through the user's path and test for each of PROGNAME-LIST
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712     for ac_prog in sed gsed; do
4713     for ac_exec_ext in '' $ac_executable_extensions; do
4714       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4715       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4716 # Check for GNU ac_path_SED and select it if it is found.
4717   # Check for GNU $ac_path_SED
4718 case `"$ac_path_SED" --version 2>&1` in
4719 *GNU*)
4720   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4721 *)
4722   ac_count=0
4723   $as_echo_n 0123456789 >"conftest.in"
4724   while :
4725   do
4726     cat "conftest.in" "conftest.in" >"conftest.tmp"
4727     mv "conftest.tmp" "conftest.in"
4728     cp "conftest.in" "conftest.nl"
4729     $as_echo '' >> "conftest.nl"
4730     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732     as_fn_arith $ac_count + 1 && ac_count=$as_val
4733     if test $ac_count -gt ${ac_path_SED_max-0}; then
4734       # Best one so far, save it but keep looking for a better one
4735       ac_cv_path_SED="$ac_path_SED"
4736       ac_path_SED_max=$ac_count
4737     fi
4738     # 10*(2^10) chars as input seems more than enough
4739     test $ac_count -gt 10 && break
4740   done
4741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4742 esac
4743
4744       $ac_path_SED_found && break 3
4745     done
4746   done
4747   done
4748 IFS=$as_save_IFS
4749   if test -z "$ac_cv_path_SED"; then
4750     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4751   fi
4752 else
4753   ac_cv_path_SED=$SED
4754 fi
4755
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4758 $as_echo "$ac_cv_path_SED" >&6; }
4759  SED="$ac_cv_path_SED"
4760   rm -f conftest.sed
4761
4762 test -z "$SED" && SED=sed
4763 Xsed="$SED -e 1s/^X//"
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4776 $as_echo_n "checking for fgrep... " >&6; }
4777 if test "${ac_cv_path_FGREP+set}" = set; then :
4778   $as_echo_n "(cached) " >&6
4779 else
4780   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4781    then ac_cv_path_FGREP="$GREP -F"
4782    else
4783      if test -z "$FGREP"; then
4784   ac_path_FGREP_found=false
4785   # Loop through the user's path and test for each of PROGNAME-LIST
4786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4788 do
4789   IFS=$as_save_IFS
4790   test -z "$as_dir" && as_dir=.
4791     for ac_prog in fgrep; do
4792     for ac_exec_ext in '' $ac_executable_extensions; do
4793       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4794       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4795 # Check for GNU ac_path_FGREP and select it if it is found.
4796   # Check for GNU $ac_path_FGREP
4797 case `"$ac_path_FGREP" --version 2>&1` in
4798 *GNU*)
4799   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4800 *)
4801   ac_count=0
4802   $as_echo_n 0123456789 >"conftest.in"
4803   while :
4804   do
4805     cat "conftest.in" "conftest.in" >"conftest.tmp"
4806     mv "conftest.tmp" "conftest.in"
4807     cp "conftest.in" "conftest.nl"
4808     $as_echo 'FGREP' >> "conftest.nl"
4809     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4810     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4811     as_fn_arith $ac_count + 1 && ac_count=$as_val
4812     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4813       # Best one so far, save it but keep looking for a better one
4814       ac_cv_path_FGREP="$ac_path_FGREP"
4815       ac_path_FGREP_max=$ac_count
4816     fi
4817     # 10*(2^10) chars as input seems more than enough
4818     test $ac_count -gt 10 && break
4819   done
4820   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4821 esac
4822
4823       $ac_path_FGREP_found && break 3
4824     done
4825   done
4826   done
4827 IFS=$as_save_IFS
4828   if test -z "$ac_cv_path_FGREP"; then
4829     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4830   fi
4831 else
4832   ac_cv_path_FGREP=$FGREP
4833 fi
4834
4835    fi
4836 fi
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4838 $as_echo "$ac_cv_path_FGREP" >&6; }
4839  FGREP="$ac_cv_path_FGREP"
4840
4841
4842 test -z "$GREP" && GREP=grep
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862 # Check whether --with-gnu-ld was given.
4863 if test "${with_gnu_ld+set}" = set; then :
4864   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4865 else
4866   with_gnu_ld=no
4867 fi
4868
4869 ac_prog=ld
4870 if test "$GCC" = yes; then
4871   # Check if gcc -print-prog-name=ld gives a path.
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4873 $as_echo_n "checking for ld used by $CC... " >&6; }
4874   case $host in
4875   *-*-mingw*)
4876     # gcc leaves a trailing carriage return which upsets mingw
4877     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4878   *)
4879     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4880   esac
4881   case $ac_prog in
4882     # Accept absolute paths.
4883     [\\/]* | ?:[\\/]*)
4884       re_direlt='/[^/][^/]*/\.\./'
4885       # Canonicalize the pathname of ld
4886       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4887       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4888         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4889       done
4890       test -z "$LD" && LD="$ac_prog"
4891       ;;
4892   "")
4893     # If it fails, then pretend we aren't using GCC.
4894     ac_prog=ld
4895     ;;
4896   *)
4897     # If it is relative, then search for the first ld in PATH.
4898     with_gnu_ld=unknown
4899     ;;
4900   esac
4901 elif test "$with_gnu_ld" = yes; then
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4903 $as_echo_n "checking for GNU ld... " >&6; }
4904 else
4905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4906 $as_echo_n "checking for non-GNU ld... " >&6; }
4907 fi
4908 if test "${lt_cv_path_LD+set}" = set; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911   if test -z "$LD"; then
4912   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4913   for ac_dir in $PATH; do
4914     IFS="$lt_save_ifs"
4915     test -z "$ac_dir" && ac_dir=.
4916     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4917       lt_cv_path_LD="$ac_dir/$ac_prog"
4918       # Check to see if the program is GNU ld.  I'd rather use --version,
4919       # but apparently some variants of GNU ld only accept -v.
4920       # Break only if it was the GNU/non-GNU ld that we prefer.
4921       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4922       *GNU* | *'with BFD'*)
4923         test "$with_gnu_ld" != no && break
4924         ;;
4925       *)
4926         test "$with_gnu_ld" != yes && break
4927         ;;
4928       esac
4929     fi
4930   done
4931   IFS="$lt_save_ifs"
4932 else
4933   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4934 fi
4935 fi
4936
4937 LD="$lt_cv_path_LD"
4938 if test -n "$LD"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4940 $as_echo "$LD" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4947 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4948 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4949   $as_echo_n "(cached) " >&6
4950 else
4951   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4952 case `$LD -v 2>&1 </dev/null` in
4953 *GNU* | *'with BFD'*)
4954   lt_cv_prog_gnu_ld=yes
4955   ;;
4956 *)
4957   lt_cv_prog_gnu_ld=no
4958   ;;
4959 esac
4960 fi
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4962 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4963 with_gnu_ld=$lt_cv_prog_gnu_ld
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4974 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4975 if test "${lt_cv_path_NM+set}" = set; then :
4976   $as_echo_n "(cached) " >&6
4977 else
4978   if test -n "$NM"; then
4979   # Let the user override the test.
4980   lt_cv_path_NM="$NM"
4981 else
4982   lt_nm_to_check="${ac_tool_prefix}nm"
4983   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4984     lt_nm_to_check="$lt_nm_to_check nm"
4985   fi
4986   for lt_tmp_nm in $lt_nm_to_check; do
4987     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4988     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4989       IFS="$lt_save_ifs"
4990       test -z "$ac_dir" && ac_dir=.
4991       tmp_nm="$ac_dir/$lt_tmp_nm"
4992       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4993         # Check to see if the nm accepts a BSD-compat flag.
4994         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4995         #   nm: unknown option "B" ignored
4996         # Tru64's nm complains that /dev/null is an invalid object file
4997         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4998         */dev/null* | *'Invalid file or object type'*)
4999           lt_cv_path_NM="$tmp_nm -B"
5000           break
5001           ;;
5002         *)
5003           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5004           */dev/null*)
5005             lt_cv_path_NM="$tmp_nm -p"
5006             break
5007             ;;
5008           *)
5009             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5010             continue # so that we can try to find one that supports BSD flags
5011             ;;
5012           esac
5013           ;;
5014         esac
5015       fi
5016     done
5017     IFS="$lt_save_ifs"
5018   done
5019   : ${lt_cv_path_NM=no}
5020 fi
5021 fi
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5023 $as_echo "$lt_cv_path_NM" >&6; }
5024 if test "$lt_cv_path_NM" != "no"; then
5025   NM="$lt_cv_path_NM"
5026 else
5027   # Didn't find any BSD compatible name lister, look for dumpbin.
5028   if test -n "$ac_tool_prefix"; then
5029   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5030   do
5031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   if test -n "$DUMPBIN"; then
5039   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046     for ac_exec_ext in '' $ac_executable_extensions; do
5047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053   done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 DUMPBIN=$ac_cv_prog_DUMPBIN
5059 if test -n "$DUMPBIN"; then
5060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5061 $as_echo "$DUMPBIN" >&6; }
5062 else
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067
5068     test -n "$DUMPBIN" && break
5069   done
5070 fi
5071 if test -z "$DUMPBIN"; then
5072   ac_ct_DUMPBIN=$DUMPBIN
5073   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5074 do
5075   # Extract the first word of "$ac_prog", so it can be a program name with args.
5076 set dummy $ac_prog; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   if test -n "$ac_ct_DUMPBIN"; then
5083   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090     for ac_exec_ext in '' $ac_executable_extensions; do
5091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094     break 2
5095   fi
5096 done
5097   done
5098 IFS=$as_save_IFS
5099
5100 fi
5101 fi
5102 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5103 if test -n "$ac_ct_DUMPBIN"; then
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5105 $as_echo "$ac_ct_DUMPBIN" >&6; }
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111
5112   test -n "$ac_ct_DUMPBIN" && break
5113 done
5114
5115   if test "x$ac_ct_DUMPBIN" = x; then
5116     DUMPBIN=":"
5117   else
5118     case $cross_compiling:$ac_tool_warned in
5119 yes:)
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122 ac_tool_warned=yes ;;
5123 esac
5124     DUMPBIN=$ac_ct_DUMPBIN
5125   fi
5126 fi
5127
5128
5129   if test "$DUMPBIN" != ":"; then
5130     NM="$DUMPBIN"
5131   fi
5132 fi
5133 test -z "$NM" && NM=nm
5134
5135
5136
5137
5138
5139
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5141 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5142 if test "${lt_cv_nm_interface+set}" = set; then :
5143   $as_echo_n "(cached) " >&6
5144 else
5145   lt_cv_nm_interface="BSD nm"
5146   echo "int some_variable = 0;" > conftest.$ac_ext
5147   (eval echo "\"\$as_me:5147: $ac_compile\"" >&5)
5148   (eval "$ac_compile" 2>conftest.err)
5149   cat conftest.err >&5
5150   (eval echo "\"\$as_me:5150: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5151   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5152   cat conftest.err >&5
5153   (eval echo "\"\$as_me:5153: output\"" >&5)
5154   cat conftest.out >&5
5155   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5156     lt_cv_nm_interface="MS dumpbin"
5157   fi
5158   rm -f conftest*
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5161 $as_echo "$lt_cv_nm_interface" >&6; }
5162
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5164 $as_echo_n "checking whether ln -s works... " >&6; }
5165 LN_S=$as_ln_s
5166 if test "$LN_S" = "ln -s"; then
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168 $as_echo "yes" >&6; }
5169 else
5170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5171 $as_echo "no, using $LN_S" >&6; }
5172 fi
5173
5174 # find the maximum length of command line arguments
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5176 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5177 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5178   $as_echo_n "(cached) " >&6
5179 else
5180     i=0
5181   teststring="ABCD"
5182
5183   case $build_os in
5184   msdosdjgpp*)
5185     # On DJGPP, this test can blow up pretty badly due to problems in libc
5186     # (any single argument exceeding 2000 bytes causes a buffer overrun
5187     # during glob expansion).  Even if it were fixed, the result of this
5188     # check would be larger than it should be.
5189     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5190     ;;
5191
5192   gnu*)
5193     # Under GNU Hurd, this test is not required because there is
5194     # no limit to the length of command line arguments.
5195     # Libtool will interpret -1 as no limit whatsoever
5196     lt_cv_sys_max_cmd_len=-1;
5197     ;;
5198
5199   cygwin* | mingw* | cegcc*)
5200     # On Win9x/ME, this test blows up -- it succeeds, but takes
5201     # about 5 minutes as the teststring grows exponentially.
5202     # Worse, since 9x/ME are not pre-emptively multitasking,
5203     # you end up with a "frozen" computer, even though with patience
5204     # the test eventually succeeds (with a max line length of 256k).
5205     # Instead, let's just punt: use the minimum linelength reported by
5206     # all of the supported platforms: 8192 (on NT/2K/XP).
5207     lt_cv_sys_max_cmd_len=8192;
5208     ;;
5209
5210   amigaos*)
5211     # On AmigaOS with pdksh, this test takes hours, literally.
5212     # So we just punt and use a minimum line length of 8192.
5213     lt_cv_sys_max_cmd_len=8192;
5214     ;;
5215
5216   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5217     # This has been around since 386BSD, at least.  Likely further.
5218     if test -x /sbin/sysctl; then
5219       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5220     elif test -x /usr/sbin/sysctl; then
5221       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5222     else
5223       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5224     fi
5225     # And add a safety zone
5226     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5227     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5228     ;;
5229
5230   interix*)
5231     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5232     lt_cv_sys_max_cmd_len=196608
5233     ;;
5234
5235   osf*)
5236     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5237     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5238     # nice to cause kernel panics so lets avoid the loop below.
5239     # First set a reasonable default.
5240     lt_cv_sys_max_cmd_len=16384
5241     #
5242     if test -x /sbin/sysconfig; then
5243       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5244         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5245       esac
5246     fi
5247     ;;
5248   sco3.2v5*)
5249     lt_cv_sys_max_cmd_len=102400
5250     ;;
5251   sysv5* | sco5v6* | sysv4.2uw2*)
5252     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5253     if test -n "$kargmax"; then
5254       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5255     else
5256       lt_cv_sys_max_cmd_len=32768
5257     fi
5258     ;;
5259   *)
5260     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5261     if test -n "$lt_cv_sys_max_cmd_len"; then
5262       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5263       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5264     else
5265       # Make teststring a little bigger before we do anything with it.
5266       # a 1K string should be a reasonable start.
5267       for i in 1 2 3 4 5 6 7 8 ; do
5268         teststring=$teststring$teststring
5269       done
5270       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5271       # If test is not a shell built-in, we'll probably end up computing a
5272       # maximum length that is only half of the actual maximum length, but
5273       # we can't tell.
5274       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5275                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5276               test $i != 17 # 1/2 MB should be enough
5277       do
5278         i=`expr $i + 1`
5279         teststring=$teststring$teststring
5280       done
5281       # Only check the string length outside the loop.
5282       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5283       teststring=
5284       # Add a significant safety factor because C++ compilers can tack on
5285       # massive amounts of additional arguments before passing them to the
5286       # linker.  It appears as though 1/2 is a usable value.
5287       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5288     fi
5289     ;;
5290   esac
5291
5292 fi
5293
5294 if test -n $lt_cv_sys_max_cmd_len ; then
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5296 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5297 else
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5299 $as_echo "none" >&6; }
5300 fi
5301 max_cmd_len=$lt_cv_sys_max_cmd_len
5302
5303
5304
5305
5306
5307
5308 : ${CP="cp -f"}
5309 : ${MV="mv -f"}
5310 : ${RM="rm -f"}
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5313 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5314 # Try some XSI features
5315 xsi_shell=no
5316 ( _lt_dummy="a/b/c"
5317   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5318       = c,a/b,, \
5319     && eval 'test $(( 1 + 1 )) -eq 2 \
5320     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5321   && xsi_shell=yes
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5323 $as_echo "$xsi_shell" >&6; }
5324
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5327 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5328 lt_shell_append=no
5329 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5330     >/dev/null 2>&1 \
5331   && lt_shell_append=yes
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5333 $as_echo "$lt_shell_append" >&6; }
5334
5335
5336 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5337   lt_unset=unset
5338 else
5339   lt_unset=false
5340 fi
5341
5342
5343
5344
5345
5346 # test EBCDIC or ASCII
5347 case `echo X|tr X '\101'` in
5348  A) # ASCII based system
5349     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5350   lt_SP2NL='tr \040 \012'
5351   lt_NL2SP='tr \015\012 \040\040'
5352   ;;
5353  *) # EBCDIC based system
5354   lt_SP2NL='tr \100 \n'
5355   lt_NL2SP='tr \r\n \100\100'
5356   ;;
5357 esac
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5368 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5369 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5370   $as_echo_n "(cached) " >&6
5371 else
5372   lt_cv_ld_reload_flag='-r'
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5375 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5376 reload_flag=$lt_cv_ld_reload_flag
5377 case $reload_flag in
5378 "" | " "*) ;;
5379 *) reload_flag=" $reload_flag" ;;
5380 esac
5381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5382 case $host_os in
5383   darwin*)
5384     if test "$GCC" = yes; then
5385       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5386     else
5387       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5388     fi
5389     ;;
5390 esac
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 if test -n "$ac_tool_prefix"; then
5401   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5406   $as_echo_n "(cached) " >&6
5407 else
5408   if test -n "$OBJDUMP"; then
5409   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416     for ac_exec_ext in '' $ac_executable_extensions; do
5417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423   done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 OBJDUMP=$ac_cv_prog_OBJDUMP
5429 if test -n "$OBJDUMP"; then
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5431 $as_echo "$OBJDUMP" >&6; }
5432 else
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437
5438 fi
5439 if test -z "$ac_cv_prog_OBJDUMP"; then
5440   ac_ct_OBJDUMP=$OBJDUMP
5441   # Extract the first word of "objdump", so it can be a program name with args.
5442 set dummy objdump; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   if test -n "$ac_ct_OBJDUMP"; then
5449   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456     for ac_exec_ext in '' $ac_executable_extensions; do
5457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463   done
5464 IFS=$as_save_IFS
5465
5466 fi
5467 fi
5468 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5469 if test -n "$ac_ct_OBJDUMP"; then
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5471 $as_echo "$ac_ct_OBJDUMP" >&6; }
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477   if test "x$ac_ct_OBJDUMP" = x; then
5478     OBJDUMP="false"
5479   else
5480     case $cross_compiling:$ac_tool_warned in
5481 yes:)
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484 ac_tool_warned=yes ;;
5485 esac
5486     OBJDUMP=$ac_ct_OBJDUMP
5487   fi
5488 else
5489   OBJDUMP="$ac_cv_prog_OBJDUMP"
5490 fi
5491
5492 test -z "$OBJDUMP" && OBJDUMP=objdump
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5503 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5504 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5505   $as_echo_n "(cached) " >&6
5506 else
5507   lt_cv_file_magic_cmd='$MAGIC_CMD'
5508 lt_cv_file_magic_test_file=
5509 lt_cv_deplibs_check_method='unknown'
5510 # Need to set the preceding variable on all platforms that support
5511 # interlibrary dependencies.
5512 # 'none' -- dependencies not supported.
5513 # `unknown' -- same as none, but documents that we really don't know.
5514 # 'pass_all' -- all dependencies passed with no checks.
5515 # 'test_compile' -- check by making test program.
5516 # 'file_magic [[regex]]' -- check by looking for files in library path
5517 # which responds to the $file_magic_cmd with a given extended regex.
5518 # If you have `file' or equivalent on your system and you're not sure
5519 # whether `pass_all' will *always* work, you probably want this one.
5520
5521 case $host_os in
5522 aix[4-9]*)
5523   lt_cv_deplibs_check_method=pass_all
5524   ;;
5525
5526 beos*)
5527   lt_cv_deplibs_check_method=pass_all
5528   ;;
5529
5530 bsdi[45]*)
5531   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5532   lt_cv_file_magic_cmd='/usr/bin/file -L'
5533   lt_cv_file_magic_test_file=/shlib/libc.so
5534   ;;
5535
5536 cygwin*)
5537   # func_win32_libid is a shell function defined in ltmain.sh
5538   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5539   lt_cv_file_magic_cmd='func_win32_libid'
5540   ;;
5541
5542 mingw* | pw32*)
5543   # Base MSYS/MinGW do not provide the 'file' command needed by
5544   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5545   # unless we find 'file', for example because we are cross-compiling.
5546   if ( file / ) >/dev/null 2>&1; then
5547     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5548     lt_cv_file_magic_cmd='func_win32_libid'
5549   else
5550     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5551     lt_cv_file_magic_cmd='$OBJDUMP -f'
5552   fi
5553   ;;
5554
5555 cegcc)
5556   # use the weaker test based on 'objdump'. See mingw*.
5557   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5558   lt_cv_file_magic_cmd='$OBJDUMP -f'
5559   ;;
5560
5561 darwin* | rhapsody*)
5562   lt_cv_deplibs_check_method=pass_all
5563   ;;
5564
5565 freebsd* | dragonfly*)
5566   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5567     case $host_cpu in
5568     i*86 )
5569       # Not sure whether the presence of OpenBSD here was a mistake.
5570       # Let's accept both of them until this is cleared up.
5571       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5572       lt_cv_file_magic_cmd=/usr/bin/file
5573       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5574       ;;
5575     esac
5576   else
5577     lt_cv_deplibs_check_method=pass_all
5578   fi
5579   ;;
5580
5581 gnu*)
5582   lt_cv_deplibs_check_method=pass_all
5583   ;;
5584
5585 hpux10.20* | hpux11*)
5586   lt_cv_file_magic_cmd=/usr/bin/file
5587   case $host_cpu in
5588   ia64*)
5589     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5590     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5591     ;;
5592   hppa*64*)
5593     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]'
5594     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5595     ;;
5596   *)
5597     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5598     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5599     ;;
5600   esac
5601   ;;
5602
5603 interix[3-9]*)
5604   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5605   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5606   ;;
5607
5608 irix5* | irix6* | nonstopux*)
5609   case $LD in
5610   *-32|*"-32 ") libmagic=32-bit;;
5611   *-n32|*"-n32 ") libmagic=N32;;
5612   *-64|*"-64 ") libmagic=64-bit;;
5613   *) libmagic=never-match;;
5614   esac
5615   lt_cv_deplibs_check_method=pass_all
5616   ;;
5617
5618 # This must be Linux ELF.
5619 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5620   lt_cv_deplibs_check_method=pass_all
5621   ;;
5622
5623 netbsd*)
5624   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5625     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5626   else
5627     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5628   fi
5629   ;;
5630
5631 newos6*)
5632   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5633   lt_cv_file_magic_cmd=/usr/bin/file
5634   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5635   ;;
5636
5637 *nto* | *qnx*)
5638   lt_cv_deplibs_check_method=pass_all
5639   ;;
5640
5641 openbsd*)
5642   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5643     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5644   else
5645     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5646   fi
5647   ;;
5648
5649 osf3* | osf4* | osf5*)
5650   lt_cv_deplibs_check_method=pass_all
5651   ;;
5652
5653 rdos*)
5654   lt_cv_deplibs_check_method=pass_all
5655   ;;
5656
5657 solaris*)
5658   lt_cv_deplibs_check_method=pass_all
5659   ;;
5660
5661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5662   lt_cv_deplibs_check_method=pass_all
5663   ;;
5664
5665 sysv4 | sysv4.3*)
5666   case $host_vendor in
5667   motorola)
5668     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]'
5669     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5670     ;;
5671   ncr)
5672     lt_cv_deplibs_check_method=pass_all
5673     ;;
5674   sequent)
5675     lt_cv_file_magic_cmd='/bin/file'
5676     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5677     ;;
5678   sni)
5679     lt_cv_file_magic_cmd='/bin/file'
5680     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5681     lt_cv_file_magic_test_file=/lib/libc.so
5682     ;;
5683   siemens)
5684     lt_cv_deplibs_check_method=pass_all
5685     ;;
5686   pc)
5687     lt_cv_deplibs_check_method=pass_all
5688     ;;
5689   esac
5690   ;;
5691
5692 tpf*)
5693   lt_cv_deplibs_check_method=pass_all
5694   ;;
5695 esac
5696
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5699 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5700 file_magic_cmd=$lt_cv_file_magic_cmd
5701 deplibs_check_method=$lt_cv_deplibs_check_method
5702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 if test -n "$ac_tool_prefix"; then
5716   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}ar; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if test "${ac_cv_prog_AR+set}" = set; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   if test -n "$AR"; then
5724   ac_cv_prog_AR="$AR" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     for ac_exec_ext in '' $ac_executable_extensions; do
5732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733     ac_cv_prog_AR="${ac_tool_prefix}ar"
5734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735     break 2
5736   fi
5737 done
5738   done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 AR=$ac_cv_prog_AR
5744 if test -n "$AR"; then
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5746 $as_echo "$AR" >&6; }
5747 else
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751
5752
5753 fi
5754 if test -z "$ac_cv_prog_AR"; then
5755   ac_ct_AR=$AR
5756   # Extract the first word of "ar", so it can be a program name with args.
5757 set dummy ar; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5761   $as_echo_n "(cached) " >&6
5762 else
5763   if test -n "$ac_ct_AR"; then
5764   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771     for ac_exec_ext in '' $ac_executable_extensions; do
5772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773     ac_cv_prog_ac_ct_AR="ar"
5774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778   done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5784 if test -n "$ac_ct_AR"; then
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5786 $as_echo "$ac_ct_AR" >&6; }
5787 else
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792   if test "x$ac_ct_AR" = x; then
5793     AR="false"
5794   else
5795     case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801     AR=$ac_ct_AR
5802   fi
5803 else
5804   AR="$ac_cv_prog_AR"
5805 fi
5806
5807 test -z "$AR" && AR=ar
5808 test -z "$AR_FLAGS" && AR_FLAGS=cru
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 if test -n "$ac_tool_prefix"; then
5821   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5822 set dummy ${ac_tool_prefix}strip; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if test "${ac_cv_prog_STRIP+set}" = set; then :
5826   $as_echo_n "(cached) " >&6
5827 else
5828   if test -n "$STRIP"; then
5829   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834   IFS=$as_save_IFS
5835   test -z "$as_dir" && as_dir=.
5836     for ac_exec_ext in '' $ac_executable_extensions; do
5837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5838     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840     break 2
5841   fi
5842 done
5843   done
5844 IFS=$as_save_IFS
5845
5846 fi
5847 fi
5848 STRIP=$ac_cv_prog_STRIP
5849 if test -n "$STRIP"; then
5850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5851 $as_echo "$STRIP" >&6; }
5852 else
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5855 fi
5856
5857
5858 fi
5859 if test -z "$ac_cv_prog_STRIP"; then
5860   ac_ct_STRIP=$STRIP
5861   # Extract the first word of "strip", so it can be a program name with args.
5862 set dummy strip; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5866   $as_echo_n "(cached) " >&6
5867 else
5868   if test -n "$ac_ct_STRIP"; then
5869   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876     for ac_exec_ext in '' $ac_executable_extensions; do
5877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878     ac_cv_prog_ac_ct_STRIP="strip"
5879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883   done
5884 IFS=$as_save_IFS
5885
5886 fi
5887 fi
5888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5889 if test -n "$ac_ct_STRIP"; then
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5891 $as_echo "$ac_ct_STRIP" >&6; }
5892 else
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896
5897   if test "x$ac_ct_STRIP" = x; then
5898     STRIP=":"
5899   else
5900     case $cross_compiling:$ac_tool_warned in
5901 yes:)
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904 ac_tool_warned=yes ;;
5905 esac
5906     STRIP=$ac_ct_STRIP
5907   fi
5908 else
5909   STRIP="$ac_cv_prog_STRIP"
5910 fi
5911
5912 test -z "$STRIP" && STRIP=:
5913
5914
5915
5916
5917
5918
5919 if test -n "$ac_tool_prefix"; then
5920   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5925   $as_echo_n "(cached) " >&6
5926 else
5927   if test -n "$RANLIB"; then
5928   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935     for ac_exec_ext in '' $ac_executable_extensions; do
5936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939     break 2
5940   fi
5941 done
5942   done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 RANLIB=$ac_cv_prog_RANLIB
5948 if test -n "$RANLIB"; then
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5950 $as_echo "$RANLIB" >&6; }
5951 else
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956
5957 fi
5958 if test -z "$ac_cv_prog_RANLIB"; then
5959   ac_ct_RANLIB=$RANLIB
5960   # Extract the first word of "ranlib", so it can be a program name with args.
5961 set dummy ranlib; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if test -n "$ac_ct_RANLIB"; then
5968   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973   IFS=$as_save_IFS
5974   test -z "$as_dir" && as_dir=.
5975     for ac_exec_ext in '' $ac_executable_extensions; do
5976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977     ac_cv_prog_ac_ct_RANLIB="ranlib"
5978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979     break 2
5980   fi
5981 done
5982   done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5988 if test -n "$ac_ct_RANLIB"; then
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5990 $as_echo "$ac_ct_RANLIB" >&6; }
5991 else
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996   if test "x$ac_ct_RANLIB" = x; then
5997     RANLIB=":"
5998   else
5999     case $cross_compiling:$ac_tool_warned in
6000 yes:)
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003 ac_tool_warned=yes ;;
6004 esac
6005     RANLIB=$ac_ct_RANLIB
6006   fi
6007 else
6008   RANLIB="$ac_cv_prog_RANLIB"
6009 fi
6010
6011 test -z "$RANLIB" && RANLIB=:
6012
6013
6014
6015
6016
6017
6018 # Determine commands to create old-style static archives.
6019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6020 old_postinstall_cmds='chmod 644 $oldlib'
6021 old_postuninstall_cmds=
6022
6023 if test -n "$RANLIB"; then
6024   case $host_os in
6025   openbsd*)
6026     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6027     ;;
6028   *)
6029     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6030     ;;
6031   esac
6032   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6033 fi
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068 # If no C compiler was specified, use CC.
6069 LTCC=${LTCC-"$CC"}
6070
6071 # If no C compiler flags were specified, use CFLAGS.
6072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6073
6074 # Allow CC to be a program name with arguments.
6075 compiler=$CC
6076
6077
6078 # Check for command to grab the raw symbol name followed by C symbol from nm.
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6080 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6081 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084
6085 # These are sane defaults that work on at least a few old systems.
6086 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6087
6088 # Character class describing NM global symbol codes.
6089 symcode='[BCDEGRST]'
6090
6091 # Regexp to match symbols that can be accessed directly from C.
6092 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6093
6094 # Define system-specific variables.
6095 case $host_os in
6096 aix*)
6097   symcode='[BCDT]'
6098   ;;
6099 cygwin* | mingw* | pw32* | cegcc*)
6100   symcode='[ABCDGISTW]'
6101   ;;
6102 hpux*)
6103   if test "$host_cpu" = ia64; then
6104     symcode='[ABCDEGRST]'
6105   fi
6106   ;;
6107 irix* | nonstopux*)
6108   symcode='[BCDEGRST]'
6109   ;;
6110 osf*)
6111   symcode='[BCDEGQRST]'
6112   ;;
6113 solaris*)
6114   symcode='[BDRT]'
6115   ;;
6116 sco3.2v5*)
6117   symcode='[DT]'
6118   ;;
6119 sysv4.2uw2*)
6120   symcode='[DT]'
6121   ;;
6122 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6123   symcode='[ABDT]'
6124   ;;
6125 sysv4)
6126   symcode='[DFNSTU]'
6127   ;;
6128 esac
6129
6130 # If we're using GNU nm, then use its standard symbol codes.
6131 case `$NM -V 2>&1` in
6132 *GNU* | *'with BFD'*)
6133   symcode='[ABCDGIRSTW]' ;;
6134 esac
6135
6136 # Transform an extracted symbol line into a proper C declaration.
6137 # Some systems (esp. on ia64) link data and code symbols differently,
6138 # so use this general approach.
6139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6140
6141 # Transform an extracted symbol line into symbol name and symbol address
6142 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6143 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6144
6145 # Handle CRLF in mingw tool chain
6146 opt_cr=
6147 case $build_os in
6148 mingw*)
6149   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6150   ;;
6151 esac
6152
6153 # Try without a prefix underscore, then with it.
6154 for ac_symprfx in "" "_"; do
6155
6156   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6157   symxfrm="\\1 $ac_symprfx\\2 \\2"
6158
6159   # Write the raw and C identifiers.
6160   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6161     # Fake it for dumpbin and say T for any non-static function
6162     # and D for any global variable.
6163     # Also find C++ and __fastcall symbols from MSVC++,
6164     # which start with @ or ?.
6165     lt_cv_sys_global_symbol_pipe="$AWK '"\
6166 "     {last_section=section; section=\$ 3};"\
6167 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6168 "     \$ 0!~/External *\|/{next};"\
6169 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6170 "     {if(hide[section]) next};"\
6171 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6172 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6173 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6174 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6175 "     ' prfx=^$ac_symprfx"
6176   else
6177     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6178   fi
6179
6180   # Check to see that the pipe works correctly.
6181   pipe_works=no
6182
6183   rm -f conftest*
6184   cat > conftest.$ac_ext <<_LT_EOF
6185 #ifdef __cplusplus
6186 extern "C" {
6187 #endif
6188 char nm_test_var;
6189 void nm_test_func(void);
6190 void nm_test_func(void){}
6191 #ifdef __cplusplus
6192 }
6193 #endif
6194 int main(){nm_test_var='a';nm_test_func();return(0);}
6195 _LT_EOF
6196
6197   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6198   (eval $ac_compile) 2>&5
6199   ac_status=$?
6200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201   test $ac_status = 0; }; then
6202     # Now try to grab the symbols.
6203     nlist=conftest.nm
6204     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6205   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6206   ac_status=$?
6207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208   test $ac_status = 0; } && test -s "$nlist"; then
6209       # Try sorting and uniquifying the output.
6210       if sort "$nlist" | uniq > "$nlist"T; then
6211         mv -f "$nlist"T "$nlist"
6212       else
6213         rm -f "$nlist"T
6214       fi
6215
6216       # Make sure that we snagged all the symbols we need.
6217       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6218         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6219           cat <<_LT_EOF > conftest.$ac_ext
6220 #ifdef __cplusplus
6221 extern "C" {
6222 #endif
6223
6224 _LT_EOF
6225           # Now generate the symbol file.
6226           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6227
6228           cat <<_LT_EOF >> conftest.$ac_ext
6229
6230 /* The mapping between symbol names and symbols.  */
6231 const struct {
6232   const char *name;
6233   void       *address;
6234 }
6235 lt__PROGRAM__LTX_preloaded_symbols[] =
6236 {
6237   { "@PROGRAM@", (void *) 0 },
6238 _LT_EOF
6239           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6240           cat <<\_LT_EOF >> conftest.$ac_ext
6241   {0, (void *) 0}
6242 };
6243
6244 /* This works around a problem in FreeBSD linker */
6245 #ifdef FREEBSD_WORKAROUND
6246 static const void *lt_preloaded_setup() {
6247   return lt__PROGRAM__LTX_preloaded_symbols;
6248 }
6249 #endif
6250
6251 #ifdef __cplusplus
6252 }
6253 #endif
6254 _LT_EOF
6255           # Now try linking the two files.
6256           mv conftest.$ac_objext conftstm.$ac_objext
6257           lt_save_LIBS="$LIBS"
6258           lt_save_CFLAGS="$CFLAGS"
6259           LIBS="conftstm.$ac_objext"
6260           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6261           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6262   (eval $ac_link) 2>&5
6263   ac_status=$?
6264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6266             pipe_works=yes
6267           fi
6268           LIBS="$lt_save_LIBS"
6269           CFLAGS="$lt_save_CFLAGS"
6270         else
6271           echo "cannot find nm_test_func in $nlist" >&5
6272         fi
6273       else
6274         echo "cannot find nm_test_var in $nlist" >&5
6275       fi
6276     else
6277       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6278     fi
6279   else
6280     echo "$progname: failed program was:" >&5
6281     cat conftest.$ac_ext >&5
6282   fi
6283   rm -rf conftest* conftst*
6284
6285   # Do not use the global_symbol_pipe unless it works.
6286   if test "$pipe_works" = yes; then
6287     break
6288   else
6289     lt_cv_sys_global_symbol_pipe=
6290   fi
6291 done
6292
6293 fi
6294
6295 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6296   lt_cv_sys_global_symbol_to_cdecl=
6297 fi
6298 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6300 $as_echo "failed" >&6; }
6301 else
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6303 $as_echo "ok" >&6; }
6304 fi
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327 # Check whether --enable-libtool-lock was given.
6328 if test "${enable_libtool_lock+set}" = set; then :
6329   enableval=$enable_libtool_lock;
6330 fi
6331
6332 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6333
6334 # Some flags need to be propagated to the compiler or linker for good
6335 # libtool support.
6336 case $host in
6337 ia64-*-hpux*)
6338   # Find out which ABI we are using.
6339   echo 'int i;' > conftest.$ac_ext
6340   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6341   (eval $ac_compile) 2>&5
6342   ac_status=$?
6343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344   test $ac_status = 0; }; then
6345     case `/usr/bin/file conftest.$ac_objext` in
6346       *ELF-32*)
6347         HPUX_IA64_MODE="32"
6348         ;;
6349       *ELF-64*)
6350         HPUX_IA64_MODE="64"
6351         ;;
6352     esac
6353   fi
6354   rm -rf conftest*
6355   ;;
6356 *-*-irix6*)
6357   # Find out which ABI we are using.
6358   echo '#line 6358 "configure"' > conftest.$ac_ext
6359   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6360   (eval $ac_compile) 2>&5
6361   ac_status=$?
6362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6363   test $ac_status = 0; }; then
6364     if test "$lt_cv_prog_gnu_ld" = yes; then
6365       case `/usr/bin/file conftest.$ac_objext` in
6366         *32-bit*)
6367           LD="${LD-ld} -melf32bsmip"
6368           ;;
6369         *N32*)
6370           LD="${LD-ld} -melf32bmipn32"
6371           ;;
6372         *64-bit*)
6373           LD="${LD-ld} -melf64bmip"
6374         ;;
6375       esac
6376     else
6377       case `/usr/bin/file conftest.$ac_objext` in
6378         *32-bit*)
6379           LD="${LD-ld} -32"
6380           ;;
6381         *N32*)
6382           LD="${LD-ld} -n32"
6383           ;;
6384         *64-bit*)
6385           LD="${LD-ld} -64"
6386           ;;
6387       esac
6388     fi
6389   fi
6390   rm -rf conftest*
6391   ;;
6392
6393 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6394 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6395   # Find out which ABI we are using.
6396   echo 'int i;' > conftest.$ac_ext
6397   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6398   (eval $ac_compile) 2>&5
6399   ac_status=$?
6400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401   test $ac_status = 0; }; then
6402     case `/usr/bin/file conftest.o` in
6403       *32-bit*)
6404         case $host in
6405           x86_64-*kfreebsd*-gnu)
6406             LD="${LD-ld} -m elf_i386_fbsd"
6407             ;;
6408           x86_64-*linux*)
6409             LD="${LD-ld} -m elf_i386"
6410             ;;
6411           ppc64-*linux*|powerpc64-*linux*)
6412             LD="${LD-ld} -m elf32ppclinux"
6413             ;;
6414           s390x-*linux*)
6415             LD="${LD-ld} -m elf_s390"
6416             ;;
6417           sparc64-*linux*)
6418             LD="${LD-ld} -m elf32_sparc"
6419             ;;
6420         esac
6421         ;;
6422       *64-bit*)
6423         case $host in
6424           x86_64-*kfreebsd*-gnu)
6425             LD="${LD-ld} -m elf_x86_64_fbsd"
6426             ;;
6427           x86_64-*linux*)
6428             LD="${LD-ld} -m elf_x86_64"
6429             ;;
6430           ppc*-*linux*|powerpc*-*linux*)
6431             LD="${LD-ld} -m elf64ppc"
6432             ;;
6433           s390*-*linux*|s390*-*tpf*)
6434             LD="${LD-ld} -m elf64_s390"
6435             ;;
6436           sparc*-*linux*)
6437             LD="${LD-ld} -m elf64_sparc"
6438             ;;
6439         esac
6440         ;;
6441     esac
6442   fi
6443   rm -rf conftest*
6444   ;;
6445
6446 *-*-sco3.2v5*)
6447   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6448   SAVE_CFLAGS="$CFLAGS"
6449   CFLAGS="$CFLAGS -belf"
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6451 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6452 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   ac_ext=c
6456 ac_cpp='$CPP $CPPFLAGS'
6457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6460
6461      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h.  */
6463
6464 int
6465 main ()
6466 {
6467
6468   ;
6469   return 0;
6470 }
6471 _ACEOF
6472 if ac_fn_c_try_link "$LINENO"; then :
6473   lt_cv_cc_needs_belf=yes
6474 else
6475   lt_cv_cc_needs_belf=no
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext \
6478     conftest$ac_exeext conftest.$ac_ext
6479      ac_ext=c
6480 ac_cpp='$CPP $CPPFLAGS'
6481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6484
6485 fi
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6487 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6488   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6489     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6490     CFLAGS="$SAVE_CFLAGS"
6491   fi
6492   ;;
6493 sparc*-*solaris*)
6494   # Find out which ABI we are using.
6495   echo 'int i;' > conftest.$ac_ext
6496   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6497   (eval $ac_compile) 2>&5
6498   ac_status=$?
6499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500   test $ac_status = 0; }; then
6501     case `/usr/bin/file conftest.o` in
6502     *64-bit*)
6503       case $lt_cv_prog_gnu_ld in
6504       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6505       *)
6506         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6507           LD="${LD-ld} -64"
6508         fi
6509         ;;
6510       esac
6511       ;;
6512     esac
6513   fi
6514   rm -rf conftest*
6515   ;;
6516 esac
6517
6518 need_locks="$enable_libtool_lock"
6519
6520
6521   case $host_os in
6522     rhapsody* | darwin*)
6523     if test -n "$ac_tool_prefix"; then
6524   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6529   $as_echo_n "(cached) " >&6
6530 else
6531   if test -n "$DSYMUTIL"; then
6532   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537   IFS=$as_save_IFS
6538   test -z "$as_dir" && as_dir=.
6539     for ac_exec_ext in '' $ac_executable_extensions; do
6540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543     break 2
6544   fi
6545 done
6546   done
6547 IFS=$as_save_IFS
6548
6549 fi
6550 fi
6551 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6552 if test -n "$DSYMUTIL"; then
6553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6554 $as_echo "$DSYMUTIL" >&6; }
6555 else
6556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558 fi
6559
6560
6561 fi
6562 if test -z "$ac_cv_prog_DSYMUTIL"; then
6563   ac_ct_DSYMUTIL=$DSYMUTIL
6564   # Extract the first word of "dsymutil", so it can be a program name with args.
6565 set dummy dsymutil; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   if test -n "$ac_ct_DSYMUTIL"; then
6572   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579     for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586   done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6592 if test -n "$ac_ct_DSYMUTIL"; then
6593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6594 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6595 else
6596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600   if test "x$ac_ct_DSYMUTIL" = x; then
6601     DSYMUTIL=":"
6602   else
6603     case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607 ac_tool_warned=yes ;;
6608 esac
6609     DSYMUTIL=$ac_ct_DSYMUTIL
6610   fi
6611 else
6612   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6613 fi
6614
6615     if test -n "$ac_tool_prefix"; then
6616   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6617 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6621   $as_echo_n "(cached) " >&6
6622 else
6623   if test -n "$NMEDIT"; then
6624   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631     for ac_exec_ext in '' $ac_executable_extensions; do
6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638   done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 NMEDIT=$ac_cv_prog_NMEDIT
6644 if test -n "$NMEDIT"; then
6645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6646 $as_echo "$NMEDIT" >&6; }
6647 else
6648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651
6652
6653 fi
6654 if test -z "$ac_cv_prog_NMEDIT"; then
6655   ac_ct_NMEDIT=$NMEDIT
6656   # Extract the first word of "nmedit", so it can be a program name with args.
6657 set dummy nmedit; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663   if test -n "$ac_ct_NMEDIT"; then
6664   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6665 else
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669   IFS=$as_save_IFS
6670   test -z "$as_dir" && as_dir=.
6671     for ac_exec_ext in '' $ac_executable_extensions; do
6672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675     break 2
6676   fi
6677 done
6678   done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6684 if test -n "$ac_ct_NMEDIT"; then
6685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6686 $as_echo "$ac_ct_NMEDIT" >&6; }
6687 else
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6690 fi
6691
6692   if test "x$ac_ct_NMEDIT" = x; then
6693     NMEDIT=":"
6694   else
6695     case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699 ac_tool_warned=yes ;;
6700 esac
6701     NMEDIT=$ac_ct_NMEDIT
6702   fi
6703 else
6704   NMEDIT="$ac_cv_prog_NMEDIT"
6705 fi
6706
6707     if test -n "$ac_tool_prefix"; then
6708   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if test "${ac_cv_prog_LIPO+set}" = set; then :
6713   $as_echo_n "(cached) " >&6
6714 else
6715   if test -n "$LIPO"; then
6716   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723     for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730   done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 LIPO=$ac_cv_prog_LIPO
6736 if test -n "$LIPO"; then
6737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6738 $as_echo "$LIPO" >&6; }
6739 else
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 fi
6746 if test -z "$ac_cv_prog_LIPO"; then
6747   ac_ct_LIPO=$LIPO
6748   # Extract the first word of "lipo", so it can be a program name with args.
6749 set dummy lipo; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751 $as_echo_n "checking for $ac_word... " >&6; }
6752 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6753   $as_echo_n "(cached) " >&6
6754 else
6755   if test -n "$ac_ct_LIPO"; then
6756   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763     for ac_exec_ext in '' $ac_executable_extensions; do
6764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765     ac_cv_prog_ac_ct_LIPO="lipo"
6766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770   done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6776 if test -n "$ac_ct_LIPO"; then
6777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6778 $as_echo "$ac_ct_LIPO" >&6; }
6779 else
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784   if test "x$ac_ct_LIPO" = x; then
6785     LIPO=":"
6786   else
6787     case $cross_compiling:$ac_tool_warned in
6788 yes:)
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791 ac_tool_warned=yes ;;
6792 esac
6793     LIPO=$ac_ct_LIPO
6794   fi
6795 else
6796   LIPO="$ac_cv_prog_LIPO"
6797 fi
6798
6799     if test -n "$ac_tool_prefix"; then
6800   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}otool; ac_word=$2
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6805   $as_echo_n "(cached) " >&6
6806 else
6807   if test -n "$OTOOL"; then
6808   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815     for ac_exec_ext in '' $ac_executable_extensions; do
6816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822   done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 OTOOL=$ac_cv_prog_OTOOL
6828 if test -n "$OTOOL"; then
6829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6830 $as_echo "$OTOOL" >&6; }
6831 else
6832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836
6837 fi
6838 if test -z "$ac_cv_prog_OTOOL"; then
6839   ac_ct_OTOOL=$OTOOL
6840   # Extract the first word of "otool", so it can be a program name with args.
6841 set dummy otool; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6845   $as_echo_n "(cached) " >&6
6846 else
6847   if test -n "$ac_ct_OTOOL"; then
6848   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853   IFS=$as_save_IFS
6854   test -z "$as_dir" && as_dir=.
6855     for ac_exec_ext in '' $ac_executable_extensions; do
6856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857     ac_cv_prog_ac_ct_OTOOL="otool"
6858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859     break 2
6860   fi
6861 done
6862   done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6868 if test -n "$ac_ct_OTOOL"; then
6869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6870 $as_echo "$ac_ct_OTOOL" >&6; }
6871 else
6872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876   if test "x$ac_ct_OTOOL" = x; then
6877     OTOOL=":"
6878   else
6879     case $cross_compiling:$ac_tool_warned in
6880 yes:)
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883 ac_tool_warned=yes ;;
6884 esac
6885     OTOOL=$ac_ct_OTOOL
6886   fi
6887 else
6888   OTOOL="$ac_cv_prog_OTOOL"
6889 fi
6890
6891     if test -n "$ac_tool_prefix"; then
6892   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899   if test -n "$OTOOL64"; then
6900   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907     for ac_exec_ext in '' $ac_executable_extensions; do
6908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914   done
6915 IFS=$as_save_IFS
6916
6917 fi
6918 fi
6919 OTOOL64=$ac_cv_prog_OTOOL64
6920 if test -n "$OTOOL64"; then
6921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6922 $as_echo "$OTOOL64" >&6; }
6923 else
6924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6926 fi
6927
6928
6929 fi
6930 if test -z "$ac_cv_prog_OTOOL64"; then
6931   ac_ct_OTOOL64=$OTOOL64
6932   # Extract the first word of "otool64", so it can be a program name with args.
6933 set dummy otool64; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   if test -n "$ac_ct_OTOOL64"; then
6940   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945   IFS=$as_save_IFS
6946   test -z "$as_dir" && as_dir=.
6947     for ac_exec_ext in '' $ac_executable_extensions; do
6948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949     ac_cv_prog_ac_ct_OTOOL64="otool64"
6950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952   fi
6953 done
6954   done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6960 if test -n "$ac_ct_OTOOL64"; then
6961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6962 $as_echo "$ac_ct_OTOOL64" >&6; }
6963 else
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968   if test "x$ac_ct_OTOOL64" = x; then
6969     OTOOL64=":"
6970   else
6971     case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977     OTOOL64=$ac_ct_OTOOL64
6978   fi
6979 else
6980   OTOOL64="$ac_cv_prog_OTOOL64"
6981 fi
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7010 $as_echo_n "checking for -single_module linker flag... " >&6; }
7011 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   lt_cv_apple_cc_single_mod=no
7015       if test -z "${LT_MULTI_MODULE}"; then
7016         # By default we will add the -single_module flag. You can override
7017         # by either setting the environment variable LT_MULTI_MODULE
7018         # non-empty at configure time, or by adding -multi_module to the
7019         # link flags.
7020         rm -rf libconftest.dylib*
7021         echo "int foo(void){return 1;}" > conftest.c
7022         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7023 -dynamiclib -Wl,-single_module conftest.c" >&5
7024         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7025           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7026         _lt_result=$?
7027         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7028           lt_cv_apple_cc_single_mod=yes
7029         else
7030           cat conftest.err >&5
7031         fi
7032         rm -rf libconftest.dylib*
7033         rm -f conftest.*
7034       fi
7035 fi
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7037 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7039 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7040 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043   lt_cv_ld_exported_symbols_list=no
7044       save_LDFLAGS=$LDFLAGS
7045       echo "_main" > conftest.sym
7046       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7047       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h.  */
7049
7050 int
7051 main ()
7052 {
7053
7054   ;
7055   return 0;
7056 }
7057 _ACEOF
7058 if ac_fn_c_try_link "$LINENO"; then :
7059   lt_cv_ld_exported_symbols_list=yes
7060 else
7061   lt_cv_ld_exported_symbols_list=no
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext \
7064     conftest$ac_exeext conftest.$ac_ext
7065         LDFLAGS="$save_LDFLAGS"
7066
7067 fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7069 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7070     case $host_os in
7071     rhapsody* | darwin1.[012])
7072       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7073     darwin1.*)
7074       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7075     darwin*) # darwin 5.x on
7076       # if running on 10.5 or later, the deployment target defaults
7077       # to the OS version, if on x86, and 10.4, the deployment
7078       # target defaults to 10.4. Don't you love it?
7079       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7080         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7081           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7082         10.[012]*)
7083           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7084         10.*)
7085           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7086       esac
7087     ;;
7088   esac
7089     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7090       _lt_dar_single_mod='$single_module'
7091     fi
7092     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7093       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7094     else
7095       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7096     fi
7097     if test "$DSYMUTIL" != ":"; then
7098       _lt_dsymutil='~$DSYMUTIL $lib || :'
7099     else
7100       _lt_dsymutil=
7101     fi
7102     ;;
7103   esac
7104
7105 for ac_header in dlfcn.h
7106 do :
7107   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7108 "
7109 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7110   cat >>confdefs.h <<_ACEOF
7111 #define HAVE_DLFCN_H 1
7112 _ACEOF
7113
7114 fi
7115
7116 done
7117
7118
7119
7120 # Set options
7121
7122
7123
7124
7125   enable_win32_dll=no
7126
7127
7128             # Check whether --enable-shared was given.
7129 if test "${enable_shared+set}" = set; then :
7130   enableval=$enable_shared; p=${PACKAGE-default}
7131     case $enableval in
7132     yes) enable_shared=yes ;;
7133     no) enable_shared=no ;;
7134     *)
7135       enable_shared=no
7136       # Look at the argument we got.  We use all the common list separators.
7137       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7138       for pkg in $enableval; do
7139         IFS="$lt_save_ifs"
7140         if test "X$pkg" = "X$p"; then
7141           enable_shared=yes
7142         fi
7143       done
7144       IFS="$lt_save_ifs"
7145       ;;
7146     esac
7147 else
7148   enable_shared=yes
7149 fi
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159   # Check whether --enable-static was given.
7160 if test "${enable_static+set}" = set; then :
7161   enableval=$enable_static; p=${PACKAGE-default}
7162     case $enableval in
7163     yes) enable_static=yes ;;
7164     no) enable_static=no ;;
7165     *)
7166      enable_static=no
7167       # Look at the argument we got.  We use all the common list separators.
7168       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7169       for pkg in $enableval; do
7170         IFS="$lt_save_ifs"
7171         if test "X$pkg" = "X$p"; then
7172           enable_static=yes
7173         fi
7174       done
7175       IFS="$lt_save_ifs"
7176       ;;
7177     esac
7178 else
7179   enable_static=yes
7180 fi
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 # Check whether --with-pic was given.
7192 if test "${with_pic+set}" = set; then :
7193   withval=$with_pic; pic_mode="$withval"
7194 else
7195   pic_mode=default
7196 fi
7197
7198
7199 test -z "$pic_mode" && pic_mode=default
7200
7201
7202
7203
7204
7205
7206
7207   # Check whether --enable-fast-install was given.
7208 if test "${enable_fast_install+set}" = set; then :
7209   enableval=$enable_fast_install; p=${PACKAGE-default}
7210     case $enableval in
7211     yes) enable_fast_install=yes ;;
7212     no) enable_fast_install=no ;;
7213     *)
7214       enable_fast_install=no
7215       # Look at the argument we got.  We use all the common list separators.
7216       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7217       for pkg in $enableval; do
7218         IFS="$lt_save_ifs"
7219         if test "X$pkg" = "X$p"; then
7220           enable_fast_install=yes
7221         fi
7222       done
7223       IFS="$lt_save_ifs"
7224       ;;
7225     esac
7226 else
7227   enable_fast_install=yes
7228 fi
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240 # This can be used to rebuild libtool when needed
7241 LIBTOOL_DEPS="$ltmain"
7242
7243 # Always use our own libtool.
7244 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270 test -z "$LN_S" && LN_S="ln -s"
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285 if test -n "${ZSH_VERSION+set}" ; then
7286    setopt NO_GLOB_SUBST
7287 fi
7288
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7290 $as_echo_n "checking for objdir... " >&6; }
7291 if test "${lt_cv_objdir+set}" = set; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   rm -f .libs 2>/dev/null
7295 mkdir .libs 2>/dev/null
7296 if test -d .libs; then
7297   lt_cv_objdir=.libs
7298 else
7299   # MS-DOS does not allow filenames that begin with a dot.
7300   lt_cv_objdir=_libs
7301 fi
7302 rmdir .libs 2>/dev/null
7303 fi
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7305 $as_echo "$lt_cv_objdir" >&6; }
7306 objdir=$lt_cv_objdir
7307
7308
7309
7310
7311
7312 cat >>confdefs.h <<_ACEOF
7313 #define LT_OBJDIR "$lt_cv_objdir/"
7314 _ACEOF
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332 case $host_os in
7333 aix3*)
7334   # AIX sometimes has problems with the GCC collect2 program.  For some
7335   # reason, if we set the COLLECT_NAMES environment variable, the problems
7336   # vanish in a puff of smoke.
7337   if test "X${COLLECT_NAMES+set}" != Xset; then
7338     COLLECT_NAMES=
7339     export COLLECT_NAMES
7340   fi
7341   ;;
7342 esac
7343
7344 # Sed substitution that helps us do robust quoting.  It backslashifies
7345 # metacharacters that are still active within double-quoted strings.
7346 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7347
7348 # Same as above, but do not quote variable references.
7349 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7350
7351 # Sed substitution to delay expansion of an escaped shell variable in a
7352 # double_quote_subst'ed string.
7353 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7354
7355 # Sed substitution to delay expansion of an escaped single quote.
7356 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7357
7358 # Sed substitution to avoid accidental globbing in evaled expressions
7359 no_glob_subst='s/\*/\\\*/g'
7360
7361 # Global variables:
7362 ofile=libtool
7363 can_build_shared=yes
7364
7365 # All known linkers require a `.a' archive for static linking (except MSVC,
7366 # which needs '.lib').
7367 libext=a
7368
7369 with_gnu_ld="$lt_cv_prog_gnu_ld"
7370
7371 old_CC="$CC"
7372 old_CFLAGS="$CFLAGS"
7373
7374 # Set sane defaults for various variables
7375 test -z "$CC" && CC=cc
7376 test -z "$LTCC" && LTCC=$CC
7377 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7378 test -z "$LD" && LD=ld
7379 test -z "$ac_objext" && ac_objext=o
7380
7381 for cc_temp in $compiler""; do
7382   case $cc_temp in
7383     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7384     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7385     \-*) ;;
7386     *) break;;
7387   esac
7388 done
7389 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7390
7391
7392 # Only perform the check for file, if the check method requires it
7393 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7394 case $deplibs_check_method in
7395 file_magic*)
7396   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7398 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7399 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7400   $as_echo_n "(cached) " >&6
7401 else
7402   case $MAGIC_CMD in
7403 [\\/*] |  ?:[\\/]*)
7404   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7405   ;;
7406 *)
7407   lt_save_MAGIC_CMD="$MAGIC_CMD"
7408   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7409   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7410   for ac_dir in $ac_dummy; do
7411     IFS="$lt_save_ifs"
7412     test -z "$ac_dir" && ac_dir=.
7413     if test -f $ac_dir/${ac_tool_prefix}file; then
7414       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7415       if test -n "$file_magic_test_file"; then
7416         case $deplibs_check_method in
7417         "file_magic "*)
7418           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7419           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7420           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7421             $EGREP "$file_magic_regex" > /dev/null; then
7422             :
7423           else
7424             cat <<_LT_EOF 1>&2
7425
7426 *** Warning: the command libtool uses to detect shared libraries,
7427 *** $file_magic_cmd, produces output that libtool cannot recognize.
7428 *** The result is that libtool may fail to recognize shared libraries
7429 *** as such.  This will affect the creation of libtool libraries that
7430 *** depend on shared libraries, but programs linked with such libtool
7431 *** libraries will work regardless of this problem.  Nevertheless, you
7432 *** may want to report the problem to your system manager and/or to
7433 *** bug-libtool@gnu.org
7434
7435 _LT_EOF
7436           fi ;;
7437         esac
7438       fi
7439       break
7440     fi
7441   done
7442   IFS="$lt_save_ifs"
7443   MAGIC_CMD="$lt_save_MAGIC_CMD"
7444   ;;
7445 esac
7446 fi
7447
7448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7449 if test -n "$MAGIC_CMD"; then
7450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7451 $as_echo "$MAGIC_CMD" >&6; }
7452 else
7453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7455 fi
7456
7457
7458
7459
7460
7461 if test -z "$lt_cv_path_MAGIC_CMD"; then
7462   if test -n "$ac_tool_prefix"; then
7463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7464 $as_echo_n "checking for file... " >&6; }
7465 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7466   $as_echo_n "(cached) " >&6
7467 else
7468   case $MAGIC_CMD in
7469 [\\/*] |  ?:[\\/]*)
7470   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7471   ;;
7472 *)
7473   lt_save_MAGIC_CMD="$MAGIC_CMD"
7474   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7475   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7476   for ac_dir in $ac_dummy; do
7477     IFS="$lt_save_ifs"
7478     test -z "$ac_dir" && ac_dir=.
7479     if test -f $ac_dir/file; then
7480       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7481       if test -n "$file_magic_test_file"; then
7482         case $deplibs_check_method in
7483         "file_magic "*)
7484           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7485           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7486           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7487             $EGREP "$file_magic_regex" > /dev/null; then
7488             :
7489           else
7490             cat <<_LT_EOF 1>&2
7491
7492 *** Warning: the command libtool uses to detect shared libraries,
7493 *** $file_magic_cmd, produces output that libtool cannot recognize.
7494 *** The result is that libtool may fail to recognize shared libraries
7495 *** as such.  This will affect the creation of libtool libraries that
7496 *** depend on shared libraries, but programs linked with such libtool
7497 *** libraries will work regardless of this problem.  Nevertheless, you
7498 *** may want to report the problem to your system manager and/or to
7499 *** bug-libtool@gnu.org
7500
7501 _LT_EOF
7502           fi ;;
7503         esac
7504       fi
7505       break
7506     fi
7507   done
7508   IFS="$lt_save_ifs"
7509   MAGIC_CMD="$lt_save_MAGIC_CMD"
7510   ;;
7511 esac
7512 fi
7513
7514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7515 if test -n "$MAGIC_CMD"; then
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7517 $as_echo "$MAGIC_CMD" >&6; }
7518 else
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523
7524   else
7525     MAGIC_CMD=:
7526   fi
7527 fi
7528
7529   fi
7530   ;;
7531 esac
7532
7533 # Use C for the default configuration in the libtool script
7534
7535 lt_save_CC="$CC"
7536 ac_ext=c
7537 ac_cpp='$CPP $CPPFLAGS'
7538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7541
7542
7543 # Source file extension for C test sources.
7544 ac_ext=c
7545
7546 # Object file extension for compiled C test sources.
7547 objext=o
7548 objext=$objext
7549
7550 # Code to be used in simple compile tests
7551 lt_simple_compile_test_code="int some_variable = 0;"
7552
7553 # Code to be used in simple link tests
7554 lt_simple_link_test_code='int main(){return(0);}'
7555
7556
7557
7558
7559
7560
7561
7562 # If no C compiler was specified, use CC.
7563 LTCC=${LTCC-"$CC"}
7564
7565 # If no C compiler flags were specified, use CFLAGS.
7566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7567
7568 # Allow CC to be a program name with arguments.
7569 compiler=$CC
7570
7571 # Save the default compiler, since it gets overwritten when the other
7572 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7573 compiler_DEFAULT=$CC
7574
7575 # save warnings/boilerplate of simple test code
7576 ac_outfile=conftest.$ac_objext
7577 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7578 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7579 _lt_compiler_boilerplate=`cat conftest.err`
7580 $RM conftest*
7581
7582 ac_outfile=conftest.$ac_objext
7583 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7584 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7585 _lt_linker_boilerplate=`cat conftest.err`
7586 $RM -r conftest*
7587
7588
7589 ## CAVEAT EMPTOR:
7590 ## There is no encapsulation within the following macros, do not change
7591 ## the running order or otherwise move them around unless you know exactly
7592 ## what you are doing...
7593 if test -n "$compiler"; then
7594
7595 lt_prog_compiler_no_builtin_flag=
7596
7597 if test "$GCC" = yes; then
7598   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7599
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7601 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7602 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7603   $as_echo_n "(cached) " >&6
7604 else
7605   lt_cv_prog_compiler_rtti_exceptions=no
7606    ac_outfile=conftest.$ac_objext
7607    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7608    lt_compiler_flag="-fno-rtti -fno-exceptions"
7609    # Insert the option either (1) after the last *FLAGS variable, or
7610    # (2) before a word containing "conftest.", or (3) at the end.
7611    # Note that $ac_compile itself does not contain backslashes and begins
7612    # with a dollar sign (not a hyphen), so the echo should work correctly.
7613    # The option is referenced via a variable to avoid confusing sed.
7614    lt_compile=`echo "$ac_compile" | $SED \
7615    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7616    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7617    -e 's:$: $lt_compiler_flag:'`
7618    (eval echo "\"\$as_me:7618: $lt_compile\"" >&5)
7619    (eval "$lt_compile" 2>conftest.err)
7620    ac_status=$?
7621    cat conftest.err >&5
7622    echo "$as_me:7622: \$? = $ac_status" >&5
7623    if (exit $ac_status) && test -s "$ac_outfile"; then
7624      # The compiler can only warn and ignore the option if not recognized
7625      # So say no if there are warnings other than the usual output.
7626      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7627      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7628      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7629        lt_cv_prog_compiler_rtti_exceptions=yes
7630      fi
7631    fi
7632    $RM conftest*
7633
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7636 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7637
7638 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7639     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7640 else
7641     :
7642 fi
7643
7644 fi
7645
7646
7647
7648
7649
7650
7651   lt_prog_compiler_wl=
7652 lt_prog_compiler_pic=
7653 lt_prog_compiler_static=
7654
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7657
7658   if test "$GCC" = yes; then
7659     lt_prog_compiler_wl='-Wl,'
7660     lt_prog_compiler_static='-static'
7661
7662     case $host_os in
7663       aix*)
7664       # All AIX code is PIC.
7665       if test "$host_cpu" = ia64; then
7666         # AIX 5 now supports IA64 processor
7667         lt_prog_compiler_static='-Bstatic'
7668       fi
7669       ;;
7670
7671     amigaos*)
7672       case $host_cpu in
7673       powerpc)
7674             # see comment about AmigaOS4 .so support
7675             lt_prog_compiler_pic='-fPIC'
7676         ;;
7677       m68k)
7678             # FIXME: we need at least 68020 code to build shared libraries, but
7679             # adding the `-m68020' flag to GCC prevents building anything better,
7680             # like `-m68040'.
7681             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7682         ;;
7683       esac
7684       ;;
7685
7686     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7687       # PIC is the default for these OSes.
7688       ;;
7689
7690     mingw* | cygwin* | pw32* | os2* | cegcc*)
7691       # This hack is so that the source file can tell whether it is being
7692       # built for inclusion in a dll (and should export symbols for example).
7693       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7694       # (--disable-auto-import) libraries
7695       lt_prog_compiler_pic='-DDLL_EXPORT'
7696       ;;
7697
7698     darwin* | rhapsody*)
7699       # PIC is the default on this platform
7700       # Common symbols not allowed in MH_DYLIB files
7701       lt_prog_compiler_pic='-fno-common'
7702       ;;
7703
7704     hpux*)
7705       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7706       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7707       # sets the default TLS model and affects inlining.
7708       case $host_cpu in
7709       hppa*64*)
7710         # +Z the default
7711         ;;
7712       *)
7713         lt_prog_compiler_pic='-fPIC'
7714         ;;
7715       esac
7716       ;;
7717
7718     interix[3-9]*)
7719       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7720       # Instead, we relocate shared libraries at runtime.
7721       ;;
7722
7723     msdosdjgpp*)
7724       # Just because we use GCC doesn't mean we suddenly get shared libraries
7725       # on systems that don't support them.
7726       lt_prog_compiler_can_build_shared=no
7727       enable_shared=no
7728       ;;
7729
7730     *nto* | *qnx*)
7731       # QNX uses GNU C++, but need to define -shared option too, otherwise
7732       # it will coredump.
7733       lt_prog_compiler_pic='-fPIC -shared'
7734       ;;
7735
7736     sysv4*MP*)
7737       if test -d /usr/nec; then
7738         lt_prog_compiler_pic=-Kconform_pic
7739       fi
7740       ;;
7741
7742     *)
7743       lt_prog_compiler_pic='-fPIC'
7744       ;;
7745     esac
7746   else
7747     # PORTME Check for flag to pass linker flags through the system compiler.
7748     case $host_os in
7749     aix*)
7750       lt_prog_compiler_wl='-Wl,'
7751       if test "$host_cpu" = ia64; then
7752         # AIX 5 now supports IA64 processor
7753         lt_prog_compiler_static='-Bstatic'
7754       else
7755         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7756       fi
7757       ;;
7758
7759     mingw* | cygwin* | pw32* | os2* | cegcc*)
7760       # This hack is so that the source file can tell whether it is being
7761       # built for inclusion in a dll (and should export symbols for example).
7762       lt_prog_compiler_pic='-DDLL_EXPORT'
7763       ;;
7764
7765     hpux9* | hpux10* | hpux11*)
7766       lt_prog_compiler_wl='-Wl,'
7767       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7768       # not for PA HP-UX.
7769       case $host_cpu in
7770       hppa*64*|ia64*)
7771         # +Z the default
7772         ;;
7773       *)
7774         lt_prog_compiler_pic='+Z'
7775         ;;
7776       esac
7777       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7778       lt_prog_compiler_static='${wl}-a ${wl}archive'
7779       ;;
7780
7781     irix5* | irix6* | nonstopux*)
7782       lt_prog_compiler_wl='-Wl,'
7783       # PIC (with -KPIC) is the default.
7784       lt_prog_compiler_static='-non_shared'
7785       ;;
7786
7787     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7788       case $cc_basename in
7789       # old Intel for x86_64 which still supported -KPIC.
7790       ecc*)
7791         lt_prog_compiler_wl='-Wl,'
7792         lt_prog_compiler_pic='-KPIC'
7793         lt_prog_compiler_static='-static'
7794         ;;
7795       # icc used to be incompatible with GCC.
7796       # ICC 10 doesn't accept -KPIC any more.
7797       icc* | ifort*)
7798         lt_prog_compiler_wl='-Wl,'
7799         lt_prog_compiler_pic='-fPIC'
7800         lt_prog_compiler_static='-static'
7801         ;;
7802       # Lahey Fortran 8.1.
7803       lf95*)
7804         lt_prog_compiler_wl='-Wl,'
7805         lt_prog_compiler_pic='--shared'
7806         lt_prog_compiler_static='--static'
7807         ;;
7808       pgcc* | pgf77* | pgf90* | pgf95*)
7809         # Portland Group compilers (*not* the Pentium gcc compiler,
7810         # which looks to be a dead project)
7811         lt_prog_compiler_wl='-Wl,'
7812         lt_prog_compiler_pic='-fpic'
7813         lt_prog_compiler_static='-Bstatic'
7814         ;;
7815       ccc*)
7816         lt_prog_compiler_wl='-Wl,'
7817         # All Alpha code is PIC.
7818         lt_prog_compiler_static='-non_shared'
7819         ;;
7820       xl*)
7821         # IBM XL C 8.0/Fortran 10.1 on PPC
7822         lt_prog_compiler_wl='-Wl,'
7823         lt_prog_compiler_pic='-qpic'
7824         lt_prog_compiler_static='-qstaticlink'
7825         ;;
7826       *)
7827         case `$CC -V 2>&1 | sed 5q` in
7828         *Sun\ C*)
7829           # Sun C 5.9
7830           lt_prog_compiler_pic='-KPIC'
7831           lt_prog_compiler_static='-Bstatic'
7832           lt_prog_compiler_wl='-Wl,'
7833           ;;
7834         *Sun\ F*)
7835           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7836           lt_prog_compiler_pic='-KPIC'
7837           lt_prog_compiler_static='-Bstatic'
7838           lt_prog_compiler_wl=''
7839           ;;
7840         esac
7841         ;;
7842       esac
7843       ;;
7844
7845     newsos6)
7846       lt_prog_compiler_pic='-KPIC'
7847       lt_prog_compiler_static='-Bstatic'
7848       ;;
7849
7850     *nto* | *qnx*)
7851       # QNX uses GNU C++, but need to define -shared option too, otherwise
7852       # it will coredump.
7853       lt_prog_compiler_pic='-fPIC -shared'
7854       ;;
7855
7856     osf3* | osf4* | osf5*)
7857       lt_prog_compiler_wl='-Wl,'
7858       # All OSF/1 code is PIC.
7859       lt_prog_compiler_static='-non_shared'
7860       ;;
7861
7862     rdos*)
7863       lt_prog_compiler_static='-non_shared'
7864       ;;
7865
7866     solaris*)
7867       lt_prog_compiler_pic='-KPIC'
7868       lt_prog_compiler_static='-Bstatic'
7869       case $cc_basename in
7870       f77* | f90* | f95*)
7871         lt_prog_compiler_wl='-Qoption ld ';;
7872       *)
7873         lt_prog_compiler_wl='-Wl,';;
7874       esac
7875       ;;
7876
7877     sunos4*)
7878       lt_prog_compiler_wl='-Qoption ld '
7879       lt_prog_compiler_pic='-PIC'
7880       lt_prog_compiler_static='-Bstatic'
7881       ;;
7882
7883     sysv4 | sysv4.2uw2* | sysv4.3*)
7884       lt_prog_compiler_wl='-Wl,'
7885       lt_prog_compiler_pic='-KPIC'
7886       lt_prog_compiler_static='-Bstatic'
7887       ;;
7888
7889     sysv4*MP*)
7890       if test -d /usr/nec ;then
7891         lt_prog_compiler_pic='-Kconform_pic'
7892         lt_prog_compiler_static='-Bstatic'
7893       fi
7894       ;;
7895
7896     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7897       lt_prog_compiler_wl='-Wl,'
7898       lt_prog_compiler_pic='-KPIC'
7899       lt_prog_compiler_static='-Bstatic'
7900       ;;
7901
7902     unicos*)
7903       lt_prog_compiler_wl='-Wl,'
7904       lt_prog_compiler_can_build_shared=no
7905       ;;
7906
7907     uts4*)
7908       lt_prog_compiler_pic='-pic'
7909       lt_prog_compiler_static='-Bstatic'
7910       ;;
7911
7912     *)
7913       lt_prog_compiler_can_build_shared=no
7914       ;;
7915     esac
7916   fi
7917
7918 case $host_os in
7919   # For platforms which do not support PIC, -DPIC is meaningless:
7920   *djgpp*)
7921     lt_prog_compiler_pic=
7922     ;;
7923   *)
7924     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7925     ;;
7926 esac
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7928 $as_echo "$lt_prog_compiler_pic" >&6; }
7929
7930
7931
7932
7933
7934
7935 #
7936 # Check to make sure the PIC flag actually works.
7937 #
7938 if test -n "$lt_prog_compiler_pic"; then
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7940 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7941 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   lt_cv_prog_compiler_pic_works=no
7945    ac_outfile=conftest.$ac_objext
7946    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7947    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7948    # Insert the option either (1) after the last *FLAGS variable, or
7949    # (2) before a word containing "conftest.", or (3) at the end.
7950    # Note that $ac_compile itself does not contain backslashes and begins
7951    # with a dollar sign (not a hyphen), so the echo should work correctly.
7952    # The option is referenced via a variable to avoid confusing sed.
7953    lt_compile=`echo "$ac_compile" | $SED \
7954    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956    -e 's:$: $lt_compiler_flag:'`
7957    (eval echo "\"\$as_me:7957: $lt_compile\"" >&5)
7958    (eval "$lt_compile" 2>conftest.err)
7959    ac_status=$?
7960    cat conftest.err >&5
7961    echo "$as_me:7961: \$? = $ac_status" >&5
7962    if (exit $ac_status) && test -s "$ac_outfile"; then
7963      # The compiler can only warn and ignore the option if not recognized
7964      # So say no if there are warnings other than the usual output.
7965      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7966      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7967      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7968        lt_cv_prog_compiler_pic_works=yes
7969      fi
7970    fi
7971    $RM conftest*
7972
7973 fi
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7975 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7976
7977 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7978     case $lt_prog_compiler_pic in
7979      "" | " "*) ;;
7980      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7981      esac
7982 else
7983     lt_prog_compiler_pic=
7984      lt_prog_compiler_can_build_shared=no
7985 fi
7986
7987 fi
7988
7989
7990
7991
7992
7993
7994 #
7995 # Check to make sure the static flag actually works.
7996 #
7997 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8000 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8001   $as_echo_n "(cached) " >&6
8002 else
8003   lt_cv_prog_compiler_static_works=no
8004    save_LDFLAGS="$LDFLAGS"
8005    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8006    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8007    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8008      # The linker can only warn and ignore the option if not recognized
8009      # So say no if there are warnings
8010      if test -s conftest.err; then
8011        # Append any errors to the config.log.
8012        cat conftest.err 1>&5
8013        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8014        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8015        if diff conftest.exp conftest.er2 >/dev/null; then
8016          lt_cv_prog_compiler_static_works=yes
8017        fi
8018      else
8019        lt_cv_prog_compiler_static_works=yes
8020      fi
8021    fi
8022    $RM -r conftest*
8023    LDFLAGS="$save_LDFLAGS"
8024
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8027 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8028
8029 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8030     :
8031 else
8032     lt_prog_compiler_static=
8033 fi
8034
8035
8036
8037
8038
8039
8040
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   lt_cv_prog_compiler_c_o=no
8047    $RM -r conftest 2>/dev/null
8048    mkdir conftest
8049    cd conftest
8050    mkdir out
8051    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8052
8053    lt_compiler_flag="-o out/conftest2.$ac_objext"
8054    # Insert the option either (1) after the last *FLAGS variable, or
8055    # (2) before a word containing "conftest.", or (3) at the end.
8056    # Note that $ac_compile itself does not contain backslashes and begins
8057    # with a dollar sign (not a hyphen), so the echo should work correctly.
8058    lt_compile=`echo "$ac_compile" | $SED \
8059    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061    -e 's:$: $lt_compiler_flag:'`
8062    (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
8063    (eval "$lt_compile" 2>out/conftest.err)
8064    ac_status=$?
8065    cat out/conftest.err >&5
8066    echo "$as_me:8066: \$? = $ac_status" >&5
8067    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8068    then
8069      # The compiler can only warn and ignore the option if not recognized
8070      # So say no if there are warnings
8071      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8072      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8073      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8074        lt_cv_prog_compiler_c_o=yes
8075      fi
8076    fi
8077    chmod u+w . 2>&5
8078    $RM conftest*
8079    # SGI C++ compiler will create directory out/ii_files/ for
8080    # template instantiation
8081    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8082    $RM out/* && rmdir out
8083    cd ..
8084    $RM -r conftest
8085    $RM conftest*
8086
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8090
8091
8092
8093
8094
8095
8096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8098 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8099   $as_echo_n "(cached) " >&6
8100 else
8101   lt_cv_prog_compiler_c_o=no
8102    $RM -r conftest 2>/dev/null
8103    mkdir conftest
8104    cd conftest
8105    mkdir out
8106    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8107
8108    lt_compiler_flag="-o out/conftest2.$ac_objext"
8109    # Insert the option either (1) after the last *FLAGS variable, or
8110    # (2) before a word containing "conftest.", or (3) at the end.
8111    # Note that $ac_compile itself does not contain backslashes and begins
8112    # with a dollar sign (not a hyphen), so the echo should work correctly.
8113    lt_compile=`echo "$ac_compile" | $SED \
8114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8116    -e 's:$: $lt_compiler_flag:'`
8117    (eval echo "\"\$as_me:8117: $lt_compile\"" >&5)
8118    (eval "$lt_compile" 2>out/conftest.err)
8119    ac_status=$?
8120    cat out/conftest.err >&5
8121    echo "$as_me:8121: \$? = $ac_status" >&5
8122    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8123    then
8124      # The compiler can only warn and ignore the option if not recognized
8125      # So say no if there are warnings
8126      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8127      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8128      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8129        lt_cv_prog_compiler_c_o=yes
8130      fi
8131    fi
8132    chmod u+w . 2>&5
8133    $RM conftest*
8134    # SGI C++ compiler will create directory out/ii_files/ for
8135    # template instantiation
8136    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8137    $RM out/* && rmdir out
8138    cd ..
8139    $RM -r conftest
8140    $RM conftest*
8141
8142 fi
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8145
8146
8147
8148
8149 hard_links="nottested"
8150 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8151   # do not overwrite the value of need_locks provided by the user
8152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8153 $as_echo_n "checking if we can lock with hard links... " >&6; }
8154   hard_links=yes
8155   $RM conftest*
8156   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8157   touch conftest.a
8158   ln conftest.a conftest.b 2>&5 || hard_links=no
8159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8161 $as_echo "$hard_links" >&6; }
8162   if test "$hard_links" = no; then
8163     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8164 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8165     need_locks=warn
8166   fi
8167 else
8168   need_locks=no
8169 fi
8170
8171
8172
8173
8174
8175
8176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8178
8179   runpath_var=
8180   allow_undefined_flag=
8181   always_export_symbols=no
8182   archive_cmds=
8183   archive_expsym_cmds=
8184   compiler_needs_object=no
8185   enable_shared_with_static_runtimes=no
8186   export_dynamic_flag_spec=
8187   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8188   hardcode_automatic=no
8189   hardcode_direct=no
8190   hardcode_direct_absolute=no
8191   hardcode_libdir_flag_spec=
8192   hardcode_libdir_flag_spec_ld=
8193   hardcode_libdir_separator=
8194   hardcode_minus_L=no
8195   hardcode_shlibpath_var=unsupported
8196   inherit_rpath=no
8197   link_all_deplibs=unknown
8198   module_cmds=
8199   module_expsym_cmds=
8200   old_archive_from_new_cmds=
8201   old_archive_from_expsyms_cmds=
8202   thread_safe_flag_spec=
8203   whole_archive_flag_spec=
8204   # include_expsyms should be a list of space-separated symbols to be *always*
8205   # included in the symbol list
8206   include_expsyms=
8207   # exclude_expsyms can be an extended regexp of symbols to exclude
8208   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8209   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8210   # as well as any symbol that contains `d'.
8211   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8212   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8213   # platforms (ab)use it in PIC code, but their linkers get confused if
8214   # the symbol is explicitly referenced.  Since portable code cannot
8215   # rely on this symbol name, it's probably fine to never include it in
8216   # preloaded symbol tables.
8217   # Exclude shared library initialization/finalization symbols.
8218   extract_expsyms_cmds=
8219
8220   case $host_os in
8221   cygwin* | mingw* | pw32* | cegcc*)
8222     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8223     # When not using gcc, we currently assume that we are using
8224     # Microsoft Visual C++.
8225     if test "$GCC" != yes; then
8226       with_gnu_ld=no
8227     fi
8228     ;;
8229   interix*)
8230     # we just hope/assume this is gcc and not c89 (= MSVC++)
8231     with_gnu_ld=yes
8232     ;;
8233   openbsd*)
8234     with_gnu_ld=no
8235     ;;
8236   esac
8237
8238   ld_shlibs=yes
8239   if test "$with_gnu_ld" = yes; then
8240     # If archive_cmds runs LD, not CC, wlarc should be empty
8241     wlarc='${wl}'
8242
8243     # Set some defaults for GNU ld with shared library support. These
8244     # are reset later if shared libraries are not supported. Putting them
8245     # here allows them to be overridden if necessary.
8246     runpath_var=LD_RUN_PATH
8247     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8248     export_dynamic_flag_spec='${wl}--export-dynamic'
8249     # ancient GNU ld didn't support --whole-archive et. al.
8250     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8251       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8252     else
8253       whole_archive_flag_spec=
8254     fi
8255     supports_anon_versioning=no
8256     case `$LD -v 2>&1` in
8257       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8258       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8259       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8260       *\ 2.11.*) ;; # other 2.11 versions
8261       *) supports_anon_versioning=yes ;;
8262     esac
8263
8264     # See if GNU ld supports shared libraries.
8265     case $host_os in
8266     aix[3-9]*)
8267       # On AIX/PPC, the GNU linker is very broken
8268       if test "$host_cpu" != ia64; then
8269         ld_shlibs=no
8270         cat <<_LT_EOF 1>&2
8271
8272 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8273 *** to be unable to reliably create shared libraries on AIX.
8274 *** Therefore, libtool is disabling shared libraries support.  If you
8275 *** really care for shared libraries, you may want to modify your PATH
8276 *** so that a non-GNU linker is found, and then restart.
8277
8278 _LT_EOF
8279       fi
8280       ;;
8281
8282     amigaos*)
8283       case $host_cpu in
8284       powerpc)
8285             # see comment about AmigaOS4 .so support
8286             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287             archive_expsym_cmds=''
8288         ;;
8289       m68k)
8290             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)'
8291             hardcode_libdir_flag_spec='-L$libdir'
8292             hardcode_minus_L=yes
8293         ;;
8294       esac
8295       ;;
8296
8297     beos*)
8298       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8299         allow_undefined_flag=unsupported
8300         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8301         # support --undefined.  This deserves some investigation.  FIXME
8302         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8303       else
8304         ld_shlibs=no
8305       fi
8306       ;;
8307
8308     cygwin* | mingw* | pw32* | cegcc*)
8309       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8310       # as there is no search path for DLLs.
8311       hardcode_libdir_flag_spec='-L$libdir'
8312       allow_undefined_flag=unsupported
8313       always_export_symbols=no
8314       enable_shared_with_static_runtimes=yes
8315       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8316
8317       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8318         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8319         # If the export-symbols file already is a .def file (1st line
8320         # is EXPORTS), use it as is; otherwise, prepend...
8321         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8322           cp $export_symbols $output_objdir/$soname.def;
8323         else
8324           echo EXPORTS > $output_objdir/$soname.def;
8325           cat $export_symbols >> $output_objdir/$soname.def;
8326         fi~
8327         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8328       else
8329         ld_shlibs=no
8330       fi
8331       ;;
8332
8333     interix[3-9]*)
8334       hardcode_direct=no
8335       hardcode_shlibpath_var=no
8336       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8337       export_dynamic_flag_spec='${wl}-E'
8338       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8339       # Instead, shared libraries are loaded at an image base (0x10000000 by
8340       # default) and relocated if they conflict, which is a slow very memory
8341       # consuming and fragmenting process.  To avoid this, we pick a random,
8342       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8343       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8344       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8345       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'
8346       ;;
8347
8348     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8349       tmp_diet=no
8350       if test "$host_os" = linux-dietlibc; then
8351         case $cc_basename in
8352           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8353         esac
8354       fi
8355       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8356          && test "$tmp_diet" = no
8357       then
8358         tmp_addflag=
8359         tmp_sharedflag='-shared'
8360         case $cc_basename,$host_cpu in
8361         pgcc*)                          # Portland Group C compiler
8362           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'
8363           tmp_addflag=' $pic_flag'
8364           ;;
8365         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8366           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'
8367           tmp_addflag=' $pic_flag -Mnomain' ;;
8368         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8369           tmp_addflag=' -i_dynamic' ;;
8370         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8371           tmp_addflag=' -i_dynamic -nofor_main' ;;
8372         ifc* | ifort*)                  # Intel Fortran compiler
8373           tmp_addflag=' -nofor_main' ;;
8374         lf95*)                          # Lahey Fortran 8.1
8375           whole_archive_flag_spec=
8376           tmp_sharedflag='--shared' ;;
8377         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8378           tmp_sharedflag='-qmkshrobj'
8379           tmp_addflag= ;;
8380         esac
8381         case `$CC -V 2>&1 | sed 5q` in
8382         *Sun\ C*)                       # Sun C 5.9
8383           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'
8384           compiler_needs_object=yes
8385           tmp_sharedflag='-G' ;;
8386         *Sun\ F*)                       # Sun Fortran 8.3
8387           tmp_sharedflag='-G' ;;
8388         esac
8389         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8390
8391         if test "x$supports_anon_versioning" = xyes; then
8392           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8393             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8394             echo "local: *; };" >> $output_objdir/$libname.ver~
8395             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8396         fi
8397
8398         case $cc_basename in
8399         xlf*)
8400           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8401           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8402           hardcode_libdir_flag_spec=
8403           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8404           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8405           if test "x$supports_anon_versioning" = xyes; then
8406             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8407               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8408               echo "local: *; };" >> $output_objdir/$libname.ver~
8409               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8410           fi
8411           ;;
8412         esac
8413       else
8414         ld_shlibs=no
8415       fi
8416       ;;
8417
8418     netbsd*)
8419       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8420         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8421         wlarc=
8422       else
8423         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8424         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8425       fi
8426       ;;
8427
8428     solaris*)
8429       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8430         ld_shlibs=no
8431         cat <<_LT_EOF 1>&2
8432
8433 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8434 *** create shared libraries on Solaris systems.  Therefore, libtool
8435 *** is disabling shared libraries support.  We urge you to upgrade GNU
8436 *** binutils to release 2.9.1 or newer.  Another option is to modify
8437 *** your PATH or compiler configuration so that the native linker is
8438 *** used, and then restart.
8439
8440 _LT_EOF
8441       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8442         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8443         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8444       else
8445         ld_shlibs=no
8446       fi
8447       ;;
8448
8449     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8450       case `$LD -v 2>&1` in
8451         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8452         ld_shlibs=no
8453         cat <<_LT_EOF 1>&2
8454
8455 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8456 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8457 *** is disabling shared libraries support.  We urge you to upgrade GNU
8458 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8459 *** your PATH or compiler configuration so that the native linker is
8460 *** used, and then restart.
8461
8462 _LT_EOF
8463         ;;
8464         *)
8465           # For security reasons, it is highly recommended that you always
8466           # use absolute paths for naming shared libraries, and exclude the
8467           # DT_RUNPATH tag from executables and libraries.  But doing so
8468           # requires that you compile everything twice, which is a pain.
8469           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8470             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8471             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8472             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8473           else
8474             ld_shlibs=no
8475           fi
8476         ;;
8477       esac
8478       ;;
8479
8480     sunos4*)
8481       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8482       wlarc=
8483       hardcode_direct=yes
8484       hardcode_shlibpath_var=no
8485       ;;
8486
8487     *)
8488       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8489         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8490         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8491       else
8492         ld_shlibs=no
8493       fi
8494       ;;
8495     esac
8496
8497     if test "$ld_shlibs" = no; then
8498       runpath_var=
8499       hardcode_libdir_flag_spec=
8500       export_dynamic_flag_spec=
8501       whole_archive_flag_spec=
8502     fi
8503   else
8504     # PORTME fill in a description of your system's linker (not GNU ld)
8505     case $host_os in
8506     aix3*)
8507       allow_undefined_flag=unsupported
8508       always_export_symbols=yes
8509       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'
8510       # Note: this linker hardcodes the directories in LIBPATH if there
8511       # are no directories specified by -L.
8512       hardcode_minus_L=yes
8513       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8514         # Neither direct hardcoding nor static linking is supported with a
8515         # broken collect2.
8516         hardcode_direct=unsupported
8517       fi
8518       ;;
8519
8520     aix[4-9]*)
8521       if test "$host_cpu" = ia64; then
8522         # On IA64, the linker does run time linking by default, so we don't
8523         # have to do anything special.
8524         aix_use_runtimelinking=no
8525         exp_sym_flag='-Bexport'
8526         no_entry_flag=""
8527       else
8528         # If we're using GNU nm, then we don't want the "-C" option.
8529         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8530         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8531           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'
8532         else
8533           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'
8534         fi
8535         aix_use_runtimelinking=no
8536
8537         # Test if we are trying to use run time linking or normal
8538         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8539         # need to do runtime linking.
8540         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8541           for ld_flag in $LDFLAGS; do
8542           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8543             aix_use_runtimelinking=yes
8544             break
8545           fi
8546           done
8547           ;;
8548         esac
8549
8550         exp_sym_flag='-bexport'
8551         no_entry_flag='-bnoentry'
8552       fi
8553
8554       # When large executables or shared objects are built, AIX ld can
8555       # have problems creating the table of contents.  If linking a library
8556       # or program results in "error TOC overflow" add -mminimal-toc to
8557       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8558       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8559
8560       archive_cmds=''
8561       hardcode_direct=yes
8562       hardcode_direct_absolute=yes
8563       hardcode_libdir_separator=':'
8564       link_all_deplibs=yes
8565       file_list_spec='${wl}-f,'
8566
8567       if test "$GCC" = yes; then
8568         case $host_os in aix4.[012]|aix4.[012].*)
8569         # We only want to do this on AIX 4.2 and lower, the check
8570         # below for broken collect2 doesn't work under 4.3+
8571           collect2name=`${CC} -print-prog-name=collect2`
8572           if test -f "$collect2name" &&
8573            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8574           then
8575           # We have reworked collect2
8576           :
8577           else
8578           # We have old collect2
8579           hardcode_direct=unsupported
8580           # It fails to find uninstalled libraries when the uninstalled
8581           # path is not listed in the libpath.  Setting hardcode_minus_L
8582           # to unsupported forces relinking
8583           hardcode_minus_L=yes
8584           hardcode_libdir_flag_spec='-L$libdir'
8585           hardcode_libdir_separator=
8586           fi
8587           ;;
8588         esac
8589         shared_flag='-shared'
8590         if test "$aix_use_runtimelinking" = yes; then
8591           shared_flag="$shared_flag "'${wl}-G'
8592         fi
8593       else
8594         # not using gcc
8595         if test "$host_cpu" = ia64; then
8596         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8597         # chokes on -Wl,-G. The following line is correct:
8598           shared_flag='-G'
8599         else
8600           if test "$aix_use_runtimelinking" = yes; then
8601             shared_flag='${wl}-G'
8602           else
8603             shared_flag='${wl}-bM:SRE'
8604           fi
8605         fi
8606       fi
8607
8608       export_dynamic_flag_spec='${wl}-bexpall'
8609       # It seems that -bexpall does not export symbols beginning with
8610       # underscore (_), so it is better to generate a list of symbols to export.
8611       always_export_symbols=yes
8612       if test "$aix_use_runtimelinking" = yes; then
8613         # Warning - without using the other runtime loading flags (-brtl),
8614         # -berok will link without error, but may produce a broken library.
8615         allow_undefined_flag='-berok'
8616         # Determine the default libpath from the value encoded in an
8617         # empty executable.
8618         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h.  */
8620
8621 int
8622 main ()
8623 {
8624
8625   ;
8626   return 0;
8627 }
8628 _ACEOF
8629 if ac_fn_c_try_link "$LINENO"; then :
8630
8631 lt_aix_libpath_sed='
8632     /Import File Strings/,/^$/ {
8633         /^0/ {
8634             s/^0  *\(.*\)$/\1/
8635             p
8636         }
8637     }'
8638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8639 # Check for a 64-bit object if we didn't find anything.
8640 if test -z "$aix_libpath"; then
8641   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8642 fi
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext \
8645     conftest$ac_exeext conftest.$ac_ext
8646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8647
8648         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8649         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"
8650       else
8651         if test "$host_cpu" = ia64; then
8652           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8653           allow_undefined_flag="-z nodefs"
8654           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"
8655         else
8656          # Determine the default libpath from the value encoded in an
8657          # empty executable.
8658          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h.  */
8660
8661 int
8662 main ()
8663 {
8664
8665   ;
8666   return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8670
8671 lt_aix_libpath_sed='
8672     /Import File Strings/,/^$/ {
8673         /^0/ {
8674             s/^0  *\(.*\)$/\1/
8675             p
8676         }
8677     }'
8678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8679 # Check for a 64-bit object if we didn't find anything.
8680 if test -z "$aix_libpath"; then
8681   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8682 fi
8683 fi
8684 rm -f core conftest.err conftest.$ac_objext \
8685     conftest$ac_exeext conftest.$ac_ext
8686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8687
8688          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8689           # Warning - without using the other run time loading flags,
8690           # -berok will link without error, but may produce a broken library.
8691           no_undefined_flag=' ${wl}-bernotok'
8692           allow_undefined_flag=' ${wl}-berok'
8693           # Exported symbols can be pulled into shared objects from archives
8694           whole_archive_flag_spec='$convenience'
8695           archive_cmds_need_lc=yes
8696           # This is similar to how AIX traditionally builds its shared libraries.
8697           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'
8698         fi
8699       fi
8700       ;;
8701
8702     amigaos*)
8703       case $host_cpu in
8704       powerpc)
8705             # see comment about AmigaOS4 .so support
8706             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707             archive_expsym_cmds=''
8708         ;;
8709       m68k)
8710             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)'
8711             hardcode_libdir_flag_spec='-L$libdir'
8712             hardcode_minus_L=yes
8713         ;;
8714       esac
8715       ;;
8716
8717     bsdi[45]*)
8718       export_dynamic_flag_spec=-rdynamic
8719       ;;
8720
8721     cygwin* | mingw* | pw32* | cegcc*)
8722       # When not using gcc, we currently assume that we are using
8723       # Microsoft Visual C++.
8724       # hardcode_libdir_flag_spec is actually meaningless, as there is
8725       # no search path for DLLs.
8726       hardcode_libdir_flag_spec=' '
8727       allow_undefined_flag=unsupported
8728       # Tell ltmain to make .lib files, not .a files.
8729       libext=lib
8730       # Tell ltmain to make .dll files, not .so files.
8731       shrext_cmds=".dll"
8732       # FIXME: Setting linknames here is a bad hack.
8733       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8734       # The linker will automatically build a .lib file if we build a DLL.
8735       old_archive_from_new_cmds='true'
8736       # FIXME: Should let the user specify the lib program.
8737       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8738       fix_srcfile_path='`cygpath -w "$srcfile"`'
8739       enable_shared_with_static_runtimes=yes
8740       ;;
8741
8742     darwin* | rhapsody*)
8743
8744
8745   archive_cmds_need_lc=no
8746   hardcode_direct=no
8747   hardcode_automatic=yes
8748   hardcode_shlibpath_var=unsupported
8749   whole_archive_flag_spec=''
8750   link_all_deplibs=yes
8751   allow_undefined_flag="$_lt_dar_allow_undefined"
8752   case $cc_basename in
8753      ifort*) _lt_dar_can_shared=yes ;;
8754      *) _lt_dar_can_shared=$GCC ;;
8755   esac
8756   if test "$_lt_dar_can_shared" = "yes"; then
8757     output_verbose_link_cmd=echo
8758     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8759     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8760     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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8761     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8762
8763   else
8764   ld_shlibs=no
8765   fi
8766
8767       ;;
8768
8769     dgux*)
8770       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771       hardcode_libdir_flag_spec='-L$libdir'
8772       hardcode_shlibpath_var=no
8773       ;;
8774
8775     freebsd1*)
8776       ld_shlibs=no
8777       ;;
8778
8779     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8780     # support.  Future versions do this automatically, but an explicit c++rt0.o
8781     # does not break anything, and helps significantly (at the cost of a little
8782     # extra space).
8783     freebsd2.2*)
8784       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8785       hardcode_libdir_flag_spec='-R$libdir'
8786       hardcode_direct=yes
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8791     freebsd2*)
8792       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8793       hardcode_direct=yes
8794       hardcode_minus_L=yes
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8799     freebsd* | dragonfly*)
8800       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8801       hardcode_libdir_flag_spec='-R$libdir'
8802       hardcode_direct=yes
8803       hardcode_shlibpath_var=no
8804       ;;
8805
8806     hpux9*)
8807       if test "$GCC" = yes; then
8808         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'
8809       else
8810         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'
8811       fi
8812       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8813       hardcode_libdir_separator=:
8814       hardcode_direct=yes
8815
8816       # hardcode_minus_L: Not really in the search PATH,
8817       # but as the default location of the library.
8818       hardcode_minus_L=yes
8819       export_dynamic_flag_spec='${wl}-E'
8820       ;;
8821
8822     hpux10*)
8823       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8824         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8825       else
8826         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8827       fi
8828       if test "$with_gnu_ld" = no; then
8829         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8830         hardcode_libdir_flag_spec_ld='+b $libdir'
8831         hardcode_libdir_separator=:
8832         hardcode_direct=yes
8833         hardcode_direct_absolute=yes
8834         export_dynamic_flag_spec='${wl}-E'
8835         # hardcode_minus_L: Not really in the search PATH,
8836         # but as the default location of the library.
8837         hardcode_minus_L=yes
8838       fi
8839       ;;
8840
8841     hpux11*)
8842       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8843         case $host_cpu in
8844         hppa*64*)
8845           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8846           ;;
8847         ia64*)
8848           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8849           ;;
8850         *)
8851           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8852           ;;
8853         esac
8854       else
8855         case $host_cpu in
8856         hppa*64*)
8857           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8858           ;;
8859         ia64*)
8860           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8861           ;;
8862         *)
8863           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8864           ;;
8865         esac
8866       fi
8867       if test "$with_gnu_ld" = no; then
8868         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8869         hardcode_libdir_separator=:
8870
8871         case $host_cpu in
8872         hppa*64*|ia64*)
8873           hardcode_direct=no
8874           hardcode_shlibpath_var=no
8875           ;;
8876         *)
8877           hardcode_direct=yes
8878           hardcode_direct_absolute=yes
8879           export_dynamic_flag_spec='${wl}-E'
8880
8881           # hardcode_minus_L: Not really in the search PATH,
8882           # but as the default location of the library.
8883           hardcode_minus_L=yes
8884           ;;
8885         esac
8886       fi
8887       ;;
8888
8889     irix5* | irix6* | nonstopux*)
8890       if test "$GCC" = yes; then
8891         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'
8892         # Try to use the -exported_symbol ld option, if it does not
8893         # work, assume that -exports_file does not work either and
8894         # implicitly export all symbols.
8895         save_LDFLAGS="$LDFLAGS"
8896         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8897         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h.  */
8899 int foo(void) {}
8900 _ACEOF
8901 if ac_fn_c_try_link "$LINENO"; then :
8902   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'
8903
8904 fi
8905 rm -f core conftest.err conftest.$ac_objext \
8906     conftest$ac_exeext conftest.$ac_ext
8907         LDFLAGS="$save_LDFLAGS"
8908       else
8909         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'
8910         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'
8911       fi
8912       archive_cmds_need_lc='no'
8913       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914       hardcode_libdir_separator=:
8915       inherit_rpath=yes
8916       link_all_deplibs=yes
8917       ;;
8918
8919     netbsd*)
8920       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8921         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8922       else
8923         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8924       fi
8925       hardcode_libdir_flag_spec='-R$libdir'
8926       hardcode_direct=yes
8927       hardcode_shlibpath_var=no
8928       ;;
8929
8930     newsos6)
8931       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932       hardcode_direct=yes
8933       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8934       hardcode_libdir_separator=:
8935       hardcode_shlibpath_var=no
8936       ;;
8937
8938     *nto* | *qnx*)
8939       ;;
8940
8941     openbsd*)
8942       if test -f /usr/libexec/ld.so; then
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       else
8964         ld_shlibs=no
8965       fi
8966       ;;
8967
8968     os2*)
8969       hardcode_libdir_flag_spec='-L$libdir'
8970       hardcode_minus_L=yes
8971       allow_undefined_flag=unsupported
8972       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'
8973       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8974       ;;
8975
8976     osf3*)
8977       if test "$GCC" = yes; then
8978         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8979         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'
8980       else
8981         allow_undefined_flag=' -expect_unresolved \*'
8982         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'
8983       fi
8984       archive_cmds_need_lc='no'
8985       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8986       hardcode_libdir_separator=:
8987       ;;
8988
8989     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8990       if test "$GCC" = yes; then
8991         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8992         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'
8993         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8994       else
8995         allow_undefined_flag=' -expect_unresolved \*'
8996         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'
8997         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~
8998         $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'
8999
9000         # Both c and cxx compiler support -rpath directly
9001         hardcode_libdir_flag_spec='-rpath $libdir'
9002       fi
9003       archive_cmds_need_lc='no'
9004       hardcode_libdir_separator=:
9005       ;;
9006
9007     solaris*)
9008       no_undefined_flag=' -z defs'
9009       if test "$GCC" = yes; then
9010         wlarc='${wl}'
9011         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9012         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9013           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9014       else
9015         case `$CC -V 2>&1` in
9016         *"Compilers 5.0"*)
9017           wlarc=''
9018           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9019           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9020           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9021           ;;
9022         *)
9023           wlarc='${wl}'
9024           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9025           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9026           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9027           ;;
9028         esac
9029       fi
9030       hardcode_libdir_flag_spec='-R$libdir'
9031       hardcode_shlibpath_var=no
9032       case $host_os in
9033       solaris2.[0-5] | solaris2.[0-5].*) ;;
9034       *)
9035         # The compiler driver will combine and reorder linker options,
9036         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9037         # but is careful enough not to reorder.
9038         # Supported since Solaris 2.6 (maybe 2.5.1?)
9039         if test "$GCC" = yes; then
9040           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9041         else
9042           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9043         fi
9044         ;;
9045       esac
9046       link_all_deplibs=yes
9047       ;;
9048
9049     sunos4*)
9050       if test "x$host_vendor" = xsequent; then
9051         # Use $CC to link under sequent, because it throws in some extra .o
9052         # files that make .init and .fini sections work.
9053         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9054       else
9055         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9056       fi
9057       hardcode_libdir_flag_spec='-L$libdir'
9058       hardcode_direct=yes
9059       hardcode_minus_L=yes
9060       hardcode_shlibpath_var=no
9061       ;;
9062
9063     sysv4)
9064       case $host_vendor in
9065         sni)
9066           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067           hardcode_direct=yes # is this really true???
9068         ;;
9069         siemens)
9070           ## LD is ld it makes a PLAMLIB
9071           ## CC just makes a GrossModule.
9072           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9073           reload_cmds='$CC -r -o $output$reload_objs'
9074           hardcode_direct=no
9075         ;;
9076         motorola)
9077           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9078           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9079         ;;
9080       esac
9081       runpath_var='LD_RUN_PATH'
9082       hardcode_shlibpath_var=no
9083       ;;
9084
9085     sysv4.3*)
9086       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9087       hardcode_shlibpath_var=no
9088       export_dynamic_flag_spec='-Bexport'
9089       ;;
9090
9091     sysv4*MP*)
9092       if test -d /usr/nec; then
9093         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9094         hardcode_shlibpath_var=no
9095         runpath_var=LD_RUN_PATH
9096         hardcode_runpath_var=yes
9097         ld_shlibs=yes
9098       fi
9099       ;;
9100
9101     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9102       no_undefined_flag='${wl}-z,text'
9103       archive_cmds_need_lc=no
9104       hardcode_shlibpath_var=no
9105       runpath_var='LD_RUN_PATH'
9106
9107       if test "$GCC" = yes; then
9108         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9109         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9110       else
9111         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9112         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9113       fi
9114       ;;
9115
9116     sysv5* | sco3.2v5* | sco5v6*)
9117       # Note: We can NOT use -z defs as we might desire, because we do not
9118       # link with -lc, and that would cause any symbols used from libc to
9119       # always be unresolved, which means just about no library would
9120       # ever link correctly.  If we're not using GNU ld we use -z text
9121       # though, which does catch some bad symbols but isn't as heavy-handed
9122       # as -z defs.
9123       no_undefined_flag='${wl}-z,text'
9124       allow_undefined_flag='${wl}-z,nodefs'
9125       archive_cmds_need_lc=no
9126       hardcode_shlibpath_var=no
9127       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9128       hardcode_libdir_separator=':'
9129       link_all_deplibs=yes
9130       export_dynamic_flag_spec='${wl}-Bexport'
9131       runpath_var='LD_RUN_PATH'
9132
9133       if test "$GCC" = yes; then
9134         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9135         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9136       else
9137         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9138         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9139       fi
9140       ;;
9141
9142     uts4*)
9143       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144       hardcode_libdir_flag_spec='-L$libdir'
9145       hardcode_shlibpath_var=no
9146       ;;
9147
9148     *)
9149       ld_shlibs=no
9150       ;;
9151     esac
9152
9153     if test x$host_vendor = xsni; then
9154       case $host in
9155       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9156         export_dynamic_flag_spec='${wl}-Blargedynsym'
9157         ;;
9158       esac
9159     fi
9160   fi
9161
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9163 $as_echo "$ld_shlibs" >&6; }
9164 test "$ld_shlibs" = no && can_build_shared=no
9165
9166 with_gnu_ld=$with_gnu_ld
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182 #
9183 # Do we need to explicitly link libc?
9184 #
9185 case "x$archive_cmds_need_lc" in
9186 x|xyes)
9187   # Assume -lc should be added
9188   archive_cmds_need_lc=yes
9189
9190   if test "$enable_shared" = yes && test "$GCC" = yes; then
9191     case $archive_cmds in
9192     *'~'*)
9193       # FIXME: we may have to deal with multi-command sequences.
9194       ;;
9195     '$CC '*)
9196       # Test whether the compiler implicitly links with -lc since on some
9197       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9198       # to ld, don't add -lc before -lgcc.
9199       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9200 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9201 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   $RM conftest*
9205         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9206
9207         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9208   (eval $ac_compile) 2>&5
9209   ac_status=$?
9210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9211   test $ac_status = 0; } 2>conftest.err; then
9212           soname=conftest
9213           lib=conftest
9214           libobjs=conftest.$ac_objext
9215           deplibs=
9216           wl=$lt_prog_compiler_wl
9217           pic_flag=$lt_prog_compiler_pic
9218           compiler_flags=-v
9219           linker_flags=-v
9220           verstring=
9221           output_objdir=.
9222           libname=conftest
9223           lt_save_allow_undefined_flag=$allow_undefined_flag
9224           allow_undefined_flag=
9225           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9226   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9227   ac_status=$?
9228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9229   test $ac_status = 0; }
9230           then
9231             lt_cv_archive_cmds_need_lc=no
9232           else
9233             lt_cv_archive_cmds_need_lc=yes
9234           fi
9235           allow_undefined_flag=$lt_save_allow_undefined_flag
9236         else
9237           cat conftest.err 1>&5
9238         fi
9239         $RM conftest*
9240
9241 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9243 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9244       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9245       ;;
9246     esac
9247   fi
9248   ;;
9249 esac
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
9399
9400
9401
9402
9403
9404
9405
9406
9407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9408 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9409
9410 if test "$GCC" = yes; then
9411   case $host_os in
9412     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9413     *) lt_awk_arg="/^libraries:/" ;;
9414   esac
9415   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9416   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9417     # if the path contains ";" then we assume it to be the separator
9418     # otherwise default to the standard path separator (i.e. ":") - it is
9419     # assumed that no part of a normal pathname contains ";" but that should
9420     # okay in the real world where ";" in dirpaths is itself problematic.
9421     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9422   else
9423     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9424   fi
9425   # Ok, now we have the path, separated by spaces, we can step through it
9426   # and add multilib dir if necessary.
9427   lt_tmp_lt_search_path_spec=
9428   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9429   for lt_sys_path in $lt_search_path_spec; do
9430     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9431       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9432     else
9433       test -d "$lt_sys_path" && \
9434         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9435     fi
9436   done
9437   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9438 BEGIN {RS=" "; FS="/|\n";} {
9439   lt_foo="";
9440   lt_count=0;
9441   for (lt_i = NF; lt_i > 0; lt_i--) {
9442     if ($lt_i != "" && $lt_i != ".") {
9443       if ($lt_i == "..") {
9444         lt_count++;
9445       } else {
9446         if (lt_count == 0) {
9447           lt_foo="/" $lt_i lt_foo;
9448         } else {
9449           lt_count--;
9450         }
9451       }
9452     }
9453   }
9454   if (lt_foo != "") { lt_freq[lt_foo]++; }
9455   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9456 }'`
9457   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9458 else
9459   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9460 fi
9461 library_names_spec=
9462 libname_spec='lib$name'
9463 soname_spec=
9464 shrext_cmds=".so"
9465 postinstall_cmds=
9466 postuninstall_cmds=
9467 finish_cmds=
9468 finish_eval=
9469 shlibpath_var=
9470 shlibpath_overrides_runpath=unknown
9471 version_type=none
9472 dynamic_linker="$host_os ld.so"
9473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9474 need_lib_prefix=unknown
9475 hardcode_into_libs=no
9476
9477 # when you set need_version to no, make sure it does not cause -set_version
9478 # flags to be left without arguments
9479 need_version=unknown
9480
9481 case $host_os in
9482 aix3*)
9483   version_type=linux
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9485   shlibpath_var=LIBPATH
9486
9487   # AIX 3 has no versioning support, so we append a major version to the name.
9488   soname_spec='${libname}${release}${shared_ext}$major'
9489   ;;
9490
9491 aix[4-9]*)
9492   version_type=linux
9493   need_lib_prefix=no
9494   need_version=no
9495   hardcode_into_libs=yes
9496   if test "$host_cpu" = ia64; then
9497     # AIX 5 supports IA64
9498     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9499     shlibpath_var=LD_LIBRARY_PATH
9500   else
9501     # With GCC up to 2.95.x, collect2 would create an import file
9502     # for dependence libraries.  The import file would start with
9503     # the line `#! .'.  This would cause the generated library to
9504     # depend on `.', always an invalid library.  This was fixed in
9505     # development snapshots of GCC prior to 3.0.
9506     case $host_os in
9507       aix4 | aix4.[01] | aix4.[01].*)
9508       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9509            echo ' yes '
9510            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9511         :
9512       else
9513         can_build_shared=no
9514       fi
9515       ;;
9516     esac
9517     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9518     # soname into executable. Probably we can add versioning support to
9519     # collect2, so additional links can be useful in future.
9520     if test "$aix_use_runtimelinking" = yes; then
9521       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9522       # instead of lib<name>.a to let people know that these are not
9523       # typical AIX shared libraries.
9524       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525     else
9526       # We preserve .a as extension for shared libraries through AIX4.2
9527       # and later when we are not doing run time linking.
9528       library_names_spec='${libname}${release}.a $libname.a'
9529       soname_spec='${libname}${release}${shared_ext}$major'
9530     fi
9531     shlibpath_var=LIBPATH
9532   fi
9533   ;;
9534
9535 amigaos*)
9536   case $host_cpu in
9537   powerpc)
9538     # Since July 2007 AmigaOS4 officially supports .so libraries.
9539     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541     ;;
9542   m68k)
9543     library_names_spec='$libname.ixlibrary $libname.a'
9544     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9545     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'
9546     ;;
9547   esac
9548   ;;
9549
9550 beos*)
9551   library_names_spec='${libname}${shared_ext}'
9552   dynamic_linker="$host_os ld.so"
9553   shlibpath_var=LIBRARY_PATH
9554   ;;
9555
9556 bsdi[45]*)
9557   version_type=linux
9558   need_version=no
9559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560   soname_spec='${libname}${release}${shared_ext}$major'
9561   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9562   shlibpath_var=LD_LIBRARY_PATH
9563   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9564   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9565   # the default ld.so.conf also contains /usr/contrib/lib and
9566   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9567   # libtool to hard-code these into programs
9568   ;;
9569
9570 cygwin* | mingw* | pw32* | cegcc*)
9571   version_type=windows
9572   shrext_cmds=".dll"
9573   need_version=no
9574   need_lib_prefix=no
9575
9576   case $GCC,$host_os in
9577   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9578     library_names_spec='$libname.dll.a'
9579     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9580     postinstall_cmds='base_file=`basename \${file}`~
9581       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9582       dldir=$destdir/`dirname \$dlpath`~
9583       test -d \$dldir || mkdir -p \$dldir~
9584       $install_prog $dir/$dlname \$dldir/$dlname~
9585       chmod a+x \$dldir/$dlname~
9586       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9587         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9588       fi'
9589     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9590       dlpath=$dir/\$dldll~
9591        $RM \$dlpath'
9592     shlibpath_overrides_runpath=yes
9593
9594     case $host_os in
9595     cygwin*)
9596       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9597       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9598       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9599       ;;
9600     mingw* | cegcc*)
9601       # MinGW DLLs use traditional 'lib' prefix
9602       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9603       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9604       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9605         # It is most probably a Windows format PATH printed by
9606         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9607         # path with ; separators, and with drive letters. We can handle the
9608         # drive letters (cygwin fileutils understands them), so leave them,
9609         # especially as we might pass files found there to a mingw objdump,
9610         # which wouldn't understand a cygwinified path. Ahh.
9611         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9612       else
9613         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9614       fi
9615       ;;
9616     pw32*)
9617       # pw32 DLLs use 'pw' prefix rather than 'lib'
9618       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9619       ;;
9620     esac
9621     ;;
9622
9623   *)
9624     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9625     ;;
9626   esac
9627   dynamic_linker='Win32 ld.exe'
9628   # FIXME: first we should search . and the directory the executable is in
9629   shlibpath_var=PATH
9630   ;;
9631
9632 darwin* | rhapsody*)
9633   dynamic_linker="$host_os dyld"
9634   version_type=darwin
9635   need_lib_prefix=no
9636   need_version=no
9637   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9638   soname_spec='${libname}${release}${major}$shared_ext'
9639   shlibpath_overrides_runpath=yes
9640   shlibpath_var=DYLD_LIBRARY_PATH
9641   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9642
9643   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9644   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9645   ;;
9646
9647 dgux*)
9648   version_type=linux
9649   need_lib_prefix=no
9650   need_version=no
9651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9652   soname_spec='${libname}${release}${shared_ext}$major'
9653   shlibpath_var=LD_LIBRARY_PATH
9654   ;;
9655
9656 freebsd1*)
9657   dynamic_linker=no
9658   ;;
9659
9660 freebsd* | dragonfly*)
9661   # DragonFly does not have aout.  When/if they implement a new
9662   # versioning mechanism, adjust this.
9663   if test -x /usr/bin/objformat; then
9664     objformat=`/usr/bin/objformat`
9665   else
9666     case $host_os in
9667     freebsd[123]*) objformat=aout ;;
9668     *) objformat=elf ;;
9669     esac
9670   fi
9671   version_type=freebsd-$objformat
9672   case $version_type in
9673     freebsd-elf*)
9674       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9675       need_version=no
9676       need_lib_prefix=no
9677       ;;
9678     freebsd-*)
9679       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9680       need_version=yes
9681       ;;
9682   esac
9683   shlibpath_var=LD_LIBRARY_PATH
9684   case $host_os in
9685   freebsd2*)
9686     shlibpath_overrides_runpath=yes
9687     ;;
9688   freebsd3.[01]* | freebsdelf3.[01]*)
9689     shlibpath_overrides_runpath=yes
9690     hardcode_into_libs=yes
9691     ;;
9692   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9693   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9694     shlibpath_overrides_runpath=no
9695     hardcode_into_libs=yes
9696     ;;
9697   *) # from 4.6 on, and DragonFly
9698     shlibpath_overrides_runpath=yes
9699     hardcode_into_libs=yes
9700     ;;
9701   esac
9702   ;;
9703
9704 gnu*)
9705   version_type=linux
9706   need_lib_prefix=no
9707   need_version=no
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9709   soname_spec='${libname}${release}${shared_ext}$major'
9710   shlibpath_var=LD_LIBRARY_PATH
9711   hardcode_into_libs=yes
9712   ;;
9713
9714 hpux9* | hpux10* | hpux11*)
9715   # Give a soname corresponding to the major version so that dld.sl refuses to
9716   # link against other versions.
9717   version_type=sunos
9718   need_lib_prefix=no
9719   need_version=no
9720   case $host_cpu in
9721   ia64*)
9722     shrext_cmds='.so'
9723     hardcode_into_libs=yes
9724     dynamic_linker="$host_os dld.so"
9725     shlibpath_var=LD_LIBRARY_PATH
9726     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728     soname_spec='${libname}${release}${shared_ext}$major'
9729     if test "X$HPUX_IA64_MODE" = X32; then
9730       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9731     else
9732       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9733     fi
9734     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9735     ;;
9736   hppa*64*)
9737     shrext_cmds='.sl'
9738     hardcode_into_libs=yes
9739     dynamic_linker="$host_os dld.sl"
9740     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743     soname_spec='${libname}${release}${shared_ext}$major'
9744     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9745     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9746     ;;
9747   *)
9748     shrext_cmds='.sl'
9749     dynamic_linker="$host_os dld.sl"
9750     shlibpath_var=SHLIB_PATH
9751     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753     soname_spec='${libname}${release}${shared_ext}$major'
9754     ;;
9755   esac
9756   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9757   postinstall_cmds='chmod 555 $lib'
9758   ;;
9759
9760 interix[3-9]*)
9761   version_type=linux
9762   need_lib_prefix=no
9763   need_version=no
9764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9765   soname_spec='${libname}${release}${shared_ext}$major'
9766   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9767   shlibpath_var=LD_LIBRARY_PATH
9768   shlibpath_overrides_runpath=no
9769   hardcode_into_libs=yes
9770   ;;
9771
9772 irix5* | irix6* | nonstopux*)
9773   case $host_os in
9774     nonstopux*) version_type=nonstopux ;;
9775     *)
9776         if test "$lt_cv_prog_gnu_ld" = yes; then
9777                 version_type=linux
9778         else
9779                 version_type=irix
9780         fi ;;
9781   esac
9782   need_lib_prefix=no
9783   need_version=no
9784   soname_spec='${libname}${release}${shared_ext}$major'
9785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9786   case $host_os in
9787   irix5* | nonstopux*)
9788     libsuff= shlibsuff=
9789     ;;
9790   *)
9791     case $LD in # libtool.m4 will add one of these switches to LD
9792     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9793       libsuff= shlibsuff= libmagic=32-bit;;
9794     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9795       libsuff=32 shlibsuff=N32 libmagic=N32;;
9796     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9797       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9798     *) libsuff= shlibsuff= libmagic=never-match;;
9799     esac
9800     ;;
9801   esac
9802   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9803   shlibpath_overrides_runpath=no
9804   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9805   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9806   hardcode_into_libs=yes
9807   ;;
9808
9809 # No shared lib support for Linux oldld, aout, or coff.
9810 linux*oldld* | linux*aout* | linux*coff*)
9811   dynamic_linker=no
9812   ;;
9813
9814 # This must be Linux ELF.
9815 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9816   version_type=linux
9817   need_lib_prefix=no
9818   need_version=no
9819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9822   shlibpath_var=LD_LIBRARY_PATH
9823   shlibpath_overrides_runpath=no
9824
9825   # Some binutils ld are patched to set DT_RUNPATH
9826   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9827   $as_echo_n "(cached) " >&6
9828 else
9829   lt_cv_shlibpath_overrides_runpath=no
9830     save_LDFLAGS=$LDFLAGS
9831     save_libdir=$libdir
9832     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9833          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9834     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h.  */
9836
9837 int
9838 main ()
9839 {
9840
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9846   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9847   lt_cv_shlibpath_overrides_runpath=yes
9848 fi
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext \
9851     conftest$ac_exeext conftest.$ac_ext
9852     LDFLAGS=$save_LDFLAGS
9853     libdir=$save_libdir
9854
9855 fi
9856
9857   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9858
9859   # This implies no fast_install, which is unacceptable.
9860   # Some rework will be needed to allow for fast_install
9861   # before this can be enabled.
9862   hardcode_into_libs=yes
9863
9864   # Append ld.so.conf contents to the search path
9865   if test -f /etc/ld.so.conf; then
9866     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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9867     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9868   fi
9869
9870   # We used to test for /lib/ld.so.1 and disable shared libraries on
9871   # powerpc, because MkLinux only supported shared libraries with the
9872   # GNU dynamic linker.  Since this was broken with cross compilers,
9873   # most powerpc-linux boxes support dynamic linking these days and
9874   # people can always --disable-shared, the test was removed, and we
9875   # assume the GNU/Linux dynamic linker is in use.
9876   dynamic_linker='GNU/Linux ld.so'
9877   ;;
9878
9879 netbsd*)
9880   version_type=sunos
9881   need_lib_prefix=no
9882   need_version=no
9883   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9885     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9886     dynamic_linker='NetBSD (a.out) ld.so'
9887   else
9888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9889     soname_spec='${libname}${release}${shared_ext}$major'
9890     dynamic_linker='NetBSD ld.elf_so'
9891   fi
9892   shlibpath_var=LD_LIBRARY_PATH
9893   shlibpath_overrides_runpath=yes
9894   hardcode_into_libs=yes
9895   ;;
9896
9897 newsos6)
9898   version_type=linux
9899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900   shlibpath_var=LD_LIBRARY_PATH
9901   shlibpath_overrides_runpath=yes
9902   ;;
9903
9904 *nto* | *qnx*)
9905   version_type=qnx
9906   need_lib_prefix=no
9907   need_version=no
9908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909   soname_spec='${libname}${release}${shared_ext}$major'
9910   shlibpath_var=LD_LIBRARY_PATH
9911   shlibpath_overrides_runpath=no
9912   hardcode_into_libs=yes
9913   dynamic_linker='ldqnx.so'
9914   ;;
9915
9916 openbsd*)
9917   version_type=sunos
9918   sys_lib_dlsearch_path_spec="/usr/lib"
9919   need_lib_prefix=no
9920   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9921   case $host_os in
9922     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9923     *)                          need_version=no  ;;
9924   esac
9925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9926   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9927   shlibpath_var=LD_LIBRARY_PATH
9928   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9929     case $host_os in
9930       openbsd2.[89] | openbsd2.[89].*)
9931         shlibpath_overrides_runpath=no
9932         ;;
9933       *)
9934         shlibpath_overrides_runpath=yes
9935         ;;
9936       esac
9937   else
9938     shlibpath_overrides_runpath=yes
9939   fi
9940   ;;
9941
9942 os2*)
9943   libname_spec='$name'
9944   shrext_cmds=".dll"
9945   need_lib_prefix=no
9946   library_names_spec='$libname${shared_ext} $libname.a'
9947   dynamic_linker='OS/2 ld.exe'
9948   shlibpath_var=LIBPATH
9949   ;;
9950
9951 osf3* | osf4* | osf5*)
9952   version_type=osf
9953   need_lib_prefix=no
9954   need_version=no
9955   soname_spec='${libname}${release}${shared_ext}$major'
9956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957   shlibpath_var=LD_LIBRARY_PATH
9958   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9959   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9960   ;;
9961
9962 rdos*)
9963   dynamic_linker=no
9964   ;;
9965
9966 solaris*)
9967   version_type=linux
9968   need_lib_prefix=no
9969   need_version=no
9970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971   soname_spec='${libname}${release}${shared_ext}$major'
9972   shlibpath_var=LD_LIBRARY_PATH
9973   shlibpath_overrides_runpath=yes
9974   hardcode_into_libs=yes
9975   # ldd complains unless libraries are executable
9976   postinstall_cmds='chmod +x $lib'
9977   ;;
9978
9979 sunos4*)
9980   version_type=sunos
9981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9982   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9983   shlibpath_var=LD_LIBRARY_PATH
9984   shlibpath_overrides_runpath=yes
9985   if test "$with_gnu_ld" = yes; then
9986     need_lib_prefix=no
9987   fi
9988   need_version=yes
9989   ;;
9990
9991 sysv4 | sysv4.3*)
9992   version_type=linux
9993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994   soname_spec='${libname}${release}${shared_ext}$major'
9995   shlibpath_var=LD_LIBRARY_PATH
9996   case $host_vendor in
9997     sni)
9998       shlibpath_overrides_runpath=no
9999       need_lib_prefix=no
10000       runpath_var=LD_RUN_PATH
10001       ;;
10002     siemens)
10003       need_lib_prefix=no
10004       ;;
10005     motorola)
10006       need_lib_prefix=no
10007       need_version=no
10008       shlibpath_overrides_runpath=no
10009       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10010       ;;
10011   esac
10012   ;;
10013
10014 sysv4*MP*)
10015   if test -d /usr/nec ;then
10016     version_type=linux
10017     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10018     soname_spec='$libname${shared_ext}.$major'
10019     shlibpath_var=LD_LIBRARY_PATH
10020   fi
10021   ;;
10022
10023 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10024   version_type=freebsd-elf
10025   need_lib_prefix=no
10026   need_version=no
10027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10028   soname_spec='${libname}${release}${shared_ext}$major'
10029   shlibpath_var=LD_LIBRARY_PATH
10030   shlibpath_overrides_runpath=yes
10031   hardcode_into_libs=yes
10032   if test "$with_gnu_ld" = yes; then
10033     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10034   else
10035     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10036     case $host_os in
10037       sco3.2v5*)
10038         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10039         ;;
10040     esac
10041   fi
10042   sys_lib_dlsearch_path_spec='/usr/lib'
10043   ;;
10044
10045 tpf*)
10046   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10047   version_type=linux
10048   need_lib_prefix=no
10049   need_version=no
10050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051   shlibpath_var=LD_LIBRARY_PATH
10052   shlibpath_overrides_runpath=no
10053   hardcode_into_libs=yes
10054   ;;
10055
10056 uts4*)
10057   version_type=linux
10058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059   soname_spec='${libname}${release}${shared_ext}$major'
10060   shlibpath_var=LD_LIBRARY_PATH
10061   ;;
10062
10063 *)
10064   dynamic_linker=no
10065   ;;
10066 esac
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10068 $as_echo "$dynamic_linker" >&6; }
10069 test "$dynamic_linker" = no && can_build_shared=no
10070
10071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10072 if test "$GCC" = yes; then
10073   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10074 fi
10075
10076 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10077   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10078 fi
10079 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10080   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10170 $as_echo_n "checking how to hardcode library paths into programs... " >&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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10195 $as_echo "$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* | cegcc*)
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10240 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10241 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10242   $as_echo_n "(cached) " >&6
10243 else
10244   ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-ldl  $LIBS"
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h.  */
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250    Use char because int might match the return type of a GCC
10251    builtin and then its argument prototype would still apply.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char dlopen ();
10256 int
10257 main ()
10258 {
10259 return dlopen ();
10260   ;
10261   return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10265   ac_cv_lib_dl_dlopen=yes
10266 else
10267   ac_cv_lib_dl_dlopen=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext \
10270     conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10274 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10275 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10276   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10277 else
10278
10279     lt_cv_dlopen="dyld"
10280     lt_cv_dlopen_libs=
10281     lt_cv_dlopen_self=yes
10282
10283 fi
10284
10285     ;;
10286
10287   *)
10288     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10289 if test "x$ac_cv_func_shl_load" = x""yes; then :
10290   lt_cv_dlopen="shl_load"
10291 else
10292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10293 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10294 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10295   $as_echo_n "(cached) " >&6
10296 else
10297   ac_check_lib_save_LIBS=$LIBS
10298 LIBS="-ldld  $LIBS"
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h.  */
10301
10302 /* Override any GCC internal prototype to avoid an error.
10303    Use char because int might match the return type of a GCC
10304    builtin and then its argument prototype would still apply.  */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char shl_load ();
10309 int
10310 main ()
10311 {
10312 return shl_load ();
10313   ;
10314   return 0;
10315 }
10316 _ACEOF
10317 if ac_fn_c_try_link "$LINENO"; then :
10318   ac_cv_lib_dld_shl_load=yes
10319 else
10320   ac_cv_lib_dld_shl_load=no
10321 fi
10322 rm -f core conftest.err conftest.$ac_objext \
10323     conftest$ac_exeext conftest.$ac_ext
10324 LIBS=$ac_check_lib_save_LIBS
10325 fi
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10327 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10328 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10329   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10330 else
10331   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10332 if test "x$ac_cv_func_dlopen" = x""yes; then :
10333   lt_cv_dlopen="dlopen"
10334 else
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10336 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10337 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10338   $as_echo_n "(cached) " >&6
10339 else
10340   ac_check_lib_save_LIBS=$LIBS
10341 LIBS="-ldl  $LIBS"
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h.  */
10344
10345 /* Override any GCC internal prototype to avoid an error.
10346    Use char because int might match the return type of a GCC
10347    builtin and then its argument prototype would still apply.  */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 char dlopen ();
10352 int
10353 main ()
10354 {
10355 return dlopen ();
10356   ;
10357   return 0;
10358 }
10359 _ACEOF
10360 if ac_fn_c_try_link "$LINENO"; then :
10361   ac_cv_lib_dl_dlopen=yes
10362 else
10363   ac_cv_lib_dl_dlopen=no
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext \
10366     conftest$ac_exeext conftest.$ac_ext
10367 LIBS=$ac_check_lib_save_LIBS
10368 fi
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10370 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10371 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10372   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10373 else
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10375 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10376 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10377   $as_echo_n "(cached) " >&6
10378 else
10379   ac_check_lib_save_LIBS=$LIBS
10380 LIBS="-lsvld  $LIBS"
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h.  */
10383
10384 /* Override any GCC internal prototype to avoid an error.
10385    Use char because int might match the return type of a GCC
10386    builtin and then its argument prototype would still apply.  */
10387 #ifdef __cplusplus
10388 extern "C"
10389 #endif
10390 char dlopen ();
10391 int
10392 main ()
10393 {
10394 return dlopen ();
10395   ;
10396   return 0;
10397 }
10398 _ACEOF
10399 if ac_fn_c_try_link "$LINENO"; then :
10400   ac_cv_lib_svld_dlopen=yes
10401 else
10402   ac_cv_lib_svld_dlopen=no
10403 fi
10404 rm -f core conftest.err conftest.$ac_objext \
10405     conftest$ac_exeext conftest.$ac_ext
10406 LIBS=$ac_check_lib_save_LIBS
10407 fi
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10409 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10410 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10411   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10412 else
10413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10414 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10415 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10416   $as_echo_n "(cached) " >&6
10417 else
10418   ac_check_lib_save_LIBS=$LIBS
10419 LIBS="-ldld  $LIBS"
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h.  */
10422
10423 /* Override any GCC internal prototype to avoid an error.
10424    Use char because int might match the return type of a GCC
10425    builtin and then its argument prototype would still apply.  */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char dld_link ();
10430 int
10431 main ()
10432 {
10433 return dld_link ();
10434   ;
10435   return 0;
10436 }
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439   ac_cv_lib_dld_dld_link=yes
10440 else
10441   ac_cv_lib_dld_dld_link=no
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext \
10444     conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10446 fi
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10448 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10449 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10450   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10451 fi
10452
10453
10454 fi
10455
10456
10457 fi
10458
10459
10460 fi
10461
10462
10463 fi
10464
10465
10466 fi
10467
10468     ;;
10469   esac
10470
10471   if test "x$lt_cv_dlopen" != xno; then
10472     enable_dlopen=yes
10473   else
10474     enable_dlopen=no
10475   fi
10476
10477   case $lt_cv_dlopen in
10478   dlopen)
10479     save_CPPFLAGS="$CPPFLAGS"
10480     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10481
10482     save_LDFLAGS="$LDFLAGS"
10483     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10484
10485     save_LIBS="$LIBS"
10486     LIBS="$lt_cv_dlopen_libs $LIBS"
10487
10488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10489 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10490 if test "${lt_cv_dlopen_self+set}" = set; then :
10491   $as_echo_n "(cached) " >&6
10492 else
10493           if test "$cross_compiling" = yes; then :
10494   lt_cv_dlopen_self=cross
10495 else
10496   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10497   lt_status=$lt_dlunknown
10498   cat > conftest.$ac_ext <<_LT_EOF
10499 #line 10499 "configure"
10500 #include "confdefs.h"
10501
10502 #if HAVE_DLFCN_H
10503 #include <dlfcn.h>
10504 #endif
10505
10506 #include <stdio.h>
10507
10508 #ifdef RTLD_GLOBAL
10509 #  define LT_DLGLOBAL           RTLD_GLOBAL
10510 #else
10511 #  ifdef DL_GLOBAL
10512 #    define LT_DLGLOBAL         DL_GLOBAL
10513 #  else
10514 #    define LT_DLGLOBAL         0
10515 #  endif
10516 #endif
10517
10518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10519    find out it does not work in some platform. */
10520 #ifndef LT_DLLAZY_OR_NOW
10521 #  ifdef RTLD_LAZY
10522 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10523 #  else
10524 #    ifdef DL_LAZY
10525 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10526 #    else
10527 #      ifdef RTLD_NOW
10528 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10529 #      else
10530 #        ifdef DL_NOW
10531 #          define LT_DLLAZY_OR_NOW      DL_NOW
10532 #        else
10533 #          define LT_DLLAZY_OR_NOW      0
10534 #        endif
10535 #      endif
10536 #    endif
10537 #  endif
10538 #endif
10539
10540 void fnord() { int i=42;}
10541 int main ()
10542 {
10543   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10544   int status = $lt_dlunknown;
10545
10546   if (self)
10547     {
10548       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10549       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10550       /* dlclose (self); */
10551     }
10552   else
10553     puts (dlerror ());
10554
10555   return status;
10556 }
10557 _LT_EOF
10558   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10559   (eval $ac_link) 2>&5
10560   ac_status=$?
10561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10562   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10563     (./conftest; exit; ) >&5 2>/dev/null
10564     lt_status=$?
10565     case x$lt_status in
10566       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10567       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10568       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10569     esac
10570   else :
10571     # compilation failed
10572     lt_cv_dlopen_self=no
10573   fi
10574 fi
10575 rm -fr conftest*
10576
10577
10578 fi
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10580 $as_echo "$lt_cv_dlopen_self" >&6; }
10581
10582     if test "x$lt_cv_dlopen_self" = xyes; then
10583       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10584       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10585 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10586 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10587   $as_echo_n "(cached) " >&6
10588 else
10589           if test "$cross_compiling" = yes; then :
10590   lt_cv_dlopen_self_static=cross
10591 else
10592   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10593   lt_status=$lt_dlunknown
10594   cat > conftest.$ac_ext <<_LT_EOF
10595 #line 10595 "configure"
10596 #include "confdefs.h"
10597
10598 #if HAVE_DLFCN_H
10599 #include <dlfcn.h>
10600 #endif
10601
10602 #include <stdio.h>
10603
10604 #ifdef RTLD_GLOBAL
10605 #  define LT_DLGLOBAL           RTLD_GLOBAL
10606 #else
10607 #  ifdef DL_GLOBAL
10608 #    define LT_DLGLOBAL         DL_GLOBAL
10609 #  else
10610 #    define LT_DLGLOBAL         0
10611 #  endif
10612 #endif
10613
10614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10615    find out it does not work in some platform. */
10616 #ifndef LT_DLLAZY_OR_NOW
10617 #  ifdef RTLD_LAZY
10618 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10619 #  else
10620 #    ifdef DL_LAZY
10621 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10622 #    else
10623 #      ifdef RTLD_NOW
10624 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10625 #      else
10626 #        ifdef DL_NOW
10627 #          define LT_DLLAZY_OR_NOW      DL_NOW
10628 #        else
10629 #          define LT_DLLAZY_OR_NOW      0
10630 #        endif
10631 #      endif
10632 #    endif
10633 #  endif
10634 #endif
10635
10636 void fnord() { int i=42;}
10637 int main ()
10638 {
10639   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10640   int status = $lt_dlunknown;
10641
10642   if (self)
10643     {
10644       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10645       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10646       /* dlclose (self); */
10647     }
10648   else
10649     puts (dlerror ());
10650
10651   return status;
10652 }
10653 _LT_EOF
10654   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10655   (eval $ac_link) 2>&5
10656   ac_status=$?
10657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10658   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10659     (./conftest; exit; ) >&5 2>/dev/null
10660     lt_status=$?
10661     case x$lt_status in
10662       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10663       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10664       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10665     esac
10666   else :
10667     # compilation failed
10668     lt_cv_dlopen_self_static=no
10669   fi
10670 fi
10671 rm -fr conftest*
10672
10673
10674 fi
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10676 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10677     fi
10678
10679     CPPFLAGS="$save_CPPFLAGS"
10680     LDFLAGS="$save_LDFLAGS"
10681     LIBS="$save_LIBS"
10682     ;;
10683   esac
10684
10685   case $lt_cv_dlopen_self in
10686   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10687   *) enable_dlopen_self=unknown ;;
10688   esac
10689
10690   case $lt_cv_dlopen_self_static in
10691   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10692   *) enable_dlopen_self_static=unknown ;;
10693   esac
10694 fi
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712 striplib=
10713 old_striplib=
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10715 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10716 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10717   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10718   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; }
10721 else
10722 # FIXME - insert some real tests, host_os isn't really good enough
10723   case $host_os in
10724   darwin*)
10725     if test -n "$STRIP" ; then
10726       striplib="$STRIP -x"
10727       old_striplib="$STRIP -S"
10728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10729 $as_echo "yes" >&6; }
10730     else
10731       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10733     fi
10734     ;;
10735   *)
10736     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10738     ;;
10739   esac
10740 fi
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753   # Report which library types will actually be built
10754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10755 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10757 $as_echo "$can_build_shared" >&6; }
10758
10759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10760 $as_echo_n "checking whether to build shared libraries... " >&6; }
10761   test "$can_build_shared" = "no" && enable_shared=no
10762
10763   # On AIX, shared libraries and static libraries use the same namespace, and
10764   # are all built from PIC.
10765   case $host_os in
10766   aix3*)
10767     test "$enable_shared" = yes && enable_static=no
10768     if test -n "$RANLIB"; then
10769       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10770       postinstall_cmds='$RANLIB $lib'
10771     fi
10772     ;;
10773
10774   aix[4-9]*)
10775     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10776       test "$enable_shared" = yes && enable_static=no
10777     fi
10778     ;;
10779   esac
10780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10781 $as_echo "$enable_shared" >&6; }
10782
10783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10784 $as_echo_n "checking whether to build static libraries... " >&6; }
10785   # Make sure either enable_shared or enable_static is yes.
10786   test "$enable_shared" = yes || enable_static=yes
10787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10788 $as_echo "$enable_static" >&6; }
10789
10790
10791
10792
10793 fi
10794 ac_ext=c
10795 ac_cpp='$CPP $CPPFLAGS'
10796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10799
10800 CC="$lt_save_CC"
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814         ac_config_commands="$ac_config_commands libtool"
10815
10816
10817
10818
10819 # Only expand once:
10820
10821
10822
10823
10824
10825 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10826 if test "x$ac_cv_header_stdint_h" = x""yes; then :
10827   MF_HAVE_STDINT_H=1
10828 else
10829   MF_HAVE_STDINT_H=0
10830 fi
10831
10832
10833
10834 if test $MF_HAVE_STDINT_H = 1
10835 then
10836    MF_HAVE_UINTPTR_T=1
10837 else
10838    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h.  */
10840 #include <sys/types.h>
10841 int
10842 main ()
10843 {
10844 uintptr_t k = 0;
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 if ac_fn_c_try_compile "$LINENO"; then :
10850   MF_HAVE_UINTPTR_T=1
10851 else
10852   MF_HAVE_UINTPTR_T=0
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855 fi
10856
10857
10858 if test ! -d pth
10859 then
10860   # libmudflapth objects are built in this subdirectory
10861   mkdir pth
10862 fi
10863
10864 for ac_header in pthread.h
10865 do :
10866   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10867 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10868   cat >>confdefs.h <<_ACEOF
10869 #define HAVE_PTHREAD_H 1
10870 _ACEOF
10871
10872 fi
10873
10874 done
10875
10876
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
10878 $as_echo_n "checking for thread model used by GCC... " >&6; }
10879 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
10881 $as_echo "$target_thread_file" >&6; }
10882
10883 # We only support posix threads, or no threads at all.
10884 posix_threads=
10885 case ${target_thread_file} in
10886   posix)
10887     posix_threads=yes
10888     ;;
10889   single)
10890     ;;
10891   *)
10892     echo "${target_thread_file} is an unsupported thread package" 1>&2
10893     exit 1
10894     ;;
10895 esac
10896
10897  if test "x$posix_threads" != "x"; then
10898   LIBMUDFLAPTH_TRUE=
10899   LIBMUDFLAPTH_FALSE='#'
10900 else
10901   LIBMUDFLAPTH_TRUE='#'
10902   LIBMUDFLAPTH_FALSE=
10903 fi
10904
10905 if test "x$posix_threads" != "x"
10906 then
10907         build_libmudflapth=1
10908 else
10909         build_libmudflapth=0
10910 fi
10911
10912
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10914 $as_echo_n "checking for dlsym in -ldl... " >&6; }
10915 if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
10916   $as_echo_n "(cached) " >&6
10917 else
10918   ac_check_lib_save_LIBS=$LIBS
10919 LIBS="-ldl  $LIBS"
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h.  */
10922
10923 /* Override any GCC internal prototype to avoid an error.
10924    Use char because int might match the return type of a GCC
10925    builtin and then its argument prototype would still apply.  */
10926 #ifdef __cplusplus
10927 extern "C"
10928 #endif
10929 char dlsym ();
10930 int
10931 main ()
10932 {
10933 return dlsym ();
10934   ;
10935   return 0;
10936 }
10937 _ACEOF
10938 if ac_fn_c_try_link "$LINENO"; then :
10939   ac_cv_lib_dl_dlsym=yes
10940 else
10941   ac_cv_lib_dl_dlsym=no
10942 fi
10943 rm -f core conftest.err conftest.$ac_objext \
10944     conftest$ac_exeext conftest.$ac_ext
10945 LIBS=$ac_check_lib_save_LIBS
10946 fi
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10948 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10949 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
10950   cat >>confdefs.h <<_ACEOF
10951 #define HAVE_LIBDL 1
10952 _ACEOF
10953
10954   LIBS="-ldl $LIBS"
10955
10956 fi
10957
10958
10959 # Calculate toolexeclibdir
10960 # Also toolexecdir, though it's only used in toolexeclibdir
10961 case ${version_specific_libs} in
10962   yes)
10963     # Need the gcc compiler version to know where to install libraries
10964     # and header files if --enable-version-specific-runtime-libs option
10965     # is selected.
10966     toolexecdir='$(libdir)/gcc/$(target_alias)'
10967     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10968     ;;
10969   no)
10970     if test -n "$with_cross_host" &&
10971        test x"$with_cross_host" != x"no"; then
10972       # Install a library built with a cross compiler in tooldir, not libdir.
10973       toolexecdir='$(exec_prefix)/$(target_alias)'
10974       toolexeclibdir='$(toolexecdir)/lib'
10975     else
10976       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10977       toolexeclibdir='$(libdir)'
10978     fi
10979     multi_os_directory=`$CC -print-multi-os-directory`
10980     case $multi_os_directory in
10981       .) ;; # Avoid trailing /.
10982       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10983     esac
10984     ;;
10985 esac
10986
10987
10988
10989 includedir=${toolexecdir}/include
10990
10991
10992 pthread_create_version='""'
10993 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
10994   # NB: don't check for -lpthread here, because then it would be
10995   # added to LIBS.  For the thread-unaware libmudflap.la, we don't
10996   # want it there.
10997
10998   # glibc-related hacks.  dlsym() may pick the wrong version of
10999   # interposed functions like pthread_create on modern glibc.
11000   # We need to find the proper symbol version string, and use
11001   # the nonstandard dlvsym().
11002   for ac_func in dlvsym
11003 do :
11004   ac_fn_c_check_func "$LINENO" "dlvsym" "ac_cv_func_dlvsym"
11005 if test "x$ac_cv_func_dlvsym" = x""yes; then :
11006   cat >>confdefs.h <<_ACEOF
11007 #define HAVE_DLVSYM 1
11008 _ACEOF
11009
11010 fi
11011 done
11012
11013   if test -n "$ac_tool_prefix"; then
11014   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
11015 set dummy ${ac_tool_prefix}nm; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if test "${ac_cv_prog_NM+set}" = set; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   if test -n "$NM"; then
11022   ac_cv_prog_NM="$NM" # Let the user override the test.
11023 else
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11026 do
11027   IFS=$as_save_IFS
11028   test -z "$as_dir" && as_dir=.
11029     for ac_exec_ext in '' $ac_executable_extensions; do
11030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031     ac_cv_prog_NM="${ac_tool_prefix}nm"
11032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033     break 2
11034   fi
11035 done
11036   done
11037 IFS=$as_save_IFS
11038
11039 fi
11040 fi
11041 NM=$ac_cv_prog_NM
11042 if test -n "$NM"; then
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11044 $as_echo "$NM" >&6; }
11045 else
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11048 fi
11049
11050
11051 fi
11052 if test -z "$ac_cv_prog_NM"; then
11053   ac_ct_NM=$NM
11054   # Extract the first word of "nm", so it can be a program name with args.
11055 set dummy nm; ac_word=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
11059   $as_echo_n "(cached) " >&6
11060 else
11061   if test -n "$ac_ct_NM"; then
11062   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
11063 else
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11066 do
11067   IFS=$as_save_IFS
11068   test -z "$as_dir" && as_dir=.
11069     for ac_exec_ext in '' $ac_executable_extensions; do
11070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071     ac_cv_prog_ac_ct_NM="nm"
11072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11073     break 2
11074   fi
11075 done
11076   done
11077 IFS=$as_save_IFS
11078
11079 fi
11080 fi
11081 ac_ct_NM=$ac_cv_prog_ac_ct_NM
11082 if test -n "$ac_ct_NM"; then
11083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
11084 $as_echo "$ac_ct_NM" >&6; }
11085 else
11086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11088 fi
11089
11090   if test "x$ac_ct_NM" = x; then
11091     NM=""
11092   else
11093     case $cross_compiling:$ac_tool_warned in
11094 yes:)
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11097 ac_tool_warned=yes ;;
11098 esac
11099     NM=$ac_ct_NM
11100   fi
11101 else
11102   NM="$ac_cv_prog_NM"
11103 fi
11104
11105   if test "x$ac_cv_have_dlvsym" != "x"; then
11106     # Try compiling a simple pthreads program.  Find the shared libraries it
11107     # ends up with.  Then use "nm" on those libraries to extract the
11108     # default symbol versioning suffix ("@@"), if any.  But that's tricky.
11109     # Rather, run nm on the resulting executable.  Unfortunately, autoconf
11110     # doesn't appear to have a macro that builds a test executable for
11111     # subsequent analysis ... so we do it by hand here.
11112     cat >> conftest.c << EOF
11113 #include <pthread.h>
11114 int main () { void *p = (void *) & pthread_create; return (int) p; }
11115 EOF
11116     oldLIBS="$LIBS"
11117     LIBS="$LIBS -lpthread"
11118     pthread_create_version="\"\""
11119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking pthread_create symbol version" >&5
11120 $as_echo_n "checking pthread_create symbol version... " >&6; }
11121     if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
11122       version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
11123       if test "x$version" != "x"; then
11124         pthread_create_version="\"$version\""
11125       fi
11126     fi
11127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pthread_create_version" >&5
11128 $as_echo "$pthread_create_version" >&6; }
11129     LIBS="$oldLIBS"
11130   fi
11131 fi
11132
11133 cat >>confdefs.h <<_ACEOF
11134 #define PTHREAD_CREATE_VERSION $pthread_create_version
11135 _ACEOF
11136
11137
11138
11139 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
11140 # similarly to how libstdc++ does it
11141 ac_test_CFLAGS="${CFLAGS+set}"
11142 ac_save_CFLAGS="$CFLAGS"
11143
11144 # Check for -ffunction-sections -fdata-sections
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
11146 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
11147 CFLAGS='-Werror -ffunction-sections -fdata-sections'
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h.  */
11150
11151 int
11152 main ()
11153 {
11154 int foo;
11155   ;
11156   return 0;
11157 }
11158 _ACEOF
11159 if ac_fn_c_try_compile "$LINENO"; then :
11160   ac_fdsections=yes
11161 else
11162   ac_fdsections=no
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 if test "$ac_test_CFLAGS" = set; then
11166   CFLAGS="$ac_save_CFLAGS"
11167 else
11168   # this is the suspicious part
11169   CFLAGS=""
11170 fi
11171 if test x"$ac_fdsections" = x"yes"; then
11172   SECTION_FLAGS='-ffunction-sections -fdata-sections'
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
11175 $as_echo "$ac_fdsections" >&6; }
11176
11177
11178
11179 # Check for the name of the symbol used for the entry point.
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the name of the symbol used for the entry point" >&5
11181 $as_echo_n "checking for the name of the symbol used for the entry point... " >&6; }
11182 if test "${mudflap_cv_entry_point+set}" = set; then :
11183   $as_echo_n "(cached) " >&6
11184 else
11185
11186 for name in _start __start unknown; do
11187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h.  */
11189 extern char $name[];
11190 int
11191 main ()
11192 {
11193 $name[0] = 0;
11194   ;
11195   return 0;
11196 }
11197 _ACEOF
11198 if ac_fn_c_try_link "$LINENO"; then :
11199   break
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext \
11202     conftest$ac_exeext conftest.$ac_ext
11203 done
11204 mudflap_cv_entry_point="$name"
11205 fi
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mudflap_cv_entry_point" >&5
11207 $as_echo "$mudflap_cv_entry_point" >&6; }
11208 if test "$mudflap_cv_entry_point" = unknown; then
11209   as_fn_error "none of the known symbol names works" "$LINENO" 5
11210 fi
11211
11212 cat >>confdefs.h <<_ACEOF
11213 #define ENTRY_POINT $mudflap_cv_entry_point
11214 _ACEOF
11215
11216
11217
11218 if test ${multilib} = yes; then
11219   multilib_arg="--enable-multilib"
11220 else
11221   multilib_arg=
11222 fi
11223
11224 # See if we support thread-local storage.
11225
11226
11227    # Check whether --enable-tls was given.
11228 if test "${enable_tls+set}" = set; then :
11229   enableval=$enable_tls;
11230       case "$enableval" in
11231        yes|no) ;;
11232        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
11233       esac
11234
11235 else
11236   enable_tls=yes
11237 fi
11238
11239
11240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
11241 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
11242 if test "${gcc_cv_have_tls+set}" = set; then :
11243   $as_echo_n "(cached) " >&6
11244 else
11245
11246     if test "$cross_compiling" = yes; then :
11247                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h.  */
11249 __thread int a; int b; int main() { return a = b; }
11250 _ACEOF
11251 if ac_fn_c_try_link "$LINENO"; then :
11252   chktls_save_LDFLAGS="$LDFLAGS"
11253                           case $host in
11254             *-*-linux*)
11255               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
11256               ;;
11257           esac
11258           chktls_save_CFLAGS="$CFLAGS"
11259           CFLAGS="-fPIC $CFLAGS"
11260                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h.  */
11262 int f() { return 0; }
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"; then :
11265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h.  */
11267 __thread int a; int b; int f() { return a = b; }
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270   gcc_cv_have_tls=yes
11271 else
11272   gcc_cv_have_tls=no
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275     conftest$ac_exeext conftest.$ac_ext
11276 else
11277   gcc_cv_have_tls=yes
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext \
11280     conftest$ac_exeext conftest.$ac_ext
11281           CFLAGS="$chktls_save_CFLAGS"
11282           LDFLAGS="$chktls_save_LDFLAGS"
11283 else
11284   gcc_cv_have_tls=no
11285 fi
11286 rm -f core conftest.err conftest.$ac_objext \
11287     conftest$ac_exeext conftest.$ac_ext
11288
11289
11290 else
11291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h.  */
11293 __thread int a; int b; int main() { return a = b; }
11294 _ACEOF
11295 if ac_fn_c_try_run "$LINENO"; then :
11296                       chktls_save_LDFLAGS="$LDFLAGS"
11297       LDFLAGS="-static $LDFLAGS"
11298       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h.  */
11300 int main() { return 0; }
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303   if test "$cross_compiling" = yes; then :
11304   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11306 as_fn_error "cannot run test program while cross compiling
11307 See \`config.log' for more details." "$LINENO" 5; }
11308 else
11309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h.  */
11311 __thread int a; int b; int main() { return a = b; }
11312 _ACEOF
11313 if ac_fn_c_try_run "$LINENO"; then :
11314   gcc_cv_have_tls=yes
11315 else
11316   gcc_cv_have_tls=no
11317 fi
11318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11319   conftest.$ac_objext conftest.beam conftest.$ac_ext
11320 fi
11321
11322 else
11323   gcc_cv_have_tls=yes
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326     conftest$ac_exeext conftest.$ac_ext
11327       LDFLAGS="$chktls_save_LDFLAGS"
11328       if test $gcc_cv_have_tls = yes; then
11329                                                 chktls_save_CFLAGS="$CFLAGS"
11330         thread_CFLAGS=failed
11331         for flag in '' '-pthread' '-lpthread'; do
11332           CFLAGS="$flag $chktls_save_CFLAGS"
11333           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h.  */
11335 #include <pthread.h>
11336                 void *g(void *d) { return NULL; }
11337 int
11338 main ()
11339 {
11340 pthread_t t; pthread_create(&t,NULL,g,NULL);
11341   ;
11342   return 0;
11343 }
11344 _ACEOF
11345 if ac_fn_c_try_link "$LINENO"; then :
11346   thread_CFLAGS="$flag"
11347 fi
11348 rm -f core conftest.err conftest.$ac_objext \
11349     conftest$ac_exeext conftest.$ac_ext
11350           if test "X$thread_CFLAGS" != Xfailed; then
11351             break
11352           fi
11353         done
11354         CFLAGS="$chktls_save_CFLAGS"
11355         if test "X$thread_CFLAGS" != Xfailed; then
11356           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
11357           if test "$cross_compiling" = yes; then :
11358   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11360 as_fn_error "cannot run test program while cross compiling
11361 See \`config.log' for more details." "$LINENO" 5; }
11362 else
11363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h.  */
11365 #include <pthread.h>
11366                 __thread int a;
11367                 static int *a_in_other_thread;
11368                 static void *
11369                 thread_func (void *arg)
11370                 {
11371                   a_in_other_thread = &a;
11372                   return (void *)0;
11373                 }
11374 int
11375 main ()
11376 {
11377 pthread_t thread;
11378                 void *thread_retval;
11379                 int *a_in_main_thread;
11380                 if (pthread_create (&thread, (pthread_attr_t *)0,
11381                                     thread_func, (void *)0))
11382                   return 0;
11383                 a_in_main_thread = &a;
11384                 if (pthread_join (thread, &thread_retval))
11385                   return 0;
11386                 return (a_in_other_thread == a_in_main_thread);
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_run "$LINENO"; then :
11392   gcc_cv_have_tls=yes
11393 else
11394   gcc_cv_have_tls=no
11395 fi
11396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11397   conftest.$ac_objext conftest.beam conftest.$ac_ext
11398 fi
11399
11400           CFLAGS="$chktls_save_CFLAGS"
11401         fi
11402       fi
11403 else
11404   gcc_cv_have_tls=no
11405 fi
11406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11407   conftest.$ac_objext conftest.beam conftest.$ac_ext
11408 fi
11409
11410 fi
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
11412 $as_echo "$gcc_cv_have_tls" >&6; }
11413   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
11414
11415 $as_echo "#define HAVE_TLS 1" >>confdefs.h
11416
11417   fi
11418
11419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
11420 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
11421 if test "${gcc_cv_use_emutls+set}" = set; then :
11422   $as_echo_n "(cached) " >&6
11423 else
11424
11425     gcc_cv_use_emutls=no
11426     echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
11427     if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
11428   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11429   (eval $ac_try) 2>&5
11430   ac_status=$?
11431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11432   test $ac_status = 0; }; }; then
11433       if grep __emutls_get_address conftest.s > /dev/null; then
11434         gcc_cv_use_emutls=yes
11435       fi
11436     fi
11437     rm -f conftest.*
11438
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
11441 $as_echo "$gcc_cv_use_emutls" >&6; }
11442   if test "$gcc_cv_use_emutls" = "yes" ; then
11443
11444 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
11445
11446   fi
11447
11448 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
11449
11450 cat >confcache <<\_ACEOF
11451 # This file is a shell script that caches the results of configure
11452 # tests run on this system so they can be shared between configure
11453 # scripts and configure runs, see configure's option --config-cache.
11454 # It is not useful on other systems.  If it contains results you don't
11455 # want to keep, you may remove or edit it.
11456 #
11457 # config.status only pays attention to the cache file if you give it
11458 # the --recheck option to rerun configure.
11459 #
11460 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11461 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11462 # following values.
11463
11464 _ACEOF
11465
11466 # The following way of writing the cache mishandles newlines in values,
11467 # but we know of no workaround that is simple, portable, and efficient.
11468 # So, we kill variables containing newlines.
11469 # Ultrix sh set writes to stderr and can't be redirected directly,
11470 # and sets the high bit in the cache file unless we assign to the vars.
11471 (
11472   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11473     eval ac_val=\$$ac_var
11474     case $ac_val in #(
11475     *${as_nl}*)
11476       case $ac_var in #(
11477       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11478 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11479       esac
11480       case $ac_var in #(
11481       _ | IFS | as_nl) ;; #(
11482       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11483       *) { eval $ac_var=; unset $ac_var;} ;;
11484       esac ;;
11485     esac
11486   done
11487
11488   (set) 2>&1 |
11489     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11490     *${as_nl}ac_space=\ *)
11491       # `set' does not quote correctly, so add quotes: double-quote
11492       # substitution turns \\\\ into \\, and sed turns \\ into \.
11493       sed -n \
11494         "s/'/'\\\\''/g;
11495           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11496       ;; #(
11497     *)
11498       # `set' quotes correctly as required by POSIX, so do not add quotes.
11499       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11500       ;;
11501     esac |
11502     sort
11503 ) |
11504   sed '
11505      /^ac_cv_env_/b end
11506      t clear
11507      :clear
11508      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11509      t end
11510      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11511      :end' >>confcache
11512 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11513   if test -w "$cache_file"; then
11514     test "x$cache_file" != "x/dev/null" &&
11515       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11516 $as_echo "$as_me: updating cache $cache_file" >&6;}
11517     cat confcache >$cache_file
11518   else
11519     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11520 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11521   fi
11522 fi
11523 rm -f confcache
11524
11525 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11526 # Let make expand exec_prefix.
11527 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11528
11529 DEFS=-DHAVE_CONFIG_H
11530
11531 ac_libobjs=
11532 ac_ltlibobjs=
11533 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11534   # 1. Remove the extension, and $U if already installed.
11535   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11536   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11537   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11538   #    will be set to the directory where LIBOBJS objects are built.
11539   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11540   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11541 done
11542 LIBOBJS=$ac_libobjs
11543
11544 LTLIBOBJS=$ac_ltlibobjs
11545
11546
11547  if test -n "$EXEEXT"; then
11548   am__EXEEXT_TRUE=
11549   am__EXEEXT_FALSE='#'
11550 else
11551   am__EXEEXT_TRUE='#'
11552   am__EXEEXT_FALSE=
11553 fi
11554
11555 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11556   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11558 fi
11559 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11560   as_fn_error "conditional \"AMDEP\" was never defined.
11561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11562 fi
11563 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11564   as_fn_error "conditional \"am__fastdepCC\" was never defined.
11565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11566 fi
11567 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
11568   as_fn_error "conditional \"LIBMUDFLAPTH\" was never defined.
11569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11570 fi
11571
11572 : ${CONFIG_STATUS=./config.status}
11573 ac_write_fail=0
11574 ac_clean_files_save=$ac_clean_files
11575 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11577 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11578 as_write_fail=0
11579 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11580 #! $SHELL
11581 # Generated by $as_me.
11582 # Run this file to recreate the current configuration.
11583 # Compiler output produced by configure, useful for debugging
11584 # configure, is in config.log if it exists.
11585
11586 debug=false
11587 ac_cs_recheck=false
11588 ac_cs_silent=false
11589
11590 SHELL=\${CONFIG_SHELL-$SHELL}
11591 export SHELL
11592 _ASEOF
11593 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11594 ## -------------------- ##
11595 ## M4sh Initialization. ##
11596 ## -------------------- ##
11597
11598 # Be more Bourne compatible
11599 DUALCASE=1; export DUALCASE # for MKS sh
11600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11601   emulate sh
11602   NULLCMD=:
11603   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11604   # is contrary to our usage.  Disable this feature.
11605   alias -g '${1+"$@"}'='"$@"'
11606   setopt NO_GLOB_SUBST
11607 else
11608   case `(set -o) 2>/dev/null` in #(
11609   *posix*) :
11610     set -o posix ;; #(
11611   *) :
11612      ;;
11613 esac
11614 fi
11615
11616
11617 as_nl='
11618 '
11619 export as_nl
11620 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11621 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11624 # Prefer a ksh shell builtin over an external printf program on Solaris,
11625 # but without wasting forks for bash or zsh.
11626 if test -z "$BASH_VERSION$ZSH_VERSION" \
11627     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11628   as_echo='print -r --'
11629   as_echo_n='print -rn --'
11630 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11631   as_echo='printf %s\n'
11632   as_echo_n='printf %s'
11633 else
11634   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11635     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11636     as_echo_n='/usr/ucb/echo -n'
11637   else
11638     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11639     as_echo_n_body='eval
11640       arg=$1;
11641       case $arg in #(
11642       *"$as_nl"*)
11643         expr "X$arg" : "X\\(.*\\)$as_nl";
11644         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11645       esac;
11646       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11647     '
11648     export as_echo_n_body
11649     as_echo_n='sh -c $as_echo_n_body as_echo'
11650   fi
11651   export as_echo_body
11652   as_echo='sh -c $as_echo_body as_echo'
11653 fi
11654
11655 # The user is always right.
11656 if test "${PATH_SEPARATOR+set}" != set; then
11657   PATH_SEPARATOR=:
11658   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11659     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11660       PATH_SEPARATOR=';'
11661   }
11662 fi
11663
11664
11665 # IFS
11666 # We need space, tab and new line, in precisely that order.  Quoting is
11667 # there to prevent editors from complaining about space-tab.
11668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11669 # splitting by setting IFS to empty value.)
11670 IFS=" ""        $as_nl"
11671
11672 # Find who we are.  Look in the path if we contain no directory separator.
11673 case $0 in #((
11674   *[\\/]* ) as_myself=$0 ;;
11675   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11677 do
11678   IFS=$as_save_IFS
11679   test -z "$as_dir" && as_dir=.
11680     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11681   done
11682 IFS=$as_save_IFS
11683
11684      ;;
11685 esac
11686 # We did not find ourselves, most probably we were run as `sh COMMAND'
11687 # in which case we are not to be found in the path.
11688 if test "x$as_myself" = x; then
11689   as_myself=$0
11690 fi
11691 if test ! -f "$as_myself"; then
11692   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11693   exit 1
11694 fi
11695
11696 # Unset variables that we do not need and which cause bugs (e.g. in
11697 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11698 # suppresses any "Segmentation fault" message there.  '((' could
11699 # trigger a bug in pdksh 5.2.14.
11700 for as_var in BASH_ENV ENV MAIL MAILPATH
11701 do eval test x\${$as_var+set} = xset \
11702   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11703 done
11704 PS1='$ '
11705 PS2='> '
11706 PS4='+ '
11707
11708 # NLS nuisances.
11709 LC_ALL=C
11710 export LC_ALL
11711 LANGUAGE=C
11712 export LANGUAGE
11713
11714 # CDPATH.
11715 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11716
11717
11718 # as_fn_error ERROR [LINENO LOG_FD]
11719 # ---------------------------------
11720 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11721 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11722 # script with status $?, using 1 if that was 0.
11723 as_fn_error ()
11724 {
11725   as_status=$?; test $as_status -eq 0 && as_status=1
11726   if test "$3"; then
11727     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11728     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11729   fi
11730   $as_echo "$as_me: error: $1" >&2
11731   as_fn_exit $as_status
11732 } # as_fn_error
11733
11734
11735 # as_fn_set_status STATUS
11736 # -----------------------
11737 # Set $? to STATUS, without forking.
11738 as_fn_set_status ()
11739 {
11740   return $1
11741 } # as_fn_set_status
11742
11743 # as_fn_exit STATUS
11744 # -----------------
11745 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11746 as_fn_exit ()
11747 {
11748   set +e
11749   as_fn_set_status $1
11750   exit $1
11751 } # as_fn_exit
11752
11753 # as_fn_unset VAR
11754 # ---------------
11755 # Portably unset VAR.
11756 as_fn_unset ()
11757 {
11758   { eval $1=; unset $1;}
11759 }
11760 as_unset=as_fn_unset
11761 # as_fn_append VAR VALUE
11762 # ----------------------
11763 # Append the text in VALUE to the end of the definition contained in VAR. Take
11764 # advantage of any shell optimizations that allow amortized linear growth over
11765 # repeated appends, instead of the typical quadratic growth present in naive
11766 # implementations.
11767 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11768   eval 'as_fn_append ()
11769   {
11770     eval $1+=\$2
11771   }'
11772 else
11773   as_fn_append ()
11774   {
11775     eval $1=\$$1\$2
11776   }
11777 fi # as_fn_append
11778
11779 # as_fn_arith ARG...
11780 # ------------------
11781 # Perform arithmetic evaluation on the ARGs, and store the result in the
11782 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11783 # must be portable across $(()) and expr.
11784 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11785   eval 'as_fn_arith ()
11786   {
11787     as_val=$(( $* ))
11788   }'
11789 else
11790   as_fn_arith ()
11791   {
11792     as_val=`expr "$@" || test $? -eq 1`
11793   }
11794 fi # as_fn_arith
11795
11796
11797 if expr a : '\(a\)' >/dev/null 2>&1 &&
11798    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11799   as_expr=expr
11800 else
11801   as_expr=false
11802 fi
11803
11804 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11805   as_basename=basename
11806 else
11807   as_basename=false
11808 fi
11809
11810 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11811   as_dirname=dirname
11812 else
11813   as_dirname=false
11814 fi
11815
11816 as_me=`$as_basename -- "$0" ||
11817 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11818          X"$0" : 'X\(//\)$' \| \
11819          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11820 $as_echo X/"$0" |
11821     sed '/^.*\/\([^/][^/]*\)\/*$/{
11822             s//\1/
11823             q
11824           }
11825           /^X\/\(\/\/\)$/{
11826             s//\1/
11827             q
11828           }
11829           /^X\/\(\/\).*/{
11830             s//\1/
11831             q
11832           }
11833           s/.*/./; q'`
11834
11835 # Avoid depending upon Character Ranges.
11836 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11837 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11838 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11839 as_cr_digits='0123456789'
11840 as_cr_alnum=$as_cr_Letters$as_cr_digits
11841
11842 ECHO_C= ECHO_N= ECHO_T=
11843 case `echo -n x` in #(((((
11844 -n*)
11845   case `echo 'xy\c'` in
11846   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11847   xy)  ECHO_C='\c';;
11848   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11849        ECHO_T=' ';;
11850   esac;;
11851 *)
11852   ECHO_N='-n';;
11853 esac
11854
11855 rm -f conf$$ conf$$.exe conf$$.file
11856 if test -d conf$$.dir; then
11857   rm -f conf$$.dir/conf$$.file
11858 else
11859   rm -f conf$$.dir
11860   mkdir conf$$.dir 2>/dev/null
11861 fi
11862 if (echo >conf$$.file) 2>/dev/null; then
11863   if ln -s conf$$.file conf$$ 2>/dev/null; then
11864     as_ln_s='ln -s'
11865     # ... but there are two gotchas:
11866     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11867     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11868     # In both cases, we have to default to `cp -p'.
11869     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11870       as_ln_s='cp -p'
11871   elif ln conf$$.file conf$$ 2>/dev/null; then
11872     as_ln_s=ln
11873   else
11874     as_ln_s='cp -p'
11875   fi
11876 else
11877   as_ln_s='cp -p'
11878 fi
11879 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11880 rmdir conf$$.dir 2>/dev/null
11881
11882
11883 # as_fn_mkdir_p
11884 # -------------
11885 # Create "$as_dir" as a directory, including parents if necessary.
11886 as_fn_mkdir_p ()
11887 {
11888
11889   case $as_dir in #(
11890   -*) as_dir=./$as_dir;;
11891   esac
11892   test -d "$as_dir" || eval $as_mkdir_p || {
11893     as_dirs=
11894     while :; do
11895       case $as_dir in #(
11896       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11897       *) as_qdir=$as_dir;;
11898       esac
11899       as_dirs="'$as_qdir' $as_dirs"
11900       as_dir=`$as_dirname -- "$as_dir" ||
11901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11902          X"$as_dir" : 'X\(//\)[^/]' \| \
11903          X"$as_dir" : 'X\(//\)$' \| \
11904          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11905 $as_echo X"$as_dir" |
11906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11907             s//\1/
11908             q
11909           }
11910           /^X\(\/\/\)[^/].*/{
11911             s//\1/
11912             q
11913           }
11914           /^X\(\/\/\)$/{
11915             s//\1/
11916             q
11917           }
11918           /^X\(\/\).*/{
11919             s//\1/
11920             q
11921           }
11922           s/.*/./; q'`
11923       test -d "$as_dir" && break
11924     done
11925     test -z "$as_dirs" || eval "mkdir $as_dirs"
11926   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11927
11928
11929 } # as_fn_mkdir_p
11930 if mkdir -p . 2>/dev/null; then
11931   as_mkdir_p='mkdir -p "$as_dir"'
11932 else
11933   test -d ./-p && rmdir ./-p
11934   as_mkdir_p=false
11935 fi
11936
11937 if test -x / >/dev/null 2>&1; then
11938   as_test_x='test -x'
11939 else
11940   if ls -dL / >/dev/null 2>&1; then
11941     as_ls_L_option=L
11942   else
11943     as_ls_L_option=
11944   fi
11945   as_test_x='
11946     eval sh -c '\''
11947       if test -d "$1"; then
11948         test -d "$1/.";
11949       else
11950         case $1 in #(
11951         -*)set "./$1";;
11952         esac;
11953         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11954         ???[sx]*):;;*)false;;esac;fi
11955     '\'' sh
11956   '
11957 fi
11958 as_executable_p=$as_test_x
11959
11960 # Sed expression to map a string onto a valid CPP name.
11961 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11962
11963 # Sed expression to map a string onto a valid variable name.
11964 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11965
11966
11967 exec 6>&1
11968 ## ----------------------------------- ##
11969 ## Main body of $CONFIG_STATUS script. ##
11970 ## ----------------------------------- ##
11971 _ASEOF
11972 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11973
11974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11975 # Save the log message, to keep $0 and so on meaningful, and to
11976 # report actual input values of CONFIG_FILES etc. instead of their
11977 # values after options handling.
11978 ac_log="
11979 This file was extended by libmudflap $as_me 1.0, which was
11980 generated by GNU Autoconf 2.64.  Invocation command line was
11981
11982   CONFIG_FILES    = $CONFIG_FILES
11983   CONFIG_HEADERS  = $CONFIG_HEADERS
11984   CONFIG_LINKS    = $CONFIG_LINKS
11985   CONFIG_COMMANDS = $CONFIG_COMMANDS
11986   $ $0 $@
11987
11988 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11989 "
11990
11991 _ACEOF
11992
11993 case $ac_config_files in *"
11994 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11995 esac
11996
11997 case $ac_config_headers in *"
11998 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11999 esac
12000
12001
12002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12003 # Files that config.status was made for.
12004 config_files="$ac_config_files"
12005 config_headers="$ac_config_headers"
12006 config_commands="$ac_config_commands"
12007
12008 _ACEOF
12009
12010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12011 ac_cs_usage="\
12012 \`$as_me' instantiates files and other configuration actions
12013 from templates according to the current configuration.  Unless the files
12014 and actions are specified as TAGs, all are instantiated by default.
12015
12016 Usage: $0 [OPTION]... [TAG]...
12017
12018   -h, --help       print this help, then exit
12019   -V, --version    print version number and configuration settings, then exit
12020   -q, --quiet, --silent
12021                    do not print progress messages
12022   -d, --debug      don't remove temporary files
12023       --recheck    update $as_me by reconfiguring in the same conditions
12024       --file=FILE[:TEMPLATE]
12025                    instantiate the configuration file FILE
12026       --header=FILE[:TEMPLATE]
12027                    instantiate the configuration header FILE
12028
12029 Configuration files:
12030 $config_files
12031
12032 Configuration headers:
12033 $config_headers
12034
12035 Configuration commands:
12036 $config_commands
12037
12038 Report bugs to the package provider."
12039
12040 _ACEOF
12041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12042 ac_cs_version="\\
12043 libmudflap config.status 1.0
12044 configured by $0, generated by GNU Autoconf 2.64,
12045   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12046
12047 Copyright (C) 2009 Free Software Foundation, Inc.
12048 This config.status script is free software; the Free Software Foundation
12049 gives unlimited permission to copy, distribute and modify it."
12050
12051 ac_pwd='$ac_pwd'
12052 srcdir='$srcdir'
12053 INSTALL='$INSTALL'
12054 MKDIR_P='$MKDIR_P'
12055 AWK='$AWK'
12056 test -n "\$AWK" || AWK=awk
12057 _ACEOF
12058
12059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12060 # The default lists apply if the user does not specify any file.
12061 ac_need_defaults=:
12062 while test $# != 0
12063 do
12064   case $1 in
12065   --*=*)
12066     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12067     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12068     ac_shift=:
12069     ;;
12070   *)
12071     ac_option=$1
12072     ac_optarg=$2
12073     ac_shift=shift
12074     ;;
12075   esac
12076
12077   case $ac_option in
12078   # Handling of the options.
12079   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12080     ac_cs_recheck=: ;;
12081   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12082     $as_echo "$ac_cs_version"; exit ;;
12083   --debug | --debu | --deb | --de | --d | -d )
12084     debug=: ;;
12085   --file | --fil | --fi | --f )
12086     $ac_shift
12087     case $ac_optarg in
12088     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12089     esac
12090     as_fn_append CONFIG_FILES " '$ac_optarg'"
12091     ac_need_defaults=false;;
12092   --header | --heade | --head | --hea )
12093     $ac_shift
12094     case $ac_optarg in
12095     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12096     esac
12097     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12098     ac_need_defaults=false;;
12099   --he | --h)
12100     # Conflict between --help and --header
12101     as_fn_error "ambiguous option: \`$1'
12102 Try \`$0 --help' for more information.";;
12103   --help | --hel | -h )
12104     $as_echo "$ac_cs_usage"; exit ;;
12105   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12106   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12107     ac_cs_silent=: ;;
12108
12109   # This is an error.
12110   -*) as_fn_error "unrecognized option: \`$1'
12111 Try \`$0 --help' for more information." ;;
12112
12113   *) as_fn_append ac_config_targets " $1"
12114      ac_need_defaults=false ;;
12115
12116   esac
12117   shift
12118 done
12119
12120 ac_configure_extra_args=
12121
12122 if $ac_cs_silent; then
12123   exec 6>/dev/null
12124   ac_configure_extra_args="$ac_configure_extra_args --silent"
12125 fi
12126
12127 _ACEOF
12128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129 if \$ac_cs_recheck; then
12130   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12131   shift
12132   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12133   CONFIG_SHELL='$SHELL'
12134   export CONFIG_SHELL
12135   exec "\$@"
12136 fi
12137
12138 _ACEOF
12139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12140 exec 5>>config.log
12141 {
12142   echo
12143   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12144 ## Running $as_me. ##
12145 _ASBOX
12146   $as_echo "$ac_log"
12147 } >&5
12148
12149 _ACEOF
12150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12151 #
12152 # INIT-COMMANDS
12153 #
12154
12155 srcdir="$srcdir"
12156 host="$host"
12157 target="$target"
12158 with_multisubdir="$with_multisubdir"
12159 with_multisrctop="$with_multisrctop"
12160 with_target_subdir="$with_target_subdir"
12161 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12162 multi_basedir="$multi_basedir"
12163 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12164 CC="$CC"
12165 CXX="$CXX"
12166 GFORTRAN="$GFORTRAN"
12167 GCJ="$GCJ"
12168 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12169
12170
12171 # The HP-UX ksh and POSIX shell print the target directory to stdout
12172 # if CDPATH is set.
12173 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12174
12175 sed_quote_subst='$sed_quote_subst'
12176 double_quote_subst='$double_quote_subst'
12177 delay_variable_subst='$delay_variable_subst'
12178 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12179 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12180 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12181 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12182 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12183 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12184 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12185 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12186 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12187 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12188 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12189 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12190 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12191 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12192 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12193 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12194 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12195 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12196 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12197 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12198 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12199 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12200 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12201 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12202 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12203 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12204 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12205 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12206 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12207 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12208 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12209 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12210 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12211 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12212 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12213 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12214 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12215 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12216 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12217 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12218 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12219 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12220 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12221 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12222 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"`'
12223 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12224 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12225 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12226 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12227 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12228 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12229 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12230 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12231 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12232 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12233 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12234 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12235 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12236 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12237 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12238 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12239 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12240 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12241 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12242 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12243 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12244 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12245 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12246 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12247 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12248 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12249 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12250 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12251 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12252 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12253 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12254 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12255 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12256 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12257 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12258 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12259 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12260 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12261 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12262 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12263 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12264 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12265 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12266 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12267 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12268 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12269 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12270 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12271 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12272 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12273 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12274 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12275 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12276 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12277 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12278 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12279 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12280 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12281 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12282 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12283 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12284 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12285 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12286 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12287 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12288 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12289 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12290 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12291 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12292 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12293 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12294 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12295 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12296
12297 LTCC='$LTCC'
12298 LTCFLAGS='$LTCFLAGS'
12299 compiler='$compiler_DEFAULT'
12300
12301 # Quote evaled strings.
12302 for var in SED \
12303 GREP \
12304 EGREP \
12305 FGREP \
12306 LD \
12307 NM \
12308 LN_S \
12309 lt_SP2NL \
12310 lt_NL2SP \
12311 reload_flag \
12312 OBJDUMP \
12313 deplibs_check_method \
12314 file_magic_cmd \
12315 AR \
12316 AR_FLAGS \
12317 STRIP \
12318 RANLIB \
12319 CC \
12320 CFLAGS \
12321 compiler \
12322 lt_cv_sys_global_symbol_pipe \
12323 lt_cv_sys_global_symbol_to_cdecl \
12324 lt_cv_sys_global_symbol_to_c_name_address \
12325 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12326 SHELL \
12327 ECHO \
12328 lt_prog_compiler_no_builtin_flag \
12329 lt_prog_compiler_wl \
12330 lt_prog_compiler_pic \
12331 lt_prog_compiler_static \
12332 lt_cv_prog_compiler_c_o \
12333 need_locks \
12334 DSYMUTIL \
12335 NMEDIT \
12336 LIPO \
12337 OTOOL \
12338 OTOOL64 \
12339 shrext_cmds \
12340 export_dynamic_flag_spec \
12341 whole_archive_flag_spec \
12342 compiler_needs_object \
12343 with_gnu_ld \
12344 allow_undefined_flag \
12345 no_undefined_flag \
12346 hardcode_libdir_flag_spec \
12347 hardcode_libdir_flag_spec_ld \
12348 hardcode_libdir_separator \
12349 fix_srcfile_path \
12350 exclude_expsyms \
12351 include_expsyms \
12352 file_list_spec \
12353 variables_saved_for_relink \
12354 libname_spec \
12355 library_names_spec \
12356 soname_spec \
12357 finish_eval \
12358 old_striplib \
12359 striplib; do
12360     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12361     *[\\\\\\\`\\"\\\$]*)
12362       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12363       ;;
12364     *)
12365       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12366       ;;
12367     esac
12368 done
12369
12370 # Double-quote double-evaled strings.
12371 for var in reload_cmds \
12372 old_postinstall_cmds \
12373 old_postuninstall_cmds \
12374 old_archive_cmds \
12375 extract_expsyms_cmds \
12376 old_archive_from_new_cmds \
12377 old_archive_from_expsyms_cmds \
12378 archive_cmds \
12379 archive_expsym_cmds \
12380 module_cmds \
12381 module_expsym_cmds \
12382 export_symbols_cmds \
12383 prelink_cmds \
12384 postinstall_cmds \
12385 postuninstall_cmds \
12386 finish_cmds \
12387 sys_lib_search_path_spec \
12388 sys_lib_dlsearch_path_spec; do
12389     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12390     *[\\\\\\\`\\"\\\$]*)
12391       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12392       ;;
12393     *)
12394       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12395       ;;
12396     esac
12397 done
12398
12399 # Fix-up fallback echo if it was mangled by the above quoting rules.
12400 case \$lt_ECHO in
12401 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12402   ;;
12403 esac
12404
12405 ac_aux_dir='$ac_aux_dir'
12406 xsi_shell='$xsi_shell'
12407 lt_shell_append='$lt_shell_append'
12408
12409 # See if we are running on zsh, and set the options which allow our
12410 # commands through without removal of \ escapes INIT.
12411 if test -n "\${ZSH_VERSION+set}" ; then
12412    setopt NO_GLOB_SUBST
12413 fi
12414
12415
12416     PACKAGE='$PACKAGE'
12417     VERSION='$VERSION'
12418     TIMESTAMP='$TIMESTAMP'
12419     RM='$RM'
12420     ofile='$ofile'
12421
12422
12423
12424
12425 _ACEOF
12426
12427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12428
12429 # Handling of arguments.
12430 for ac_config_target in $ac_config_targets
12431 do
12432   case $ac_config_target in
12433     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12434     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12435     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12436     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12437     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12438     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
12439     "testsuite/mfconfig.exp") CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
12440
12441   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12442   esac
12443 done
12444
12445
12446 # If the user did not use the arguments to specify the items to instantiate,
12447 # then the envvar interface is used.  Set only those that are not.
12448 # We use the long form for the default assignment because of an extremely
12449 # bizarre bug on SunOS 4.1.3.
12450 if $ac_need_defaults; then
12451   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12452   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12453   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12454 fi
12455
12456 # Have a temporary directory for convenience.  Make it in the build tree
12457 # simply because there is no reason against having it here, and in addition,
12458 # creating and moving files from /tmp can sometimes cause problems.
12459 # Hook for its removal unless debugging.
12460 # Note that there is a small window in which the directory will not be cleaned:
12461 # after its creation but before its name has been assigned to `$tmp'.
12462 $debug ||
12463 {
12464   tmp=
12465   trap 'exit_status=$?
12466   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12467 ' 0
12468   trap 'as_fn_exit 1' 1 2 13 15
12469 }
12470 # Create a (secure) tmp directory for tmp files.
12471
12472 {
12473   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12474   test -n "$tmp" && test -d "$tmp"
12475 }  ||
12476 {
12477   tmp=./conf$$-$RANDOM
12478   (umask 077 && mkdir "$tmp")
12479 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12480
12481 # Set up the scripts for CONFIG_FILES section.
12482 # No need to generate them if there are no CONFIG_FILES.
12483 # This happens for instance with `./config.status config.h'.
12484 if test -n "$CONFIG_FILES"; then
12485
12486
12487 ac_cr=`echo X | tr X '\015'`
12488 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12489 # But we know of no other shell where ac_cr would be empty at this
12490 # point, so we can use a bashism as a fallback.
12491 if test "x$ac_cr" = x; then
12492   eval ac_cr=\$\'\\r\'
12493 fi
12494 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12495 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12496   ac_cs_awk_cr='\r'
12497 else
12498   ac_cs_awk_cr=$ac_cr
12499 fi
12500
12501 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12502 _ACEOF
12503
12504
12505 {
12506   echo "cat >conf$$subs.awk <<_ACEOF" &&
12507   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12508   echo "_ACEOF"
12509 } >conf$$subs.sh ||
12510   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12511 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12512 ac_delim='%!_!# '
12513 for ac_last_try in false false false false false :; do
12514   . ./conf$$subs.sh ||
12515     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12516
12517   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12518   if test $ac_delim_n = $ac_delim_num; then
12519     break
12520   elif $ac_last_try; then
12521     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12522   else
12523     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12524   fi
12525 done
12526 rm -f conf$$subs.sh
12527
12528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12529 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12530 _ACEOF
12531 sed -n '
12532 h
12533 s/^/S["/; s/!.*/"]=/
12534 p
12535 g
12536 s/^[^!]*!//
12537 :repl
12538 t repl
12539 s/'"$ac_delim"'$//
12540 t delim
12541 :nl
12542 h
12543 s/\(.\{148\}\).*/\1/
12544 t more1
12545 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12546 p
12547 n
12548 b repl
12549 :more1
12550 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12551 p
12552 g
12553 s/.\{148\}//
12554 t nl
12555 :delim
12556 h
12557 s/\(.\{148\}\).*/\1/
12558 t more2
12559 s/["\\]/\\&/g; s/^/"/; s/$/"/
12560 p
12561 b
12562 :more2
12563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12564 p
12565 g
12566 s/.\{148\}//
12567 t delim
12568 ' <conf$$subs.awk | sed '
12569 /^[^""]/{
12570   N
12571   s/\n//
12572 }
12573 ' >>$CONFIG_STATUS || ac_write_fail=1
12574 rm -f conf$$subs.awk
12575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12576 _ACAWK
12577 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12578   for (key in S) S_is_set[key] = 1
12579   FS = "\a"
12580
12581 }
12582 {
12583   line = $ 0
12584   nfields = split(line, field, "@")
12585   substed = 0
12586   len = length(field[1])
12587   for (i = 2; i < nfields; i++) {
12588     key = field[i]
12589     keylen = length(key)
12590     if (S_is_set[key]) {
12591       value = S[key]
12592       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12593       len += length(value) + length(field[++i])
12594       substed = 1
12595     } else
12596       len += 1 + keylen
12597   }
12598
12599   print line
12600 }
12601
12602 _ACAWK
12603 _ACEOF
12604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12606   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12607 else
12608   cat
12609 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12610   || as_fn_error "could not setup config files machinery" "$LINENO" 5
12611 _ACEOF
12612
12613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12615 # trailing colons and then remove the whole line if VPATH becomes empty
12616 # (actually we leave an empty line to preserve line numbers).
12617 if test "x$srcdir" = x.; then
12618   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12619 s/:*\$(srcdir):*/:/
12620 s/:*\${srcdir}:*/:/
12621 s/:*@srcdir@:*/:/
12622 s/^\([^=]*=[     ]*\):*/\1/
12623 s/:*$//
12624 s/^[^=]*=[       ]*$//
12625 }'
12626 fi
12627
12628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12629 fi # test -n "$CONFIG_FILES"
12630
12631 # Set up the scripts for CONFIG_HEADERS section.
12632 # No need to generate them if there are no CONFIG_HEADERS.
12633 # This happens for instance with `./config.status Makefile'.
12634 if test -n "$CONFIG_HEADERS"; then
12635 cat >"$tmp/defines.awk" <<\_ACAWK ||
12636 BEGIN {
12637 _ACEOF
12638
12639 # Transform confdefs.h into an awk script `defines.awk', embedded as
12640 # here-document in config.status, that substitutes the proper values into
12641 # config.h.in to produce config.h.
12642
12643 # Create a delimiter string that does not exist in confdefs.h, to ease
12644 # handling of long lines.
12645 ac_delim='%!_!# '
12646 for ac_last_try in false false :; do
12647   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12648   if test -z "$ac_t"; then
12649     break
12650   elif $ac_last_try; then
12651     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12652   else
12653     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12654   fi
12655 done
12656
12657 # For the awk script, D is an array of macro values keyed by name,
12658 # likewise P contains macro parameters if any.  Preserve backslash
12659 # newline sequences.
12660
12661 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12662 sed -n '
12663 s/.\{148\}/&'"$ac_delim"'/g
12664 t rset
12665 :rset
12666 s/^[     ]*#[    ]*define[       ][      ]*/ /
12667 t def
12668 d
12669 :def
12670 s/\\$//
12671 t bsnl
12672 s/["\\]/\\&/g
12673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12674 D["\1"]=" \3"/p
12675 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12676 d
12677 :bsnl
12678 s/["\\]/\\&/g
12679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12680 D["\1"]=" \3\\\\\\n"\\/p
12681 t cont
12682 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12683 t cont
12684 d
12685 :cont
12686 n
12687 s/.\{148\}/&'"$ac_delim"'/g
12688 t clear
12689 :clear
12690 s/\\$//
12691 t bsnlc
12692 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12693 d
12694 :bsnlc
12695 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12696 b cont
12697 ' <confdefs.h | sed '
12698 s/'"$ac_delim"'/"\\\
12699 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12700
12701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12702   for (key in D) D_is_set[key] = 1
12703   FS = "\a"
12704 }
12705 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12706   line = \$ 0
12707   split(line, arg, " ")
12708   if (arg[1] == "#") {
12709     defundef = arg[2]
12710     mac1 = arg[3]
12711   } else {
12712     defundef = substr(arg[1], 2)
12713     mac1 = arg[2]
12714   }
12715   split(mac1, mac2, "(") #)
12716   macro = mac2[1]
12717   prefix = substr(line, 1, index(line, defundef) - 1)
12718   if (D_is_set[macro]) {
12719     # Preserve the white space surrounding the "#".
12720     print prefix "define", macro P[macro] D[macro]
12721     next
12722   } else {
12723     # Replace #undef with comments.  This is necessary, for example,
12724     # in the case of _POSIX_SOURCE, which is predefined and required
12725     # on some systems where configure will not decide to define it.
12726     if (defundef == "undef") {
12727       print "/*", prefix defundef, macro, "*/"
12728       next
12729     }
12730   }
12731 }
12732 { print }
12733 _ACAWK
12734 _ACEOF
12735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12736   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12737 fi # test -n "$CONFIG_HEADERS"
12738
12739
12740 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12741 shift
12742 for ac_tag
12743 do
12744   case $ac_tag in
12745   :[FHLC]) ac_mode=$ac_tag; continue;;
12746   esac
12747   case $ac_mode$ac_tag in
12748   :[FHL]*:*);;
12749   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12750   :[FH]-) ac_tag=-:-;;
12751   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12752   esac
12753   ac_save_IFS=$IFS
12754   IFS=:
12755   set x $ac_tag
12756   IFS=$ac_save_IFS
12757   shift
12758   ac_file=$1
12759   shift
12760
12761   case $ac_mode in
12762   :L) ac_source=$1;;
12763   :[FH])
12764     ac_file_inputs=
12765     for ac_f
12766     do
12767       case $ac_f in
12768       -) ac_f="$tmp/stdin";;
12769       *) # Look for the file first in the build tree, then in the source tree
12770          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12771          # because $ac_f cannot contain `:'.
12772          test -f "$ac_f" ||
12773            case $ac_f in
12774            [\\/$]*) false;;
12775            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12776            esac ||
12777            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12778       esac
12779       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12780       as_fn_append ac_file_inputs " '$ac_f'"
12781     done
12782
12783     # Let's still pretend it is `configure' which instantiates (i.e., don't
12784     # use $as_me), people would be surprised to read:
12785     #    /* config.h.  Generated by config.status.  */
12786     configure_input='Generated from '`
12787           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12788         `' by configure.'
12789     if test x"$ac_file" != x-; then
12790       configure_input="$ac_file.  $configure_input"
12791       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12792 $as_echo "$as_me: creating $ac_file" >&6;}
12793     fi
12794     # Neutralize special characters interpreted by sed in replacement strings.
12795     case $configure_input in #(
12796     *\&* | *\|* | *\\* )
12797        ac_sed_conf_input=`$as_echo "$configure_input" |
12798        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12799     *) ac_sed_conf_input=$configure_input;;
12800     esac
12801
12802     case $ac_tag in
12803     *:-:* | *:-) cat >"$tmp/stdin" \
12804       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12805     esac
12806     ;;
12807   esac
12808
12809   ac_dir=`$as_dirname -- "$ac_file" ||
12810 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12811          X"$ac_file" : 'X\(//\)[^/]' \| \
12812          X"$ac_file" : 'X\(//\)$' \| \
12813          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12814 $as_echo X"$ac_file" |
12815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12816             s//\1/
12817             q
12818           }
12819           /^X\(\/\/\)[^/].*/{
12820             s//\1/
12821             q
12822           }
12823           /^X\(\/\/\)$/{
12824             s//\1/
12825             q
12826           }
12827           /^X\(\/\).*/{
12828             s//\1/
12829             q
12830           }
12831           s/.*/./; q'`
12832   as_dir="$ac_dir"; as_fn_mkdir_p
12833   ac_builddir=.
12834
12835 case "$ac_dir" in
12836 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12837 *)
12838   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12839   # A ".." for each directory in $ac_dir_suffix.
12840   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12841   case $ac_top_builddir_sub in
12842   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12843   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12844   esac ;;
12845 esac
12846 ac_abs_top_builddir=$ac_pwd
12847 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12848 # for backward compatibility:
12849 ac_top_builddir=$ac_top_build_prefix
12850
12851 case $srcdir in
12852   .)  # We are building in place.
12853     ac_srcdir=.
12854     ac_top_srcdir=$ac_top_builddir_sub
12855     ac_abs_top_srcdir=$ac_pwd ;;
12856   [\\/]* | ?:[\\/]* )  # Absolute name.
12857     ac_srcdir=$srcdir$ac_dir_suffix;
12858     ac_top_srcdir=$srcdir
12859     ac_abs_top_srcdir=$srcdir ;;
12860   *) # Relative name.
12861     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12862     ac_top_srcdir=$ac_top_build_prefix$srcdir
12863     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12864 esac
12865 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12866
12867
12868   case $ac_mode in
12869   :F)
12870   #
12871   # CONFIG_FILE
12872   #
12873
12874   case $INSTALL in
12875   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12876   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12877   esac
12878   ac_MKDIR_P=$MKDIR_P
12879   case $MKDIR_P in
12880   [\\/$]* | ?:[\\/]* ) ;;
12881   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12882   esac
12883 _ACEOF
12884
12885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12886 # If the template does not know about datarootdir, expand it.
12887 # FIXME: This hack should be removed a few years after 2.60.
12888 ac_datarootdir_hack=; ac_datarootdir_seen=
12889 ac_sed_dataroot='
12890 /datarootdir/ {
12891   p
12892   q
12893 }
12894 /@datadir@/p
12895 /@docdir@/p
12896 /@infodir@/p
12897 /@localedir@/p
12898 /@mandir@/p'
12899 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12900 *datarootdir*) ac_datarootdir_seen=yes;;
12901 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12903 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12904 _ACEOF
12905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12906   ac_datarootdir_hack='
12907   s&@datadir@&$datadir&g
12908   s&@docdir@&$docdir&g
12909   s&@infodir@&$infodir&g
12910   s&@localedir@&$localedir&g
12911   s&@mandir@&$mandir&g
12912   s&\\\${datarootdir}&$datarootdir&g' ;;
12913 esac
12914 _ACEOF
12915
12916 # Neutralize VPATH when `$srcdir' = `.'.
12917 # Shell code in configure.ac might set extrasub.
12918 # FIXME: do we really want to maintain this feature?
12919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12920 ac_sed_extra="$ac_vpsub
12921 $extrasub
12922 _ACEOF
12923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12924 :t
12925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12926 s|@configure_input@|$ac_sed_conf_input|;t t
12927 s&@top_builddir@&$ac_top_builddir_sub&;t t
12928 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12929 s&@srcdir@&$ac_srcdir&;t t
12930 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12931 s&@top_srcdir@&$ac_top_srcdir&;t t
12932 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12933 s&@builddir@&$ac_builddir&;t t
12934 s&@abs_builddir@&$ac_abs_builddir&;t t
12935 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12936 s&@INSTALL@&$ac_INSTALL&;t t
12937 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12938 $ac_datarootdir_hack
12939 "
12940 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12941   || as_fn_error "could not create $ac_file" "$LINENO" 5
12942
12943 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12944   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12945   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12946   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12947 which seems to be undefined.  Please make sure it is defined." >&5
12948 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12949 which seems to be undefined.  Please make sure it is defined." >&2;}
12950
12951   rm -f "$tmp/stdin"
12952   case $ac_file in
12953   -) cat "$tmp/out" && rm -f "$tmp/out";;
12954   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12955   esac \
12956   || as_fn_error "could not create $ac_file" "$LINENO" 5
12957  ;;
12958   :H)
12959   #
12960   # CONFIG_HEADER
12961   #
12962   if test x"$ac_file" != x-; then
12963     {
12964       $as_echo "/* $configure_input  */" \
12965       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12966     } >"$tmp/config.h" \
12967       || as_fn_error "could not create $ac_file" "$LINENO" 5
12968     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12969       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12970 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12971     else
12972       rm -f "$ac_file"
12973       mv "$tmp/config.h" "$ac_file" \
12974         || as_fn_error "could not create $ac_file" "$LINENO" 5
12975     fi
12976   else
12977     $as_echo "/* $configure_input  */" \
12978       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12979       || as_fn_error "could not create -" "$LINENO" 5
12980   fi
12981 # Compute "$ac_file"'s index in $config_headers.
12982 _am_arg="$ac_file"
12983 _am_stamp_count=1
12984 for _am_header in $config_headers :; do
12985   case $_am_header in
12986     $_am_arg | $_am_arg:* )
12987       break ;;
12988     * )
12989       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12990   esac
12991 done
12992 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12993 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12994          X"$_am_arg" : 'X\(//\)[^/]' \| \
12995          X"$_am_arg" : 'X\(//\)$' \| \
12996          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12997 $as_echo X"$_am_arg" |
12998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12999             s//\1/
13000             q
13001           }
13002           /^X\(\/\/\)[^/].*/{
13003             s//\1/
13004             q
13005           }
13006           /^X\(\/\/\)$/{
13007             s//\1/
13008             q
13009           }
13010           /^X\(\/\).*/{
13011             s//\1/
13012             q
13013           }
13014           s/.*/./; q'`/stamp-h$_am_stamp_count
13015  ;;
13016
13017   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13018 $as_echo "$as_me: executing $ac_file commands" >&6;}
13019  ;;
13020   esac
13021
13022
13023   case $ac_file$ac_mode in
13024     "default-1":C)
13025 # Only add multilib support code if we just rebuilt the top-level
13026 # Makefile.
13027 case " $CONFIG_FILES " in
13028  *" Makefile "*)
13029    ac_file=Makefile . ${multi_basedir}/config-ml.in
13030    ;;
13031 esac ;;
13032     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13033   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13034   # are listed without --file.  Let's play safe and only enable the eval
13035   # if we detect the quoting.
13036   case $CONFIG_FILES in
13037   *\'*) eval set x "$CONFIG_FILES" ;;
13038   *)   set x $CONFIG_FILES ;;
13039   esac
13040   shift
13041   for mf
13042   do
13043     # Strip MF so we end up with the name of the file.
13044     mf=`echo "$mf" | sed -e 's/:.*$//'`
13045     # Check whether this is an Automake generated Makefile or not.
13046     # We used to match only the files named `Makefile.in', but
13047     # some people rename them; so instead we look at the file content.
13048     # Grep'ing the first line is not enough: some people post-process
13049     # each Makefile.in and add a new line on top of each file to say so.
13050     # Grep'ing the whole file is not good either: AIX grep has a line
13051     # limit of 2048, but all sed's we know have understand at least 4000.
13052     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13053       dirpart=`$as_dirname -- "$mf" ||
13054 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13055          X"$mf" : 'X\(//\)[^/]' \| \
13056          X"$mf" : 'X\(//\)$' \| \
13057          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13058 $as_echo X"$mf" |
13059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13060             s//\1/
13061             q
13062           }
13063           /^X\(\/\/\)[^/].*/{
13064             s//\1/
13065             q
13066           }
13067           /^X\(\/\/\)$/{
13068             s//\1/
13069             q
13070           }
13071           /^X\(\/\).*/{
13072             s//\1/
13073             q
13074           }
13075           s/.*/./; q'`
13076     else
13077       continue
13078     fi
13079     # Extract the definition of DEPDIR, am__include, and am__quote
13080     # from the Makefile without running `make'.
13081     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13082     test -z "$DEPDIR" && continue
13083     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13084     test -z "am__include" && continue
13085     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13086     # When using ansi2knr, U may be empty or an underscore; expand it
13087     U=`sed -n 's/^U = //p' < "$mf"`
13088     # Find all dependency output files, they are included files with
13089     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13090     # simplest approach to changing $(DEPDIR) to its actual value in the
13091     # expansion.
13092     for file in `sed -n "
13093       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13094          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13095       # Make sure the directory exists.
13096       test -f "$dirpart/$file" && continue
13097       fdir=`$as_dirname -- "$file" ||
13098 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13099          X"$file" : 'X\(//\)[^/]' \| \
13100          X"$file" : 'X\(//\)$' \| \
13101          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13102 $as_echo X"$file" |
13103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13104             s//\1/
13105             q
13106           }
13107           /^X\(\/\/\)[^/].*/{
13108             s//\1/
13109             q
13110           }
13111           /^X\(\/\/\)$/{
13112             s//\1/
13113             q
13114           }
13115           /^X\(\/\).*/{
13116             s//\1/
13117             q
13118           }
13119           s/.*/./; q'`
13120       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13121       # echo "creating $dirpart/$file"
13122       echo '# dummy' > "$dirpart/$file"
13123     done
13124   done
13125 }
13126  ;;
13127     "libtool":C)
13128
13129     # See if we are running on zsh, and set the options which allow our
13130     # commands through without removal of \ escapes.
13131     if test -n "${ZSH_VERSION+set}" ; then
13132       setopt NO_GLOB_SUBST
13133     fi
13134
13135     cfgfile="${ofile}T"
13136     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13137     $RM "$cfgfile"
13138
13139     cat <<_LT_EOF >> "$cfgfile"
13140 #! $SHELL
13141
13142 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13143 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13145 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13146 #
13147 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13148 #                 2006, 2007, 2008 Free Software Foundation, Inc.
13149 #   Written by Gordon Matzigkeit, 1996
13150 #
13151 #   This file is part of GNU Libtool.
13152 #
13153 # GNU Libtool is free software; you can redistribute it and/or
13154 # modify it under the terms of the GNU General Public License as
13155 # published by the Free Software Foundation; either version 2 of
13156 # the License, or (at your option) any later version.
13157 #
13158 # As a special exception to the GNU General Public License,
13159 # if you distribute this file as part of a program or library that
13160 # is built using GNU Libtool, you may include this file under the
13161 # same distribution terms that you use for the rest of that program.
13162 #
13163 # GNU Libtool is distributed in the hope that it will be useful,
13164 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13165 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13166 # GNU General Public License for more details.
13167 #
13168 # You should have received a copy of the GNU General Public License
13169 # along with GNU Libtool; see the file COPYING.  If not, a copy
13170 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13171 # obtained by writing to the Free Software Foundation, Inc.,
13172 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13173
13174
13175 # The names of the tagged configurations supported by this script.
13176 available_tags=""
13177
13178 # ### BEGIN LIBTOOL CONFIG
13179
13180 # Which release of libtool.m4 was used?
13181 macro_version=$macro_version
13182 macro_revision=$macro_revision
13183
13184 # Whether or not to build shared libraries.
13185 build_libtool_libs=$enable_shared
13186
13187 # Whether or not to build static libraries.
13188 build_old_libs=$enable_static
13189
13190 # What type of objects to build.
13191 pic_mode=$pic_mode
13192
13193 # Whether or not to optimize for fast installation.
13194 fast_install=$enable_fast_install
13195
13196 # The host system.
13197 host_alias=$host_alias
13198 host=$host
13199 host_os=$host_os
13200
13201 # The build system.
13202 build_alias=$build_alias
13203 build=$build
13204 build_os=$build_os
13205
13206 # A sed program that does not truncate output.
13207 SED=$lt_SED
13208
13209 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13210 Xsed="\$SED -e 1s/^X//"
13211
13212 # A grep program that handles long lines.
13213 GREP=$lt_GREP
13214
13215 # An ERE matcher.
13216 EGREP=$lt_EGREP
13217
13218 # A literal string matcher.
13219 FGREP=$lt_FGREP
13220
13221 # A BSD- or MS-compatible name lister.
13222 NM=$lt_NM
13223
13224 # Whether we need soft or hard links.
13225 LN_S=$lt_LN_S
13226
13227 # What is the maximum length of a command?
13228 max_cmd_len=$max_cmd_len
13229
13230 # Object file suffix (normally "o").
13231 objext=$ac_objext
13232
13233 # Executable file suffix (normally "").
13234 exeext=$exeext
13235
13236 # whether the shell understands "unset".
13237 lt_unset=$lt_unset
13238
13239 # turn spaces into newlines.
13240 SP2NL=$lt_lt_SP2NL
13241
13242 # turn newlines into spaces.
13243 NL2SP=$lt_lt_NL2SP
13244
13245 # How to create reloadable object files.
13246 reload_flag=$lt_reload_flag
13247 reload_cmds=$lt_reload_cmds
13248
13249 # An object symbol dumper.
13250 OBJDUMP=$lt_OBJDUMP
13251
13252 # Method to check whether dependent libraries are shared objects.
13253 deplibs_check_method=$lt_deplibs_check_method
13254
13255 # Command to use when deplibs_check_method == "file_magic".
13256 file_magic_cmd=$lt_file_magic_cmd
13257
13258 # The archiver.
13259 AR=$lt_AR
13260 AR_FLAGS=$lt_AR_FLAGS
13261
13262 # A symbol stripping program.
13263 STRIP=$lt_STRIP
13264
13265 # Commands used to install an old-style archive.
13266 RANLIB=$lt_RANLIB
13267 old_postinstall_cmds=$lt_old_postinstall_cmds
13268 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13269
13270 # A C compiler.
13271 LTCC=$lt_CC
13272
13273 # LTCC compiler flags.
13274 LTCFLAGS=$lt_CFLAGS
13275
13276 # Take the output of nm and produce a listing of raw symbols and C names.
13277 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13278
13279 # Transform the output of nm in a proper C declaration.
13280 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13281
13282 # Transform the output of nm in a C name address pair.
13283 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13284
13285 # Transform the output of nm in a C name address pair when lib prefix is needed.
13286 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13287
13288 # The name of the directory that contains temporary libtool files.
13289 objdir=$objdir
13290
13291 # Shell to use when invoking shell scripts.
13292 SHELL=$lt_SHELL
13293
13294 # An echo program that does not interpret backslashes.
13295 ECHO=$lt_ECHO
13296
13297 # Used to examine libraries when file_magic_cmd begins with "file".
13298 MAGIC_CMD=$MAGIC_CMD
13299
13300 # Must we lock files when doing compilation?
13301 need_locks=$lt_need_locks
13302
13303 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13304 DSYMUTIL=$lt_DSYMUTIL
13305
13306 # Tool to change global to local symbols on Mac OS X.
13307 NMEDIT=$lt_NMEDIT
13308
13309 # Tool to manipulate fat objects and archives on Mac OS X.
13310 LIPO=$lt_LIPO
13311
13312 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13313 OTOOL=$lt_OTOOL
13314
13315 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13316 OTOOL64=$lt_OTOOL64
13317
13318 # Old archive suffix (normally "a").
13319 libext=$libext
13320
13321 # Shared library suffix (normally ".so").
13322 shrext_cmds=$lt_shrext_cmds
13323
13324 # The commands to extract the exported symbol list from a shared archive.
13325 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13326
13327 # Variables whose values should be saved in libtool wrapper scripts and
13328 # restored at link time.
13329 variables_saved_for_relink=$lt_variables_saved_for_relink
13330
13331 # Do we need the "lib" prefix for modules?
13332 need_lib_prefix=$need_lib_prefix
13333
13334 # Do we need a version for libraries?
13335 need_version=$need_version
13336
13337 # Library versioning type.
13338 version_type=$version_type
13339
13340 # Shared library runtime path variable.
13341 runpath_var=$runpath_var
13342
13343 # Shared library path variable.
13344 shlibpath_var=$shlibpath_var
13345
13346 # Is shlibpath searched before the hard-coded library search path?
13347 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13348
13349 # Format of library name prefix.
13350 libname_spec=$lt_libname_spec
13351
13352 # List of archive names.  First name is the real one, the rest are links.
13353 # The last name is the one that the linker finds with -lNAME
13354 library_names_spec=$lt_library_names_spec
13355
13356 # The coded name of the library, if different from the real name.
13357 soname_spec=$lt_soname_spec
13358
13359 # Command to use after installation of a shared archive.
13360 postinstall_cmds=$lt_postinstall_cmds
13361
13362 # Command to use after uninstallation of a shared archive.
13363 postuninstall_cmds=$lt_postuninstall_cmds
13364
13365 # Commands used to finish a libtool library installation in a directory.
13366 finish_cmds=$lt_finish_cmds
13367
13368 # As "finish_cmds", except a single script fragment to be evaled but
13369 # not shown.
13370 finish_eval=$lt_finish_eval
13371
13372 # Whether we should hardcode library paths into libraries.
13373 hardcode_into_libs=$hardcode_into_libs
13374
13375 # Compile-time system search path for libraries.
13376 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13377
13378 # Run-time system search path for libraries.
13379 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13380
13381 # Whether dlopen is supported.
13382 dlopen_support=$enable_dlopen
13383
13384 # Whether dlopen of programs is supported.
13385 dlopen_self=$enable_dlopen_self
13386
13387 # Whether dlopen of statically linked programs is supported.
13388 dlopen_self_static=$enable_dlopen_self_static
13389
13390 # Commands to strip libraries.
13391 old_striplib=$lt_old_striplib
13392 striplib=$lt_striplib
13393
13394
13395 # The linker used to build libraries.
13396 LD=$lt_LD
13397
13398 # Commands used to build an old-style archive.
13399 old_archive_cmds=$lt_old_archive_cmds
13400
13401 # A language specific compiler.
13402 CC=$lt_compiler
13403
13404 # Is the compiler the GNU compiler?
13405 with_gcc=$GCC
13406
13407 # Compiler flag to turn off builtin functions.
13408 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13409
13410 # How to pass a linker flag through the compiler.
13411 wl=$lt_lt_prog_compiler_wl
13412
13413 # Additional compiler flags for building library objects.
13414 pic_flag=$lt_lt_prog_compiler_pic
13415
13416 # Compiler flag to prevent dynamic linking.
13417 link_static_flag=$lt_lt_prog_compiler_static
13418
13419 # Does compiler simultaneously support -c and -o options?
13420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13421
13422 # Whether or not to add -lc for building shared libraries.
13423 build_libtool_need_lc=$archive_cmds_need_lc
13424
13425 # Whether or not to disallow shared libs when runtime libs are static.
13426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13427
13428 # Compiler flag to allow reflexive dlopens.
13429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13430
13431 # Compiler flag to generate shared objects directly from archives.
13432 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13433
13434 # Whether the compiler copes with passing no objects directly.
13435 compiler_needs_object=$lt_compiler_needs_object
13436
13437 # Create an old-style archive from a shared archive.
13438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13439
13440 # Create a temporary old-style archive to link instead of a shared archive.
13441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13442
13443 # Commands used to build a shared archive.
13444 archive_cmds=$lt_archive_cmds
13445 archive_expsym_cmds=$lt_archive_expsym_cmds
13446
13447 # Commands used to build a loadable module if different from building
13448 # a shared archive.
13449 module_cmds=$lt_module_cmds
13450 module_expsym_cmds=$lt_module_expsym_cmds
13451
13452 # Whether we are building with GNU ld or not.
13453 with_gnu_ld=$lt_with_gnu_ld
13454
13455 # Flag that allows shared libraries with undefined symbols to be built.
13456 allow_undefined_flag=$lt_allow_undefined_flag
13457
13458 # Flag that enforces no undefined symbols.
13459 no_undefined_flag=$lt_no_undefined_flag
13460
13461 # Flag to hardcode \$libdir into a binary during linking.
13462 # This must work even if \$libdir does not exist
13463 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13464
13465 # If ld is used when linking, flag to hardcode \$libdir into a binary
13466 # during linking.  This must work even if \$libdir does not exist.
13467 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13468
13469 # Whether we need a single "-rpath" flag with a separated argument.
13470 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13471
13472 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13473 # DIR into the resulting binary.
13474 hardcode_direct=$hardcode_direct
13475
13476 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13477 # DIR into the resulting binary and the resulting library dependency is
13478 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13479 # library is relocated.
13480 hardcode_direct_absolute=$hardcode_direct_absolute
13481
13482 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13483 # into the resulting binary.
13484 hardcode_minus_L=$hardcode_minus_L
13485
13486 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13487 # into the resulting binary.
13488 hardcode_shlibpath_var=$hardcode_shlibpath_var
13489
13490 # Set to "yes" if building a shared library automatically hardcodes DIR
13491 # into the library and all subsequent libraries and executables linked
13492 # against it.
13493 hardcode_automatic=$hardcode_automatic
13494
13495 # Set to yes if linker adds runtime paths of dependent libraries
13496 # to runtime path list.
13497 inherit_rpath=$inherit_rpath
13498
13499 # Whether libtool must link a program against all its dependency libraries.
13500 link_all_deplibs=$link_all_deplibs
13501
13502 # Fix the shell variable \$srcfile for the compiler.
13503 fix_srcfile_path=$lt_fix_srcfile_path
13504
13505 # Set to "yes" if exported symbols are required.
13506 always_export_symbols=$always_export_symbols
13507
13508 # The commands to list exported symbols.
13509 export_symbols_cmds=$lt_export_symbols_cmds
13510
13511 # Symbols that should not be listed in the preloaded symbols.
13512 exclude_expsyms=$lt_exclude_expsyms
13513
13514 # Symbols that must always be exported.
13515 include_expsyms=$lt_include_expsyms
13516
13517 # Commands necessary for linking programs (against libraries) with templates.
13518 prelink_cmds=$lt_prelink_cmds
13519
13520 # Specify filename containing input files.
13521 file_list_spec=$lt_file_list_spec
13522
13523 # How to hardcode a shared library path into an executable.
13524 hardcode_action=$hardcode_action
13525
13526 # ### END LIBTOOL CONFIG
13527
13528 _LT_EOF
13529
13530   case $host_os in
13531   aix3*)
13532     cat <<\_LT_EOF >> "$cfgfile"
13533 # AIX sometimes has problems with the GCC collect2 program.  For some
13534 # reason, if we set the COLLECT_NAMES environment variable, the problems
13535 # vanish in a puff of smoke.
13536 if test "X${COLLECT_NAMES+set}" != Xset; then
13537   COLLECT_NAMES=
13538   export COLLECT_NAMES
13539 fi
13540 _LT_EOF
13541     ;;
13542   esac
13543
13544
13545 ltmain="$ac_aux_dir/ltmain.sh"
13546
13547
13548   # We use sed instead of cat because bash on DJGPP gets confused if
13549   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13550   # text mode, it properly converts lines to CR/LF.  This bash problem
13551   # is reportedly fixed, but why not run on old versions too?
13552   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13553     || (rm -f "$cfgfile"; exit 1)
13554
13555   case $xsi_shell in
13556   yes)
13557     cat << \_LT_EOF >> "$cfgfile"
13558
13559 # func_dirname file append nondir_replacement
13560 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13561 # otherwise set result to NONDIR_REPLACEMENT.
13562 func_dirname ()
13563 {
13564   case ${1} in
13565     */*) func_dirname_result="${1%/*}${2}" ;;
13566     *  ) func_dirname_result="${3}" ;;
13567   esac
13568 }
13569
13570 # func_basename file
13571 func_basename ()
13572 {
13573   func_basename_result="${1##*/}"
13574 }
13575
13576 # func_dirname_and_basename file append nondir_replacement
13577 # perform func_basename and func_dirname in a single function
13578 # call:
13579 #   dirname:  Compute the dirname of FILE.  If nonempty,
13580 #             add APPEND to the result, otherwise set result
13581 #             to NONDIR_REPLACEMENT.
13582 #             value returned in "$func_dirname_result"
13583 #   basename: Compute filename of FILE.
13584 #             value retuned in "$func_basename_result"
13585 # Implementation must be kept synchronized with func_dirname
13586 # and func_basename. For efficiency, we do not delegate to
13587 # those functions but instead duplicate the functionality here.
13588 func_dirname_and_basename ()
13589 {
13590   case ${1} in
13591     */*) func_dirname_result="${1%/*}${2}" ;;
13592     *  ) func_dirname_result="${3}" ;;
13593   esac
13594   func_basename_result="${1##*/}"
13595 }
13596
13597 # func_stripname prefix suffix name
13598 # strip PREFIX and SUFFIX off of NAME.
13599 # PREFIX and SUFFIX must not contain globbing or regex special
13600 # characters, hashes, percent signs, but SUFFIX may contain a leading
13601 # dot (in which case that matches only a dot).
13602 func_stripname ()
13603 {
13604   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13605   # positional parameters, so assign one to ordinary parameter first.
13606   func_stripname_result=${3}
13607   func_stripname_result=${func_stripname_result#"${1}"}
13608   func_stripname_result=${func_stripname_result%"${2}"}
13609 }
13610
13611 # func_opt_split
13612 func_opt_split ()
13613 {
13614   func_opt_split_opt=${1%%=*}
13615   func_opt_split_arg=${1#*=}
13616 }
13617
13618 # func_lo2o object
13619 func_lo2o ()
13620 {
13621   case ${1} in
13622     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13623     *)    func_lo2o_result=${1} ;;
13624   esac
13625 }
13626
13627 # func_xform libobj-or-source
13628 func_xform ()
13629 {
13630   func_xform_result=${1%.*}.lo
13631 }
13632
13633 # func_arith arithmetic-term...
13634 func_arith ()
13635 {
13636   func_arith_result=$(( $* ))
13637 }
13638
13639 # func_len string
13640 # STRING may not start with a hyphen.
13641 func_len ()
13642 {
13643   func_len_result=${#1}
13644 }
13645
13646 _LT_EOF
13647     ;;
13648   *) # Bourne compatible functions.
13649     cat << \_LT_EOF >> "$cfgfile"
13650
13651 # func_dirname file append nondir_replacement
13652 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13653 # otherwise set result to NONDIR_REPLACEMENT.
13654 func_dirname ()
13655 {
13656   # Extract subdirectory from the argument.
13657   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13658   if test "X$func_dirname_result" = "X${1}"; then
13659     func_dirname_result="${3}"
13660   else
13661     func_dirname_result="$func_dirname_result${2}"
13662   fi
13663 }
13664
13665 # func_basename file
13666 func_basename ()
13667 {
13668   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13669 }
13670
13671
13672 # func_stripname prefix suffix name
13673 # strip PREFIX and SUFFIX off of NAME.
13674 # PREFIX and SUFFIX must not contain globbing or regex special
13675 # characters, hashes, percent signs, but SUFFIX may contain a leading
13676 # dot (in which case that matches only a dot).
13677 # func_strip_suffix prefix name
13678 func_stripname ()
13679 {
13680   case ${2} in
13681     .*) func_stripname_result=`$ECHO "X${3}" \
13682            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13683     *)  func_stripname_result=`$ECHO "X${3}" \
13684            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13685   esac
13686 }
13687
13688 # sed scripts:
13689 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13690 my_sed_long_arg='1s/^-[^=]*=//'
13691
13692 # func_opt_split
13693 func_opt_split ()
13694 {
13695   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13696   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13697 }
13698
13699 # func_lo2o object
13700 func_lo2o ()
13701 {
13702   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13703 }
13704
13705 # func_xform libobj-or-source
13706 func_xform ()
13707 {
13708   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13709 }
13710
13711 # func_arith arithmetic-term...
13712 func_arith ()
13713 {
13714   func_arith_result=`expr "$@"`
13715 }
13716
13717 # func_len string
13718 # STRING may not start with a hyphen.
13719 func_len ()
13720 {
13721   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13722 }
13723
13724 _LT_EOF
13725 esac
13726
13727 case $lt_shell_append in
13728   yes)
13729     cat << \_LT_EOF >> "$cfgfile"
13730
13731 # func_append var value
13732 # Append VALUE to the end of shell variable VAR.
13733 func_append ()
13734 {
13735   eval "$1+=\$2"
13736 }
13737 _LT_EOF
13738     ;;
13739   *)
13740     cat << \_LT_EOF >> "$cfgfile"
13741
13742 # func_append var value
13743 # Append VALUE to the end of shell variable VAR.
13744 func_append ()
13745 {
13746   eval "$1=\$$1\$2"
13747 }
13748
13749 _LT_EOF
13750     ;;
13751   esac
13752
13753
13754   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13755     || (rm -f "$cfgfile"; exit 1)
13756
13757   mv -f "$cfgfile" "$ofile" ||
13758     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13759   chmod +x "$ofile"
13760
13761  ;;
13762
13763   esac
13764 done # for ac_tag
13765
13766
13767 as_fn_exit 0
13768 _ACEOF
13769 ac_clean_files=$ac_clean_files_save
13770
13771 test $ac_write_fail = 0 ||
13772   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13773
13774
13775 # configure is writing to config.log, and then calls config.status.
13776 # config.status does its own redirection, appending to config.log.
13777 # Unfortunately, on DOS this fails, as config.log is still kept open
13778 # by configure, so config.status won't be able to write to it; its
13779 # output is simply discarded.  So we exec the FD to /dev/null,
13780 # effectively closing config.log, so it can be properly (re)opened and
13781 # appended to by config.status.  When coming back to configure, we
13782 # need to make the FD available again.
13783 if test "$no_create" != yes; then
13784   ac_cs_success=:
13785   ac_config_status_args=
13786   test "$silent" = yes &&
13787     ac_config_status_args="$ac_config_status_args --quiet"
13788   exec 5>/dev/null
13789   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13790   exec 5>>config.log
13791   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13792   # would make configure fail if this is the last instruction.
13793   $ac_cs_success || as_fn_exit $?
13794 fi
13795 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13796   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13797 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13798 fi
13799