OSDN Git Service

2009-10-26 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / lto-plugin / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for LTO plugin for ld 0.1.
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='LTO plugin for ld'
697 PACKAGE_TARNAME='lto-plugin'
698 PACKAGE_VERSION='0.1'
699 PACKAGE_STRING='LTO plugin for ld 0.1'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
702
703 # Factoring default headers for most tests.
704 ac_includes_default="\
705 #include <stdio.h>
706 #ifdef HAVE_SYS_TYPES_H
707 # include <sys/types.h>
708 #endif
709 #ifdef HAVE_SYS_STAT_H
710 # include <sys/stat.h>
711 #endif
712 #ifdef STDC_HEADERS
713 # include <stdlib.h>
714 # include <stddef.h>
715 #else
716 # ifdef HAVE_STDLIB_H
717 #  include <stdlib.h>
718 # endif
719 #endif
720 #ifdef HAVE_STRING_H
721 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
722 #  include <memory.h>
723 # endif
724 # include <string.h>
725 #endif
726 #ifdef HAVE_STRINGS_H
727 # include <strings.h>
728 #endif
729 #ifdef HAVE_INTTYPES_H
730 # include <inttypes.h>
731 #endif
732 #ifdef HAVE_STDINT_H
733 # include <stdint.h>
734 #endif
735 #ifdef HAVE_UNISTD_H
736 # include <unistd.h>
737 #endif"
738
739 ac_subst_vars='am__EXEEXT_FALSE
740 am__EXEEXT_TRUE
741 LTLIBOBJS
742 LIBOBJS
743 target_noncanonical
744 CPP
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 lt_ECHO
751 RANLIB
752 AR
753 OBJDUMP
754 LN_S
755 NM
756 ac_ct_DUMPBIN
757 DUMPBIN
758 LD
759 FGREP
760 EGREP
761 GREP
762 SED
763 host_os
764 host_vendor
765 host_cpu
766 host
767 LIBTOOL
768 LIBELFINC
769 LIBELFLIBS
770 am__fastdepCC_FALSE
771 am__fastdepCC_TRUE
772 CCDEPMODE
773 AMDEPBACKSLASH
774 AMDEP_FALSE
775 AMDEP_TRUE
776 am__quote
777 am__include
778 DEPDIR
779 OBJEXT
780 EXEEXT
781 ac_ct_CC
782 CPPFLAGS
783 LDFLAGS
784 CFLAGS
785 CC
786 MAINT
787 MAINTAINER_MODE_FALSE
788 MAINTAINER_MODE_TRUE
789 am__untar
790 am__tar
791 AMTAR
792 am__leading_dot
793 SET_MAKE
794 AWK
795 mkdir_p
796 MKDIR_P
797 INSTALL_STRIP_PROGRAM
798 STRIP
799 install_sh
800 MAKEINFO
801 AUTOHEADER
802 AUTOMAKE
803 AUTOCONF
804 ACLOCAL
805 VERSION
806 PACKAGE
807 CYGPATH_W
808 am__isrc
809 INSTALL_DATA
810 INSTALL_SCRIPT
811 INSTALL_PROGRAM
812 target_subdir
813 host_subdir
814 build_subdir
815 build_libsubdir
816 build_os
817 build_vendor
818 build_cpu
819 build
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 with_build_libsubdir
862 enable_maintainer_mode
863 enable_dependency_tracking
864 enable_shared
865 enable_static
866 with_pic
867 enable_fast_install
868 with_gnu_ld
869 enable_libtool_lock
870 enable_largefile
871 '
872       ac_precious_vars='build_alias
873 host_alias
874 target_alias
875 CC
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 LIBELFLIBS
881 LIBELFINC
882 CPP'
883
884
885 # Initialize some variables set by options.
886 ac_init_help=
887 ac_init_version=false
888 ac_unrecognized_opts=
889 ac_unrecognized_sep=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
906
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
932
933 ac_prev=
934 ac_dashdash=
935 for ac_option
936 do
937   # If the previous option needs an argument, assign it.
938   if test -n "$ac_prev"; then
939     eval $ac_prev=\$ac_option
940     ac_prev=
941     continue
942   fi
943
944   case $ac_option in
945   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946   *)    ac_optarg=yes ;;
947   esac
948
949   # Accept the important Cygnus configure options, so we can diagnose typos.
950
951   case $ac_dashdash$ac_option in
952   --)
953     ac_dashdash=yes ;;
954
955   -bindir | --bindir | --bindi | --bind | --bin | --bi)
956     ac_prev=bindir ;;
957   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958     bindir=$ac_optarg ;;
959
960   -build | --build | --buil | --bui | --bu)
961     ac_prev=build_alias ;;
962   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963     build_alias=$ac_optarg ;;
964
965   -cache-file | --cache-file | --cache-fil | --cache-fi \
966   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967     ac_prev=cache_file ;;
968   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970     cache_file=$ac_optarg ;;
971
972   --config-cache | -C)
973     cache_file=config.cache ;;
974
975   -datadir | --datadir | --datadi | --datad)
976     ac_prev=datadir ;;
977   -datadir=* | --datadir=* | --datadi=* | --datad=*)
978     datadir=$ac_optarg ;;
979
980   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981   | --dataroo | --dataro | --datar)
982     ac_prev=datarootdir ;;
983   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985     datarootdir=$ac_optarg ;;
986
987   -disable-* | --disable-*)
988     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989     # Reject names that are not valid shell variable names.
990     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991       as_fn_error "invalid feature name: $ac_useropt"
992     ac_useropt_orig=$ac_useropt
993     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994     case $ac_user_opts in
995       *"
996 "enable_$ac_useropt"
997 "*) ;;
998       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999          ac_unrecognized_sep=', ';;
1000     esac
1001     eval enable_$ac_useropt=no ;;
1002
1003   -docdir | --docdir | --docdi | --doc | --do)
1004     ac_prev=docdir ;;
1005   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006     docdir=$ac_optarg ;;
1007
1008   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009     ac_prev=dvidir ;;
1010   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011     dvidir=$ac_optarg ;;
1012
1013   -enable-* | --enable-*)
1014     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015     # Reject names that are not valid shell variable names.
1016     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017       as_fn_error "invalid feature name: $ac_useropt"
1018     ac_useropt_orig=$ac_useropt
1019     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020     case $ac_user_opts in
1021       *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025          ac_unrecognized_sep=', ';;
1026     esac
1027     eval enable_$ac_useropt=\$ac_optarg ;;
1028
1029   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031   | --exec | --exe | --ex)
1032     ac_prev=exec_prefix ;;
1033   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035   | --exec=* | --exe=* | --ex=*)
1036     exec_prefix=$ac_optarg ;;
1037
1038   -gas | --gas | --ga | --g)
1039     # Obsolete; use --with-gas.
1040     with_gas=yes ;;
1041
1042   -help | --help | --hel | --he | -h)
1043     ac_init_help=long ;;
1044   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045     ac_init_help=recursive ;;
1046   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047     ac_init_help=short ;;
1048
1049   -host | --host | --hos | --ho)
1050     ac_prev=host_alias ;;
1051   -host=* | --host=* | --hos=* | --ho=*)
1052     host_alias=$ac_optarg ;;
1053
1054   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055     ac_prev=htmldir ;;
1056   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057   | --ht=*)
1058     htmldir=$ac_optarg ;;
1059
1060   -includedir | --includedir | --includedi | --included | --include \
1061   | --includ | --inclu | --incl | --inc)
1062     ac_prev=includedir ;;
1063   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064   | --includ=* | --inclu=* | --incl=* | --inc=*)
1065     includedir=$ac_optarg ;;
1066
1067   -infodir | --infodir | --infodi | --infod | --info | --inf)
1068     ac_prev=infodir ;;
1069   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070     infodir=$ac_optarg ;;
1071
1072   -libdir | --libdir | --libdi | --libd)
1073     ac_prev=libdir ;;
1074   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075     libdir=$ac_optarg ;;
1076
1077   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078   | --libexe | --libex | --libe)
1079     ac_prev=libexecdir ;;
1080   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081   | --libexe=* | --libex=* | --libe=*)
1082     libexecdir=$ac_optarg ;;
1083
1084   -localedir | --localedir | --localedi | --localed | --locale)
1085     ac_prev=localedir ;;
1086   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087     localedir=$ac_optarg ;;
1088
1089   -localstatedir | --localstatedir | --localstatedi | --localstated \
1090   | --localstate | --localstat | --localsta | --localst | --locals)
1091     ac_prev=localstatedir ;;
1092   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094     localstatedir=$ac_optarg ;;
1095
1096   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097     ac_prev=mandir ;;
1098   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099     mandir=$ac_optarg ;;
1100
1101   -nfp | --nfp | --nf)
1102     # Obsolete; use --without-fp.
1103     with_fp=no ;;
1104
1105   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106   | --no-cr | --no-c | -n)
1107     no_create=yes ;;
1108
1109   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111     no_recursion=yes ;;
1112
1113   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115   | --oldin | --oldi | --old | --ol | --o)
1116     ac_prev=oldincludedir ;;
1117   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120     oldincludedir=$ac_optarg ;;
1121
1122   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123     ac_prev=prefix ;;
1124   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125     prefix=$ac_optarg ;;
1126
1127   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128   | --program-pre | --program-pr | --program-p)
1129     ac_prev=program_prefix ;;
1130   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132     program_prefix=$ac_optarg ;;
1133
1134   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135   | --program-suf | --program-su | --program-s)
1136     ac_prev=program_suffix ;;
1137   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139     program_suffix=$ac_optarg ;;
1140
1141   -program-transform-name | --program-transform-name \
1142   | --program-transform-nam | --program-transform-na \
1143   | --program-transform-n | --program-transform- \
1144   | --program-transform | --program-transfor \
1145   | --program-transfo | --program-transf \
1146   | --program-trans | --program-tran \
1147   | --progr-tra | --program-tr | --program-t)
1148     ac_prev=program_transform_name ;;
1149   -program-transform-name=* | --program-transform-name=* \
1150   | --program-transform-nam=* | --program-transform-na=* \
1151   | --program-transform-n=* | --program-transform-=* \
1152   | --program-transform=* | --program-transfor=* \
1153   | --program-transfo=* | --program-transf=* \
1154   | --program-trans=* | --program-tran=* \
1155   | --progr-tra=* | --program-tr=* | --program-t=*)
1156     program_transform_name=$ac_optarg ;;
1157
1158   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159     ac_prev=pdfdir ;;
1160   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161     pdfdir=$ac_optarg ;;
1162
1163   -psdir | --psdir | --psdi | --psd | --ps)
1164     ac_prev=psdir ;;
1165   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166     psdir=$ac_optarg ;;
1167
1168   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169   | -silent | --silent | --silen | --sile | --sil)
1170     silent=yes ;;
1171
1172   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173     ac_prev=sbindir ;;
1174   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175   | --sbi=* | --sb=*)
1176     sbindir=$ac_optarg ;;
1177
1178   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180   | --sharedst | --shareds | --shared | --share | --shar \
1181   | --sha | --sh)
1182     ac_prev=sharedstatedir ;;
1183   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186   | --sha=* | --sh=*)
1187     sharedstatedir=$ac_optarg ;;
1188
1189   -site | --site | --sit)
1190     ac_prev=site ;;
1191   -site=* | --site=* | --sit=*)
1192     site=$ac_optarg ;;
1193
1194   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195     ac_prev=srcdir ;;
1196   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1197     srcdir=$ac_optarg ;;
1198
1199   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200   | --syscon | --sysco | --sysc | --sys | --sy)
1201     ac_prev=sysconfdir ;;
1202   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1204     sysconfdir=$ac_optarg ;;
1205
1206   -target | --target | --targe | --targ | --tar | --ta | --t)
1207     ac_prev=target_alias ;;
1208   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1209     target_alias=$ac_optarg ;;
1210
1211   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212     verbose=yes ;;
1213
1214   -version | --version | --versio | --versi | --vers | -V)
1215     ac_init_version=: ;;
1216
1217   -with-* | --with-*)
1218     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221       as_fn_error "invalid package name: $ac_useropt"
1222     ac_useropt_orig=$ac_useropt
1223     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224     case $ac_user_opts in
1225       *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229          ac_unrecognized_sep=', ';;
1230     esac
1231     eval with_$ac_useropt=\$ac_optarg ;;
1232
1233   -without-* | --without-*)
1234     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237       as_fn_error "invalid package name: $ac_useropt"
1238     ac_useropt_orig=$ac_useropt
1239     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240     case $ac_user_opts in
1241       *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245          ac_unrecognized_sep=', ';;
1246     esac
1247     eval with_$ac_useropt=no ;;
1248
1249   --x)
1250     # Obsolete; use --with-x.
1251     with_x=yes ;;
1252
1253   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254   | --x-incl | --x-inc | --x-in | --x-i)
1255     ac_prev=x_includes ;;
1256   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1258     x_includes=$ac_optarg ;;
1259
1260   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262     ac_prev=x_libraries ;;
1263   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1265     x_libraries=$ac_optarg ;;
1266
1267   -*) as_fn_error "unrecognized option: \`$ac_option'
1268 Try \`$0 --help' for more information."
1269     ;;
1270
1271   *=*)
1272     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273     # Reject names that are not valid shell variable names.
1274     case $ac_envvar in #(
1275       '' | [0-9]* | *[!_$as_cr_alnum]* )
1276       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1277     esac
1278     eval $ac_envvar=\$ac_optarg
1279     export $ac_envvar ;;
1280
1281   *)
1282     # FIXME: should be removed in autoconf 3.0.
1283     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287     ;;
1288
1289   esac
1290 done
1291
1292 if test -n "$ac_prev"; then
1293   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294   as_fn_error "missing argument to $ac_option"
1295 fi
1296
1297 if test -n "$ac_unrecognized_opts"; then
1298   case $enable_option_checking in
1299     no) ;;
1300     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1301     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302   esac
1303 fi
1304
1305 # Check all directory arguments for consistency.
1306 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307                 datadir sysconfdir sharedstatedir localstatedir includedir \
1308                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309                 libdir localedir mandir
1310 do
1311   eval ac_val=\$$ac_var
1312   # Remove trailing slashes.
1313   case $ac_val in
1314     */ )
1315       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316       eval $ac_var=\$ac_val;;
1317   esac
1318   # Be sure to have absolute directory names.
1319   case $ac_val in
1320     [\\/$]* | ?:[\\/]* )  continue;;
1321     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322   esac
1323   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1324 done
1325
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1329 build=$build_alias
1330 host=$host_alias
1331 target=$target_alias
1332
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335   if test "x$build_alias" = x; then
1336     cross_compiling=maybe
1337     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338     If a cross compiler is detected then cross compile mode will be used." >&2
1339   elif test "x$build_alias" != "x$host_alias"; then
1340     cross_compiling=yes
1341   fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353   as_fn_error "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355   as_fn_error "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360   ac_srcdir_defaulted=yes
1361   # Try the directory containing this script, then the parent directory.
1362   ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364          X"$as_myself" : 'X\(//\)[^/]' \| \
1365          X"$as_myself" : 'X\(//\)$' \| \
1366          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\/\)[^/].*/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\).*/{
1381             s//\1/
1382             q
1383           }
1384           s/.*/./; q'`
1385   srcdir=$ac_confdir
1386   if test ! -r "$srcdir/$ac_unique_file"; then
1387     srcdir=..
1388   fi
1389 else
1390   ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1399         pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402   srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412   eval ac_env_${ac_var}_value=\$${ac_var}
1413   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421   # Omit some internal or obsolete options to make the list less imposing.
1422   # This message is too long to be a string in the A/UX 3.1 sh.
1423   cat <<_ACEOF
1424 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE.  See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434   -h, --help              display this help and exit
1435       --help=short        display options specific to this package
1436       --help=recursive    display the short help of all the included packages
1437   -V, --version           display version information and exit
1438   -q, --quiet, --silent   do not print \`checking...' messages
1439       --cache-file=FILE   cache test results in FILE [disabled]
1440   -C, --config-cache      alias for \`--cache-file=config.cache'
1441   -n, --no-create         do not create output files
1442       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445   --prefix=PREFIX         install architecture-independent files in PREFIX
1446                           [$ac_default_prefix]
1447   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1448                           [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458   --bindir=DIR            user executables [EPREFIX/bin]
1459   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1460   --libexecdir=DIR        program executables [EPREFIX/libexec]
1461   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1462   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1463   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1464   --libdir=DIR            object code libraries [EPREFIX/lib]
1465   --includedir=DIR        C header files [PREFIX/include]
1466   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1467   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1468   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1469   --infodir=DIR           info documentation [DATAROOTDIR/info]
1470   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1471   --mandir=DIR            man documentation [DATAROOTDIR/man]
1472   --docdir=DIR            documentation root [DATAROOTDIR/doc/lto-plugin]
1473   --htmldir=DIR           html documentation [DOCDIR]
1474   --dvidir=DIR            dvi documentation [DOCDIR]
1475   --pdfdir=DIR            pdf documentation [DOCDIR]
1476   --psdir=DIR             ps documentation [DOCDIR]
1477 _ACEOF
1478
1479   cat <<\_ACEOF
1480
1481 Program names:
1482   --program-prefix=PREFIX            prepend PREFIX to installed program names
1483   --program-suffix=SUFFIX            append SUFFIX to installed program names
1484   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1485
1486 System types:
1487   --build=BUILD     configure for building on BUILD [guessed]
1488   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493   case $ac_init_help in
1494      short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1495    esac
1496   cat <<\_ACEOF
1497
1498 Optional Features:
1499   --disable-option-checking  ignore unrecognized --enable/--with options
1500   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1501   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1502   --enable-maintainer-mode  enable make rules and dependencies not useful
1503                           (and sometimes confusing) to the casual installer
1504   --disable-dependency-tracking  speeds up one-time build
1505   --enable-dependency-tracking   do not reject slow dependency extractors
1506   --enable-shared[=PKGS]  build shared libraries [default=yes]
1507   --enable-static[=PKGS]  build static libraries [default=yes]
1508   --enable-fast-install[=PKGS]
1509                           optimize for fast installation [default=yes]
1510   --disable-libtool-lock  avoid locking (might break parallel builds)
1511   --disable-largefile     omit support for large files
1512
1513 Optional Packages:
1514   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1517   --with-pic              try to use only PIC/non-PIC objects [default=use
1518                           both]
1519   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1520
1521 Some influential environment variables:
1522   CC          C compiler command
1523   CFLAGS      C compiler flags
1524   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525               nonstandard directory <lib dir>
1526   LIBS        libraries to pass to the linker, e.g. -l<library>
1527   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528               you have headers in a nonstandard directory <include dir>
1529   LIBELFLIBS  How to link libelf
1530   LIBELFINC   How to find libelf include files
1531   CPP         C preprocessor
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to the package provider.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542   # If there are subdirs, report their specific --help.
1543   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544     test -d "$ac_dir" ||
1545       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546       continue
1547     ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553   # A ".." for each directory in $ac_dir_suffix.
1554   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555   case $ac_top_builddir_sub in
1556   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558   esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566   .)  # We are building in place.
1567     ac_srcdir=.
1568     ac_top_srcdir=$ac_top_builddir_sub
1569     ac_abs_top_srcdir=$ac_pwd ;;
1570   [\\/]* | ?:[\\/]* )  # Absolute name.
1571     ac_srcdir=$srcdir$ac_dir_suffix;
1572     ac_top_srcdir=$srcdir
1573     ac_abs_top_srcdir=$srcdir ;;
1574   *) # Relative name.
1575     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576     ac_top_srcdir=$ac_top_build_prefix$srcdir
1577     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581     cd "$ac_dir" || { ac_status=$?; continue; }
1582     # Check for guested configure.
1583     if test -f "$ac_srcdir/configure.gnu"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586     elif test -f "$ac_srcdir/configure"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure" --help=recursive
1589     else
1590       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591     fi || ac_status=$?
1592     cd "$ac_pwd" || { ac_status=$?; break; }
1593   done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598   cat <<\_ACEOF
1599 LTO plugin for ld configure 0.1
1600 generated by GNU Autoconf 2.64
1601
1602 Copyright (C) 2009 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606   exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   rm -f conftest.$ac_objext
1620   if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623   *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627   (eval "$ac_compile") 2>conftest.err
1628   ac_status=$?
1629   if test -s conftest.err; then
1630     grep -v '^ *+' conftest.err >conftest.er1
1631     cat conftest.er1 >&5
1632     mv -f conftest.er1 conftest.err
1633   fi
1634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635   test $ac_status = 0; } && {
1636          test -z "$ac_c_werror_flag" ||
1637          test ! -s conftest.err
1638        } && test -s conftest.$ac_objext; then :
1639   ac_retval=0
1640 else
1641   $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644         ac_retval=1
1645 fi
1646   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647   return $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_c_try_link LINENO
1652 # -----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_link ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   rm -f conftest.$ac_objext conftest$ac_exeext
1658   if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_link") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } && {
1674          test -z "$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        } && test -s conftest$ac_exeext && {
1677          test "$cross_compiling" = yes ||
1678          $as_test_x conftest$ac_exeext
1679        }; then :
1680   ac_retval=0
1681 else
1682   $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685         ac_retval=1
1686 fi
1687   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689   # interfere with the next link command; also delete a directory that is
1690   # left behind by Apple's compiler.  We do this before executing the actions.
1691   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1693   return $ac_retval
1694
1695 } # ac_fn_c_try_link
1696
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707   $as_echo_n "(cached) " >&6
1708 else
1709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h.  */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715   eval "$3=yes"
1716 else
1717   eval "$3=no"
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 fi
1721 eval ac_res=\$$3
1722                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725
1726 } # ac_fn_c_check_header_compile
1727
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737   *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742   ac_status=$?
1743   if test -s conftest.err; then
1744     grep -v '^ *+' conftest.err >conftest.er1
1745     cat conftest.er1 >&5
1746     mv -f conftest.er1 conftest.err
1747   fi
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; } >/dev/null && {
1750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751          test ! -s conftest.err
1752        }; then :
1753   ac_retval=0
1754 else
1755   $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758     ac_retval=1
1759 fi
1760   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761   return $ac_retval
1762
1763 } # ac_fn_c_try_cpp
1764
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1769 ac_fn_c_try_run ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_link") 2>&5
1780   ac_status=$?
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783   { { case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_try") 2>&5
1790   ac_status=$?
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; }; }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: program exited with status $ac_status" >&5
1796        $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799        ac_retval=$ac_status
1800 fi
1801   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803   return $ac_retval
1804
1805 } # ac_fn_c_try_run
1806
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1811 {
1812   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816   $as_echo_n "(cached) " >&6
1817 else
1818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h.  */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1822 #define $2 innocuous_$2
1823
1824 /* System header to define __stub macros and hopefully few prototypes,
1825     which can conflict with char $2 (); below.
1826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827     <limits.h> exists even on freestanding compilers.  */
1828
1829 #ifdef __STDC__
1830 # include <limits.h>
1831 #else
1832 # include <assert.h>
1833 #endif
1834
1835 #undef $2
1836
1837 /* Override any GCC internal prototype to avoid an error.
1838    Use char because int might match the return type of a GCC
1839    builtin and then its argument prototype would still apply.  */
1840 #ifdef __cplusplus
1841 extern "C"
1842 #endif
1843 char $2 ();
1844 /* The GNU C library defines this for functions which it implements
1845     to always fail with ENOSYS.  Some functions are actually named
1846     something starting with __ and the normal name is an alias.  */
1847 #if defined __stub_$2 || defined __stub___$2
1848 choke me
1849 #endif
1850
1851 int
1852 main ()
1853 {
1854 return $2 ();
1855   ;
1856   return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_link "$LINENO"; then :
1860   eval "$3=yes"
1861 else
1862   eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext \
1865     conftest$ac_exeext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872 } # ac_fn_c_check_func
1873
1874 # ac_fn_c_find_uintX_t LINENO BITS VAR
1875 # ------------------------------------
1876 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1877 # accordingly.
1878 ac_fn_c_find_uintX_t ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1882 $as_echo_n "checking for uint$2_t... " >&6; }
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884   $as_echo_n "(cached) " >&6
1885 else
1886   eval "$3=no"
1887      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1888          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1889        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h.  */
1891 $ac_includes_default
1892 int
1893 main ()
1894 {
1895 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1896 test_array [0] = 0
1897
1898   ;
1899   return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903   case $ac_type in #(
1904   uint$2_t) :
1905     eval "$3=yes" ;; #(
1906   *) :
1907     eval "$3=\$ac_type" ;;
1908 esac
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911        eval as_val=\$$3
1912    if test "x$as_val" = x""no; then :
1913
1914 else
1915   break
1916 fi
1917      done
1918 fi
1919 eval ac_res=\$$3
1920                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924 } # ac_fn_c_find_uintX_t
1925 cat >config.log <<_ACEOF
1926 This file contains any messages produced by compilers while
1927 running configure, to aid debugging if configure makes a mistake.
1928
1929 It was created by LTO plugin for ld $as_me 0.1, which was
1930 generated by GNU Autoconf 2.64.  Invocation command line was
1931
1932   $ $0 $@
1933
1934 _ACEOF
1935 exec 5>>config.log
1936 {
1937 cat <<_ASUNAME
1938 ## --------- ##
1939 ## Platform. ##
1940 ## --------- ##
1941
1942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1947
1948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1950
1951 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1952 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1954 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1955 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1956 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1957 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1958
1959 _ASUNAME
1960
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966     $as_echo "PATH: $as_dir"
1967   done
1968 IFS=$as_save_IFS
1969
1970 } >&5
1971
1972 cat >&5 <<_ACEOF
1973
1974
1975 ## ----------- ##
1976 ## Core tests. ##
1977 ## ----------- ##
1978
1979 _ACEOF
1980
1981
1982 # Keep a trace of the command line.
1983 # Strip out --no-create and --no-recursion so they do not pile up.
1984 # Strip out --silent because we don't want to record it for future runs.
1985 # Also quote any args containing shell meta-characters.
1986 # Make two passes to allow for proper duplicate-argument suppression.
1987 ac_configure_args=
1988 ac_configure_args0=
1989 ac_configure_args1=
1990 ac_must_keep_next=false
1991 for ac_pass in 1 2
1992 do
1993   for ac_arg
1994   do
1995     case $ac_arg in
1996     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998     | -silent | --silent | --silen | --sile | --sil)
1999       continue ;;
2000     *\'*)
2001       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2002     esac
2003     case $ac_pass in
2004     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2005     2)
2006       as_fn_append ac_configure_args1 " '$ac_arg'"
2007       if test $ac_must_keep_next = true; then
2008         ac_must_keep_next=false # Got value, back to normal.
2009       else
2010         case $ac_arg in
2011           *=* | --config-cache | -C | -disable-* | --disable-* \
2012           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014           | -with-* | --with-* | -without-* | --without-* | --x)
2015             case "$ac_configure_args0 " in
2016               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2017             esac
2018             ;;
2019           -* ) ac_must_keep_next=true ;;
2020         esac
2021       fi
2022       as_fn_append ac_configure_args " '$ac_arg'"
2023       ;;
2024     esac
2025   done
2026 done
2027 { ac_configure_args0=; unset ac_configure_args0;}
2028 { ac_configure_args1=; unset ac_configure_args1;}
2029
2030 # When interrupted or exit'd, cleanup temporary files, and complete
2031 # config.log.  We remove comments because anyway the quotes in there
2032 # would cause problems or look ugly.
2033 # WARNING: Use '\'' to represent an apostrophe within the trap.
2034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2035 trap 'exit_status=$?
2036   # Save into config.log some information that might help in debugging.
2037   {
2038     echo
2039
2040     cat <<\_ASBOX
2041 ## ---------------- ##
2042 ## Cache variables. ##
2043 ## ---------------- ##
2044 _ASBOX
2045     echo
2046     # The following way of writing the cache mishandles newlines in values,
2047 (
2048   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049     eval ac_val=\$$ac_var
2050     case $ac_val in #(
2051     *${as_nl}*)
2052       case $ac_var in #(
2053       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055       esac
2056       case $ac_var in #(
2057       _ | IFS | as_nl) ;; #(
2058       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059       *) { eval $ac_var=; unset $ac_var;} ;;
2060       esac ;;
2061     esac
2062   done
2063   (set) 2>&1 |
2064     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065     *${as_nl}ac_space=\ *)
2066       sed -n \
2067         "s/'\''/'\''\\\\'\'''\''/g;
2068           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069       ;; #(
2070     *)
2071       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2072       ;;
2073     esac |
2074     sort
2075 )
2076     echo
2077
2078     cat <<\_ASBOX
2079 ## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##
2082 _ASBOX
2083     echo
2084     for ac_var in $ac_subst_vars
2085     do
2086       eval ac_val=\$$ac_var
2087       case $ac_val in
2088       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089       esac
2090       $as_echo "$ac_var='\''$ac_val'\''"
2091     done | sort
2092     echo
2093
2094     if test -n "$ac_subst_files"; then
2095       cat <<\_ASBOX
2096 ## ------------------- ##
2097 ## File substitutions. ##
2098 ## ------------------- ##
2099 _ASBOX
2100       echo
2101       for ac_var in $ac_subst_files
2102       do
2103         eval ac_val=\$$ac_var
2104         case $ac_val in
2105         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106         esac
2107         $as_echo "$ac_var='\''$ac_val'\''"
2108       done | sort
2109       echo
2110     fi
2111
2112     if test -s confdefs.h; then
2113       cat <<\_ASBOX
2114 ## ----------- ##
2115 ## confdefs.h. ##
2116 ## ----------- ##
2117 _ASBOX
2118       echo
2119       cat confdefs.h
2120       echo
2121     fi
2122     test "$ac_signal" != 0 &&
2123       $as_echo "$as_me: caught signal $ac_signal"
2124     $as_echo "$as_me: exit $exit_status"
2125   } >&5
2126   rm -f core *.core core.conftest.* &&
2127     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128     exit $exit_status
2129 ' 0
2130 for ac_signal in 1 2 13 15; do
2131   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2132 done
2133 ac_signal=0
2134
2135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2136 rm -f -r conftest* confdefs.h
2137
2138 $as_echo "/* confdefs.h */" > confdefs.h
2139
2140 # Predefined preprocessor variables.
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_NAME "$PACKAGE_NAME"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_STRING "$PACKAGE_STRING"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_URL "$PACKAGE_URL"
2164 _ACEOF
2165
2166
2167 # Let the site file select an alternate cache file if it wants to.
2168 # Prefer an explicitly selected file to automatically selected ones.
2169 ac_site_file1=NONE
2170 ac_site_file2=NONE
2171 if test -n "$CONFIG_SITE"; then
2172   ac_site_file1=$CONFIG_SITE
2173 elif test "x$prefix" != xNONE; then
2174   ac_site_file1=$prefix/share/config.site
2175   ac_site_file2=$prefix/etc/config.site
2176 else
2177   ac_site_file1=$ac_default_prefix/share/config.site
2178   ac_site_file2=$ac_default_prefix/etc/config.site
2179 fi
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2181 do
2182   test "x$ac_site_file" = xNONE && continue
2183   if test -r "$ac_site_file"; then
2184     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186     sed 's/^/| /' "$ac_site_file" >&5
2187     . "$ac_site_file"
2188   fi
2189 done
2190
2191 if test -r "$cache_file"; then
2192   # Some versions of bash will fail to source /dev/null (special
2193   # files actually), so we avoid doing that.
2194   if test -f "$cache_file"; then
2195     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 $as_echo "$as_me: loading cache $cache_file" >&6;}
2197     case $cache_file in
2198       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199       *)                      . "./$cache_file";;
2200     esac
2201   fi
2202 else
2203   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 $as_echo "$as_me: creating cache $cache_file" >&6;}
2205   >$cache_file
2206 fi
2207
2208 # Check that the precious variables saved in the cache have kept the same
2209 # value.
2210 ac_cache_corrupted=false
2211 for ac_var in $ac_precious_vars; do
2212   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213   eval ac_new_set=\$ac_env_${ac_var}_set
2214   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215   eval ac_new_val=\$ac_env_${ac_var}_value
2216   case $ac_old_set,$ac_new_set in
2217     set,)
2218       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220       ac_cache_corrupted=: ;;
2221     ,set)
2222       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224       ac_cache_corrupted=: ;;
2225     ,);;
2226     *)
2227       if test "x$ac_old_val" != "x$ac_new_val"; then
2228         # differences in whitespace do not lead to failure.
2229         ac_old_val_w=`echo x $ac_old_val`
2230         ac_new_val_w=`echo x $ac_new_val`
2231         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234           ac_cache_corrupted=:
2235         else
2236           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238           eval $ac_var=\$ac_old_val
2239         fi
2240         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2241 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2242         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2243 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2244       fi;;
2245   esac
2246   # Pass precious variables to config.status.
2247   if test "$ac_new_set" = set; then
2248     case $ac_new_val in
2249     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250     *) ac_arg=$ac_var=$ac_new_val ;;
2251     esac
2252     case " $ac_configure_args " in
2253       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2254       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255     esac
2256   fi
2257 done
2258 if $ac_cache_corrupted; then
2259   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264 fi
2265 ## -------------------- ##
2266 ## Main body of script. ##
2267 ## -------------------- ##
2268
2269 ac_ext=c
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
2277
2278
2279 ac_aux_dir=
2280 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2281   for ac_t in install-sh install.sh shtool; do
2282     if test -f "$ac_dir/$ac_t"; then
2283       ac_aux_dir=$ac_dir
2284       ac_install_sh="$ac_aux_dir/$ac_t -c"
2285       break 2
2286     fi
2287   done
2288 done
2289 if test -z "$ac_aux_dir"; then
2290   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2291 fi
2292
2293 # These three variables are undocumented and unsupported,
2294 # and are intended to be withdrawn in a future Autoconf release.
2295 # They can cause serious problems if a builder's source tree is in a directory
2296 # whose full name contains unusual characters.
2297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2299 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2300
2301
2302 # Make sure we can run config.sub.
2303 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2304   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2305
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2307 $as_echo_n "checking build system type... " >&6; }
2308 if test "${ac_cv_build+set}" = set; then :
2309   $as_echo_n "(cached) " >&6
2310 else
2311   ac_build_alias=$build_alias
2312 test "x$ac_build_alias" = x &&
2313   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x &&
2315   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2316 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2317   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2318
2319 fi
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2321 $as_echo "$ac_cv_build" >&6; }
2322 case $ac_cv_build in
2323 *-*-*) ;;
2324 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2325 esac
2326 build=$ac_cv_build
2327 ac_save_IFS=$IFS; IFS='-'
2328 set x $ac_cv_build
2329 shift
2330 build_cpu=$1
2331 build_vendor=$2
2332 shift; shift
2333 # Remember, the first character of IFS is used to create $*,
2334 # except with old shells:
2335 build_os=$*
2336 IFS=$ac_save_IFS
2337 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2338
2339
2340  case ${build_alias} in
2341   "") build_noncanonical=${build} ;;
2342   *) build_noncanonical=${build_alias} ;;
2343 esac
2344
2345  case ${host_alias} in
2346   "") host_noncanonical=${build_noncanonical} ;;
2347   *) host_noncanonical=${host_alias} ;;
2348 esac
2349
2350  case ${target_alias} in
2351   "") target_noncanonical=${host_noncanonical} ;;
2352   *) target_noncanonical=${target_alias} ;;
2353 esac
2354
2355
2356 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2357 # have matching libraries, they should use host libraries: Makefile.tpl
2358 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2359 # However, they still use the build modules, because the corresponding
2360 # host modules (e.g. bison) are only built for the host when bootstrap
2361 # finishes. So:
2362 # - build_subdir is where we find build modules, and never changes.
2363 # - build_libsubdir is where we find build libraries, and can be overridden.
2364
2365 # Prefix 'build-' so this never conflicts with target_subdir.
2366 build_subdir="build-${build_noncanonical}"
2367
2368 # Check whether --with-build-libsubdir was given.
2369 if test "${with_build_libsubdir+set}" = set; then :
2370   withval=$with_build_libsubdir; build_libsubdir="$withval"
2371 else
2372   build_libsubdir="$build_subdir"
2373 fi
2374
2375 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2376 if ( test $srcdir = . && test -d gcc ) \
2377    || test -d $srcdir/../host-${host_noncanonical}; then
2378   host_subdir="host-${host_noncanonical}"
2379 else
2380   host_subdir=.
2381 fi
2382 # No prefix.
2383 target_subdir=${target_noncanonical}
2384
2385 am__api_version='1.11'
2386
2387 # Find a good install program.  We prefer a C program (faster),
2388 # so one script is as good as another.  But avoid the broken or
2389 # incompatible versions:
2390 # SysV /etc/install, /usr/sbin/install
2391 # SunOS /usr/etc/install
2392 # IRIX /sbin/install
2393 # AIX /bin/install
2394 # AmigaOS /C/install, which installs bootblocks on floppy discs
2395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2398 # OS/2's system install, which has a completely different semantic
2399 # ./install, which can be erroneously created by make from ./install.sh.
2400 # Reject install programs that cannot install multiple files.
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2402 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2403 if test -z "$INSTALL"; then
2404 if test "${ac_cv_path_install+set}" = set; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2409 do
2410   IFS=$as_save_IFS
2411   test -z "$as_dir" && as_dir=.
2412     # Account for people who put trailing slashes in PATH elements.
2413 case $as_dir/ in #((
2414   ./ | .// | /[cC]/* | \
2415   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2416   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2417   /usr/ucb/* ) ;;
2418   *)
2419     # OSF1 and SCO ODT 3.0 have their own names for install.
2420     # Don't use installbsd from OSF since it installs stuff as root
2421     # by default.
2422     for ac_prog in ginstall scoinst install; do
2423       for ac_exec_ext in '' $ac_executable_extensions; do
2424         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2425           if test $ac_prog = install &&
2426             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427             # AIX install.  It has an incompatible calling convention.
2428             :
2429           elif test $ac_prog = install &&
2430             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431             # program-specific install script used by HP pwplus--don't use.
2432             :
2433           else
2434             rm -rf conftest.one conftest.two conftest.dir
2435             echo one > conftest.one
2436             echo two > conftest.two
2437             mkdir conftest.dir
2438             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2439               test -s conftest.one && test -s conftest.two &&
2440               test -s conftest.dir/conftest.one &&
2441               test -s conftest.dir/conftest.two
2442             then
2443               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2444               break 3
2445             fi
2446           fi
2447         fi
2448       done
2449     done
2450     ;;
2451 esac
2452
2453   done
2454 IFS=$as_save_IFS
2455
2456 rm -rf conftest.one conftest.two conftest.dir
2457
2458 fi
2459   if test "${ac_cv_path_install+set}" = set; then
2460     INSTALL=$ac_cv_path_install
2461   else
2462     # As a last resort, use the slow shell script.  Don't cache a
2463     # value for INSTALL within a source directory, because that will
2464     # break other packages using the cache if that directory is
2465     # removed, or if the value is a relative name.
2466     INSTALL=$ac_install_sh
2467   fi
2468 fi
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2470 $as_echo "$INSTALL" >&6; }
2471
2472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2473 # It thinks the first close brace ends the variable substitution.
2474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2475
2476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2477
2478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2479
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2481 $as_echo_n "checking whether build environment is sane... " >&6; }
2482 # Just in case
2483 sleep 1
2484 echo timestamp > conftest.file
2485 # Reject unsafe characters in $srcdir or the absolute working directory
2486 # name.  Accept space and tab only in the latter.
2487 am_lf='
2488 '
2489 case `pwd` in
2490   *[\\\"\#\$\&\'\`$am_lf]*)
2491     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2492 esac
2493 case $srcdir in
2494   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2495     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2496 esac
2497
2498 # Do `set' in a subshell so we don't clobber the current shell's
2499 # arguments.  Must try -L first in case configure is actually a
2500 # symlink; some systems play weird games with the mod time of symlinks
2501 # (eg FreeBSD returns the mod time of the symlink's containing
2502 # directory).
2503 if (
2504    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2505    if test "$*" = "X"; then
2506       # -L didn't work.
2507       set X `ls -t "$srcdir/configure" conftest.file`
2508    fi
2509    rm -f conftest.file
2510    if test "$*" != "X $srcdir/configure conftest.file" \
2511       && test "$*" != "X conftest.file $srcdir/configure"; then
2512
2513       # If neither matched, then we have a broken ls.  This can happen
2514       # if, for instance, CONFIG_SHELL is bash and it inherits a
2515       # broken ls alias from the environment.  This has actually
2516       # happened.  Such a system could not be considered "sane".
2517       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2518 alias in your environment" "$LINENO" 5
2519    fi
2520
2521    test "$2" = conftest.file
2522    )
2523 then
2524    # Ok.
2525    :
2526 else
2527    as_fn_error "newly created file is older than distributed files!
2528 Check your system clock" "$LINENO" 5
2529 fi
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2531 $as_echo "yes" >&6; }
2532 test "$program_prefix" != NONE &&
2533   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2534 # Use a double $ so make ignores it.
2535 test "$program_suffix" != NONE &&
2536   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2537 # Double any \ or $.
2538 # By default was `s,x,x', remove it if useless.
2539 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2540 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2541
2542 # expand $ac_aux_dir to an absolute path
2543 am_aux_dir=`cd $ac_aux_dir && pwd`
2544
2545 if test x"${MISSING+set}" != xset; then
2546   case $am_aux_dir in
2547   *\ * | *\     *)
2548     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2549   *)
2550     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2551   esac
2552 fi
2553 # Use eval to expand $SHELL
2554 if eval "$MISSING --run true"; then
2555   am_missing_run="$MISSING --run "
2556 else
2557   am_missing_run=
2558   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2559 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2560 fi
2561
2562 if test x"${install_sh}" != xset; then
2563   case $am_aux_dir in
2564   *\ * | *\     *)
2565     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2566   *)
2567     install_sh="\${SHELL} $am_aux_dir/install-sh"
2568   esac
2569 fi
2570
2571 # Installed binaries are usually stripped using `strip' when the user
2572 # run `make install-strip'.  However `strip' might not be the right
2573 # tool to use in cross-compilation environments, therefore Automake
2574 # will honor the `STRIP' environment variable to overrule this program.
2575 if test "$cross_compiling" != no; then
2576   if test -n "$ac_tool_prefix"; then
2577   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}strip; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if test "${ac_cv_prog_STRIP+set}" = set; then :
2582   $as_echo_n "(cached) " >&6
2583 else
2584   if test -n "$STRIP"; then
2585   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592     for ac_exec_ext in '' $ac_executable_extensions; do
2593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599   done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 STRIP=$ac_cv_prog_STRIP
2605 if test -n "$STRIP"; then
2606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2607 $as_echo "$STRIP" >&6; }
2608 else
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613
2614 fi
2615 if test -z "$ac_cv_prog_STRIP"; then
2616   ac_ct_STRIP=$STRIP
2617   # Extract the first word of "strip", so it can be a program name with args.
2618 set dummy strip; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2622   $as_echo_n "(cached) " >&6
2623 else
2624   if test -n "$ac_ct_STRIP"; then
2625   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630   IFS=$as_save_IFS
2631   test -z "$as_dir" && as_dir=.
2632     for ac_exec_ext in '' $ac_executable_extensions; do
2633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634     ac_cv_prog_ac_ct_STRIP="strip"
2635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639   done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2645 if test -n "$ac_ct_STRIP"; then
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2647 $as_echo "$ac_ct_STRIP" >&6; }
2648 else
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653   if test "x$ac_ct_STRIP" = x; then
2654     STRIP=":"
2655   else
2656     case $cross_compiling:$ac_tool_warned in
2657 yes:)
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2660 ac_tool_warned=yes ;;
2661 esac
2662     STRIP=$ac_ct_STRIP
2663   fi
2664 else
2665   STRIP="$ac_cv_prog_STRIP"
2666 fi
2667
2668 fi
2669 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2670
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2672 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2673 if test -z "$MKDIR_P"; then
2674   if test "${ac_cv_path_mkdir+set}" = set; then :
2675   $as_echo_n "(cached) " >&6
2676 else
2677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682     for ac_prog in mkdir gmkdir; do
2683          for ac_exec_ext in '' $ac_executable_extensions; do
2684            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2685            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2686              'mkdir (GNU coreutils) '* | \
2687              'mkdir (coreutils) '* | \
2688              'mkdir (fileutils) '4.1*)
2689                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2690                break 3;;
2691            esac
2692          done
2693        done
2694   done
2695 IFS=$as_save_IFS
2696
2697 fi
2698
2699   if test "${ac_cv_path_mkdir+set}" = set; then
2700     MKDIR_P="$ac_cv_path_mkdir -p"
2701   else
2702     # As a last resort, use the slow shell script.  Don't cache a
2703     # value for MKDIR_P within a source directory, because that will
2704     # break other packages using the cache if that directory is
2705     # removed, or if the value is a relative name.
2706     test -d ./--version && rmdir ./--version
2707     MKDIR_P="$ac_install_sh -d"
2708   fi
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2711 $as_echo "$MKDIR_P" >&6; }
2712
2713 mkdir_p="$MKDIR_P"
2714 case $mkdir_p in
2715   [\\/$]* | ?:[\\/]*) ;;
2716   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2717 esac
2718
2719 for ac_prog in gawk mawk nawk awk
2720 do
2721   # Extract the first word of "$ac_prog", so it can be a program name with args.
2722 set dummy $ac_prog; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if test "${ac_cv_prog_AWK+set}" = set; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   if test -n "$AWK"; then
2729   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734   IFS=$as_save_IFS
2735   test -z "$as_dir" && as_dir=.
2736     for ac_exec_ext in '' $ac_executable_extensions; do
2737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738     ac_cv_prog_AWK="$ac_prog"
2739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740     break 2
2741   fi
2742 done
2743   done
2744 IFS=$as_save_IFS
2745
2746 fi
2747 fi
2748 AWK=$ac_cv_prog_AWK
2749 if test -n "$AWK"; then
2750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2751 $as_echo "$AWK" >&6; }
2752 else
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2755 fi
2756
2757
2758   test -n "$AWK" && break
2759 done
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2762 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2763 set x ${MAKE-make}
2764 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2765 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   cat >conftest.make <<\_ACEOF
2769 SHELL = /bin/sh
2770 all:
2771         @echo '@@@%%%=$(MAKE)=@@@%%%'
2772 _ACEOF
2773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2774 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2775   *@@@%%%=?*=@@@%%%*)
2776     eval ac_cv_prog_make_${ac_make}_set=yes;;
2777   *)
2778     eval ac_cv_prog_make_${ac_make}_set=no;;
2779 esac
2780 rm -f conftest.make
2781 fi
2782 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2784 $as_echo "yes" >&6; }
2785   SET_MAKE=
2786 else
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789   SET_MAKE="MAKE=${MAKE-make}"
2790 fi
2791
2792 rm -rf .tst 2>/dev/null
2793 mkdir .tst 2>/dev/null
2794 if test -d .tst; then
2795   am__leading_dot=.
2796 else
2797   am__leading_dot=_
2798 fi
2799 rmdir .tst 2>/dev/null
2800
2801 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2802   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2803   # is not polluted with repeated "-I."
2804   am__isrc=' -I$(srcdir)'
2805   # test to see if srcdir already configured
2806   if test -f $srcdir/config.status; then
2807     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2808   fi
2809 fi
2810
2811 # test whether we have cygpath
2812 if test -z "$CYGPATH_W"; then
2813   if (cygpath --version) >/dev/null 2>/dev/null; then
2814     CYGPATH_W='cygpath -w'
2815   else
2816     CYGPATH_W=echo
2817   fi
2818 fi
2819
2820
2821 # Define the identity of the package.
2822  PACKAGE='lto-plugin'
2823  VERSION='0.1'
2824
2825
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE "$PACKAGE"
2828 _ACEOF
2829
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define VERSION "$VERSION"
2833 _ACEOF
2834
2835 # Some tools Automake needs.
2836
2837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2838
2839
2840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2841
2842
2843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2844
2845
2846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2847
2848
2849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2850
2851 # We need awk for the "check" target.  The system "awk" is bad on
2852 # some platforms.
2853 # Always define AMTAR for backward compatibility.
2854
2855 AMTAR=${AMTAR-"${am_missing_run}tar"}
2856
2857 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2858
2859
2860
2861
2862
2863
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2865 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2866     # Check whether --enable-maintainer-mode was given.
2867 if test "${enable_maintainer_mode+set}" = set; then :
2868   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2869 else
2870   USE_MAINTAINER_MODE=no
2871 fi
2872
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2874 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2875    if test $USE_MAINTAINER_MODE = yes; then
2876   MAINTAINER_MODE_TRUE=
2877   MAINTAINER_MODE_FALSE='#'
2878 else
2879   MAINTAINER_MODE_TRUE='#'
2880   MAINTAINER_MODE_FALSE=
2881 fi
2882
2883   MAINT=$MAINTAINER_MODE_TRUE
2884
2885
2886 ac_ext=c
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 if test -n "$ac_tool_prefix"; then
2892   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then :
2897   $as_echo_n "(cached) " >&6
2898 else
2899   if test -n "$CC"; then
2900   ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
2906   test -z "$as_dir" && as_dir=.
2907     for ac_exec_ext in '' $ac_executable_extensions; do
2908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911     break 2
2912   fi
2913 done
2914   done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928
2929 fi
2930 if test -z "$ac_cv_prog_CC"; then
2931   ac_ct_CC=$CC
2932   # Extract the first word of "gcc", so it can be a program name with args.
2933 set dummy gcc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2937   $as_echo_n "(cached) " >&6
2938 else
2939   if test -n "$ac_ct_CC"; then
2940   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947     for ac_exec_ext in '' $ac_executable_extensions; do
2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     ac_cv_prog_ac_ct_CC="gcc"
2950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954   done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2962 $as_echo "$ac_ct_CC" >&6; }
2963 else
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968   if test "x$ac_ct_CC" = x; then
2969     CC=""
2970   else
2971     case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977     CC=$ac_ct_CC
2978   fi
2979 else
2980   CC="$ac_cv_prog_CC"
2981 fi
2982
2983 if test -z "$CC"; then
2984           if test -n "$ac_tool_prefix"; then
2985     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}cc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if test -n "$CC"; then
2993   ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002     ac_cv_prog_CC="${ac_tool_prefix}cc"
3003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005   fi
3006 done
3007   done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022   fi
3023 fi
3024 if test -z "$CC"; then
3025   # Extract the first word of "cc", so it can be a program name with args.
3026 set dummy cc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_CC+set}" = set; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   if test -n "$CC"; then
3033   ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035   ac_prog_rejected=no
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041     for ac_exec_ext in '' $ac_executable_extensions; do
3042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3044        ac_prog_rejected=yes
3045        continue
3046      fi
3047     ac_cv_prog_CC="cc"
3048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049     break 2
3050   fi
3051 done
3052   done
3053 IFS=$as_save_IFS
3054
3055 if test $ac_prog_rejected = yes; then
3056   # We found a bogon in the path, so make sure we never use it.
3057   set dummy $ac_cv_prog_CC
3058   shift
3059   if test $# != 0; then
3060     # We chose a different compiler from the bogus one.
3061     # However, it has the same basename, so the bogon will be chosen
3062     # first if we set CC to just the basename; use the full file name.
3063     shift
3064     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3065   fi
3066 fi
3067 fi
3068 fi
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078
3079 fi
3080 if test -z "$CC"; then
3081   if test -n "$ac_tool_prefix"; then
3082   for ac_prog in cl.exe
3083   do
3084     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_CC+set}" = set; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test -n "$CC"; then
3092   ac_cv_prog_CC="$CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_exec_ext in '' $ac_executable_extensions; do
3100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 CC=$ac_cv_prog_CC
3112 if test -n "$CC"; then
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121     test -n "$CC" && break
3122   done
3123 fi
3124 if test -z "$CC"; then
3125   ac_ct_CC=$CC
3126   for ac_prog in cl.exe
3127 do
3128   # Extract the first word of "$ac_prog", so it can be a program name with args.
3129 set dummy $ac_prog; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3133   $as_echo_n "(cached) " >&6
3134 else
3135   if test -n "$ac_ct_CC"; then
3136   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143     for ac_exec_ext in '' $ac_executable_extensions; do
3144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145     ac_cv_prog_ac_ct_CC="$ac_prog"
3146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147     break 2
3148   fi
3149 done
3150   done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156 if test -n "$ac_ct_CC"; then
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3158 $as_echo "$ac_ct_CC" >&6; }
3159 else
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165   test -n "$ac_ct_CC" && break
3166 done
3167
3168   if test "x$ac_ct_CC" = x; then
3169     CC=""
3170   else
3171     case $cross_compiling:$ac_tool_warned in
3172 yes:)
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175 ac_tool_warned=yes ;;
3176 esac
3177     CC=$ac_ct_CC
3178   fi
3179 fi
3180
3181 fi
3182
3183
3184 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error "no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details." "$LINENO" 5; }
3188
3189 # Provide some information about the compiler.
3190 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3191 set X $ac_compile
3192 ac_compiler=$2
3193 for ac_option in --version -v -V -qversion; do
3194   { { ac_try="$ac_compiler $ac_option >&5"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3202   ac_status=$?
3203   if test -s conftest.err; then
3204     sed '10a\
3205 ... rest of stderr output deleted ...
3206          10q' conftest.err >conftest.er1
3207     cat conftest.er1 >&5
3208     rm -f conftest.er1 conftest.err
3209   fi
3210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211   test $ac_status = 0; }
3212 done
3213
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h.  */
3216
3217 int
3218 main ()
3219 {
3220
3221   ;
3222   return 0;
3223 }
3224 _ACEOF
3225 ac_clean_files_save=$ac_clean_files
3226 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3227 # Try to create an executable without -o first, disregard a.out.
3228 # It will help us diagnose broken compilers, and finding out an intuition
3229 # of exeext.
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3231 $as_echo_n "checking for C compiler default output file name... " >&6; }
3232 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3233
3234 # The possible output files:
3235 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3236
3237 ac_rmfiles=
3238 for ac_file in $ac_files
3239 do
3240   case $ac_file in
3241     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3242     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3243   esac
3244 done
3245 rm -f $ac_rmfiles
3246
3247 if { { ac_try="$ac_link_default"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254   (eval "$ac_link_default") 2>&5
3255   ac_status=$?
3256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257   test $ac_status = 0; }; then :
3258   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3259 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3260 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3261 # so that the user can short-circuit this test for compilers unknown to
3262 # Autoconf.
3263 for ac_file in $ac_files ''
3264 do
3265   test -f "$ac_file" || continue
3266   case $ac_file in
3267     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3268         ;;
3269     [ab].out )
3270         # We found the default executable, but exeext='' is most
3271         # certainly right.
3272         break;;
3273     *.* )
3274         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3275         then :; else
3276            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277         fi
3278         # We set ac_cv_exeext here because the later test for it is not
3279         # safe: cross compilers may not add the suffix if given an `-o'
3280         # argument, so we may need to know it at that point already.
3281         # Even if this section looks crufty: it has the advantage of
3282         # actually working.
3283         break;;
3284     * )
3285         break;;
3286   esac
3287 done
3288 test "$ac_cv_exeext" = no && ac_cv_exeext=
3289
3290 else
3291   ac_file=''
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3294 $as_echo "$ac_file" >&6; }
3295 if test -z "$ac_file"; then :
3296   $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 { as_fn_set_status 77
3302 as_fn_error "C compiler cannot create executables
3303 See \`config.log' for more details." "$LINENO" 5; }; }
3304 fi
3305 ac_exeext=$ac_cv_exeext
3306
3307 # Check that the compiler produces executables we can run.  If not, either
3308 # the compiler is broken, or we cross compile.
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3310 $as_echo_n "checking whether the C compiler works... " >&6; }
3311 # If not cross compiling, check that we can run a simple program.
3312 if test "$cross_compiling" != yes; then
3313   if { ac_try='./$ac_file'
3314   { { case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320   (eval "$ac_try") 2>&5
3321   ac_status=$?
3322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323   test $ac_status = 0; }; }; then
3324     cross_compiling=no
3325   else
3326     if test "$cross_compiling" = maybe; then
3327         cross_compiling=yes
3328     else
3329         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error "cannot run C compiled programs.
3332 If you meant to cross compile, use \`--host'.
3333 See \`config.log' for more details." "$LINENO" 5; }
3334     fi
3335   fi
3336 fi
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3339
3340 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3341 ac_clean_files=$ac_clean_files_save
3342 # Check that the compiler produces executables we can run.  If not, either
3343 # the compiler is broken, or we cross compile.
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3345 $as_echo_n "checking whether we are cross compiling... " >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3347 $as_echo "$cross_compiling" >&6; }
3348
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3350 $as_echo_n "checking for suffix of executables... " >&6; }
3351 if { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358   (eval "$ac_link") 2>&5
3359   ac_status=$?
3360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361   test $ac_status = 0; }; then :
3362   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3363 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3364 # work properly (i.e., refer to `conftest.exe'), while it won't with
3365 # `rm'.
3366 for ac_file in conftest.exe conftest conftest.*; do
3367   test -f "$ac_file" || continue
3368   case $ac_file in
3369     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3370     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371           break;;
3372     * ) break;;
3373   esac
3374 done
3375 else
3376   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error "cannot compute suffix of executables: cannot compile and link
3379 See \`config.log' for more details." "$LINENO" 5; }
3380 fi
3381 rm -f conftest$ac_cv_exeext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3383 $as_echo "$ac_cv_exeext" >&6; }
3384
3385 rm -f conftest.$ac_ext
3386 EXEEXT=$ac_cv_exeext
3387 ac_exeext=$EXEEXT
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3389 $as_echo_n "checking for suffix of object files... " >&6; }
3390 if test "${ac_cv_objext+set}" = set; then :
3391   $as_echo_n "(cached) " >&6
3392 else
3393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h.  */
3395
3396 int
3397 main ()
3398 {
3399
3400   ;
3401   return 0;
3402 }
3403 _ACEOF
3404 rm -f conftest.o conftest.obj
3405 if { { ac_try="$ac_compile"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412   (eval "$ac_compile") 2>&5
3413   ac_status=$?
3414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415   test $ac_status = 0; }; then :
3416   for ac_file in conftest.o conftest.obj conftest.*; do
3417   test -f "$ac_file" || continue;
3418   case $ac_file in
3419     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3420     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3421        break;;
3422   esac
3423 done
3424 else
3425   $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error "cannot compute suffix of object files: cannot compile
3431 See \`config.log' for more details." "$LINENO" 5; }
3432 fi
3433 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3436 $as_echo "$ac_cv_objext" >&6; }
3437 OBJEXT=$ac_cv_objext
3438 ac_objext=$OBJEXT
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3440 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3441 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3442   $as_echo_n "(cached) " >&6
3443 else
3444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446
3447 int
3448 main ()
3449 {
3450 #ifndef __GNUC__
3451        choke me
3452 #endif
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 if ac_fn_c_try_compile "$LINENO"; then :
3459   ac_compiler_gnu=yes
3460 else
3461   ac_compiler_gnu=no
3462 fi
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3465
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3468 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3469 if test $ac_compiler_gnu = yes; then
3470   GCC=yes
3471 else
3472   GCC=
3473 fi
3474 ac_test_CFLAGS=${CFLAGS+set}
3475 ac_save_CFLAGS=$CFLAGS
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3477 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3478 if test "${ac_cv_prog_cc_g+set}" = set; then :
3479   $as_echo_n "(cached) " >&6
3480 else
3481   ac_save_c_werror_flag=$ac_c_werror_flag
3482    ac_c_werror_flag=yes
3483    ac_cv_prog_cc_g=no
3484    CFLAGS="-g"
3485    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h.  */
3487
3488 int
3489 main ()
3490 {
3491
3492   ;
3493   return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497   ac_cv_prog_cc_g=yes
3498 else
3499   CFLAGS=""
3500       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512
3513 else
3514   ac_c_werror_flag=$ac_save_c_werror_flag
3515          CFLAGS="-g"
3516          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h.  */
3518
3519 int
3520 main ()
3521 {
3522
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528   ac_cv_prog_cc_g=yes
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535    ac_c_werror_flag=$ac_save_c_werror_flag
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3538 $as_echo "$ac_cv_prog_cc_g" >&6; }
3539 if test "$ac_test_CFLAGS" = set; then
3540   CFLAGS=$ac_save_CFLAGS
3541 elif test $ac_cv_prog_cc_g = yes; then
3542   if test "$GCC" = yes; then
3543     CFLAGS="-g -O2"
3544   else
3545     CFLAGS="-g"
3546   fi
3547 else
3548   if test "$GCC" = yes; then
3549     CFLAGS="-O2"
3550   else
3551     CFLAGS=
3552   fi
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3555 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3556 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3557   $as_echo_n "(cached) " >&6
3558 else
3559   ac_cv_prog_cc_c89=no
3560 ac_save_CC=$CC
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h.  */
3563 #include <stdarg.h>
3564 #include <stdio.h>
3565 #include <sys/types.h>
3566 #include <sys/stat.h>
3567 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3568 struct buf { int x; };
3569 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3570 static char *e (p, i)
3571      char **p;
3572      int i;
3573 {
3574   return p[i];
3575 }
3576 static char *f (char * (*g) (char **, int), char **p, ...)
3577 {
3578   char *s;
3579   va_list v;
3580   va_start (v,p);
3581   s = g (p, va_arg (v,int));
3582   va_end (v);
3583   return s;
3584 }
3585
3586 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3587    function prototypes and stuff, but not '\xHH' hex character constants.
3588    These don't provoke an error unfortunately, instead are silently treated
3589    as 'x'.  The following induces an error, until -std is added to get
3590    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3591    array size at least.  It's necessary to write '\x00'==0 to get something
3592    that's true only with -std.  */
3593 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3594
3595 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3596    inside strings and character constants.  */
3597 #define FOO(x) 'x'
3598 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3599
3600 int test (int i, double x);
3601 struct s1 {int (*f) (int a);};
3602 struct s2 {int (*f) (double a);};
3603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3604 int argc;
3605 char **argv;
3606 int
3607 main ()
3608 {
3609 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3610   ;
3611   return 0;
3612 }
3613 _ACEOF
3614 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3615         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3616 do
3617   CC="$ac_save_CC $ac_arg"
3618   if ac_fn_c_try_compile "$LINENO"; then :
3619   ac_cv_prog_cc_c89=$ac_arg
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext
3622   test "x$ac_cv_prog_cc_c89" != "xno" && break
3623 done
3624 rm -f conftest.$ac_ext
3625 CC=$ac_save_CC
3626
3627 fi
3628 # AC_CACHE_VAL
3629 case "x$ac_cv_prog_cc_c89" in
3630   x)
3631     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3632 $as_echo "none needed" >&6; } ;;
3633   xno)
3634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3635 $as_echo "unsupported" >&6; } ;;
3636   *)
3637     CC="$CC $ac_cv_prog_cc_c89"
3638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3639 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3640 esac
3641 if test "x$ac_cv_prog_cc_c89" != xno; then :
3642
3643 fi
3644
3645 ac_ext=c
3646 ac_cpp='$CPP $CPPFLAGS'
3647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650 DEPDIR="${am__leading_dot}deps"
3651
3652 ac_config_commands="$ac_config_commands depfiles"
3653
3654
3655 am_make=${MAKE-make}
3656 cat > confinc << 'END'
3657 am__doit:
3658         @echo this is the am__doit target
3659 .PHONY: am__doit
3660 END
3661 # If we don't find an include directive, just comment out the code.
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3663 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3664 am__include="#"
3665 am__quote=
3666 _am_result=none
3667 # First try GNU make style include.
3668 echo "include confinc" > confmf
3669 # Ignore all kinds of additional output from `make'.
3670 case `$am_make -s -f confmf 2> /dev/null` in #(
3671 *the\ am__doit\ target*)
3672   am__include=include
3673   am__quote=
3674   _am_result=GNU
3675   ;;
3676 esac
3677 # Now try BSD make style include.
3678 if test "$am__include" = "#"; then
3679    echo '.include "confinc"' > confmf
3680    case `$am_make -s -f confmf 2> /dev/null` in #(
3681    *the\ am__doit\ target*)
3682      am__include=.include
3683      am__quote="\""
3684      _am_result=BSD
3685      ;;
3686    esac
3687 fi
3688
3689
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3691 $as_echo "$_am_result" >&6; }
3692 rm -f confinc confmf
3693
3694 # Check whether --enable-dependency-tracking was given.
3695 if test "${enable_dependency_tracking+set}" = set; then :
3696   enableval=$enable_dependency_tracking;
3697 fi
3698
3699 if test "x$enable_dependency_tracking" != xno; then
3700   am_depcomp="$ac_aux_dir/depcomp"
3701   AMDEPBACKSLASH='\'
3702 fi
3703  if test "x$enable_dependency_tracking" != xno; then
3704   AMDEP_TRUE=
3705   AMDEP_FALSE='#'
3706 else
3707   AMDEP_TRUE='#'
3708   AMDEP_FALSE=
3709 fi
3710
3711
3712
3713 depcc="$CC"   am_compiler_list=
3714
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3716 $as_echo_n "checking dependency style of $depcc... " >&6; }
3717 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3718   $as_echo_n "(cached) " >&6
3719 else
3720   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3721   # We make a subdir and do the tests there.  Otherwise we can end up
3722   # making bogus files that we don't know about and never remove.  For
3723   # instance it was reported that on HP-UX the gcc test will end up
3724   # making a dummy file named `D' -- because `-MD' means `put the output
3725   # in D'.
3726   mkdir conftest.dir
3727   # Copy depcomp to subdir because otherwise we won't find it if we're
3728   # using a relative directory.
3729   cp "$am_depcomp" conftest.dir
3730   cd conftest.dir
3731   # We will build objects and dependencies in a subdirectory because
3732   # it helps to detect inapplicable dependency modes.  For instance
3733   # both Tru64's cc and ICC support -MD to output dependencies as a
3734   # side effect of compilation, but ICC will put the dependencies in
3735   # the current directory while Tru64 will put them in the object
3736   # directory.
3737   mkdir sub
3738
3739   am_cv_CC_dependencies_compiler_type=none
3740   if test "$am_compiler_list" = ""; then
3741      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3742   fi
3743   am__universal=false
3744   case " $depcc " in #(
3745      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3746      esac
3747
3748   for depmode in $am_compiler_list; do
3749     # Setup a source with many dependencies, because some compilers
3750     # like to wrap large dependency lists on column 80 (with \), and
3751     # we should not choose a depcomp mode which is confused by this.
3752     #
3753     # We need to recreate these files for each test, as the compiler may
3754     # overwrite some of them when testing with obscure command lines.
3755     # This happens at least with the AIX C compiler.
3756     : > sub/conftest.c
3757     for i in 1 2 3 4 5 6; do
3758       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3760       # Solaris 8's {/usr,}/bin/sh.
3761       touch sub/conftst$i.h
3762     done
3763     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764
3765     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3766     # mode.  It turns out that the SunPro C++ compiler does not properly
3767     # handle `-M -o', and we need to detect this.  Also, some Intel
3768     # versions had trouble with output in subdirs
3769     am__obj=sub/conftest.${OBJEXT-o}
3770     am__minus_obj="-o $am__obj"
3771     case $depmode in
3772     gcc)
3773       # This depmode causes a compiler race in universal mode.
3774       test "$am__universal" = false || continue
3775       ;;
3776     nosideeffect)
3777       # after this tag, mechanisms are not by side-effect, so they'll
3778       # only be used when explicitly requested
3779       if test "x$enable_dependency_tracking" = xyes; then
3780         continue
3781       else
3782         break
3783       fi
3784       ;;
3785     msvisualcpp | msvcmsys)
3786       # This compiler won't grok `-c -o', but also, the minuso test has
3787       # not run yet.  These depmodes are late enough in the game, and
3788       # so weak that their functioning should not be impacted.
3789       am__obj=conftest.${OBJEXT-o}
3790       am__minus_obj=
3791       ;;
3792     none) break ;;
3793     esac
3794     if depmode=$depmode \
3795        source=sub/conftest.c object=$am__obj \
3796        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3797        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3798          >/dev/null 2>conftest.err &&
3799        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3800        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3801        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3802        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3803       # icc doesn't choke on unknown options, it will just issue warnings
3804       # or remarks (even with -Werror).  So we grep stderr for any message
3805       # that says an option was ignored or not supported.
3806       # When given -MP, icc 7.0 and 7.1 complain thusly:
3807       #   icc: Command line warning: ignoring option '-M'; no argument required
3808       # The diagnosis changed in icc 8.0:
3809       #   icc: Command line remark: option '-MP' not supported
3810       if (grep 'ignoring option' conftest.err ||
3811           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3812         am_cv_CC_dependencies_compiler_type=$depmode
3813         break
3814       fi
3815     fi
3816   done
3817
3818   cd ..
3819   rm -rf conftest.dir
3820 else
3821   am_cv_CC_dependencies_compiler_type=none
3822 fi
3823
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3826 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3828
3829  if
3830   test "x$enable_dependency_tracking" != xno \
3831   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3832   am__fastdepCC_TRUE=
3833   am__fastdepCC_FALSE='#'
3834 else
3835   am__fastdepCC_TRUE='#'
3836   am__fastdepCC_FALSE=
3837 fi
3838
3839
3840
3841
3842 case `pwd` in
3843   *\ * | *\     *)
3844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3845 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3846 esac
3847
3848
3849
3850 macro_version='2.2.6'
3851 macro_revision='1.3012'
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865 ltmain="$ac_aux_dir/ltmain.sh"
3866
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3868 $as_echo_n "checking host system type... " >&6; }
3869 if test "${ac_cv_host+set}" = set; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   if test "x$host_alias" = x; then
3873   ac_cv_host=$ac_cv_build
3874 else
3875   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3876     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3877 fi
3878
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3881 $as_echo "$ac_cv_host" >&6; }
3882 case $ac_cv_host in
3883 *-*-*) ;;
3884 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3885 esac
3886 host=$ac_cv_host
3887 ac_save_IFS=$IFS; IFS='-'
3888 set x $ac_cv_host
3889 shift
3890 host_cpu=$1
3891 host_vendor=$2
3892 shift; shift
3893 # Remember, the first character of IFS is used to create $*,
3894 # except with old shells:
3895 host_os=$*
3896 IFS=$ac_save_IFS
3897 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3898
3899
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3901 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3902 if test "${ac_cv_path_SED+set}" = set; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3906      for ac_i in 1 2 3 4 5 6 7; do
3907        ac_script="$ac_script$as_nl$ac_script"
3908      done
3909      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3910      { ac_script=; unset ac_script;}
3911      if test -z "$SED"; then
3912   ac_path_SED_found=false
3913   # Loop through the user's path and test for each of PROGNAME-LIST
3914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3916 do
3917   IFS=$as_save_IFS
3918   test -z "$as_dir" && as_dir=.
3919     for ac_prog in sed gsed; do
3920     for ac_exec_ext in '' $ac_executable_extensions; do
3921       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3922       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3923 # Check for GNU ac_path_SED and select it if it is found.
3924   # Check for GNU $ac_path_SED
3925 case `"$ac_path_SED" --version 2>&1` in
3926 *GNU*)
3927   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3928 *)
3929   ac_count=0
3930   $as_echo_n 0123456789 >"conftest.in"
3931   while :
3932   do
3933     cat "conftest.in" "conftest.in" >"conftest.tmp"
3934     mv "conftest.tmp" "conftest.in"
3935     cp "conftest.in" "conftest.nl"
3936     $as_echo '' >> "conftest.nl"
3937     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3938     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3939     as_fn_arith $ac_count + 1 && ac_count=$as_val
3940     if test $ac_count -gt ${ac_path_SED_max-0}; then
3941       # Best one so far, save it but keep looking for a better one
3942       ac_cv_path_SED="$ac_path_SED"
3943       ac_path_SED_max=$ac_count
3944     fi
3945     # 10*(2^10) chars as input seems more than enough
3946     test $ac_count -gt 10 && break
3947   done
3948   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3949 esac
3950
3951       $ac_path_SED_found && break 3
3952     done
3953   done
3954   done
3955 IFS=$as_save_IFS
3956   if test -z "$ac_cv_path_SED"; then
3957     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3958   fi
3959 else
3960   ac_cv_path_SED=$SED
3961 fi
3962
3963 fi
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3965 $as_echo "$ac_cv_path_SED" >&6; }
3966  SED="$ac_cv_path_SED"
3967   rm -f conftest.sed
3968
3969 test -z "$SED" && SED=sed
3970 Xsed="$SED -e 1s/^X//"
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3983 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3984 if test "${ac_cv_path_GREP+set}" = set; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   if test -z "$GREP"; then
3988   ac_path_GREP_found=false
3989   # Loop through the user's path and test for each of PROGNAME-LIST
3990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995     for ac_prog in grep ggrep; do
3996     for ac_exec_ext in '' $ac_executable_extensions; do
3997       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3998       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3999 # Check for GNU ac_path_GREP and select it if it is found.
4000   # Check for GNU $ac_path_GREP
4001 case `"$ac_path_GREP" --version 2>&1` in
4002 *GNU*)
4003   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4004 *)
4005   ac_count=0
4006   $as_echo_n 0123456789 >"conftest.in"
4007   while :
4008   do
4009     cat "conftest.in" "conftest.in" >"conftest.tmp"
4010     mv "conftest.tmp" "conftest.in"
4011     cp "conftest.in" "conftest.nl"
4012     $as_echo 'GREP' >> "conftest.nl"
4013     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4014     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4015     as_fn_arith $ac_count + 1 && ac_count=$as_val
4016     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4017       # Best one so far, save it but keep looking for a better one
4018       ac_cv_path_GREP="$ac_path_GREP"
4019       ac_path_GREP_max=$ac_count
4020     fi
4021     # 10*(2^10) chars as input seems more than enough
4022     test $ac_count -gt 10 && break
4023   done
4024   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4025 esac
4026
4027       $ac_path_GREP_found && break 3
4028     done
4029   done
4030   done
4031 IFS=$as_save_IFS
4032   if test -z "$ac_cv_path_GREP"; then
4033     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4034   fi
4035 else
4036   ac_cv_path_GREP=$GREP
4037 fi
4038
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4041 $as_echo "$ac_cv_path_GREP" >&6; }
4042  GREP="$ac_cv_path_GREP"
4043
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4046 $as_echo_n "checking for egrep... " >&6; }
4047 if test "${ac_cv_path_EGREP+set}" = set; then :
4048   $as_echo_n "(cached) " >&6
4049 else
4050   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4051    then ac_cv_path_EGREP="$GREP -E"
4052    else
4053      if test -z "$EGREP"; then
4054   ac_path_EGREP_found=false
4055   # Loop through the user's path and test for each of PROGNAME-LIST
4056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061     for ac_prog in egrep; do
4062     for ac_exec_ext in '' $ac_executable_extensions; do
4063       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4064       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4065 # Check for GNU ac_path_EGREP and select it if it is found.
4066   # Check for GNU $ac_path_EGREP
4067 case `"$ac_path_EGREP" --version 2>&1` in
4068 *GNU*)
4069   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070 *)
4071   ac_count=0
4072   $as_echo_n 0123456789 >"conftest.in"
4073   while :
4074   do
4075     cat "conftest.in" "conftest.in" >"conftest.tmp"
4076     mv "conftest.tmp" "conftest.in"
4077     cp "conftest.in" "conftest.nl"
4078     $as_echo 'EGREP' >> "conftest.nl"
4079     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4080     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4081     as_fn_arith $ac_count + 1 && ac_count=$as_val
4082     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4083       # Best one so far, save it but keep looking for a better one
4084       ac_cv_path_EGREP="$ac_path_EGREP"
4085       ac_path_EGREP_max=$ac_count
4086     fi
4087     # 10*(2^10) chars as input seems more than enough
4088     test $ac_count -gt 10 && break
4089   done
4090   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4091 esac
4092
4093       $ac_path_EGREP_found && break 3
4094     done
4095   done
4096   done
4097 IFS=$as_save_IFS
4098   if test -z "$ac_cv_path_EGREP"; then
4099     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4100   fi
4101 else
4102   ac_cv_path_EGREP=$EGREP
4103 fi
4104
4105    fi
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4108 $as_echo "$ac_cv_path_EGREP" >&6; }
4109  EGREP="$ac_cv_path_EGREP"
4110
4111
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4113 $as_echo_n "checking for fgrep... " >&6; }
4114 if test "${ac_cv_path_FGREP+set}" = set; then :
4115   $as_echo_n "(cached) " >&6
4116 else
4117   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4118    then ac_cv_path_FGREP="$GREP -F"
4119    else
4120      if test -z "$FGREP"; then
4121   ac_path_FGREP_found=false
4122   # Loop through the user's path and test for each of PROGNAME-LIST
4123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128     for ac_prog in fgrep; do
4129     for ac_exec_ext in '' $ac_executable_extensions; do
4130       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4131       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4132 # Check for GNU ac_path_FGREP and select it if it is found.
4133   # Check for GNU $ac_path_FGREP
4134 case `"$ac_path_FGREP" --version 2>&1` in
4135 *GNU*)
4136   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4137 *)
4138   ac_count=0
4139   $as_echo_n 0123456789 >"conftest.in"
4140   while :
4141   do
4142     cat "conftest.in" "conftest.in" >"conftest.tmp"
4143     mv "conftest.tmp" "conftest.in"
4144     cp "conftest.in" "conftest.nl"
4145     $as_echo 'FGREP' >> "conftest.nl"
4146     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4147     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4148     as_fn_arith $ac_count + 1 && ac_count=$as_val
4149     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4150       # Best one so far, save it but keep looking for a better one
4151       ac_cv_path_FGREP="$ac_path_FGREP"
4152       ac_path_FGREP_max=$ac_count
4153     fi
4154     # 10*(2^10) chars as input seems more than enough
4155     test $ac_count -gt 10 && break
4156   done
4157   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4158 esac
4159
4160       $ac_path_FGREP_found && break 3
4161     done
4162   done
4163   done
4164 IFS=$as_save_IFS
4165   if test -z "$ac_cv_path_FGREP"; then
4166     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4167   fi
4168 else
4169   ac_cv_path_FGREP=$FGREP
4170 fi
4171
4172    fi
4173 fi
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4175 $as_echo "$ac_cv_path_FGREP" >&6; }
4176  FGREP="$ac_cv_path_FGREP"
4177
4178
4179 test -z "$GREP" && GREP=grep
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199 # Check whether --with-gnu-ld was given.
4200 if test "${with_gnu_ld+set}" = set; then :
4201   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4202 else
4203   with_gnu_ld=no
4204 fi
4205
4206 ac_prog=ld
4207 if test "$GCC" = yes; then
4208   # Check if gcc -print-prog-name=ld gives a path.
4209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4210 $as_echo_n "checking for ld used by $CC... " >&6; }
4211   case $host in
4212   *-*-mingw*)
4213     # gcc leaves a trailing carriage return which upsets mingw
4214     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4215   *)
4216     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4217   esac
4218   case $ac_prog in
4219     # Accept absolute paths.
4220     [\\/]* | ?:[\\/]*)
4221       re_direlt='/[^/][^/]*/\.\./'
4222       # Canonicalize the pathname of ld
4223       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4224       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4225         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4226       done
4227       test -z "$LD" && LD="$ac_prog"
4228       ;;
4229   "")
4230     # If it fails, then pretend we aren't using GCC.
4231     ac_prog=ld
4232     ;;
4233   *)
4234     # If it is relative, then search for the first ld in PATH.
4235     with_gnu_ld=unknown
4236     ;;
4237   esac
4238 elif test "$with_gnu_ld" = yes; then
4239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4240 $as_echo_n "checking for GNU ld... " >&6; }
4241 else
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4243 $as_echo_n "checking for non-GNU ld... " >&6; }
4244 fi
4245 if test "${lt_cv_path_LD+set}" = set; then :
4246   $as_echo_n "(cached) " >&6
4247 else
4248   if test -z "$LD"; then
4249   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4250   for ac_dir in $PATH; do
4251     IFS="$lt_save_ifs"
4252     test -z "$ac_dir" && ac_dir=.
4253     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4254       lt_cv_path_LD="$ac_dir/$ac_prog"
4255       # Check to see if the program is GNU ld.  I'd rather use --version,
4256       # but apparently some variants of GNU ld only accept -v.
4257       # Break only if it was the GNU/non-GNU ld that we prefer.
4258       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4259       *GNU* | *'with BFD'*)
4260         test "$with_gnu_ld" != no && break
4261         ;;
4262       *)
4263         test "$with_gnu_ld" != yes && break
4264         ;;
4265       esac
4266     fi
4267   done
4268   IFS="$lt_save_ifs"
4269 else
4270   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4271 fi
4272 fi
4273
4274 LD="$lt_cv_path_LD"
4275 if test -n "$LD"; then
4276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4277 $as_echo "$LD" >&6; }
4278 else
4279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4281 fi
4282 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4284 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4285 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4289 case `$LD -v 2>&1 </dev/null` in
4290 *GNU* | *'with BFD'*)
4291   lt_cv_prog_gnu_ld=yes
4292   ;;
4293 *)
4294   lt_cv_prog_gnu_ld=no
4295   ;;
4296 esac
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4299 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4300 with_gnu_ld=$lt_cv_prog_gnu_ld
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4311 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4312 if test "${lt_cv_path_NM+set}" = set; then :
4313   $as_echo_n "(cached) " >&6
4314 else
4315   if test -n "$NM"; then
4316   # Let the user override the test.
4317   lt_cv_path_NM="$NM"
4318 else
4319   lt_nm_to_check="${ac_tool_prefix}nm"
4320   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4321     lt_nm_to_check="$lt_nm_to_check nm"
4322   fi
4323   for lt_tmp_nm in $lt_nm_to_check; do
4324     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4325     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4326       IFS="$lt_save_ifs"
4327       test -z "$ac_dir" && ac_dir=.
4328       tmp_nm="$ac_dir/$lt_tmp_nm"
4329       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4330         # Check to see if the nm accepts a BSD-compat flag.
4331         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4332         #   nm: unknown option "B" ignored
4333         # Tru64's nm complains that /dev/null is an invalid object file
4334         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4335         */dev/null* | *'Invalid file or object type'*)
4336           lt_cv_path_NM="$tmp_nm -B"
4337           break
4338           ;;
4339         *)
4340           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4341           */dev/null*)
4342             lt_cv_path_NM="$tmp_nm -p"
4343             break
4344             ;;
4345           *)
4346             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4347             continue # so that we can try to find one that supports BSD flags
4348             ;;
4349           esac
4350           ;;
4351         esac
4352       fi
4353     done
4354     IFS="$lt_save_ifs"
4355   done
4356   : ${lt_cv_path_NM=no}
4357 fi
4358 fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4360 $as_echo "$lt_cv_path_NM" >&6; }
4361 if test "$lt_cv_path_NM" != "no"; then
4362   NM="$lt_cv_path_NM"
4363 else
4364   # Didn't find any BSD compatible name lister, look for dumpbin.
4365   if test -n "$ac_tool_prefix"; then
4366   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4367   do
4368     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4373   $as_echo_n "(cached) " >&6
4374 else
4375   if test -n "$DUMPBIN"; then
4376   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383     for ac_exec_ext in '' $ac_executable_extensions; do
4384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390   done
4391 IFS=$as_save_IFS
4392
4393 fi
4394 fi
4395 DUMPBIN=$ac_cv_prog_DUMPBIN
4396 if test -n "$DUMPBIN"; then
4397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4398 $as_echo "$DUMPBIN" >&6; }
4399 else
4400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4402 fi
4403
4404
4405     test -n "$DUMPBIN" && break
4406   done
4407 fi
4408 if test -z "$DUMPBIN"; then
4409   ac_ct_DUMPBIN=$DUMPBIN
4410   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4411 do
4412   # Extract the first word of "$ac_prog", so it can be a program name with args.
4413 set dummy $ac_prog; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4417   $as_echo_n "(cached) " >&6
4418 else
4419   if test -n "$ac_ct_DUMPBIN"; then
4420   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425   IFS=$as_save_IFS
4426   test -z "$as_dir" && as_dir=.
4427     for ac_exec_ext in '' $ac_executable_extensions; do
4428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431     break 2
4432   fi
4433 done
4434   done
4435 IFS=$as_save_IFS
4436
4437 fi
4438 fi
4439 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4440 if test -n "$ac_ct_DUMPBIN"; then
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4442 $as_echo "$ac_ct_DUMPBIN" >&6; }
4443 else
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 fi
4447
4448
4449   test -n "$ac_ct_DUMPBIN" && break
4450 done
4451
4452   if test "x$ac_ct_DUMPBIN" = x; then
4453     DUMPBIN=":"
4454   else
4455     case $cross_compiling:$ac_tool_warned in
4456 yes:)
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4459 ac_tool_warned=yes ;;
4460 esac
4461     DUMPBIN=$ac_ct_DUMPBIN
4462   fi
4463 fi
4464
4465
4466   if test "$DUMPBIN" != ":"; then
4467     NM="$DUMPBIN"
4468   fi
4469 fi
4470 test -z "$NM" && NM=nm
4471
4472
4473
4474
4475
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4478 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4479 if test "${lt_cv_nm_interface+set}" = set; then :
4480   $as_echo_n "(cached) " >&6
4481 else
4482   lt_cv_nm_interface="BSD nm"
4483   echo "int some_variable = 0;" > conftest.$ac_ext
4484   (eval echo "\"\$as_me:4484: $ac_compile\"" >&5)
4485   (eval "$ac_compile" 2>conftest.err)
4486   cat conftest.err >&5
4487   (eval echo "\"\$as_me:4487: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4488   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4489   cat conftest.err >&5
4490   (eval echo "\"\$as_me:4490: output\"" >&5)
4491   cat conftest.out >&5
4492   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4493     lt_cv_nm_interface="MS dumpbin"
4494   fi
4495   rm -f conftest*
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4498 $as_echo "$lt_cv_nm_interface" >&6; }
4499
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4501 $as_echo_n "checking whether ln -s works... " >&6; }
4502 LN_S=$as_ln_s
4503 if test "$LN_S" = "ln -s"; then
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4505 $as_echo "yes" >&6; }
4506 else
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4508 $as_echo "no, using $LN_S" >&6; }
4509 fi
4510
4511 # find the maximum length of command line arguments
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4513 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4514 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517     i=0
4518   teststring="ABCD"
4519
4520   case $build_os in
4521   msdosdjgpp*)
4522     # On DJGPP, this test can blow up pretty badly due to problems in libc
4523     # (any single argument exceeding 2000 bytes causes a buffer overrun
4524     # during glob expansion).  Even if it were fixed, the result of this
4525     # check would be larger than it should be.
4526     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4527     ;;
4528
4529   gnu*)
4530     # Under GNU Hurd, this test is not required because there is
4531     # no limit to the length of command line arguments.
4532     # Libtool will interpret -1 as no limit whatsoever
4533     lt_cv_sys_max_cmd_len=-1;
4534     ;;
4535
4536   cygwin* | mingw* | cegcc*)
4537     # On Win9x/ME, this test blows up -- it succeeds, but takes
4538     # about 5 minutes as the teststring grows exponentially.
4539     # Worse, since 9x/ME are not pre-emptively multitasking,
4540     # you end up with a "frozen" computer, even though with patience
4541     # the test eventually succeeds (with a max line length of 256k).
4542     # Instead, let's just punt: use the minimum linelength reported by
4543     # all of the supported platforms: 8192 (on NT/2K/XP).
4544     lt_cv_sys_max_cmd_len=8192;
4545     ;;
4546
4547   amigaos*)
4548     # On AmigaOS with pdksh, this test takes hours, literally.
4549     # So we just punt and use a minimum line length of 8192.
4550     lt_cv_sys_max_cmd_len=8192;
4551     ;;
4552
4553   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4554     # This has been around since 386BSD, at least.  Likely further.
4555     if test -x /sbin/sysctl; then
4556       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4557     elif test -x /usr/sbin/sysctl; then
4558       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4559     else
4560       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4561     fi
4562     # And add a safety zone
4563     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4564     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4565     ;;
4566
4567   interix*)
4568     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4569     lt_cv_sys_max_cmd_len=196608
4570     ;;
4571
4572   osf*)
4573     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4574     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4575     # nice to cause kernel panics so lets avoid the loop below.
4576     # First set a reasonable default.
4577     lt_cv_sys_max_cmd_len=16384
4578     #
4579     if test -x /sbin/sysconfig; then
4580       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4581         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4582       esac
4583     fi
4584     ;;
4585   sco3.2v5*)
4586     lt_cv_sys_max_cmd_len=102400
4587     ;;
4588   sysv5* | sco5v6* | sysv4.2uw2*)
4589     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4590     if test -n "$kargmax"; then
4591       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4592     else
4593       lt_cv_sys_max_cmd_len=32768
4594     fi
4595     ;;
4596   *)
4597     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4598     if test -n "$lt_cv_sys_max_cmd_len"; then
4599       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4600       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4601     else
4602       # Make teststring a little bigger before we do anything with it.
4603       # a 1K string should be a reasonable start.
4604       for i in 1 2 3 4 5 6 7 8 ; do
4605         teststring=$teststring$teststring
4606       done
4607       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4608       # If test is not a shell built-in, we'll probably end up computing a
4609       # maximum length that is only half of the actual maximum length, but
4610       # we can't tell.
4611       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4612                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4613               test $i != 17 # 1/2 MB should be enough
4614       do
4615         i=`expr $i + 1`
4616         teststring=$teststring$teststring
4617       done
4618       # Only check the string length outside the loop.
4619       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4620       teststring=
4621       # Add a significant safety factor because C++ compilers can tack on
4622       # massive amounts of additional arguments before passing them to the
4623       # linker.  It appears as though 1/2 is a usable value.
4624       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4625     fi
4626     ;;
4627   esac
4628
4629 fi
4630
4631 if test -n $lt_cv_sys_max_cmd_len ; then
4632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4633 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4634 else
4635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4636 $as_echo "none" >&6; }
4637 fi
4638 max_cmd_len=$lt_cv_sys_max_cmd_len
4639
4640
4641
4642
4643
4644
4645 : ${CP="cp -f"}
4646 : ${MV="mv -f"}
4647 : ${RM="rm -f"}
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4650 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4651 # Try some XSI features
4652 xsi_shell=no
4653 ( _lt_dummy="a/b/c"
4654   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4655       = c,a/b,, \
4656     && eval 'test $(( 1 + 1 )) -eq 2 \
4657     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4658   && xsi_shell=yes
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4660 $as_echo "$xsi_shell" >&6; }
4661
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4664 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4665 lt_shell_append=no
4666 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4667     >/dev/null 2>&1 \
4668   && lt_shell_append=yes
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4670 $as_echo "$lt_shell_append" >&6; }
4671
4672
4673 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4674   lt_unset=unset
4675 else
4676   lt_unset=false
4677 fi
4678
4679
4680
4681
4682
4683 # test EBCDIC or ASCII
4684 case `echo X|tr X '\101'` in
4685  A) # ASCII based system
4686     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4687   lt_SP2NL='tr \040 \012'
4688   lt_NL2SP='tr \015\012 \040\040'
4689   ;;
4690  *) # EBCDIC based system
4691   lt_SP2NL='tr \100 \n'
4692   lt_NL2SP='tr \r\n \100\100'
4693   ;;
4694 esac
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4705 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4706 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4707   $as_echo_n "(cached) " >&6
4708 else
4709   lt_cv_ld_reload_flag='-r'
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4712 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4713 reload_flag=$lt_cv_ld_reload_flag
4714 case $reload_flag in
4715 "" | " "*) ;;
4716 *) reload_flag=" $reload_flag" ;;
4717 esac
4718 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4719 case $host_os in
4720   darwin*)
4721     if test "$GCC" = yes; then
4722       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4723     else
4724       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4725     fi
4726     ;;
4727 esac
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737 if test -n "$ac_tool_prefix"; then
4738   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4739 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4743   $as_echo_n "(cached) " >&6
4744 else
4745   if test -n "$OBJDUMP"; then
4746   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753     for ac_exec_ext in '' $ac_executable_extensions; do
4754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757     break 2
4758   fi
4759 done
4760   done
4761 IFS=$as_save_IFS
4762
4763 fi
4764 fi
4765 OBJDUMP=$ac_cv_prog_OBJDUMP
4766 if test -n "$OBJDUMP"; then
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4768 $as_echo "$OBJDUMP" >&6; }
4769 else
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4772 fi
4773
4774
4775 fi
4776 if test -z "$ac_cv_prog_OBJDUMP"; then
4777   ac_ct_OBJDUMP=$OBJDUMP
4778   # Extract the first word of "objdump", so it can be a program name with args.
4779 set dummy objdump; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if test -n "$ac_ct_OBJDUMP"; then
4786   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793     for ac_exec_ext in '' $ac_executable_extensions; do
4794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800   done
4801 IFS=$as_save_IFS
4802
4803 fi
4804 fi
4805 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4806 if test -n "$ac_ct_OBJDUMP"; then
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4808 $as_echo "$ac_ct_OBJDUMP" >&6; }
4809 else
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814   if test "x$ac_ct_OBJDUMP" = x; then
4815     OBJDUMP="false"
4816   else
4817     case $cross_compiling:$ac_tool_warned in
4818 yes:)
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821 ac_tool_warned=yes ;;
4822 esac
4823     OBJDUMP=$ac_ct_OBJDUMP
4824   fi
4825 else
4826   OBJDUMP="$ac_cv_prog_OBJDUMP"
4827 fi
4828
4829 test -z "$OBJDUMP" && OBJDUMP=objdump
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4840 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4841 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   lt_cv_file_magic_cmd='$MAGIC_CMD'
4845 lt_cv_file_magic_test_file=
4846 lt_cv_deplibs_check_method='unknown'
4847 # Need to set the preceding variable on all platforms that support
4848 # interlibrary dependencies.
4849 # 'none' -- dependencies not supported.
4850 # `unknown' -- same as none, but documents that we really don't know.
4851 # 'pass_all' -- all dependencies passed with no checks.
4852 # 'test_compile' -- check by making test program.
4853 # 'file_magic [[regex]]' -- check by looking for files in library path
4854 # which responds to the $file_magic_cmd with a given extended regex.
4855 # If you have `file' or equivalent on your system and you're not sure
4856 # whether `pass_all' will *always* work, you probably want this one.
4857
4858 case $host_os in
4859 aix[4-9]*)
4860   lt_cv_deplibs_check_method=pass_all
4861   ;;
4862
4863 beos*)
4864   lt_cv_deplibs_check_method=pass_all
4865   ;;
4866
4867 bsdi[45]*)
4868   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4869   lt_cv_file_magic_cmd='/usr/bin/file -L'
4870   lt_cv_file_magic_test_file=/shlib/libc.so
4871   ;;
4872
4873 cygwin*)
4874   # func_win32_libid is a shell function defined in ltmain.sh
4875   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4876   lt_cv_file_magic_cmd='func_win32_libid'
4877   ;;
4878
4879 mingw* | pw32*)
4880   # Base MSYS/MinGW do not provide the 'file' command needed by
4881   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4882   # unless we find 'file', for example because we are cross-compiling.
4883   if ( file / ) >/dev/null 2>&1; then
4884     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4885     lt_cv_file_magic_cmd='func_win32_libid'
4886   else
4887     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4888     lt_cv_file_magic_cmd='$OBJDUMP -f'
4889   fi
4890   ;;
4891
4892 cegcc)
4893   # use the weaker test based on 'objdump'. See mingw*.
4894   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4895   lt_cv_file_magic_cmd='$OBJDUMP -f'
4896   ;;
4897
4898 darwin* | rhapsody*)
4899   lt_cv_deplibs_check_method=pass_all
4900   ;;
4901
4902 freebsd* | dragonfly*)
4903   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4904     case $host_cpu in
4905     i*86 )
4906       # Not sure whether the presence of OpenBSD here was a mistake.
4907       # Let's accept both of them until this is cleared up.
4908       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4909       lt_cv_file_magic_cmd=/usr/bin/file
4910       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4911       ;;
4912     esac
4913   else
4914     lt_cv_deplibs_check_method=pass_all
4915   fi
4916   ;;
4917
4918 gnu*)
4919   lt_cv_deplibs_check_method=pass_all
4920   ;;
4921
4922 hpux10.20* | hpux11*)
4923   lt_cv_file_magic_cmd=/usr/bin/file
4924   case $host_cpu in
4925   ia64*)
4926     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4927     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4928     ;;
4929   hppa*64*)
4930     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]'
4931     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4932     ;;
4933   *)
4934     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4935     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4936     ;;
4937   esac
4938   ;;
4939
4940 interix[3-9]*)
4941   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4942   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4943   ;;
4944
4945 irix5* | irix6* | nonstopux*)
4946   case $LD in
4947   *-32|*"-32 ") libmagic=32-bit;;
4948   *-n32|*"-n32 ") libmagic=N32;;
4949   *-64|*"-64 ") libmagic=64-bit;;
4950   *) libmagic=never-match;;
4951   esac
4952   lt_cv_deplibs_check_method=pass_all
4953   ;;
4954
4955 # This must be Linux ELF.
4956 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4957   lt_cv_deplibs_check_method=pass_all
4958   ;;
4959
4960 netbsd*)
4961   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4962     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4963   else
4964     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4965   fi
4966   ;;
4967
4968 newos6*)
4969   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4970   lt_cv_file_magic_cmd=/usr/bin/file
4971   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4972   ;;
4973
4974 *nto* | *qnx*)
4975   lt_cv_deplibs_check_method=pass_all
4976   ;;
4977
4978 openbsd*)
4979   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4980     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4981   else
4982     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4983   fi
4984   ;;
4985
4986 osf3* | osf4* | osf5*)
4987   lt_cv_deplibs_check_method=pass_all
4988   ;;
4989
4990 rdos*)
4991   lt_cv_deplibs_check_method=pass_all
4992   ;;
4993
4994 solaris*)
4995   lt_cv_deplibs_check_method=pass_all
4996   ;;
4997
4998 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4999   lt_cv_deplibs_check_method=pass_all
5000   ;;
5001
5002 sysv4 | sysv4.3*)
5003   case $host_vendor in
5004   motorola)
5005     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]'
5006     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5007     ;;
5008   ncr)
5009     lt_cv_deplibs_check_method=pass_all
5010     ;;
5011   sequent)
5012     lt_cv_file_magic_cmd='/bin/file'
5013     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5014     ;;
5015   sni)
5016     lt_cv_file_magic_cmd='/bin/file'
5017     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5018     lt_cv_file_magic_test_file=/lib/libc.so
5019     ;;
5020   siemens)
5021     lt_cv_deplibs_check_method=pass_all
5022     ;;
5023   pc)
5024     lt_cv_deplibs_check_method=pass_all
5025     ;;
5026   esac
5027   ;;
5028
5029 tpf*)
5030   lt_cv_deplibs_check_method=pass_all
5031   ;;
5032 esac
5033
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5036 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5037 file_magic_cmd=$lt_cv_file_magic_cmd
5038 deplibs_check_method=$lt_cv_deplibs_check_method
5039 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052 if test -n "$ac_tool_prefix"; then
5053   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5054 set dummy ${ac_tool_prefix}ar; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if test "${ac_cv_prog_AR+set}" = set; then :
5058   $as_echo_n "(cached) " >&6
5059 else
5060   if test -n "$AR"; then
5061   ac_cv_prog_AR="$AR" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066   IFS=$as_save_IFS
5067   test -z "$as_dir" && as_dir=.
5068     for ac_exec_ext in '' $ac_executable_extensions; do
5069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070     ac_cv_prog_AR="${ac_tool_prefix}ar"
5071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072     break 2
5073   fi
5074 done
5075   done
5076 IFS=$as_save_IFS
5077
5078 fi
5079 fi
5080 AR=$ac_cv_prog_AR
5081 if test -n "$AR"; then
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5083 $as_echo "$AR" >&6; }
5084 else
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088
5089
5090 fi
5091 if test -z "$ac_cv_prog_AR"; then
5092   ac_ct_AR=$AR
5093   # Extract the first word of "ar", so it can be a program name with args.
5094 set dummy ar; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5098   $as_echo_n "(cached) " >&6
5099 else
5100   if test -n "$ac_ct_AR"; then
5101   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108     for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_prog_ac_ct_AR="ar"
5111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115   done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5121 if test -n "$ac_ct_AR"; then
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5123 $as_echo "$ac_ct_AR" >&6; }
5124 else
5125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129   if test "x$ac_ct_AR" = x; then
5130     AR="false"
5131   else
5132     case $cross_compiling:$ac_tool_warned in
5133 yes:)
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136 ac_tool_warned=yes ;;
5137 esac
5138     AR=$ac_ct_AR
5139   fi
5140 else
5141   AR="$ac_cv_prog_AR"
5142 fi
5143
5144 test -z "$AR" && AR=ar
5145 test -z "$AR_FLAGS" && AR_FLAGS=cru
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 if test -n "$ac_tool_prefix"; then
5158   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5159 set dummy ${ac_tool_prefix}strip; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_prog_STRIP+set}" = set; then :
5163   $as_echo_n "(cached) " >&6
5164 else
5165   if test -n "$STRIP"; then
5166   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171   IFS=$as_save_IFS
5172   test -z "$as_dir" && as_dir=.
5173     for ac_exec_ext in '' $ac_executable_extensions; do
5174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177     break 2
5178   fi
5179 done
5180   done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 STRIP=$ac_cv_prog_STRIP
5186 if test -n "$STRIP"; then
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5188 $as_echo "$STRIP" >&6; }
5189 else
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194
5195 fi
5196 if test -z "$ac_cv_prog_STRIP"; then
5197   ac_ct_STRIP=$STRIP
5198   # Extract the first word of "strip", so it can be a program name with args.
5199 set dummy strip; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5203   $as_echo_n "(cached) " >&6
5204 else
5205   if test -n "$ac_ct_STRIP"; then
5206   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213     for ac_exec_ext in '' $ac_executable_extensions; do
5214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215     ac_cv_prog_ac_ct_STRIP="strip"
5216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220   done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5226 if test -n "$ac_ct_STRIP"; then
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5228 $as_echo "$ac_ct_STRIP" >&6; }
5229 else
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 fi
5233
5234   if test "x$ac_ct_STRIP" = x; then
5235     STRIP=":"
5236   else
5237     case $cross_compiling:$ac_tool_warned in
5238 yes:)
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241 ac_tool_warned=yes ;;
5242 esac
5243     STRIP=$ac_ct_STRIP
5244   fi
5245 else
5246   STRIP="$ac_cv_prog_STRIP"
5247 fi
5248
5249 test -z "$STRIP" && STRIP=:
5250
5251
5252
5253
5254
5255
5256 if test -n "$ac_tool_prefix"; then
5257   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   if test -n "$RANLIB"; then
5265   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270   IFS=$as_save_IFS
5271   test -z "$as_dir" && as_dir=.
5272     for ac_exec_ext in '' $ac_executable_extensions; do
5273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276     break 2
5277   fi
5278 done
5279   done
5280 IFS=$as_save_IFS
5281
5282 fi
5283 fi
5284 RANLIB=$ac_cv_prog_RANLIB
5285 if test -n "$RANLIB"; then
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5287 $as_echo "$RANLIB" >&6; }
5288 else
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5291 fi
5292
5293
5294 fi
5295 if test -z "$ac_cv_prog_RANLIB"; then
5296   ac_ct_RANLIB=$RANLIB
5297   # Extract the first word of "ranlib", so it can be a program name with args.
5298 set dummy ranlib; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5302   $as_echo_n "(cached) " >&6
5303 else
5304   if test -n "$ac_ct_RANLIB"; then
5305   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312     for ac_exec_ext in '' $ac_executable_extensions; do
5313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314     ac_cv_prog_ac_ct_RANLIB="ranlib"
5315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319   done
5320 IFS=$as_save_IFS
5321
5322 fi
5323 fi
5324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5325 if test -n "$ac_ct_RANLIB"; then
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5327 $as_echo "$ac_ct_RANLIB" >&6; }
5328 else
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5331 fi
5332
5333   if test "x$ac_ct_RANLIB" = x; then
5334     RANLIB=":"
5335   else
5336     case $cross_compiling:$ac_tool_warned in
5337 yes:)
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5340 ac_tool_warned=yes ;;
5341 esac
5342     RANLIB=$ac_ct_RANLIB
5343   fi
5344 else
5345   RANLIB="$ac_cv_prog_RANLIB"
5346 fi
5347
5348 test -z "$RANLIB" && RANLIB=:
5349
5350
5351
5352
5353
5354
5355 # Determine commands to create old-style static archives.
5356 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5357 old_postinstall_cmds='chmod 644 $oldlib'
5358 old_postuninstall_cmds=
5359
5360 if test -n "$RANLIB"; then
5361   case $host_os in
5362   openbsd*)
5363     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5364     ;;
5365   *)
5366     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5367     ;;
5368   esac
5369   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5370 fi
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 # If no C compiler was specified, use CC.
5406 LTCC=${LTCC-"$CC"}
5407
5408 # If no C compiler flags were specified, use CFLAGS.
5409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5410
5411 # Allow CC to be a program name with arguments.
5412 compiler=$CC
5413
5414
5415 # Check for command to grab the raw symbol name followed by C symbol from nm.
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5417 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5418 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5419   $as_echo_n "(cached) " >&6
5420 else
5421
5422 # These are sane defaults that work on at least a few old systems.
5423 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5424
5425 # Character class describing NM global symbol codes.
5426 symcode='[BCDEGRST]'
5427
5428 # Regexp to match symbols that can be accessed directly from C.
5429 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5430
5431 # Define system-specific variables.
5432 case $host_os in
5433 aix*)
5434   symcode='[BCDT]'
5435   ;;
5436 cygwin* | mingw* | pw32* | cegcc*)
5437   symcode='[ABCDGISTW]'
5438   ;;
5439 hpux*)
5440   if test "$host_cpu" = ia64; then
5441     symcode='[ABCDEGRST]'
5442   fi
5443   ;;
5444 irix* | nonstopux*)
5445   symcode='[BCDEGRST]'
5446   ;;
5447 osf*)
5448   symcode='[BCDEGQRST]'
5449   ;;
5450 solaris*)
5451   symcode='[BDRT]'
5452   ;;
5453 sco3.2v5*)
5454   symcode='[DT]'
5455   ;;
5456 sysv4.2uw2*)
5457   symcode='[DT]'
5458   ;;
5459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5460   symcode='[ABDT]'
5461   ;;
5462 sysv4)
5463   symcode='[DFNSTU]'
5464   ;;
5465 esac
5466
5467 # If we're using GNU nm, then use its standard symbol codes.
5468 case `$NM -V 2>&1` in
5469 *GNU* | *'with BFD'*)
5470   symcode='[ABCDGIRSTW]' ;;
5471 esac
5472
5473 # Transform an extracted symbol line into a proper C declaration.
5474 # Some systems (esp. on ia64) link data and code symbols differently,
5475 # so use this general approach.
5476 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5477
5478 # Transform an extracted symbol line into symbol name and symbol address
5479 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5480 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'"
5481
5482 # Handle CRLF in mingw tool chain
5483 opt_cr=
5484 case $build_os in
5485 mingw*)
5486   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5487   ;;
5488 esac
5489
5490 # Try without a prefix underscore, then with it.
5491 for ac_symprfx in "" "_"; do
5492
5493   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5494   symxfrm="\\1 $ac_symprfx\\2 \\2"
5495
5496   # Write the raw and C identifiers.
5497   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5498     # Fake it for dumpbin and say T for any non-static function
5499     # and D for any global variable.
5500     # Also find C++ and __fastcall symbols from MSVC++,
5501     # which start with @ or ?.
5502     lt_cv_sys_global_symbol_pipe="$AWK '"\
5503 "     {last_section=section; section=\$ 3};"\
5504 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5505 "     \$ 0!~/External *\|/{next};"\
5506 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5507 "     {if(hide[section]) next};"\
5508 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5509 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5510 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5511 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5512 "     ' prfx=^$ac_symprfx"
5513   else
5514     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5515   fi
5516
5517   # Check to see that the pipe works correctly.
5518   pipe_works=no
5519
5520   rm -f conftest*
5521   cat > conftest.$ac_ext <<_LT_EOF
5522 #ifdef __cplusplus
5523 extern "C" {
5524 #endif
5525 char nm_test_var;
5526 void nm_test_func(void);
5527 void nm_test_func(void){}
5528 #ifdef __cplusplus
5529 }
5530 #endif
5531 int main(){nm_test_var='a';nm_test_func();return(0);}
5532 _LT_EOF
5533
5534   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5535   (eval $ac_compile) 2>&5
5536   ac_status=$?
5537   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5538   test $ac_status = 0; }; then
5539     # Now try to grab the symbols.
5540     nlist=conftest.nm
5541     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5542   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5543   ac_status=$?
5544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545   test $ac_status = 0; } && test -s "$nlist"; then
5546       # Try sorting and uniquifying the output.
5547       if sort "$nlist" | uniq > "$nlist"T; then
5548         mv -f "$nlist"T "$nlist"
5549       else
5550         rm -f "$nlist"T
5551       fi
5552
5553       # Make sure that we snagged all the symbols we need.
5554       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5555         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5556           cat <<_LT_EOF > conftest.$ac_ext
5557 #ifdef __cplusplus
5558 extern "C" {
5559 #endif
5560
5561 _LT_EOF
5562           # Now generate the symbol file.
5563           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5564
5565           cat <<_LT_EOF >> conftest.$ac_ext
5566
5567 /* The mapping between symbol names and symbols.  */
5568 const struct {
5569   const char *name;
5570   void       *address;
5571 }
5572 lt__PROGRAM__LTX_preloaded_symbols[] =
5573 {
5574   { "@PROGRAM@", (void *) 0 },
5575 _LT_EOF
5576           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5577           cat <<\_LT_EOF >> conftest.$ac_ext
5578   {0, (void *) 0}
5579 };
5580
5581 /* This works around a problem in FreeBSD linker */
5582 #ifdef FREEBSD_WORKAROUND
5583 static const void *lt_preloaded_setup() {
5584   return lt__PROGRAM__LTX_preloaded_symbols;
5585 }
5586 #endif
5587
5588 #ifdef __cplusplus
5589 }
5590 #endif
5591 _LT_EOF
5592           # Now try linking the two files.
5593           mv conftest.$ac_objext conftstm.$ac_objext
5594           lt_save_LIBS="$LIBS"
5595           lt_save_CFLAGS="$CFLAGS"
5596           LIBS="conftstm.$ac_objext"
5597           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5598           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5599   (eval $ac_link) 2>&5
5600   ac_status=$?
5601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5602   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5603             pipe_works=yes
5604           fi
5605           LIBS="$lt_save_LIBS"
5606           CFLAGS="$lt_save_CFLAGS"
5607         else
5608           echo "cannot find nm_test_func in $nlist" >&5
5609         fi
5610       else
5611         echo "cannot find nm_test_var in $nlist" >&5
5612       fi
5613     else
5614       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5615     fi
5616   else
5617     echo "$progname: failed program was:" >&5
5618     cat conftest.$ac_ext >&5
5619   fi
5620   rm -rf conftest* conftst*
5621
5622   # Do not use the global_symbol_pipe unless it works.
5623   if test "$pipe_works" = yes; then
5624     break
5625   else
5626     lt_cv_sys_global_symbol_pipe=
5627   fi
5628 done
5629
5630 fi
5631
5632 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5633   lt_cv_sys_global_symbol_to_cdecl=
5634 fi
5635 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5637 $as_echo "failed" >&6; }
5638 else
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5640 $as_echo "ok" >&6; }
5641 fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665 # Check whether --enable-libtool-lock was given.
5666 if test "${enable_libtool_lock+set}" = set; then :
5667   enableval=$enable_libtool_lock;
5668 fi
5669
5670 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5671
5672 # Some flags need to be propagated to the compiler or linker for good
5673 # libtool support.
5674 case $host in
5675 ia64-*-hpux*)
5676   # Find out which ABI we are using.
5677   echo 'int i;' > conftest.$ac_ext
5678   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5679   (eval $ac_compile) 2>&5
5680   ac_status=$?
5681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682   test $ac_status = 0; }; then
5683     case `/usr/bin/file conftest.$ac_objext` in
5684       *ELF-32*)
5685         HPUX_IA64_MODE="32"
5686         ;;
5687       *ELF-64*)
5688         HPUX_IA64_MODE="64"
5689         ;;
5690     esac
5691   fi
5692   rm -rf conftest*
5693   ;;
5694 *-*-irix6*)
5695   # Find out which ABI we are using.
5696   echo '#line 5696 "configure"' > conftest.$ac_ext
5697   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5698   (eval $ac_compile) 2>&5
5699   ac_status=$?
5700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701   test $ac_status = 0; }; then
5702     if test "$lt_cv_prog_gnu_ld" = yes; then
5703       case `/usr/bin/file conftest.$ac_objext` in
5704         *32-bit*)
5705           LD="${LD-ld} -melf32bsmip"
5706           ;;
5707         *N32*)
5708           LD="${LD-ld} -melf32bmipn32"
5709           ;;
5710         *64-bit*)
5711           LD="${LD-ld} -melf64bmip"
5712         ;;
5713       esac
5714     else
5715       case `/usr/bin/file conftest.$ac_objext` in
5716         *32-bit*)
5717           LD="${LD-ld} -32"
5718           ;;
5719         *N32*)
5720           LD="${LD-ld} -n32"
5721           ;;
5722         *64-bit*)
5723           LD="${LD-ld} -64"
5724           ;;
5725       esac
5726     fi
5727   fi
5728   rm -rf conftest*
5729   ;;
5730
5731 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5732 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5733   # Find out which ABI we are using.
5734   echo 'int i;' > conftest.$ac_ext
5735   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5736   (eval $ac_compile) 2>&5
5737   ac_status=$?
5738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5739   test $ac_status = 0; }; then
5740     case `/usr/bin/file conftest.o` in
5741       *32-bit*)
5742         case $host in
5743           x86_64-*kfreebsd*-gnu)
5744             LD="${LD-ld} -m elf_i386_fbsd"
5745             ;;
5746           x86_64-*linux*)
5747             LD="${LD-ld} -m elf_i386"
5748             ;;
5749           ppc64-*linux*|powerpc64-*linux*)
5750             LD="${LD-ld} -m elf32ppclinux"
5751             ;;
5752           s390x-*linux*)
5753             LD="${LD-ld} -m elf_s390"
5754             ;;
5755           sparc64-*linux*)
5756             LD="${LD-ld} -m elf32_sparc"
5757             ;;
5758         esac
5759         ;;
5760       *64-bit*)
5761         case $host in
5762           x86_64-*kfreebsd*-gnu)
5763             LD="${LD-ld} -m elf_x86_64_fbsd"
5764             ;;
5765           x86_64-*linux*)
5766             LD="${LD-ld} -m elf_x86_64"
5767             ;;
5768           ppc*-*linux*|powerpc*-*linux*)
5769             LD="${LD-ld} -m elf64ppc"
5770             ;;
5771           s390*-*linux*|s390*-*tpf*)
5772             LD="${LD-ld} -m elf64_s390"
5773             ;;
5774           sparc*-*linux*)
5775             LD="${LD-ld} -m elf64_sparc"
5776             ;;
5777         esac
5778         ;;
5779     esac
5780   fi
5781   rm -rf conftest*
5782   ;;
5783
5784 *-*-sco3.2v5*)
5785   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5786   SAVE_CFLAGS="$CFLAGS"
5787   CFLAGS="$CFLAGS -belf"
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5789 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5790 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793   ac_ext=c
5794 ac_cpp='$CPP $CPPFLAGS'
5795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798
5799      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h.  */
5801
5802 int
5803 main ()
5804 {
5805
5806   ;
5807   return 0;
5808 }
5809 _ACEOF
5810 if ac_fn_c_try_link "$LINENO"; then :
5811   lt_cv_cc_needs_belf=yes
5812 else
5813   lt_cv_cc_needs_belf=no
5814 fi
5815 rm -f core conftest.err conftest.$ac_objext \
5816     conftest$ac_exeext conftest.$ac_ext
5817      ac_ext=c
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5825 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5826   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5827     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5828     CFLAGS="$SAVE_CFLAGS"
5829   fi
5830   ;;
5831 sparc*-*solaris*)
5832   # Find out which ABI we are using.
5833   echo 'int i;' > conftest.$ac_ext
5834   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5835   (eval $ac_compile) 2>&5
5836   ac_status=$?
5837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5838   test $ac_status = 0; }; then
5839     case `/usr/bin/file conftest.o` in
5840     *64-bit*)
5841       case $lt_cv_prog_gnu_ld in
5842       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5843       *)
5844         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5845           LD="${LD-ld} -64"
5846         fi
5847         ;;
5848       esac
5849       ;;
5850     esac
5851   fi
5852   rm -rf conftest*
5853   ;;
5854 esac
5855
5856 need_locks="$enable_libtool_lock"
5857
5858
5859   case $host_os in
5860     rhapsody* | darwin*)
5861     if test -n "$ac_tool_prefix"; then
5862   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5863 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   if test -n "$DSYMUTIL"; then
5870   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884   done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5890 if test -n "$DSYMUTIL"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5892 $as_echo "$DSYMUTIL" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899 fi
5900 if test -z "$ac_cv_prog_DSYMUTIL"; then
5901   ac_ct_DSYMUTIL=$DSYMUTIL
5902   # Extract the first word of "dsymutil", so it can be a program name with args.
5903 set dummy dsymutil; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5907   $as_echo_n "(cached) " >&6
5908 else
5909   if test -n "$ac_ct_DSYMUTIL"; then
5910   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917     for ac_exec_ext in '' $ac_executable_extensions; do
5918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924   done
5925 IFS=$as_save_IFS
5926
5927 fi
5928 fi
5929 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5930 if test -n "$ac_ct_DSYMUTIL"; then
5931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5932 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5933 else
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937
5938   if test "x$ac_ct_DSYMUTIL" = x; then
5939     DSYMUTIL=":"
5940   else
5941     case $cross_compiling:$ac_tool_warned in
5942 yes:)
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5945 ac_tool_warned=yes ;;
5946 esac
5947     DSYMUTIL=$ac_ct_DSYMUTIL
5948   fi
5949 else
5950   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5951 fi
5952
5953     if test -n "$ac_tool_prefix"; then
5954   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   if test -n "$NMEDIT"; then
5962   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969     for ac_exec_ext in '' $ac_executable_extensions; do
5970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976   done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 NMEDIT=$ac_cv_prog_NMEDIT
5982 if test -n "$NMEDIT"; then
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5984 $as_echo "$NMEDIT" >&6; }
5985 else
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990
5991 fi
5992 if test -z "$ac_cv_prog_NMEDIT"; then
5993   ac_ct_NMEDIT=$NMEDIT
5994   # Extract the first word of "nmedit", so it can be a program name with args.
5995 set dummy nmedit; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5999   $as_echo_n "(cached) " >&6
6000 else
6001   if test -n "$ac_ct_NMEDIT"; then
6002   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007   IFS=$as_save_IFS
6008   test -z "$as_dir" && as_dir=.
6009     for ac_exec_ext in '' $ac_executable_extensions; do
6010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013     break 2
6014   fi
6015 done
6016   done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6022 if test -n "$ac_ct_NMEDIT"; then
6023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6024 $as_echo "$ac_ct_NMEDIT" >&6; }
6025 else
6026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030   if test "x$ac_ct_NMEDIT" = x; then
6031     NMEDIT=":"
6032   else
6033     case $cross_compiling:$ac_tool_warned in
6034 yes:)
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039     NMEDIT=$ac_ct_NMEDIT
6040   fi
6041 else
6042   NMEDIT="$ac_cv_prog_NMEDIT"
6043 fi
6044
6045     if test -n "$ac_tool_prefix"; then
6046   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if test "${ac_cv_prog_LIPO+set}" = set; then :
6051   $as_echo_n "(cached) " >&6
6052 else
6053   if test -n "$LIPO"; then
6054   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061     for ac_exec_ext in '' $ac_executable_extensions; do
6062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068   done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 LIPO=$ac_cv_prog_LIPO
6074 if test -n "$LIPO"; then
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6076 $as_echo "$LIPO" >&6; }
6077 else
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6080 fi
6081
6082
6083 fi
6084 if test -z "$ac_cv_prog_LIPO"; then
6085   ac_ct_LIPO=$LIPO
6086   # Extract the first word of "lipo", so it can be a program name with args.
6087 set dummy lipo; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6091   $as_echo_n "(cached) " >&6
6092 else
6093   if test -n "$ac_ct_LIPO"; then
6094   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099   IFS=$as_save_IFS
6100   test -z "$as_dir" && as_dir=.
6101     for ac_exec_ext in '' $ac_executable_extensions; do
6102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103     ac_cv_prog_ac_ct_LIPO="lipo"
6104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105     break 2
6106   fi
6107 done
6108   done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6114 if test -n "$ac_ct_LIPO"; then
6115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6116 $as_echo "$ac_ct_LIPO" >&6; }
6117 else
6118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6120 fi
6121
6122   if test "x$ac_ct_LIPO" = x; then
6123     LIPO=":"
6124   else
6125     case $cross_compiling:$ac_tool_warned in
6126 yes:)
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129 ac_tool_warned=yes ;;
6130 esac
6131     LIPO=$ac_ct_LIPO
6132   fi
6133 else
6134   LIPO="$ac_cv_prog_LIPO"
6135 fi
6136
6137     if test -n "$ac_tool_prefix"; then
6138   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6139 set dummy ${ac_tool_prefix}otool; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6143   $as_echo_n "(cached) " >&6
6144 else
6145   if test -n "$OTOOL"; then
6146   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151   IFS=$as_save_IFS
6152   test -z "$as_dir" && as_dir=.
6153     for ac_exec_ext in '' $ac_executable_extensions; do
6154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157     break 2
6158   fi
6159 done
6160   done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 OTOOL=$ac_cv_prog_OTOOL
6166 if test -n "$OTOOL"; then
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6168 $as_echo "$OTOOL" >&6; }
6169 else
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174
6175 fi
6176 if test -z "$ac_cv_prog_OTOOL"; then
6177   ac_ct_OTOOL=$OTOOL
6178   # Extract the first word of "otool", so it can be a program name with args.
6179 set dummy otool; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6183   $as_echo_n "(cached) " >&6
6184 else
6185   if test -n "$ac_ct_OTOOL"; then
6186   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191   IFS=$as_save_IFS
6192   test -z "$as_dir" && as_dir=.
6193     for ac_exec_ext in '' $ac_executable_extensions; do
6194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195     ac_cv_prog_ac_ct_OTOOL="otool"
6196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197     break 2
6198   fi
6199 done
6200   done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6206 if test -n "$ac_ct_OTOOL"; then
6207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6208 $as_echo "$ac_ct_OTOOL" >&6; }
6209 else
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213
6214   if test "x$ac_ct_OTOOL" = x; then
6215     OTOOL=":"
6216   else
6217     case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223     OTOOL=$ac_ct_OTOOL
6224   fi
6225 else
6226   OTOOL="$ac_cv_prog_OTOOL"
6227 fi
6228
6229     if test -n "$ac_tool_prefix"; then
6230   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   if test -n "$OTOOL64"; then
6238   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245     for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252   done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 OTOOL64=$ac_cv_prog_OTOOL64
6258 if test -n "$OTOOL64"; then
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6260 $as_echo "$OTOOL64" >&6; }
6261 else
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266
6267 fi
6268 if test -z "$ac_cv_prog_OTOOL64"; then
6269   ac_ct_OTOOL64=$OTOOL64
6270   # Extract the first word of "otool64", so it can be a program name with args.
6271 set dummy otool64; ac_word=$2
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6275   $as_echo_n "(cached) " >&6
6276 else
6277   if test -n "$ac_ct_OTOOL64"; then
6278   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285     for ac_exec_ext in '' $ac_executable_extensions; do
6286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287     ac_cv_prog_ac_ct_OTOOL64="otool64"
6288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292   done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6298 if test -n "$ac_ct_OTOOL64"; then
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6300 $as_echo "$ac_ct_OTOOL64" >&6; }
6301 else
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305
6306   if test "x$ac_ct_OTOOL64" = x; then
6307     OTOOL64=":"
6308   else
6309     case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313 ac_tool_warned=yes ;;
6314 esac
6315     OTOOL64=$ac_ct_OTOOL64
6316   fi
6317 else
6318   OTOOL64="$ac_cv_prog_OTOOL64"
6319 fi
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6348 $as_echo_n "checking for -single_module linker flag... " >&6; }
6349 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352   lt_cv_apple_cc_single_mod=no
6353       if test -z "${LT_MULTI_MODULE}"; then
6354         # By default we will add the -single_module flag. You can override
6355         # by either setting the environment variable LT_MULTI_MODULE
6356         # non-empty at configure time, or by adding -multi_module to the
6357         # link flags.
6358         rm -rf libconftest.dylib*
6359         echo "int foo(void){return 1;}" > conftest.c
6360         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6361 -dynamiclib -Wl,-single_module conftest.c" >&5
6362         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6363           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6364         _lt_result=$?
6365         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6366           lt_cv_apple_cc_single_mod=yes
6367         else
6368           cat conftest.err >&5
6369         fi
6370         rm -rf libconftest.dylib*
6371         rm -f conftest.*
6372       fi
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6375 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6377 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6378 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6379   $as_echo_n "(cached) " >&6
6380 else
6381   lt_cv_ld_exported_symbols_list=no
6382       save_LDFLAGS=$LDFLAGS
6383       echo "_main" > conftest.sym
6384       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6385       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h.  */
6387
6388 int
6389 main ()
6390 {
6391
6392   ;
6393   return 0;
6394 }
6395 _ACEOF
6396 if ac_fn_c_try_link "$LINENO"; then :
6397   lt_cv_ld_exported_symbols_list=yes
6398 else
6399   lt_cv_ld_exported_symbols_list=no
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext \
6402     conftest$ac_exeext conftest.$ac_ext
6403         LDFLAGS="$save_LDFLAGS"
6404
6405 fi
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6407 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6408     case $host_os in
6409     rhapsody* | darwin1.[012])
6410       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6411     darwin1.*)
6412       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6413     darwin*) # darwin 5.x on
6414       # if running on 10.5 or later, the deployment target defaults
6415       # to the OS version, if on x86, and 10.4, the deployment
6416       # target defaults to 10.4. Don't you love it?
6417       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6418         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6419           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6420         10.[012]*)
6421           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6422         10.*)
6423           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6424       esac
6425     ;;
6426   esac
6427     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6428       _lt_dar_single_mod='$single_module'
6429     fi
6430     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6431       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6432     else
6433       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6434     fi
6435     if test "$DSYMUTIL" != ":"; then
6436       _lt_dsymutil='~$DSYMUTIL $lib || :'
6437     else
6438       _lt_dsymutil=
6439     fi
6440     ;;
6441   esac
6442
6443 ac_ext=c
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6449 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6450 # On Suns, sometimes $CPP names a directory.
6451 if test -n "$CPP" && test -d "$CPP"; then
6452   CPP=
6453 fi
6454 if test -z "$CPP"; then
6455   if test "${ac_cv_prog_CPP+set}" = set; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458       # Double quotes because CPP needs to be expanded
6459     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6460     do
6461       ac_preproc_ok=false
6462 for ac_c_preproc_warn_flag in '' yes
6463 do
6464   # Use a header file that comes with gcc, so configuring glibc
6465   # with a fresh cross-compiler works.
6466   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6467   # <limits.h> exists even on freestanding compilers.
6468   # On the NeXT, cc -E runs the code through the compiler's parser,
6469   # not just through cpp. "Syntax error" is here to catch this case.
6470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h.  */
6472 #ifdef __STDC__
6473 # include <limits.h>
6474 #else
6475 # include <assert.h>
6476 #endif
6477                      Syntax error
6478 _ACEOF
6479 if ac_fn_c_try_cpp "$LINENO"; then :
6480
6481 else
6482   # Broken: fails on valid input.
6483 continue
6484 fi
6485 rm -f conftest.err conftest.$ac_ext
6486
6487   # OK, works on sane cases.  Now check whether nonexistent headers
6488   # can be detected and how.
6489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h.  */
6491 #include <ac_nonexistent.h>
6492 _ACEOF
6493 if ac_fn_c_try_cpp "$LINENO"; then :
6494   # Broken: success on invalid input.
6495 continue
6496 else
6497   # Passes both tests.
6498 ac_preproc_ok=:
6499 break
6500 fi
6501 rm -f conftest.err conftest.$ac_ext
6502
6503 done
6504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6505 rm -f conftest.err conftest.$ac_ext
6506 if $ac_preproc_ok; then :
6507   break
6508 fi
6509
6510     done
6511     ac_cv_prog_CPP=$CPP
6512
6513 fi
6514   CPP=$ac_cv_prog_CPP
6515 else
6516   ac_cv_prog_CPP=$CPP
6517 fi
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6519 $as_echo "$CPP" >&6; }
6520 ac_preproc_ok=false
6521 for ac_c_preproc_warn_flag in '' yes
6522 do
6523   # Use a header file that comes with gcc, so configuring glibc
6524   # with a fresh cross-compiler works.
6525   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6526   # <limits.h> exists even on freestanding compilers.
6527   # On the NeXT, cc -E runs the code through the compiler's parser,
6528   # not just through cpp. "Syntax error" is here to catch this case.
6529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h.  */
6531 #ifdef __STDC__
6532 # include <limits.h>
6533 #else
6534 # include <assert.h>
6535 #endif
6536                      Syntax error
6537 _ACEOF
6538 if ac_fn_c_try_cpp "$LINENO"; then :
6539
6540 else
6541   # Broken: fails on valid input.
6542 continue
6543 fi
6544 rm -f conftest.err conftest.$ac_ext
6545
6546   # OK, works on sane cases.  Now check whether nonexistent headers
6547   # can be detected and how.
6548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h.  */
6550 #include <ac_nonexistent.h>
6551 _ACEOF
6552 if ac_fn_c_try_cpp "$LINENO"; then :
6553   # Broken: success on invalid input.
6554 continue
6555 else
6556   # Passes both tests.
6557 ac_preproc_ok=:
6558 break
6559 fi
6560 rm -f conftest.err conftest.$ac_ext
6561
6562 done
6563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6564 rm -f conftest.err conftest.$ac_ext
6565 if $ac_preproc_ok; then :
6566
6567 else
6568   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6570 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6571 See \`config.log' for more details." "$LINENO" 5; }
6572 fi
6573
6574 ac_ext=c
6575 ac_cpp='$CPP $CPPFLAGS'
6576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579
6580
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6582 $as_echo_n "checking for ANSI C header files... " >&6; }
6583 if test "${ac_cv_header_stdc+set}" = set; then :
6584   $as_echo_n "(cached) " >&6
6585 else
6586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h.  */
6588 #include <stdlib.h>
6589 #include <stdarg.h>
6590 #include <string.h>
6591 #include <float.h>
6592
6593 int
6594 main ()
6595 {
6596
6597   ;
6598   return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602   ac_cv_header_stdc=yes
6603 else
6604   ac_cv_header_stdc=no
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607
6608 if test $ac_cv_header_stdc = yes; then
6609   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h.  */
6612 #include <string.h>
6613
6614 _ACEOF
6615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616   $EGREP "memchr" >/dev/null 2>&1; then :
6617
6618 else
6619   ac_cv_header_stdc=no
6620 fi
6621 rm -f conftest*
6622
6623 fi
6624
6625 if test $ac_cv_header_stdc = yes; then
6626   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h.  */
6629 #include <stdlib.h>
6630
6631 _ACEOF
6632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6633   $EGREP "free" >/dev/null 2>&1; then :
6634
6635 else
6636   ac_cv_header_stdc=no
6637 fi
6638 rm -f conftest*
6639
6640 fi
6641
6642 if test $ac_cv_header_stdc = yes; then
6643   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6644   if test "$cross_compiling" = yes; then :
6645   :
6646 else
6647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h.  */
6649 #include <ctype.h>
6650 #include <stdlib.h>
6651 #if ((' ' & 0x0FF) == 0x020)
6652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6654 #else
6655 # define ISLOWER(c) \
6656                    (('a' <= (c) && (c) <= 'i') \
6657                      || ('j' <= (c) && (c) <= 'r') \
6658                      || ('s' <= (c) && (c) <= 'z'))
6659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6660 #endif
6661
6662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6663 int
6664 main ()
6665 {
6666   int i;
6667   for (i = 0; i < 256; i++)
6668     if (XOR (islower (i), ISLOWER (i))
6669         || toupper (i) != TOUPPER (i))
6670       return 2;
6671   return 0;
6672 }
6673 _ACEOF
6674 if ac_fn_c_try_run "$LINENO"; then :
6675
6676 else
6677   ac_cv_header_stdc=no
6678 fi
6679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6680   conftest.$ac_objext conftest.beam conftest.$ac_ext
6681 fi
6682
6683 fi
6684 fi
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6686 $as_echo "$ac_cv_header_stdc" >&6; }
6687 if test $ac_cv_header_stdc = yes; then
6688
6689 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6690
6691 fi
6692
6693 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6694 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6695                   inttypes.h stdint.h unistd.h
6696 do :
6697   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6698 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6699 "
6700 eval as_val=\$$as_ac_Header
6701    if test "x$as_val" = x""yes; then :
6702   cat >>confdefs.h <<_ACEOF
6703 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6704 _ACEOF
6705
6706 fi
6707
6708 done
6709
6710
6711 for ac_header in dlfcn.h
6712 do :
6713   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6714 "
6715 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6716   cat >>confdefs.h <<_ACEOF
6717 #define HAVE_DLFCN_H 1
6718 _ACEOF
6719
6720 fi
6721
6722 done
6723
6724
6725
6726 # Set options
6727
6728
6729
6730         enable_dlopen=no
6731
6732
6733   enable_win32_dll=no
6734
6735
6736             # Check whether --enable-shared was given.
6737 if test "${enable_shared+set}" = set; then :
6738   enableval=$enable_shared; p=${PACKAGE-default}
6739     case $enableval in
6740     yes) enable_shared=yes ;;
6741     no) enable_shared=no ;;
6742     *)
6743       enable_shared=no
6744       # Look at the argument we got.  We use all the common list separators.
6745       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6746       for pkg in $enableval; do
6747         IFS="$lt_save_ifs"
6748         if test "X$pkg" = "X$p"; then
6749           enable_shared=yes
6750         fi
6751       done
6752       IFS="$lt_save_ifs"
6753       ;;
6754     esac
6755 else
6756   enable_shared=yes
6757 fi
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767   # Check whether --enable-static was given.
6768 if test "${enable_static+set}" = set; then :
6769   enableval=$enable_static; p=${PACKAGE-default}
6770     case $enableval in
6771     yes) enable_static=yes ;;
6772     no) enable_static=no ;;
6773     *)
6774      enable_static=no
6775       # Look at the argument we got.  We use all the common list separators.
6776       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6777       for pkg in $enableval; do
6778         IFS="$lt_save_ifs"
6779         if test "X$pkg" = "X$p"; then
6780           enable_static=yes
6781         fi
6782       done
6783       IFS="$lt_save_ifs"
6784       ;;
6785     esac
6786 else
6787   enable_static=yes
6788 fi
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799 # Check whether --with-pic was given.
6800 if test "${with_pic+set}" = set; then :
6801   withval=$with_pic; pic_mode="$withval"
6802 else
6803   pic_mode=default
6804 fi
6805
6806
6807 test -z "$pic_mode" && pic_mode=default
6808
6809
6810
6811
6812
6813
6814
6815   # Check whether --enable-fast-install was given.
6816 if test "${enable_fast_install+set}" = set; then :
6817   enableval=$enable_fast_install; p=${PACKAGE-default}
6818     case $enableval in
6819     yes) enable_fast_install=yes ;;
6820     no) enable_fast_install=no ;;
6821     *)
6822       enable_fast_install=no
6823       # Look at the argument we got.  We use all the common list separators.
6824       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6825       for pkg in $enableval; do
6826         IFS="$lt_save_ifs"
6827         if test "X$pkg" = "X$p"; then
6828           enable_fast_install=yes
6829         fi
6830       done
6831       IFS="$lt_save_ifs"
6832       ;;
6833     esac
6834 else
6835   enable_fast_install=yes
6836 fi
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848 # This can be used to rebuild libtool when needed
6849 LIBTOOL_DEPS="$ltmain"
6850
6851 # Always use our own libtool.
6852 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878 test -z "$LN_S" && LN_S="ln -s"
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893 if test -n "${ZSH_VERSION+set}" ; then
6894    setopt NO_GLOB_SUBST
6895 fi
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6898 $as_echo_n "checking for objdir... " >&6; }
6899 if test "${lt_cv_objdir+set}" = set; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902   rm -f .libs 2>/dev/null
6903 mkdir .libs 2>/dev/null
6904 if test -d .libs; then
6905   lt_cv_objdir=.libs
6906 else
6907   # MS-DOS does not allow filenames that begin with a dot.
6908   lt_cv_objdir=_libs
6909 fi
6910 rmdir .libs 2>/dev/null
6911 fi
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6913 $as_echo "$lt_cv_objdir" >&6; }
6914 objdir=$lt_cv_objdir
6915
6916
6917
6918
6919
6920 cat >>confdefs.h <<_ACEOF
6921 #define LT_OBJDIR "$lt_cv_objdir/"
6922 _ACEOF
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940 case $host_os in
6941 aix3*)
6942   # AIX sometimes has problems with the GCC collect2 program.  For some
6943   # reason, if we set the COLLECT_NAMES environment variable, the problems
6944   # vanish in a puff of smoke.
6945   if test "X${COLLECT_NAMES+set}" != Xset; then
6946     COLLECT_NAMES=
6947     export COLLECT_NAMES
6948   fi
6949   ;;
6950 esac
6951
6952 # Sed substitution that helps us do robust quoting.  It backslashifies
6953 # metacharacters that are still active within double-quoted strings.
6954 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6955
6956 # Same as above, but do not quote variable references.
6957 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6958
6959 # Sed substitution to delay expansion of an escaped shell variable in a
6960 # double_quote_subst'ed string.
6961 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6962
6963 # Sed substitution to delay expansion of an escaped single quote.
6964 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6965
6966 # Sed substitution to avoid accidental globbing in evaled expressions
6967 no_glob_subst='s/\*/\\\*/g'
6968
6969 # Global variables:
6970 ofile=libtool
6971 can_build_shared=yes
6972
6973 # All known linkers require a `.a' archive for static linking (except MSVC,
6974 # which needs '.lib').
6975 libext=a
6976
6977 with_gnu_ld="$lt_cv_prog_gnu_ld"
6978
6979 old_CC="$CC"
6980 old_CFLAGS="$CFLAGS"
6981
6982 # Set sane defaults for various variables
6983 test -z "$CC" && CC=cc
6984 test -z "$LTCC" && LTCC=$CC
6985 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6986 test -z "$LD" && LD=ld
6987 test -z "$ac_objext" && ac_objext=o
6988
6989 for cc_temp in $compiler""; do
6990   case $cc_temp in
6991     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6992     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6993     \-*) ;;
6994     *) break;;
6995   esac
6996 done
6997 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6998
6999
7000 # Only perform the check for file, if the check method requires it
7001 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7002 case $deplibs_check_method in
7003 file_magic*)
7004   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7006 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7007 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   case $MAGIC_CMD in
7011 [\\/*] |  ?:[\\/]*)
7012   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7013   ;;
7014 *)
7015   lt_save_MAGIC_CMD="$MAGIC_CMD"
7016   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7017   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7018   for ac_dir in $ac_dummy; do
7019     IFS="$lt_save_ifs"
7020     test -z "$ac_dir" && ac_dir=.
7021     if test -f $ac_dir/${ac_tool_prefix}file; then
7022       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7023       if test -n "$file_magic_test_file"; then
7024         case $deplibs_check_method in
7025         "file_magic "*)
7026           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7027           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7028           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7029             $EGREP "$file_magic_regex" > /dev/null; then
7030             :
7031           else
7032             cat <<_LT_EOF 1>&2
7033
7034 *** Warning: the command libtool uses to detect shared libraries,
7035 *** $file_magic_cmd, produces output that libtool cannot recognize.
7036 *** The result is that libtool may fail to recognize shared libraries
7037 *** as such.  This will affect the creation of libtool libraries that
7038 *** depend on shared libraries, but programs linked with such libtool
7039 *** libraries will work regardless of this problem.  Nevertheless, you
7040 *** may want to report the problem to your system manager and/or to
7041 *** bug-libtool@gnu.org
7042
7043 _LT_EOF
7044           fi ;;
7045         esac
7046       fi
7047       break
7048     fi
7049   done
7050   IFS="$lt_save_ifs"
7051   MAGIC_CMD="$lt_save_MAGIC_CMD"
7052   ;;
7053 esac
7054 fi
7055
7056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7057 if test -n "$MAGIC_CMD"; then
7058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7059 $as_echo "$MAGIC_CMD" >&6; }
7060 else
7061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065
7066
7067
7068
7069 if test -z "$lt_cv_path_MAGIC_CMD"; then
7070   if test -n "$ac_tool_prefix"; then
7071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7072 $as_echo_n "checking for file... " >&6; }
7073 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7074   $as_echo_n "(cached) " >&6
7075 else
7076   case $MAGIC_CMD in
7077 [\\/*] |  ?:[\\/]*)
7078   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7079   ;;
7080 *)
7081   lt_save_MAGIC_CMD="$MAGIC_CMD"
7082   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7083   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7084   for ac_dir in $ac_dummy; do
7085     IFS="$lt_save_ifs"
7086     test -z "$ac_dir" && ac_dir=.
7087     if test -f $ac_dir/file; then
7088       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7089       if test -n "$file_magic_test_file"; then
7090         case $deplibs_check_method in
7091         "file_magic "*)
7092           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7093           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7094           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7095             $EGREP "$file_magic_regex" > /dev/null; then
7096             :
7097           else
7098             cat <<_LT_EOF 1>&2
7099
7100 *** Warning: the command libtool uses to detect shared libraries,
7101 *** $file_magic_cmd, produces output that libtool cannot recognize.
7102 *** The result is that libtool may fail to recognize shared libraries
7103 *** as such.  This will affect the creation of libtool libraries that
7104 *** depend on shared libraries, but programs linked with such libtool
7105 *** libraries will work regardless of this problem.  Nevertheless, you
7106 *** may want to report the problem to your system manager and/or to
7107 *** bug-libtool@gnu.org
7108
7109 _LT_EOF
7110           fi ;;
7111         esac
7112       fi
7113       break
7114     fi
7115   done
7116   IFS="$lt_save_ifs"
7117   MAGIC_CMD="$lt_save_MAGIC_CMD"
7118   ;;
7119 esac
7120 fi
7121
7122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7123 if test -n "$MAGIC_CMD"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7125 $as_echo "$MAGIC_CMD" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131
7132   else
7133     MAGIC_CMD=:
7134   fi
7135 fi
7136
7137   fi
7138   ;;
7139 esac
7140
7141 # Use C for the default configuration in the libtool script
7142
7143 lt_save_CC="$CC"
7144 ac_ext=c
7145 ac_cpp='$CPP $CPPFLAGS'
7146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7149
7150
7151 # Source file extension for C test sources.
7152 ac_ext=c
7153
7154 # Object file extension for compiled C test sources.
7155 objext=o
7156 objext=$objext
7157
7158 # Code to be used in simple compile tests
7159 lt_simple_compile_test_code="int some_variable = 0;"
7160
7161 # Code to be used in simple link tests
7162 lt_simple_link_test_code='int main(){return(0);}'
7163
7164
7165
7166
7167
7168
7169
7170 # If no C compiler was specified, use CC.
7171 LTCC=${LTCC-"$CC"}
7172
7173 # If no C compiler flags were specified, use CFLAGS.
7174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7175
7176 # Allow CC to be a program name with arguments.
7177 compiler=$CC
7178
7179 # Save the default compiler, since it gets overwritten when the other
7180 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7181 compiler_DEFAULT=$CC
7182
7183 # save warnings/boilerplate of simple test code
7184 ac_outfile=conftest.$ac_objext
7185 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7186 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7187 _lt_compiler_boilerplate=`cat conftest.err`
7188 $RM conftest*
7189
7190 ac_outfile=conftest.$ac_objext
7191 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7192 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7193 _lt_linker_boilerplate=`cat conftest.err`
7194 $RM -r conftest*
7195
7196
7197 ## CAVEAT EMPTOR:
7198 ## There is no encapsulation within the following macros, do not change
7199 ## the running order or otherwise move them around unless you know exactly
7200 ## what you are doing...
7201 if test -n "$compiler"; then
7202
7203 lt_prog_compiler_no_builtin_flag=
7204
7205 if test "$GCC" = yes; then
7206   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7207
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7209 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7210 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   lt_cv_prog_compiler_rtti_exceptions=no
7214    ac_outfile=conftest.$ac_objext
7215    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7216    lt_compiler_flag="-fno-rtti -fno-exceptions"
7217    # Insert the option either (1) after the last *FLAGS variable, or
7218    # (2) before a word containing "conftest.", or (3) at the end.
7219    # Note that $ac_compile itself does not contain backslashes and begins
7220    # with a dollar sign (not a hyphen), so the echo should work correctly.
7221    # The option is referenced via a variable to avoid confusing sed.
7222    lt_compile=`echo "$ac_compile" | $SED \
7223    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7225    -e 's:$: $lt_compiler_flag:'`
7226    (eval echo "\"\$as_me:7226: $lt_compile\"" >&5)
7227    (eval "$lt_compile" 2>conftest.err)
7228    ac_status=$?
7229    cat conftest.err >&5
7230    echo "$as_me:7230: \$? = $ac_status" >&5
7231    if (exit $ac_status) && test -s "$ac_outfile"; then
7232      # The compiler can only warn and ignore the option if not recognized
7233      # So say no if there are warnings other than the usual output.
7234      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7235      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7236      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7237        lt_cv_prog_compiler_rtti_exceptions=yes
7238      fi
7239    fi
7240    $RM conftest*
7241
7242 fi
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7244 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7245
7246 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7247     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7248 else
7249     :
7250 fi
7251
7252 fi
7253
7254
7255
7256
7257
7258
7259   lt_prog_compiler_wl=
7260 lt_prog_compiler_pic=
7261 lt_prog_compiler_static=
7262
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7264 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7265
7266   if test "$GCC" = yes; then
7267     lt_prog_compiler_wl='-Wl,'
7268     lt_prog_compiler_static='-static'
7269
7270     case $host_os in
7271       aix*)
7272       # All AIX code is PIC.
7273       if test "$host_cpu" = ia64; then
7274         # AIX 5 now supports IA64 processor
7275         lt_prog_compiler_static='-Bstatic'
7276       fi
7277       ;;
7278
7279     amigaos*)
7280       case $host_cpu in
7281       powerpc)
7282             # see comment about AmigaOS4 .so support
7283             lt_prog_compiler_pic='-fPIC'
7284         ;;
7285       m68k)
7286             # FIXME: we need at least 68020 code to build shared libraries, but
7287             # adding the `-m68020' flag to GCC prevents building anything better,
7288             # like `-m68040'.
7289             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7290         ;;
7291       esac
7292       ;;
7293
7294     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7295       # PIC is the default for these OSes.
7296       ;;
7297
7298     mingw* | cygwin* | pw32* | os2* | cegcc*)
7299       # This hack is so that the source file can tell whether it is being
7300       # built for inclusion in a dll (and should export symbols for example).
7301       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7302       # (--disable-auto-import) libraries
7303       lt_prog_compiler_pic='-DDLL_EXPORT'
7304       ;;
7305
7306     darwin* | rhapsody*)
7307       # PIC is the default on this platform
7308       # Common symbols not allowed in MH_DYLIB files
7309       lt_prog_compiler_pic='-fno-common'
7310       ;;
7311
7312     hpux*)
7313       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7314       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7315       # sets the default TLS model and affects inlining.
7316       case $host_cpu in
7317       hppa*64*)
7318         # +Z the default
7319         ;;
7320       *)
7321         lt_prog_compiler_pic='-fPIC'
7322         ;;
7323       esac
7324       ;;
7325
7326     interix[3-9]*)
7327       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7328       # Instead, we relocate shared libraries at runtime.
7329       ;;
7330
7331     msdosdjgpp*)
7332       # Just because we use GCC doesn't mean we suddenly get shared libraries
7333       # on systems that don't support them.
7334       lt_prog_compiler_can_build_shared=no
7335       enable_shared=no
7336       ;;
7337
7338     *nto* | *qnx*)
7339       # QNX uses GNU C++, but need to define -shared option too, otherwise
7340       # it will coredump.
7341       lt_prog_compiler_pic='-fPIC -shared'
7342       ;;
7343
7344     sysv4*MP*)
7345       if test -d /usr/nec; then
7346         lt_prog_compiler_pic=-Kconform_pic
7347       fi
7348       ;;
7349
7350     *)
7351       lt_prog_compiler_pic='-fPIC'
7352       ;;
7353     esac
7354   else
7355     # PORTME Check for flag to pass linker flags through the system compiler.
7356     case $host_os in
7357     aix*)
7358       lt_prog_compiler_wl='-Wl,'
7359       if test "$host_cpu" = ia64; then
7360         # AIX 5 now supports IA64 processor
7361         lt_prog_compiler_static='-Bstatic'
7362       else
7363         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7364       fi
7365       ;;
7366
7367     mingw* | cygwin* | pw32* | os2* | cegcc*)
7368       # This hack is so that the source file can tell whether it is being
7369       # built for inclusion in a dll (and should export symbols for example).
7370       lt_prog_compiler_pic='-DDLL_EXPORT'
7371       ;;
7372
7373     hpux9* | hpux10* | hpux11*)
7374       lt_prog_compiler_wl='-Wl,'
7375       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7376       # not for PA HP-UX.
7377       case $host_cpu in
7378       hppa*64*|ia64*)
7379         # +Z the default
7380         ;;
7381       *)
7382         lt_prog_compiler_pic='+Z'
7383         ;;
7384       esac
7385       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7386       lt_prog_compiler_static='${wl}-a ${wl}archive'
7387       ;;
7388
7389     irix5* | irix6* | nonstopux*)
7390       lt_prog_compiler_wl='-Wl,'
7391       # PIC (with -KPIC) is the default.
7392       lt_prog_compiler_static='-non_shared'
7393       ;;
7394
7395     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7396       case $cc_basename in
7397       # old Intel for x86_64 which still supported -KPIC.
7398       ecc*)
7399         lt_prog_compiler_wl='-Wl,'
7400         lt_prog_compiler_pic='-KPIC'
7401         lt_prog_compiler_static='-static'
7402         ;;
7403       # icc used to be incompatible with GCC.
7404       # ICC 10 doesn't accept -KPIC any more.
7405       icc* | ifort*)
7406         lt_prog_compiler_wl='-Wl,'
7407         lt_prog_compiler_pic='-fPIC'
7408         lt_prog_compiler_static='-static'
7409         ;;
7410       # Lahey Fortran 8.1.
7411       lf95*)
7412         lt_prog_compiler_wl='-Wl,'
7413         lt_prog_compiler_pic='--shared'
7414         lt_prog_compiler_static='--static'
7415         ;;
7416       pgcc* | pgf77* | pgf90* | pgf95*)
7417         # Portland Group compilers (*not* the Pentium gcc compiler,
7418         # which looks to be a dead project)
7419         lt_prog_compiler_wl='-Wl,'
7420         lt_prog_compiler_pic='-fpic'
7421         lt_prog_compiler_static='-Bstatic'
7422         ;;
7423       ccc*)
7424         lt_prog_compiler_wl='-Wl,'
7425         # All Alpha code is PIC.
7426         lt_prog_compiler_static='-non_shared'
7427         ;;
7428       xl*)
7429         # IBM XL C 8.0/Fortran 10.1 on PPC
7430         lt_prog_compiler_wl='-Wl,'
7431         lt_prog_compiler_pic='-qpic'
7432         lt_prog_compiler_static='-qstaticlink'
7433         ;;
7434       *)
7435         case `$CC -V 2>&1 | sed 5q` in
7436         *Sun\ C*)
7437           # Sun C 5.9
7438           lt_prog_compiler_pic='-KPIC'
7439           lt_prog_compiler_static='-Bstatic'
7440           lt_prog_compiler_wl='-Wl,'
7441           ;;
7442         *Sun\ F*)
7443           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7444           lt_prog_compiler_pic='-KPIC'
7445           lt_prog_compiler_static='-Bstatic'
7446           lt_prog_compiler_wl=''
7447           ;;
7448         esac
7449         ;;
7450       esac
7451       ;;
7452
7453     newsos6)
7454       lt_prog_compiler_pic='-KPIC'
7455       lt_prog_compiler_static='-Bstatic'
7456       ;;
7457
7458     *nto* | *qnx*)
7459       # QNX uses GNU C++, but need to define -shared option too, otherwise
7460       # it will coredump.
7461       lt_prog_compiler_pic='-fPIC -shared'
7462       ;;
7463
7464     osf3* | osf4* | osf5*)
7465       lt_prog_compiler_wl='-Wl,'
7466       # All OSF/1 code is PIC.
7467       lt_prog_compiler_static='-non_shared'
7468       ;;
7469
7470     rdos*)
7471       lt_prog_compiler_static='-non_shared'
7472       ;;
7473
7474     solaris*)
7475       lt_prog_compiler_pic='-KPIC'
7476       lt_prog_compiler_static='-Bstatic'
7477       case $cc_basename in
7478       f77* | f90* | f95*)
7479         lt_prog_compiler_wl='-Qoption ld ';;
7480       *)
7481         lt_prog_compiler_wl='-Wl,';;
7482       esac
7483       ;;
7484
7485     sunos4*)
7486       lt_prog_compiler_wl='-Qoption ld '
7487       lt_prog_compiler_pic='-PIC'
7488       lt_prog_compiler_static='-Bstatic'
7489       ;;
7490
7491     sysv4 | sysv4.2uw2* | sysv4.3*)
7492       lt_prog_compiler_wl='-Wl,'
7493       lt_prog_compiler_pic='-KPIC'
7494       lt_prog_compiler_static='-Bstatic'
7495       ;;
7496
7497     sysv4*MP*)
7498       if test -d /usr/nec ;then
7499         lt_prog_compiler_pic='-Kconform_pic'
7500         lt_prog_compiler_static='-Bstatic'
7501       fi
7502       ;;
7503
7504     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7505       lt_prog_compiler_wl='-Wl,'
7506       lt_prog_compiler_pic='-KPIC'
7507       lt_prog_compiler_static='-Bstatic'
7508       ;;
7509
7510     unicos*)
7511       lt_prog_compiler_wl='-Wl,'
7512       lt_prog_compiler_can_build_shared=no
7513       ;;
7514
7515     uts4*)
7516       lt_prog_compiler_pic='-pic'
7517       lt_prog_compiler_static='-Bstatic'
7518       ;;
7519
7520     *)
7521       lt_prog_compiler_can_build_shared=no
7522       ;;
7523     esac
7524   fi
7525
7526 case $host_os in
7527   # For platforms which do not support PIC, -DPIC is meaningless:
7528   *djgpp*)
7529     lt_prog_compiler_pic=
7530     ;;
7531   *)
7532     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7533     ;;
7534 esac
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7536 $as_echo "$lt_prog_compiler_pic" >&6; }
7537
7538
7539
7540
7541
7542
7543 #
7544 # Check to make sure the PIC flag actually works.
7545 #
7546 if test -n "$lt_prog_compiler_pic"; then
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7548 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7549 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   lt_cv_prog_compiler_pic_works=no
7553    ac_outfile=conftest.$ac_objext
7554    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7555    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7556    # Insert the option either (1) after the last *FLAGS variable, or
7557    # (2) before a word containing "conftest.", or (3) at the end.
7558    # Note that $ac_compile itself does not contain backslashes and begins
7559    # with a dollar sign (not a hyphen), so the echo should work correctly.
7560    # The option is referenced via a variable to avoid confusing sed.
7561    lt_compile=`echo "$ac_compile" | $SED \
7562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7564    -e 's:$: $lt_compiler_flag:'`
7565    (eval echo "\"\$as_me:7565: $lt_compile\"" >&5)
7566    (eval "$lt_compile" 2>conftest.err)
7567    ac_status=$?
7568    cat conftest.err >&5
7569    echo "$as_me:7569: \$? = $ac_status" >&5
7570    if (exit $ac_status) && test -s "$ac_outfile"; then
7571      # The compiler can only warn and ignore the option if not recognized
7572      # So say no if there are warnings other than the usual output.
7573      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7574      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7575      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7576        lt_cv_prog_compiler_pic_works=yes
7577      fi
7578    fi
7579    $RM conftest*
7580
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7583 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7584
7585 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7586     case $lt_prog_compiler_pic in
7587      "" | " "*) ;;
7588      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7589      esac
7590 else
7591     lt_prog_compiler_pic=
7592      lt_prog_compiler_can_build_shared=no
7593 fi
7594
7595 fi
7596
7597
7598
7599
7600
7601
7602 #
7603 # Check to make sure the static flag actually works.
7604 #
7605 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7607 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7608 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   lt_cv_prog_compiler_static_works=no
7612    save_LDFLAGS="$LDFLAGS"
7613    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7614    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7615    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7616      # The linker can only warn and ignore the option if not recognized
7617      # So say no if there are warnings
7618      if test -s conftest.err; then
7619        # Append any errors to the config.log.
7620        cat conftest.err 1>&5
7621        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7622        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7623        if diff conftest.exp conftest.er2 >/dev/null; then
7624          lt_cv_prog_compiler_static_works=yes
7625        fi
7626      else
7627        lt_cv_prog_compiler_static_works=yes
7628      fi
7629    fi
7630    $RM -r conftest*
7631    LDFLAGS="$save_LDFLAGS"
7632
7633 fi
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7635 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7636
7637 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7638     :
7639 else
7640     lt_prog_compiler_static=
7641 fi
7642
7643
7644
7645
7646
7647
7648
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7650 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7651 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7652   $as_echo_n "(cached) " >&6
7653 else
7654   lt_cv_prog_compiler_c_o=no
7655    $RM -r conftest 2>/dev/null
7656    mkdir conftest
7657    cd conftest
7658    mkdir out
7659    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7660
7661    lt_compiler_flag="-o out/conftest2.$ac_objext"
7662    # Insert the option either (1) after the last *FLAGS variable, or
7663    # (2) before a word containing "conftest.", or (3) at the end.
7664    # Note that $ac_compile itself does not contain backslashes and begins
7665    # with a dollar sign (not a hyphen), so the echo should work correctly.
7666    lt_compile=`echo "$ac_compile" | $SED \
7667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7669    -e 's:$: $lt_compiler_flag:'`
7670    (eval echo "\"\$as_me:7670: $lt_compile\"" >&5)
7671    (eval "$lt_compile" 2>out/conftest.err)
7672    ac_status=$?
7673    cat out/conftest.err >&5
7674    echo "$as_me:7674: \$? = $ac_status" >&5
7675    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7676    then
7677      # The compiler can only warn and ignore the option if not recognized
7678      # So say no if there are warnings
7679      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7680      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7681      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7682        lt_cv_prog_compiler_c_o=yes
7683      fi
7684    fi
7685    chmod u+w . 2>&5
7686    $RM conftest*
7687    # SGI C++ compiler will create directory out/ii_files/ for
7688    # template instantiation
7689    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7690    $RM out/* && rmdir out
7691    cd ..
7692    $RM -r conftest
7693    $RM conftest*
7694
7695 fi
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7697 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7698
7699
7700
7701
7702
7703
7704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7705 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7706 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   lt_cv_prog_compiler_c_o=no
7710    $RM -r conftest 2>/dev/null
7711    mkdir conftest
7712    cd conftest
7713    mkdir out
7714    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7715
7716    lt_compiler_flag="-o out/conftest2.$ac_objext"
7717    # Insert the option either (1) after the last *FLAGS variable, or
7718    # (2) before a word containing "conftest.", or (3) at the end.
7719    # Note that $ac_compile itself does not contain backslashes and begins
7720    # with a dollar sign (not a hyphen), so the echo should work correctly.
7721    lt_compile=`echo "$ac_compile" | $SED \
7722    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724    -e 's:$: $lt_compiler_flag:'`
7725    (eval echo "\"\$as_me:7725: $lt_compile\"" >&5)
7726    (eval "$lt_compile" 2>out/conftest.err)
7727    ac_status=$?
7728    cat out/conftest.err >&5
7729    echo "$as_me:7729: \$? = $ac_status" >&5
7730    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7731    then
7732      # The compiler can only warn and ignore the option if not recognized
7733      # So say no if there are warnings
7734      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7735      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7736      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7737        lt_cv_prog_compiler_c_o=yes
7738      fi
7739    fi
7740    chmod u+w . 2>&5
7741    $RM conftest*
7742    # SGI C++ compiler will create directory out/ii_files/ for
7743    # template instantiation
7744    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7745    $RM out/* && rmdir out
7746    cd ..
7747    $RM -r conftest
7748    $RM conftest*
7749
7750 fi
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7752 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7753
7754
7755
7756
7757 hard_links="nottested"
7758 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7759   # do not overwrite the value of need_locks provided by the user
7760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7761 $as_echo_n "checking if we can lock with hard links... " >&6; }
7762   hard_links=yes
7763   $RM conftest*
7764   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7765   touch conftest.a
7766   ln conftest.a conftest.b 2>&5 || hard_links=no
7767   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7769 $as_echo "$hard_links" >&6; }
7770   if test "$hard_links" = no; then
7771     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7772 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7773     need_locks=warn
7774   fi
7775 else
7776   need_locks=no
7777 fi
7778
7779
7780
7781
7782
7783
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7785 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7786
7787   runpath_var=
7788   allow_undefined_flag=
7789   always_export_symbols=no
7790   archive_cmds=
7791   archive_expsym_cmds=
7792   compiler_needs_object=no
7793   enable_shared_with_static_runtimes=no
7794   export_dynamic_flag_spec=
7795   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7796   hardcode_automatic=no
7797   hardcode_direct=no
7798   hardcode_direct_absolute=no
7799   hardcode_libdir_flag_spec=
7800   hardcode_libdir_flag_spec_ld=
7801   hardcode_libdir_separator=
7802   hardcode_minus_L=no
7803   hardcode_shlibpath_var=unsupported
7804   inherit_rpath=no
7805   link_all_deplibs=unknown
7806   module_cmds=
7807   module_expsym_cmds=
7808   old_archive_from_new_cmds=
7809   old_archive_from_expsyms_cmds=
7810   thread_safe_flag_spec=
7811   whole_archive_flag_spec=
7812   # include_expsyms should be a list of space-separated symbols to be *always*
7813   # included in the symbol list
7814   include_expsyms=
7815   # exclude_expsyms can be an extended regexp of symbols to exclude
7816   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7817   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7818   # as well as any symbol that contains `d'.
7819   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7820   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7821   # platforms (ab)use it in PIC code, but their linkers get confused if
7822   # the symbol is explicitly referenced.  Since portable code cannot
7823   # rely on this symbol name, it's probably fine to never include it in
7824   # preloaded symbol tables.
7825   # Exclude shared library initialization/finalization symbols.
7826   extract_expsyms_cmds=
7827
7828   case $host_os in
7829   cygwin* | mingw* | pw32* | cegcc*)
7830     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7831     # When not using gcc, we currently assume that we are using
7832     # Microsoft Visual C++.
7833     if test "$GCC" != yes; then
7834       with_gnu_ld=no
7835     fi
7836     ;;
7837   interix*)
7838     # we just hope/assume this is gcc and not c89 (= MSVC++)
7839     with_gnu_ld=yes
7840     ;;
7841   openbsd*)
7842     with_gnu_ld=no
7843     ;;
7844   esac
7845
7846   ld_shlibs=yes
7847   if test "$with_gnu_ld" = yes; then
7848     # If archive_cmds runs LD, not CC, wlarc should be empty
7849     wlarc='${wl}'
7850
7851     # Set some defaults for GNU ld with shared library support. These
7852     # are reset later if shared libraries are not supported. Putting them
7853     # here allows them to be overridden if necessary.
7854     runpath_var=LD_RUN_PATH
7855     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7856     export_dynamic_flag_spec='${wl}--export-dynamic'
7857     # ancient GNU ld didn't support --whole-archive et. al.
7858     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7859       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7860     else
7861       whole_archive_flag_spec=
7862     fi
7863     supports_anon_versioning=no
7864     case `$LD -v 2>&1` in
7865       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7866       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7867       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7868       *\ 2.11.*) ;; # other 2.11 versions
7869       *) supports_anon_versioning=yes ;;
7870     esac
7871
7872     # See if GNU ld supports shared libraries.
7873     case $host_os in
7874     aix[3-9]*)
7875       # On AIX/PPC, the GNU linker is very broken
7876       if test "$host_cpu" != ia64; then
7877         ld_shlibs=no
7878         cat <<_LT_EOF 1>&2
7879
7880 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7881 *** to be unable to reliably create shared libraries on AIX.
7882 *** Therefore, libtool is disabling shared libraries support.  If you
7883 *** really care for shared libraries, you may want to modify your PATH
7884 *** so that a non-GNU linker is found, and then restart.
7885
7886 _LT_EOF
7887       fi
7888       ;;
7889
7890     amigaos*)
7891       case $host_cpu in
7892       powerpc)
7893             # see comment about AmigaOS4 .so support
7894             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7895             archive_expsym_cmds=''
7896         ;;
7897       m68k)
7898             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)'
7899             hardcode_libdir_flag_spec='-L$libdir'
7900             hardcode_minus_L=yes
7901         ;;
7902       esac
7903       ;;
7904
7905     beos*)
7906       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7907         allow_undefined_flag=unsupported
7908         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7909         # support --undefined.  This deserves some investigation.  FIXME
7910         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7911       else
7912         ld_shlibs=no
7913       fi
7914       ;;
7915
7916     cygwin* | mingw* | pw32* | cegcc*)
7917       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7918       # as there is no search path for DLLs.
7919       hardcode_libdir_flag_spec='-L$libdir'
7920       allow_undefined_flag=unsupported
7921       always_export_symbols=no
7922       enable_shared_with_static_runtimes=yes
7923       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7924
7925       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7926         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7927         # If the export-symbols file already is a .def file (1st line
7928         # is EXPORTS), use it as is; otherwise, prepend...
7929         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7930           cp $export_symbols $output_objdir/$soname.def;
7931         else
7932           echo EXPORTS > $output_objdir/$soname.def;
7933           cat $export_symbols >> $output_objdir/$soname.def;
7934         fi~
7935         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7936       else
7937         ld_shlibs=no
7938       fi
7939       ;;
7940
7941     interix[3-9]*)
7942       hardcode_direct=no
7943       hardcode_shlibpath_var=no
7944       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7945       export_dynamic_flag_spec='${wl}-E'
7946       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7947       # Instead, shared libraries are loaded at an image base (0x10000000 by
7948       # default) and relocated if they conflict, which is a slow very memory
7949       # consuming and fragmenting process.  To avoid this, we pick a random,
7950       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7951       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7952       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7953       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'
7954       ;;
7955
7956     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7957       tmp_diet=no
7958       if test "$host_os" = linux-dietlibc; then
7959         case $cc_basename in
7960           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7961         esac
7962       fi
7963       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7964          && test "$tmp_diet" = no
7965       then
7966         tmp_addflag=
7967         tmp_sharedflag='-shared'
7968         case $cc_basename,$host_cpu in
7969         pgcc*)                          # Portland Group C compiler
7970           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'
7971           tmp_addflag=' $pic_flag'
7972           ;;
7973         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7974           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'
7975           tmp_addflag=' $pic_flag -Mnomain' ;;
7976         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7977           tmp_addflag=' -i_dynamic' ;;
7978         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7979           tmp_addflag=' -i_dynamic -nofor_main' ;;
7980         ifc* | ifort*)                  # Intel Fortran compiler
7981           tmp_addflag=' -nofor_main' ;;
7982         lf95*)                          # Lahey Fortran 8.1
7983           whole_archive_flag_spec=
7984           tmp_sharedflag='--shared' ;;
7985         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7986           tmp_sharedflag='-qmkshrobj'
7987           tmp_addflag= ;;
7988         esac
7989         case `$CC -V 2>&1 | sed 5q` in
7990         *Sun\ C*)                       # Sun C 5.9
7991           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'
7992           compiler_needs_object=yes
7993           tmp_sharedflag='-G' ;;
7994         *Sun\ F*)                       # Sun Fortran 8.3
7995           tmp_sharedflag='-G' ;;
7996         esac
7997         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7998
7999         if test "x$supports_anon_versioning" = xyes; then
8000           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8001             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8002             echo "local: *; };" >> $output_objdir/$libname.ver~
8003             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8004         fi
8005
8006         case $cc_basename in
8007         xlf*)
8008           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8009           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8010           hardcode_libdir_flag_spec=
8011           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8012           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8013           if test "x$supports_anon_versioning" = xyes; then
8014             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8015               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8016               echo "local: *; };" >> $output_objdir/$libname.ver~
8017               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8018           fi
8019           ;;
8020         esac
8021       else
8022         ld_shlibs=no
8023       fi
8024       ;;
8025
8026     netbsd*)
8027       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8028         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8029         wlarc=
8030       else
8031         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8032         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8033       fi
8034       ;;
8035
8036     solaris*)
8037       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8038         ld_shlibs=no
8039         cat <<_LT_EOF 1>&2
8040
8041 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8042 *** create shared libraries on Solaris systems.  Therefore, libtool
8043 *** is disabling shared libraries support.  We urge you to upgrade GNU
8044 *** binutils to release 2.9.1 or newer.  Another option is to modify
8045 *** your PATH or compiler configuration so that the native linker is
8046 *** used, and then restart.
8047
8048 _LT_EOF
8049       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8050         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8051         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8052       else
8053         ld_shlibs=no
8054       fi
8055       ;;
8056
8057     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8058       case `$LD -v 2>&1` in
8059         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8060         ld_shlibs=no
8061         cat <<_LT_EOF 1>&2
8062
8063 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8064 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8065 *** is disabling shared libraries support.  We urge you to upgrade GNU
8066 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8067 *** your PATH or compiler configuration so that the native linker is
8068 *** used, and then restart.
8069
8070 _LT_EOF
8071         ;;
8072         *)
8073           # For security reasons, it is highly recommended that you always
8074           # use absolute paths for naming shared libraries, and exclude the
8075           # DT_RUNPATH tag from executables and libraries.  But doing so
8076           # requires that you compile everything twice, which is a pain.
8077           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8078             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8079             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8080             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8081           else
8082             ld_shlibs=no
8083           fi
8084         ;;
8085       esac
8086       ;;
8087
8088     sunos4*)
8089       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8090       wlarc=
8091       hardcode_direct=yes
8092       hardcode_shlibpath_var=no
8093       ;;
8094
8095     *)
8096       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8097         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8098         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8099       else
8100         ld_shlibs=no
8101       fi
8102       ;;
8103     esac
8104
8105     if test "$ld_shlibs" = no; then
8106       runpath_var=
8107       hardcode_libdir_flag_spec=
8108       export_dynamic_flag_spec=
8109       whole_archive_flag_spec=
8110     fi
8111   else
8112     # PORTME fill in a description of your system's linker (not GNU ld)
8113     case $host_os in
8114     aix3*)
8115       allow_undefined_flag=unsupported
8116       always_export_symbols=yes
8117       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'
8118       # Note: this linker hardcodes the directories in LIBPATH if there
8119       # are no directories specified by -L.
8120       hardcode_minus_L=yes
8121       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8122         # Neither direct hardcoding nor static linking is supported with a
8123         # broken collect2.
8124         hardcode_direct=unsupported
8125       fi
8126       ;;
8127
8128     aix[4-9]*)
8129       if test "$host_cpu" = ia64; then
8130         # On IA64, the linker does run time linking by default, so we don't
8131         # have to do anything special.
8132         aix_use_runtimelinking=no
8133         exp_sym_flag='-Bexport'
8134         no_entry_flag=""
8135       else
8136         # If we're using GNU nm, then we don't want the "-C" option.
8137         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8138         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8139           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'
8140         else
8141           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'
8142         fi
8143         aix_use_runtimelinking=no
8144
8145         # Test if we are trying to use run time linking or normal
8146         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8147         # need to do runtime linking.
8148         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8149           for ld_flag in $LDFLAGS; do
8150           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8151             aix_use_runtimelinking=yes
8152             break
8153           fi
8154           done
8155           ;;
8156         esac
8157
8158         exp_sym_flag='-bexport'
8159         no_entry_flag='-bnoentry'
8160       fi
8161
8162       # When large executables or shared objects are built, AIX ld can
8163       # have problems creating the table of contents.  If linking a library
8164       # or program results in "error TOC overflow" add -mminimal-toc to
8165       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8166       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8167
8168       archive_cmds=''
8169       hardcode_direct=yes
8170       hardcode_direct_absolute=yes
8171       hardcode_libdir_separator=':'
8172       link_all_deplibs=yes
8173       file_list_spec='${wl}-f,'
8174
8175       if test "$GCC" = yes; then
8176         case $host_os in aix4.[012]|aix4.[012].*)
8177         # We only want to do this on AIX 4.2 and lower, the check
8178         # below for broken collect2 doesn't work under 4.3+
8179           collect2name=`${CC} -print-prog-name=collect2`
8180           if test -f "$collect2name" &&
8181            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8182           then
8183           # We have reworked collect2
8184           :
8185           else
8186           # We have old collect2
8187           hardcode_direct=unsupported
8188           # It fails to find uninstalled libraries when the uninstalled
8189           # path is not listed in the libpath.  Setting hardcode_minus_L
8190           # to unsupported forces relinking
8191           hardcode_minus_L=yes
8192           hardcode_libdir_flag_spec='-L$libdir'
8193           hardcode_libdir_separator=
8194           fi
8195           ;;
8196         esac
8197         shared_flag='-shared'
8198         if test "$aix_use_runtimelinking" = yes; then
8199           shared_flag="$shared_flag "'${wl}-G'
8200         fi
8201       else
8202         # not using gcc
8203         if test "$host_cpu" = ia64; then
8204         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8205         # chokes on -Wl,-G. The following line is correct:
8206           shared_flag='-G'
8207         else
8208           if test "$aix_use_runtimelinking" = yes; then
8209             shared_flag='${wl}-G'
8210           else
8211             shared_flag='${wl}-bM:SRE'
8212           fi
8213         fi
8214       fi
8215
8216       export_dynamic_flag_spec='${wl}-bexpall'
8217       # It seems that -bexpall does not export symbols beginning with
8218       # underscore (_), so it is better to generate a list of symbols to export.
8219       always_export_symbols=yes
8220       if test "$aix_use_runtimelinking" = yes; then
8221         # Warning - without using the other runtime loading flags (-brtl),
8222         # -berok will link without error, but may produce a broken library.
8223         allow_undefined_flag='-berok'
8224         # Determine the default libpath from the value encoded in an
8225         # empty executable.
8226         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h.  */
8228
8229 int
8230 main ()
8231 {
8232
8233   ;
8234   return 0;
8235 }
8236 _ACEOF
8237 if ac_fn_c_try_link "$LINENO"; then :
8238
8239 lt_aix_libpath_sed='
8240     /Import File Strings/,/^$/ {
8241         /^0/ {
8242             s/^0  *\(.*\)$/\1/
8243             p
8244         }
8245     }'
8246 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8247 # Check for a 64-bit object if we didn't find anything.
8248 if test -z "$aix_libpath"; then
8249   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8250 fi
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext \
8253     conftest$ac_exeext conftest.$ac_ext
8254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8255
8256         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8257         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"
8258       else
8259         if test "$host_cpu" = ia64; then
8260           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8261           allow_undefined_flag="-z nodefs"
8262           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"
8263         else
8264          # Determine the default libpath from the value encoded in an
8265          # empty executable.
8266          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h.  */
8268
8269 int
8270 main ()
8271 {
8272
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_link "$LINENO"; then :
8278
8279 lt_aix_libpath_sed='
8280     /Import File Strings/,/^$/ {
8281         /^0/ {
8282             s/^0  *\(.*\)$/\1/
8283             p
8284         }
8285     }'
8286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8287 # Check for a 64-bit object if we didn't find anything.
8288 if test -z "$aix_libpath"; then
8289   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8290 fi
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext \
8293     conftest$ac_exeext conftest.$ac_ext
8294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8295
8296          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8297           # Warning - without using the other run time loading flags,
8298           # -berok will link without error, but may produce a broken library.
8299           no_undefined_flag=' ${wl}-bernotok'
8300           allow_undefined_flag=' ${wl}-berok'
8301           # Exported symbols can be pulled into shared objects from archives
8302           whole_archive_flag_spec='$convenience'
8303           archive_cmds_need_lc=yes
8304           # This is similar to how AIX traditionally builds its shared libraries.
8305           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'
8306         fi
8307       fi
8308       ;;
8309
8310     amigaos*)
8311       case $host_cpu in
8312       powerpc)
8313             # see comment about AmigaOS4 .so support
8314             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315             archive_expsym_cmds=''
8316         ;;
8317       m68k)
8318             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)'
8319             hardcode_libdir_flag_spec='-L$libdir'
8320             hardcode_minus_L=yes
8321         ;;
8322       esac
8323       ;;
8324
8325     bsdi[45]*)
8326       export_dynamic_flag_spec=-rdynamic
8327       ;;
8328
8329     cygwin* | mingw* | pw32* | cegcc*)
8330       # When not using gcc, we currently assume that we are using
8331       # Microsoft Visual C++.
8332       # hardcode_libdir_flag_spec is actually meaningless, as there is
8333       # no search path for DLLs.
8334       hardcode_libdir_flag_spec=' '
8335       allow_undefined_flag=unsupported
8336       # Tell ltmain to make .lib files, not .a files.
8337       libext=lib
8338       # Tell ltmain to make .dll files, not .so files.
8339       shrext_cmds=".dll"
8340       # FIXME: Setting linknames here is a bad hack.
8341       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8342       # The linker will automatically build a .lib file if we build a DLL.
8343       old_archive_from_new_cmds='true'
8344       # FIXME: Should let the user specify the lib program.
8345       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8346       fix_srcfile_path='`cygpath -w "$srcfile"`'
8347       enable_shared_with_static_runtimes=yes
8348       ;;
8349
8350     darwin* | rhapsody*)
8351
8352
8353   archive_cmds_need_lc=no
8354   hardcode_direct=no
8355   hardcode_automatic=yes
8356   hardcode_shlibpath_var=unsupported
8357   whole_archive_flag_spec=''
8358   link_all_deplibs=yes
8359   allow_undefined_flag="$_lt_dar_allow_undefined"
8360   case $cc_basename in
8361      ifort*) _lt_dar_can_shared=yes ;;
8362      *) _lt_dar_can_shared=$GCC ;;
8363   esac
8364   if test "$_lt_dar_can_shared" = "yes"; then
8365     output_verbose_link_cmd=echo
8366     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8367     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8368     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}"
8369     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}"
8370
8371   else
8372   ld_shlibs=no
8373   fi
8374
8375       ;;
8376
8377     dgux*)
8378       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8379       hardcode_libdir_flag_spec='-L$libdir'
8380       hardcode_shlibpath_var=no
8381       ;;
8382
8383     freebsd1*)
8384       ld_shlibs=no
8385       ;;
8386
8387     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8388     # support.  Future versions do this automatically, but an explicit c++rt0.o
8389     # does not break anything, and helps significantly (at the cost of a little
8390     # extra space).
8391     freebsd2.2*)
8392       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8393       hardcode_libdir_flag_spec='-R$libdir'
8394       hardcode_direct=yes
8395       hardcode_shlibpath_var=no
8396       ;;
8397
8398     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8399     freebsd2*)
8400       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8401       hardcode_direct=yes
8402       hardcode_minus_L=yes
8403       hardcode_shlibpath_var=no
8404       ;;
8405
8406     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8407     freebsd* | dragonfly*)
8408       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8409       hardcode_libdir_flag_spec='-R$libdir'
8410       hardcode_direct=yes
8411       hardcode_shlibpath_var=no
8412       ;;
8413
8414     hpux9*)
8415       if test "$GCC" = yes; then
8416         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'
8417       else
8418         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'
8419       fi
8420       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8421       hardcode_libdir_separator=:
8422       hardcode_direct=yes
8423
8424       # hardcode_minus_L: Not really in the search PATH,
8425       # but as the default location of the library.
8426       hardcode_minus_L=yes
8427       export_dynamic_flag_spec='${wl}-E'
8428       ;;
8429
8430     hpux10*)
8431       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8432         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8433       else
8434         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8435       fi
8436       if test "$with_gnu_ld" = no; then
8437         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8438         hardcode_libdir_flag_spec_ld='+b $libdir'
8439         hardcode_libdir_separator=:
8440         hardcode_direct=yes
8441         hardcode_direct_absolute=yes
8442         export_dynamic_flag_spec='${wl}-E'
8443         # hardcode_minus_L: Not really in the search PATH,
8444         # but as the default location of the library.
8445         hardcode_minus_L=yes
8446       fi
8447       ;;
8448
8449     hpux11*)
8450       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8451         case $host_cpu in
8452         hppa*64*)
8453           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8454           ;;
8455         ia64*)
8456           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8457           ;;
8458         *)
8459           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8460           ;;
8461         esac
8462       else
8463         case $host_cpu in
8464         hppa*64*)
8465           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466           ;;
8467         ia64*)
8468           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8469           ;;
8470         *)
8471           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8472           ;;
8473         esac
8474       fi
8475       if test "$with_gnu_ld" = no; then
8476         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8477         hardcode_libdir_separator=:
8478
8479         case $host_cpu in
8480         hppa*64*|ia64*)
8481           hardcode_direct=no
8482           hardcode_shlibpath_var=no
8483           ;;
8484         *)
8485           hardcode_direct=yes
8486           hardcode_direct_absolute=yes
8487           export_dynamic_flag_spec='${wl}-E'
8488
8489           # hardcode_minus_L: Not really in the search PATH,
8490           # but as the default location of the library.
8491           hardcode_minus_L=yes
8492           ;;
8493         esac
8494       fi
8495       ;;
8496
8497     irix5* | irix6* | nonstopux*)
8498       if test "$GCC" = yes; then
8499         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'
8500         # Try to use the -exported_symbol ld option, if it does not
8501         # work, assume that -exports_file does not work either and
8502         # implicitly export all symbols.
8503         save_LDFLAGS="$LDFLAGS"
8504         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8505         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h.  */
8507 int foo(void) {}
8508 _ACEOF
8509 if ac_fn_c_try_link "$LINENO"; then :
8510   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'
8511
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext \
8514     conftest$ac_exeext conftest.$ac_ext
8515         LDFLAGS="$save_LDFLAGS"
8516       else
8517         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'
8518         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'
8519       fi
8520       archive_cmds_need_lc='no'
8521       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8522       hardcode_libdir_separator=:
8523       inherit_rpath=yes
8524       link_all_deplibs=yes
8525       ;;
8526
8527     netbsd*)
8528       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8529         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8530       else
8531         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8532       fi
8533       hardcode_libdir_flag_spec='-R$libdir'
8534       hardcode_direct=yes
8535       hardcode_shlibpath_var=no
8536       ;;
8537
8538     newsos6)
8539       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8540       hardcode_direct=yes
8541       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8542       hardcode_libdir_separator=:
8543       hardcode_shlibpath_var=no
8544       ;;
8545
8546     *nto* | *qnx*)
8547       ;;
8548
8549     openbsd*)
8550       if test -f /usr/libexec/ld.so; then
8551         hardcode_direct=yes
8552         hardcode_shlibpath_var=no
8553         hardcode_direct_absolute=yes
8554         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8555           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8556           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8557           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8558           export_dynamic_flag_spec='${wl}-E'
8559         else
8560           case $host_os in
8561            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8562              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8563              hardcode_libdir_flag_spec='-R$libdir'
8564              ;;
8565            *)
8566              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8567              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8568              ;;
8569           esac
8570         fi
8571       else
8572         ld_shlibs=no
8573       fi
8574       ;;
8575
8576     os2*)
8577       hardcode_libdir_flag_spec='-L$libdir'
8578       hardcode_minus_L=yes
8579       allow_undefined_flag=unsupported
8580       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'
8581       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8582       ;;
8583
8584     osf3*)
8585       if test "$GCC" = yes; then
8586         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8587         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'
8588       else
8589         allow_undefined_flag=' -expect_unresolved \*'
8590         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'
8591       fi
8592       archive_cmds_need_lc='no'
8593       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8594       hardcode_libdir_separator=:
8595       ;;
8596
8597     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8598       if test "$GCC" = yes; then
8599         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8600         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'
8601         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8602       else
8603         allow_undefined_flag=' -expect_unresolved \*'
8604         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'
8605         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~
8606         $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'
8607
8608         # Both c and cxx compiler support -rpath directly
8609         hardcode_libdir_flag_spec='-rpath $libdir'
8610       fi
8611       archive_cmds_need_lc='no'
8612       hardcode_libdir_separator=:
8613       ;;
8614
8615     solaris*)
8616       no_undefined_flag=' -z defs'
8617       if test "$GCC" = yes; then
8618         wlarc='${wl}'
8619         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8620         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8621           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8622       else
8623         case `$CC -V 2>&1` in
8624         *"Compilers 5.0"*)
8625           wlarc=''
8626           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8627           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8628           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8629           ;;
8630         *)
8631           wlarc='${wl}'
8632           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8633           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8634           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8635           ;;
8636         esac
8637       fi
8638       hardcode_libdir_flag_spec='-R$libdir'
8639       hardcode_shlibpath_var=no
8640       case $host_os in
8641       solaris2.[0-5] | solaris2.[0-5].*) ;;
8642       *)
8643         # The compiler driver will combine and reorder linker options,
8644         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8645         # but is careful enough not to reorder.
8646         # Supported since Solaris 2.6 (maybe 2.5.1?)
8647         if test "$GCC" = yes; then
8648           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8649         else
8650           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8651         fi
8652         ;;
8653       esac
8654       link_all_deplibs=yes
8655       ;;
8656
8657     sunos4*)
8658       if test "x$host_vendor" = xsequent; then
8659         # Use $CC to link under sequent, because it throws in some extra .o
8660         # files that make .init and .fini sections work.
8661         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8662       else
8663         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8664       fi
8665       hardcode_libdir_flag_spec='-L$libdir'
8666       hardcode_direct=yes
8667       hardcode_minus_L=yes
8668       hardcode_shlibpath_var=no
8669       ;;
8670
8671     sysv4)
8672       case $host_vendor in
8673         sni)
8674           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8675           hardcode_direct=yes # is this really true???
8676         ;;
8677         siemens)
8678           ## LD is ld it makes a PLAMLIB
8679           ## CC just makes a GrossModule.
8680           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8681           reload_cmds='$CC -r -o $output$reload_objs'
8682           hardcode_direct=no
8683         ;;
8684         motorola)
8685           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8686           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8687         ;;
8688       esac
8689       runpath_var='LD_RUN_PATH'
8690       hardcode_shlibpath_var=no
8691       ;;
8692
8693     sysv4.3*)
8694       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8695       hardcode_shlibpath_var=no
8696       export_dynamic_flag_spec='-Bexport'
8697       ;;
8698
8699     sysv4*MP*)
8700       if test -d /usr/nec; then
8701         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8702         hardcode_shlibpath_var=no
8703         runpath_var=LD_RUN_PATH
8704         hardcode_runpath_var=yes
8705         ld_shlibs=yes
8706       fi
8707       ;;
8708
8709     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8710       no_undefined_flag='${wl}-z,text'
8711       archive_cmds_need_lc=no
8712       hardcode_shlibpath_var=no
8713       runpath_var='LD_RUN_PATH'
8714
8715       if test "$GCC" = yes; then
8716         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8717         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8718       else
8719         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8720         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8721       fi
8722       ;;
8723
8724     sysv5* | sco3.2v5* | sco5v6*)
8725       # Note: We can NOT use -z defs as we might desire, because we do not
8726       # link with -lc, and that would cause any symbols used from libc to
8727       # always be unresolved, which means just about no library would
8728       # ever link correctly.  If we're not using GNU ld we use -z text
8729       # though, which does catch some bad symbols but isn't as heavy-handed
8730       # as -z defs.
8731       no_undefined_flag='${wl}-z,text'
8732       allow_undefined_flag='${wl}-z,nodefs'
8733       archive_cmds_need_lc=no
8734       hardcode_shlibpath_var=no
8735       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8736       hardcode_libdir_separator=':'
8737       link_all_deplibs=yes
8738       export_dynamic_flag_spec='${wl}-Bexport'
8739       runpath_var='LD_RUN_PATH'
8740
8741       if test "$GCC" = yes; then
8742         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8743         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744       else
8745         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747       fi
8748       ;;
8749
8750     uts4*)
8751       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8752       hardcode_libdir_flag_spec='-L$libdir'
8753       hardcode_shlibpath_var=no
8754       ;;
8755
8756     *)
8757       ld_shlibs=no
8758       ;;
8759     esac
8760
8761     if test x$host_vendor = xsni; then
8762       case $host in
8763       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8764         export_dynamic_flag_spec='${wl}-Blargedynsym'
8765         ;;
8766       esac
8767     fi
8768   fi
8769
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8771 $as_echo "$ld_shlibs" >&6; }
8772 test "$ld_shlibs" = no && can_build_shared=no
8773
8774 with_gnu_ld=$with_gnu_ld
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790 #
8791 # Do we need to explicitly link libc?
8792 #
8793 case "x$archive_cmds_need_lc" in
8794 x|xyes)
8795   # Assume -lc should be added
8796   archive_cmds_need_lc=yes
8797
8798   if test "$enable_shared" = yes && test "$GCC" = yes; then
8799     case $archive_cmds in
8800     *'~'*)
8801       # FIXME: we may have to deal with multi-command sequences.
8802       ;;
8803     '$CC '*)
8804       # Test whether the compiler implicitly links with -lc since on some
8805       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8806       # to ld, don't add -lc before -lgcc.
8807       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8808 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8809 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8810   $as_echo_n "(cached) " >&6
8811 else
8812   $RM conftest*
8813         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8814
8815         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8816   (eval $ac_compile) 2>&5
8817   ac_status=$?
8818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8819   test $ac_status = 0; } 2>conftest.err; then
8820           soname=conftest
8821           lib=conftest
8822           libobjs=conftest.$ac_objext
8823           deplibs=
8824           wl=$lt_prog_compiler_wl
8825           pic_flag=$lt_prog_compiler_pic
8826           compiler_flags=-v
8827           linker_flags=-v
8828           verstring=
8829           output_objdir=.
8830           libname=conftest
8831           lt_save_allow_undefined_flag=$allow_undefined_flag
8832           allow_undefined_flag=
8833           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8834   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8835   ac_status=$?
8836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8837   test $ac_status = 0; }
8838           then
8839             lt_cv_archive_cmds_need_lc=no
8840           else
8841             lt_cv_archive_cmds_need_lc=yes
8842           fi
8843           allow_undefined_flag=$lt_save_allow_undefined_flag
8844         else
8845           cat conftest.err 1>&5
8846         fi
8847         $RM conftest*
8848
8849 fi
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8851 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8852       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8853       ;;
8854     esac
8855   fi
8856   ;;
8857 esac
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9016 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9017
9018 if test "$GCC" = yes; then
9019   case $host_os in
9020     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9021     *) lt_awk_arg="/^libraries:/" ;;
9022   esac
9023   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9024   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9025     # if the path contains ";" then we assume it to be the separator
9026     # otherwise default to the standard path separator (i.e. ":") - it is
9027     # assumed that no part of a normal pathname contains ";" but that should
9028     # okay in the real world where ";" in dirpaths is itself problematic.
9029     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9030   else
9031     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9032   fi
9033   # Ok, now we have the path, separated by spaces, we can step through it
9034   # and add multilib dir if necessary.
9035   lt_tmp_lt_search_path_spec=
9036   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9037   for lt_sys_path in $lt_search_path_spec; do
9038     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9039       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9040     else
9041       test -d "$lt_sys_path" && \
9042         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9043     fi
9044   done
9045   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9046 BEGIN {RS=" "; FS="/|\n";} {
9047   lt_foo="";
9048   lt_count=0;
9049   for (lt_i = NF; lt_i > 0; lt_i--) {
9050     if ($lt_i != "" && $lt_i != ".") {
9051       if ($lt_i == "..") {
9052         lt_count++;
9053       } else {
9054         if (lt_count == 0) {
9055           lt_foo="/" $lt_i lt_foo;
9056         } else {
9057           lt_count--;
9058         }
9059       }
9060     }
9061   }
9062   if (lt_foo != "") { lt_freq[lt_foo]++; }
9063   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9064 }'`
9065   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9066 else
9067   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9068 fi
9069 library_names_spec=
9070 libname_spec='lib$name'
9071 soname_spec=
9072 shrext_cmds=".so"
9073 postinstall_cmds=
9074 postuninstall_cmds=
9075 finish_cmds=
9076 finish_eval=
9077 shlibpath_var=
9078 shlibpath_overrides_runpath=unknown
9079 version_type=none
9080 dynamic_linker="$host_os ld.so"
9081 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9082 need_lib_prefix=unknown
9083 hardcode_into_libs=no
9084
9085 # when you set need_version to no, make sure it does not cause -set_version
9086 # flags to be left without arguments
9087 need_version=unknown
9088
9089 case $host_os in
9090 aix3*)
9091   version_type=linux
9092   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9093   shlibpath_var=LIBPATH
9094
9095   # AIX 3 has no versioning support, so we append a major version to the name.
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   ;;
9098
9099 aix[4-9]*)
9100   version_type=linux
9101   need_lib_prefix=no
9102   need_version=no
9103   hardcode_into_libs=yes
9104   if test "$host_cpu" = ia64; then
9105     # AIX 5 supports IA64
9106     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9107     shlibpath_var=LD_LIBRARY_PATH
9108   else
9109     # With GCC up to 2.95.x, collect2 would create an import file
9110     # for dependence libraries.  The import file would start with
9111     # the line `#! .'.  This would cause the generated library to
9112     # depend on `.', always an invalid library.  This was fixed in
9113     # development snapshots of GCC prior to 3.0.
9114     case $host_os in
9115       aix4 | aix4.[01] | aix4.[01].*)
9116       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9117            echo ' yes '
9118            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9119         :
9120       else
9121         can_build_shared=no
9122       fi
9123       ;;
9124     esac
9125     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9126     # soname into executable. Probably we can add versioning support to
9127     # collect2, so additional links can be useful in future.
9128     if test "$aix_use_runtimelinking" = yes; then
9129       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9130       # instead of lib<name>.a to let people know that these are not
9131       # typical AIX shared libraries.
9132       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133     else
9134       # We preserve .a as extension for shared libraries through AIX4.2
9135       # and later when we are not doing run time linking.
9136       library_names_spec='${libname}${release}.a $libname.a'
9137       soname_spec='${libname}${release}${shared_ext}$major'
9138     fi
9139     shlibpath_var=LIBPATH
9140   fi
9141   ;;
9142
9143 amigaos*)
9144   case $host_cpu in
9145   powerpc)
9146     # Since July 2007 AmigaOS4 officially supports .so libraries.
9147     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149     ;;
9150   m68k)
9151     library_names_spec='$libname.ixlibrary $libname.a'
9152     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9153     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'
9154     ;;
9155   esac
9156   ;;
9157
9158 beos*)
9159   library_names_spec='${libname}${shared_ext}'
9160   dynamic_linker="$host_os ld.so"
9161   shlibpath_var=LIBRARY_PATH
9162   ;;
9163
9164 bsdi[45]*)
9165   version_type=linux
9166   need_version=no
9167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168   soname_spec='${libname}${release}${shared_ext}$major'
9169   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9170   shlibpath_var=LD_LIBRARY_PATH
9171   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9172   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9173   # the default ld.so.conf also contains /usr/contrib/lib and
9174   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9175   # libtool to hard-code these into programs
9176   ;;
9177
9178 cygwin* | mingw* | pw32* | cegcc*)
9179   version_type=windows
9180   shrext_cmds=".dll"
9181   need_version=no
9182   need_lib_prefix=no
9183
9184   case $GCC,$host_os in
9185   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9186     library_names_spec='$libname.dll.a'
9187     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9188     postinstall_cmds='base_file=`basename \${file}`~
9189       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9190       dldir=$destdir/`dirname \$dlpath`~
9191       test -d \$dldir || mkdir -p \$dldir~
9192       $install_prog $dir/$dlname \$dldir/$dlname~
9193       chmod a+x \$dldir/$dlname~
9194       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9195         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9196       fi'
9197     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9198       dlpath=$dir/\$dldll~
9199        $RM \$dlpath'
9200     shlibpath_overrides_runpath=yes
9201
9202     case $host_os in
9203     cygwin*)
9204       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9205       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9206       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9207       ;;
9208     mingw* | cegcc*)
9209       # MinGW DLLs use traditional 'lib' prefix
9210       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9211       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9212       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9213         # It is most probably a Windows format PATH printed by
9214         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9215         # path with ; separators, and with drive letters. We can handle the
9216         # drive letters (cygwin fileutils understands them), so leave them,
9217         # especially as we might pass files found there to a mingw objdump,
9218         # which wouldn't understand a cygwinified path. Ahh.
9219         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9220       else
9221         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9222       fi
9223       ;;
9224     pw32*)
9225       # pw32 DLLs use 'pw' prefix rather than 'lib'
9226       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9227       ;;
9228     esac
9229     ;;
9230
9231   *)
9232     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9233     ;;
9234   esac
9235   dynamic_linker='Win32 ld.exe'
9236   # FIXME: first we should search . and the directory the executable is in
9237   shlibpath_var=PATH
9238   ;;
9239
9240 darwin* | rhapsody*)
9241   dynamic_linker="$host_os dyld"
9242   version_type=darwin
9243   need_lib_prefix=no
9244   need_version=no
9245   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9246   soname_spec='${libname}${release}${major}$shared_ext'
9247   shlibpath_overrides_runpath=yes
9248   shlibpath_var=DYLD_LIBRARY_PATH
9249   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9250
9251   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9252   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9253   ;;
9254
9255 dgux*)
9256   version_type=linux
9257   need_lib_prefix=no
9258   need_version=no
9259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   shlibpath_var=LD_LIBRARY_PATH
9262   ;;
9263
9264 freebsd1*)
9265   dynamic_linker=no
9266   ;;
9267
9268 freebsd* | dragonfly*)
9269   # DragonFly does not have aout.  When/if they implement a new
9270   # versioning mechanism, adjust this.
9271   if test -x /usr/bin/objformat; then
9272     objformat=`/usr/bin/objformat`
9273   else
9274     case $host_os in
9275     freebsd[123]*) objformat=aout ;;
9276     *) objformat=elf ;;
9277     esac
9278   fi
9279   version_type=freebsd-$objformat
9280   case $version_type in
9281     freebsd-elf*)
9282       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9283       need_version=no
9284       need_lib_prefix=no
9285       ;;
9286     freebsd-*)
9287       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9288       need_version=yes
9289       ;;
9290   esac
9291   shlibpath_var=LD_LIBRARY_PATH
9292   case $host_os in
9293   freebsd2*)
9294     shlibpath_overrides_runpath=yes
9295     ;;
9296   freebsd3.[01]* | freebsdelf3.[01]*)
9297     shlibpath_overrides_runpath=yes
9298     hardcode_into_libs=yes
9299     ;;
9300   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9301   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9302     shlibpath_overrides_runpath=no
9303     hardcode_into_libs=yes
9304     ;;
9305   *) # from 4.6 on, and DragonFly
9306     shlibpath_overrides_runpath=yes
9307     hardcode_into_libs=yes
9308     ;;
9309   esac
9310   ;;
9311
9312 gnu*)
9313   version_type=linux
9314   need_lib_prefix=no
9315   need_version=no
9316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9317   soname_spec='${libname}${release}${shared_ext}$major'
9318   shlibpath_var=LD_LIBRARY_PATH
9319   hardcode_into_libs=yes
9320   ;;
9321
9322 hpux9* | hpux10* | hpux11*)
9323   # Give a soname corresponding to the major version so that dld.sl refuses to
9324   # link against other versions.
9325   version_type=sunos
9326   need_lib_prefix=no
9327   need_version=no
9328   case $host_cpu in
9329   ia64*)
9330     shrext_cmds='.so'
9331     hardcode_into_libs=yes
9332     dynamic_linker="$host_os dld.so"
9333     shlibpath_var=LD_LIBRARY_PATH
9334     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336     soname_spec='${libname}${release}${shared_ext}$major'
9337     if test "X$HPUX_IA64_MODE" = X32; then
9338       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9339     else
9340       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9341     fi
9342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9343     ;;
9344   hppa*64*)
9345     shrext_cmds='.sl'
9346     hardcode_into_libs=yes
9347     dynamic_linker="$host_os dld.sl"
9348     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9349     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351     soname_spec='${libname}${release}${shared_ext}$major'
9352     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9353     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9354     ;;
9355   *)
9356     shrext_cmds='.sl'
9357     dynamic_linker="$host_os dld.sl"
9358     shlibpath_var=SHLIB_PATH
9359     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361     soname_spec='${libname}${release}${shared_ext}$major'
9362     ;;
9363   esac
9364   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9365   postinstall_cmds='chmod 555 $lib'
9366   ;;
9367
9368 interix[3-9]*)
9369   version_type=linux
9370   need_lib_prefix=no
9371   need_version=no
9372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9373   soname_spec='${libname}${release}${shared_ext}$major'
9374   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9375   shlibpath_var=LD_LIBRARY_PATH
9376   shlibpath_overrides_runpath=no
9377   hardcode_into_libs=yes
9378   ;;
9379
9380 irix5* | irix6* | nonstopux*)
9381   case $host_os in
9382     nonstopux*) version_type=nonstopux ;;
9383     *)
9384         if test "$lt_cv_prog_gnu_ld" = yes; then
9385                 version_type=linux
9386         else
9387                 version_type=irix
9388         fi ;;
9389   esac
9390   need_lib_prefix=no
9391   need_version=no
9392   soname_spec='${libname}${release}${shared_ext}$major'
9393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9394   case $host_os in
9395   irix5* | nonstopux*)
9396     libsuff= shlibsuff=
9397     ;;
9398   *)
9399     case $LD in # libtool.m4 will add one of these switches to LD
9400     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9401       libsuff= shlibsuff= libmagic=32-bit;;
9402     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9403       libsuff=32 shlibsuff=N32 libmagic=N32;;
9404     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9405       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9406     *) libsuff= shlibsuff= libmagic=never-match;;
9407     esac
9408     ;;
9409   esac
9410   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9411   shlibpath_overrides_runpath=no
9412   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9413   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9414   hardcode_into_libs=yes
9415   ;;
9416
9417 # No shared lib support for Linux oldld, aout, or coff.
9418 linux*oldld* | linux*aout* | linux*coff*)
9419   dynamic_linker=no
9420   ;;
9421
9422 # This must be Linux ELF.
9423 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9424   version_type=linux
9425   need_lib_prefix=no
9426   need_version=no
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9430   shlibpath_var=LD_LIBRARY_PATH
9431   shlibpath_overrides_runpath=no
9432
9433   # Some binutils ld are patched to set DT_RUNPATH
9434   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9435   $as_echo_n "(cached) " >&6
9436 else
9437   lt_cv_shlibpath_overrides_runpath=no
9438     save_LDFLAGS=$LDFLAGS
9439     save_libdir=$libdir
9440     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9441          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9442     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h.  */
9444
9445 int
9446 main ()
9447 {
9448
9449   ;
9450   return 0;
9451 }
9452 _ACEOF
9453 if ac_fn_c_try_link "$LINENO"; then :
9454   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9455   lt_cv_shlibpath_overrides_runpath=yes
9456 fi
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext \
9459     conftest$ac_exeext conftest.$ac_ext
9460     LDFLAGS=$save_LDFLAGS
9461     libdir=$save_libdir
9462
9463 fi
9464
9465   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9466
9467   # This implies no fast_install, which is unacceptable.
9468   # Some rework will be needed to allow for fast_install
9469   # before this can be enabled.
9470   hardcode_into_libs=yes
9471
9472   # Append ld.so.conf contents to the search path
9473   if test -f /etc/ld.so.conf; then
9474     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' ' '`
9475     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9476   fi
9477
9478   # We used to test for /lib/ld.so.1 and disable shared libraries on
9479   # powerpc, because MkLinux only supported shared libraries with the
9480   # GNU dynamic linker.  Since this was broken with cross compilers,
9481   # most powerpc-linux boxes support dynamic linking these days and
9482   # people can always --disable-shared, the test was removed, and we
9483   # assume the GNU/Linux dynamic linker is in use.
9484   dynamic_linker='GNU/Linux ld.so'
9485   ;;
9486
9487 netbsd*)
9488   version_type=sunos
9489   need_lib_prefix=no
9490   need_version=no
9491   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9493     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9494     dynamic_linker='NetBSD (a.out) ld.so'
9495   else
9496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9497     soname_spec='${libname}${release}${shared_ext}$major'
9498     dynamic_linker='NetBSD ld.elf_so'
9499   fi
9500   shlibpath_var=LD_LIBRARY_PATH
9501   shlibpath_overrides_runpath=yes
9502   hardcode_into_libs=yes
9503   ;;
9504
9505 newsos6)
9506   version_type=linux
9507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9508   shlibpath_var=LD_LIBRARY_PATH
9509   shlibpath_overrides_runpath=yes
9510   ;;
9511
9512 *nto* | *qnx*)
9513   version_type=qnx
9514   need_lib_prefix=no
9515   need_version=no
9516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517   soname_spec='${libname}${release}${shared_ext}$major'
9518   shlibpath_var=LD_LIBRARY_PATH
9519   shlibpath_overrides_runpath=no
9520   hardcode_into_libs=yes
9521   dynamic_linker='ldqnx.so'
9522   ;;
9523
9524 openbsd*)
9525   version_type=sunos
9526   sys_lib_dlsearch_path_spec="/usr/lib"
9527   need_lib_prefix=no
9528   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9529   case $host_os in
9530     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9531     *)                          need_version=no  ;;
9532   esac
9533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9534   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9535   shlibpath_var=LD_LIBRARY_PATH
9536   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9537     case $host_os in
9538       openbsd2.[89] | openbsd2.[89].*)
9539         shlibpath_overrides_runpath=no
9540         ;;
9541       *)
9542         shlibpath_overrides_runpath=yes
9543         ;;
9544       esac
9545   else
9546     shlibpath_overrides_runpath=yes
9547   fi
9548   ;;
9549
9550 os2*)
9551   libname_spec='$name'
9552   shrext_cmds=".dll"
9553   need_lib_prefix=no
9554   library_names_spec='$libname${shared_ext} $libname.a'
9555   dynamic_linker='OS/2 ld.exe'
9556   shlibpath_var=LIBPATH
9557   ;;
9558
9559 osf3* | osf4* | osf5*)
9560   version_type=osf
9561   need_lib_prefix=no
9562   need_version=no
9563   soname_spec='${libname}${release}${shared_ext}$major'
9564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565   shlibpath_var=LD_LIBRARY_PATH
9566   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9567   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9568   ;;
9569
9570 rdos*)
9571   dynamic_linker=no
9572   ;;
9573
9574 solaris*)
9575   version_type=linux
9576   need_lib_prefix=no
9577   need_version=no
9578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579   soname_spec='${libname}${release}${shared_ext}$major'
9580   shlibpath_var=LD_LIBRARY_PATH
9581   shlibpath_overrides_runpath=yes
9582   hardcode_into_libs=yes
9583   # ldd complains unless libraries are executable
9584   postinstall_cmds='chmod +x $lib'
9585   ;;
9586
9587 sunos4*)
9588   version_type=sunos
9589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9590   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9591   shlibpath_var=LD_LIBRARY_PATH
9592   shlibpath_overrides_runpath=yes
9593   if test "$with_gnu_ld" = yes; then
9594     need_lib_prefix=no
9595   fi
9596   need_version=yes
9597   ;;
9598
9599 sysv4 | sysv4.3*)
9600   version_type=linux
9601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602   soname_spec='${libname}${release}${shared_ext}$major'
9603   shlibpath_var=LD_LIBRARY_PATH
9604   case $host_vendor in
9605     sni)
9606       shlibpath_overrides_runpath=no
9607       need_lib_prefix=no
9608       runpath_var=LD_RUN_PATH
9609       ;;
9610     siemens)
9611       need_lib_prefix=no
9612       ;;
9613     motorola)
9614       need_lib_prefix=no
9615       need_version=no
9616       shlibpath_overrides_runpath=no
9617       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9618       ;;
9619   esac
9620   ;;
9621
9622 sysv4*MP*)
9623   if test -d /usr/nec ;then
9624     version_type=linux
9625     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9626     soname_spec='$libname${shared_ext}.$major'
9627     shlibpath_var=LD_LIBRARY_PATH
9628   fi
9629   ;;
9630
9631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9632   version_type=freebsd-elf
9633   need_lib_prefix=no
9634   need_version=no
9635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9636   soname_spec='${libname}${release}${shared_ext}$major'
9637   shlibpath_var=LD_LIBRARY_PATH
9638   shlibpath_overrides_runpath=yes
9639   hardcode_into_libs=yes
9640   if test "$with_gnu_ld" = yes; then
9641     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9642   else
9643     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9644     case $host_os in
9645       sco3.2v5*)
9646         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9647         ;;
9648     esac
9649   fi
9650   sys_lib_dlsearch_path_spec='/usr/lib'
9651   ;;
9652
9653 tpf*)
9654   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9655   version_type=linux
9656   need_lib_prefix=no
9657   need_version=no
9658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659   shlibpath_var=LD_LIBRARY_PATH
9660   shlibpath_overrides_runpath=no
9661   hardcode_into_libs=yes
9662   ;;
9663
9664 uts4*)
9665   version_type=linux
9666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667   soname_spec='${libname}${release}${shared_ext}$major'
9668   shlibpath_var=LD_LIBRARY_PATH
9669   ;;
9670
9671 *)
9672   dynamic_linker=no
9673   ;;
9674 esac
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9676 $as_echo "$dynamic_linker" >&6; }
9677 test "$dynamic_linker" = no && can_build_shared=no
9678
9679 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9680 if test "$GCC" = yes; then
9681   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9682 fi
9683
9684 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9685   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9686 fi
9687 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9688   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9689 fi
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9779 hardcode_action=
9780 if test -n "$hardcode_libdir_flag_spec" ||
9781    test -n "$runpath_var" ||
9782    test "X$hardcode_automatic" = "Xyes" ; then
9783
9784   # We can hardcode non-existent directories.
9785   if test "$hardcode_direct" != no &&
9786      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9787      # have to relink, otherwise we might link with an installed library
9788      # when we should be linking with a yet-to-be-installed one
9789      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9790      test "$hardcode_minus_L" != no; then
9791     # Linking always hardcodes the temporary library directory.
9792     hardcode_action=relink
9793   else
9794     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9795     hardcode_action=immediate
9796   fi
9797 else
9798   # We cannot hardcode anything, or else we can only hardcode existing
9799   # directories.
9800   hardcode_action=unsupported
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9803 $as_echo "$hardcode_action" >&6; }
9804
9805 if test "$hardcode_action" = relink ||
9806    test "$inherit_rpath" = yes; then
9807   # Fast installation is not supported
9808   enable_fast_install=no
9809 elif test "$shlibpath_overrides_runpath" = yes ||
9810      test "$enable_shared" = no; then
9811   # Fast installation is not necessary
9812   enable_fast_install=needless
9813 fi
9814
9815
9816
9817
9818
9819
9820   if test "x$enable_dlopen" != xyes; then
9821   enable_dlopen=unknown
9822   enable_dlopen_self=unknown
9823   enable_dlopen_self_static=unknown
9824 else
9825   lt_cv_dlopen=no
9826   lt_cv_dlopen_libs=
9827
9828   case $host_os in
9829   beos*)
9830     lt_cv_dlopen="load_add_on"
9831     lt_cv_dlopen_libs=
9832     lt_cv_dlopen_self=yes
9833     ;;
9834
9835   mingw* | pw32* | cegcc*)
9836     lt_cv_dlopen="LoadLibrary"
9837     lt_cv_dlopen_libs=
9838     ;;
9839
9840   cygwin*)
9841     lt_cv_dlopen="dlopen"
9842     lt_cv_dlopen_libs=
9843     ;;
9844
9845   darwin*)
9846   # if libdl is installed we need to link against it
9847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9848 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9849 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   ac_check_lib_save_LIBS=$LIBS
9853 LIBS="-ldl  $LIBS"
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h.  */
9856
9857 /* Override any GCC internal prototype to avoid an error.
9858    Use char because int might match the return type of a GCC
9859    builtin and then its argument prototype would still apply.  */
9860 #ifdef __cplusplus
9861 extern "C"
9862 #endif
9863 char dlopen ();
9864 int
9865 main ()
9866 {
9867 return dlopen ();
9868   ;
9869   return 0;
9870 }
9871 _ACEOF
9872 if ac_fn_c_try_link "$LINENO"; then :
9873   ac_cv_lib_dl_dlopen=yes
9874 else
9875   ac_cv_lib_dl_dlopen=no
9876 fi
9877 rm -f core conftest.err conftest.$ac_objext \
9878     conftest$ac_exeext conftest.$ac_ext
9879 LIBS=$ac_check_lib_save_LIBS
9880 fi
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9883 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9884   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9885 else
9886
9887     lt_cv_dlopen="dyld"
9888     lt_cv_dlopen_libs=
9889     lt_cv_dlopen_self=yes
9890
9891 fi
9892
9893     ;;
9894
9895   *)
9896     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9897 if test "x$ac_cv_func_shl_load" = x""yes; then :
9898   lt_cv_dlopen="shl_load"
9899 else
9900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9901 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9902 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9903   $as_echo_n "(cached) " >&6
9904 else
9905   ac_check_lib_save_LIBS=$LIBS
9906 LIBS="-ldld  $LIBS"
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h.  */
9909
9910 /* Override any GCC internal prototype to avoid an error.
9911    Use char because int might match the return type of a GCC
9912    builtin and then its argument prototype would still apply.  */
9913 #ifdef __cplusplus
9914 extern "C"
9915 #endif
9916 char shl_load ();
9917 int
9918 main ()
9919 {
9920 return shl_load ();
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 if ac_fn_c_try_link "$LINENO"; then :
9926   ac_cv_lib_dld_shl_load=yes
9927 else
9928   ac_cv_lib_dld_shl_load=no
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext \
9931     conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9933 fi
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9935 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9936 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9937   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9938 else
9939   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9940 if test "x$ac_cv_func_dlopen" = x""yes; then :
9941   lt_cv_dlopen="dlopen"
9942 else
9943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9944 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9945 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9946   $as_echo_n "(cached) " >&6
9947 else
9948   ac_check_lib_save_LIBS=$LIBS
9949 LIBS="-ldl  $LIBS"
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h.  */
9952
9953 /* Override any GCC internal prototype to avoid an error.
9954    Use char because int might match the return type of a GCC
9955    builtin and then its argument prototype would still apply.  */
9956 #ifdef __cplusplus
9957 extern "C"
9958 #endif
9959 char dlopen ();
9960 int
9961 main ()
9962 {
9963 return dlopen ();
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 if ac_fn_c_try_link "$LINENO"; then :
9969   ac_cv_lib_dl_dlopen=yes
9970 else
9971   ac_cv_lib_dl_dlopen=no
9972 fi
9973 rm -f core conftest.err conftest.$ac_objext \
9974     conftest$ac_exeext conftest.$ac_ext
9975 LIBS=$ac_check_lib_save_LIBS
9976 fi
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9978 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9979 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9980   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9981 else
9982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9983 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9984 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9985   $as_echo_n "(cached) " >&6
9986 else
9987   ac_check_lib_save_LIBS=$LIBS
9988 LIBS="-lsvld  $LIBS"
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h.  */
9991
9992 /* Override any GCC internal prototype to avoid an error.
9993    Use char because int might match the return type of a GCC
9994    builtin and then its argument prototype would still apply.  */
9995 #ifdef __cplusplus
9996 extern "C"
9997 #endif
9998 char dlopen ();
9999 int
10000 main ()
10001 {
10002 return dlopen ();
10003   ;
10004   return 0;
10005 }
10006 _ACEOF
10007 if ac_fn_c_try_link "$LINENO"; then :
10008   ac_cv_lib_svld_dlopen=yes
10009 else
10010   ac_cv_lib_svld_dlopen=no
10011 fi
10012 rm -f core conftest.err conftest.$ac_objext \
10013     conftest$ac_exeext conftest.$ac_ext
10014 LIBS=$ac_check_lib_save_LIBS
10015 fi
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10017 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10018 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10019   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10020 else
10021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10022 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10023 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10024   $as_echo_n "(cached) " >&6
10025 else
10026   ac_check_lib_save_LIBS=$LIBS
10027 LIBS="-ldld  $LIBS"
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h.  */
10030
10031 /* Override any GCC internal prototype to avoid an error.
10032    Use char because int might match the return type of a GCC
10033    builtin and then its argument prototype would still apply.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 char dld_link ();
10038 int
10039 main ()
10040 {
10041 return dld_link ();
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 if ac_fn_c_try_link "$LINENO"; then :
10047   ac_cv_lib_dld_dld_link=yes
10048 else
10049   ac_cv_lib_dld_dld_link=no
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext \
10052     conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10056 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10057 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10058   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10059 fi
10060
10061
10062 fi
10063
10064
10065 fi
10066
10067
10068 fi
10069
10070
10071 fi
10072
10073
10074 fi
10075
10076     ;;
10077   esac
10078
10079   if test "x$lt_cv_dlopen" != xno; then
10080     enable_dlopen=yes
10081   else
10082     enable_dlopen=no
10083   fi
10084
10085   case $lt_cv_dlopen in
10086   dlopen)
10087     save_CPPFLAGS="$CPPFLAGS"
10088     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10089
10090     save_LDFLAGS="$LDFLAGS"
10091     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10092
10093     save_LIBS="$LIBS"
10094     LIBS="$lt_cv_dlopen_libs $LIBS"
10095
10096     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10097 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10098 if test "${lt_cv_dlopen_self+set}" = set; then :
10099   $as_echo_n "(cached) " >&6
10100 else
10101           if test "$cross_compiling" = yes; then :
10102   lt_cv_dlopen_self=cross
10103 else
10104   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10105   lt_status=$lt_dlunknown
10106   cat > conftest.$ac_ext <<_LT_EOF
10107 #line 10107 "configure"
10108 #include "confdefs.h"
10109
10110 #if HAVE_DLFCN_H
10111 #include <dlfcn.h>
10112 #endif
10113
10114 #include <stdio.h>
10115
10116 #ifdef RTLD_GLOBAL
10117 #  define LT_DLGLOBAL           RTLD_GLOBAL
10118 #else
10119 #  ifdef DL_GLOBAL
10120 #    define LT_DLGLOBAL         DL_GLOBAL
10121 #  else
10122 #    define LT_DLGLOBAL         0
10123 #  endif
10124 #endif
10125
10126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10127    find out it does not work in some platform. */
10128 #ifndef LT_DLLAZY_OR_NOW
10129 #  ifdef RTLD_LAZY
10130 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10131 #  else
10132 #    ifdef DL_LAZY
10133 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10134 #    else
10135 #      ifdef RTLD_NOW
10136 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10137 #      else
10138 #        ifdef DL_NOW
10139 #          define LT_DLLAZY_OR_NOW      DL_NOW
10140 #        else
10141 #          define LT_DLLAZY_OR_NOW      0
10142 #        endif
10143 #      endif
10144 #    endif
10145 #  endif
10146 #endif
10147
10148 void fnord() { int i=42;}
10149 int main ()
10150 {
10151   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10152   int status = $lt_dlunknown;
10153
10154   if (self)
10155     {
10156       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10157       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10158       /* dlclose (self); */
10159     }
10160   else
10161     puts (dlerror ());
10162
10163   return status;
10164 }
10165 _LT_EOF
10166   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10167   (eval $ac_link) 2>&5
10168   ac_status=$?
10169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10170   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10171     (./conftest; exit; ) >&5 2>/dev/null
10172     lt_status=$?
10173     case x$lt_status in
10174       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10175       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10176       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10177     esac
10178   else :
10179     # compilation failed
10180     lt_cv_dlopen_self=no
10181   fi
10182 fi
10183 rm -fr conftest*
10184
10185
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10188 $as_echo "$lt_cv_dlopen_self" >&6; }
10189
10190     if test "x$lt_cv_dlopen_self" = xyes; then
10191       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10192       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10193 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10194 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10195   $as_echo_n "(cached) " >&6
10196 else
10197           if test "$cross_compiling" = yes; then :
10198   lt_cv_dlopen_self_static=cross
10199 else
10200   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10201   lt_status=$lt_dlunknown
10202   cat > conftest.$ac_ext <<_LT_EOF
10203 #line 10203 "configure"
10204 #include "confdefs.h"
10205
10206 #if HAVE_DLFCN_H
10207 #include <dlfcn.h>
10208 #endif
10209
10210 #include <stdio.h>
10211
10212 #ifdef RTLD_GLOBAL
10213 #  define LT_DLGLOBAL           RTLD_GLOBAL
10214 #else
10215 #  ifdef DL_GLOBAL
10216 #    define LT_DLGLOBAL         DL_GLOBAL
10217 #  else
10218 #    define LT_DLGLOBAL         0
10219 #  endif
10220 #endif
10221
10222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10223    find out it does not work in some platform. */
10224 #ifndef LT_DLLAZY_OR_NOW
10225 #  ifdef RTLD_LAZY
10226 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10227 #  else
10228 #    ifdef DL_LAZY
10229 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10230 #    else
10231 #      ifdef RTLD_NOW
10232 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10233 #      else
10234 #        ifdef DL_NOW
10235 #          define LT_DLLAZY_OR_NOW      DL_NOW
10236 #        else
10237 #          define LT_DLLAZY_OR_NOW      0
10238 #        endif
10239 #      endif
10240 #    endif
10241 #  endif
10242 #endif
10243
10244 void fnord() { int i=42;}
10245 int main ()
10246 {
10247   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10248   int status = $lt_dlunknown;
10249
10250   if (self)
10251     {
10252       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10253       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10254       /* dlclose (self); */
10255     }
10256   else
10257     puts (dlerror ());
10258
10259   return status;
10260 }
10261 _LT_EOF
10262   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10263   (eval $ac_link) 2>&5
10264   ac_status=$?
10265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10266   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10267     (./conftest; exit; ) >&5 2>/dev/null
10268     lt_status=$?
10269     case x$lt_status in
10270       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10271       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10272       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10273     esac
10274   else :
10275     # compilation failed
10276     lt_cv_dlopen_self_static=no
10277   fi
10278 fi
10279 rm -fr conftest*
10280
10281
10282 fi
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10284 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10285     fi
10286
10287     CPPFLAGS="$save_CPPFLAGS"
10288     LDFLAGS="$save_LDFLAGS"
10289     LIBS="$save_LIBS"
10290     ;;
10291   esac
10292
10293   case $lt_cv_dlopen_self in
10294   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10295   *) enable_dlopen_self=unknown ;;
10296   esac
10297
10298   case $lt_cv_dlopen_self_static in
10299   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10300   *) enable_dlopen_self_static=unknown ;;
10301   esac
10302 fi
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320 striplib=
10321 old_striplib=
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10323 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10324 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10325   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10326   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10328 $as_echo "yes" >&6; }
10329 else
10330 # FIXME - insert some real tests, host_os isn't really good enough
10331   case $host_os in
10332   darwin*)
10333     if test -n "$STRIP" ; then
10334       striplib="$STRIP -x"
10335       old_striplib="$STRIP -S"
10336       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10337 $as_echo "yes" >&6; }
10338     else
10339       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10341     fi
10342     ;;
10343   *)
10344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10346     ;;
10347   esac
10348 fi
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361   # Report which library types will actually be built
10362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10363 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10365 $as_echo "$can_build_shared" >&6; }
10366
10367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10368 $as_echo_n "checking whether to build shared libraries... " >&6; }
10369   test "$can_build_shared" = "no" && enable_shared=no
10370
10371   # On AIX, shared libraries and static libraries use the same namespace, and
10372   # are all built from PIC.
10373   case $host_os in
10374   aix3*)
10375     test "$enable_shared" = yes && enable_static=no
10376     if test -n "$RANLIB"; then
10377       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10378       postinstall_cmds='$RANLIB $lib'
10379     fi
10380     ;;
10381
10382   aix[4-9]*)
10383     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10384       test "$enable_shared" = yes && enable_static=no
10385     fi
10386     ;;
10387   esac
10388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10389 $as_echo "$enable_shared" >&6; }
10390
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10392 $as_echo_n "checking whether to build static libraries... " >&6; }
10393   # Make sure either enable_shared or enable_static is yes.
10394   test "$enable_shared" = yes || enable_static=yes
10395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10396 $as_echo "$enable_static" >&6; }
10397
10398
10399
10400
10401 fi
10402 ac_ext=c
10403 ac_cpp='$CPP $CPPFLAGS'
10404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10407
10408 CC="$lt_save_CC"
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422         ac_config_commands="$ac_config_commands libtool"
10423
10424
10425
10426
10427 # Only expand once:
10428
10429
10430
10431 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10432 case $ac_cv_c_uint64_t in #(
10433   no|yes) ;; #(
10434   *)
10435
10436 $as_echo "#define _UINT64_T 1" >>confdefs.h
10437
10438
10439 cat >>confdefs.h <<_ACEOF
10440 #define uint64_t $ac_cv_c_uint64_t
10441 _ACEOF
10442 ;;
10443   esac
10444
10445 ac_config_files="$ac_config_files Makefile"
10446
10447 cat >confcache <<\_ACEOF
10448 # This file is a shell script that caches the results of configure
10449 # tests run on this system so they can be shared between configure
10450 # scripts and configure runs, see configure's option --config-cache.
10451 # It is not useful on other systems.  If it contains results you don't
10452 # want to keep, you may remove or edit it.
10453 #
10454 # config.status only pays attention to the cache file if you give it
10455 # the --recheck option to rerun configure.
10456 #
10457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10459 # following values.
10460
10461 _ACEOF
10462
10463 # The following way of writing the cache mishandles newlines in values,
10464 # but we know of no workaround that is simple, portable, and efficient.
10465 # So, we kill variables containing newlines.
10466 # Ultrix sh set writes to stderr and can't be redirected directly,
10467 # and sets the high bit in the cache file unless we assign to the vars.
10468 (
10469   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10470     eval ac_val=\$$ac_var
10471     case $ac_val in #(
10472     *${as_nl}*)
10473       case $ac_var in #(
10474       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10476       esac
10477       case $ac_var in #(
10478       _ | IFS | as_nl) ;; #(
10479       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10480       *) { eval $ac_var=; unset $ac_var;} ;;
10481       esac ;;
10482     esac
10483   done
10484
10485   (set) 2>&1 |
10486     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10487     *${as_nl}ac_space=\ *)
10488       # `set' does not quote correctly, so add quotes: double-quote
10489       # substitution turns \\\\ into \\, and sed turns \\ into \.
10490       sed -n \
10491         "s/'/'\\\\''/g;
10492           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10493       ;; #(
10494     *)
10495       # `set' quotes correctly as required by POSIX, so do not add quotes.
10496       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10497       ;;
10498     esac |
10499     sort
10500 ) |
10501   sed '
10502      /^ac_cv_env_/b end
10503      t clear
10504      :clear
10505      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10506      t end
10507      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10508      :end' >>confcache
10509 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10510   if test -w "$cache_file"; then
10511     test "x$cache_file" != "x/dev/null" &&
10512       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10513 $as_echo "$as_me: updating cache $cache_file" >&6;}
10514     cat confcache >$cache_file
10515   else
10516     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10517 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10518   fi
10519 fi
10520 rm -f confcache
10521
10522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10523 # Let make expand exec_prefix.
10524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10525
10526 # Transform confdefs.h into DEFS.
10527 # Protect against shell expansion while executing Makefile rules.
10528 # Protect against Makefile macro expansion.
10529 #
10530 # If the first sed substitution is executed (which looks for macros that
10531 # take arguments), then branch to the quote section.  Otherwise,
10532 # look for a macro that doesn't take arguments.
10533 ac_script='
10534 :mline
10535 /\\$/{
10536  N
10537  s,\\\n,,
10538  b mline
10539 }
10540 t clear
10541 :clear
10542 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
10543 t quote
10544 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
10545 t quote
10546 b any
10547 :quote
10548 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10549 s/\[/\\&/g
10550 s/\]/\\&/g
10551 s/\$/$$/g
10552 H
10553 :any
10554 ${
10555         g
10556         s/^\n//
10557         s/\n/ /g
10558         p
10559 }
10560 '
10561 DEFS=`sed -n "$ac_script" confdefs.h`
10562
10563
10564 ac_libobjs=
10565 ac_ltlibobjs=
10566 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10567   # 1. Remove the extension, and $U if already installed.
10568   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10569   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10570   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10571   #    will be set to the directory where LIBOBJS objects are built.
10572   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10573   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10574 done
10575 LIBOBJS=$ac_libobjs
10576
10577 LTLIBOBJS=$ac_ltlibobjs
10578
10579
10580  if test -n "$EXEEXT"; then
10581   am__EXEEXT_TRUE=
10582   am__EXEEXT_FALSE='#'
10583 else
10584   am__EXEEXT_TRUE='#'
10585   am__EXEEXT_FALSE=
10586 fi
10587
10588 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10589   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10591 fi
10592 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10593   as_fn_error "conditional \"AMDEP\" was never defined.
10594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10595 fi
10596 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10597   as_fn_error "conditional \"am__fastdepCC\" was never defined.
10598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10599 fi
10600
10601 : ${CONFIG_STATUS=./config.status}
10602 ac_write_fail=0
10603 ac_clean_files_save=$ac_clean_files
10604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10606 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10607 as_write_fail=0
10608 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10609 #! $SHELL
10610 # Generated by $as_me.
10611 # Run this file to recreate the current configuration.
10612 # Compiler output produced by configure, useful for debugging
10613 # configure, is in config.log if it exists.
10614
10615 debug=false
10616 ac_cs_recheck=false
10617 ac_cs_silent=false
10618
10619 SHELL=\${CONFIG_SHELL-$SHELL}
10620 export SHELL
10621 _ASEOF
10622 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10623 ## -------------------- ##
10624 ## M4sh Initialization. ##
10625 ## -------------------- ##
10626
10627 # Be more Bourne compatible
10628 DUALCASE=1; export DUALCASE # for MKS sh
10629 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10630   emulate sh
10631   NULLCMD=:
10632   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10633   # is contrary to our usage.  Disable this feature.
10634   alias -g '${1+"$@"}'='"$@"'
10635   setopt NO_GLOB_SUBST
10636 else
10637   case `(set -o) 2>/dev/null` in #(
10638   *posix*) :
10639     set -o posix ;; #(
10640   *) :
10641      ;;
10642 esac
10643 fi
10644
10645
10646 as_nl='
10647 '
10648 export as_nl
10649 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10650 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10653 # Prefer a ksh shell builtin over an external printf program on Solaris,
10654 # but without wasting forks for bash or zsh.
10655 if test -z "$BASH_VERSION$ZSH_VERSION" \
10656     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10657   as_echo='print -r --'
10658   as_echo_n='print -rn --'
10659 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10660   as_echo='printf %s\n'
10661   as_echo_n='printf %s'
10662 else
10663   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10664     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10665     as_echo_n='/usr/ucb/echo -n'
10666   else
10667     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10668     as_echo_n_body='eval
10669       arg=$1;
10670       case $arg in #(
10671       *"$as_nl"*)
10672         expr "X$arg" : "X\\(.*\\)$as_nl";
10673         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10674       esac;
10675       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10676     '
10677     export as_echo_n_body
10678     as_echo_n='sh -c $as_echo_n_body as_echo'
10679   fi
10680   export as_echo_body
10681   as_echo='sh -c $as_echo_body as_echo'
10682 fi
10683
10684 # The user is always right.
10685 if test "${PATH_SEPARATOR+set}" != set; then
10686   PATH_SEPARATOR=:
10687   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10688     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10689       PATH_SEPARATOR=';'
10690   }
10691 fi
10692
10693
10694 # IFS
10695 # We need space, tab and new line, in precisely that order.  Quoting is
10696 # there to prevent editors from complaining about space-tab.
10697 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10698 # splitting by setting IFS to empty value.)
10699 IFS=" ""        $as_nl"
10700
10701 # Find who we are.  Look in the path if we contain no directory separator.
10702 case $0 in #((
10703   *[\\/]* ) as_myself=$0 ;;
10704   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705 for as_dir in $PATH
10706 do
10707   IFS=$as_save_IFS
10708   test -z "$as_dir" && as_dir=.
10709     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10710   done
10711 IFS=$as_save_IFS
10712
10713      ;;
10714 esac
10715 # We did not find ourselves, most probably we were run as `sh COMMAND'
10716 # in which case we are not to be found in the path.
10717 if test "x$as_myself" = x; then
10718   as_myself=$0
10719 fi
10720 if test ! -f "$as_myself"; then
10721   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10722   exit 1
10723 fi
10724
10725 # Unset variables that we do not need and which cause bugs (e.g. in
10726 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10727 # suppresses any "Segmentation fault" message there.  '((' could
10728 # trigger a bug in pdksh 5.2.14.
10729 for as_var in BASH_ENV ENV MAIL MAILPATH
10730 do eval test x\${$as_var+set} = xset \
10731   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10732 done
10733 PS1='$ '
10734 PS2='> '
10735 PS4='+ '
10736
10737 # NLS nuisances.
10738 LC_ALL=C
10739 export LC_ALL
10740 LANGUAGE=C
10741 export LANGUAGE
10742
10743 # CDPATH.
10744 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10745
10746
10747 # as_fn_error ERROR [LINENO LOG_FD]
10748 # ---------------------------------
10749 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10750 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10751 # script with status $?, using 1 if that was 0.
10752 as_fn_error ()
10753 {
10754   as_status=$?; test $as_status -eq 0 && as_status=1
10755   if test "$3"; then
10756     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10757     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10758   fi
10759   $as_echo "$as_me: error: $1" >&2
10760   as_fn_exit $as_status
10761 } # as_fn_error
10762
10763
10764 # as_fn_set_status STATUS
10765 # -----------------------
10766 # Set $? to STATUS, without forking.
10767 as_fn_set_status ()
10768 {
10769   return $1
10770 } # as_fn_set_status
10771
10772 # as_fn_exit STATUS
10773 # -----------------
10774 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10775 as_fn_exit ()
10776 {
10777   set +e
10778   as_fn_set_status $1
10779   exit $1
10780 } # as_fn_exit
10781
10782 # as_fn_unset VAR
10783 # ---------------
10784 # Portably unset VAR.
10785 as_fn_unset ()
10786 {
10787   { eval $1=; unset $1;}
10788 }
10789 as_unset=as_fn_unset
10790 # as_fn_append VAR VALUE
10791 # ----------------------
10792 # Append the text in VALUE to the end of the definition contained in VAR. Take
10793 # advantage of any shell optimizations that allow amortized linear growth over
10794 # repeated appends, instead of the typical quadratic growth present in naive
10795 # implementations.
10796 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10797   eval 'as_fn_append ()
10798   {
10799     eval $1+=\$2
10800   }'
10801 else
10802   as_fn_append ()
10803   {
10804     eval $1=\$$1\$2
10805   }
10806 fi # as_fn_append
10807
10808 # as_fn_arith ARG...
10809 # ------------------
10810 # Perform arithmetic evaluation on the ARGs, and store the result in the
10811 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10812 # must be portable across $(()) and expr.
10813 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10814   eval 'as_fn_arith ()
10815   {
10816     as_val=$(( $* ))
10817   }'
10818 else
10819   as_fn_arith ()
10820   {
10821     as_val=`expr "$@" || test $? -eq 1`
10822   }
10823 fi # as_fn_arith
10824
10825
10826 if expr a : '\(a\)' >/dev/null 2>&1 &&
10827    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10828   as_expr=expr
10829 else
10830   as_expr=false
10831 fi
10832
10833 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10834   as_basename=basename
10835 else
10836   as_basename=false
10837 fi
10838
10839 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10840   as_dirname=dirname
10841 else
10842   as_dirname=false
10843 fi
10844
10845 as_me=`$as_basename -- "$0" ||
10846 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10847          X"$0" : 'X\(//\)$' \| \
10848          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10849 $as_echo X/"$0" |
10850     sed '/^.*\/\([^/][^/]*\)\/*$/{
10851             s//\1/
10852             q
10853           }
10854           /^X\/\(\/\/\)$/{
10855             s//\1/
10856             q
10857           }
10858           /^X\/\(\/\).*/{
10859             s//\1/
10860             q
10861           }
10862           s/.*/./; q'`
10863
10864 # Avoid depending upon Character Ranges.
10865 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10866 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10867 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10868 as_cr_digits='0123456789'
10869 as_cr_alnum=$as_cr_Letters$as_cr_digits
10870
10871 ECHO_C= ECHO_N= ECHO_T=
10872 case `echo -n x` in #(((((
10873 -n*)
10874   case `echo 'xy\c'` in
10875   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10876   xy)  ECHO_C='\c';;
10877   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10878        ECHO_T=' ';;
10879   esac;;
10880 *)
10881   ECHO_N='-n';;
10882 esac
10883
10884 rm -f conf$$ conf$$.exe conf$$.file
10885 if test -d conf$$.dir; then
10886   rm -f conf$$.dir/conf$$.file
10887 else
10888   rm -f conf$$.dir
10889   mkdir conf$$.dir 2>/dev/null
10890 fi
10891 if (echo >conf$$.file) 2>/dev/null; then
10892   if ln -s conf$$.file conf$$ 2>/dev/null; then
10893     as_ln_s='ln -s'
10894     # ... but there are two gotchas:
10895     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10896     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10897     # In both cases, we have to default to `cp -p'.
10898     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10899       as_ln_s='cp -p'
10900   elif ln conf$$.file conf$$ 2>/dev/null; then
10901     as_ln_s=ln
10902   else
10903     as_ln_s='cp -p'
10904   fi
10905 else
10906   as_ln_s='cp -p'
10907 fi
10908 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10909 rmdir conf$$.dir 2>/dev/null
10910
10911
10912 # as_fn_mkdir_p
10913 # -------------
10914 # Create "$as_dir" as a directory, including parents if necessary.
10915 as_fn_mkdir_p ()
10916 {
10917
10918   case $as_dir in #(
10919   -*) as_dir=./$as_dir;;
10920   esac
10921   test -d "$as_dir" || eval $as_mkdir_p || {
10922     as_dirs=
10923     while :; do
10924       case $as_dir in #(
10925       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10926       *) as_qdir=$as_dir;;
10927       esac
10928       as_dirs="'$as_qdir' $as_dirs"
10929       as_dir=`$as_dirname -- "$as_dir" ||
10930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10931          X"$as_dir" : 'X\(//\)[^/]' \| \
10932          X"$as_dir" : 'X\(//\)$' \| \
10933          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10934 $as_echo X"$as_dir" |
10935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10936             s//\1/
10937             q
10938           }
10939           /^X\(\/\/\)[^/].*/{
10940             s//\1/
10941             q
10942           }
10943           /^X\(\/\/\)$/{
10944             s//\1/
10945             q
10946           }
10947           /^X\(\/\).*/{
10948             s//\1/
10949             q
10950           }
10951           s/.*/./; q'`
10952       test -d "$as_dir" && break
10953     done
10954     test -z "$as_dirs" || eval "mkdir $as_dirs"
10955   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
10956
10957
10958 } # as_fn_mkdir_p
10959 if mkdir -p . 2>/dev/null; then
10960   as_mkdir_p='mkdir -p "$as_dir"'
10961 else
10962   test -d ./-p && rmdir ./-p
10963   as_mkdir_p=false
10964 fi
10965
10966 if test -x / >/dev/null 2>&1; then
10967   as_test_x='test -x'
10968 else
10969   if ls -dL / >/dev/null 2>&1; then
10970     as_ls_L_option=L
10971   else
10972     as_ls_L_option=
10973   fi
10974   as_test_x='
10975     eval sh -c '\''
10976       if test -d "$1"; then
10977         test -d "$1/.";
10978       else
10979         case $1 in #(
10980         -*)set "./$1";;
10981         esac;
10982         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10983         ???[sx]*):;;*)false;;esac;fi
10984     '\'' sh
10985   '
10986 fi
10987 as_executable_p=$as_test_x
10988
10989 # Sed expression to map a string onto a valid CPP name.
10990 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10991
10992 # Sed expression to map a string onto a valid variable name.
10993 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10994
10995
10996 exec 6>&1
10997 ## ----------------------------------- ##
10998 ## Main body of $CONFIG_STATUS script. ##
10999 ## ----------------------------------- ##
11000 _ASEOF
11001 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11002
11003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11004 # Save the log message, to keep $0 and so on meaningful, and to
11005 # report actual input values of CONFIG_FILES etc. instead of their
11006 # values after options handling.
11007 ac_log="
11008 This file was extended by LTO plugin for ld $as_me 0.1, which was
11009 generated by GNU Autoconf 2.64.  Invocation command line was
11010
11011   CONFIG_FILES    = $CONFIG_FILES
11012   CONFIG_HEADERS  = $CONFIG_HEADERS
11013   CONFIG_LINKS    = $CONFIG_LINKS
11014   CONFIG_COMMANDS = $CONFIG_COMMANDS
11015   $ $0 $@
11016
11017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11018 "
11019
11020 _ACEOF
11021
11022 case $ac_config_files in *"
11023 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11024 esac
11025
11026
11027
11028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11029 # Files that config.status was made for.
11030 config_files="$ac_config_files"
11031 config_commands="$ac_config_commands"
11032
11033 _ACEOF
11034
11035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11036 ac_cs_usage="\
11037 \`$as_me' instantiates files and other configuration actions
11038 from templates according to the current configuration.  Unless the files
11039 and actions are specified as TAGs, all are instantiated by default.
11040
11041 Usage: $0 [OPTION]... [TAG]...
11042
11043   -h, --help       print this help, then exit
11044   -V, --version    print version number and configuration settings, then exit
11045   -q, --quiet, --silent
11046                    do not print progress messages
11047   -d, --debug      don't remove temporary files
11048       --recheck    update $as_me by reconfiguring in the same conditions
11049       --file=FILE[:TEMPLATE]
11050                    instantiate the configuration file FILE
11051
11052 Configuration files:
11053 $config_files
11054
11055 Configuration commands:
11056 $config_commands
11057
11058 Report bugs to the package provider."
11059
11060 _ACEOF
11061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11062 ac_cs_version="\\
11063 LTO plugin for ld config.status 0.1
11064 configured by $0, generated by GNU Autoconf 2.64,
11065   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11066
11067 Copyright (C) 2009 Free Software Foundation, Inc.
11068 This config.status script is free software; the Free Software Foundation
11069 gives unlimited permission to copy, distribute and modify it."
11070
11071 ac_pwd='$ac_pwd'
11072 srcdir='$srcdir'
11073 INSTALL='$INSTALL'
11074 MKDIR_P='$MKDIR_P'
11075 AWK='$AWK'
11076 test -n "\$AWK" || AWK=awk
11077 _ACEOF
11078
11079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11080 # The default lists apply if the user does not specify any file.
11081 ac_need_defaults=:
11082 while test $# != 0
11083 do
11084   case $1 in
11085   --*=*)
11086     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11087     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11088     ac_shift=:
11089     ;;
11090   *)
11091     ac_option=$1
11092     ac_optarg=$2
11093     ac_shift=shift
11094     ;;
11095   esac
11096
11097   case $ac_option in
11098   # Handling of the options.
11099   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11100     ac_cs_recheck=: ;;
11101   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11102     $as_echo "$ac_cs_version"; exit ;;
11103   --debug | --debu | --deb | --de | --d | -d )
11104     debug=: ;;
11105   --file | --fil | --fi | --f )
11106     $ac_shift
11107     case $ac_optarg in
11108     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11109     esac
11110     as_fn_append CONFIG_FILES " '$ac_optarg'"
11111     ac_need_defaults=false;;
11112   --he | --h |  --help | --hel | -h )
11113     $as_echo "$ac_cs_usage"; exit ;;
11114   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11115   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11116     ac_cs_silent=: ;;
11117
11118   # This is an error.
11119   -*) as_fn_error "unrecognized option: \`$1'
11120 Try \`$0 --help' for more information." ;;
11121
11122   *) as_fn_append ac_config_targets " $1"
11123      ac_need_defaults=false ;;
11124
11125   esac
11126   shift
11127 done
11128
11129 ac_configure_extra_args=
11130
11131 if $ac_cs_silent; then
11132   exec 6>/dev/null
11133   ac_configure_extra_args="$ac_configure_extra_args --silent"
11134 fi
11135
11136 _ACEOF
11137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11138 if \$ac_cs_recheck; then
11139   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11140   shift
11141   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11142   CONFIG_SHELL='$SHELL'
11143   export CONFIG_SHELL
11144   exec "\$@"
11145 fi
11146
11147 _ACEOF
11148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11149 exec 5>>config.log
11150 {
11151   echo
11152   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11153 ## Running $as_me. ##
11154 _ASBOX
11155   $as_echo "$ac_log"
11156 } >&5
11157
11158 _ACEOF
11159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11160 #
11161 # INIT-COMMANDS
11162 #
11163 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11164
11165
11166 # The HP-UX ksh and POSIX shell print the target directory to stdout
11167 # if CDPATH is set.
11168 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11169
11170 sed_quote_subst='$sed_quote_subst'
11171 double_quote_subst='$double_quote_subst'
11172 delay_variable_subst='$delay_variable_subst'
11173 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11174 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11175 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11176 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11177 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11178 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11179 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11180 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11181 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11182 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11183 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11184 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11185 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11186 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11187 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11188 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11189 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11190 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11191 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11192 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11193 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11194 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11195 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11196 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11197 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11198 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11199 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11200 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11201 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11202 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11203 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11204 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11205 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11206 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11207 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11208 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11209 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11210 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11211 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11212 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11213 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11214 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11215 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11216 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11217 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"`'
11218 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"`'
11219 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11220 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11221 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11222 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11223 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11224 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11225 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11226 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11227 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11228 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11229 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11230 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11231 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11232 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11233 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11234 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11235 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11236 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11237 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11238 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11239 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11240 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11241 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11242 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11243 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11244 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11245 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11246 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11247 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11248 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11249 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11250 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11251 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11252 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11253 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11254 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11255 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11256 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11257 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11258 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11259 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11260 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11261 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11262 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11263 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11264 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11265 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11266 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11267 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11268 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11269 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11270 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11271 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11272 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11273 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11274 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11275 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11276 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11277 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11278 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11279 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11280 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11281 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11282 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11283 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11284 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11285 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11286 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11287 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11288 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11289 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11290 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11291
11292 LTCC='$LTCC'
11293 LTCFLAGS='$LTCFLAGS'
11294 compiler='$compiler_DEFAULT'
11295
11296 # Quote evaled strings.
11297 for var in SED \
11298 GREP \
11299 EGREP \
11300 FGREP \
11301 LD \
11302 NM \
11303 LN_S \
11304 lt_SP2NL \
11305 lt_NL2SP \
11306 reload_flag \
11307 OBJDUMP \
11308 deplibs_check_method \
11309 file_magic_cmd \
11310 AR \
11311 AR_FLAGS \
11312 STRIP \
11313 RANLIB \
11314 CC \
11315 CFLAGS \
11316 compiler \
11317 lt_cv_sys_global_symbol_pipe \
11318 lt_cv_sys_global_symbol_to_cdecl \
11319 lt_cv_sys_global_symbol_to_c_name_address \
11320 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11321 SHELL \
11322 ECHO \
11323 lt_prog_compiler_no_builtin_flag \
11324 lt_prog_compiler_wl \
11325 lt_prog_compiler_pic \
11326 lt_prog_compiler_static \
11327 lt_cv_prog_compiler_c_o \
11328 need_locks \
11329 DSYMUTIL \
11330 NMEDIT \
11331 LIPO \
11332 OTOOL \
11333 OTOOL64 \
11334 shrext_cmds \
11335 export_dynamic_flag_spec \
11336 whole_archive_flag_spec \
11337 compiler_needs_object \
11338 with_gnu_ld \
11339 allow_undefined_flag \
11340 no_undefined_flag \
11341 hardcode_libdir_flag_spec \
11342 hardcode_libdir_flag_spec_ld \
11343 hardcode_libdir_separator \
11344 fix_srcfile_path \
11345 exclude_expsyms \
11346 include_expsyms \
11347 file_list_spec \
11348 variables_saved_for_relink \
11349 libname_spec \
11350 library_names_spec \
11351 soname_spec \
11352 finish_eval \
11353 old_striplib \
11354 striplib; do
11355     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11356     *[\\\\\\\`\\"\\\$]*)
11357       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11358       ;;
11359     *)
11360       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11361       ;;
11362     esac
11363 done
11364
11365 # Double-quote double-evaled strings.
11366 for var in reload_cmds \
11367 old_postinstall_cmds \
11368 old_postuninstall_cmds \
11369 old_archive_cmds \
11370 extract_expsyms_cmds \
11371 old_archive_from_new_cmds \
11372 old_archive_from_expsyms_cmds \
11373 archive_cmds \
11374 archive_expsym_cmds \
11375 module_cmds \
11376 module_expsym_cmds \
11377 export_symbols_cmds \
11378 prelink_cmds \
11379 postinstall_cmds \
11380 postuninstall_cmds \
11381 finish_cmds \
11382 sys_lib_search_path_spec \
11383 sys_lib_dlsearch_path_spec; do
11384     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11385     *[\\\\\\\`\\"\\\$]*)
11386       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11387       ;;
11388     *)
11389       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11390       ;;
11391     esac
11392 done
11393
11394 # Fix-up fallback echo if it was mangled by the above quoting rules.
11395 case \$lt_ECHO in
11396 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11397   ;;
11398 esac
11399
11400 ac_aux_dir='$ac_aux_dir'
11401 xsi_shell='$xsi_shell'
11402 lt_shell_append='$lt_shell_append'
11403
11404 # See if we are running on zsh, and set the options which allow our
11405 # commands through without removal of \ escapes INIT.
11406 if test -n "\${ZSH_VERSION+set}" ; then
11407    setopt NO_GLOB_SUBST
11408 fi
11409
11410
11411     PACKAGE='$PACKAGE'
11412     VERSION='$VERSION'
11413     TIMESTAMP='$TIMESTAMP'
11414     RM='$RM'
11415     ofile='$ofile'
11416
11417
11418
11419
11420 _ACEOF
11421
11422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11423
11424 # Handling of arguments.
11425 for ac_config_target in $ac_config_targets
11426 do
11427   case $ac_config_target in
11428     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11429     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11430     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11431
11432   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11433   esac
11434 done
11435
11436
11437 # If the user did not use the arguments to specify the items to instantiate,
11438 # then the envvar interface is used.  Set only those that are not.
11439 # We use the long form for the default assignment because of an extremely
11440 # bizarre bug on SunOS 4.1.3.
11441 if $ac_need_defaults; then
11442   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11443   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11444 fi
11445
11446 # Have a temporary directory for convenience.  Make it in the build tree
11447 # simply because there is no reason against having it here, and in addition,
11448 # creating and moving files from /tmp can sometimes cause problems.
11449 # Hook for its removal unless debugging.
11450 # Note that there is a small window in which the directory will not be cleaned:
11451 # after its creation but before its name has been assigned to `$tmp'.
11452 $debug ||
11453 {
11454   tmp=
11455   trap 'exit_status=$?
11456   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11457 ' 0
11458   trap 'as_fn_exit 1' 1 2 13 15
11459 }
11460 # Create a (secure) tmp directory for tmp files.
11461
11462 {
11463   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11464   test -n "$tmp" && test -d "$tmp"
11465 }  ||
11466 {
11467   tmp=./conf$$-$RANDOM
11468   (umask 077 && mkdir "$tmp")
11469 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11470
11471 # Set up the scripts for CONFIG_FILES section.
11472 # No need to generate them if there are no CONFIG_FILES.
11473 # This happens for instance with `./config.status config.h'.
11474 if test -n "$CONFIG_FILES"; then
11475
11476
11477 ac_cr=`echo X | tr X '\015'`
11478 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11479 # But we know of no other shell where ac_cr would be empty at this
11480 # point, so we can use a bashism as a fallback.
11481 if test "x$ac_cr" = x; then
11482   eval ac_cr=\$\'\\r\'
11483 fi
11484 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11485 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11486   ac_cs_awk_cr='\r'
11487 else
11488   ac_cs_awk_cr=$ac_cr
11489 fi
11490
11491 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11492 _ACEOF
11493
11494
11495 {
11496   echo "cat >conf$$subs.awk <<_ACEOF" &&
11497   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11498   echo "_ACEOF"
11499 } >conf$$subs.sh ||
11500   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11501 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11502 ac_delim='%!_!# '
11503 for ac_last_try in false false false false false :; do
11504   . ./conf$$subs.sh ||
11505     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11506
11507   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11508   if test $ac_delim_n = $ac_delim_num; then
11509     break
11510   elif $ac_last_try; then
11511     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11512   else
11513     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11514   fi
11515 done
11516 rm -f conf$$subs.sh
11517
11518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11519 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11520 _ACEOF
11521 sed -n '
11522 h
11523 s/^/S["/; s/!.*/"]=/
11524 p
11525 g
11526 s/^[^!]*!//
11527 :repl
11528 t repl
11529 s/'"$ac_delim"'$//
11530 t delim
11531 :nl
11532 h
11533 s/\(.\{148\}\).*/\1/
11534 t more1
11535 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11536 p
11537 n
11538 b repl
11539 :more1
11540 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11541 p
11542 g
11543 s/.\{148\}//
11544 t nl
11545 :delim
11546 h
11547 s/\(.\{148\}\).*/\1/
11548 t more2
11549 s/["\\]/\\&/g; s/^/"/; s/$/"/
11550 p
11551 b
11552 :more2
11553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11554 p
11555 g
11556 s/.\{148\}//
11557 t delim
11558 ' <conf$$subs.awk | sed '
11559 /^[^""]/{
11560   N
11561   s/\n//
11562 }
11563 ' >>$CONFIG_STATUS || ac_write_fail=1
11564 rm -f conf$$subs.awk
11565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11566 _ACAWK
11567 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11568   for (key in S) S_is_set[key] = 1
11569   FS = "\a"
11570
11571 }
11572 {
11573   line = $ 0
11574   nfields = split(line, field, "@")
11575   substed = 0
11576   len = length(field[1])
11577   for (i = 2; i < nfields; i++) {
11578     key = field[i]
11579     keylen = length(key)
11580     if (S_is_set[key]) {
11581       value = S[key]
11582       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11583       len += length(value) + length(field[++i])
11584       substed = 1
11585     } else
11586       len += 1 + keylen
11587   }
11588
11589   print line
11590 }
11591
11592 _ACAWK
11593 _ACEOF
11594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11595 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11596   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11597 else
11598   cat
11599 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11600   || as_fn_error "could not setup config files machinery" "$LINENO" 5
11601 _ACEOF
11602
11603 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11604 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11605 # trailing colons and then remove the whole line if VPATH becomes empty
11606 # (actually we leave an empty line to preserve line numbers).
11607 if test "x$srcdir" = x.; then
11608   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11609 s/:*\$(srcdir):*/:/
11610 s/:*\${srcdir}:*/:/
11611 s/:*@srcdir@:*/:/
11612 s/^\([^=]*=[     ]*\):*/\1/
11613 s/:*$//
11614 s/^[^=]*=[       ]*$//
11615 }'
11616 fi
11617
11618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11619 fi # test -n "$CONFIG_FILES"
11620
11621
11622 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
11623 shift
11624 for ac_tag
11625 do
11626   case $ac_tag in
11627   :[FHLC]) ac_mode=$ac_tag; continue;;
11628   esac
11629   case $ac_mode$ac_tag in
11630   :[FHL]*:*);;
11631   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11632   :[FH]-) ac_tag=-:-;;
11633   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11634   esac
11635   ac_save_IFS=$IFS
11636   IFS=:
11637   set x $ac_tag
11638   IFS=$ac_save_IFS
11639   shift
11640   ac_file=$1
11641   shift
11642
11643   case $ac_mode in
11644   :L) ac_source=$1;;
11645   :[FH])
11646     ac_file_inputs=
11647     for ac_f
11648     do
11649       case $ac_f in
11650       -) ac_f="$tmp/stdin";;
11651       *) # Look for the file first in the build tree, then in the source tree
11652          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11653          # because $ac_f cannot contain `:'.
11654          test -f "$ac_f" ||
11655            case $ac_f in
11656            [\\/$]*) false;;
11657            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11658            esac ||
11659            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11660       esac
11661       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11662       as_fn_append ac_file_inputs " '$ac_f'"
11663     done
11664
11665     # Let's still pretend it is `configure' which instantiates (i.e., don't
11666     # use $as_me), people would be surprised to read:
11667     #    /* config.h.  Generated by config.status.  */
11668     configure_input='Generated from '`
11669           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11670         `' by configure.'
11671     if test x"$ac_file" != x-; then
11672       configure_input="$ac_file.  $configure_input"
11673       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11674 $as_echo "$as_me: creating $ac_file" >&6;}
11675     fi
11676     # Neutralize special characters interpreted by sed in replacement strings.
11677     case $configure_input in #(
11678     *\&* | *\|* | *\\* )
11679        ac_sed_conf_input=`$as_echo "$configure_input" |
11680        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11681     *) ac_sed_conf_input=$configure_input;;
11682     esac
11683
11684     case $ac_tag in
11685     *:-:* | *:-) cat >"$tmp/stdin" \
11686       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11687     esac
11688     ;;
11689   esac
11690
11691   ac_dir=`$as_dirname -- "$ac_file" ||
11692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11693          X"$ac_file" : 'X\(//\)[^/]' \| \
11694          X"$ac_file" : 'X\(//\)$' \| \
11695          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11696 $as_echo X"$ac_file" |
11697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11698             s//\1/
11699             q
11700           }
11701           /^X\(\/\/\)[^/].*/{
11702             s//\1/
11703             q
11704           }
11705           /^X\(\/\/\)$/{
11706             s//\1/
11707             q
11708           }
11709           /^X\(\/\).*/{
11710             s//\1/
11711             q
11712           }
11713           s/.*/./; q'`
11714   as_dir="$ac_dir"; as_fn_mkdir_p
11715   ac_builddir=.
11716
11717 case "$ac_dir" in
11718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11719 *)
11720   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11721   # A ".." for each directory in $ac_dir_suffix.
11722   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11723   case $ac_top_builddir_sub in
11724   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11725   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11726   esac ;;
11727 esac
11728 ac_abs_top_builddir=$ac_pwd
11729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11730 # for backward compatibility:
11731 ac_top_builddir=$ac_top_build_prefix
11732
11733 case $srcdir in
11734   .)  # We are building in place.
11735     ac_srcdir=.
11736     ac_top_srcdir=$ac_top_builddir_sub
11737     ac_abs_top_srcdir=$ac_pwd ;;
11738   [\\/]* | ?:[\\/]* )  # Absolute name.
11739     ac_srcdir=$srcdir$ac_dir_suffix;
11740     ac_top_srcdir=$srcdir
11741     ac_abs_top_srcdir=$srcdir ;;
11742   *) # Relative name.
11743     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11744     ac_top_srcdir=$ac_top_build_prefix$srcdir
11745     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11746 esac
11747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11748
11749
11750   case $ac_mode in
11751   :F)
11752   #
11753   # CONFIG_FILE
11754   #
11755
11756   case $INSTALL in
11757   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11758   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11759   esac
11760   ac_MKDIR_P=$MKDIR_P
11761   case $MKDIR_P in
11762   [\\/$]* | ?:[\\/]* ) ;;
11763   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11764   esac
11765 _ACEOF
11766
11767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11768 # If the template does not know about datarootdir, expand it.
11769 # FIXME: This hack should be removed a few years after 2.60.
11770 ac_datarootdir_hack=; ac_datarootdir_seen=
11771 ac_sed_dataroot='
11772 /datarootdir/ {
11773   p
11774   q
11775 }
11776 /@datadir@/p
11777 /@docdir@/p
11778 /@infodir@/p
11779 /@localedir@/p
11780 /@mandir@/p'
11781 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11782 *datarootdir*) ac_datarootdir_seen=yes;;
11783 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11784   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11785 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11786 _ACEOF
11787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11788   ac_datarootdir_hack='
11789   s&@datadir@&$datadir&g
11790   s&@docdir@&$docdir&g
11791   s&@infodir@&$infodir&g
11792   s&@localedir@&$localedir&g
11793   s&@mandir@&$mandir&g
11794   s&\\\${datarootdir}&$datarootdir&g' ;;
11795 esac
11796 _ACEOF
11797
11798 # Neutralize VPATH when `$srcdir' = `.'.
11799 # Shell code in configure.ac might set extrasub.
11800 # FIXME: do we really want to maintain this feature?
11801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11802 ac_sed_extra="$ac_vpsub
11803 $extrasub
11804 _ACEOF
11805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11806 :t
11807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11808 s|@configure_input@|$ac_sed_conf_input|;t t
11809 s&@top_builddir@&$ac_top_builddir_sub&;t t
11810 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11811 s&@srcdir@&$ac_srcdir&;t t
11812 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11813 s&@top_srcdir@&$ac_top_srcdir&;t t
11814 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11815 s&@builddir@&$ac_builddir&;t t
11816 s&@abs_builddir@&$ac_abs_builddir&;t t
11817 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11818 s&@INSTALL@&$ac_INSTALL&;t t
11819 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11820 $ac_datarootdir_hack
11821 "
11822 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11823   || as_fn_error "could not create $ac_file" "$LINENO" 5
11824
11825 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11826   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11827   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11829 which seems to be undefined.  Please make sure it is defined." >&5
11830 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11831 which seems to be undefined.  Please make sure it is defined." >&2;}
11832
11833   rm -f "$tmp/stdin"
11834   case $ac_file in
11835   -) cat "$tmp/out" && rm -f "$tmp/out";;
11836   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11837   esac \
11838   || as_fn_error "could not create $ac_file" "$LINENO" 5
11839  ;;
11840
11841
11842   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11843 $as_echo "$as_me: executing $ac_file commands" >&6;}
11844  ;;
11845   esac
11846
11847
11848   case $ac_file$ac_mode in
11849     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11850   # Autoconf 2.62 quotes --file arguments for eval, but not when files
11851   # are listed without --file.  Let's play safe and only enable the eval
11852   # if we detect the quoting.
11853   case $CONFIG_FILES in
11854   *\'*) eval set x "$CONFIG_FILES" ;;
11855   *)   set x $CONFIG_FILES ;;
11856   esac
11857   shift
11858   for mf
11859   do
11860     # Strip MF so we end up with the name of the file.
11861     mf=`echo "$mf" | sed -e 's/:.*$//'`
11862     # Check whether this is an Automake generated Makefile or not.
11863     # We used to match only the files named `Makefile.in', but
11864     # some people rename them; so instead we look at the file content.
11865     # Grep'ing the first line is not enough: some people post-process
11866     # each Makefile.in and add a new line on top of each file to say so.
11867     # Grep'ing the whole file is not good either: AIX grep has a line
11868     # limit of 2048, but all sed's we know have understand at least 4000.
11869     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11870       dirpart=`$as_dirname -- "$mf" ||
11871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11872          X"$mf" : 'X\(//\)[^/]' \| \
11873          X"$mf" : 'X\(//\)$' \| \
11874          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11875 $as_echo X"$mf" |
11876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11877             s//\1/
11878             q
11879           }
11880           /^X\(\/\/\)[^/].*/{
11881             s//\1/
11882             q
11883           }
11884           /^X\(\/\/\)$/{
11885             s//\1/
11886             q
11887           }
11888           /^X\(\/\).*/{
11889             s//\1/
11890             q
11891           }
11892           s/.*/./; q'`
11893     else
11894       continue
11895     fi
11896     # Extract the definition of DEPDIR, am__include, and am__quote
11897     # from the Makefile without running `make'.
11898     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11899     test -z "$DEPDIR" && continue
11900     am__include=`sed -n 's/^am__include = //p' < "$mf"`
11901     test -z "am__include" && continue
11902     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11903     # When using ansi2knr, U may be empty or an underscore; expand it
11904     U=`sed -n 's/^U = //p' < "$mf"`
11905     # Find all dependency output files, they are included files with
11906     # $(DEPDIR) in their names.  We invoke sed twice because it is the
11907     # simplest approach to changing $(DEPDIR) to its actual value in the
11908     # expansion.
11909     for file in `sed -n "
11910       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11911          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11912       # Make sure the directory exists.
11913       test -f "$dirpart/$file" && continue
11914       fdir=`$as_dirname -- "$file" ||
11915 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11916          X"$file" : 'X\(//\)[^/]' \| \
11917          X"$file" : 'X\(//\)$' \| \
11918          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11919 $as_echo X"$file" |
11920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11921             s//\1/
11922             q
11923           }
11924           /^X\(\/\/\)[^/].*/{
11925             s//\1/
11926             q
11927           }
11928           /^X\(\/\/\)$/{
11929             s//\1/
11930             q
11931           }
11932           /^X\(\/\).*/{
11933             s//\1/
11934             q
11935           }
11936           s/.*/./; q'`
11937       as_dir=$dirpart/$fdir; as_fn_mkdir_p
11938       # echo "creating $dirpart/$file"
11939       echo '# dummy' > "$dirpart/$file"
11940     done
11941   done
11942 }
11943  ;;
11944     "libtool":C)
11945
11946     # See if we are running on zsh, and set the options which allow our
11947     # commands through without removal of \ escapes.
11948     if test -n "${ZSH_VERSION+set}" ; then
11949       setopt NO_GLOB_SUBST
11950     fi
11951
11952     cfgfile="${ofile}T"
11953     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
11954     $RM "$cfgfile"
11955
11956     cat <<_LT_EOF >> "$cfgfile"
11957 #! $SHELL
11958
11959 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11960 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
11961 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11962 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11963 #
11964 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
11965 #                 2006, 2007, 2008 Free Software Foundation, Inc.
11966 #   Written by Gordon Matzigkeit, 1996
11967 #
11968 #   This file is part of GNU Libtool.
11969 #
11970 # GNU Libtool is free software; you can redistribute it and/or
11971 # modify it under the terms of the GNU General Public License as
11972 # published by the Free Software Foundation; either version 2 of
11973 # the License, or (at your option) any later version.
11974 #
11975 # As a special exception to the GNU General Public License,
11976 # if you distribute this file as part of a program or library that
11977 # is built using GNU Libtool, you may include this file under the
11978 # same distribution terms that you use for the rest of that program.
11979 #
11980 # GNU Libtool is distributed in the hope that it will be useful,
11981 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11982 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11983 # GNU General Public License for more details.
11984 #
11985 # You should have received a copy of the GNU General Public License
11986 # along with GNU Libtool; see the file COPYING.  If not, a copy
11987 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
11988 # obtained by writing to the Free Software Foundation, Inc.,
11989 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11990
11991
11992 # The names of the tagged configurations supported by this script.
11993 available_tags=""
11994
11995 # ### BEGIN LIBTOOL CONFIG
11996
11997 # Which release of libtool.m4 was used?
11998 macro_version=$macro_version
11999 macro_revision=$macro_revision
12000
12001 # Whether or not to build shared libraries.
12002 build_libtool_libs=$enable_shared
12003
12004 # Whether or not to build static libraries.
12005 build_old_libs=$enable_static
12006
12007 # What type of objects to build.
12008 pic_mode=$pic_mode
12009
12010 # Whether or not to optimize for fast installation.
12011 fast_install=$enable_fast_install
12012
12013 # The host system.
12014 host_alias=$host_alias
12015 host=$host
12016 host_os=$host_os
12017
12018 # The build system.
12019 build_alias=$build_alias
12020 build=$build
12021 build_os=$build_os
12022
12023 # A sed program that does not truncate output.
12024 SED=$lt_SED
12025
12026 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12027 Xsed="\$SED -e 1s/^X//"
12028
12029 # A grep program that handles long lines.
12030 GREP=$lt_GREP
12031
12032 # An ERE matcher.
12033 EGREP=$lt_EGREP
12034
12035 # A literal string matcher.
12036 FGREP=$lt_FGREP
12037
12038 # A BSD- or MS-compatible name lister.
12039 NM=$lt_NM
12040
12041 # Whether we need soft or hard links.
12042 LN_S=$lt_LN_S
12043
12044 # What is the maximum length of a command?
12045 max_cmd_len=$max_cmd_len
12046
12047 # Object file suffix (normally "o").
12048 objext=$ac_objext
12049
12050 # Executable file suffix (normally "").
12051 exeext=$exeext
12052
12053 # whether the shell understands "unset".
12054 lt_unset=$lt_unset
12055
12056 # turn spaces into newlines.
12057 SP2NL=$lt_lt_SP2NL
12058
12059 # turn newlines into spaces.
12060 NL2SP=$lt_lt_NL2SP
12061
12062 # How to create reloadable object files.
12063 reload_flag=$lt_reload_flag
12064 reload_cmds=$lt_reload_cmds
12065
12066 # An object symbol dumper.
12067 OBJDUMP=$lt_OBJDUMP
12068
12069 # Method to check whether dependent libraries are shared objects.
12070 deplibs_check_method=$lt_deplibs_check_method
12071
12072 # Command to use when deplibs_check_method == "file_magic".
12073 file_magic_cmd=$lt_file_magic_cmd
12074
12075 # The archiver.
12076 AR=$lt_AR
12077 AR_FLAGS=$lt_AR_FLAGS
12078
12079 # A symbol stripping program.
12080 STRIP=$lt_STRIP
12081
12082 # Commands used to install an old-style archive.
12083 RANLIB=$lt_RANLIB
12084 old_postinstall_cmds=$lt_old_postinstall_cmds
12085 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12086
12087 # A C compiler.
12088 LTCC=$lt_CC
12089
12090 # LTCC compiler flags.
12091 LTCFLAGS=$lt_CFLAGS
12092
12093 # Take the output of nm and produce a listing of raw symbols and C names.
12094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12095
12096 # Transform the output of nm in a proper C declaration.
12097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12098
12099 # Transform the output of nm in a C name address pair.
12100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12101
12102 # Transform the output of nm in a C name address pair when lib prefix is needed.
12103 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12104
12105 # The name of the directory that contains temporary libtool files.
12106 objdir=$objdir
12107
12108 # Shell to use when invoking shell scripts.
12109 SHELL=$lt_SHELL
12110
12111 # An echo program that does not interpret backslashes.
12112 ECHO=$lt_ECHO
12113
12114 # Used to examine libraries when file_magic_cmd begins with "file".
12115 MAGIC_CMD=$MAGIC_CMD
12116
12117 # Must we lock files when doing compilation?
12118 need_locks=$lt_need_locks
12119
12120 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12121 DSYMUTIL=$lt_DSYMUTIL
12122
12123 # Tool to change global to local symbols on Mac OS X.
12124 NMEDIT=$lt_NMEDIT
12125
12126 # Tool to manipulate fat objects and archives on Mac OS X.
12127 LIPO=$lt_LIPO
12128
12129 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12130 OTOOL=$lt_OTOOL
12131
12132 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12133 OTOOL64=$lt_OTOOL64
12134
12135 # Old archive suffix (normally "a").
12136 libext=$libext
12137
12138 # Shared library suffix (normally ".so").
12139 shrext_cmds=$lt_shrext_cmds
12140
12141 # The commands to extract the exported symbol list from a shared archive.
12142 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12143
12144 # Variables whose values should be saved in libtool wrapper scripts and
12145 # restored at link time.
12146 variables_saved_for_relink=$lt_variables_saved_for_relink
12147
12148 # Do we need the "lib" prefix for modules?
12149 need_lib_prefix=$need_lib_prefix
12150
12151 # Do we need a version for libraries?
12152 need_version=$need_version
12153
12154 # Library versioning type.
12155 version_type=$version_type
12156
12157 # Shared library runtime path variable.
12158 runpath_var=$runpath_var
12159
12160 # Shared library path variable.
12161 shlibpath_var=$shlibpath_var
12162
12163 # Is shlibpath searched before the hard-coded library search path?
12164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12165
12166 # Format of library name prefix.
12167 libname_spec=$lt_libname_spec
12168
12169 # List of archive names.  First name is the real one, the rest are links.
12170 # The last name is the one that the linker finds with -lNAME
12171 library_names_spec=$lt_library_names_spec
12172
12173 # The coded name of the library, if different from the real name.
12174 soname_spec=$lt_soname_spec
12175
12176 # Command to use after installation of a shared archive.
12177 postinstall_cmds=$lt_postinstall_cmds
12178
12179 # Command to use after uninstallation of a shared archive.
12180 postuninstall_cmds=$lt_postuninstall_cmds
12181
12182 # Commands used to finish a libtool library installation in a directory.
12183 finish_cmds=$lt_finish_cmds
12184
12185 # As "finish_cmds", except a single script fragment to be evaled but
12186 # not shown.
12187 finish_eval=$lt_finish_eval
12188
12189 # Whether we should hardcode library paths into libraries.
12190 hardcode_into_libs=$hardcode_into_libs
12191
12192 # Compile-time system search path for libraries.
12193 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12194
12195 # Run-time system search path for libraries.
12196 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12197
12198 # Whether dlopen is supported.
12199 dlopen_support=$enable_dlopen
12200
12201 # Whether dlopen of programs is supported.
12202 dlopen_self=$enable_dlopen_self
12203
12204 # Whether dlopen of statically linked programs is supported.
12205 dlopen_self_static=$enable_dlopen_self_static
12206
12207 # Commands to strip libraries.
12208 old_striplib=$lt_old_striplib
12209 striplib=$lt_striplib
12210
12211
12212 # The linker used to build libraries.
12213 LD=$lt_LD
12214
12215 # Commands used to build an old-style archive.
12216 old_archive_cmds=$lt_old_archive_cmds
12217
12218 # A language specific compiler.
12219 CC=$lt_compiler
12220
12221 # Is the compiler the GNU compiler?
12222 with_gcc=$GCC
12223
12224 # Compiler flag to turn off builtin functions.
12225 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12226
12227 # How to pass a linker flag through the compiler.
12228 wl=$lt_lt_prog_compiler_wl
12229
12230 # Additional compiler flags for building library objects.
12231 pic_flag=$lt_lt_prog_compiler_pic
12232
12233 # Compiler flag to prevent dynamic linking.
12234 link_static_flag=$lt_lt_prog_compiler_static
12235
12236 # Does compiler simultaneously support -c and -o options?
12237 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12238
12239 # Whether or not to add -lc for building shared libraries.
12240 build_libtool_need_lc=$archive_cmds_need_lc
12241
12242 # Whether or not to disallow shared libs when runtime libs are static.
12243 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12244
12245 # Compiler flag to allow reflexive dlopens.
12246 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12247
12248 # Compiler flag to generate shared objects directly from archives.
12249 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12250
12251 # Whether the compiler copes with passing no objects directly.
12252 compiler_needs_object=$lt_compiler_needs_object
12253
12254 # Create an old-style archive from a shared archive.
12255 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12256
12257 # Create a temporary old-style archive to link instead of a shared archive.
12258 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12259
12260 # Commands used to build a shared archive.
12261 archive_cmds=$lt_archive_cmds
12262 archive_expsym_cmds=$lt_archive_expsym_cmds
12263
12264 # Commands used to build a loadable module if different from building
12265 # a shared archive.
12266 module_cmds=$lt_module_cmds
12267 module_expsym_cmds=$lt_module_expsym_cmds
12268
12269 # Whether we are building with GNU ld or not.
12270 with_gnu_ld=$lt_with_gnu_ld
12271
12272 # Flag that allows shared libraries with undefined symbols to be built.
12273 allow_undefined_flag=$lt_allow_undefined_flag
12274
12275 # Flag that enforces no undefined symbols.
12276 no_undefined_flag=$lt_no_undefined_flag
12277
12278 # Flag to hardcode \$libdir into a binary during linking.
12279 # This must work even if \$libdir does not exist
12280 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12281
12282 # If ld is used when linking, flag to hardcode \$libdir into a binary
12283 # during linking.  This must work even if \$libdir does not exist.
12284 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12285
12286 # Whether we need a single "-rpath" flag with a separated argument.
12287 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12288
12289 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12290 # DIR into the resulting binary.
12291 hardcode_direct=$hardcode_direct
12292
12293 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12294 # DIR into the resulting binary and the resulting library dependency is
12295 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12296 # library is relocated.
12297 hardcode_direct_absolute=$hardcode_direct_absolute
12298
12299 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12300 # into the resulting binary.
12301 hardcode_minus_L=$hardcode_minus_L
12302
12303 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12304 # into the resulting binary.
12305 hardcode_shlibpath_var=$hardcode_shlibpath_var
12306
12307 # Set to "yes" if building a shared library automatically hardcodes DIR
12308 # into the library and all subsequent libraries and executables linked
12309 # against it.
12310 hardcode_automatic=$hardcode_automatic
12311
12312 # Set to yes if linker adds runtime paths of dependent libraries
12313 # to runtime path list.
12314 inherit_rpath=$inherit_rpath
12315
12316 # Whether libtool must link a program against all its dependency libraries.
12317 link_all_deplibs=$link_all_deplibs
12318
12319 # Fix the shell variable \$srcfile for the compiler.
12320 fix_srcfile_path=$lt_fix_srcfile_path
12321
12322 # Set to "yes" if exported symbols are required.
12323 always_export_symbols=$always_export_symbols
12324
12325 # The commands to list exported symbols.
12326 export_symbols_cmds=$lt_export_symbols_cmds
12327
12328 # Symbols that should not be listed in the preloaded symbols.
12329 exclude_expsyms=$lt_exclude_expsyms
12330
12331 # Symbols that must always be exported.
12332 include_expsyms=$lt_include_expsyms
12333
12334 # Commands necessary for linking programs (against libraries) with templates.
12335 prelink_cmds=$lt_prelink_cmds
12336
12337 # Specify filename containing input files.
12338 file_list_spec=$lt_file_list_spec
12339
12340 # How to hardcode a shared library path into an executable.
12341 hardcode_action=$hardcode_action
12342
12343 # ### END LIBTOOL CONFIG
12344
12345 _LT_EOF
12346
12347   case $host_os in
12348   aix3*)
12349     cat <<\_LT_EOF >> "$cfgfile"
12350 # AIX sometimes has problems with the GCC collect2 program.  For some
12351 # reason, if we set the COLLECT_NAMES environment variable, the problems
12352 # vanish in a puff of smoke.
12353 if test "X${COLLECT_NAMES+set}" != Xset; then
12354   COLLECT_NAMES=
12355   export COLLECT_NAMES
12356 fi
12357 _LT_EOF
12358     ;;
12359   esac
12360
12361
12362 ltmain="$ac_aux_dir/ltmain.sh"
12363
12364
12365   # We use sed instead of cat because bash on DJGPP gets confused if
12366   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12367   # text mode, it properly converts lines to CR/LF.  This bash problem
12368   # is reportedly fixed, but why not run on old versions too?
12369   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12370     || (rm -f "$cfgfile"; exit 1)
12371
12372   case $xsi_shell in
12373   yes)
12374     cat << \_LT_EOF >> "$cfgfile"
12375
12376 # func_dirname file append nondir_replacement
12377 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12378 # otherwise set result to NONDIR_REPLACEMENT.
12379 func_dirname ()
12380 {
12381   case ${1} in
12382     */*) func_dirname_result="${1%/*}${2}" ;;
12383     *  ) func_dirname_result="${3}" ;;
12384   esac
12385 }
12386
12387 # func_basename file
12388 func_basename ()
12389 {
12390   func_basename_result="${1##*/}"
12391 }
12392
12393 # func_dirname_and_basename file append nondir_replacement
12394 # perform func_basename and func_dirname in a single function
12395 # call:
12396 #   dirname:  Compute the dirname of FILE.  If nonempty,
12397 #             add APPEND to the result, otherwise set result
12398 #             to NONDIR_REPLACEMENT.
12399 #             value returned in "$func_dirname_result"
12400 #   basename: Compute filename of FILE.
12401 #             value retuned in "$func_basename_result"
12402 # Implementation must be kept synchronized with func_dirname
12403 # and func_basename. For efficiency, we do not delegate to
12404 # those functions but instead duplicate the functionality here.
12405 func_dirname_and_basename ()
12406 {
12407   case ${1} in
12408     */*) func_dirname_result="${1%/*}${2}" ;;
12409     *  ) func_dirname_result="${3}" ;;
12410   esac
12411   func_basename_result="${1##*/}"
12412 }
12413
12414 # func_stripname prefix suffix name
12415 # strip PREFIX and SUFFIX off of NAME.
12416 # PREFIX and SUFFIX must not contain globbing or regex special
12417 # characters, hashes, percent signs, but SUFFIX may contain a leading
12418 # dot (in which case that matches only a dot).
12419 func_stripname ()
12420 {
12421   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12422   # positional parameters, so assign one to ordinary parameter first.
12423   func_stripname_result=${3}
12424   func_stripname_result=${func_stripname_result#"${1}"}
12425   func_stripname_result=${func_stripname_result%"${2}"}
12426 }
12427
12428 # func_opt_split
12429 func_opt_split ()
12430 {
12431   func_opt_split_opt=${1%%=*}
12432   func_opt_split_arg=${1#*=}
12433 }
12434
12435 # func_lo2o object
12436 func_lo2o ()
12437 {
12438   case ${1} in
12439     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12440     *)    func_lo2o_result=${1} ;;
12441   esac
12442 }
12443
12444 # func_xform libobj-or-source
12445 func_xform ()
12446 {
12447   func_xform_result=${1%.*}.lo
12448 }
12449
12450 # func_arith arithmetic-term...
12451 func_arith ()
12452 {
12453   func_arith_result=$(( $* ))
12454 }
12455
12456 # func_len string
12457 # STRING may not start with a hyphen.
12458 func_len ()
12459 {
12460   func_len_result=${#1}
12461 }
12462
12463 _LT_EOF
12464     ;;
12465   *) # Bourne compatible functions.
12466     cat << \_LT_EOF >> "$cfgfile"
12467
12468 # func_dirname file append nondir_replacement
12469 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12470 # otherwise set result to NONDIR_REPLACEMENT.
12471 func_dirname ()
12472 {
12473   # Extract subdirectory from the argument.
12474   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12475   if test "X$func_dirname_result" = "X${1}"; then
12476     func_dirname_result="${3}"
12477   else
12478     func_dirname_result="$func_dirname_result${2}"
12479   fi
12480 }
12481
12482 # func_basename file
12483 func_basename ()
12484 {
12485   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12486 }
12487
12488
12489 # func_stripname prefix suffix name
12490 # strip PREFIX and SUFFIX off of NAME.
12491 # PREFIX and SUFFIX must not contain globbing or regex special
12492 # characters, hashes, percent signs, but SUFFIX may contain a leading
12493 # dot (in which case that matches only a dot).
12494 # func_strip_suffix prefix name
12495 func_stripname ()
12496 {
12497   case ${2} in
12498     .*) func_stripname_result=`$ECHO "X${3}" \
12499            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12500     *)  func_stripname_result=`$ECHO "X${3}" \
12501            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12502   esac
12503 }
12504
12505 # sed scripts:
12506 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12507 my_sed_long_arg='1s/^-[^=]*=//'
12508
12509 # func_opt_split
12510 func_opt_split ()
12511 {
12512   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12513   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12514 }
12515
12516 # func_lo2o object
12517 func_lo2o ()
12518 {
12519   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12520 }
12521
12522 # func_xform libobj-or-source
12523 func_xform ()
12524 {
12525   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
12526 }
12527
12528 # func_arith arithmetic-term...
12529 func_arith ()
12530 {
12531   func_arith_result=`expr "$@"`
12532 }
12533
12534 # func_len string
12535 # STRING may not start with a hyphen.
12536 func_len ()
12537 {
12538   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12539 }
12540
12541 _LT_EOF
12542 esac
12543
12544 case $lt_shell_append in
12545   yes)
12546     cat << \_LT_EOF >> "$cfgfile"
12547
12548 # func_append var value
12549 # Append VALUE to the end of shell variable VAR.
12550 func_append ()
12551 {
12552   eval "$1+=\$2"
12553 }
12554 _LT_EOF
12555     ;;
12556   *)
12557     cat << \_LT_EOF >> "$cfgfile"
12558
12559 # func_append var value
12560 # Append VALUE to the end of shell variable VAR.
12561 func_append ()
12562 {
12563   eval "$1=\$$1\$2"
12564 }
12565
12566 _LT_EOF
12567     ;;
12568   esac
12569
12570
12571   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12572     || (rm -f "$cfgfile"; exit 1)
12573
12574   mv -f "$cfgfile" "$ofile" ||
12575     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12576   chmod +x "$ofile"
12577
12578  ;;
12579
12580   esac
12581 done # for ac_tag
12582
12583
12584 as_fn_exit 0
12585 _ACEOF
12586 ac_clean_files=$ac_clean_files_save
12587
12588 test $ac_write_fail = 0 ||
12589   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12590
12591
12592 # configure is writing to config.log, and then calls config.status.
12593 # config.status does its own redirection, appending to config.log.
12594 # Unfortunately, on DOS this fails, as config.log is still kept open
12595 # by configure, so config.status won't be able to write to it; its
12596 # output is simply discarded.  So we exec the FD to /dev/null,
12597 # effectively closing config.log, so it can be properly (re)opened and
12598 # appended to by config.status.  When coming back to configure, we
12599 # need to make the FD available again.
12600 if test "$no_create" != yes; then
12601   ac_cs_success=:
12602   ac_config_status_args=
12603   test "$silent" = yes &&
12604     ac_config_status_args="$ac_config_status_args --quiet"
12605   exec 5>/dev/null
12606   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12607   exec 5>>config.log
12608   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12609   # would make configure fail if this is the last instruction.
12610   $ac_cs_success || as_fn_exit $?
12611 fi
12612 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12613   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12614 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12615 fi
12616
12617 # Check whether --enable-largefile was given.
12618 if test "${enable_largefile+set}" = set; then :
12619   enableval=$enable_largefile;
12620 fi
12621
12622 if test "$enable_largefile" != no; then
12623
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12625 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12626 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
12627   $as_echo_n "(cached) " >&6
12628 else
12629   ac_cv_sys_largefile_CC=no
12630      if test "$GCC" != yes; then
12631        ac_save_CC=$CC
12632        while :; do
12633          # IRIX 6.2 and later do not support large files by default,
12634          # so use the C compiler's -n32 option if that helps.
12635          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h.  */
12637 #include <sys/types.h>
12638  /* Check that off_t can represent 2**63 - 1 correctly.
12639     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12640     since some C++ compilers masquerading as C compilers
12641     incorrectly reject 9223372036854775807.  */
12642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12643   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12644                        && LARGE_OFF_T % 2147483647 == 1)
12645                       ? 1 : -1];
12646 int
12647 main ()
12648 {
12649
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654          if ac_fn_c_try_compile "$LINENO"; then :
12655   break
12656 fi
12657 rm -f core conftest.err conftest.$ac_objext
12658          CC="$CC -n32"
12659          if ac_fn_c_try_compile "$LINENO"; then :
12660   ac_cv_sys_largefile_CC=' -n32'; break
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext
12663          break
12664        done
12665        CC=$ac_save_CC
12666        rm -f conftest.$ac_ext
12667     fi
12668 fi
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12670 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12671   if test "$ac_cv_sys_largefile_CC" != no; then
12672     CC=$CC$ac_cv_sys_largefile_CC
12673   fi
12674
12675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12676 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12677 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
12678   $as_echo_n "(cached) " >&6
12679 else
12680   while :; do
12681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683 #include <sys/types.h>
12684  /* Check that off_t can represent 2**63 - 1 correctly.
12685     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12686     since some C++ compilers masquerading as C compilers
12687     incorrectly reject 9223372036854775807.  */
12688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12689   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12690                        && LARGE_OFF_T % 2147483647 == 1)
12691                       ? 1 : -1];
12692 int
12693 main ()
12694 {
12695
12696   ;
12697   return 0;
12698 }
12699 _ACEOF
12700 if ac_fn_c_try_compile "$LINENO"; then :
12701   ac_cv_sys_file_offset_bits=no; break
12702 fi
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h.  */
12706 #define _FILE_OFFSET_BITS 64
12707 #include <sys/types.h>
12708  /* Check that off_t can represent 2**63 - 1 correctly.
12709     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12710     since some C++ compilers masquerading as C compilers
12711     incorrectly reject 9223372036854775807.  */
12712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12713   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12714                        && LARGE_OFF_T % 2147483647 == 1)
12715                       ? 1 : -1];
12716 int
12717 main ()
12718 {
12719
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_compile "$LINENO"; then :
12725   ac_cv_sys_file_offset_bits=64; break
12726 fi
12727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728   ac_cv_sys_file_offset_bits=unknown
12729   break
12730 done
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12733 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12734 case $ac_cv_sys_file_offset_bits in #(
12735   no | unknown) ;;
12736   *)
12737 cat >>confdefs.h <<_ACEOF
12738 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12739 _ACEOF
12740 ;;
12741 esac
12742 rm -rf conftest*
12743   if test $ac_cv_sys_file_offset_bits = unknown; then
12744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12745 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12746 if test "${ac_cv_sys_large_files+set}" = set; then :
12747   $as_echo_n "(cached) " >&6
12748 else
12749   while :; do
12750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h.  */
12752 #include <sys/types.h>
12753  /* Check that off_t can represent 2**63 - 1 correctly.
12754     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12755     since some C++ compilers masquerading as C compilers
12756     incorrectly reject 9223372036854775807.  */
12757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12758   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12759                        && LARGE_OFF_T % 2147483647 == 1)
12760                       ? 1 : -1];
12761 int
12762 main ()
12763 {
12764
12765   ;
12766   return 0;
12767 }
12768 _ACEOF
12769 if ac_fn_c_try_compile "$LINENO"; then :
12770   ac_cv_sys_large_files=no; break
12771 fi
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h.  */
12775 #define _LARGE_FILES 1
12776 #include <sys/types.h>
12777  /* Check that off_t can represent 2**63 - 1 correctly.
12778     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12779     since some C++ compilers masquerading as C compilers
12780     incorrectly reject 9223372036854775807.  */
12781 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12782   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12783                        && LARGE_OFF_T % 2147483647 == 1)
12784                       ? 1 : -1];
12785 int
12786 main ()
12787 {
12788
12789   ;
12790   return 0;
12791 }
12792 _ACEOF
12793 if ac_fn_c_try_compile "$LINENO"; then :
12794   ac_cv_sys_large_files=1; break
12795 fi
12796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12797   ac_cv_sys_large_files=unknown
12798   break
12799 done
12800 fi
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12802 $as_echo "$ac_cv_sys_large_files" >&6; }
12803 case $ac_cv_sys_large_files in #(
12804   no | unknown) ;;
12805   *)
12806 cat >>confdefs.h <<_ACEOF
12807 #define _LARGE_FILES $ac_cv_sys_large_files
12808 _ACEOF
12809 ;;
12810 esac
12811 rm -rf conftest*
12812   fi
12813 fi
12814